/* ==========================================================================
   Agambar 2.0 — thème « Affiches »
   Fond vert très clair, encre vert forêt, accent citron vert. Outfit pour tout le texte.
   Signature : affiches en grille, barre d'onglets flottante. Mobile d'abord.
   Clair ou sombre selon le téléphone (data-theme = auto), réglable dans les paramètres.
   ========================================================================== */

@font-face { font-family: "Outfit"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Outfit"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/outfit-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------------------------------------------------------------- jetons */
:root {
  /* clair */
  --bg: #F3F5EE;
  --surface: #FFFFFF;
  --surface-2: #E8EDDF;      /* champs, puces, zones calmes */
  --surface-3: #DDE4D0;      /* survol */
  --line: #DDE3D6;
  --line-strong: #C6CFBB;
  --text: #11201A;
  --muted: #55645B;          /* 5,6:1 sur le fond */
  --accent: #D4F04A;         /* citron vert : touches, indicateurs, fonds de boutons */
  --accent-strong: #D4F04A;  /* fond de bouton : texte encre dessus (14:1) */
  --on-accent: #11201A;
  --accent-ink: #0F4A3A;     /* liens et texte d'accent (9:1) */
  --accent-soft: #E6F2B4;
  --accent-tint: rgba(212, 240, 74, .22);
  --stub: #E6F2B4;           /* billet de date */
  --alert: #E5482B;          /* pastilles de notification */
  --nav: #0F4A3A;            /* barre d'onglets collée en bas */
  --nav-ink: #FFFFFF;
  --nav-muted: rgba(255, 255, 255, .78);
  --nav-on: #D4F04A;
  --nav-on-ink: #11201A;
  --ok: #1B7A5A;
  --ok-soft: #D9F2E5;
  --warn: #9A5B00;
  --warn-soft: #FBEFD9;
  --danger: #B42318;
  --danger-soft: #FCE5E2;
  --shadow-1: 0 1px 2px rgba(17, 32, 26, .06);
  --shadow-2: 0 1px 2px rgba(17, 32, 26, .05), 0 10px 30px -16px rgba(17, 32, 26, .28);
  --shadow-3: 0 24px 60px -24px rgba(17, 32, 26, .38);
  --veil: rgba(243, 245, 238, .86);
  --scrim: rgba(8, 16, 12, .5);

  --serif: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;  /* titres (ancien nom conservé) */
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 22px; --r-pill: 999px;
  --g: 16px;
  --top-h: 56px;
  --tab-h: 54px;             /* barre d'onglets collée en bas */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: constant(safe-area-inset-bottom, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --wrap: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0C1511;
  --surface: #16231D;
  --surface-2: #1E2D26;
  --surface-3: #26382F;
  --line: #2A3A31;
  --line-strong: #3B4D42;
  --text: #EEF3EA;
  --muted: #9FB0A5;
  --accent: #D4F04A;
  --accent-strong: #D4F04A;
  --on-accent: #11201A;
  --accent-ink: #D4F04A;
  --accent-soft: #2A3512;
  --accent-tint: rgba(212, 240, 74, .14);
  --stub: #26330F;
  --alert: #FF6B4A;
  --nav: #0F4A3A;
  --nav-ink: #FFFFFF;
  --nav-muted: rgba(255, 255, 255, .78);
  --nav-on: #D4F04A;
  --nav-on-ink: #11201A;
  --ok: #6FD3A4; --ok-soft: #1E3A30;
  --warn: #F2C063; --warn-soft: #3A2E17;
  --danger: #FF8A80; --danger-soft: #45202A;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 32px -18px rgba(0, 0, 0, .7);
  --shadow-3: 0 24px 60px -20px rgba(0, 0, 0, .8);
  --veil: rgba(12, 21, 17, .82);
  --scrim: rgba(0, 0, 0, .6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #0C1511;
    --surface: #16231D;
    --surface-2: #1E2D26;
    --surface-3: #26382F;
    --line: #2A3A31;
    --line-strong: #3B4D42;
    --text: #EEF3EA;
    --muted: #9FB0A5;
    --accent: #D4F04A;
    --accent-strong: #D4F04A;
    --on-accent: #11201A;
    --accent-ink: #D4F04A;
    --accent-soft: #2A3512;
    --accent-tint: rgba(212, 240, 74, .14);
    --stub: #26330F;
    --alert: #FF6B4A;
    --nav: #0F4A3A;
    --nav-ink: #FFFFFF;
    --nav-muted: #8FA295;
    --nav-on: #EEF3EA;
    --nav-on-ink: #0C1511;
    --ok: #6FD3A4; --ok-soft: #1E3A30;
    --warn: #F2C063; --warn-soft: #3A2E17;
    --danger: #FF8A80; --danger-soft: #45202A;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 32px -18px rgba(0, 0, 0, .7);
    --shadow-3: 0 24px 60px -20px rgba(0, 0, 0, .8);
    --veil: rgba(12, 21, 17, .82);
    --scrim: rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + var(--safe-t) + 12px); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--sans); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
img, svg, video, iframe { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--accent-ink); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent-strong); color: var(--on-accent); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: calc(8px + var(--safe-t)); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.link { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { text-decoration-thickness: 2px; }
.serif { font-family: var(--serif); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---------------------------------------------------------------- structure */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--g); }
.main { padding: calc(var(--top-h) + var(--safe-t) + 18px) 0 calc(var(--tab-h) + var(--safe-b) + 36px); min-height: 100vh; min-height: 100dvh; }
.narrow { max-width: 640px; margin: 0 auto; }
.stack-lg > * + * { margin-top: 36px; }
.stack-md > * + * { margin-top: 20px; }
.section { margin-top: 40px; }
.section:first-child { margin-top: 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section__title { font: 600 22px/1.2 var(--serif); letter-spacing: -.01em; }
.section__more { color: var(--accent-ink); font-weight: 600; font-size: 14px; white-space: nowrap; }
.section__more:hover { text-decoration: underline; text-underline-offset: 3px; }
.section__sub { color: var(--muted); font-size: 14px; margin: -8px 0 14px; }

/* ---------------------------------------------------------------- barre du haut */
.top {
  position: fixed; left: 0; right: 0; top: 0; bottom: auto; z-index: 40; padding-top: var(--safe-t);
  background: var(--veil);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top__in { height: var(--top-h); display: flex; align-items: center; gap: 8px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 600 23px/1 var(--serif); letter-spacing: -.02em; margin-right: auto; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.top__title { font: 600 17px/1.2 var(--serif); margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nav { display: none; }
.top__actions { display: flex; align-items: center; gap: 2px; }
.ibtn { position: relative; width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: var(--r-pill); color: var(--text); transition: background .15s; }
.ibtn:hover { background: var(--surface-2); }
.ibtn svg { width: 22px; height: 22px; }
.ibtn--accent { background: var(--accent-strong); color: var(--on-accent); }
.ibtn--accent:hover { background: var(--accent-strong); filter: brightness(1.06); }
.count { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--alert); color: #fff; font: 700 11px/18px var(--sans); text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.me { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.me--ini { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 13px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .theme-toggle .i-sun { display: block; }
  :root[data-theme="auto"] .theme-toggle .i-moon { display: none; }
}

/* ---------------------------------------------------------------- barre d'onglets (téléphone) */
.tabbar {
  /* Collée en bas de l'écran. Positions explicites (et non « inset ») pour les téléphones un peu anciens ;
     translateZ(0) : couche propre, elle ne bouge plus quand la barre d'adresse se replie. */
  position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 40;
  transform: translateZ(0); -webkit-transform: translateZ(0);
  height: calc(var(--tab-h) + var(--safe-b)); padding: 3px 6px var(--safe-b); border-radius: 16px 16px 0 0;
  background: var(--nav); box-shadow: 0 -6px 24px -8px rgba(15, 74, 58, .5);
  display: flex; align-items: center; justify-content: space-around;
}
.tab { flex: 1 1 0; min-width: 0; height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  color: var(--nav-muted); font-size: 10.5px; font-weight: 600; position: relative; }
.tab__ico { position: relative; display: grid; place-items: center; width: 48px; height: 25px; border-radius: 13px; transition: background .2s var(--ease); }
.tab svg { width: 20px; height: 20px; stroke-width: 1.8; }
.tab.on { color: #fff; font-weight: 700; }
.tab.on .tab__ico { background: var(--nav-on); color: var(--nav-on-ink); }
.tab.on svg { stroke-width: 2.1; }
.tab .count { top: -5px; right: -3px; background: var(--alert); color: #fff; box-shadow: 0 0 0 2px var(--nav); }
body.page-chat .tabbar { display: none; }
/* clavier virtuel ouvert (saisie d'un champ) : la barre se range au lieu de remonter au-dessus du clavier */
body.kb-ouvert .tabbar { display: none; }
body.page-chat .main { padding-bottom: 0; }

@media (min-width: 960px) {
  :root { --top-h: 68px; --g: 28px; }
  .tabbar { display: none; }
  .main { padding-bottom: 64px; }
  .brand { margin-right: 28px; }
  .nav { display: flex; gap: 2px; margin-right: auto; }
  .nav a { padding: 9px 14px; border-radius: var(--r-pill); font-weight: 600; font-size: 15px; color: var(--muted); }
  .nav a:hover { color: var(--text); background: var(--surface-2); }
  .nav a.on { color: var(--text); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
  body.page-chat .main { padding-bottom: 32px; }
}

/* ---------------------------------------------------------------- titres de page */
.ph { margin-bottom: 22px; }
.ph__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ph__title { font: 600 30px/1.12 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.ph__meta { margin-top: 8px; color: var(--muted); max-width: 62ch; }
@media (min-width: 960px) { .ph__title { font-size: 40px; } .ph { margin-bottom: 30px; } }

/* ---------------------------------------------------------------- boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: var(--r-pill); font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: background .15s, box-shadow .15s, transform .1s, color .15s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn svg { width: 19px; height: 19px; }
.btn--primary { background: var(--accent-strong); color: var(--on-accent); box-shadow: none; }
.btn--primary:hover { background: var(--accent-strong); filter: brightness(1.07); }
.btn--soft { background: var(--accent-soft); color: var(--accent-ink); box-shadow: none; }
.btn--soft:hover { background: var(--accent-soft); filter: brightness(.98); }
.btn--ghost { background: transparent; box-shadow: none; color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--danger { color: var(--danger); box-shadow: inset 0 0 0 1.5px currentColor; background: transparent; }
.btn--danger:hover { background: var(--danger-soft); }
.btn--sm { min-height: 38px; padding: 0 15px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn.is-on { background: var(--text); color: var(--bg); box-shadow: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--r-pill); color: var(--muted); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn--danger:hover { color: var(--danger); background: var(--danger-soft); }
.inline { display: inline; }

/* ---------------------------------------------------------------- puces et étiquettes */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--g)); padding: 2px var(--g); scroll-padding: 0 var(--g); }
.chips--scroll::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-pill);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--text);
  transition: background .15s, color .15s, box-shadow .15s;
}
.chip svg { width: 16px; height: 16px; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.chip.on, .chip[aria-pressed="true"] { background: var(--text); color: var(--bg); box-shadow: none; }
.chip__n { font-weight: 500; opacity: .7; font-variant-numeric: tabular-nums; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 650; background: var(--surface-2); color: var(--text); white-space: nowrap; }
.tag svg { width: 14px; height: 14px; }
.tag--accent { background: var(--accent-soft); color: var(--accent-ink); }
.tag--ok { background: var(--ok-soft); color: var(--ok); }
.tag--warn { background: var(--warn-soft); color: var(--warn); }
.tag--danger { background: var(--danger-soft); color: var(--danger); }
.tag--glass { background: rgba(255, 255, 255, .92); color: #11201A; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------------------------------------------------------------- billet de date (signature) */
.stub {
  --notch: var(--bg);
  position: relative; flex: none; width: 58px; height: 66px; border-radius: 12px; background: var(--stub);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  color: var(--text); box-shadow: inset 0 0 0 1px var(--line);
}
.stub::before, .stub::after { content: ""; position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--notch); box-shadow: inset 0 0 0 1px var(--line); }
.stub::before { left: -5px; clip-path: inset(0 0 0 50%); }
.stub::after { right: -5px; clip-path: inset(0 50% 0 0); }
.stub__mon { font-size: 11.5px; font-weight: 700; color: var(--accent-ink); letter-spacing: .02em; }
.stub__day { font: 600 25px/1 var(--serif); margin-top: 2px; font-variant-numeric: lining-nums; }
.stub__dow { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.stub--past { opacity: .62; }
.stub--card { --notch: var(--surface); }
.stub--float { position: absolute; top: 12px; left: 12px; --notch: transparent; box-shadow: var(--shadow-2); background: var(--surface); }
.stub--float::before, .stub--float::after { display: none; }
.stub--lg { width: 74px; height: 84px; border-radius: 14px; }
.stub--lg .stub__day { font-size: 33px; }

/* ---------------------------------------------------------------- avatars */
.av { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--accent-soft); color: var(--accent-ink); display: inline-grid; place-items: center; font-weight: 700; font-size: 15px; }
.av--xs { width: 26px; height: 26px; font-size: 10px; }
.av--sm { width: 36px; height: 36px; font-size: 12px; }
.av--lg { width: 64px; height: 64px; font-size: 20px; }
.av--xl { width: 96px; height: 96px; font-size: 30px; }
.avstack { display: flex; align-items: center; }
.avstack .av { box-shadow: 0 0 0 2px var(--surface); }
.avstack .av + .av { margin-left: -8px; }
.avstack__lbl { margin-left: 10px; font-size: 13.5px; color: var(--muted); }

/* ---------------------------------------------------------------- cartes génériques */
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); padding: 20px; }
.card--flat { box-shadow: inset 0 0 0 1px var(--line); }
.card__title { font: 600 19px/1.25 var(--serif); margin-bottom: 4px; }
.card__sub { color: var(--muted); font-size: 14px; }
.card + .card { margin-top: 14px; }

/* ---------------------------------------------------------------- accueil */
.hello { padding: 6px 0 4px; }
.hello__title { font: 560 34px/1.08 var(--serif); letter-spacing: -.025em; text-wrap: balance; max-width: 18ch; }
.hello__sub { color: var(--muted); margin-top: 10px; max-width: 46ch; }
@media (min-width: 960px) { .hello__title { font-size: 52px; } }

.gsearch { position: relative; margin-top: 18px; }
.gsearch__box { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 8px 0 18px; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); }
.gsearch__box:focus-within { box-shadow: var(--shadow-2), inset 0 0 0 2px var(--accent-ink); }
.gsearch__box svg { color: var(--muted); }
.gsearch__box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; height: 100%; }
.gsearch__box input::placeholder { color: var(--muted); }
.gsearch__box .btn { min-height: 40px; }
.suggestions { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px); background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-3), inset 0 0 0 1px var(--line); padding: 8px; max-height: 60vh; overflow: auto; }
.suggestions h3 { font-size: 12.5px; color: var(--muted); font-weight: 650; padding: 8px 10px 4px; }
.suggestions a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-sm); }
.suggestions a:hover, .suggestions a.on { background: var(--surface-2); }
.suggestions small { display: block; color: var(--muted); font-size: 13px; }
.suggestions .av { width: 34px; height: 34px; }
.suggestions__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.suggestions__ico svg { width: 18px; height: 18px; }
.suggestions__all { justify-content: center; color: var(--accent-ink); font-weight: 600; }

