/* =========================================================================
   ArtLink — interface web de l'app (/app)
   DA alignée sur la landing (landing.css) : Bricolage Grotesque + DM Sans,
   fond papier, pilules, dégradé « infini ». Accent = couleur du profil
   (établissement bleu, artiste vert, public orange), comme dans l'app mobile.
   ========================================================================= */

:root {
    --ink: #0F1229;
    --ink-2: #2A2F52;
    --muted: #5B6078;
    --hint: #8A8FA8;
    --line: rgba(15, 18, 41, .1);
    --line-strong: rgba(15, 18, 41, .18);
    --paper: #FBF8F4;
    --surface: #FFFFFF;
    --surface-2: #FDFBF8;
    --tint: #F3EEE7;

    --orange: #F76B10;
    --orange-soft: #FFF0E6;
    --blue: #3B82F7;
    --blue-soft: #EAF2FF;
    --green: #3A9172;
    --green-soft: #E6F4EE;
    --violet: #7B5CF0;
    --violet-soft: #F0ECFF;
    --coral: #EF4D4D;
    --coral-soft: #FDECEC;
    --amber: #F59E0B;
    --amber-soft: #FEF5E3;
    --grad: linear-gradient(100deg, #22B5E8 0%, #7B5CF0 38%, #EF4D4D 70%, #F59E0B 100%);

    --dark-bg: #0C0F24;
    --dark-surface: #161A36;
    --dark-line: rgba(255, 255, 255, .1);
    --dark-text: #E9EAF5;
    --dark-muted: #A3A7C4;

    --accent: var(--orange);
    --accent-soft: var(--orange-soft);
    --accent-ink: #E25A0E;

    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --shadow: 0 1px 2px rgba(15, 18, 41, .06), 0 12px 32px -12px rgba(15, 18, 41, .18);
    --shadow-sm: 0 1px 2px rgba(15, 18, 41, .05), 0 4px 14px -6px rgba(15, 18, 41, .14);
    --shadow-lg: 0 30px 60px -20px rgba(15, 18, 41, .35);

    --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
    --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

    --sidebar-w: 272px;
    --topbar-h: 68px;
    --tabbar-h: 66px;
}

body[data-profile="artist"] { --accent: var(--green); --accent-soft: var(--green-soft); --accent-ink: #2F7A5F; }
body[data-profile="establishment"] { --accent: var(--blue); --accent-soft: var(--blue-soft); --accent-ink: #2C6FE0; }

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #F1F2FA;
        --ink-2: #D3D5E8;
        --muted: #A3A7C4;
        --hint: #7D82A0;
        --line: rgba(255, 255, 255, .1);
        --line-strong: rgba(255, 255, 255, .18);
        --paper: #0B0E20;
        --surface: #141833;
        --surface-2: #181C3A;
        --tint: #1B1F3F;
        --orange-soft: rgba(242, 107, 31, .16);
        --blue-soft: rgba(59, 130, 247, .18);
        --green-soft: rgba(58, 145, 114, .22);
        --violet-soft: rgba(123, 92, 240, .2);
        --coral-soft: rgba(239, 77, 77, .18);
        --amber-soft: rgba(245, 158, 11, .18);
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px -6px rgba(0, 0, 0, .5);
        --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
    }
    body[data-profile="artist"] { --accent-ink: #5CC09B; }
    body[data-profile="establishment"] { --accent-ink: #7AAAFF; }
    body:not([data-profile="artist"]):not([data-profile="establishment"]) { --accent-ink: #FF9A5C; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.wa {
    margin: 0;
    min-height: 100dvh;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
body.has-modal, body.has-drawer, body.has-onboarding { overflow: hidden; }
.wa img { max-width: 100%; display: block; }
.wa a { color: inherit; }
.wa :where(h1, h2, h3, h4) { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
.wa :where(p, figure, blockquote) { margin: 0; }
.wa :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
.wa button { font: inherit; color: inherit; }
.wa :focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 8px; }
.wa [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.i { width: 20px; height: 20px; flex-shrink: 0; }
.text-gradient { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.accent { color: var(--accent-ink); }

/* Écran de démarrage */
.wa-boot { min-height: 100dvh; display: grid; place-items: center; align-content: center; gap: 24px; }
.wa-boot__logo { width: 150px; height: auto; }
@media (prefers-color-scheme: dark) { .wa-boot__logo { filter: brightness(0) invert(1); } }
.wa-spinner, .spinner {
    width: 28px; height: 28px; border-radius: 50%;
    border: 3px solid var(--line); border-top-color: var(--accent);
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.logo { width: 120px; height: auto; }
/* img.logo-- : doit l'emporter sur `.wa img { display: block }` */
img.logo--dark { display: none; }
@media (prefers-color-scheme: dark) {
    img.logo--light { display: none; }
    img.logo--dark { display: block; }
}

/* ---------- Boutons (mêmes pilules que la landing) ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    font: 600 15px/1 var(--font-body);
    padding: 12px 20px; min-height: 44px;
    border-radius: 999px; border: 2px solid transparent;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, opacity .2s;
    background: var(--tint); color: var(--ink);
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn .i { width: 18px; height: 18px; }
.btn--sm { padding: 8px 14px; min-height: 36px; font-size: 14px; }
.btn--lg { padding: 16px 26px; min-height: 54px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px var(--accent); }
.btn--accent:hover { filter: brightness(.95); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -12px rgba(242, 107, 31, .8); }
.btn--venue { background: var(--blue); color: #fff; }
.btn--artist { background: var(--green); color: #fff; }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--light { background: #fff; color: #0F1229; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--soft { background: var(--accent-soft); color: var(--accent-ink); }
.btn--danger { background: var(--coral); color: #fff; }
.btn--danger-ghost { background: transparent; color: var(--coral); border-color: color-mix(in srgb, var(--coral) 40%, transparent); }
.btn--link { background: none; border: 0; padding: 0; min-height: 0; color: var(--accent-ink); font-weight: 600; }
.btn--link:hover { text-decoration: underline; transform: none; }
.btn--grad { background: var(--grad); color: #fff; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::after { content: ""; width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }

.icon-btn {
    display: inline-grid; place-items: center; position: relative;
    width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
    background: transparent; color: var(--ink); text-decoration: none;
    transition: background-color .2s ease;
}
.icon-btn:hover { background: var(--tint); }
.icon-btn--surface { background: var(--surface); box-shadow: var(--shadow-sm); }
.icon-btn--glass { background: rgba(15, 18, 41, .45); color: #fff; backdrop-filter: blur(8px); }
.icon-btn--glass:hover { background: rgba(15, 18, 41, .65); }
.icon-btn.is-active { color: var(--coral); }

/* ---------- Coquille ---------- */
.shell { min-height: 100dvh; }
.sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 40;
    display: flex; flex-direction: column;
    background: var(--surface); border-right: 1px solid var(--line);
}
.sidebar__brand { display: flex; align-items: center; height: var(--topbar-h); padding: 0 22px; flex-shrink: 0; }
.sidebar__scroll { flex: 1; overflow-y: auto; padding: 4px 14px 18px; display: flex; flex-direction: column; gap: 6px; scrollbar-width: thin; }
.shell__main { margin-left: var(--sidebar-w); min-height: 100dvh; display: flex; flex-direction: column; }

.topbar {
    position: sticky; top: 0; z-index: 30;
    height: var(--topbar-h); display: flex; align-items: center; gap: 14px; padding: 0 28px;
    background: color-mix(in srgb, var(--paper) 82%, transparent);
    backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid var(--line);
}
.topbar__menu, .topbar__brand, .topbar__search-btn { display: none; }
.topbar__search {
    flex: 1; max-width: 560px; display: flex; align-items: center; gap: 10px;
    height: 44px; padding: 0 16px; border-radius: 999px;
    background: var(--surface); border: 1.5px solid var(--line);
    transition: border-color .2s, box-shadow .2s;
}
.topbar__search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.topbar__search .i { color: var(--muted); }
.topbar__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 15px var(--font-body); color: var(--ink); }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.loc-chip {
    display: inline-flex; align-items: center; gap: 6px; max-width: 220px;
    padding: 8px 14px; border-radius: 999px; border: 0; cursor: pointer;
    background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 14px;
}
.loc-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-chip .i { width: 17px; height: 17px; }
.loc-chip--pulse { animation: loc-pulse 1.8s ease-out infinite; }
@keyframes loc-pulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
    70%, 100% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 0%, transparent); }
}

/* Bulle « vous pouvez changer de localisation » (premières visites) */
.loc-hint {
    position: fixed; z-index: 60; width: min(340px, calc(100vw - 32px));
    padding: 16px 16px 14px; border-radius: 18px;
    background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease;
}
.loc-hint.is-open { opacity: 1; transform: none; }
.loc-hint__arrow {
    position: absolute; top: -7px; left: calc(var(--arrow-x, 50%) - 7px); width: 14px; height: 14px;
    background: var(--surface); border-left: 1px solid var(--line); border-top: 1px solid var(--line);
    transform: rotate(45deg);
}
.loc-hint__head { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 16px; line-height: 1.25; }
.loc-hint__icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.loc-hint__icon .i { width: 18px; height: 18px; }
.loc-hint p { margin: 10px 0 14px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.loc-hint__actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.loc-hint__actions .btn { padding: 8px 12px; white-space: nowrap; }
.nav-badge {
    position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--coral); color: #fff;
    font: 700 11px/18px var(--font-body); text-align: center;
}
.nav-link .nav-badge { position: static; margin-left: auto; }

.account-btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px;
    border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer;
}
.account-btn__name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }
.account-btn .i { width: 16px; height: 16px; color: var(--muted); }
.topbar__account { position: relative; }
.account-menu {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; z-index: 50;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
    padding: 8px; display: grid; gap: 2px;
}
.account-menu__head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.account-menu__head strong { display: block; }
.account-menu__head small { color: var(--muted); font-size: 13px; }
.account-menu a, .account-menu button {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
    text-decoration: none; border: 0; background: none; cursor: pointer; text-align: left; font-size: 15px;
}
.account-menu a:hover, .account-menu button:hover { background: var(--tint); }
.account-menu .is-danger { color: var(--coral); }

.view { flex: 1; outline: none; }

/* Navigation latérale */
.nav-section { display: grid; gap: 2px; padding: 6px 0; }
.nav-section + .nav-section { border-top: 1px solid var(--line); }
.nav-section__title { margin: 8px 12px 4px; font: 700 11px/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--hint); }
.nav-link {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 10px 12px; border-radius: 12px; border: 0; background: none; cursor: pointer;
    font-weight: 500; font-size: 15px; color: var(--ink-2); text-decoration: none; text-align: left;
    transition: background-color .15s ease, color .15s ease;
}
.nav-link .i { color: var(--muted); }
.nav-link:hover { background: var(--tint); color: var(--ink); }
.nav-link.is-active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.nav-link.is-active .i { color: var(--accent); }
.nav-link__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-link__lock .i { width: 15px; height: 15px; }
.nav-link--danger { color: var(--coral); }
.nav-link--danger .i { color: var(--coral); }
.nav-link--muted { color: var(--muted); }

