/* HELLO VIETNAM (couleurs WASTHERE) — feuille de style (mobile d'abord) */
:root {
  /* Couleurs identiques à WASTHERE ; mise en page et titres HELLO VIETNAM */
  --bg: #0B1120; --bg-2: #0F1626; --surface: #141C30; --surface-2: #1A2540; --line: #22304F; --line-2: #2A3757;
  --text: #F4F6FB; --text-2: #C9D1E3; --muted: #9AA6BF;
  --accent: #18D9C2; --accent-ink: #04211D; --accent-soft: rgba(24, 217, 194, .15);
  --ink: var(--surface-2);    /* pilule « voir » */
  --lime: #D9F99D; --live: #FF3D7F; --live-ink: #fff; --warn: #FFB547;
  --btn: var(--accent); --btn-ink: var(--accent-ink);
  --r: 18px; --r-lg: 28px; --pill: 999px;
  --gutter: 16px; --tabbar: 84px;
  --display: 'Fredoka', 'Be Vietnam Pro', system-ui, sans-serif;   /* titres : Fredoka Bold 700 */
  --title: var(--display);
  --heading: Anton, Impact, "Arial Narrow", sans-serif;            /* titres de 2e niveau */
  --font: 'Be Vietnam Pro', system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--font); min-height: 100vh; padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
img, video { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #7CF0E1; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); border-radius: 10px; }
.ico { flex: none; }
.muted { color: var(--muted); } .small { font-size: 13px; } .accent { color: var(--accent); } .ok { color: var(--lime); }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 560px; }
.center { text-align: center; padding-top: 64px; padding-bottom: 64px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.empty { padding: 40px 0; color: var(--muted); text-align: center; }
.display { font-family: var(--heading); font-weight: 400; letter-spacing: .3px; line-height: 1.02; margin: 0; }   /* titres de 2e niveau : Anton, casse normale (comme WASTHERE) */
.display--sm { font-size: 22px; } .display--md { font-size: 26px; } .display--lg { font-size: clamp(26px, 4vw, 42px); } .display--xl { font-size: 96px; }
.h3 { font-size: 17px; font-weight: 600; margin: 0 0 12px; }

/* --- Boutons et contrôles --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--pill); border: 1px solid transparent; font-weight: 600; font-size: 15px; white-space: nowrap; transition: filter .15s; }
.btn:hover { filter: brightness(1.08); }
.btn--primary { background: var(--btn); color: var(--btn-ink); }
.btn--primary:hover { color: var(--btn-ink); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { color: var(--text); background: var(--surface); }
.btn--dark { background: var(--bg); color: var(--text); }
.btn--dark:hover { color: var(--text); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 56px; font-size: 16px; }
.btn--block { width: 100%; }
.iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--surface-2); color: var(--text); }
.iconbtn:hover { color: var(--accent); }
.iconbtn--lg { width: 52px; height: 52px; }
.iconbtn--accent { background: var(--btn); color: var(--btn-ink); }
.iconbtn--glass { background: rgba(11, 17, 32, .55); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(6px); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: var(--pill); border: 1px solid var(--line-2); color: var(--text); font-size: 13px; font-weight: 500; white-space: nowrap; }
.chip:hover { color: var(--text); background: var(--surface); }
.chip.is-on { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); font-weight: 600; }
.chip--dark { background: rgba(11, 17, 32, .72); border-color: transparent; backdrop-filter: blur(6px); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips__sep { flex: none; width: 1px; background: var(--line-2); margin: 6px 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.dot--live { background: var(--live); box-shadow: 0 0 0 0 rgba(255, 61, 127, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 61, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 61, 127, 0); } }
@media (prefers-reduced-motion: reduce) { .dot--live { animation: none; } * { scroll-behavior: auto !important; } }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--pill); font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--text-2); }
.badge--live { background: var(--live); color: #fff; }
.badge--ok { background: var(--accent-soft); color: var(--accent); }
.badge--warn { background: rgba(255, 181, 71, .15); color: var(--warn); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.flash { margin: 12px auto; max-width: 1328px; padding: 14px 18px; border-radius: 14px; background: var(--accent-soft); color: var(--text); border: 1px solid rgba(24, 217, 194, .4); }
.flash--error { background: rgba(255, 61, 127, .12); border-color: rgba(255, 61, 127, .45); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; color: var(--muted); }
.field input, .field textarea, .field select { min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); width: 100%; }
.field textarea { resize: vertical; }
.field__err { color: #FF8FB4; font-size: 13px; }
.field--search { flex-direction: row; align-items: center; gap: 10px; flex: 1; min-height: 54px; padding: 0 16px; border-radius: 16px; background: var(--surface-2); color: var(--muted); }
.field--search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; color: var(--text); min-height: 52px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin-top: 2px; }

/* --- En-tête --- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(11, 17, 32, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--surface-2); }
.topbar__in { max-width: 1360px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 14px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.logo .ico { color: var(--accent); }
.logo span { font-family: var(--heading); font-weight: 400; font-size: 22px; letter-spacing: 2px; }
.logo--sm span { font-size: 18px; }
.axis { display: flex; padding: 4px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); }
.axis a { padding: 8px 14px; border-radius: var(--pill); color: var(--text-2); font-size: 13px; font-weight: 500; }
.axis a.is-on { background: var(--btn); color: var(--btn-ink); font-weight: 600; }
.mainnav { display: none; gap: 4px; }
.mainnav a { padding: 10px 14px; border-radius: 10px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.mainnav a.is-on { background: var(--surface-2); color: var(--accent); }
.topbar__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar__end form { margin: 0; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: 52px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; min-width: 170px; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); }
.lang a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); }
.lang a:hover, .lang a[aria-current] { background: var(--surface-2); }
.avatar { display: block; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; background: var(--surface-2); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--ring { border: 2px solid var(--accent); }
.avatar--lg { width: 50px; height: 50px; }
.avatar--white { border: 2px solid var(--text); }
.hide-sm { display: none !important; }
@media (max-width: 419px) {
  .topbar__in { gap: 6px; padding-left: 12px; padding-right: 12px; }
  .axis a { padding: 8px 9px !important; font-size: 12px; }
  .topbar__end { gap: 6px; }
  .topbar__end .btn--sm { padding: 0 12px; font-size: 13px; }
}
@media (max-width: 379px) {
  .axis a { padding: 7px 7px !important; font-size: 11.5px; }
  .topbar__end .btn--sm { padding: 0 10px; }
  .lang summary { min-width: 36px !important; }
}
@media (max-width: 719px) {
  .topbar__in { gap: 8px; }
  .logo span { display: none; }
  .axis a { padding: 8px 11px; }
  .lang summary { min-width: 40px; }
}

/* --- Barre d'onglets mobile --- */
.tabbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding: 0 8px env(safe-area-inset-bottom); background: var(--bg-2); display: flex; align-items: center; justify-content: space-around; border-top: 1px solid var(--surface-2); }
.tabbar a { display: grid; place-items: center; width: 52px; height: 52px; color: var(--text-2); border-radius: 14px; }
.tabbar a.is-on { color: var(--accent); }
.tabbar__fab { width: 66px !important; height: 66px !important; margin-top: -40px; border-radius: 50% !important; background: var(--accent); color: var(--accent-ink) !important; border: 5px solid var(--bg); }