/* événement à l'affiche */
.feature { position: relative; display: grid; border-radius: var(--r-lg); overflow: hidden; background: #0F2A22; color: #F3F8EE; isolation: isolate; box-shadow: var(--shadow-3); }
.feature__bg { position: absolute; inset: -40px; z-index: -1; background-size: cover; background-position: center; filter: blur(34px) saturate(1.2) brightness(.55); transform: scale(1.1); }
.feature__bg--plain { background: radial-gradient(120% 90% at 0% 0%, #1B7A5A 0%, #0F2A22 60%); filter: none; }
.feature__poster { display: grid; place-items: center; padding: 22px 22px 0; }
.feature__poster img { max-height: 340px; width: auto; border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6); }
.feature__body { padding: 20px 22px 22px; display: grid; gap: 10px; }
.feature__kicker { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; color: rgba(255, 246, 241, .78); }
.feature__title { font: 560 28px/1.12 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.feature__meta { display: grid; gap: 6px; color: rgba(255, 246, 241, .86); font-size: 15px; }
.feature__meta span { display: flex; gap: 8px; align-items: center; }
.feature__meta svg { width: 18px; height: 18px; opacity: .8; }
.feature__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.feature .btn:not(.btn--primary) { background: rgba(255, 255, 255, .12); color: #F3F8EE; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.feature .btn--primary { background: #D4F04A; color: #11201A; }
.feature .avstack .av { box-shadow: 0 0 0 2px #0F2A22; }
.feature .avstack__lbl { color: rgba(255, 246, 241, .78); }
.feature__link { position: absolute; inset: 0; z-index: 0; }
.feature__body, .feature__poster { position: relative; z-index: 1; pointer-events: none; }
.feature__body a, .feature__body button, .feature__body form { pointer-events: auto; }
@media (min-width: 760px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; min-height: 420px; }
  .feature__poster { padding: 32px; order: 2; }
  .feature__poster img { max-height: 380px; }
  .feature__body { padding: 40px; }
  .feature__title { font-size: 40px; }
}

/* raccourcis personnels */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); min-height: 104px; transition: box-shadow .15s, transform .15s; }
.tile:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-2); }
.tile__ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--text); }
.tile__ico svg { width: 20px; height: 20px; }
.tile__lbl { font-weight: 650; font-size: 15px; line-height: 1.25; }
.tile__lbl small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; margin-top: 2px; }
.tile__n { position: absolute; top: 14px; right: 14px; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: var(--accent-strong); color: var(--on-accent); font: 700 13px/26px var(--sans); text-align: center; }
.tile--accent { background: var(--accent-strong); color: var(--on-accent); box-shadow: none; }
.tile--accent .tile__ico { background: rgba(255, 255, 255, .18); color: inherit; }
.tile--accent .tile__lbl small { color: inherit; opacity: .85; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(4, 1fr); } }

.join { display: grid; gap: 14px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.join__title { font: 560 24px/1.15 var(--serif); letter-spacing: -.015em; }
@media (min-width: 760px) { .join { grid-template-columns: 1fr auto; align-items: center; padding: 28px 32px; } }

/* défilement horizontal */
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--g)); padding: 2px var(--g) 8px; scroll-padding: 0 var(--g); scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }
@media (min-width: 640px) { .hscroll { grid-auto-columns: 30%; } }
@media (min-width: 960px) { .hscroll { grid-auto-columns: calc((100% - 5 * 14px) / 6); gap: 14px; margin: 0; padding: 2px 0 8px; } }