.sidebar__foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--tint); margin: 4px 8px 6px; width: max-content; }
.lang-switch a { font: 600 13px/1 var(--font-body); padding: 7px 11px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang-switch a.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.user-card {
    padding: 14px; border-radius: 18px; margin-bottom: 6px;
    background: linear-gradient(135deg, var(--accent-soft), transparent 120%);
    border: 1px solid var(--line);
}
.user-card__row { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.user-card__id { min-width: 0; }
.user-card__id strong { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-card__id small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-badge {
    display: inline-flex; align-items: center; gap: 4px; width: max-content; margin: 3px 0 2px;
    padding: 3px 8px 3px 6px; border-radius: 999px;
    background: linear-gradient(120deg, #F59E0B, #F76B10); color: #fff;
    font: 700 11px/1.2 var(--font-body); letter-spacing: .02em;
    box-shadow: 0 6px 14px -8px rgba(247, 107, 16, .9);
}
.sub-badge .i { width: 12px; height: 12px; }
.profile-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.user-card--guest { background: var(--dark-bg); color: var(--dark-text); border: 0; position: relative; overflow: hidden; }
.user-card--guest::after { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; bottom: -80px; border-radius: 50%; background: var(--grad); filter: blur(50px); opacity: .45; }
.user-card__hello { font: 800 18px/1.2 var(--font-display); color: #fff; position: relative; }
.user-card__text { font-size: 13.5px; color: var(--dark-muted); margin: 6px 0 12px; position: relative; }
.user-card__actions { display: grid; gap: 8px; position: relative; }
.user-card--guest .btn--ghost { color: #fff; border-color: var(--dark-line); }
.premium-banner {
    display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 11px 14px; border-radius: 14px;
    background: linear-gradient(120deg, #F59E0B, #F76B10); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px;
    box-shadow: 0 10px 22px -12px rgba(247, 107, 16, .9);
}
.premium-banner span { flex: 1; }
.premium-banner .i { width: 18px; height: 18px; }

/* Barre d'onglets mobile */
.tabbar { display: none; }

/* Tiroir mobile */
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(12, 15, 36, .5); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s; }
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__panel {
    position: absolute; inset: 0 auto 0 0; width: min(340px, 88vw); background: var(--surface);
    display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .25s cubic-bezier(.2, .8, .2, 1);
    box-shadow: var(--shadow-lg);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px 20px; }
.drawer__scroll { flex: 1; overflow-y: auto; padding: 4px 14px 24px; display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 1024px) {
    .sidebar { display: none; }
    .shell__main { margin-left: 0; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
    .topbar { padding: 0 12px; gap: 8px; }
    .topbar__menu, .topbar__brand { display: inline-flex; }
    .topbar__brand .logo { width: 100px; }
    .account-btn__name, .account-btn > .i { display: none; }
    .account-btn { padding: 2px; border: 0; background: none; }
    .tabbar {
        display: grid; grid-template-columns: repeat(var(--tabs, 5), 1fr);
        position: fixed; inset: auto 0 0 0; z-index: 30;
        height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
        background: color-mix(in srgb, var(--surface) 92%, transparent);
        backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--line);
    }
    .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--hint); font-size: 11.5px; font-weight: 600; min-width: 0; }
    .tab__icon { display: grid; place-items: center; padding: 4px 12px; border-radius: 999px; transition: background-color .2s ease, padding .2s ease; }
    .tab__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
    .tab.is-active { color: var(--ink); }
    .tab.is-active .tab__icon { background: var(--accent-soft); color: var(--accent); padding: 4px 16px; }
}
@media (max-width: 720px) {
    .topbar__search { display: none; }
    .topbar__search-btn { display: inline-grid; }
    .loc-chip { max-width: 130px; padding: 8px 10px; }
    .hide-sm { display: none; }
}
@media (max-width: 400px) {
    .loc-chip span { display: none; }
    /* Libellés longs (« Réserver pour un événement »…) : passer à la ligne plutôt que déborder */
    .btn { white-space: normal; text-align: center; }
}

/* ---------- Pages ---------- */
.page { width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 28px 64px; }
.page--narrow { max-width: 760px; }
.page--medium { max-width: 980px; }
.page--flush { padding: 0; max-width: none; }
@media (max-width: 720px) { .page { padding: 18px 16px 40px; } }

.page-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head__back { margin-top: 2px; background: var(--surface); box-shadow: var(--shadow-sm); }
.page-head__text { flex: 1; min-width: 220px; }
.page-head__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.page-title { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.03em; }
.page-sub { margin-top: 6px; color: var(--muted); font-size: 16px; max-width: 680px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 700 12px/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }

.section { margin-top: 40px; }
.section:first-child { margin-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.section-title { font-size: clamp(20px, 2vw, 24px); font-weight: 800; }
.section-sub { color: var(--muted); font-size: 15px; margin-top: 4px; }

.grid { display: grid; gap: 18px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.split__aside { position: sticky; top: calc(var(--topbar-h) + 20px); display: grid; gap: 16px; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } .split__aside { position: static; } }

/* Rails horizontaux */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 16px; overflow-x: auto; padding: 4px 4px 14px; margin: -4px -4px 0; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.rail--sm { grid-auto-columns: minmax(200px, 230px); }

/* ---------- Cartes ---------- */
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.card--pad { padding: 22px; }
.card--flat { box-shadow: none; }
.card--tint { background: var(--tint); border-color: transparent; box-shadow: none; }
.card__title { font-size: 18px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.card__title .i { color: var(--accent); }

.cover { position: relative; overflow: hidden; background: var(--grad); aspect-ratio: 16 / 10; }
.cover img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.cover__fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .85); }
.cover__fallback .i { width: 40px; height: 40px; }

.media-card {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--card-accent, var(--accent)) 35%, transparent); }
.media-card .cover { aspect-ratio: 16 / 10; }
.media-card__body { padding: 14px 16px 16px; display: grid; gap: 6px; flex: 1; align-content: start; }
.media-card__kicker { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--card-accent, var(--accent-ink)); }
.media-card__title { font: 800 18px/1.2 var(--font-display); letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.media-card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 14px; }
.media-card__meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.media-card__meta .i { width: 15px; height: 15px; }
.media-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.media-card__fav { position: absolute; top: 10px; right: 10px; z-index: 2; }
.media-card__tags { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.media-card--event { --card-accent: var(--orange); }
.media-card--artist { --card-accent: var(--green); }
.media-card--venue { --card-accent: var(--blue); }

.price-tag { font: 800 17px/1 var(--font-display); }
.price-tag small { font: 500 12px var(--font-body); color: var(--muted); }

.person-card { display: flex; align-items: center; gap: 14px; padding: 14px; text-decoration: none; color: inherit; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.person-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.person-card__id { min-width: 0; flex: 1; }
.person-card__id strong { display: flex; align-items: center; gap: 6px; font-size: 15.5px; }
.person-card__id small { display: block; color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Liste à lignes */
.list { display: grid; grid-template-columns: minmax(0, 1fr); }
.list-item {
    display: flex; align-items: center; gap: 14px; padding: 14px 4px;
    border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; cursor: pointer;
}
.list-item:last-child { border-bottom: 0; }
.list-item:hover .list-item__title { color: var(--accent-ink); }
.list-item__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.list-item__body { flex: 1; min-width: 0; }
.list-item__title { font-weight: 700; display: block; }
.list-item__sub { color: var(--muted); font-size: 14px; display: block; }
.list-item__end { display: flex; align-items: center; gap: 8px; color: var(--muted); flex-shrink: 0; }

/* ---------- Héros / spotlight (style section sombre de la landing) ---------- */
.hero-card {
    position: relative; overflow: hidden; isolation: isolate;
    border-radius: 28px; background: var(--dark-bg); color: var(--dark-text);
    padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg);
}
.hero-card::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; background: var(--accent); filter: blur(90px); opacity: .45; z-index: -1; }
.hero-card::after { content: ""; position: absolute; width: 360px; height: 360px; left: -120px; bottom: -220px; border-radius: 50%; background: var(--grad); filter: blur(90px); opacity: .35; z-index: -1; }
.hero-card .eyebrow { color: #B9A8FF; }
.hero-card__title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em; color: #fff; max-width: 720px; }
.hero-card__text { margin-top: 10px; color: var(--dark-muted); max-width: 620px; font-size: 16.5px; }
.hero-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-card .btn--ghost { color: #fff; border-color: var(--dark-line); }
.hero-card .btn--ghost:hover { border-color: #fff; }

.quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.quick-action {
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px;
    border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid var(--dark-line);
    color: #fff; text-decoration: none; font-weight: 600; font-size: 14.5px; transition: background-color .2s, transform .2s;
}
.quick-action:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.quick-action__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: #fff; }
@media (max-width: 640px) { .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.spotlight { display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.spotlight .cover { aspect-ratio: auto; min-height: 300px; height: 100%; }
.spotlight__body { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.spotlight__title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.spotlight__meta { display: grid; gap: 8px; color: var(--muted); }
.spotlight__meta span { display: flex; align-items: center; gap: 8px; }
.spotlight__meta .i { color: var(--accent); width: 18px; height: 18px; }
.spotlight__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 820px) { .spotlight { grid-template-columns: 1fr; } .spotlight .cover { min-height: 220px; aspect-ratio: 16 / 9; } }

/* ---------- Badges, chips, onglets ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font: 700 12px/1 var(--font-body); background: var(--tint); color: var(--ink-2); white-space: nowrap; }
.badge .i { width: 13px; height: 13px; }
.badge--accent { background: var(--accent-soft); color: var(--accent-ink); }
.badge--success { background: var(--green-soft); color: var(--green); }
.badge--warning { background: var(--amber-soft); color: #B4690E; }
.badge--danger { background: var(--coral-soft); color: var(--coral); }
.badge--info { background: var(--blue-soft); color: var(--blue); }
.badge--violet { background: var(--violet-soft); color: var(--violet); }
.badge--dark { background: rgba(12, 15, 36, .7); color: #fff; backdrop-filter: blur(6px); }
.badge--live { background: var(--coral); color: #fff; }
.badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }
@media (prefers-color-scheme: dark) { .badge--warning { color: #FBBF24; } .badge--success { color: #5CC09B; } .badge--info { color: #7AAAFF; } }

.cert { display: inline-grid; place-items: center; color: var(--blue); }
.cert .i { width: 18px; height: 18px; fill: var(--blue-soft); }
.cert--review { color: var(--amber); }
.rating { display: inline-flex; align-items: center; gap: 4px; color: #F59E0B; font-weight: 700; font-size: 14px; }
.rating .i { width: 15px; height: 15px; }
.stars { display: inline-flex; gap: 2px; color: var(--line-strong); }
.stars .is-on { color: #F59E0B; }
.stars .i { width: 18px; height: 18px; }
.stars--input { gap: 6px; }
.stars--input label { cursor: pointer; color: var(--line-strong); transition: transform .15s; }
.stars--input label:hover { transform: scale(1.1); }
.stars--input label.is-on { color: #F59E0B; }
.stars--input input { position: absolute; opacity: 0; width: 1px; }
.stars--input .i { width: 34px; height: 34px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
    border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2);
    font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: all .15s ease;
}
.chip:hover { border-color: var(--line-strong); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip .i { width: 16px; height: 16px; }
.chip--static { cursor: default; background: var(--tint); border-color: transparent; }

.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--tint); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs__item {
    display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; border: 0; cursor: pointer;
    background: none; color: var(--muted); font-weight: 600; font-size: 14.5px; white-space: nowrap;
}
.tabs__item .i { width: 17px; height: 17px; }
.tabs__item.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.tabs__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; }

/* ---------- États ---------- */
.state { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 56px 20px; }
.state__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); margin-bottom: 4px; }
.state__icon .i { width: 28px; height: 28px; }
.state__title { font-size: 21px; font-weight: 800; }
.state__text { color: var(--muted); max-width: 460px; }
.state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.state .btn { margin-top: 8px; }
.state--loading { grid-auto-flow: column; justify-content: center; align-items: center; gap: 12px; color: var(--muted); }
.state--error .state__icon { background: var(--coral-soft); color: var(--coral); }
.state--login .state__icon { background: var(--violet-soft); color: var(--violet); }

.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, var(--tint) 0%, color-mix(in srgb, var(--tint) 50%, var(--surface)) 50%, var(--tint) 100%); background-size: 200% 100%; animation: shimmer 1.3s ease-in-out infinite; }
.skeleton--card { height: 290px; }
.skeleton--row { height: 72px; border-radius: 16px; }
.skeleton--hero { height: 260px; border-radius: 28px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Avatars ---------- */
.avatar { --s: 44px; position: relative; display: inline-grid; place-items: center; width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--accent-soft); color: var(--accent-ink); font: 700 calc(var(--s) * .38)/1 var(--font-body); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.avatar--ring { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent); }
.avatar-stack { display: flex; }
.avatar-stack .avatar { box-shadow: 0 0 0 2px var(--surface); }
.avatar-stack .avatar + .avatar { margin-left: -10px; }

/* ---------- Formulaires ---------- */
/* minmax(0, 1fr) : une colonne implicite prend la largeur min-content de son contenu et déborde sur petit écran */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.form-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.form-section + .form-section { padding-top: 22px; border-top: 1px solid var(--line); }
.form-section__title { font-size: 18px; font-weight: 800; }
.form-section__sub { color: var(--muted); font-size: 14.5px; margin-top: -10px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .form-row, .form-row--3 { grid-template-columns: 1fr; } }
.form__error { padding: 12px 14px; border-radius: 12px; background: var(--coral-soft); color: var(--coral); font-weight: 600; font-size: 14.5px; }
.form__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.form__actions--sticky { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(to top, var(--paper) 70%, transparent); z-index: 5; }
@media (max-width: 1024px) { .form__actions--sticky { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); } }
/* Mobile : boutons sur une seule ligne, l'action principale prend la place restante (sinon ils s'empilent et masquent le formulaire) */
@media (max-width: 560px) {
    .form__actions--sticky { flex-wrap: nowrap; padding: 10px 0; }
    .form__actions--sticky .btn { flex: 0 0 auto; padding-inline: 16px; }
    .form__actions--sticky .btn[type="submit"] { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 10px 16px; font-size: 15px; white-space: normal; line-height: 1.2; text-align: center; }
}

.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
.field__label { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.field__label .req { color: var(--coral); }
.field__hint { color: var(--muted); font-size: 13px; }
.input, .select, .textarea {
    width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px;
    border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
    font: 500 15.5px/1.4 var(--font-body); transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input::placeholder, .textarea::placeholder { color: var(--hint); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235B6078' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.input-icon { position: relative; display: block; }
.input-icon > .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 42px; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); }
.switch__text strong { display: block; font-size: 15px; }
.switch__text small { display: block; color: var(--muted); font-size: 13.5px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; width: 48px; height: 28px; border-radius: 999px; background: var(--line-strong); flex-shrink: 0; transition: background-color .2s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--violet); outline-offset: 2px; }

.check-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-chip span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; transition: all .15s; }
.check-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.check-chip input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }

.checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 15px; line-height: 1.45; }
.checkbox input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex-shrink: 0; }

.range { width: 100%; accent-color: var(--accent); }
.range-value { font-weight: 700; color: var(--accent-ink); }

/* Dépôt de fichiers / galerie éditable */
.dropzone {
    display: grid; place-items: center; gap: 8px; padding: 26px; text-align: center; cursor: pointer;
    border: 2px dashed var(--line-strong); border-radius: 18px; background: var(--surface-2); color: var(--muted);
    transition: border-color .2s, background-color .2s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.dropzone .i { width: 28px; height: 28px; }
.dropzone input { display: none; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--tint); }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb__remove { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; }
.thumb__label { position: absolute; left: 6px; bottom: 6px; }
.thumb--file { display: grid; place-items: center; color: var(--muted); font-size: 12px; text-align: center; padding: 8px; }
.avatar-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* ---------- Visite guidée (première visite) ---------- */
.onb { --onb-color: var(--accent); position: fixed; inset: 0; z-index: 90; background: var(--paper); opacity: 0; transition: opacity .25s ease; }
.onb.is-open { opacity: 1; }
.onb__frame { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); height: 100dvh; }
.onb__visual { position: relative; margin: 16px; border-radius: 28px; overflow: hidden; background: var(--dark-bg); isolation: isolate; }
.onb__visual img[data-img] { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s ease; }
.onb__visual img.is-active { opacity: 1; animation: onb-kenburns 16s ease-in-out infinite alternate; }
.onb__visual::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(12, 15, 36, 0) 45%, rgba(12, 15, 36, .6) 100%); }
.onb__orb { position: absolute; z-index: 1; border-radius: 50%; background: var(--onb-color); filter: blur(70px); opacity: .45; transition: background .6s ease; animation: onb-float 14s ease-in-out infinite alternate; pointer-events: none; }
.onb__orb--a { width: 320px; height: 320px; top: -90px; right: -80px; }
.onb__orb--b { width: 260px; height: 260px; bottom: -110px; left: -60px; background: #7B5CF0; animation-delay: -7s; }
.onb__logo { position: absolute; z-index: 2; left: 28px; bottom: 26px; width: 120px; height: auto; }
.onb__panel { display: flex; flex-direction: column; min-height: 0; padding: 32px clamp(24px, 4vw, 56px) 28px; }
.onb__top { display: flex; align-items: center; gap: 16px; min-height: 40px; }
.onb__progress { flex: 1; display: flex; gap: 6px; }
.onb__progress > span { flex: 1; height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.onb__progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--onb-color); box-shadow: 0 0 10px color-mix(in srgb, var(--onb-color) 60%, transparent); transition: width .45s ease, background .45s ease; }
.onb__progress > span.is-done i { width: 100%; }
.onb__skip { color: var(--muted); font-weight: 600; }
.onb__skip[hidden] { display: none; }
.onb__content { flex: 1; min-height: 0; overflow-y: auto; display: flex; padding: 12px 2px; }
.onb__step { margin: auto 0; width: 100%; display: grid; gap: 16px; justify-items: start; padding: 16px 0; animation: onb-in .45s cubic-bezier(.2, .8, .2, 1); }
.onb__step.from-right { --onb-from: 28px; }
.onb__step.from-left { --onb-from: -28px; }
.onb__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, var(--onb-color) 14%, transparent); color: var(--onb-color); box-shadow: 0 14px 32px -14px var(--onb-color); animation: onb-pop .7s cubic-bezier(.34, 1.56, .64, 1); }
.onb__icon .i { width: 30px; height: 30px; }
.onb__eyebrow { display: inline-flex; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--onb-color) 14%, transparent); color: var(--onb-color); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.onb__title { font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; outline: none; text-wrap: balance; }
.onb__lead { color: var(--muted); font-size: 17px; max-width: 46ch; }
.onb__title:focus, .onb__title:focus-visible { outline: none; box-shadow: none; }
.onb__step [data-loc-status], .onb__step [data-onb-interests] { width: 100%; }
.onb__note { display: flex; align-items: center; gap: 8px; color: var(--hint); font-size: 14px; }
.onb__note .i { width: 16px; height: 16px; }
.onb__features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
.onb__features li, .onb__loc { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); }
.onb__features strong, .onb__loc strong { display: block; font-weight: 700; line-height: 1.3; }
.onb__features li span span, .onb__loc span span { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 2px; }
.onb__feature-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--onb-color) 13%, transparent); color: var(--onb-color); }
.onb__feature-icon .i { width: 20px; height: 20px; }
.onb__loc { width: 100%; align-items: center; }
.onb__loc.is-set { border-color: color-mix(in srgb, var(--onb-color) 55%, transparent); }
.onb__choices { display: grid; gap: 10px; width: 100%; max-width: 420px; }
.onb__choices--row { display: flex; flex-wrap: wrap; max-width: none; }
.onb__group { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.onb__group legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.onb__loading { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.onb__checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.onb__checklist li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.onb__checklist .i { color: var(--onb-color); }
.onb__shortcuts { display: grid; gap: 10px; width: 100%; }
.onb__shortcut { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px 12px 12px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
.onb__shortcut:hover { border-color: var(--onb-color); transform: translateY(-1px); }
.onb__shortcut > .i:last-child { margin-left: auto; color: var(--muted); }
.onb__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; }
.onb__nav .icon-btn:disabled { opacity: .3; cursor: default; background: none; }
.onb__count { color: var(--muted); font-size: 14px; }
.onb .btn--accent { background: var(--onb-color); box-shadow: 0 10px 24px -12px var(--onb-color); transition: background .45s ease, transform .15s ease; }
.onb .check-chip input:checked + span { background: var(--onb-color); border-color: var(--onb-color); }

@keyframes onb-in { from { opacity: 0; transform: translateX(var(--onb-from, 0)) translateY(var(--onb-rise, 12px)); } }
@keyframes onb-pop { from { transform: scale(.4); opacity: 0; } }
@keyframes onb-kenburns { from { transform: scale(1.06) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -1.5%); } }
@keyframes onb-float { from { transform: translate(0, 0); } to { transform: translate(-40px, 50px); } }

@media (max-width: 860px) {
    .onb__frame { grid-template-columns: 1fr; grid-template-rows: 30dvh minmax(0, 1fr); }
    .onb__visual { margin: 0; border-radius: 0; }
    .onb__logo { left: 20px; bottom: auto; top: calc(18px + env(safe-area-inset-top)); width: 96px; }
    .onb__panel { position: relative; z-index: 1; margin-top: -28px; border-radius: 28px 28px 0 0; background: var(--paper); box-shadow: 0 -10px 30px -12px rgba(12, 15, 36, .3); padding: 22px 20px calc(16px + env(safe-area-inset-bottom)); }
    .onb__content { padding-top: 4px; }
    .onb__step { margin-top: 0; padding-top: 8px; gap: 14px; }
    .onb__icon { width: 54px; height: 54px; }
    .onb__icon .i { width: 26px; height: 26px; }
    .onb__lead { font-size: 16px; }
    .onb__features { grid-template-columns: 1fr; }
    .onb__nav .btn--lg { padding: 13px 20px; min-height: 48px; font-size: 15px; }
}
@media (max-width: 860px) and (max-height: 640px) {
    .onb__frame { grid-template-rows: 18dvh minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .onb__visual img.is-active, .onb__orb, .onb__step, .onb__icon { animation: none; }
}

/* ---------- Modales & toasts ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(12, 15, 36, .55); opacity: 0; transition: opacity .2s ease; overflow-y: auto; }
.modal-backdrop.is-open { opacity: 1; }
.modal { width: 100%; max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-lg); transform: translateY(12px) scale(.98); transition: transform .2s ease; }
.modal-backdrop.is-open .modal { transform: none; }
.modal--sm { max-width: 440px; }
.modal--md { max-width: 560px; }
.modal--lg { max-width: 820px; }
.modal--xl { max-width: 1100px; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 0 24px; }
.modal__title { font-size: 21px; font-weight: 800; }
.modal__body { padding: 18px 24px 24px; display: grid; gap: 16px; }
.modal__text { color: var(--muted); }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 560px) {
    .modal-backdrop { align-items: end; padding: 0; }
    .modal { border-radius: 24px 24px 0 0; max-height: 92dvh; }
}

.toasts { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
@media (max-width: 1024px) { .toasts { bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); } }
.toast {
    display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: 16px;
    background: var(--ink); color: var(--paper); box-shadow: var(--shadow-lg); font-weight: 500; font-size: 15px;
    opacity: 0; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease; pointer-events: auto;
}
.toast.is-in { opacity: 1; transform: none; }
.toast--success .i { color: #7FD6B5; }
.toast--error { background: var(--coral); color: #fff; }

.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13.5px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.city-results { display: grid; gap: 4px; max-height: 240px; overflow-y: auto; }
.city-results button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border-radius: 12px; border: 0; background: var(--tint); cursor: pointer; text-align: left; }
.city-results button:hover { background: var(--accent-soft); color: var(--accent-ink); }
.city-results__hint { color: var(--muted); font-size: 14px; padding: 8px 4px; }

/* ---------- Détail (événement / artiste / lieu) ---------- */
.detail-hero { position: relative; border-radius: 28px; overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; color: #fff; background: var(--dark-bg); box-shadow: var(--shadow); }
.detail-hero .cover { position: absolute; inset: 0; aspect-ratio: auto; }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 15, 36, .1) 20%, rgba(12, 15, 36, .85) 100%); z-index: 1; }
.detail-hero__top { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 3; display: flex; justify-content: space-between; gap: 8px; }
.detail-hero__top-actions { display: flex; gap: 8px; }
.detail-hero__body { position: relative; z-index: 2; padding: clamp(20px, 3vw, 34px); display: grid; gap: 10px; width: 100%; }
.detail-hero__title { font-size: clamp(28px, 4.2vw, 48px); font-weight: 800; letter-spacing: -.03em; color: #fff; }
.detail-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: rgba(255, 255, 255, .85); }
.detail-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.detail-hero__meta .i { width: 17px; height: 17px; }