/* --- Pied de page --- */
.footer { border-top: 1px solid var(--surface-2); margin-top: 48px; }
.footer__in { max-width: 1360px; margin: 0 auto; padding: 24px var(--gutter); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; font-size: 13px; }
.footer__langs { display: flex; gap: 14px; }
.footer__langs a { color: var(--text-2); }

/* --- Accueil --- */
.row-head { display: flex; align-items: center; gap: 10px; }
.row-head--title { justify-content: space-between; margin: 18px 0 14px; }
.stories-row { padding-top: 16px; }
.flip { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--text); }
.flip:hover { background: var(--surface-2); color: var(--accent); }
.flip--on { background: rgba(24, 217, 194, .22); color: var(--accent); }
.avatars { display: flex; gap: 14px; overflow-x: auto; padding: 10px 0 6px; scrollbar-width: none; }
.avatars::-webkit-scrollbar { display: none; }
.avatars__item { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 70px; color: var(--text-2); font-size: 11px; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.avatars__item > span:last-child { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ring { position: relative; display: block; width: 66px; height: 66px; border-radius: 50%; padding: 3px; background: #3A4A6E; }
.ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); }
.ring--live { background: linear-gradient(var(--live), #FF7A2D); }
.ring--add { background: transparent; border: 2px dashed #3A4A6E; }
.ring__plus { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--live); border: 2px solid var(--bg); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; line-height: 1; }
.ring__badge { position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); padding: 1px 7px; border-radius: 6px; background: var(--live); color: #fff; font-size: 10px; font-weight: 700; }
.searchbar { display: flex; gap: 10px; margin: 14px 0 8px; }
.grid-events { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ecard { position: relative; display: block; aspect-ratio: 5 / 6; border-radius: 22px; overflow: hidden; color: var(--text); background: var(--surface); }
.ecard:hover { color: var(--text); }
.ecard img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ecard:hover img { transform: scale(1.04); }
.ecard__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 17, 32, 0) 45%, rgba(11, 17, 32, .92)); }
.ecard__price { position: absolute; top: 10px; right: 10px; padding: 2px 9px; border-radius: 7px; background: var(--text); color: var(--bg); font-size: 11px; font-weight: 700; }
.ecard__live { position: absolute; top: 10px; left: 10px; }
.ecard__body { position: absolute; left: 12px; right: 10px; bottom: 12px; display: flex; flex-direction: column; }
.ecard__title { font-weight: 600; font-size: 15px; line-height: 1.25; }
.ecard__meta { font-size: 11px; color: var(--text-2); }

/* --- Bandeau d'accueil (titre géant, porte-voix, carte rouge) --- */
.hv-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 28px; align-items: center; padding: 26px 0 8px; overflow: hidden; }
.hv-hero__title { position: relative; margin: 0; font: 700 clamp(54px, 12vw, 150px)/.86 var(--display); letter-spacing: -1px; text-transform: uppercase; color: var(--text); overflow-wrap: anywhere; }
.hv-hero__title span { display: block; }
.hv-hero__horn { position: absolute; top: -.18em; width: .82em; height: .82em; margin-left: .08em; transform: rotate(-14deg); }
.hv-hero__text { margin: 0; max-width: 62ch; font-size: clamp(14px, 1.5vw, 19px); line-height: 1.55; text-align: justify; hyphens: auto; color: var(--text); position: relative; z-index: 1; }
.hv-hero__text a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.hv-hero__map { position: absolute; right: 0; top: 0; width: clamp(90px, 16vw, 230px); height: auto; opacity: .95; pointer-events: none; }
.hv-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
@media (max-width: 719px) {
  .hv-hero { padding-right: 70px; }
  .hv-hero__map { right: 0; top: 18px; width: 92px; opacity: .9; }
  .hv-hero__text { text-align: left; }
}
@media (min-width: 720px) and (max-width: 1023px) {
  .hv-hero { padding-right: calc(16vw + 20px); }
}
@media (min-width: 1024px) {
  /* Ordinateur : la carte a sa propre colonne et une hauteur fixe, elle n'est jamais coupée */
  .hv-hero { grid-template-columns: auto minmax(220px, 1fr) auto; padding: 40px 0 32px; overflow: visible; }
  .hv-hero__title { grid-column: 1; grid-row: 1 / span 2; font-size: clamp(54px, 10.5vw, 150px); }
  .hv-hero__text { grid-column: 2; align-self: end; }
  .hv-hero__cta { grid-column: 2; align-self: start; }
  .hv-hero__map { position: static; grid-column: 3; grid-row: 1 / span 2; align-self: center; width: auto; height: clamp(280px, 28vw, 420px); }
}