/* fil d'actualité */
.feed { display: grid; gap: 2px; background: var(--surface); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); padding: 6px; }
.feed__item { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: var(--r-md); }
a.feed__item:hover { background: var(--surface-2); }
.feed__img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: none; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.feed__img--round { border-radius: 50%; }
.feed__txt { flex: 1; min-width: 0; font-size: 15px; line-height: 1.35; }
.feed__txt small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

.home-grid { display: grid; gap: 40px; }
@media (min-width: 1040px) { .home-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; } }

/* ---------------------------------------------------------------- carte artiste */
.acard { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.acard__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.acard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.acard:hover .acard__media img { transform: scale(1.035); }
.acard__ini { position: absolute; inset: 0; display: grid; place-items: center; font: 500 40px/1 var(--serif); color: var(--accent-ink); background: radial-gradient(90% 70% at 30% 20%, var(--accent-soft), var(--surface-2)); }
.acard__name { font: 600 17px/1.2 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acard__meta { color: var(--muted); font-size: 13.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.agrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
@media (min-width: 640px) { .agrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .agrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px 18px; } }

/* ---------------------------------------------------------------- lignes d'événements */
.elist { display: grid; gap: 10px; }
.erow { position: relative; display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s; }
.erow:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-2); }
.erow .stub { --notch: var(--surface); }
.erow__body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.erow__title { font-weight: 650; font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.erow__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.erow__meta { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 2px 12px; }
.erow__meta span { display: inline-flex; align-items: center; gap: 5px; }
.erow__meta svg { width: 15px; height: 15px; }
.erow__thumb { width: 64px; height: 80px; border-radius: 10px; overflow: hidden; flex: none; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.erow__thumb img { width: 100%; height: 100%; object-fit: cover; }
.erow__side { position: relative; z-index: 2; display: flex; align-items: center; gap: 4px; }
.erow--past { opacity: .75; }
.erow--cancel .erow__title { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.fav { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.fav:hover { background: var(--surface-2); color: var(--accent-ink); }
.fav[aria-pressed="true"] { color: var(--accent-ink); }
.fav[aria-pressed="true"] svg { fill: currentColor; }
.month { font: 600 18px/1.2 var(--serif); margin: 28px 0 12px; }
.month:first-child { margin-top: 0; }

/* affiches (grille) */
.posters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
@media (min-width: 760px) { .posters { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 18px; } }
.poster { display: grid; gap: 8px; min-width: 0; }
.poster__frame { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; color: var(--muted); }
.poster__frame img { width: 100%; height: 100%; object-fit: cover; }
.poster__frame svg { width: 36px; height: 36px; }
.poster__title { font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poster__meta { color: var(--muted); font-size: 13.5px; }

/* ---------------------------------------------------------------- formulaires */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.label { font-weight: 650; font-size: 14.5px; }
.req { color: var(--accent-ink); }
.hint { color: var(--muted); font-size: 13.5px; }
.input, .select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-sm); border: 0;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong); outline: 0; font-size: 16px;
  transition: box-shadow .15s;
}
.input:focus, .select:focus { box-shadow: inset 0 0 0 2px var(--accent-ink); }
.input::placeholder { color: var(--muted); opacity: .8; }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
.input--sm { min-height: 40px; padding: 8px 12px; font-size: 15px; }
select.input, .select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E5F68' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.grid2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent-strong); flex: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.step { display: grid; gap: 16px; }
.step__title { font: 600 20px/1.25 var(--serif); margin-bottom: 4px; padding: 0; }
.form__actions { display: flex; gap: 10px; }
.form__actions.two > * { flex: 1; }
.pw { position: relative; }
.pw .input { padding-right: 52px; }
.pw__toggle { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); }
.subfields { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-md); background: var(--surface-2); }
.sticky-actions { position: sticky; bottom: calc(var(--tab-h) + var(--safe-b) + 10px); z-index: 5; padding-top: 6px; }
@media (min-width: 960px) { .sticky-actions { bottom: 16px; } }
.drop { position: relative; display: grid; place-items: center; min-height: 160px; border-radius: var(--r-md); background: var(--surface-2); box-shadow: inset 0 0 0 1.5px dashed var(--line-strong); border: 1.5px dashed var(--line-strong); cursor: pointer; overflow: hidden; }
.drop img { max-height: 320px; width: auto; }
.drop__txt { display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--muted); padding: 18px; }
.drop img:not([hidden]) + .drop__txt { position: absolute; bottom: 10px; background: var(--veil); padding: 8px 14px; border-radius: var(--r-pill); color: var(--text); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* interrupteurs */
.switch-row { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.switch-row:first-of-type { border-top: 0; }
.switch-row__txt { display: grid; gap: 2px; }
.switch-row__txt strong { font-weight: 650; font-size: 15px; }
.switch-row__txt span { color: var(--muted); font-size: 13.5px; }
.switch { position: relative; flex: none; width: 48px; height: 28px; margin-top: 2px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 14px; background: var(--line-strong); transition: background .2s; }
.switch span::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, .25); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--accent-strong); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2.5px solid var(--accent-ink); outline-offset: 2px; }