.profile-hero { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.profile-hero .avatar { --s: 112px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--accent); }
.profile-hero__id { flex: 1; min-width: 220px; }
.profile-hero__name { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.03em; display: flex; align-items: center; gap: 10px; }
.profile-hero__sub { color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.profile-hero__sub span { display: inline-flex; align-items: center; gap: 6px; }
.profile-hero__sub .i { width: 17px; height: 17px; }
.profile-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat { padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.stat__value { font: 800 26px/1.1 var(--font-display); letter-spacing: -.02em; }
.stat__label { color: var(--muted); font-size: 13.5px; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.stat__label .i { width: 15px; height: 15px; }
.stat--accent { background: var(--accent); color: #fff; border-color: transparent; }
.stat--accent .stat__label { color: rgba(255, 255, 255, .85); }
.stat--dark { background: var(--dark-bg); color: #fff; border-color: transparent; }
.stat--dark .stat__label { color: var(--dark-muted); }
/* En sombre, --dark-bg est la couleur de la page : la carte disparaissait */
@media (prefers-color-scheme: dark) { .stat--dark { background: var(--dark-surface); border-color: var(--line-strong); } }

.info-list { display: grid; gap: 14px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; }
.info-row__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.info-row__label { color: var(--muted); font-size: 13px; }
.info-row__value { font-weight: 600; }
.prose { white-space: pre-line; color: var(--ink-2); }
.prose--clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery-grid button { position: relative; padding: 0; border: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: var(--tint); }
.gallery-grid img, .gallery-grid video { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-grid button:hover img { transform: scale(1.05); }
.gallery-grid__type { position: absolute; left: 8px; bottom: 8px; }
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(5, 6, 15, .94); display: grid; grid-template-rows: auto 1fr; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; color: #fff; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 64px 32px; min-height: 0; }
.lightbox__stage img, .lightbox__stage video { max-width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 12px; }
.lightbox__stage audio { width: min(520px, 90vw); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

/* Phases de billetterie (repris de la section « phases » de la landing) */
.tiers { display: grid; gap: 10px; }
.tier { padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.tier__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tier__idx { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tint); font-weight: 700; font-size: 13px; }
.tier__state { font: 700 11px/1 var(--font-body); text-transform: uppercase; letter-spacing: .06em; padding: 5px 8px; border-radius: 999px; background: var(--tint); color: var(--muted); }
.tier__price { margin-left: auto; font: 800 20px/1 var(--font-display); }
.tier__bar { height: 8px; border-radius: 99px; background: var(--tint); margin: 12px 0 6px; overflow: hidden; }
.tier__bar span { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.tier small { color: var(--muted); font-size: 13px; }
.tier--sold { opacity: .65; }
.tier--live { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.tier--live .tier__state, .tier--live .tier__idx { background: var(--orange); color: #fff; }

/* Récap / tickets */
.summary { display: grid; gap: 10px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.summary__row small { color: var(--muted); }
.summary__row--total { padding-top: 12px; border-top: 1px dashed var(--line-strong); font-weight: 800; font-size: 18px; color: var(--ink); }
.qty { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--tint); }
.qty button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.qty button:disabled { opacity: .4; cursor: not-allowed; }
.qty output { min-width: 44px; text-align: center; font: 800 20px var(--font-display); }

.ticket {
    position: relative; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
    padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.ticket::before, .ticket::after { content: ""; position: absolute; right: 196px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); }
.ticket::before { top: -11px; }
.ticket::after { bottom: -11px; }
.ticket__qr { width: 170px; height: 170px; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.ticket__qr img, .ticket__qr canvas, .ticket__qr svg { width: 100%; height: 100%; image-rendering: pixelated; }
@media (max-width: 560px) { .ticket { grid-template-columns: 1fr; justify-items: center; text-align: center; } .ticket::before, .ticket::after { display: none; } }

/* ---------- Agenda / calendrier ---------- */
.calendar { padding: 18px; }
.calendar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.calendar__title { font: 800 19px var(--font-display); text-transform: capitalize; }
.calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar__dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--hint); text-transform: uppercase; padding: 6px 0; }
.calendar__day {
    position: relative; aspect-ratio: 1; min-height: 40px; display: grid; place-items: center; border-radius: 12px;
    border: 0; background: none; cursor: pointer; font-weight: 600; color: var(--ink-2);
}
.calendar__day:hover { background: var(--tint); }
.calendar__day.is-out { color: var(--hint); opacity: .5; }
.calendar__day.is-today { color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--accent); }
.calendar__day.is-selected { background: var(--accent); color: #fff; }
.calendar__dots { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); display: flex; gap: 3px; }
.calendar__dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--dot, var(--accent)); }
.calendar__day.is-selected .calendar__dots span { background: #fff; }

.agenda-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.agenda-item:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.agenda-item__date { display: grid; place-items: center; text-align: center; padding: 8px 0; border-radius: 14px; background: var(--kind-soft, var(--accent-soft)); color: var(--kind, var(--accent-ink)); }
.agenda-item__date strong { font: 800 22px/1 var(--font-display); }
.agenda-item__date small { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.agenda-item__title { font-weight: 700; font-size: 16px; }
.agenda-item__meta { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.kind-ticket { --kind: var(--orange); --kind-soft: var(--orange-soft); }
.kind-participated { --kind: var(--violet); --kind-soft: var(--violet-soft); }
.kind-accepted { --kind: var(--green); --kind-soft: var(--green-soft); }
.kind-pending { --kind: var(--amber); --kind-soft: var(--amber-soft); }
.kind-hosted { --kind: var(--blue); --kind-soft: var(--blue-soft); }

/* Gestion d'événements (établissement) */
.manage-card { display: grid; grid-template-columns: 180px 1fr; overflow: hidden; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.manage-card .cover { aspect-ratio: auto; height: 100%; min-height: 160px; }
.manage-card__body { padding: 16px 18px; display: grid; gap: 10px; }
.manage-card__top { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.manage-card__title { font: 800 19px/1.2 var(--font-display); text-decoration: none; }
.manage-card__title:hover { color: var(--accent-ink); }
.manage-card__kpis { display: flex; flex-wrap: wrap; gap: 8px; }
.manage-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) { .manage-card { grid-template-columns: 1fr; } .manage-card .cover { min-height: 150px; aspect-ratio: 16/8; } }

/* ---------- Carte ----------
   Les boutons sont préfixés par .map-layout pour passer devant `.wa button { font: inherit; color: inherit }`.
   Reprend la maquette « artlink-up.com/app/carte » de la landing (.wa-split, .wa-row, .wa-pin, .wa-popup,
   .wa-filter, .wa-zoom) : liste à gauche, fond de carte papier, repères en goutte à la couleur du profil. */
.map-layout {
    --map-bg: #EEE9DF;
    --carousel-h: 128px;
    display: grid; grid-template-columns: 420px minmax(0, 1fr);
    height: calc(100dvh - var(--topbar-h));
}
.map-panel { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--paper); }
.map-panel__head { display: grid; gap: 14px; padding: 24px 22px 12px; }
.map-panel__intro { display: grid; gap: 6px; }
.map-layout .map-eyebrow {
    display: inline-flex; align-items: center; gap: 6px; width: max-content; max-width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
    font: 700 12px/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink);
}
.map-eyebrow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-eyebrow .i { width: 14px; height: 14px; }
.map-eyebrow:hover span { text-decoration: underline; text-underline-offset: 3px; }
.map-title { font-size: clamp(24px, 2.2vw, 30px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }

.map-search { display: flex; gap: 8px; }
.map-search__field {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 999px;
    background: var(--surface); border: 1.5px solid var(--line); cursor: text; transition: border-color .2s, box-shadow .2s;
}
.map-search__field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.map-search__field .i { color: var(--muted); }
.map-search__field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 15px var(--font-body); color: var(--ink); }
.map-search__field input::placeholder { color: var(--hint); }
.map-layout .map-search__filters {
    position: relative; display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
    background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); transition: background-color .2s, border-color .2s, color .2s;
}
.map-search__filters:hover { border-color: var(--line-strong); }
.map-search__filters.is-on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--accent-ink); }
.map-search__count {
    position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
    background: var(--accent); color: #fff; font: 700 11px/19px var(--font-body); text-align: center; box-shadow: 0 0 0 2px var(--paper);
}

/* Filtres rapides : pastilles .wa-filter */
.map-quick {
    display: flex; gap: 8px; margin: 0 -22px; padding: 2px 22px; overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 28px), transparent);
}
.map-quick::-webkit-scrollbar { display: none; }
.map-quick:empty { display: none; }
.map-layout .map-chip {
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 8px 13px; border-radius: 999px; cursor: pointer;
    background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font: 600 13.5px/1 var(--font-body); white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s;
}
.map-chip .i { width: 15px; height: 15px; }
.map-chip:hover { border-color: var(--line-strong); }
.map-chip.is-on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--accent-ink); }
.map-found { min-height: 20px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.map-found span { font-weight: 400; color: var(--hint); }

.map-panel__list { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 10px; padding: 4px 16px 24px; scrollbar-width: thin; }

/* Ligne de résultat : .wa-row */
.map-row {
    display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 14px;
    padding: 10px 16px 10px 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
    color: inherit; text-decoration: none; cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    animation: mapIn .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d, 0) * 40ms);
}
.map-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.map-row.is-active { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); transform: none; }
.map-row__thumb { display: block; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; }
.map-row__thumb .cover { aspect-ratio: auto; height: 100%; }
.map-row__thumb .cover__fallback .i { width: 26px; height: 26px; }
.map-row__body { display: grid; gap: 3px; min-width: 0; }
.map-row__kicker { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 11.5px/1.3 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.map-row__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15.5px; font-weight: 700; line-height: 1.25; }
.map-row__cert { display: inline-flex; vertical-align: -2px; margin-left: 4px; color: var(--blue); }
.map-row__cert .i { width: 16px; height: 16px; fill: var(--blue-soft); }
.map-row__meta { display: flex; align-items: center; min-width: 0; font-size: 13px; color: var(--muted); white-space: nowrap; }
.map-row__meta > * { flex-shrink: 0; }
.map-row__meta > :not(:last-child):not(.rating) { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.map-row__meta > * + *::before { content: "·"; margin: 0 7px; color: var(--hint); }
.map-row__meta .rating { font-size: 13px; }
.map-row__meta .rating .i { width: 13px; height: 13px; }
.map-row__price { align-self: start; padding-top: 2px; font: 800 18px/1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.map-row__price small { margin-left: 1px; font: 500 12px/1 var(--font-body); color: var(--muted); }
.map-row__price.is-free { color: var(--green); font-size: 15px; }
.map-row--skeleton { cursor: default; animation: none; }
.map-row--skeleton:hover { transform: none; box-shadow: none; border-color: var(--line); }
.map-row--skeleton .map-row__thumb { border-radius: 14px; }
.map-row--skeleton .map-row__body { gap: 8px; }
.map-row--skeleton i { display: block; height: 10px; border-radius: 99px; width: 45%; }
.map-row--skeleton i:nth-child(2) { height: 14px; width: 85%; }
.map-row--skeleton i:nth-child(3) { width: 60%; }
.map-more { margin-top: 4px; }
@keyframes mapIn { from { opacity: 0; transform: translateY(10px); } }

/* Vignettes sans photo : dégradés .wa-thumb de la landing */
.cover.map-g0, .cover.map-g1, .cover.map-g2, .cover.map-g3 { background: radial-gradient(circle at 25% 15%, rgba(255, 255, 255, .4), transparent 45%), var(--map-g); }
.cover.map-g0 { --map-g: linear-gradient(135deg, #1C2367, #7B5CF0 55%, #EF4D4D); }
.cover.map-g1 { --map-g: linear-gradient(135deg, #3A9172, #22B5E8); }
.cover.map-g2 { --map-g: linear-gradient(135deg, #EF4D4D, #F59E0B); }
.cover.map-g3 { --map-g: linear-gradient(135deg, #0C0F24, #3B82F7); }

.map-empty { display: grid; justify-items: center; gap: 10px; padding: 40px 20px; text-align: center; }
.map-empty__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); }
.map-empty__icon .i { width: 26px; height: 26px; }
.map-empty__body { display: grid; gap: 4px; }
.map-empty__body b { font: 800 18px/1.2 var(--font-display); }
.map-empty__body small { font-size: 14px; color: var(--muted); max-width: 320px; }
.map-empty--error .map-empty__icon { background: var(--coral-soft); color: var(--coral); }

/* Fond de carte : tuiles grises réchauffées pour rejoindre le papier de la landing */
.map-canvas { position: relative; min-height: 0; overflow: hidden; background: var(--map-bg); }
.map-canvas__map { position: absolute; inset: 0; }
.map-canvas .leaflet-container { width: 100%; height: 100%; background: var(--map-bg); font: 14px/1.45 var(--font-body); color: var(--ink); }
.map-canvas .map-tiles { filter: sepia(.28) saturate(1.15) brightness(1.02); }
.map-canvas .leaflet-control-attribution {
    margin: 0 !important; padding: 3px 8px; border-radius: 10px 0 0 0; font-size: 10.5px;
    background: color-mix(in srgb, var(--surface) 82%, transparent) !important; color: var(--muted);
}
.map-canvas .leaflet-control-attribution a { color: inherit; }

/* Contrôles : .wa-zoom */
.map-ctrl { position: absolute; top: 18px; right: 18px; z-index: 1000; display: grid; gap: 10px; justify-items: end; }
.map-ctrl__zoom { display: grid; overflow: hidden; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.map-layout .map-ctrl__zoom .map-ctrl__btn { border-radius: 0; box-shadow: none; }
.map-layout .map-ctrl__zoom .map-ctrl__btn + .map-ctrl__btn { border-top: 1px solid var(--line); }
.map-layout .map-ctrl__btn {
    display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 14px; cursor: pointer;
    background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow); transition: background-color .15s, color .15s;
}
.map-ctrl__btn:hover { background: var(--tint); color: var(--ink); }
.map-ctrl__btn[data-locate] { color: var(--accent); }
.map-ctrl__btn.is-busy .i { animation: spin 1s linear infinite; }
.map-area, .map-loading {
    position: absolute; top: 18px; left: 50%; z-index: 1000; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; box-shadow: var(--shadow-lg);
}
.map-layout .map-area {
    padding: 12px 18px; border: 0; cursor: pointer; white-space: nowrap;
    background: var(--ink); color: var(--paper); font: 600 14px/1 var(--font-body);
    animation: mapPop .3s cubic-bezier(.3, 1.4, .5, 1) both;
}
.map-area .i { width: 16px; height: 16px; }
.map-area:hover { filter: brightness(1.15); }
.map-loading { padding: 9px; background: var(--surface); }
.map-loading .spinner { width: 20px; height: 20px; border-width: 2.5px; }
@keyframes mapPop { from { opacity: 0; transform: translate(-50%, -8px) scale(.94); } }

/* Repères : .wa-pin (goutte inclinée, couleur du profil) */
.map-pin-wrap { background: none; border: 0; }
.map-pin {
    display: grid; place-items: center; width: 36px; height: 36px; box-sizing: border-box;
    border-radius: 50% 50% 50% 0; background: var(--accent); border: 3px solid #fff; transform: rotate(-45deg);
    box-shadow: -4px 6px 12px -4px rgba(15, 18, 41, .45);
    transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), box-shadow .2s ease, background-color .2s;
    animation: mapDrop .45s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(var(--d, 0) * 35ms);
}
.map-pin .i { width: 16px; height: 16px; color: #fff; transform: rotate(45deg); }
.map-pin.is-hover { transform: rotate(-45deg) scale(1.12); }
.map-pin.is-active {
    transform: rotate(-45deg) scale(1.28); background: var(--accent);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 30%, transparent), -4px 6px 12px -4px rgba(15, 18, 41, .45);
}
@keyframes mapDrop { from { opacity: 0; translate: 0 -18px; } }

/* Position de l'utilisateur : .wa-me-dot, avec halo pulsé comme dans l'app */
.map-me { background: none; border: 0; }
.map-me__dot { position: relative; display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--violet); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(123, 92, 240, .45); }
.map-me__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: rgba(123, 92, 240, .35); animation: mapHalo 2s ease-out infinite; z-index: -1; }
@keyframes mapHalo { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }

/* Bulle : .wa-popup */
.map-popup .leaflet-popup-content-wrapper { padding: 0; overflow: hidden; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.map-popup .leaflet-popup-content { margin: 0; line-height: 1.45; font: 14px/1.45 var(--font-body); }
.map-popup .leaflet-popup-tip { background: var(--surface); box-shadow: none; }
.map-popup a { color: inherit; }
.map-popup a.btn--accent { color: #fff; }
.map-canvas .map-popup a.leaflet-popup-close-button {
    top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 50%;
    background: rgba(15, 18, 41, .5); color: #fff; font: 400 20px/1 var(--font-body); backdrop-filter: blur(6px);
}
.map-canvas .map-popup a.leaflet-popup-close-button:hover { background: rgba(15, 18, 41, .7); color: #fff; }
.map-pop__media { position: relative; display: block; height: 132px; }
.map-pop__media .cover { aspect-ratio: auto; height: 100%; }
.map-pop__media em {
    position: absolute; z-index: 2; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .94); color: #0F1229; font: 700 12px/1 var(--font-body); font-style: normal;
}
.map-pop__media em .i { width: 13px; height: 13px; }
.map-pop__body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.map-pop__kicker { font: 700 11.5px/1.3 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.map-pop__title { font: 700 18px/1.2 var(--font-display); letter-spacing: -.01em; }
.map-pop__meta { display: flex; align-items: center; min-width: 0; font-size: 13px; color: var(--muted); white-space: nowrap; }
.map-pop__meta > * { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; }
.map-pop__meta > :not(:last-child):not(.rating) { display: block; flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.map-pop__meta > :not(:last-child):not(.rating) .i { display: inline-block; vertical-align: -2px; margin-right: 5px; }
.map-pop__meta > * + *::before { content: "·"; margin: 0 7px; color: var(--hint); }
.map-pop__meta .i { width: 14px; height: 14px; }
.map-pop__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.map-pop__price { font: 800 22px/1 var(--font-display); letter-spacing: -.02em; }
.map-pop__price small { margin-left: 2px; font: 500 13px/1 var(--font-body); color: var(--muted); }
.map-pop__price.is-free { color: var(--green); font-size: 18px; }
.map-pop__foot .btn { flex-shrink: 0; }
.map-pop__foot .btn .i { width: 16px; height: 16px; }

@media (prefers-color-scheme: dark) {
    .map-layout { --map-bg: #161A38; }
    .map-canvas .map-tiles { filter: brightness(.82) sepia(.6) hue-rotate(195deg) saturate(1.6); }
    .map-pin, .map-me__dot { border-color: var(--surface); }
    .map-popup .leaflet-popup-close-button { background: rgba(0, 0, 0, .55); }
}

/* Mobile : carte plein écran, recherche flottante et carrousel de fiches en bas (comme l'app) */
@media (max-width: 900px) {
    .map-layout { display: block; position: relative; height: calc(100dvh - var(--topbar-h) - var(--tabbar-h) - env(safe-area-inset-bottom)); }
    .map-panel { display: contents; }
    .map-canvas { position: absolute; inset: 0; }
    .map-panel__head { position: absolute; z-index: 1001; top: 12px; left: 12px; right: 12px; gap: 8px; padding: 0; pointer-events: none; }
    .map-panel__head > * { pointer-events: auto; }
    .map-panel__intro { display: none; }
    .map-search__field, .map-layout .map-search__filters { border-color: transparent; box-shadow: 0 6px 22px -8px rgba(15, 18, 41, .35); }
    .map-quick { margin: 0 -12px; padding: 2px 12px 6px; }
    .map-layout .map-chip { box-shadow: var(--shadow-sm); border-color: transparent; }
    .map-layout .map-chip.is-on { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
    .map-found { justify-self: start; min-height: 0; padding: 6px 11px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 12.5px; }
    .map-found:empty { display: none; }
    .map-ctrl { top: auto; right: 12px; bottom: calc(var(--carousel-h) + 46px); }
    .map-ctrl__zoom { display: none; }
    .map-area, .map-loading { top: auto; bottom: calc(var(--carousel-h) + 20px); }
    .map-canvas .leaflet-bottom { bottom: calc(var(--carousel-h) + 8px); }
    .map-panel__list {
        position: absolute; z-index: 1001; left: 0; right: 0; bottom: 10px;
        display: flex; align-items: stretch; gap: 10px; padding: 4px 16px 8px; overflow-x: auto; overflow-y: hidden;
        scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none;
    }
    .map-panel__list::-webkit-scrollbar { display: none; }
    .map-row { flex: 0 0 min(86vw, 380px); scroll-snap-align: center; grid-template-columns: 80px minmax(0, 1fr) auto; box-shadow: 0 10px 30px -12px rgba(15, 18, 41, .4); }
    .map-row__thumb { width: 80px; height: 80px; }
    .map-row.is-active { box-shadow: 0 0 0 3px var(--accent-soft), 0 10px 30px -12px rgba(15, 18, 41, .4); }
    .map-more { flex: 0 0 auto; align-self: center; width: auto; margin: 0; background: var(--surface); box-shadow: var(--shadow); }
    .map-empty {
        flex: 1 0 100%; grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; gap: 4px 14px;
        padding: 14px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); text-align: left;
    }
    .map-empty__icon { grid-row: span 2; width: 46px; height: 46px; border-radius: 14px; }
    .map-empty__body b { font-size: 16px; }
    .map-empty__body small { font-size: 13px; }
    .map-empty .btn { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
    .map-row, .map-pin, .map-layout .map-area { animation: none; }
    .map-me__dot::after { animation: none; opacity: .4; transform: scale(1.8); }
}

/* ---------- Messagerie ---------- */
.chat-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); height: calc(100dvh - var(--topbar-h)); }
.chat-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--surface); }
.chat-list__head { padding: 18px 18px 12px; display: grid; gap: 12px; }
.chat-list__items { flex: 1; overflow-y: auto; padding: 0 8px 16px; }
.conv { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 14px; text-decoration: none; color: inherit; }
.conv:hover { background: var(--tint); }
.conv.is-active { background: var(--accent-soft); }
.conv__body { flex: 1; min-width: 0; }
.conv__top { display: flex; justify-content: space-between; gap: 8px; }
.conv__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv__time { color: var(--hint); font-size: 12.5px; flex-shrink: 0; }
.conv__preview { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv__unread { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.chat { display: flex; flex-direction: column; min-height: 0; background: var(--paper); }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.chat__head-id { flex: 1; min-width: 0; }
.chat__head-id strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__head-id small { color: var(--muted); font-size: 13px; }
.chat__banner { display: flex; align-items: center; gap: 8px; padding: 9px 18px; font-size: 13.5px; font-weight: 600; background: var(--green-soft); color: var(--green); }
.chat__banner--closed { background: var(--tint); color: var(--muted); }
.chat__messages { flex: 1; overflow-y: auto; padding: 20px clamp(12px, 3vw, 32px); display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: min(560px, 82%); padding: 10px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); align-self: flex-start; white-space: pre-wrap; word-break: break-word; position: relative; }
.msg--me { align-self: flex-end; background: var(--accent); color: #fff; border-color: transparent; border-bottom-right-radius: 6px; }
.msg--them { border-bottom-left-radius: 6px; }
.msg--system { align-self: center; max-width: 90%; background: var(--violet-soft); color: var(--violet); border: 0; font-size: 14px; text-align: center; border-radius: 14px; }
.msg__time { display: block; font-size: 11.5px; opacity: .7; margin-top: 4px; text-align: right; }
.msg__report { position: absolute; top: 4px; right: -36px; opacity: 0; transition: opacity .15s; }
.msg:hover .msg__report { opacity: 1; }
.msg-day { align-self: center; margin: 12px 0 6px; font-size: 12.5px; font-weight: 700; color: var(--hint); text-transform: uppercase; letter-spacing: .06em; }
.chat__composer { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; }
.chat__composer form { display: flex; gap: 10px; align-items: flex-end; }
.chat__composer textarea { flex: 1; min-width: 0; min-height: 46px; max-height: 160px; resize: none; padding: 12px 16px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 500 15px/1.4 var(--font-body); }
.chat__composer textarea:focus { outline: none; border-color: var(--accent); }
.quick-replies { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.quick-replies .chip { font-size: 13px; padding: 6px 12px; }
@media (max-width: 900px) {
    .chat-layout { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - var(--topbar-h) - var(--tabbar-h) - env(safe-area-inset-bottom)); }
    .chat-layout.has-chat .chat-list { display: none; }
    .chat-layout:not(.has-chat) .chat { display: none; }
}

/* ---------- Divers ---------- */
.profile-option { border: 1.5px solid var(--line); transition: border-color .2s ease, box-shadow .2s ease; }
.profile-option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.profile-option:has(input:focus-visible) { outline: 3px solid var(--violet); outline-offset: 2px; }
a.callout { color: inherit; }
.callout span { display: block; }
.media-card--compact .cover { aspect-ratio: 16 / 8; }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--accent-soft); color: var(--ink-2); font-size: 14.5px; }
.callout > .i { color: var(--accent); margin-top: 1px; }
.callout--warning { background: var(--amber-soft); }
.callout--warning > .i { color: var(--amber); }
.callout--danger { background: var(--coral-soft); }
.callout--danger > .i { color: var(--coral); }
.callout--info { background: var(--blue-soft); }
.callout--info > .i { color: var(--blue); }
.callout--success { background: var(--green-soft); }
.callout--success > .i { color: var(--green); }
.callout strong { display: block; color: var(--ink); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.plan--featured { background: var(--dark-bg); color: var(--dark-text); border-color: transparent; box-shadow: 0 0 0 2px var(--violet), var(--shadow-lg); }
.plan__badge { position: absolute; top: -13px; left: 24px; padding: 6px 12px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; font-size: 13px; }
.plan__name { font-size: 24px; font-weight: 800; }
.plan--featured .plan__name { color: #fff; }
.plan__desc { color: var(--muted); font-size: 15px; margin-top: 4px; }
.plan--featured .plan__desc { color: var(--dark-muted); }
.plan__price { margin: 18px 0; display: flex; align-items: baseline; gap: 6px; }
.plan__price span { font: 800 40px/1 var(--font-display); letter-spacing: -.03em; }
.plan__list { display: grid; gap: 10px; margin-bottom: 22px; flex: 1; }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.plan__list .i { color: var(--green); margin-top: 2px; width: 18px; height: 18px; }
.plan--featured .plan__list .i { color: #7FD6B5; }
.plan--current { box-shadow: 0 0 0 2px var(--green); }

.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--surface); }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }

/* Import d'événements en masse (pages/event-import.js) */
.event-import__how { list-style: none; counter-reset: how; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 4px 0 6px; padding: 0; }
.event-import__how li { counter-increment: how; display: grid; gap: 4px; align-content: start; justify-items: start; padding: 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.event-import__how li::before { content: counter(how); display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 4px; border-radius: 50%; background: var(--accent); color: #fff; font: 800 13px/1 var(--font-display); }
.event-import__how span { color: var(--muted); }
.event-import__how .btn { margin-top: 8px; }
@media (max-width: 720px) { .event-import__how { grid-template-columns: minmax(0, 1fr); } }
.event-import__paste { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; overflow-x: auto; }
.event-import__table { max-height: 560px; overflow: auto; }
.event-import__table th { position: sticky; top: 0; z-index: 1; }
.event-import__table td { vertical-align: top; }
.event-import__table tr.is-muted td { background: var(--surface-2); }
.event-import__title { white-space: normal !important; min-width: 200px; font-weight: 700; }
.event-import__note { display: block; margin-top: 3px; font-size: 13px; font-weight: 500; color: var(--muted); }
.event-import__note.is-error { color: var(--coral); font-weight: 600; }
.event-import__done { justify-items: center; text-align: center; padding-block: 40px; }
.event-import__done .chips, .event-import__done .row { justify-content: center; }
.event-import__done-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.event-import__done-icon .i { width: 32px; height: 32px; }

.progress { height: 10px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width .4s ease; }

.steps-line { display: flex; gap: 6px; }
.steps-line span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps-line span.is-done { background: var(--accent); }

.timeline { display: grid; gap: 0; }
.timeline__step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; position: relative; padding-bottom: 16px; }
.timeline__step::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.timeline__step:last-child::before { display: none; }
.timeline__dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--muted); }
.timeline__dot .i { width: 15px; height: 15px; }
.timeline__step.is-done .timeline__dot { background: var(--accent); color: #fff; }
.timeline__step.is-current .timeline__dot { background: var(--accent-soft); color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent); }
.timeline__label { font-weight: 600; padding-top: 3px; }
.timeline__step:not(.is-done):not(.is-current) .timeline__label { color: var(--muted); }

/* Série unique = une teinte (accent du profil), barres fines arrondies côté valeur, 2px d'écart */
.bar-chart { display: flex; align-items: flex-end; gap: 2px; height: 180px; padding-top: 10px; border-bottom: 1px solid var(--line); }
.bar-chart__bar { flex: 1; max-width: 28px; min-width: 3px; border-radius: 4px 4px 0 0; background: var(--accent); cursor: pointer; }
.bar-chart__bar:hover, .bar-chart__bar:focus-visible { filter: brightness(.85); outline: none; }
.bar-chart__labels { display: flex; gap: 2px; margin-top: 6px; }
figure:has(.bar-chart) { position: relative; }
.chart-tip { position: absolute; transform: translate(-50%, -100%); padding: 7px 10px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 13px; white-space: nowrap; pointer-events: none; box-shadow: var(--shadow); z-index: 2; }
.bar-chart__labels span { flex: 1; max-width: 28px; min-width: 3px; text-align: center; font-size: 11px; color: var(--hint); overflow: hidden; white-space: nowrap; }

.kbd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stack { display: grid; gap: 16px; }
.stack--sm { gap: 8px; }
.stack--lg { gap: 28px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.center { text-align: center; }
.w-full { width: 100%; }

.scanner-view { position: relative; overflow: hidden; border-radius: 24px; background: #000; aspect-ratio: 3 / 4; max-height: 70vh; margin: 0 auto; width: 100%; max-width: 480px; }
.scanner-view video { width: 100%; height: 100%; object-fit: cover; }
.scanner-view__frame { position: absolute; inset: 18%; border-radius: 22px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45); border: 3px solid rgba(255, 255, 255, .9); }
.scan-result { padding: 18px; border-radius: 18px; display: grid; gap: 6px; }
.scan-result--ok { background: var(--green-soft); }
.scan-result--ko { background: var(--coral-soft); }

.legal-links { display: flex; flex-wrap: wrap; gap: 8px; }
.welcome-banner { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 18px; background: var(--dark-bg); color: #fff; margin-bottom: 22px; }
.welcome-banner .i { color: #7FD6B5; }
.welcome-banner small { display: block; color: var(--dark-muted); }

@media (prefers-reduced-motion: reduce) {
    .loc-chip--pulse { animation: none; box-shadow: 0 0 0 3px var(--accent-soft); }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.callout code, .chip code { font: 600 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface, #fff); padding: 1px 6px; border-radius: 6px; }
.chat__composer [data-quick-replies]:empty { display: none; }