/* --- Fil vertical plein écran --- */
.is-immersive { padding-bottom: 0; }
.is-immersive .topbar { display: none; }
.feed-top { position: fixed; z-index: 20; top: 0; left: 0; right: 0; padding: 14px var(--gutter); display: flex; align-items: center; gap: 10px; background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); }
.feed-scope { display: flex; gap: 6px; }
.feed { height: 100vh; height: 100dvh; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; outline: none; }
.slide { position: relative; height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #05080F; }
.slide__media { width: 100%; height: 100%; object-fit: cover; }
.slide__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .4) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, .78) 100%); pointer-events: none; }
.slide__event { position: absolute; top: 70px; right: var(--gutter); font-size: 12px; }
.slide__actions { position: absolute; right: 10px; bottom: calc(var(--tabbar) + 120px); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; color: var(--text); font-size: 12px; font-weight: 600; min-width: 48px; }
.act.is-on .ico { fill: var(--live); stroke: var(--live); }
/* Filigrane en haut des vidéos (40 % d'opacité) */
.slide__wm { position: absolute; left: 0; right: 0; top: 152px; z-index: 2; text-align: center; pointer-events: none; user-select: none;
  font: 700 19px/1 'Fredoka', var(--font); letter-spacing: .6px; color: #fff; opacity: .4; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.slide__caption { position: absolute; left: var(--gutter); right: 80px; bottom: calc(var(--tabbar) + 20px); line-height: 1.45; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.slide__user { color: var(--text); font-weight: 700; font-size: 16px; }
.slide__text { margin: 4px 0; font-size: 14px; }
.slide__meta { margin: 0; font-size: 13px; font-weight: 500; color: #E6EAF3; }
.slide--empty { display: grid; place-content: center; gap: 16px; text-align: center; }
.feed-nav { display: none; }
.feed-hint { position: fixed; z-index: 15; left: 0; right: 0; top: 122px; margin: 0; text-align: center; font-size: 11px; color: #E6EAF3; pointer-events: none; transition: opacity .4s; }
.feed-hint.is-hidden { opacity: 0; }

/* --- Carte --- */
.mapview { display: flex; flex-direction: column-reverse; }
.mapview__map { height: 60vh; min-height: 360px; background: #0F1626; }
.mapview__list { padding: 18px var(--gutter); }
.mlist { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mlist__item { display: flex; gap: 12px; padding: 10px; border-radius: 18px; background: var(--surface); color: var(--text); }
.mlist__item:hover, .mlist__item.is-on { color: var(--text); background: var(--surface-2); outline: 1px solid var(--accent); }
.mlist__item img { width: 78px; height: 78px; border-radius: 14px; object-fit: cover; }
.mlist__item > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wt-pin { width: 54px; height: 54px; border-radius: 50%; border: 3px solid #fff; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); background: var(--surface); }
.wt-pin img { width: 100%; height: 100%; object-fit: cover; }
.wt-pin.is-live { border-color: var(--live); }
.wt-pin.is-past { filter: grayscale(.8); opacity: .8; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--bg) !important; color: var(--text) !important; }
.leaflet-popup-content { font-family: var(--font); margin: 12px 14px !important; }
.leaflet-popup-content a { font-weight: 600; }
.leaflet-container { font-family: var(--font); background: #0F1626; }

/* --- Événement --- */
.hero { position: relative; height: 300px; overflow: hidden; border-radius: 0 0 28px 28px; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 17, 32, .55), rgba(11, 17, 32, 0) 40%, rgba(11, 17, 32, .6)); }
.hero__bar { position: absolute; top: 16px; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; }
.event { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 20px; }
.event__main { flex: 999 1 560px; min-width: 0; }
.event__side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.event__title { font-family: var(--display); font-size: clamp(28px, 4.5vw, 48px); font-weight: 700; line-height: 1.1; margin: 0; }
.event__meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 12px 0 20px; color: var(--text-2); font-size: 14px; }
.event__meta span { display: inline-flex; align-items: center; gap: 8px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
.stat { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--r); background: var(--surface-2); color: var(--accent); }
.stat b { display: block; color: var(--text); font-size: 18px; }
.stat span { color: var(--muted); font-size: 12px; }
.people-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 24px; }
.people-row__item { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 64px; color: var(--text-2); font-size: 11px; text-align: center; }
.people-row__item img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs a { padding: 12px 16px; color: var(--muted); font-weight: 500; border-bottom: 3px solid transparent; }
.tabs a.is-on { color: var(--text); border-color: var(--accent); }
.grid-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.tile { position: relative; display: block; aspect-ratio: 9 / 14; border-radius: 14px; overflow: hidden; background: var(--surface); color: var(--text); }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; }
.tile__meta { position: absolute; left: 10px; bottom: 8px; font-size: 12px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.prose { margin-top: 28px; color: var(--text-2); }
.prose p { margin: 0 0 12px; }
.price { font-family: var(--display); font-weight: 700; font-size: 42px; margin: 0; line-height: 1.1; }
.ttype { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.ttype > span:first-child { grid-column: 1 / -1; display: flex; flex-direction: column; }
.ttype__price { font-weight: 700; }
.ttype select { min-height: 44px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); }
.ttype.is-off { opacity: .5; }
.card--map { position: relative; padding: 0; overflow: hidden; }
.minimap { height: 220px; }
.card--map .btn { position: absolute; right: 12px; bottom: 12px; z-index: 500; }

/* --- Personnes --- */
.people { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 24px; }
.people__main { flex: 999 1 600px; min-width: 0; }
.people__side { flex: 1 1 300px; }
.people__side .card { display: flex; flex-direction: column; gap: 14px; }
.grid-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 16px; }
.pcard { border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.pcard__cover { position: relative; height: 84px; background: linear-gradient(135deg, #1A2540, #0E3F78); }
.pcard__cover > img { width: 100%; height: 100%; object-fit: cover; }
.pcard__avatar { position: absolute; left: 16px; bottom: -30px; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 3px solid var(--surface); }
.pcard__avatar.is-live { border-color: var(--live); }
.pcard__avatar img { width: 100%; height: 100%; object-fit: cover; }
.pcard__body { padding: 38px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.pcard__body form { margin-top: 8px; }
.pcard__name { color: var(--text); font-weight: 600; font-size: 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { padding: 5px 10px; border-radius: var(--pill); background: var(--surface-2); color: var(--text); font-size: 12px; }
.pill--accent { background: var(--accent-soft); color: var(--accent); }
.pill--quiet { background: none; color: var(--muted); }
.lf { display: flex; gap: 12px; align-items: center; color: var(--text); font-size: 14px; }
.lf:hover { color: var(--text); }
.lf > span:nth-child(2) { flex: 1; min-width: 0; }
.lf img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--live); }
.lf img.sq { border-radius: 12px; border: 0; }

/* --- Profil --- */
.pcover { position: relative; height: 200px; background: linear-gradient(135deg, #1A2540, #0E3F78); overflow: hidden; }
.pcover img { width: 100%; height: 100%; object-fit: cover; }
.pcover__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 17, 32, .2), var(--bg)); }
.profile { position: relative; margin-top: -70px; }
.profile__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 28px; }
.profile__avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--text); }
.profile__id { flex: 1 1 260px; }
.profile__id h1 { margin: 0; font: 700 28px/1.1 var(--display); }
.profile__id p { margin: 0; }
.profile__bio { margin-top: 6px !important; color: var(--text-2); }
.profile__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; text-align: center; }
.profile__stats b { display: block; font-size: 20px; }
.profile__stats span { font-size: 12px; color: var(--muted); }
.profile__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.profile__cta form { margin: 0; }
.badges { margin-top: 28px; }
.badges .row-head { justify-content: space-between; }
.badges__row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.stamp { flex: none; width: 150px; padding: 12px; border-radius: 16px; background: var(--surface-2); color: var(--text); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; }
.stamp img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px dashed var(--accent); padding: 3px; }
.ptabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 24px 0 14px; }
.ptabs a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: var(--r); background: var(--surface-2); color: var(--accent); font-size: 11px; text-align: center; border: 1px solid transparent; }
.ptabs a span { color: var(--muted); }
.ptabs a.is-on { border-color: var(--accent); }
.grid-media--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* --- Wallet, paiement, billet --- */
.wallet { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 24px; }
.wallet__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.wallet__side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }
.balance { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 26px; border-radius: 28px; background: var(--accent); color: var(--accent-ink); }
.balance p { margin: 0; }
.balance__label { font-weight: 600; font-size: 14px; }
.balance__value { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 7vw, 72px); line-height: 1.05; }
.txlist { list-style: none; margin: 0; padding: 0; }
.txlist li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.txlist img, .txlist__ico { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; }
.txlist__ico { display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.txlist__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.txlist__txt b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txlist__amt { font-weight: 700; white-space: nowrap; }
.txlist__amt.is-plus { color: var(--lime); }
.amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.amount input { position: absolute; opacity: 0; }
.amount span { display: grid; place-items: center; min-height: 50px; border-radius: 14px; border: 1px solid var(--line-2); font-weight: 600; cursor: pointer; }
.amount input:checked + span { border: 2px solid var(--accent); background: var(--surface-2); }
.amount input:focus-visible + span { outline: 3px solid var(--accent); }
.paycard { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--surface-2); font-size: 14px; }
.paycard__brand { padding: 3px 8px; border-radius: 6px; background: var(--text); color: var(--bg); font-size: 11px; font-weight: 800; }
.paycard .small { margin-left: auto; }
.backlink { display: inline-flex; align-items: center; gap: 6px; margin: 20px 0 12px; color: var(--text-2); }
.evline { display: flex; gap: 14px; align-items: center; margin: 16px 0; padding: 12px; }
.evline img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.evline div { display: flex; flex-direction: column; }
.line { display: flex; justify-content: space-between; gap: 12px; }
.line--total { padding-top: 12px; border-top: 1px solid var(--line); font-weight: 700; font-size: 17px; }
.paymethod { display: flex; gap: 12px; align-items: center; margin: 16px 0; padding: 14px; border-radius: 18px; border: 2px solid var(--accent); background: var(--surface-2); }
.paymethod > span:last-child { display: flex; flex-direction: column; }
.paymethod__ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.ticket { margin: 8px 0 16px; border-radius: 26px; overflow: hidden; background: var(--text); color: var(--bg); }
.ticket__img { position: relative; height: 160px; }
.ticket__img img { width: 100%; height: 100%; object-fit: cover; }
.ticket__img > div { position: absolute; left: 18px; right: 18px; bottom: 14px; color: var(--text); display: flex; flex-direction: column; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.ticket__info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px 18px; font-size: 12px; color: #4A5672; }
.ticket__info b { display: block; font-size: 14px; color: var(--bg); }
.ticket__cut { margin: 0 18px; border-top: 2px dashed #C9D1E3; }
.ticket__qr { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px; }
.ticket__qr code { font-size: 13px; color: #4A5672; letter-spacing: 1px; }
#qr { width: 180px; height: 180px; }
#qr svg { width: 180px; height: 180px; display: block; }
#qr svg path { fill: #0B1120; }

/* --- Capture --- */
.capture { min-height: 100vh; min-height: 100dvh; }
.cap-step[data-step="pick"], .cap-step[data-step="publish"] { max-width: 560px; margin: 0 auto; padding: 20px var(--gutter) calc(40px + env(safe-area-inset-bottom)); }
/* Écran de capture : pas de barre d'onglets (elle recouvrait le bouton « Publier la story » sur mobile) */
.is-capture .tabbar { display: none !important; }
.cap-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cap-events { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.cap-event { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-align: left; }
.cap-event:hover { border-color: var(--accent); }
.cap-event img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.cap-event > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.cap-msg { min-height: 22px; color: var(--text-2); }
.cap-msg.is-error { color: #FF8FB4; }
.demo-geo { display: flex; gap: 8px; align-items: center; padding: 12px; border-radius: 14px; border: 1px dashed var(--warn); color: var(--warn); font-size: 13px; }
.cap-step[data-step="camera"] { position: fixed; inset: 0; z-index: 50; background: #000; }
.cap-video { width: 100%; height: calc(100% - 200px); object-fit: cover; border-radius: 0 0 28px 28px; background: #111; }
.cap-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 10px; align-items: center; }
.cap-perim { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--pill); background: rgba(24, 217, 194, .92); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.cap-stamp { position: absolute; left: 14px; bottom: 216px; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .55); font-size: 12px; font-variant-numeric: tabular-nums; }
.cap-modes { position: absolute; left: 0; right: 0; bottom: 140px; display: flex; justify-content: center; gap: 28px; }
.cap-modes button { background: none; border: 0; min-height: 44px; color: var(--muted); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; }
.cap-modes button.is-on { color: var(--accent); }
.cap-controls { position: absolute; left: 0; right: 0; bottom: 44px; display: flex; align-items: center; justify-content: space-around; }
.cap-gallery { width: 52px; height: 52px; border-radius: 14px; border: 1px dashed #3A4A6E; color: #3A4A6E; display: grid; place-items: center; }
.cap-gallery--on { border: 2px solid var(--accent); color: var(--accent); background: rgba(11, 17, 32, .55); cursor: pointer; }
.cap-gallery--on:hover { background: var(--accent-soft); }
.cap-shutter { width: 84px; height: 84px; border-radius: 50%; border: 5px solid #fff; background: none; display: grid; place-items: center; padding: 0; }
.cap-shutter span { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); transition: all .2s; }
.cap-shutter.is-rec span { width: 34px; height: 34px; border-radius: 8px; background: var(--live); }
.cap-note { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; text-align: center; font-size: 11px; color: var(--muted); }
.cap-preview { border-radius: 22px; overflow: hidden; margin-bottom: 16px; background: #000; max-height: 50vh; display: grid; place-items: center; }
.cap-preview img, .cap-preview video { max-height: 50vh; width: auto; }
.seg { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg legend { margin-bottom: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; place-items: center; min-height: 48px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text-2); font-weight: 500; cursor: pointer; }
.seg input:checked + span { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid var(--accent); }

/* --- Auth --- */
.auth { padding-top: 32px; padding-bottom: 40px; }
.auth .stack { margin: 20px 0; }
.demo { margin-top: 20px; border-style: dashed; }
.demo code { display: inline-block; margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: var(--bg); color: var(--accent); }

/* --- Tablette et desktop --- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .hide-sm { display: inline-flex !important; }
  .grid-events { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-media { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .hero { height: 420px; }
  .pcover { height: 280px; }
  .profile { margin-top: -90px; }
  .profile__avatar { width: 160px; height: 160px; }
}
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .mainnav { display: flex; }
  .mapview { flex-direction: row; height: calc(100vh - 66px); }
  .mapview__list { width: 420px; flex: none; overflow-y: auto; border-right: 1px solid var(--surface-2); }
  .mapview__map { flex: 1; height: auto; }
  .is-immersive { padding-bottom: 0; }
  .feed { scroll-snap-type: y mandatory; }
  .slide { display: grid; place-items: center; background: #05080F; }
  .slide__media { width: auto; height: calc(100% - 40px); aspect-ratio: 9 / 16; max-width: 100%; border-radius: 28px; }
  .slide__shade { display: none; }
  .slide__actions { right: calc(50% - 280px); bottom: 140px; }
  .slide__caption { left: calc(50% - 250px); right: auto; max-width: 400px; bottom: 50px; }
  .slide__event { right: calc(50% - 250px); }
  .slide__wm { top: 40px; }
  .feed-nav { display: flex; flex-direction: column; gap: 12px; position: fixed; right: 40px; top: 50%; transform: translateY(-50%); z-index: 20; }
  .feed-hint { display: none; }
  .is-immersive .tabbar { display: none; }
}
@media (max-width: 1023px) {
  .is-immersive .tabbar { background: rgba(15, 22, 38, .92); }
}

/* KYC */
.kyc { padding-top: 20px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }
.kyc fieldset { margin: 0; min-width: 0; }
.kyc legend { padding: 0; margin-bottom: 4px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.field__error { color: var(--live); font-size: 13px; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.check-line input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.kyc__file input[type=file] { min-height: auto; padding: 12px; }
.kycbox { display: flex; flex-direction: column; gap: 10px; }
.kycbox__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* Un élément masqué reste masqué, même s'il est stylé en flex ou en grille */
[hidden] { display: none !important; }

/* Lier une TV */
.tvlink { padding-top: 20px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }
.tvlink__code { font-family: var(--display); font-weight: 700; font-size: 34px !important; letter-spacing: 8px; text-align: center; text-transform: uppercase; }
.tvlink__dev { display: flex; align-items: center; gap: 12px; }
.tvlink__dev > span:nth-child(2) { flex: 1; min-width: 0; }

/* --- Business : message de la page de connexion --- */
.bizpitch { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; margin: 22px 0 6px; padding: 16px 18px; border-radius: var(--r); color: var(--text);
  border: 1px solid rgba(24, 217, 194, .45); background: radial-gradient(130% 160% at 0% 0%, rgba(24, 217, 194, .22), transparent 60%), var(--surface); }
.bizpitch:hover { color: var(--text); border-color: var(--accent); }
.bizpitch__rate { font: 700 34px/1 var(--display); color: var(--accent); letter-spacing: .3px; }
.bizpitch__text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.bizpitch__text b { font-size: 15px; }
.bizpitch__text s { color: var(--muted); }
.bizpitch__go { font-weight: 600; color: var(--accent); font-size: 13.5px; }

/* --- Business : présentation et inscription --- */
.bizland { padding-bottom: 40px; }
.bizland__hero { padding-top: 48px; padding-bottom: 24px; }
.bizland__hero > * { max-width: 900px; }
.bizland__kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: .4px; }
.bizland__h1 { font-size: clamp(38px, 7vw, 76px); text-wrap: balance; }
.bizland__lead { font-size: clamp(16px, 2vw, 19px); color: var(--text-2); max-width: 62ch; margin: 16px 0 22px; }
.bizland__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.bizland__compare { display: grid; gap: 18px; padding-top: 28px; padding-bottom: 28px; }
.cmp { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.cmp__col { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.cmp__col--us { border-color: var(--accent); }
.cmp__label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.cmp__value { font: 700 32px/1 var(--display); }
.cmp__bar { height: 10px; border-radius: var(--pill); background: var(--line); position: relative; overflow: hidden; }
.cmp__bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--accent); border-radius: var(--pill); }
.cmp__bar--them::after { background: var(--live); opacity: .7; }
.calc { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); align-items: end; }
.calc__out { margin: 0; font-size: 15px; }
.calc__out b { display: block; font: 700 34px/1.1 var(--display); color: var(--lime); }
.bizland__features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); padding-top: 16px; padding-bottom: 16px; }
.feat { padding: 20px; }
.feat__ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }
.feat p { margin: 0; }
.bizland__steps { padding-top: 24px; }
.bizland__steps ol { list-style: none; counter-reset: s; padding: 0; margin: 18px 0 22px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.bizland__steps li { counter-increment: s; display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 16px 58px; position: relative; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.bizland__steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.bizreg { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 48px; }
.bizreg__points { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); }
.bizreg__form fieldset { margin: 0; min-width: 0; }
.bizreg__form legend { padding: 0 6px; }
@media (min-width: 1024px) { .bizreg { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } .bizreg__intro { position: sticky; top: 96px; } }

/* --- Signalements --- */
.reportlink { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.reportlink:hover { color: var(--live); }
.report .reasons { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.reason { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; }
.reason:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.reason input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.reason span { display: flex; flex-direction: column; gap: 2px; }

/* --- Modifier mon profil --- */
.pedit { padding-bottom: 48px; }
.pedit > .display { margin-bottom: 18px; }
.pedit .card { padding: 20px; }
.pedit__cover { position: relative; height: 130px; margin-bottom: 52px; border-radius: var(--r); background: var(--cover, linear-gradient(135deg, #1A2540, #0E3F78)) center / cover no-repeat; }
.pedit__avatar { position: absolute; left: 18px; bottom: -42px; width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 4px solid var(--surface); background: var(--surface-2); }
.pedit__remove { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 10px 0 4px; }
.pedit__pwd { margin-top: 18px; }
.pedit__pwd summary { cursor: pointer; margin: 0; }
.pedit__pwd[open] summary { margin-bottom: 14px; }
.pedit .field select { appearance: auto; }

/* Titre HELLO <pays> : plus petit pour les noms longs */
.hv-hero__title--long { font-size: clamp(40px, 8.5vw, 112px) !important; }
.hv-hero__title--xlong { font-size: clamp(32px, 6.4vw, 84px) !important; }
@media (min-width: 1024px) {
  .hv-hero__title--long { font-size: clamp(48px, 7.4vw, 112px) !important; }
  .hv-hero__title--xlong { font-size: clamp(40px, 5.4vw, 84px) !important; }
}

/* --- Pré-accueil : choix du pays --- */
.is-prehome .tabbar { display: none !important; }
.is-prehome { padding-bottom: 0; }
.prehome { max-width: 1180px; margin: 0 auto; padding: 18px var(--gutter) 40px; }
.prehome__top { display: flex; justify-content: flex-end; }
.prehome__head { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 6px 0 34px; text-align: center; }
.prehome__logo span { display: inline !important; font-size: clamp(40px, 7vw, 64px); letter-spacing: 3px; }
.prehome__logo .ico { width: clamp(30px, 5vw, 44px); height: auto; }
.prehome__title { margin: 0; font-size: 15px; font-weight: 500; color: var(--text-2); }
.prehome__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 34px 48px; }
.prehome__h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 14px; }
.prehome__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ctry { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--text-2); color: var(--text); font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.ctry:hover, .ctry:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ctry.is-current { border-color: var(--accent); color: var(--accent); }
.ctry.is-current:hover { color: var(--accent-ink); }
.ctry__go { font-size: 13px; opacity: .8; }
.ctry--off { border-color: var(--line-2); color: var(--muted); opacity: .55; cursor: default; }
.prehome__note { margin-top: 34px; text-align: center; }

/* Pied de page : changer de pays */
.footer__country summary { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; width: auto; min-width: 0; }
.footer__country ul { top: auto; bottom: 52px; right: auto; left: 0; }

/* --- Envoi des stories : barre de progression (toutes les pages) --- */
.upbar { position: fixed; z-index: 1200; top: 72px; left: 50%; transform: translateX(-50%); width: min(460px, calc(100% - 24px));
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(20, 28, 48, .96); border: 1px solid var(--line-2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45); backdrop-filter: blur(10px); }
.upbar img, .upbar__ph { flex: none; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.upbar__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.upbar__text { font-size: 14px; font-weight: 600; }
.upbar__title { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upbar__track { height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.upbar__fill { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .3s; }
.upbar[data-status="processing"] .upbar__fill { background: linear-gradient(90deg, var(--accent), #7CF0E1, var(--accent)); background-size: 200% 100%; animation: upbar-move 1.2s linear infinite; }
.upbar[data-status="done"] .upbar__text { color: var(--accent); }
.upbar[data-status="failed"] .upbar__text { color: #FF8FB4; }
.upbar[data-status="failed"] .upbar__fill { background: var(--live); }
.upbar[data-status="waiting"] .upbar__fill { background: var(--warn); }
.upbar__act { display: flex; gap: 6px; align-items: center; }
.upbar__act a, .upbar__act button { min-height: 34px; padding: 0 12px; border-radius: var(--pill); border: 1px solid var(--line-2); background: transparent; color: var(--text); font: 600 13px var(--font); cursor: pointer; display: inline-grid; place-items: center; }
.upbar__act a { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@keyframes upbar-move { from { background-position: 0 0; } to { background-position: -200% 0; } }
.is-immersive .upbar { top: 64px; }
@media (prefers-reduced-motion: reduce) { .upbar__fill { transition: none; animation: none !important; } }

/* --- Panier modifiable (page de paiement) --- */
.cart__title { margin: 0; }
.cart__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; }
.cart__row.is-off { opacity: .5; }
.cart__name { display: flex; flex-direction: column; min-width: 0; }
.cart__sum { min-width: 78px; text-align: right; font-weight: 600; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--pill); overflow: hidden; }
.stepper__btn { width: 38px; height: 38px; border: 0; background: transparent; color: var(--text); font: 600 20px/1 var(--font); cursor: pointer; }
.stepper__btn:hover:not(:disabled) { background: var(--surface-2); color: var(--accent); }
.stepper__btn:disabled { opacity: .35; cursor: default; }
.stepper input { width: 40px; height: 38px; border: 0; background: transparent; color: var(--text); text-align: center; font: 600 15px var(--font); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 420px) { .cart__row { grid-template-columns: minmax(0, 1fr) auto; } .cart__sum { grid-column: 2; min-width: 0; } }


/* Icône panier de l'en-tête avec nombre de billets */
.cartbtn { position: relative; }
.cartbtn__n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--live); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }

/* Partager */
.hero__right { display: flex; align-items: center; gap: 8px; }
.sharewrap { margin: 4px 0 12px; }
.sharewrap .btn { display: inline-flex; align-items: center; gap: 6px; }
.sharebox { position: absolute; z-index: 2000; min-width: 220px; display: flex; flex-direction: column; padding: 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.sharebox__title { padding: 6px 10px 8px; font-size: 13px; color: var(--muted); }
.sharebox a, .sharebox button { display: block; padding: 10px 12px; border-radius: 12px; color: var(--text); text-decoration: none; text-align: left; background: none; border: 0; font: inherit; cursor: pointer; }
.sharebox a:hover, .sharebox button:hover { background: var(--line); }

/* Stories : bouton Accueil et bouton billet */
.feed-home { flex: none; }
.slide__buy { position: absolute; z-index: 3; left: var(--gutter, 16px); bottom: calc(var(--tabbar, 84px) + 132px); display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
@media (min-width: 900px) { .slide__buy { bottom: 150px; } }