/* choix en cartes (apparence) */
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { position: relative; display: grid; gap: 8px; justify-items: center; padding: 14px 8px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; font-weight: 600; font-size: 14px; }
.choice input { position: absolute; opacity: 0; }
.choice:has(input:checked) { box-shadow: inset 0 0 0 2px var(--accent-ink); background: var(--accent-tint); }
.choice:has(input:focus-visible) { outline: 2.5px solid var(--accent-ink); outline-offset: 2px; }
.swatch { width: 56px; height: 40px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); position: relative; overflow: hidden; }
.swatch--light { background: #F3F5EE; }
.swatch--dark { background: #0C1511; }
.swatch--auto { background: linear-gradient(135deg, #F3F5EE 50%, #0C1511 50%); }
.swatch::after { content: ""; position: absolute; left: 8px; bottom: 8px; width: 22px; height: 6px; border-radius: 3px; background: #0F4A3A; }
.swatch--dark::after { background: #D4F04A; }

/* recherche courte */
.search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--accent-ink); }
.search svg { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; height: 100%; font-size: 16px; }
.search--sm { height: 44px; }

/* sélecteur multiple à puces */
.chipsel { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 48px; padding: 6px 8px; border-radius: var(--r-sm); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong); position: relative; }
.chipsel:focus-within { box-shadow: inset 0 0 0 2px var(--accent-ink); }
.chipsel > input { flex: 1; min-width: 120px; border: 0; outline: 0; background: none; height: 34px; font-size: 16px; padding: 0 6px; }
.chipsel__chip, .chips-picked .chipsel__chip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 4px 0 12px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 14px; }
.chipsel__chip button { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.chipsel__chip svg { width: 15px; height: 15px; }
.chipsel__menu, .suggest { list-style: none; margin: 0; padding: 6px; position: absolute; z-index: 15; left: 0; right: 0; top: calc(100% + 6px); max-height: 260px; overflow: auto; background: var(--surface); border-radius: var(--r-sm); box-shadow: var(--shadow-3), inset 0 0 0 1px var(--line); }
.suggest:empty { display: none; }
.chipsel__menu li { padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.chipsel__menu li[aria-selected="true"], .chipsel__menu li:hover { background: var(--surface-2); }
.chipsel__menu li.add { color: var(--accent-ink); font-weight: 600; }
.city, .invite { position: relative; }
.suggest button { width: 100%; display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; text-align: left; }
.suggest button:hover { background: var(--surface-2); }
.suggest small { display: block; color: var(--muted); font-size: 13px; }
.chips-picked { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-picked:empty { display: none; }

/* étapes d'inscription */
.progress { list-style: none; margin: 0 0 22px; padding: 0; display: flex; gap: 6px; counter-reset: s; }
.progress li { flex: 1; font-size: 12px; font-weight: 600; color: var(--muted); padding-top: 10px; position: relative; text-align: center; }
.progress li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--line); }
.progress li.on, .progress li.done { color: var(--text); }
.progress li.on::before, .progress li.done::before { background: var(--accent-strong); }
.wizard.js .step { display: none; }
.wizard.js .step.active { display: grid; }

/* photo de profil */
.photo-pick { display: flex; gap: 16px; align-items: center; }
.photo-pick__preview { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); flex: none; }
.photo-pick__preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-pick__preview svg { width: 34px; height: 34px; }
dialog { border: 0; padding: 0; color: var(--text); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-3); max-width: min(520px, calc(100vw - 24px)); }
dialog::backdrop { background: var(--scrim); backdrop-filter: blur(3px); }
.cropper { padding: 16px; width: 440px; }
.cropper__stage { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: #000; touch-action: none; cursor: grab; }
.cropper__stage img { position: absolute; top: 0; left: 0; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; }
.cropper .hint { margin: 10px 0; }

/* ---------------------------------------------------------------- messages flash */
.toasts { position: fixed; z-index: 60; left: 0; right: 0; top: calc(var(--top-h) + var(--safe-t) + 8px); display: grid; gap: 8px; justify-items: center; padding: 0 12px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; max-width: 560px; width: 100%; padding: 12px 8px 12px 16px; border-radius: var(--r-md); background: var(--text); color: var(--bg); box-shadow: var(--shadow-3); font-size: 15px; font-weight: 500; animation: toast-in .35s var(--ease); }
.toast > span { flex: 1; padding-top: 2px; }
.toast__x { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; opacity: .75; flex: none; }
.toast__x svg { width: 16px; height: 16px; }
.toast--error { background: var(--danger); color: #fff; }
.toast--success::before, .toast--info::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; flex: none; background: var(--accent-ink); }
.toast--success::before { background: #5FD39C; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
.chat-secu { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 0; padding: 6px 14px; font-size: 12.5px; color: var(--muted); background: var(--surface-2); text-align: center; }
.chat-secu svg { width: 14px; height: 14px; flex: none; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); font-size: 15px; }
.note svg { margin-top: 2px; color: var(--muted); }
.note--accent { background: var(--accent-soft); }
.note--accent svg { color: var(--accent-ink); }
.note--warn { background: var(--warn-soft); }
.note--danger { background: var(--danger-soft); color: var(--danger); }
.note--danger svg { color: currentColor; }
.note--ok { background: var(--ok-soft); }
.note > div { flex: 1; display: grid; gap: 8px; }

/* ---------------------------------------------------------------- vide / erreurs */
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 44px 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.empty__ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 4px; }
.empty__ico svg { width: 26px; height: 26px; }
.empty__title { font: 600 20px/1.25 var(--serif); }
.empty__text { color: var(--muted); max-width: 44ch; }
.empty .btn { margin-top: 8px; }
.empty--page { background: none; box-shadow: none; min-height: 55vh; align-content: center; }
.err-code { font: 500 88px/1 var(--serif); color: var(--accent-ink); }

/* ---------------------------------------------------------------- agenda */
.seg { display: inline-grid; grid-auto-flow: column; gap: 2px; padding: 4px; border-radius: var(--r-pill); background: var(--surface-2); }
.seg a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--muted); }
.seg a svg { width: 17px; height: 17px; }
.seg a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.filters { display: grid; gap: 12px; margin-bottom: 22px; }
.filters__row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filters details { border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.filters summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary .tag { margin-left: auto; }
.filters__more { display: grid; gap: 12px; padding: 0 16px 16px; }
@media (min-width: 760px) { .filters__more { grid-template-columns: 1.4fr 1fr 1fr auto; align-items: end; } }

.cal { background: var(--surface); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); padding: 12px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px; }
.cal__title { font: 600 20px/1.2 var(--serif); }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__dow { text-align: center; font-size: 12px; font-weight: 650; color: var(--muted); padding-bottom: 6px; }
.cal__day { position: relative; min-height: 52px; border-radius: 10px; padding: 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.cal__day--out { color: var(--muted); opacity: .45; }
.cal__day--today { background: var(--accent-tint); }
.cal__day--today .cal__num { color: var(--accent-ink); }
a.cal__day:hover, .cal__day.is-sel { background: var(--surface-2); }
.cal__day.is-sel { box-shadow: inset 0 0 0 2px var(--accent-ink); }
.cal__dots { display: flex; gap: 3px; }
.cal__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); }
.cal__ev { display: none; }
@media (min-width: 960px) {
  .cal__day { min-height: 108px; align-items: stretch; padding: 8px; }
  .cal__num { align-self: flex-end; }
  .cal__dots { display: none; }
  .cal__ev { display: block; font-size: 12px; font-weight: 600; line-height: 1.25; padding: 4px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cal__ev--cancel { text-decoration: line-through; opacity: .7; }
}
.daylist { margin-top: 22px; }
.daylist__day { scroll-margin-top: calc(var(--top-h) + 20px); }
.daylist__title { font-weight: 650; margin: 18px 0 10px; }

/* ---------------------------------------------------------------- fiche événement */
.ev { display: grid; gap: 26px; }
.ev__poster { position: relative; display: grid; place-items: center; border-radius: var(--r-lg); overflow: hidden; background: #0F2A22; isolation: isolate; padding: 20px; }
.ev__poster-bg { position: absolute; inset: -40px; z-index: -1; background-size: cover; background-position: center; filter: blur(30px) brightness(.6) saturate(1.2); }
.ev__poster img { max-height: 62vh; width: auto; border-radius: 10px; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .6); cursor: zoom-in; }
.ev__poster--empty { min-height: 180px; color: rgba(255, 246, 241, .6); background: radial-gradient(120% 90% at 0% 0%, #1B7A5A 0%, #0F2A22 60%); }
.ev__poster--empty svg { width: 54px; height: 54px; }
.ev__head { display: grid; gap: 12px; }
.ev__title { font: 560 32px/1.1 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.ev__facts { display: grid; gap: 2px; background: var(--surface); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); padding: 6px; }
.fact { display: flex; gap: 14px; align-items: center; padding: 10px 10px; border-radius: var(--r-md); }
a.fact:hover { background: var(--surface-2); }
.fact__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.fact__txt { flex: 1; min-width: 0; line-height: 1.35; }
.fact__txt strong { display: block; font-weight: 650; }
.fact__txt small { color: var(--muted); font-size: 13.5px; }
.itineraire { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 10px 10px 64px; }
@media (max-width: 380px) { .itineraire { padding-left: 10px; } }
.ev__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ev__actions .btn--primary { flex: 1 1 200px; }
.ev__desc { white-space: pre-line; line-height: 1.65; max-width: 68ch; }
.banner { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); background: var(--danger-soft); color: var(--danger); font-weight: 650; }
.lineup { display: grid; gap: 4px; }
.person { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-md); min-width: 0; }
a.person:hover { background: var(--surface-2); }
.person > span { min-width: 0; line-height: 1.3; }
.person strong { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person small { color: var(--muted); font-size: 13.5px; }
.orga-tools { display: grid; gap: 10px; }
.orga-tools .btn { justify-content: flex-start; }
@media (min-width: 960px) {
  .ev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
  .ev__poster { position: sticky; top: calc(var(--top-h) + 20px); }
  .ev__title { font-size: 44px; }
}

/* ---------------------------------------------------------------- profil artiste */
.profile { display: grid; gap: 28px; }
.profile__cover { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); aspect-ratio: 1; max-height: 70vh; box-shadow: inset 0 0 0 1px var(--line); }
.profile__cover img { width: 100%; height: 100%; object-fit: cover; }
.profile__cover .acard__ini { font-size: 96px; }
.profile__name { font: 560 36px/1.05 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.profile__place { display: flex; align-items: center; gap: 6px; color: var(--muted); margin-top: 8px; }
.profile__place svg { width: 17px; height: 17px; }
.profile__stats { display: flex; gap: 22px; margin-top: 16px; }
.profile__stats div { display: grid; }
.profile__stats strong { font: 600 22px/1.1 var(--serif); font-variant-numeric: lining-nums; }
.profile__stats span { color: var(--muted); font-size: 13.5px; }
.profile__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.bio { line-height: 1.7; white-space: pre-line; max-width: 66ch; font-size: 16.5px; }
.spec { display: grid; gap: 14px; }
.spec__row { display: grid; gap: 8px; }
.spec__row h3 { font-size: 13.5px; color: var(--muted); font-weight: 650; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.gallery__item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery__item form { position: absolute; top: 6px; right: 6px; }
.gallery__item .icon-btn { background: var(--veil); color: var(--text); width: 34px; height: 34px; }
.videos { display: grid; gap: 14px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: center / cover no-repeat; }
.video__play::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .45)); }
.video__play span { position: relative; width: 68px; height: 68px; border-radius: 50%; background: #D4F04A; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.video__play svg { width: 28px; height: 28px; fill: #11201A; stroke: none; margin-left: 4px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.lightbox { padding: 0; background: transparent; box-shadow: none; max-width: 96vw; max-height: 92vh; overflow: visible; }
.lightbox img { max-width: 96vw; max-height: 88vh; border-radius: 12px; }
.lightbox__x { position: absolute; top: -14px; right: -6px; background: var(--surface); box-shadow: var(--shadow-2); }
@media (min-width: 960px) {
  .profile { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
  .profile__cover { position: sticky; top: calc(var(--top-h) + 20px); aspect-ratio: 4 / 5; }
  .profile__name { font-size: 54px; }
  .videos { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* annuaire */
.dir-tools { display: grid; gap: 12px; margin-bottom: 24px; }
.dir-tools__row { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .dir-tools { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; } .dir-tools__row { display: contents; } .dir-tools .chips--scroll { grid-column: 1 / -1; } }
.dir-count { color: var(--muted); font-size: 14px; margin-bottom: 14px; }

/* ---------------------------------------------------------------- messagerie */
.chat { display: grid; gap: 0; }
.threads { display: grid; gap: 2px; }
.thread { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-md); position: relative; }
.thread:hover { background: var(--surface-2); }
.thread.on { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.thread__main { flex: 1; min-width: 0; line-height: 1.35; }
.thread__top { display: flex; gap: 8px; align-items: baseline; }
.thread__name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.thread__time { color: var(--muted); font-size: 12.5px; flex: none; }
.thread__prev { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread--unread .thread__name, .thread--unread .thread__prev { color: var(--text); font-weight: 650; }
.thread__n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent-strong); color: var(--on-accent); font: 700 12px/22px var(--sans); text-align: center; flex: none; }
.grp-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.pane { display: flex; flex-direction: column; min-height: calc(100vh - var(--top-h) - var(--safe-t) - 18px); min-height: calc(100dvh - var(--top-h) - var(--safe-t) - 18px); }
.pane__head { display: flex; align-items: center; gap: 12px; padding: 4px 0 12px; border-bottom: 1px solid var(--line); }
.pane__head .person { padding: 0; flex: 1; }
.bubbles { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.daysep { align-self: center; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 10px 0 4px; }
.bubble { max-width: 82%; padding: 9px 13px 7px; border-radius: 18px; line-height: 1.45; font-size: 15.5px; overflow-wrap: anywhere; }
.bubble p { white-space: pre-line; }
.bubble time { display: block; font-size: 11.5px; opacity: .72; margin-top: 2px; text-align: right; }
.bubble__author { display: block; font-size: 12.5px; font-weight: 700; color: var(--accent-ink); margin-bottom: 2px; }
.bubble--me { align-self: flex-end; background: var(--accent-strong); color: var(--on-accent); border-bottom-right-radius: 6px; }
.bubble--them { align-self: flex-start; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border-bottom-left-radius: 6px; }
.bubble--pending { opacity: .6; }
.composer { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 8px; align-items: flex-end; padding: 10px 0 calc(10px + var(--safe-b)); background: var(--bg); border-top: 1px solid var(--line); }
.composer textarea { flex: 1; min-height: 46px; max-height: 160px; padding: 11px 16px; border-radius: 23px; resize: none; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong); outline: 0; line-height: 1.4; font-size: 16px; }
.composer textarea:focus { box-shadow: inset 0 0 0 2px var(--accent-ink); }
.composer .ibtn { width: 46px; height: 46px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.live--off::before { background: var(--muted); }
@media (max-width: 959px) { .chat--open .chat__list { display: none; } }
@media (min-width: 960px) {
  .chat { grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; }
  .chat__list { position: sticky; top: calc(var(--top-h) + 18px); max-height: calc(100vh - var(--top-h) - 40px); max-height: calc(100dvh - var(--top-h) - 40px); overflow: auto; padding-right: 6px; }
  .pane { min-height: calc(100vh - var(--top-h) - 50px); min-height: calc(100dvh - var(--top-h) - 50px); background: var(--surface); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); padding: 16px 20px 0; }
  .pane .composer { background: var(--surface); margin: 0 -20px; padding: 12px 20px 16px; border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .pane .bubble--them { background: var(--surface-2); box-shadow: none; }
  .pane__back { display: none; }
}

/* ---------------------------------------------------------------- notifications */
.notifs { display: grid; gap: 2px; background: var(--surface); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); padding: 6px; }
.notif { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 10px; border-radius: var(--r-md); }
.notif:hover { background: var(--surface-2); }
.notif__ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text); flex: none; overflow: hidden; }
.notif__ico img { width: 100%; height: 100%; object-fit: cover; }
.notif__ico svg { width: 19px; height: 19px; }
.notif__txt { flex: 1; min-width: 0; line-height: 1.4; }
.notif__txt strong { display: block; font-weight: 600; }
.notif__txt span { display: block; color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notif__time { color: var(--muted); font-size: 12.5px; flex: none; padding-top: 2px; }
.notif--new strong { font-weight: 700; }
.notif--new::after { content: ""; position: absolute; right: 12px; bottom: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--alert); }
.notif--new .notif__ico { background: var(--accent-soft); color: var(--accent-ink); }
.ngroup { font-size: 14px; font-weight: 650; color: var(--muted); margin: 22px 4px 8px; }
.ngroup:first-child { margin-top: 0; }
.pushcard { display: grid; gap: 12px; }
.pushcard__status { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.pushcard__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.pushcard__dot--on { background: var(--ok); }
.pushcard__dot--off { background: var(--danger); }
.devices { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.devices li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.devices li > span { flex: 1; }
.devices small { display: block; color: var(--muted); font-size: 13px; }
.steps-ios { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* ---------------------------------------------------------------- espace personnel */
.me-head { display: flex; gap: 16px; align-items: center; }
.me-head .av { width: 76px; height: 76px; font-size: 24px; }
.me-head__name { font: 560 26px/1.1 var(--serif); letter-spacing: -.015em; }
.me-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.me-stat { padding: 14px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.me-stat strong { display: block; font: 600 24px/1.1 var(--serif); font-variant-numeric: lining-nums; }
.me-stat span { color: var(--muted); font-size: 13px; }
.menu { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; background: var(--surface); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); }
.menu a, .menu button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 10px; border-radius: var(--r-md); font-weight: 600; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--surface-2); }
.menu__ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.menu__txt { flex: 1; min-width: 0; }
.menu__txt small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.menu .chev { color: var(--muted); width: 18px; height: 18px; }
.menu .thread__n { margin-right: 4px; }
.menu--danger .menu__ico { color: var(--danger); }
.space-grid { display: grid; gap: 32px; }
@media (min-width: 1040px) { .space-grid { grid-template-columns: 380px minmax(0, 1fr); gap: 44px; align-items: start; } .space-grid > aside { position: sticky; top: calc(var(--top-h) + 20px); } }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--g)) 20px; padding: 0 var(--g); border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 12px 6px; margin-right: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; border-bottom: 2.5px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent-ink); }
.tabs .chip__n { font-size: 13px; }
.settings { display: grid; gap: 18px; }
.settings .card { padding: 22px; }
.settings .card + .card { margin-top: 0; }

/* suivi d'invitations */
.track { background: var(--surface); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 12px; }
.track__sum { list-style: none; display: flex; gap: 14px; align-items: center; padding: 14px; cursor: pointer; }
.track__sum::-webkit-details-marker { display: none; }
.track__sum .stub { --notch: var(--surface); }
.track__title { flex: 1; min-width: 0; }
.track__title strong { display: block; font-weight: 650; }
.track__title small { color: var(--muted); font-size: 13.5px; }
.chev { transition: transform .2s; color: var(--muted); }
details[open] > summary .chev { transform: rotate(180deg); }
.track__body { padding: 0 16px 18px; display: grid; gap: 14px; }
.tracklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.trow { display: flex; gap: 12px; align-items: flex-start; padding-top: 10px; border-top: 1px solid var(--line); }
.trow__main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.status { display: inline-flex; margin-left: 6px; padding: 2px 9px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; }
.status--en_attente { background: var(--warn-soft); color: var(--warn); }
.status--accepte { background: var(--ok-soft); color: var(--ok); }
.status--refuse { background: var(--danger-soft); color: var(--danger); }
.inline-form { display: flex; gap: 8px; }
.inline-form .input { flex: 1; }
.invite-card { display: grid; gap: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 20px; }
.invite-card__img { width: 100%; max-height: 280px; object-fit: cover; }
.invite-card__body { padding: 18px; display: grid; gap: 10px; }

/* ---------------------------------------------------------------- bibliothèque */
.lib-tools { display: grid; gap: 12px; margin-bottom: 22px; }
.az { position: sticky; top: calc(var(--top-h) + var(--safe-t)); z-index: 6; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; margin: 0 calc(-1 * var(--g)) 8px; padding-left: var(--g); background: var(--bg); }
.az::-webkit-scrollbar { display: none; }
.az a { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--muted); }
.az a:hover { background: var(--surface); color: var(--accent-ink); }
.lib__letter { font: 500 34px/1 var(--serif); color: var(--accent-ink); margin: 26px 0 10px; scroll-margin-top: calc(var(--top-h) + 64px); }
.lib__group { display: grid; gap: 8px; }
.lib__artist { background: var(--surface); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); }
.lib__artist > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px; cursor: pointer; }
.lib__artist > summary::-webkit-details-marker { display: none; }
.lib__mono { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font: 600 16px/1 var(--serif); flex: none; }
.lib__name { flex: 1; min-width: 0; line-height: 1.3; }
.lib__name strong { display: block; font-weight: 650; }
.lib__name small { color: var(--muted); font-size: 13.5px; }
.lib__body { padding: 0 12px 12px; }
.lib__album { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; color: var(--muted); margin: 10px 4px 6px; }
.lib__album svg { width: 16px; height: 16px; }
.songs { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.song { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 6px 8px 10px; border-radius: 10px; }
.song:hover { background: var(--surface-2); }
.song__title { flex: 1; min-width: 0; font-weight: 550; }
.song__docs { display: flex; gap: 4px; }
.doc { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); }
.doc svg { width: 17px; height: 17px; }
.doc--off { background: transparent; color: var(--line-strong); }
.doc--edit { background: transparent; color: var(--muted); }
.doc--edit:hover { background: var(--surface-3); color: var(--text); }
.reader { max-width: 760px; margin: 0 auto; }
.reader__head { display: grid; gap: 10px; margin-bottom: 22px; }
.reader__title { font: 560 34px/1.1 var(--serif); letter-spacing: -.02em; }
.reader__by { color: var(--muted); font-size: 17px; }
.credits { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 4px 0 0; }
.credits div { display: grid; }
.credits dt { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.credits dd { margin: 0; font-weight: 600; }
.reader__doc { --zoom: 1; background: var(--surface); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); padding: 26px 22px; font: 400 calc(18px * var(--zoom))/1.75 var(--serif); overflow-wrap: anywhere; }
.reader__doc p { margin: 0 0 .7em; }
.reader__doc img { max-width: 100%; height: auto; background: #fff; border-radius: 6px; }
.reader__doc table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
.reader__doc td, .reader__doc th { border: 1px solid var(--line); padding: 4px 8px; }
.reader__tools { position: fixed; right: 14px; bottom: calc(var(--tab-h) + var(--safe-b) + 14px); z-index: 30; display: flex; gap: 2px; padding: 4px; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--shadow-3), inset 0 0 0 1px var(--line); }
.reader__tools button { width: 44px; height: 40px; border-radius: var(--r-pill); font-weight: 700; }
.reader__tools button:hover { background: var(--surface-2); }
.reader__pdf { width: 100%; height: 78vh; border-radius: var(--r-lg); background: var(--surface); }
@media (min-width: 960px) { .reader__tools { bottom: 24px; } }

/* ---------------------------------------------------------------- carte */
.page-map .main { padding: calc(var(--top-h) + var(--safe-t)) 0 calc(var(--tab-h) + var(--safe-b)); }
.map { height: calc(100vh - var(--top-h) - var(--safe-t) - var(--tab-h) - var(--safe-b)); height: calc(100dvh - var(--top-h) - var(--safe-t) - var(--tab-h) - var(--safe-b)); background: var(--surface-2); }
@media (min-width: 960px) { .page-map .main { padding-bottom: 0; } .map { height: calc(100vh - var(--top-h)); height: calc(100dvh - var(--top-h)); } }
.map__status { position: absolute; z-index: 500; left: 50%; top: 14px; transform: translateX(-50%); background: var(--surface); padding: 8px 14px; border-radius: var(--r-pill); box-shadow: var(--shadow-2); font-size: 14px; font-weight: 600; }
.leaflet-container { font: inherit; }
.leaflet-popup-content-wrapper { border-radius: 14px; }

/* ---------------------------------------------------------------- admin */
.moder { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.moder__item { background: var(--surface); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); padding: 12px; display: grid; gap: 10px; }
.moder__item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.moder__missing { aspect-ratio: 1; display: grid; place-items: center; background: var(--surface-2); border-radius: 12px; color: var(--muted); }
.adminlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.adminlist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------------------------------------------------------------- divers */
.offline { position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + var(--safe-b) + 12px); background: var(--text); color: var(--bg); padding: 9px 16px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-3); white-space: nowrap; }
.install-sheet { padding: 22px; width: 420px; display: grid; gap: 14px; }
.install-sheet h2 { font: 600 22px/1.2 var(--serif); }
.kv { display: grid; gap: 6px; }
.two-col { display: grid; gap: 28px; }
@media (min-width: 960px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; } }
.foot { margin-top: 56px; padding: 22px 0 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a:hover { color: var(--text); }

/* transitions entre pages (navigateurs compatibles) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }

/* ---------------------------------------------------------------- connexion / inscription */
.auth { max-width: 440px; margin: 4vh auto 0; display: grid; gap: 22px; }
.auth__head { display: grid; gap: 8px; }
.auth__head p { color: var(--muted); }
.auth .form { background: var(--surface); padding: 22px; border-radius: var(--r-lg); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); }
.auth__alt { display: grid; gap: 10px; text-align: center; color: var(--muted); }
.wizard { background: var(--surface); padding: 22px; border-radius: var(--r-lg); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); }
.chip:has(input:checked) { background: var(--text); color: var(--bg); box-shadow: none; }
.chip:has(input:focus-visible) { outline: 2.5px solid var(--accent-ink); outline-offset: 2px; }
.docfield { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-md); background: var(--surface-2); }
.docfield__head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
details > summary.btn { list-style: none; }
details > summary.btn::-webkit-details-marker { display: none; }
.chat__pane-empty { display: none; }
@media (min-width: 960px) { .chat__pane-empty { display: block; } }
@media (max-width: 959px) { .chat:not(.chat--open) .chat__pane-empty[aria-hidden="false"] { display: block; margin-top: 16px; } }

/* corrections après revue visuelle */
dialog:not([open]) { display: none !important; }
.avstack__lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.erow .avstack { min-width: 0; }
@media (max-width: 559px) { .erow__thumb { display: none; } }
.acard__name, .acard__meta { display: block; }
.pushcard__status { font-size: 15px; align-items: flex-start; }
.pushcard__dot { margin-top: 6px; }
.chat, .threads, .chat__list { grid-template-columns: minmax(0, 1fr); min-width: 0; }
@media (min-width: 960px) { .chat { grid-template-columns: 340px minmax(0, 1fr); } }
.thread__main, .thread__prev { display: block; }
.thread__top { display: flex; }

/* ---------------------------------------------------------------- fiche technique */
.fiche__kicker { display: flex; gap: 8px; margin-bottom: 10px; }
.fiche__meta { display: grid; gap: 6px; margin-top: 12px; color: var(--muted); }
.fiche__meta span { display: flex; gap: 8px; align-items: flex-start; }
.fiche__meta svg { width: 18px; height: 18px; margin-top: 2px; }
.fiche__actions { margin-top: 18px; }
.fiche__gen { margin-bottom: 8px; }
.kvs { margin: 10px 0 0; display: grid; gap: 10px; }
.kvs div { display: grid; gap: 2px; }
.kvs dt { font-size: 13px; color: var(--muted); font-weight: 650; }
.kvs dd { margin: 0; }
.pre { white-space: pre-line; }
.fiche__table { display: grid; gap: 10px; }
.fiche__row { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.fiche__row--head { display: none; }
.fiche__row [data-label]::before { content: attr(data-label); display: block; font-size: 12.5px; font-weight: 650; color: var(--muted); }
.fiche__row--refuse { opacity: .6; }
.fiche__who { display: flex; gap: 10px; align-items: center; }
.fiche__who small { display: block; color: var(--muted); font-size: 13px; }
.fiche__printonly { display: none; }
@media (min-width: 960px) {
  .fiche__table { gap: 0; background: var(--surface); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
  .fiche__row { grid-template-columns: 1.1fr .9fr 1.6fr 1.5fr .7fr; gap: 16px; border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); align-items: start; }
  .fiche__row--head { display: grid; border-top: 0; background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--muted); padding: 10px 14px; }
  .fiche__row [data-label]::before { display: none; }
}
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  :root { --bg: #fff; --surface: #fff; --surface-2: #F0F2EA; --text: #000; --muted: #444; --line: #ccc; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .top, .tabbar, .foot, .toasts, .fiche__noprint, .fiche__actions, .offline, dialog { display: none !important; }
  .main { padding: 0 !important; }
  .fiche__printonly { display: block; }
  .fiche__table { gap: 0; box-shadow: none; border: 1px solid #ccc; }
  .fiche__row { grid-template-columns: 1.1fr .9fr 1.6fr 1.5fr .7fr; gap: 10px; border-radius: 0; box-shadow: none; border-top: 1px solid #ccc; break-inside: avoid; padding: 8px; }
  .fiche__row--head { display: grid; background: #eee; }
  .fiche__row [data-label]::before { display: none; }
  .av { display: none; }
}
.fiche__meta a { white-space: nowrap; }

/* choix des musiciens et de leurs instruments */
.chips-picked:has(.pick) { display: grid; gap: 10px; }
.pick { display: grid; gap: 10px; padding: 12px; border-radius: var(--r-md); background: var(--surface-2); }
.pick__head { display: flex; align-items: center; gap: 10px; }
.pick__head strong { flex: 1; }
.pickinstr { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pickinstr .chip { cursor: pointer; height: 34px; }
.pickinstr__autre { width: 170px; min-height: 34px; padding: 6px 12px; border-radius: var(--r-pill); }
.search--lg { height: 52px; padding: 0 8px 0 18px; box-shadow: var(--shadow-1), inset 0 0 0 1.5px var(--line-strong); }
.search--lg input { font-size: 16.5px; }

/* ---------------------------------------------------------------- carte plein écran (principe de l'ancienne carte) */
.page-map .top { display: none; }
.page-map .main { padding: 0; }
.page-map .map { position: fixed; top: 0; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--safe-b)); height: auto; z-index: 1; }
@media (min-width: 960px) { .page-map .map { bottom: 0; } }
.mapbar { position: fixed; z-index: 500; top: calc(12px + var(--safe-t)); left: 12px; right: 12px; display: flex; gap: 10px; align-items: center; max-width: 560px; }
.mapbar__back { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-3), inset 0 0 0 1px var(--line); }
.mapbar__search { flex: 1; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--shadow-3), inset 0 0 0 1px var(--line); }
.mapbar__search:focus-within { box-shadow: var(--shadow-3), inset 0 0 0 2px var(--accent-ink); }
.mapbar__search svg { color: var(--muted); }
.mapbar__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; height: 100%; color: var(--text); }
.mapbar__count { font-weight: 700; font-size: 13px; color: var(--accent-ink); }
.page-map .map__status { position: fixed; top: calc(74px + var(--safe-t)); z-index: 500; }
.map-face { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 3px #0F4A3A, 0 6px 16px rgba(37, 26, 34, .45); transition: transform .2s var(--ease); }
.map-face:hover { transform: scale(1.12); }
.map-face img { width: 100%; height: 100%; object-fit: cover; }
.map-face--ini { display: grid; place-items: center; font: 600 18px/1 var(--serif); color: #0F4A3A; background: #E6F2B4; }
.map-cluster { display: grid; place-items: center; border-radius: 50%; background: #0F4A3A; color: #D4F04A; font: 700 15px/1 var(--sans); box-shadow: 0 0 0 5px rgba(239, 85, 76, .3), 0 6px 18px rgba(37, 26, 34, .35); }
.map-pop .leaflet-popup-content-wrapper { padding: 0; overflow: hidden; border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-3); }
.map-pop .leaflet-popup-content { margin: 0; width: 280px !important; }
.map-pop .leaflet-popup-tip { background: var(--surface); }
.leaflet-container .map-pop a.leaflet-popup-close-button { top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; font: 20px/30px var(--sans); }
.map-card__photo { display: block; width: 100%; height: 220px; object-fit: cover; }
.map-card__photo--ini { display: grid; place-items: center; font: 500 64px/1 var(--serif); color: #0F4A3A; background: #E6F2B4; }
.map-card__body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.map-card__body h3 { font: 600 20px/1.2 var(--serif); margin: 0; }
.map-card__body p { margin: 0; font-size: 14px; }
.map-card__lieu { color: var(--muted); }
.map-card__muted { color: var(--muted); }
.map-card__btn { margin-top: 10px; display: block; text-align: center; padding: 11px; border-radius: var(--r-pill); background: var(--accent-strong); color: var(--on-accent) !important; font-weight: 650; }
.leaflet-container { background: var(--surface-2); }
.leaflet-container .map-face img { width: 52px !important; height: 52px !important; max-width: none !important; }
.leaflet-container .map-card__photo { width: 100% !important; height: 220px !important; max-width: none !important; }
.leaflet-container .map-card__body p { margin: 0; }
.leaflet-container .map-card__body h3 { margin: 0; }

/* ---------------------------------------------------------- panier de musiciens */
.panier { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-lg, 16px); background: var(--surface); border: 1.5px dashed var(--accent-ink); }
.panier__head { display: flex; align-items: center; gap: 10px; }
.panier__title { flex: 1; display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; }
.panier__title svg { width: 20px; height: 20px; color: var(--accent-ink); }
.panier__n { min-width: 28px; height: 28px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; }
.panier__n[data-zero] { background: var(--surface-2); color: var(--muted, inherit); }
.panier__vide { margin: 0; font-size: 14px; color: var(--muted, inherit); }
.panier .pick { background: var(--surface-2); }
.fiche-affiche { float: right; width: 140px; margin: 0 0 12px 16px; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.fiche-affiche img { display: block; width: 100%; height: auto; }
@media (max-width: 560px) { .fiche-affiche { float: none; width: 100%; max-width: 260px; margin: 0 0 14px; } }
@media print { .fiche-affiche { width: 110px; box-shadow: none; } }
.alerte-invit { display: flex; margin-top: 14px !important; align-items: center; gap: 10px; margin: 0 0 18px; padding: 12px 14px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.alerte-invit svg { width: 20px; height: 20px; flex: none; }
.alerte-invit span { flex: 1; }

/* ---------------------------------------------------------- confirmation dans la page */
dialog.confirm { width: min(420px, calc(100vw - 32px)); }
.confirm__box { display: grid; gap: 18px; padding: 22px; }
.confirm__txt { margin: 0; font-size: 16px; line-height: 1.45; }
.confirm__btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------------------------------------------------------- invitation à activer les notifications */
.pushsheet { padding: 24px 22px 20px; width: min(420px, calc(100vw - 24px)); text-align: center; }
.pushsheet[open] { display: grid; gap: 12px; }
.pushsheet h2 { margin: 0; font: 600 22px/1.2 var(--serif); }
.pushsheet p { margin: 0; }
.pushsheet__ico { justify-self: center; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.pushsheet__ico svg { width: 28px; height: 28px; }
.pushsheet .steps-ios { text-align: left; }
.pushsheet__err { color: var(--danger); font-size: 14px; }
.pushsheet__btns { display: grid; gap: 8px; margin-top: 6px; }
@media (max-width: 560px) { .pushsheet { margin: auto auto 12px; } }
.btn--danger-plein { background: var(--danger); color: #fff; }
.btn--danger-plein:hover { filter: brightness(.95); }
.pushsheet__app { justify-self: center; width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow-2); }
.pushsheet__ios { font-size: 16px; line-height: 1.6; }
.pushsheet .ico-partage { display: inline-block; width: 22px; height: 22px; vertical-align: -4px; margin: 0 2px; color: #0A84FF; }
.son-agambar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.switch-row { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.switch-row input { width: 20px; height: 20px; accent-color: var(--accent-ink); }

/* ---------------------------------------------------------- modération */
.gallery__item { position: relative; }
.badge-attente { position: absolute; left: 6px; bottom: 6px; right: 6px; padding: 4px 8px; border-radius: var(--r-pill); background: rgba(12, 21, 17, .78); color: #fff; font-size: 12px; font-weight: 600; text-align: center; }
.moder__type { display: inline-block; margin-bottom: 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* ---------------------------------------------------------- carte d'événement avec affiche */
.ecard { position: relative; display: flex; gap: 14px; padding: 10px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s, transform .15s; }
.ecard:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-2); }
.ecard__poster { position: relative; flex: none; width: 104px; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.ecard__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ecard__poster--vide { display: grid; place-items: center; }
.ecard__poster--t0 { background: linear-gradient(150deg, #E5482B, #F59E3B); }
.ecard__poster--t1 { background: linear-gradient(150deg, #0F4A3A, #1B7A5A); }
.ecard__poster--t2 { background: linear-gradient(150deg, #11201A, #2F5E4E); }
.ecard__poster--t3 { background: linear-gradient(150deg, #7A2BA8, #E5482B); }
.ecard__ph svg { width: 34px; height: 34px; color: rgba(255, 255, 255, .85); }
.ecard__date { position: absolute; left: 6px; bottom: 6px; display: grid; justify-items: center; min-width: 40px; padding: 4px 6px 5px; border-radius: 10px; background: rgba(255, 255, 255, .94); color: #251A22; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; line-height: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.ecard__date b { font: 600 20px/1.05 var(--serif); letter-spacing: 0; text-transform: none; }
.ecard__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 2px 0; }
.ecard__kicker { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--accent-ink); }
.ecard__kicker .tag { margin: 0; }
.ecard__title { margin: 0; font: 600 18px/1.25 var(--serif); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ecard__title a { color: inherit; text-decoration: none; }
.ecard__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ecard__lieu { margin: 0; display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 14px; min-width: 0; }
.ecard__lieu svg { width: 15px; height: 15px; flex: none; }
.ecard__lieu span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecard .avstack { margin-top: auto; min-width: 0; }
.ecard__nb { margin: 0; font-size: 13px; color: var(--muted); }
.ecard__side { position: absolute; top: 8px; right: 8px; z-index: 2; }
.ecard--past { opacity: .72; }
.ecard--cancel .ecard__title { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.ecard--cancel .ecard__poster img { filter: grayscale(1); }
@media (min-width: 720px) {
  .elist:has(.ecard) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .ecard__poster { width: 120px; }
}
.ecard:has(.ecard__side) .ecard__body { padding-right: 34px; }

/* ---------------------------------------------------------- événements trouvés */
.zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin: 4px 0 8px; }
.zone { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); font-size: 14px; }
.zone small { color: var(--muted); font-size: 12.5px; }
.trouves { display: grid; gap: 14px; }
@media (min-width: 900px) { .trouves { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trouve { display: flex; gap: 14px; padding: 12px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.trouve__img { position: relative; flex: none; width: 120px; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.trouve__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trouve__img--vide { display: grid; place-items: center; background: linear-gradient(150deg, #2F6E8F, #1F2E57); }
.trouve__img--vide svg { width: 34px; height: 34px; color: rgba(255, 255, 255, .85); }
.trouve__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.trouve__titre { margin: 0; font: 600 18px/1.25 var(--serif); }
.trouve__artistes { margin: 0; font-size: 14px; font-weight: 600; }
.trouve__desc { margin: 0; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.trouve__liens { margin: 0; font-size: 14px; }
.trouve__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.elist > *, .ecard { min-width: 0; }
.elist { grid-template-columns: minmax(0, 1fr); }
.trouves { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .trouves { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trouve, .zones > * { min-width: 0; }
.trouve__img { width: 104px; }

/* ---------------------------------------------------------------- carte des événements */
.mapchips { position: fixed; z-index: 499; top: calc(72px + var(--safe-t)); left: 0; right: 0; display: flex; gap: 8px; padding: 2px 12px 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mapchips::-webkit-scrollbar { display: none; }
.mapchips .chip { flex: none; background: var(--surface); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); }
.mapchips .chip.on { background: var(--text); color: var(--bg); }
.mapchips .chip b { font-weight: 700; opacity: .7; margin-left: 4px; }
.mapchips .chip svg { width: 16px; height: 16px; }
@media (min-width: 640px) { .mapchips { padding-left: 12px; max-width: 640px; } }
.map-face--ev { position: relative; box-shadow: 0 0 0 3px #0F4A3A, 0 6px 16px rgba(17, 32, 26, .45); }
.map-face--ev.map-face--ini { font-size: 20px; align-items: start; padding-top: 6px; }
.map-date { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); min-width: 34px; padding: 1px 6px 2px; border-radius: 9px 9px 0 0; background: #0F4A3A; color: #D4F04A; font: 700 12px/1.15 var(--sans); text-align: center; white-space: nowrap; }
.map-date small { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.leaflet-container .map-face--ev img { width: 52px !important; height: 52px !important; }
.map-card__date { color: var(--accent-ink); font-weight: 650; }
.map-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.map-card__actions a { display: block; text-align: center; padding: 9px 6px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text) !important; font-weight: 600; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.map-me { width: 18px; height: 18px; border-radius: 50%; background: #2F7BFF; border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(47, 123, 255, .5), 0 2px 8px rgba(0, 0, 0, .35); animation: map-pulse 2s infinite; }
@keyframes map-pulse { 70% { box-shadow: 0 0 0 16px rgba(47, 123, 255, 0), 0 2px 8px rgba(0, 0, 0, .35); } 100% { box-shadow: 0 0 0 0 rgba(47, 123, 255, 0), 0 2px 8px rgba(0, 0, 0, .35); } }

/* ======================================================= thème « Affiches » : grille et en-têtes compacts */
.elist--affiches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.elist--affiches .ecard { display: flex; flex-direction: column; justify-content: flex-end; gap: 0; padding: 0 12px 14px; height: 214px; border-radius: 24px; overflow: hidden; box-shadow: none; background: var(--surface-3); color: #fff; isolation: isolate; }
.elist--affiches .ecard:hover { box-shadow: var(--shadow-2); }
.elist--affiches .ecard__poster { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; width: auto; aspect-ratio: auto; border-radius: 0; }
.elist--affiches .ecard__poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 28, 22, .88) 0%, rgba(6, 28, 22, .35) 45%, rgba(6, 28, 22, 0) 70%); }
.elist--affiches .ecard__date { z-index: 1; left: 12px; top: 12px; bottom: auto; min-width: 0; padding: 5px 10px; border-radius: 12px; background: #fff; color: #11201A; font-size: 12px; font-weight: 700; display: block; }
.elist--affiches .ecard__date b { display: inline; font: 700 12px/1 var(--sans); margin-right: 3px; }
.elist--affiches .ecard__body { display: contents; }
.elist--affiches .ecard__kicker, .elist--affiches .ecard__title, .elist--affiches .ecard__lieu, .elist--affiches .ecard__nb { margin: 0 0 3px; }
.elist--affiches .ecard__kicker { color: rgba(255, 255, 255, .85); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.elist--affiches .ecard__title { font: 700 17px/1.1 var(--sans); letter-spacing: -.02em; color: #fff; }
.elist--affiches .ecard__lieu, .elist--affiches .ecard__nb { color: rgba(255, 255, 255, .9); font-size: 12px; }
.elist--affiches .ecard .avstack { display: none; }
.elist--affiches .ecard__side { top: 8px; right: 8px; }
.elist--affiches .ecard__side .fav { background: rgba(255, 255, 255, .92); color: #11201A; }
.elist--affiches .ecard--past { opacity: .8; }
@media (min-width: 720px) { .elist--affiches { grid-template-columns: repeat(3, minmax(0, 1fr)); } .elist--affiches .ecard { height: 260px; } }
@media (min-width: 1100px) { .elist--affiches { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.elist--affiches:has(.ecard) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .elist--affiches:has(.ecard) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .elist--affiches:has(.ecard) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* en-tête compact : pas de grand titre sur téléphone (le titre reste lu par les lecteurs d'écran) */
@media (max-width: 959px) {
  .ph--compact { margin-bottom: 12px; }
  .ph--compact .ph__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ph--compact .ph__meta { display: none; }
  .ph--compact .ph__row { justify-content: flex-end; }
  .hello { padding-top: 0; }
  .hello__sub { display: none; }
  .hello__title { font-size: 22px; }
}

/* ----- agenda : recherche + carte sur une ligne, filtres compacts */
.agenda-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.agenda-bar__search { flex: 1 1 auto; min-width: 0; height: 48px; }
.mapbtn { position: relative; flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--accent, #D4F04A); color: #0F4A3A; }
.mapbtn svg { width: 22px; height: 22px; }
.btn--pulse::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 3px solid rgba(212, 240, 74, .7); opacity: 0; pointer-events: none; animation: carte-pulse 2.6s ease-out infinite; will-change: transform, opacity; }
@keyframes carte-pulse { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .btn--pulse::after { animation: none; } }
.filters { gap: 8px; margin-bottom: 14px; }
.filters__row--views { justify-content: space-between; flex-wrap: nowrap; }
.filters__row--views .seg a { height: 32px; padding: 0 11px; font-size: 13.5px; }
.selects { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.sel { position: relative; display: block; min-width: 0; }
.sel::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.sel select { width: 100%; height: 42px; padding: 0 36px 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: 600 14px var(--sans); appearance: none; -webkit-appearance: none; }

/* ----- page événement sur téléphone : affiche en vignette à côté du titre, infos resserrées */
@media (max-width: 959px) {
  .ev { grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; row-gap: 14px; align-items: start; }
  .ev > .stack-lg { display: contents; }
  .ev > .stack-lg > * { grid-column: 1 / -1; }
  .ev > .stack-lg > * + * { margin-top: 0; }
  .ev { row-gap: 20px; }
  .ev > .ev__poster { grid-column: 1; grid-row: 1; padding: 0; border-radius: 14px; aspect-ratio: 3 / 4; align-self: start; }
  .ev__poster-bg { display: none; }
  .ev__poster img { width: 100%; height: 100%; max-height: none; object-fit: cover; border-radius: 0; box-shadow: none; }
  .ev__poster--empty { min-height: 0; }
  .ev__poster--empty svg { width: 32px; height: 32px; }
  .ev > .stack-lg > .ev__head { grid-column: 2; grid-row: 1; align-self: center; gap: 8px; }
  .ev__title { font: 700 22px/1.12 var(--sans); }
  .ev__head .tags { gap: 6px; }
  .ev__facts { padding: 2px; }
  .fact { padding: 7px 8px; gap: 12px; }
  .fact__ico { width: 34px; height: 34px; border-radius: 10px; }
  .fact .stub { transform: scale(.86); transform-origin: left center; margin-right: -8px; }
  .itineraire { padding: 0 8px 8px 54px; }
  .ev__actions { gap: 8px; }
  .ev .section__title { font-size: 17px; }
}

/* ======================================================= RGPD : pages juridiques, consentements */
.legal h2 { font: 700 20px/1.25 var(--sans); letter-spacing: -.01em; margin: 34px 0 10px; scroll-margin-top: 80px; }
.legal p, .legal li { line-height: 1.65; }
.legal p { margin: 0 0 12px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 6px; }
.legal ul ul { margin-top: 6px; }
.legal__toc { margin: 0 0 8px; padding: 14px 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.legal__toc ol { margin: 0; }
.legal__toc a { color: var(--accent-ink); font-weight: 600; }
.legal__table { overflow-x: auto; margin: 12px 0 16px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.legal table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 14px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.legal th { background: var(--surface-2); font-weight: 700; }
.legal tr:last-child td { border-bottom: 0; }
.legal code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); font-size: .92em; }
.legal__todo { background: #FFE9A8; color: #5C4300; padding: 0 5px; border-radius: 4px; }
.consent { display: grid; gap: 10px; margin: 18px 0; padding: 14px; border: 0; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.consent legend.label { padding: 0 4px; }
.consent__row { align-items: flex-start; font-size: 14.5px; line-height: 1.5; }
.consent__row input { margin-top: 3px; flex: none; }
.consent-wrap[hidden] { display: none; }
.foot__legal { flex-basis: 100%; }
.video__play--ph { background: linear-gradient(150deg, #0F4A3A, #1B7A5A); gap: 8px; align-content: center; justify-items: center; }
.video__play--ph small { position: relative; z-index: 1; font-size: 12.5px; line-height: 1.35; text-align: center; opacity: .92; }

/* ----- recherche avancée repliée + fluidité mobile */
.agenda-bar--sub { margin: -2px 0 8px; justify-content: space-between; }
.advbtn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: 600 13.5px var(--sans); }
.advbtn svg { width: 16px; height: 16px; }
.advbtn[aria-expanded="true"] { border-color: var(--nav); }
.advbtn__n { min-width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 9px; background: var(--nav); color: #fff; font-size: 11px; }
.adv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.adv[hidden] { display: none; }
.adv__actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.adv__actions:empty { display: none; }
.sel__lbl { display: block; margin: 0 0 3px 12px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.sel::after { top: auto; bottom: 14px; }
.dir-tools { margin-bottom: 8px; gap: 0; }
.dir-tools .agenda-bar { margin-bottom: 0; }
.dir-count { margin: 4px 4px 12px; font-size: 13px; color: var(--muted); }
@media (min-width: 760px) { .adv { grid-template-columns: repeat(4, 1fr); } }
.ecard, .acard { content-visibility: auto; contain-intrinsic-size: auto 150px; }
@media (max-width: 959px) {
  .feature__bg, .ev__poster-bg { display: none; }
  html { scroll-behavior: auto; }
  * { -webkit-tap-highlight-color: transparent; }
}

/* ----- « À l'affiche » : défilement horizontal au doigt, fin = « Voir plus » vers l'agenda */
.elist--swipe { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 58%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  margin: 0 calc(-1 * var(--g)); padding: 2px var(--g) 8px; scroll-padding: 0 var(--g); scrollbar-width: none; }
.elist--swipe::-webkit-scrollbar { display: none; }
.elist--swipe > * { scroll-snap-align: start; }
.elist--swipe .ecard { height: 250px; }
.ecard-more { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 250px; border-radius: 24px; background: var(--nav); color: #fff; font: 700 16px var(--sans); text-align: center; }
.ecard-more small { font-weight: 500; font-size: 12.5px; opacity: .75; }
.ecard-more__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--nav-on, #D4F04A); color: #0F4A3A; }
.ecard-more__ico svg { width: 22px; height: 22px; }
@media (min-width: 640px) { .elist--swipe { grid-auto-columns: 32%; } }
@media (min-width: 960px) { .elist--swipe { grid-auto-columns: 23%; margin: 0; padding: 2px 0 8px; } }

/* ----- aperçu de la carte (accueil) */
.apercu { position: relative; height: 210px; border-radius: 24px; overflow: hidden; background: #cfe0c6; isolation: isolate; }
.apercu__map { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.apercu__lien { position: absolute; inset: 0; z-index: 500; }
.apercu__btn { position: absolute; right: 12px; bottom: 12px; z-index: 501; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 20px; background: #D4F04A; color: #0F4A3A; font: 800 14px var(--sans); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); pointer-events: none; }
.apercu__btn svg { width: 18px; height: 18px; }
.apercu__btn b { font-weight: 600; }
@media (min-width: 960px) { .apercu { height: 280px; } }
.apercu__pin .map-face { width: 44px; height: 44px; }
.apercu__pin .map-face img, .leaflet-container .apercu__pin .map-face--ev img { width: 44px !important; height: 44px !important; }
.apercu__pin .map-date { font-size: 11px; min-width: 30px; }
.apercu { height: 240px; }
