
/* Concept : la source en plein jour. Un blanc froid, une encre profonde, et un seul bleu cobalt
   qui ondule comme la lumière au fond de l'eau. Grande typo serrée, cartes souples, le logo tricolore intact.
   Formes : surfaces larges 28px, cartes 20px, champs 12px, boutons et puces en pilule. */
:root {
  --bg: #F6F7F9;
  --surface: #FDFDFE;
  --surface-2: #EEF0F4;
  --surface-3: #E3E6EC;
  --ink: #0C0E14;
  --ink-2: #454B5A;
  --ink-3: #69707F;
  --line: rgba(12, 14, 20, 0.08);
  --line-2: rgba(12, 14, 20, 0.16);
  --cobalt: #2B3FE0;
  --cobalt-hi: #3A4DF0;
  --cobalt-ink: #2334C8;
  --cobalt-soft: rgba(43, 63, 224, 0.09);
  --cobalt-line: rgba(43, 63, 224, 0.32);
  --abyss: #070C24;
  --ice: #DCE5FF;
  --on-accent: #FFFFFF;
  --ok: #0E7F58;
  --ok-soft: rgba(14, 127, 88, 0.1);
  --danger: #C4283A;
  --danger-soft: rgba(196, 40, 58, 0.09);
  --glass: rgba(246, 247, 249, 0.74);
  --scrim: rgba(7, 10, 26, 0.42);
  --shadow: 0 1px 2px rgba(12, 20, 60, 0.05), 0 14px 34px -14px rgba(12, 20, 60, 0.2);
  --shadow-lg: 0 2px 4px rgba(12, 20, 60, 0.05), 0 34px 80px -24px rgba(12, 20, 60, 0.34);
  --logo-ink: #0A1F44;
  --logo-blue: #1F4FA8;
  --logo-red: #D7263D;
  --logo-edge: rgba(10, 31, 68, 0.3);
  --font: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --tex: url("/assets/img/caustics.webp");
  --still: url("/assets/img/still.webp");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0B10; --surface: #12141C; --surface-2: #191C26; --surface-3: #232735;
    --ink: #F0F2F7; --ink-2: #AAB0BF; --ink-3: #7F8697;
    --line: rgba(240, 242, 247, 0.08); --line-2: rgba(240, 242, 247, 0.16);
    --cobalt: #4153F2; --cobalt-hi: #5566FF; --cobalt-ink: #97A3FF; --cobalt-soft: rgba(85, 102, 255, 0.14); --cobalt-line: rgba(151, 163, 255, 0.4);
    --ok: #45D39A; --ok-soft: rgba(69, 211, 154, 0.12); --danger: #FF6E7C; --danger-soft: rgba(255, 110, 124, 0.12);
    --glass: rgba(10, 11, 16, 0.72); --scrim: rgba(0, 0, 0, 0.58);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 40px 90px -24px rgba(0, 0, 0, 0.8);
    --logo-ink: #FFFFFF; --logo-blue: #4C7DD9; --logo-edge: transparent;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0B10; --surface: #12141C; --surface-2: #191C26; --surface-3: #232735;
  --ink: #F0F2F7; --ink-2: #AAB0BF; --ink-3: #7F8697;
  --line: rgba(240, 242, 247, 0.08); --line-2: rgba(240, 242, 247, 0.16);
  --cobalt: #4153F2; --cobalt-hi: #5566FF; --cobalt-ink: #97A3FF; --cobalt-soft: rgba(85, 102, 255, 0.14); --cobalt-line: rgba(151, 163, 255, 0.4);
  --ok: #45D39A; --ok-soft: rgba(69, 211, 154, 0.12); --danger: #FF6E7C; --danger-soft: rgba(255, 110, 124, 0.12);
  --glass: rgba(10, 11, 16, 0.72); --scrim: rgba(0, 0, 0, 0.58);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 40px 90px -24px rgba(0, 0, 0, 0.8);
  --logo-ink: #FFFFFF; --logo-blue: #4C7DD9; --logo-edge: transparent;
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; transition: background-color 240ms var(--ease), color 240ms var(--ease); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 600; text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
img, canvas, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--cobalt); color: var(--on-accent); }
.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; vertical-align: -0.2em; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--cobalt-ink); }

/* ---------- logo : « La Source » dans l'italique des titres ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: stretch; gap: 3px; color: var(--logo-ink); line-height: 1; }
.logo-word { font-family: var(--font); font-style: italic; font-weight: 600; font-stretch: 92%; font-size: 26px; letter-spacing: -0.05em; word-spacing: 0.08em; white-space: nowrap; text-align: center; padding-right: 0.06em; }
.logo.on-dark { color: #FFFFFF; }

/* ---------- boutons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 22px; border-radius: 999px; border: 1px solid transparent; background: var(--cobalt); color: var(--on-accent); font-weight: 600; font-size: 15px; line-height: 1.2; letter-spacing: -0.005em; cursor: pointer; white-space: nowrap; transition: transform 160ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease); }
.btn .ic { width: 18px; height: 18px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.soft { background: var(--surface-2); color: var(--ink); }
.btn.white { background: #FFFFFF; color: #0C0E14; }
.btn.glass { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; border-color: rgba(255, 255, 255, 0.34); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn.danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.btn.done { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.btn.sm { min-height: 38px; padding: 7px 16px; font-size: 14px; }
.btn.lg { min-height: 54px; padding: 14px 28px; font-size: 16px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn:active:not([disabled]) { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover:not([disabled]) { background: var(--cobalt-hi); }
  .btn.ghost:hover:not([disabled]) { background: var(--surface-2); border-color: var(--line-2); }
  .btn.soft:hover:not([disabled]) { background: var(--surface-3); }
  .btn.white:hover:not([disabled]) { background: #EEF1FF; }
  .btn.glass:hover:not([disabled]) { background: rgba(255, 255, 255, 0.2); }
  .btn.danger:hover:not([disabled]) { background: var(--danger-soft); }
  .btn.done:hover:not([disabled]) { background: var(--ok-soft); }
}
.btn .arrow { transition: transform 200ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .btn:hover .arrow { transform: translateX(3px); } }
.iconbtn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer; transition: background-color 160ms var(--ease), transform 160ms var(--ease); }
.iconbtn .ic { width: 20px; height: 20px; }
.iconbtn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .iconbtn:hover { background: var(--surface-2); } }
.count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--cobalt); color: var(--on-accent); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--bg); font-variant-numeric: tabular-nums; }
.link { color: var(--cobalt-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; }
.link .ic { transition: transform 200ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .link:hover .ic { transform: translateX(3px); } .link:hover { text-decoration: underline; text-underline-offset: 4px; } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
kbd { font-family: inherit; font-size: 12px; font-weight: 600; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; background: var(--surface); }

/* ---------- puces, étiquettes, statuts ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: transform 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease); }
.chip .ic { width: 16px; height: 16px; }
.chip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip:hover { color: var(--ink); border-color: var(--ink-3); } }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--surface-2); }
.seg button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color 180ms var(--ease), color 180ms var(--ease); }
.seg button .ic { width: 16px; height: 16px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(12, 20, 60, 0.12); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.tag.reseau { background: var(--cobalt-soft); color: var(--cobalt-ink); }
.tag.atelier { background: transparent; box-shadow: inset 0 0 0 1px var(--cobalt-line); color: var(--cobalt-ink); }
.tag.conf { background: var(--ink); color: var(--bg); }
.tag.after { background: var(--surface-2); color: var(--ink-2); }
.tag.onimg { background: rgba(255, 255, 255, 0.16); color: #FFFFFF; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.pill { font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; padding: 2px 9px; border-radius: 999px; background: var(--cobalt-soft); color: var(--cobalt-ink); white-space: nowrap; }
body[data-auth="in"] .pill.only { display: none; }
.badge { display: inline-flex; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--cobalt-soft); color: var(--cobalt-ink); margin-left: 8px; vertical-align: middle; white-space: nowrap; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.st.ok { background: var(--ok-soft); color: var(--ok); }
.st.wait { background: var(--cobalt-soft); color: var(--cobalt-ink); }
.st.no { background: var(--danger-soft); color: var(--danger); }

/* ---------- formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field > .lab { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea, .input { width: 100%; min-height: 48px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); border-radius: var(--r-md); padding: 12px 14px; font-size: 16px; min-width: 0; transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease); }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder, .input::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-soft); }
.field input:read-only:not([type=number]) { background: var(--surface-2); }
.field input:disabled { background: var(--surface-2); color: var(--ink-2); }
.search { position: relative; }
.search .ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.search input { padding-left: 44px; border-radius: 999px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--cobalt); flex: none; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.formgrid .full { grid-column: 1 / -1; }
.hint { font-size: 13.5px; color: var(--ink-3); }
.err { color: var(--danger); font-size: 14px; min-height: 1.3em; }
.flash { color: var(--ok); font-size: 14px; min-height: 1.3em; }
.err:empty, .flash:empty { min-height: 0; }

/* ---------- en-tête ---------- */
.demo-bar { background: var(--ink); color: var(--bg); font-size: 13px; text-align: center; padding: 7px var(--gutter); }
.demo-bar b { font-weight: 600; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--glass); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid transparent; transition: border-color 200ms var(--ease), background-color 240ms var(--ease); }
.top.scrolled { border-bottom-color: var(--line); }
.topbar { display: flex; align-items: center; gap: 20px; height: 70px; }
.nav { display: flex; gap: 2px; margin-inline: auto; padding: 4px; }
.nav a { display: inline-flex; align-items: center; padding: 8px 15px; border-radius: 999px; color: var(--ink-2); font-size: 15px; font-weight: 500; white-space: nowrap; transition: color 160ms var(--ease), background-color 160ms var(--ease); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); } }
.tools { display: flex; align-items: center; gap: 4px; }
.searchbtn { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 8px 0 14px; margin-right: 6px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-3); font-size: 14px; cursor: pointer; transition: border-color 160ms var(--ease), transform 160ms var(--ease); }
.searchbtn .ic { width: 17px; height: 17px; color: var(--ink-2); }
.searchbtn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .searchbtn:hover { border-color: var(--ink-3); } }
.auth-out { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.userbtn { display: flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; margin-left: 6px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); cursor: pointer; transition: border-color 160ms var(--ease), transform 160ms var(--ease); }
.userbtn:active { transform: scale(0.97); }
.userbtn .who { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.userbtn .who b { font-size: 13.5px; font-weight: 600; }
.userbtn .who span { font-size: 12px; color: var(--ink-3); }
.menu-btn { display: none; }
@media (max-width: 1100px) { .nav { display: none; } .topbar { gap: 8px; } .tools { margin-left: auto; } }
@media (max-width: 1100px) { .menu-btn { display: inline-grid; } }
@media (max-width: 760px) { .logo-word { font-size: 22px; } .tools > .t-wide, .tools > .pop-anchor.t-wide { display: none !important; } .searchbtn .lbl, .searchbtn kbd, .auth-out, .userbtn .who { display: none; } .searchbtn { padding: 0; width: 42px; justify-content: center; border-color: transparent; background: transparent; margin: 0; } .userbtn { padding: 3px; } }

/* avatars */
.av { width: 34px; height: 34px; border-radius: 999px; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; color: #FFFFFF; background: hsl(var(--h, 232) 62% 48%); }
.av.lg { width: 56px; height: 56px; font-size: 19px; }
.av.xl { width: 84px; height: 84px; font-size: 28px; }
.av.team { background: var(--ink); color: var(--bg); }
.avstack { display: flex; }
.avstack .av { box-shadow: 0 0 0 3px var(--surface); }
.avstack .av + .av { margin-left: -10px; }

/* menus flottants */
.pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; min-width: 240px; padding: 6px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-4px) scale(0.97); transform-origin: top right; transition: opacity 160ms var(--ease), transform 180ms var(--ease), visibility 0s linear 180ms; }
.pop.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.pop-anchor { position: relative; }
.pop a, .pop button.item { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; border: 0; background: transparent; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; }
.pop a .ic, .pop button.item .ic { width: 18px; height: 18px; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .pop a:hover, .pop button.item:hover { background: var(--surface-2); } }
.pop .sep { height: 1px; background: var(--line); margin: 5px 6px; }
.pop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 10px; }
.pop-head b { font-size: 15px; }
.notifs { width: min(380px, calc(100vw - 32px)); }
.notif-list { max-height: min(420px, 60vh); overflow-y: auto; }
.notif { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; width: 100%; text-align: left; padding: 10px; border: 0; border-radius: 14px; background: transparent; cursor: pointer; color: var(--ink); }
.notif .nic { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.notif .nic .ic { width: 18px; height: 18px; }
.notif.unread .nic { background: var(--cobalt-soft); color: var(--cobalt-ink); }
.notif b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.notif span { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.notif.unread b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 99px; background: var(--cobalt); margin-left: 8px; vertical-align: middle; }
@media (hover: hover) and (pointer: fine) { .notif:hover { background: var(--surface-2); } }
.notif-empty { padding: 26px 12px; text-align: center; color: var(--ink-3); font-size: 14px; }

/* menu mobile */
.drawer { position: fixed; inset: 0; z-index: 45; background: var(--bg); padding: 0 var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 240ms var(--ease), transform 280ms var(--ease-drawer), visibility 0s linear 280ms; }
.drawer.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.drawer-nav { display: grid; padding-top: 8px; }
.drawer-nav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: clamp(30px, 8vw, 44px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.drawer-nav a .ic { width: 22px; height: 22px; color: var(--ink-3); }
.drawer-nav a[aria-current="page"] { color: var(--cobalt-ink); }
.drawer-auth { display: grid; gap: 10px; margin-top: 28px; }
.drawer-user { display: flex; align-items: center; gap: 12px; padding: 18px 2px 6px; }
.drawer-user b { display: block; font-size: 17px; }
.drawer-user span.r { display: block; font-size: 14px; color: var(--ink-3); }

/* ---------- structure de page ---------- */
.page { min-height: min(50vh, 560px); }
.phead { display: grid; gap: 16px; padding-block: clamp(40px, 6vw, 88px) clamp(28px, 4vw, 48px); }
.phead h1 { font-size: clamp(46px, 7vw, 104px); line-height: 0.95; letter-spacing: -0.048em; font-stretch: 92%; }
.phead h1 em, .h2 em, .hero h1 em, .band h2 em { font-style: italic; font-weight: 600; }
.phead p { max-width: 58ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); }
.phead .actions { margin-top: 6px; }
.sec { padding-top: clamp(80px, 11vw, 150px); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.h2 { font-size: clamp(36px, 5vw, 68px); line-height: 0.98; letter-spacing: -0.042em; font-stretch: 94%; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -0.022em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 54ch; }
.block { margin-top: clamp(48px, 6vw, 80px); }
.sub { font-size: clamp(26px, 3vw, 36px); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 20px; }
.sub em { font-style: italic; }
.empty { padding: 36px 20px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.toolbar .search { flex: 1 1 260px; max-width: 420px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 28px); min-width: 0; }

/* ---------- accueil : hero ---------- */
.hero { padding-inline: clamp(8px, 1.4vw, 20px); padding-top: 8px; }
.hero-frame { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); min-height: clamp(520px, 46vw, 720px); display: flex; flex-direction: column; justify-content: flex-end; color: #FFFFFF; background-color: #0B1242; background-image: var(--still), radial-gradient(120% 90% at 85% 0%, #4458FF 0%, #2336D0 38%, #0C1558 78%, #070C24 100%); background-size: cover, cover; background-position: center; background-blend-mode: screen, normal; }
.hero-frame::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(5, 9, 30, 0.72) 0%, rgba(5, 9, 30, 0.25) 42%, rgba(5, 9, 30, 0) 70%); pointer-events: none; }
#water { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity 900ms var(--ease); cursor: crosshair; }
#water.on { opacity: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; gap: 28px 48px; padding: clamp(24px, 4vw, 56px); pointer-events: none; }
.hero-grid a, .hero-grid button { pointer-events: auto; }
.hero h1 { font-size: clamp(54px, 9.4vw, 152px); line-height: 0.9; letter-spacing: -0.055em; font-stretch: 90%; font-weight: 600; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero h1 .ln > span { display: inline-block; }
.hero-side { display: grid; gap: 22px; justify-items: start; }
.hero-side p { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; color: rgba(255, 255, 255, 0.86); max-width: 34ch; }
.hero-side .cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-in h1 { font-size: clamp(50px, 8vw, 128px); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-frame { min-height: 560px; } }
@media (prefers-reduced-motion: no-preference) {
  .rise .ln > span { animation: rise 900ms var(--ease) both; }
  .rise .ln:nth-child(2) > span { animation-delay: 80ms; }
  .rise .ln:nth-child(3) > span { animation-delay: 160ms; }
  .fade-up { animation: fadeup 800ms var(--ease) both; animation-delay: 260ms; }
}
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* bandeau défilant (un seul sur la page) */
.marquee { overflow: hidden; padding-block: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; width: max-content; gap: 0; }
.mq-group { display: flex; align-items: center; flex: none; }
.mq-item { font-size: clamp(34px, 5.2vw, 76px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; font-stretch: 90%; white-space: nowrap; padding-inline: clamp(18px, 2.4vw, 36px); }
.mq-item.alt { font-style: italic; color: var(--ink-3); }
.mq-sep { width: 12px; height: 12px; border-radius: 999px; background: var(--cobalt); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .mq-track { animation: marquee 48s linear infinite; }
  .marquee:hover .mq-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* manifeste qui s'encre à la lecture */
.manifesto { font-size: clamp(28px, 3.7vw, 54px); line-height: 1.14; letter-spacing: -0.032em; font-weight: 500; max-width: 23ch; max-width: min(100%, 1120px); text-wrap: pretty; }
.manifesto .hl { color: var(--cobalt-ink); font-style: italic; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .manifesto .w { color: var(--ink-3); animation: inkin linear both; animation-timeline: view(); animation-range: cover 18% cover 42%; }
    .manifesto .hl .w { color: inherit; animation: none; }
  }
}
@keyframes inkin { to { color: var(--ink); } }
.mani-foot { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 40px; }
.stat b { display: block; font-size: clamp(38px, 4.4vw, 60px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-3); font-size: 15px; }

/* comment ça marche : cartes empilées */
.stack { display: grid; gap: 24px; }
.stack-card { position: sticky; top: calc(96px + var(--i) * 18px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); min-height: clamp(360px, 36vw, 480px); border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transform-origin: center top; will-change: transform; }
.stack-card::after { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: var(--dim, 0); pointer-events: none; border-radius: inherit; }
.sc-body { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(26px, 3.4vw, 48px); }
.sc-num { font-size: clamp(64px, 8vw, 120px); font-weight: 600; line-height: 0.8; letter-spacing: -0.06em; color: var(--cobalt-ink); font-variant-numeric: tabular-nums; }
.sc-body h3 { font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -0.04em; line-height: 1; margin-bottom: 14px; }
.sc-body p { color: var(--ink-2); max-width: 40ch; font-size: 17px; }
.sc-vis { position: relative; margin: 14px; border-radius: calc(var(--r-xl) - 10px); overflow: hidden; display: flex; align-items: flex-end; padding: 24px; }
.sc-vis .big { font-size: clamp(40px, 5vw, 76px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; color: #FFFFFF; font-stretch: 90%; }
.sc-vis .big small { display: block; font-size: 15px; line-height: 1.35; letter-spacing: 0; font-weight: 500; color: rgba(255, 255, 255, 0.8); margin-top: 10px; font-stretch: 100%; }
@media (max-width: 820px) { .stack-card { grid-template-columns: minmax(0, 1fr); top: calc(84px + var(--i) * 12px); } .sc-vis { min-height: 180px; } }

/* bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.bx { --mx: 50%; --my: 50%; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 18px; min-height: 320px; padding: clamp(22px, 2.6vw, 34px); border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); transition: transform 280ms var(--ease), border-color 280ms var(--ease); }
.bx::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(420px circle at var(--mx) var(--my), var(--cobalt-soft), transparent 60%); transition: opacity 280ms var(--ease); }
.bx.tex::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.16), transparent 60%); }
@media (hover: hover) and (pointer: fine) { .bx:hover { transform: translateY(-4px); border-color: var(--line-2); } .bx:hover::before { opacity: 1; } }
.bx h3 { font-size: clamp(30px, 3.2vw, 44px); letter-spacing: -0.04em; line-height: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.bx p { color: var(--ink-2); max-width: 40ch; }
.bx.tex p { color: rgba(255, 255, 255, 0.84); }
.bx .go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.bx .go .ic { transition: transform 220ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .bx:hover .go .ic { transform: translate(3px, -3px); } }
.bx-a { grid-column: span 7; grid-row: span 2; min-height: 540px; }
.bx-b { grid-column: span 5; }
.bx-c { grid-column: span 5; background: var(--surface-2); }
.bx-d { grid-column: span 12; flex-direction: row; flex-wrap: wrap; align-items: center; min-height: 220px; }
.bx-d > div { flex: 1 1 320px; display: grid; gap: 12px; }
.mini-ev { display: grid; gap: 2px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.mini-ev .mini-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.mini-ev .d { font-size: 30px; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.mini-ev .d small { font-size: 13px; letter-spacing: 0; font-weight: 500; opacity: 0.8; margin-left: 4px; }
.mini-ev b { font-weight: 600; font-size: 17px; line-height: 1.3; }
.bignum { font-size: clamp(64px, 7vw, 104px); font-weight: 600; line-height: 0.85; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.thread-peek { border-radius: var(--r-lg); background: var(--surface-2); padding: 18px; display: grid; gap: 8px; }
.thread-peek b { font-size: 17px; line-height: 1.35; }
@media (max-width: 900px) { .bx-a, .bx-b, .bx-c, .bx-d { grid-column: 1 / -1; grid-row: auto; min-height: 280px; } }

/* rail de soirées (dates façon affiche) */
.rail { position: relative; }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(360px, 82vw); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-inline: var(--gutter); padding-bottom: 12px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; overscroll-behavior-x: contain; }
.rail-track::-webkit-scrollbar { display: none; }
.evcard { scroll-snap-align: start; display: flex; flex-direction: column; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); cursor: pointer; text-align: left; padding: 0; transition: transform 280ms var(--ease), border-color 280ms var(--ease); }
.evcard:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) { .evcard:hover { transform: translateY(-4px); border-color: var(--line-2); } }
.evcard-vis { position: relative; aspect-ratio: 16 / 11; max-width: 100%; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; color: #FFFFFF; }
.evcard-date { display: flex; align-items: flex-end; gap: 12px; }
.evcard-date .d { font-size: 104px; font-weight: 600; line-height: 0.78; letter-spacing: -0.07em; font-variant-numeric: tabular-nums; font-stretch: 88%; }
.evcard-date .m { display: grid; font-size: 14px; font-weight: 600; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.08em; padding-bottom: 4px; }
.evcard-date .m span { font-weight: 500; opacity: 0.8; letter-spacing: 0.02em; text-transform: none; }
.evcard-body { padding: 20px 22px 22px; display: grid; gap: 10px; flex: 1; align-content: start; }
.evcard-body h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.022em; }
.evcard-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-3); font-size: 14px; }
.evcard-meta span { display: inline-flex; align-items: center; gap: 6px; }
.evcard-meta .ic { width: 16px; height: 16px; }
.evcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 22px 20px; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav .iconbtn { border-color: var(--line-2); }

/* cotisations */
.plans { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; }
.plan { display: flex; flex-direction: column; gap: 22px; border-radius: var(--r-xl); padding: clamp(26px, 3.4vw, 44px); border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.plan .who { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.plan h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.038em; line-height: 1.02; max-width: 16ch; }
.plan-price { display: flex; align-items: baseline; gap: 10px; }
.plan-price b { font-size: clamp(72px, 8vw, 120px); font-weight: 600; letter-spacing: -0.065em; line-height: 0.85; font-variant-numeric: tabular-nums; }
.plan-price span { font-size: 17px; opacity: 0.8; }
.plan-list { display: grid; gap: 10px; }
.plan-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.plan-list .ic { width: 20px; height: 20px; margin-top: 2px; color: var(--cobalt-ink); }
.plan.tex .plan-list .ic { color: #FFFFFF; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.amb-strip { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; border-radius: var(--r-xl); padding: clamp(22px, 2.6vw, 32px); background: var(--surface-2); }
.amb-strip p { max-width: 62ch; color: var(--ink-2); }
.amb-strip b { color: var(--ink); }
@media (max-width: 860px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* questions */
.faq-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq-split .h2 { position: sticky; top: 110px; }
@media (max-width: 860px) { .faq-split { grid-template-columns: minmax(0, 1fr); } .faq-split .h2 { position: static; } }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 2px; font-size: clamp(18px, 1.7vw, 21px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 999px; background: var(--surface-2) no-repeat center / 14px 14px; background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)); background-size: 14px 2px, 2px 14px; transition: transform 240ms var(--ease), background-color 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--cobalt-soft); }
.faq .ans { padding: 0 2px 24px; color: var(--ink-2); max-width: 62ch; }
.faq details[open] .ans { animation: fadeup 320ms var(--ease) both; }
.faqnav { position: sticky; top: 110px; display: grid; gap: 4px; }
.faqnav a { padding: 10px 14px; border-radius: 12px; color: var(--ink-2); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .faqnav a:hover { background: var(--surface-2); color: var(--ink); } }
.faqgroup + .faqgroup { margin-top: 48px; }
.faqgroup h2 { font-size: 15px; font-weight: 600; color: var(--ink-3); margin-bottom: 8px; }
.faqgroup { scroll-margin-top: 100px; }
@media (max-width: 860px) {
  .faqnav { position: static; display: flex; gap: 8px; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .faqnav::-webkit-scrollbar { display: none; }
  .faqnav a { flex: none; white-space: nowrap; padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px; }
}

/* bandeau final */
.band { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); padding: clamp(36px, 7vw, 104px) clamp(24px, 6vw, 88px); display: grid; gap: 26px; justify-items: start; }
.band h2 { font-size: clamp(48px, 8.4vw, 132px); line-height: 0.9; letter-spacing: -0.058em; font-stretch: 90%; max-width: 12ch; }
.band p { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, 0.86); max-width: 46ch; }
.band p b { color: #FFFFFF; font-weight: 600; }
.band .cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- le club ---------- */
.mani-page { font-size: clamp(26px, 3.2vw, 44px); line-height: 1.16; letter-spacing: -0.03em; font-weight: 500; max-width: 30ch; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pillar { position: relative; border-radius: var(--r-xl); padding: clamp(24px, 3vw, 40px); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; min-height: 240px; }
.pillar .pic { width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center; background: var(--cobalt-soft); color: var(--cobalt-ink); }
.pillar .pic .ic { width: 24px; height: 24px; }
.pillar h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.035em; line-height: 1.05; }
.pillar p { color: var(--ink-2); max-width: 42ch; }
.pillar.tex p { color: rgba(255, 255, 255, 0.85); }
.pillar.tex .pic { background: rgba(255, 255, 255, 0.14); color: #FFFFFF; }
@media (max-width: 760px) { .pillars { grid-template-columns: minmax(0, 1fr); } }
a.pillar { transition: transform 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease); }
a.pillar .go { margin-top: 6px; }
.pillar.tex .go { color: #FFFFFF; }
a.pillar:focus-visible { border-radius: var(--r-xl); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { a.pillar:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); } a.pillar:hover .go .ic { transform: translateX(3px); } }
.join { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.join h2 { font-size: clamp(34px, 4.4vw, 60px); letter-spacing: -0.042em; line-height: 1; }
.join > div > p { margin-top: 18px; color: var(--ink-2); max-width: 44ch; }
@media (max-width: 860px) { .join { grid-template-columns: minmax(0, 1fr); } }
.mail { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.addr { font-size: 16px; font-weight: 600; padding: 10px 16px; border-radius: 999px; background: var(--surface-2); user-select: all; overflow-wrap: anywhere; }
.copied { font-size: 14px; color: var(--ok); }

/* ---------- soirées ---------- */
.evlist { border-top: 1px solid var(--line-2); }
.evrow { position: relative; isolation: isolate; display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 10px 32px; align-items: center; padding: 28px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.evrow::before { content: ""; position: absolute; inset: 4px 0; z-index: -1; border-radius: var(--r-lg); background: var(--surface); opacity: 0; transform: scale(0.99); transition: opacity 220ms var(--ease), transform 280ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .evrow:hover::before { opacity: 1; transform: none; } }
.evrow .date { display: flex; align-items: flex-end; gap: 12px; }
.evrow .date .d { font-size: 92px; font-weight: 600; letter-spacing: -0.07em; line-height: 0.8; font-variant-numeric: tabular-nums; font-stretch: 88%; }
.evrow .date .m { display: grid; line-height: 1.25; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cobalt-ink); padding-bottom: 3px; }
.evrow .date .m span { color: var(--ink-3); font-weight: 500; text-transform: none; letter-spacing: 0.01em; }
.evrow h3 { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.12; letter-spacing: -0.03em; }
.evrow .meta { margin-top: 8px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-3); font-size: 14.5px; }
.meta > span { display: inline-flex; align-items: center; gap: 6px; }
.meta .ic { width: 16px; height: 16px; }
.meta .lock { color: var(--cobalt-ink); }
.meta .left { color: var(--ok); }
.evrow .act { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.evrow.past { opacity: 0.55; }
@media (max-width: 760px) {
  .evrow { grid-template-columns: 108px minmax(0, 1fr); padding: 22px 4px; }
  .evrow .date { flex-direction: column; align-items: flex-start; gap: 6px; }
  .evrow .date .d { font-size: 64px; }
  .evrow .act { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; }
}
.notice { display: inline-flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); background: var(--surface-2); border-radius: 999px; padding: 8px 16px; margin-bottom: 24px; }
.notice .ic { color: var(--cobalt-ink); }
.cal { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); overflow: hidden; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cal-head b { font-size: 20px; letter-spacing: -0.02em; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow { padding: 10px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.cal-day { min-height: 112px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day .n { font-size: 13.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cal-day.out .n { color: var(--ink-3); opacity: 0.5; }
.cal-day.today .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: var(--ink); color: var(--bg); }
.cal-ev { text-align: left; border: 0; border-radius: 8px; padding: 6px 8px; font-size: 12.5px; font-weight: 600; line-height: 1.25; background: var(--cobalt); color: var(--on-accent); cursor: pointer; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cal-ev.reg { background: var(--ok); }
@media (max-width: 700px) { .cal-day { min-height: 64px; padding: 5px; } .cal-ev { font-size: 0; padding: 0; height: 8px; border-radius: 99px; } .cal-dow { padding: 8px 4px; text-align: center; } }

/* ---------- panneau latéral (fiches) ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: var(--scrim); opacity: 0; visibility: hidden; transition: opacity 260ms var(--ease), visibility 0s linear 260ms; }
.scrim.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.sheet { position: fixed; z-index: 61; top: 10px; right: 10px; bottom: 10px; width: min(560px, calc(100vw - 20px)); display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; transform: translateX(calc(100% + 24px)); visibility: hidden; transition: transform 420ms var(--ease-drawer), visibility 0s linear 420ms; }
.sheet.open { transform: none; visibility: visible; transition-delay: 0s; }
.sheet-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 3; }
.sheet-close.light { background: rgba(255, 255, 255, 0.16); color: #FFFFFF; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sheet-close:not(.light) { background: var(--surface-2); }
.sheet-vis { min-height: 230px; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; color: #FFFFFF; }
.sheet-vis .date { display: flex; align-items: flex-end; gap: 14px; }
.sheet-vis .date .d { font-size: 120px; font-weight: 600; line-height: 0.78; letter-spacing: -0.07em; font-stretch: 88%; font-variant-numeric: tabular-nums; }
.sheet-vis .date .m { font-size: 15px; font-weight: 600; line-height: 1.3; padding-bottom: 6px; }
.sheet-body { padding: 26px; display: grid; gap: 24px; }
.sheet-body h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.05; letter-spacing: -0.04em; }
.sheet-head { padding: 26px 26px 0; display: grid; gap: 14px; }
.sheet-foot { border-top: 1px solid var(--line); padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--surface); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fact { background: var(--surface-2); border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 4px; min-width: 0; }
.fact span { font-size: 13px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.fact span .ic { width: 15px; height: 15px; }
.fact b { font-weight: 600; font-size: 15.5px; overflow-wrap: anywhere; }
.meter { height: 8px; border-radius: 99px; background: var(--cobalt-soft); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--cobalt); transform-origin: left; }
.prog { display: grid; gap: 0; border-left: 2px solid var(--line-2); margin-left: 6px; }
.prog li { position: relative; padding: 0 0 18px 22px; display: grid; gap: 2px; }
.prog li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--cobalt); }
.prog li b { font-size: 13.5px; color: var(--cobalt-ink); font-variant-numeric: tabular-nums; }
.prog li span { font-size: 15.5px; }
.sheet-sec h4 { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.prose p + p { margin-top: 10px; }
.prose { color: var(--ink-2); }
.prose ul { display: grid; gap: 6px; margin-top: 8px; }
.prose li { display: flex; gap: 10px; }
.prose li::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--cobalt); margin-top: 0.62em; flex: none; }
@media (max-width: 640px) {
  .sheet { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: 92vh; height: 92dvh; border-radius: var(--r-xl) var(--r-xl) 0 0; transform: translateY(100%); }
}

/* ---------- annonces ---------- */
.ogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 14px; }
.ocard { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: transform 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .ocard:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); } }
.omono { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; color: #FFFFFF; background: hsl(var(--h, 232) 58% 46%); }
.ocard h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; padding-right: 44px; }
.ocard .co { color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.ocard .meta { margin-top: 12px; }
.ocard .foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.save { position: absolute; top: 16px; right: 16px; }
.save[aria-pressed="true"] { color: var(--cobalt-ink); }
.pubbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--cobalt-soft); margin-bottom: 24px; }
.pubbar p { color: var(--ink-2); }
.pipeline { display: grid; gap: 10px; }
.applicant { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-lg); background: var(--surface-2); }
.applicant .av { width: 44px; height: 44px; }
.applicant p { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.applicant select { min-height: 38px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; }
@media (max-width: 560px) { .applicant { grid-template-columns: 44px minmax(0, 1fr); } .applicant select { grid-column: 1 / -1; } }
.steps-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.steps-track div { display: grid; gap: 8px; font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.steps-track div::before { content: ""; height: 4px; border-radius: 99px; background: var(--surface-3); }
.steps-track div.on { color: var(--ink); }
.steps-track div.on::before { background: var(--cobalt); }
.steps-track div.no::before { background: var(--danger); }
.ai-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- annuaire ---------- */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.mcard { display: grid; gap: 14px; align-content: start; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); cursor: pointer; text-align: left; transition: transform 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .mcard:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); } }
.mcard .top-row { display: flex; align-items: center; gap: 14px; }
.mcard b { display: block; font-size: 17px; font-weight: 600; line-height: 1.25; }
.mcard .hl { display: block; color: var(--ink-3); font-size: 14px; line-height: 1.4; }
.mcard .bio { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.skills { display: flex; flex-wrap: wrap; gap: 6px; }
.skill { font-size: 12.5px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.skill.x { display: inline-flex; align-items: center; gap: 4px; border: 0; cursor: pointer; }
.profile-head { display: flex; align-items: center; gap: 18px; }

/* ---------- forum ---------- */
.forumgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
@media (max-width: 1000px) { .forumgrid { grid-template-columns: minmax(0, 1fr); } }
.forumbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.forumtools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.forumtools .search { flex: 1 1 240px; }
.newtopic { display: grid; gap: 16px; border-radius: var(--r-lg); padding: 22px; margin-bottom: 20px; background: var(--surface); border: 1px solid var(--cobalt-line); }
.newtopic .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.threads { display: grid; gap: 8px; }
.thread { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: border-color 200ms var(--ease), transform 200ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .thread:hover { border-color: var(--line-2); transform: translateX(3px); } }
.thread .av { width: 44px; height: 44px; font-size: 15px; }
.thread h3 { font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.tmeta { margin-top: 5px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--ink-3); }
.cat { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.kind { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.kind.student { background: var(--cobalt-soft); color: var(--cobalt-ink); }
.kind.pro { background: var(--ink); color: var(--bg); }
.kind.team { background: var(--cobalt); color: var(--on-accent); }
.pin { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--cobalt-ink); }
.pin .ic { width: 14px; height: 14px; }
.stats { display: flex; gap: 14px; color: var(--ink-3); font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats span { display: inline-flex; align-items: center; gap: 5px; }
.stats .ic { width: 16px; height: 16px; }
@media (max-width: 620px) { .thread { grid-template-columns: 40px minmax(0, 1fr); } .thread .stats { grid-column: 2; } }
.side-card { border-radius: var(--r-lg); background: var(--surface-2); padding: 24px; display: grid; gap: 12px; }
.side-card h3 { font-size: 20px; letter-spacing: -0.02em; }
.side-card ul { display: grid; gap: 10px; color: var(--ink-2); font-size: 15px; }
.side-card li { display: flex; gap: 10px; }
.side-card li .ic { color: var(--cobalt-ink); margin-top: 3px; }
.crumb { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); background: none; border: 0; padding: 0; cursor: pointer; margin-bottom: 18px; }
.post { border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); padding: clamp(22px, 3vw, 36px); }
.post h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -0.04em; margin: 14px 0 18px; }
.author { display: flex; align-items: center; gap: 12px; }
.author b { display: block; font-weight: 600; line-height: 1.25; }
.author small { color: var(--ink-3); font-size: 13px; }
.body { margin-top: 18px; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; max-width: 70ch; font-size: 16.5px; }
.postfoot { margin-top: 22px; display: flex; gap: 10px; align-items: center; }
.like { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; transition: transform 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease); }
.like .ic { width: 17px; height: 17px; }
.like:active { transform: scale(0.95); }
.like[aria-pressed="true"] { color: var(--cobalt-ink); border-color: var(--cobalt-line); background: var(--cobalt-soft); }
.like[aria-pressed="true"] .ic { animation: pop 320ms var(--ease); }
@keyframes pop { 40% { transform: scale(1.3); } }
.replies { margin-top: 18px; display: grid; gap: 8px; }
.reply { padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.reply .av { width: 40px; height: 40px; font-size: 14px; }
.reply .body { margin-top: 6px; font-size: 16px; }
.replyform { margin-top: 18px; display: grid; gap: 12px; }

/* ---------- messagerie ---------- */
.msgapp { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: min(680px, calc(100dvh - 220px)); min-height: 480px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.convlist { overflow-y: auto; padding: 8px; }
.conv { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px; border: 0; border-radius: 16px; background: transparent; cursor: pointer; color: var(--ink); }
.conv .av { width: 44px; height: 44px; }
.conv b { display: block; font-size: 15px; font-weight: 600; }
.conv > span:not(.av) > span { display: block; font-size: 13.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv time { font-size: 12px; color: var(--ink-3); align-self: start; margin-top: 3px; }
.conv[aria-current="true"] { background: var(--surface-2); }
.conv.unread b::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 99px; background: var(--cobalt); margin-left: 8px; vertical-align: middle; }
@media (hover: hover) and (pointer: fine) { .conv:hover { background: var(--surface-2); } }
.chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-head b { display: block; font-weight: 600; }
.chat-head > div > span { display: block; font-size: 13px; color: var(--ink-3); }
.chat-back { display: none; }
.chat-log { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: min(76%, 520px); padding: 10px 15px; border-radius: 20px; background: var(--surface-2); font-size: 15.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; align-self: flex-start; border-bottom-left-radius: 6px; animation: bubblein 280ms var(--ease) both; }
.bubble.me { align-self: flex-end; background: var(--cobalt); color: var(--on-accent); border-bottom-left-radius: 20px; border-bottom-right-radius: 6px; }
.bubble time { display: block; font-size: 11.5px; opacity: 0.65; margin-top: 3px; }
@keyframes bubblein { from { opacity: 0; transform: translateY(6px) scale(0.98); } }
.typing { display: inline-flex; gap: 4px; align-items: center; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 99px; background: var(--ink-3); animation: blink 1.2s infinite both; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; min-height: 46px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); padding: 10px 18px; font-size: 16px; }
.chat-form input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-soft); }
.chat-empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--ink-3); padding: 24px; }
@media (max-width: 760px) {
  .msgapp { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 200px); }
  .msgapp.inchat .convside { display: none; }
  .convside { border-right: 0; }
  .msgapp:not(.inchat) .chat { display: none; }
  .chat-back { display: inline-grid; }
}

/* ---------- espace membre ---------- */
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.dcard { grid-column: span 4; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.dcard.wide { grid-column: span 8; }
.dcard.full { grid-column: 1 / -1; }
.dcard .k { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.dcard .k .ic { width: 16px; height: 16px; color: var(--cobalt-ink); }
.dcard h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.028em; }
.dcard p { color: var(--ink-2); font-size: 15px; }
.dcard .btn, .dcard .btns { margin-top: auto; align-self: flex-start; }
.dcard > .st { align-self: flex-start; }
.dcard.tex p, .dcard.tex .k { color: rgba(255, 255, 255, 0.82); }
.dcard.tex .k .ic { color: #FFFFFF; }
@media (max-width: 1000px) { .dcard, .dcard.wide { grid-column: span 6; } }
@media (max-width: 680px) { .dcard, .dcard.wide { grid-column: 1 / -1; } }
.hello { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 32px; padding-block: clamp(36px, 5vw, 72px) 32px; }
.hello h1 { font-size: clamp(40px, 6vw, 84px); line-height: 0.95; letter-spacing: -0.05em; font-stretch: 92%; }
.hello p { color: var(--ink-2); margin-top: 10px; max-width: 52ch; }
.ring { --p: 0; position: relative; width: 84px; height: 84px; border-radius: 999px; background: conic-gradient(var(--cobalt) calc(var(--p) * 1%), var(--surface-3) 0); display: grid; place-items: center; flex: none; }
.ring::before { content: ""; position: absolute; inset: 8px; border-radius: 999px; background: var(--surface); }
.ring b { position: relative; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.checklist { display: grid; gap: 8px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.checklist li .ic { width: 18px; height: 18px; color: var(--ink-3); }
.checklist li.ok { color: var(--ink); }
.checklist li.ok .ic { color: var(--ok); }
.rows { display: grid; gap: 8px; }
.offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 20px; align-items: center; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.offer h4 { font-weight: 600; font-size: 16.5px; line-height: 1.35; letter-spacing: -0.01em; }
.offer .meta { margin-top: 4px; }
.offers { display: grid; gap: 8px; }
@media (max-width: 640px) { .offer { grid-template-columns: minmax(0, 1fr); } }

/* billet */
.ticket { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 180px; border-radius: 24px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); }
.ticket-main { padding: 24px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.ticket-main h3 { font-size: 26px; line-height: 1.08; letter-spacing: -0.035em; }
.ticket-qr { position: relative; background: #FFFFFF; display: grid; place-items: center; padding: 18px; border-left: 2px dashed var(--line-2); }
.ticket-qr svg, .ticket-qr .qr-fallback { width: 140px; height: 140px; }
.qr-fallback { display: grid; place-items: center; text-align: center; font: 600 13px/1.3 ui-monospace, Menlo, monospace; color: #0C0E14; border: 1px dashed #9AA0AE; border-radius: 10px; padding: 8px; }
.ticket-code { font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; color: var(--ink-2); }
.ticket-band { height: 88px; border-radius: 16px; display: flex; align-items: flex-end; padding: 14px 16px; color: #FFFFFF; font-weight: 600; }
@media (max-width: 560px) { .ticket { grid-template-columns: minmax(0, 1fr); } .ticket-qr { border-left: 0; border-top: 2px dashed var(--line-2); } }
.ticket-mini { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: rgba(5, 9, 30, 0.42); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.ticket-mini b { display: block; font-size: 17px; line-height: 1.25; }
.ticket-mini span { font-size: 13.5px; opacity: 0.85; }
.ticket-mini .qr-s { width: 64px; height: 64px; background: #FFFFFF; border-radius: 10px; padding: 5px; display: grid; place-items: center; }
.ticket-mini .qr-s svg { width: 54px; height: 54px; }

/* rendez-vous mentor */
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.day { flex: none; display: grid; gap: 2px; justify-items: center; width: 68px; padding: 10px 6px; border-radius: 16px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease); }
.day:active { transform: scale(0.96); }
.day span { font-size: 12px; color: var(--ink-3); text-transform: capitalize; }
.day b { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.day[aria-pressed="true"] span { color: var(--bg); opacity: 0.7; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { min-height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color 160ms var(--ease), border-color 160ms var(--ease); }
.slot[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: var(--on-accent); }
.slot[disabled] { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }

/* pages réservées */
.teaser { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); min-height: 420px; }
.teaser .blur { filter: blur(8px); padding: 24px; pointer-events: none; user-select: none; display: grid; gap: 12px; opacity: 0.8; }
.veil { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; background: linear-gradient(color-mix(in srgb, var(--bg) 20%, transparent), color-mix(in srgb, var(--bg) 88%, transparent)); }
.veil .lockic { width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; background: var(--ink); color: var(--bg); }
.veil .lockic .ic { width: 24px; height: 24px; }
.veil h3 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.05; letter-spacing: -0.04em; max-width: 18ch; }
.veil p { color: var(--ink-2); max-width: 44ch; }
.veil .cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.gatebox { border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); padding: clamp(28px, 5vw, 56px); display: grid; gap: 14px; justify-items: start; }
.gatebox h3 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.05; letter-spacing: -0.04em; }
.gatebox p { color: var(--ink-2); max-width: 46ch; }

/* ---------- adhésion ---------- */
.paygrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .paygrid { grid-template-columns: minmax(0, 1fr); } .sumbox { position: static !important; } }
.step { border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); padding: clamp(22px, 3vw, 32px); display: grid; gap: 18px; margin-bottom: 14px; }
.step > h3 { font-size: 22px; letter-spacing: -0.025em; display: flex; gap: 12px; align-items: center; }
.step .n { width: 30px; height: 30px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 700; display: grid; place-items: center; flex: none; }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.opt { position: relative; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 18px; cursor: pointer; display: grid; gap: 4px; background: var(--surface); transition: border-color 160ms var(--ease), background-color 160ms var(--ease), box-shadow 160ms var(--ease); }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--cobalt); background: var(--cobalt-soft); box-shadow: inset 0 0 0 1px var(--cobalt); }
.opt:has(input:focus-visible) { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.opt:has(input:disabled) { opacity: 0.55; cursor: not-allowed; }
.opt .p { font-size: 40px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.opt b { font-weight: 600; }
.opt small { color: var(--ink-3); font-size: 14px; }
.ambbox { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; align-items: end; }
.sumbox { position: sticky; top: 100px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); padding: 26px; display: grid; gap: 4px; }
.sumbox h3 { font-size: 22px; letter-spacing: -0.025em; margin-bottom: 10px; }
.sumrow { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.sumrow span:last-child { font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); }
.sumrow.total { border-bottom: 0; padding-top: 16px; font-size: 18px; font-weight: 600; color: var(--ink); align-items: baseline; }
.sumrow.total span:last-child { font-size: 44px; letter-spacing: -0.05em; }
.demonote { margin-top: 12px; font-size: 13px; color: var(--ink-3); background: var(--surface-2); border-radius: var(--r-md); padding: 12px 14px; }
.paydone { border-radius: var(--r-xl); padding: clamp(28px, 5vw, 64px); display: grid; gap: 20px; justify-items: start; }
.paydone h2 { font-size: clamp(44px, 7vw, 96px); line-height: 0.92; letter-spacing: -0.055em; }
.paydone ul { display: grid; gap: 10px; }
.paydone li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255, 255, 255, 0.9); }
.paydone li .ic { margin-top: 3px; }

/* ---------- administration ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; margin-bottom: 24px; }
.kpi { border-radius: var(--r-lg); padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.kpi b { display: block; font-size: 36px; font-weight: 600; line-height: 1.05; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 13.5px; color: var(--ink-3); }
.admtabs { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; margin-bottom: 24px; padding: 4px; border-radius: 999px; background: var(--surface-2); width: fit-content; max-width: 100%; scrollbar-width: none; }
.admtabs::-webkit-scrollbar { display: none; }
.admtabs .chip { flex: none; border: 0; min-height: 36px; }
.admtabs .chip[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(12, 20, 60, 0.12); }
.panel { display: grid; gap: 24px; }
.tblwrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 680px; }
.tbl th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tfoot td { border-top: 1px solid var(--line-2); border-bottom: 0; font-weight: 600; }
.tbl .num { text-align: right; }
.tbl small { display: block; color: var(--ink-3); font-size: 12.5px; }
.mailprev { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.mailprev .mh { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-3); display: grid; gap: 2px; overflow-wrap: anywhere; background: var(--surface-2); }
.mailprev .mh b { color: var(--ink); font-weight: 600; }
.mailprev .mb { padding: 22px 18px; display: grid; gap: 12px; font-size: 15px; justify-items: start; overflow-wrap: anywhere; color: var(--ink-2); }
.fakebtn { display: inline-block; padding: 11px 20px; border-radius: 999px; background: var(--cobalt); color: var(--on-accent); font-weight: 600; font-size: 15px; }
.bars { display: grid; gap: 16px; }
.barrow { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) minmax(70px, auto); gap: 14px; align-items: center; font-size: 14.5px; color: var(--ink-2); }
.track { height: 10px; border-radius: 999px; background: var(--cobalt-soft); overflow: hidden; }
.fill { height: 100%; border-radius: 999px; background: var(--cobalt); }
.fill.blue { background: color-mix(in srgb, var(--cobalt) 60%, var(--surface)); }
.fill.white { background: color-mix(in srgb, var(--cobalt) 30%, var(--surface)); }
.barrow .cnt { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
@media (max-width: 560px) { .barrow { grid-template-columns: minmax(0, 1fr) auto; } .barrow .track { grid-column: 1 / -1; grid-row: 2; } }
.chartbox { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); padding: 20px; position: relative; }
.chartbox h3 { font-size: 16px; font-weight: 600; }
.chartbox p { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.chart { display: block; width: 100%; height: auto; margin-top: 14px; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--ink-3); font-size: 12px; font-family: var(--font); }
.chart .val { fill: var(--ink); font-size: 12px; font-weight: 600; font-family: var(--font); }
.chart .bar { fill: var(--cobalt); transition: opacity 160ms var(--ease); }
.chart .hit { fill: transparent; cursor: default; }
.chart g.col:hover .bar { opacity: 0.8; }
.tip { position: absolute; pointer-events: none; z-index: 5; padding: 8px 12px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 500; white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity 120ms var(--ease); }
.tip.on { opacity: 1; }
#csvBox { width: 100%; min-height: 140px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); padding: 12px; font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; margin-bottom: 20px; }
.codebox { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.codebig { font: 600 clamp(34px, 5vw, 52px)/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.06em; }
.candprice { display: grid; gap: 8px; min-width: min(100%, 260px); }
.candprice label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.candprice input { min-height: 40px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); }

/* contact, mentions */
.contactgrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .contactgrid { grid-template-columns: minmax(0, 1fr); } }
.legal { max-width: 760px; display: grid; gap: 36px; }
.legal h2 { font-size: 26px; letter-spacing: -0.03em; margin-bottom: 10px; }
.legal p { color: var(--ink-2); }
.legal p + p { margin-top: 10px; }
.todo { display: inline; padding: 1px 8px; border-radius: 6px; background: var(--danger-soft); color: var(--danger); font-size: 0.92em; font-weight: 600; }

/* ---------- pied de page ---------- */
footer { margin-top: clamp(96px, 12vw, 160px); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 2fr)) minmax(0, 4fr); gap: 36px 40px; padding-block: 64px 48px; }
.foot-grid > p { color: var(--ink-2); max-width: 32ch; }
.foot-col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.foot-col h3 { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.foot-col a { color: var(--ink); width: fit-content; }
@media (hover: hover) and (pointer: fine) { .foot-col a:hover { color: var(--cobalt-ink); } }
.nl { display: grid; gap: 10px; }
.nl .row { display: flex; gap: 8px; }
.nl .field { flex: 1; }
.nl input { border-radius: 999px !important; }
.foot-logo { display: flex; flex-direction: column; align-items: stretch; gap: clamp(8px, 1.4vw, 20px); color: var(--logo-ink); padding-bottom: clamp(20px, 3vw, 40px); }
.foot-logo .logo-word { font-size: clamp(56px, 19vw, 280px); line-height: 0.9; letter-spacing: -0.055em; text-align: center; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 40px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
.foot-legal nav { display: flex; gap: 20px; flex-wrap: wrap; }
@media (hover: hover) and (pointer: fine) { .foot-legal a:hover { color: var(--ink); } }
@media (max-width: 960px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > p, .foot-nl { grid-column: 1 / -1; } }

/* ---------- fenêtres ---------- */
.overlay { position: fixed; inset: 0; z-index: 70; background: var(--scrim); display: flex; align-items: flex-start; justify-content: center; padding: max(20px, 8vh) 16px 20px; overflow-y: auto; }
.modal { width: min(480px, 100%); margin-block: auto; background: var(--surface); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 32px); position: relative; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-lg); }
.modal.wide { width: min(640px, 100%); }
.modal.bare { background: transparent; box-shadow: none; padding: 0; width: min(620px, 100%); }
.overlay:not([hidden]) { animation: fade 200ms var(--ease) both; }
.overlay:not([hidden]) .modal { animation: pop-in 260ms var(--ease) both; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } }
.modal h2 { font-size: 32px; line-height: 1.05; letter-spacing: -0.04em; padding-right: 40px; }
.modal .why { color: var(--ink-2); font-size: 15px; }
.modal form { display: flex; flex-direction: column; gap: 14px; }
.modal .close { position: absolute; top: 16px; right: 16px; background: var(--surface-2); }
.modal.bare .close { top: -52px; right: 0; background: var(--surface); }
.demoaccs { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 8px; }
.demoaccs > span { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.acc { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; background: var(--surface-2); border: 0; border-radius: 16px; padding: 10px 14px 10px 10px; cursor: pointer; transition: transform 160ms var(--ease), background-color 160ms var(--ease); }
.acc:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .acc:hover { background: var(--surface-3); } }
.acc b { display: block; font-weight: 600; font-size: 14.5px; }
.acc small { display: block; color: var(--ink-3); font-size: 13px; overflow-wrap: anywhere; }
.acc .ic { color: var(--ink-3); }

/* palette de commandes */
.cmdk-wrap { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: center; align-items: flex-start; padding: max(16px, 11vh) 16px 16px; background: var(--scrim); }
.cmdk-wrap:not([hidden]) { animation: fade 160ms var(--ease) both; }
.cmdk { width: min(660px, 100%); max-height: min(620px, 78vh); display: flex; flex-direction: column; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.cmdk-wrap:not([hidden]) .cmdk { animation: pop-in 200ms var(--ease) both; }
.cmdk-top { display: flex; align-items: center; gap: 12px; padding: 6px 16px; border-bottom: 1px solid var(--line); }
.cmdk-top .ic { width: 20px; height: 20px; color: var(--ink-3); }
.cmdk-top input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 17px; padding: 14px 0; outline: none; }
.cmdk-list { overflow-y: auto; padding: 8px; }
.cmdk-group { font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding: 10px 10px 6px; }
.cmdk-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; }
.cmdk-item .ci { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.cmdk-item .ci .ic { width: 17px; height: 17px; }
.cmdk-item b { display: block; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-item small { display: block; font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-item .go { color: var(--ink-3); opacity: 0; }
.cmdk-item[aria-selected="true"] { background: var(--surface-2); }
.cmdk-item[aria-selected="true"] .go { opacity: 1; }
.cmdk-item.ai .ci { background: var(--cobalt); color: var(--on-accent); }
.cmdk-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.cmdk-foot span { display: inline-flex; align-items: center; gap: 6px; }
.cmdk-empty { padding: 28px 12px; text-align: center; color: var(--ink-3); font-size: 14.5px; }
.cmdk-ai { margin: 4px 8px 10px; padding: 16px 18px; border-radius: 16px; background: var(--cobalt-soft); display: grid; gap: 10px; }
.cmdk-ai .q { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--cobalt-ink); }
.cmdk-ai .a { font-size: 15.5px; line-height: 1.55; white-space: pre-wrap; color: var(--ink); }
.cmdk-ai .a.thinking { color: var(--ink-3); }
.cmdk-ai .ai-note { font-size: 12.5px; color: var(--ink-3); }

/* notifications éphémères */
.toasts { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 13px 14px 13px 16px; border-radius: 16px; background: var(--ink); color: var(--bg); font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow-lg); pointer-events: auto; animation: toastin 340ms var(--ease) both; }
.toast .ic { width: 18px; height: 18px; flex: none; }
.toast span { flex: 1; min-width: 0; }
.toast button { border: 0; background: color-mix(in srgb, var(--bg) 16%, transparent); color: var(--bg); font-weight: 600; font-size: 13.5px; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.toast.out { animation: toastout 220ms var(--ease) both; }
@keyframes toastin { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
@keyframes toastout { to { opacity: 0; transform: translateY(8px) scale(0.97); } }

/* transitions de page */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out 180ms var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in 320ms var(--ease) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
.top { view-transition-name: top; }
::view-transition-group(top) { animation: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .mq-track { animation: none !important; }
  .stack-card { transform: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .top { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}


/* ---------- ajouts : photos, carte personne, demandes, compte, factures, candidatures ---------- */
.av.ph { background-size: cover; background-position: center; color: transparent; }
.avbtn { display: inline-grid; place-items: center; flex: none; padding: 0; border: 0; background: none; border-radius: 999px; cursor: pointer; color: inherit; transition: transform 160ms var(--ease), box-shadow 160ms var(--ease); }
.avbtn:active { transform: scale(0.95); }
.avbtn:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .avbtn:hover { box-shadow: 0 0 0 3px var(--cobalt-soft), 0 0 0 1px var(--cobalt-line); } }
.pop.ppop { z-index: 70; padding: 6px; }
.pp-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; min-width: 0; }
.pp-head > div { min-width: 0; }
.pp-head b { display: block; font-size: 15.5px; line-height: 1.25; font-weight: 600; }
.pp-head span:not(.av) { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.35; overflow-wrap: anywhere; }
.plan-price b.ondemand { font-size: clamp(40px, 4.6vw, 60px); letter-spacing: -0.045em; }
.opt .p.ondemand { font-size: 22px; letter-spacing: -0.02em; }
.convside { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.convside .convlist { border-right: 0; flex: 1; }
.msgtabs { margin: 10px 10px 2px; display: flex; }
.msgtabs button { flex: 1; justify-content: center; gap: 6px; }
.count.inline { position: static; display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--cobalt); color: var(--on-accent); font-size: 11px; font-weight: 700; line-height: 1; margin-left: 6px; box-shadow: none; }
.conv .st { font-size: 11.5px; padding: 3px 8px; align-self: start; margin-top: 2px; white-space: nowrap; }
.chat-sys { align-self: center; max-width: 90%; text-align: center; font-size: 13px; color: var(--ink-3); background: var(--surface-2); padding: 6px 12px; border-radius: 999px; }
.chat-note { padding: 14px 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); display: flex; align-items: center; gap: 10px; }
.chat-note .ic { width: 18px; height: 18px; flex: none; color: var(--cobalt-ink); }
.req { margin: 18px; display: grid; gap: 14px; padding: 20px; border-radius: var(--r-lg); background: var(--surface-2); align-self: stretch; }
.req .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.req .who b { display: block; font-size: 16px; font-weight: 600; }
.req .who small { display: block; font-size: 13px; color: var(--ink-3); }
.req .said { font-size: 15px; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface); border-radius: 16px; padding: 14px 16px; }
.req.mentor { background: var(--cobalt-soft); box-shadow: inset 0 0 0 1px var(--cobalt-line); }
.req .tagline { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--cobalt-ink); }
.req .tagline .ic { width: 16px; height: 16px; }
.photo-row { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.crop { position: relative; width: 260px; height: 260px; max-width: 100%; flex: none; margin: 0 auto; border-radius: 999px; overflow: hidden; background: var(--surface-2); touch-action: none; cursor: grab; box-shadow: 0 0 0 4px var(--cobalt-soft), 0 0 0 1px var(--line-2); }
.crop:active { cursor: grabbing; }
.crop:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; }
.crop img { position: absolute; max-width: none; user-select: none; -webkit-user-select: none; pointer-events: none; }
#cropZoom { width: 100%; accent-color: var(--cobalt); }
.settings { display: grid; gap: 16px; max-width: 900px; }
.settings .card { padding: clamp(22px, 3vw, 30px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.settings .sub { margin-bottom: 8px; }
.switch { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch b { display: block; font-weight: 600; }
.switch small { display: block; color: var(--ink-3); font-size: 14px; }
.switch input { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 48px; height: 28px; margin: 0; border-radius: 999px; background: var(--surface-3); cursor: pointer; transition: background-color 200ms var(--ease); }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 999px; background: #FFFFFF; box-shadow: 0 1px 3px rgba(12, 20, 60, 0.3); transition: transform 220ms var(--ease); }
.switch input:checked { background: var(--cobalt); }
.switch input:checked::after { transform: translateX(20px); }
.switch input:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.collabform { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.maillist { display: grid; gap: 8px; }
.maildet { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.maildet summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.maildet summary::-webkit-details-marker { display: none; }
.maildet summary > .ic { width: 18px; height: 18px; color: var(--cobalt-ink); flex: none; }
.maildet summary > span { min-width: 0; }
.maildet summary b { display: block; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.maildet summary small { display: block; color: var(--ink-3); font-size: 13px; }
.maildet[open] summary { border-bottom: 1px solid var(--line); }
.maildet .mailprev { border: 0; border-radius: 0; }
.lockic.okic { width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); margin-bottom: 6px; }
.lockic.okic .ic { width: 26px; height: 26px; }
.dcard.zero { background: var(--cobalt-soft); border-color: var(--cobalt-line); }
.dcard.zero h3 { color: var(--cobalt-ink); }
.mod-del { color: var(--danger); }
.mod-del .ic { color: var(--danger); }
.post-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.linkedin { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--cobalt-ink); overflow-wrap: anywhere; }
.linkedin .ic { width: 18px; height: 18px; }
.adm-row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.adm-row-actions label { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.adm-row-actions input { width: 96px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-variant-numeric: tabular-nums; }
.adm-row-actions input:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 1px; }
/* candidatures reçues */
.candsapp { height: auto; min-height: 560px; max-height: none; }
.candsapp .convlist { border-right: 1px solid var(--line); max-height: 760px; }
.cand-detail { overflow-y: auto; padding: clamp(20px, 3vw, 32px); gap: 22px; max-height: 760px; }
.chat-back2 { display: none; margin-bottom: 0; }
.cand-head { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(170px, 210px); gap: 18px; align-items: center; }
.cand-head h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.05; letter-spacing: -0.04em; }
.cand-head .field { margin: 0; }
.contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 8px; background: var(--surface-2); border-radius: var(--r-md); padding: 14px 16px; min-width: 0; }
.contact .k { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.contact .k .ic { width: 15px; height: 15px; }
.contact .v, .contact .link, .contact .faint { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.contact .faint { color: var(--ink-3); font-weight: 500; }
.contact .link { display: inline-flex; align-items: center; gap: 6px; color: var(--cobalt-ink); }
.contact .iconbtn { width: 34px; height: 34px; }
.contact .iconbtn .ic { width: 16px; height: 16px; }
.body.quote { background: var(--surface-2); border-radius: var(--r-lg); padding: 16px 18px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
@media (max-width: 1000px) { .contacts { grid-template-columns: minmax(0, 1fr); } .cand-head { grid-template-columns: auto minmax(0, 1fr); } .cand-head .field { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .candsapp { min-height: 0; }
  .candsapp.inchat .convlist { display: none; }
  .candsapp:not(.inchat) .cand-detail { display: none; }
  .candsapp .convlist { border-right: 0; max-height: none; }
  .cand-detail { max-height: none; }
  .chat-back2 { display: inline-flex; }
}
.iconbtn.sm { width: 32px; height: 32px; }
.iconbtn.sm .ic { width: 16px; height: 16px; }
.stats .mod-del { width: 32px; height: 32px; margin-block: -6px; }
.reply .tmeta .mod-del { margin-left: auto; }
.mcard .hl.co, .co-line { font-weight: 600; color: var(--ink-2); }
.mcard .hl.co { margin-top: 3px; }
.co-line { font-size: 16px; margin-top: 2px; }
/* qui sommes-nous, partenaires, soirées soutenues, candidature */
.founders-lead { max-width: 62ch; margin-bottom: 22px; }
.founders { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.founder { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.founder > div { min-width: 0; }
.founder h3 { font-size: 24px; letter-spacing: -0.025em; line-height: 1.15; }
.founder .role { color: var(--cobalt-ink); font-weight: 600; font-size: 14px; margin: 4px 0 10px; }
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.partner { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.partner > div { min-width: 0; }
.partner b { display: block; font-size: 16px; }
.partner > div > span { display: block; font-size: 13.5px; color: var(--ink-3); }
.sponsor-line { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--cobalt-ink); }
.sponsor-line .ic { width: 15px; height: 15px; }
.evrow .meta .sponsor { color: var(--cobalt-ink); font-weight: 600; }
.join.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.join.two .actions, .join.two .mail { margin-top: 20px; }
@media (max-width: 860px) { .join.two { grid-template-columns: minmax(0, 1fr); } }
.howlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: how; }
.howlist li { counter-increment: how; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; }
.howlist li::before { content: counter(how); grid-row: span 2; width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: var(--cobalt-soft); color: var(--cobalt-ink); font-weight: 700; font-size: 14px; }
.howlist b { font-weight: 600; }
.howlist span { color: var(--ink-3); font-size: 14px; }
.paydone .hint { color: rgba(255, 255, 255, 0.78); }

/* factures : un document papier, identique dans les deux thèmes */
.modal.invoice-modal { width: min(820px, 100%); gap: 14px; }
.modal.invoice-modal .close { top: -52px; right: 0; background: var(--surface); }
.inv { --logo-ink: #0A1F44; --logo-blue: #1F4FA8; --logo-edge: rgba(10, 31, 68, 0.3); position: relative; background: #FFFFFF; color: #0C0E14; border-radius: 6px; box-shadow: 0 30px 80px -30px rgba(5, 9, 30, 0.55), 0 0 0 1px rgba(12, 14, 20, 0.06); padding: clamp(22px, 5vw, 56px) clamp(20px, 5vw, 56px) clamp(34px, 5vw, 60px); display: grid; gap: clamp(22px, 3vw, 34px); font-size: 14px; line-height: 1.5; overflow: hidden; font-family: var(--font); }
.inv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.inv-logo .logo-word { font-size: 34px; }
.inv-title { text-align: right; }
.inv-title h2 { font-size: clamp(34px, 5vw, 54px); line-height: 0.95; letter-spacing: -0.05em; font-weight: 600; color: #0C0E14; padding: 0; }
.inv-title p { color: #5A6070; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.inv-title p:first-of-type { color: #2334C8; font-weight: 600; margin-top: 8px; }
.inv-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-block: 20px; border-top: 1px solid #E3E6EC; border-bottom: 1px solid #E3E6EC; }
.inv-parties > div { min-width: 0; }
.inv-parties span { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #7A8090; margin-bottom: 6px; }
.inv-parties b { display: block; font-size: 16px; font-weight: 600; margin-bottom: 2px; overflow-wrap: anywhere; }
.inv-parties p { color: #3B4150; overflow-wrap: anywhere; }
.inv-tw { overflow-x: auto; }
.inv-lines { width: 100%; min-width: 520px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.inv-lines th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #7A8090; padding: 0 10px 10px 0; border-bottom: 2px solid #0C0E14; }
.inv-lines td { padding: 14px 10px 14px 0; border-bottom: 1px solid #EEF0F4; vertical-align: top; color: #1C2030; }
.inv-lines td:first-child { font-weight: 600; }
.inv-lines .num { text-align: right; padding-right: 0; padding-left: 10px; white-space: nowrap; }
.inv-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; flex-wrap: wrap; }
.inv-stamp { display: grid; gap: 2px; padding: 12px 18px; border: 2px solid currentColor; border-radius: 10px; transform: rotate(-3deg); text-transform: none; }
.inv-stamp b { font-size: 20px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.1; }
.inv-stamp span { font-size: 12.5px; }
.inv-stamp.ok { color: #0E7F58; }
.inv-stamp.due { color: #C4283A; }
.inv-sum { display: grid; gap: 6px; min-width: min(100%, 280px); font-variant-numeric: tabular-nums; }
.inv-sum > div { display: flex; justify-content: space-between; gap: 24px; color: #454B5A; }
.inv-sum > div.t { color: #0C0E14; font-weight: 700; font-size: 22px; letter-spacing: -0.03em; padding-top: 10px; margin-top: 4px; border-top: 2px solid #0C0E14; }
.inv-foot { font-size: 12px; color: #7A8090; border-top: 1px dashed #D5D9E2; padding-top: 14px; }
.inv-band { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: #2B3FE0; }
.inv-actions { justify-content: flex-start; }
.inv-hint { color: var(--ink-3); }
.modal.invoice-modal .actions .btn:not(.ghost) { box-shadow: var(--shadow-lg); }
.modal.invoice-modal .btn.ghost { background: var(--surface); }
.inv-row .btns { align-items: center; }
.inv-row .tnum { font-variant-numeric: tabular-nums; font-size: 16px; }
@media (max-width: 560px) { .inv-parties { grid-template-columns: minmax(0, 1fr); } .inv-title { text-align: left; } }

/* surfaces d'eau (en fin de feuille pour primer sur les fonds de carte) */
.tex { --veil: linear-gradient(to top, rgba(5, 9, 30, 0.5), rgba(5, 9, 30, 0) 62%); --tint: linear-gradient(160deg, #3347F0, #1C2AA8 55%, #0B1242); background-color: #0B1242; background-image: var(--veil), var(--still), var(--tint); background-size: cover, cover, cover; background-position: center, center, center; background-repeat: no-repeat; background-blend-mode: normal, screen, normal; color: #FFFFFF; }
.tex.night { --tint: linear-gradient(200deg, #1B2A8C, #0A1136 60%, #050817); }
.tex.ice { --tint: linear-gradient(170deg, #6E86FF, #3A50E6 62%, #2233BE); }
.tex.deep { --tint: linear-gradient(140deg, #2436C8, #0E1860 70%); }
.bx.tex, .band.tex, .plan.tex, .pillar.tex, .dcard.tex, .paydone.tex { --veil: linear-gradient(rgba(5, 9, 30, 0.3), rgba(5, 9, 30, 0.46)); }
.evcard-vis.tex, .sheet-vis.tex { background-position: center, var(--bp, center), center; }

/* ===== Polices hébergées sur le site (aucun appel à Google Fonts) ===== */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-display: swap; font-weight: 400 700; font-stretch: 75% 100%;
  src: url("/assets/fonts/instrument-sans-latin-standard-normal.woff2") format("woff2-variations"), url("/assets/fonts/instrument-sans-latin-standard-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: "Instrument Sans"; font-style: normal; font-display: swap; font-weight: 400 700; font-stretch: 75% 100%;
  src: url("/assets/fonts/instrument-sans-latin-ext-standard-normal.woff2") format("woff2-variations"), url("/assets/fonts/instrument-sans-latin-ext-standard-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; }
@font-face { font-family: "Instrument Sans"; font-style: italic; font-display: swap; font-weight: 400 700; font-stretch: 75% 100%;
  src: url("/assets/fonts/instrument-sans-latin-standard-italic.woff2") format("woff2-variations"), url("/assets/fonts/instrument-sans-latin-standard-italic.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: "Instrument Sans"; font-style: italic; font-display: swap; font-weight: 400 700; font-stretch: 75% 100%;
  src: url("/assets/fonts/instrument-sans-latin-ext-standard-italic.woff2") format("woff2-variations"), url("/assets/fonts/instrument-sans-latin-ext-standard-italic.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; }

/* ===== Remplacement des styles en ligne (politique de sécurité stricte) ===== */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sc-i0 { --i: 0; } .sc-i1 { --i: 1; } .sc-i2 { --i: 2; }
.mt10 { margin-top: 10px; } .mt14 { margin-top: 14px; } .mt18 { margin-top: 18px; } .mt24 { margin-top: 24px; } .mt36 { margin-top: 36px; }
.mb12 { margin-bottom: 12px; } .mb18 { margin-bottom: 18px; }
.maxw320 { max-width: 320px; } .maxw860 { max-width: 860px; }
.ledger-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 16px; }
.h200 { --h: 200; } .h222 { --h: 222; } .h250 { --h: 250; } .h262 { --h: 262; }

/* ===== Petits composants ===== */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.offline-bar { position: sticky; top: 0; z-index: 90; background: var(--danger); color: #FFFFFF; font-size: 14px; text-align: center; padding: 8px var(--gutter); }
.consent { font-size: 14px; color: var(--ink-2); }
.consent a { font-weight: 600; }
.pwrow { display: flex; gap: 8px; align-items: stretch; }
.pwrow input { flex: 1; min-width: 0; }
.pwrow .pwtoggle { flex: none; min-height: 48px; padding-inline: 14px; }
.pwmeter { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.pwmeter i { display: block; height: 100%; width: 0; background: var(--danger); transition: width 220ms var(--ease), background-color 220ms var(--ease); }
.pwmeter.s1 i { width: 33%; background: var(--danger); }
.pwmeter.s2 i { width: 66%; background: #D98A1C; }
.pwmeter.s3 i { width: 100%; background: var(--ok); }
.login-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.login-links .link { font-size: 14px; }
.danger-text { color: var(--danger); }
.btn.busy { pointer-events: none; opacity: 0.75; }
.btn.busy::after { content: ""; width: 14px; height: 14px; border-radius: 999px; border: 2px solid currentColor; border-right-color: transparent; animation: ls-spin 700ms linear infinite; }
@keyframes ls-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.busy::after { animation: none; } }

/* barrière « cotisation à régler » */
.member-gate { margin-top: 4px; }
.member-gate .paybox, .paybox { display: grid; gap: 6px; background: var(--surface-2); border-radius: var(--r-md); padding: 14px 16px; font-size: 14.5px; width: 100%; max-width: 560px; }
.paybox b { font-variant-numeric: tabular-nums; }
.paybox .row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.paybox code, .codeline { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.pay-notice { display: flex; border-radius: var(--r-lg); padding: 14px 18px; align-items: flex-start; }
.pay-notice .ic { margin-top: 2px; flex: none; }

/* configuration de l'administration */
.setup { border-radius: var(--r-lg); border: 1px solid var(--cobalt-line); background: var(--cobalt-soft); padding: 16px 18px; margin-bottom: 18px; display: grid; gap: 8px; }
.setup h3 { font-size: 16px; display: flex; gap: 8px; align-items: center; }
.setup ul { display: grid; gap: 6px; padding-left: 18px; list-style: disc; color: var(--ink-2); font-size: 14.5px; }
.checkin .row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.checkin .row .field { flex: 1 1 220px; }
.checkin .ok { color: var(--ok); font-weight: 600; }
.checkin .ko { color: var(--danger); font-weight: 600; }

/* sécurité du compte */
.secblock { display: grid; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.secblock:last-child { border-bottom: 0; padding-bottom: 0; }
.secblock h3 { font-size: 17px; letter-spacing: -0.01em; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.totp-setup { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.totp-qr { background: #FFFFFF; border-radius: 12px; padding: 10px; width: 176px; height: 176px; display: grid; place-items: center; border: 1px solid var(--line); }
.totp-qr svg { width: 156px; height: 156px; }
@media (max-width: 560px) { .totp-setup { grid-template-columns: minmax(0, 1fr); } }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; background: var(--surface-2); border-radius: var(--r-md); padding: 14px 16px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; letter-spacing: 0.04em; }

/* contenu vide de l'accueil (avant la première soirée) */
.evcard.soon { cursor: default; display: grid; align-content: center; justify-items: start; gap: 12px; padding: 28px; min-height: 280px; background: var(--surface); border: 1px dashed var(--line-2); }
.evcard.soon h3 { font-size: 26px; letter-spacing: -0.03em; line-height: 1.05; }
.evcard.soon p { color: var(--ink-2); }

/* aperçus flous pour les visiteurs (aucune donnée réelle) */
.skel { display: grid; gap: 10px; }
.skel .bar { height: 12px; border-radius: 999px; background: var(--surface-3); }
.skel .bar.w60 { width: 60%; } .skel .bar.w40 { width: 40%; } .skel .bar.w80 { width: 80%; }
.skel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; }
.skel-card .dot { width: 44px; height: 44px; border-radius: 999px; background: var(--surface-3); }
.skel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }

/* listes d'administration */
.adm-row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-row-actions input, .adm-row-actions select { min-height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 6px 10px; font: inherit; font-size: 14px; }
.adm-row-actions input[type=number] { width: 96px; }
.quote { white-space: pre-wrap; }
.offer .msgbody { margin-top: 8px; white-space: pre-wrap; color: var(--ink-2); font-size: 14.5px; }
.tbl td small { display: block; color: var(--ink-3); font-size: 12.5px; }
.att-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 28px 0 12px; }

/* paiement et factures */
.inv-pay { display: grid; gap: 4px; font-size: 12.5px; color: #3B4150; border: 1px solid #E3E6EC; border-radius: 8px; padding: 10px 12px; }
.inv-pay b { color: #0C0E14; }
.inv-legal { font-size: 11.5px; color: #7A8090; }

/* impression d'une facture : seule la facture est imprimée */
@media print {
  body.print-invoice > *:not(#gen) { display: none !important; }
  body.print-invoice #gen { position: static !important; display: block !important; background: none !important; padding: 0 !important; }
  body.print-invoice #genBox { box-shadow: none !important; max-width: none !important; width: auto !important; padding: 0 !important; background: none !important; transform: none !important; }
  body.print-invoice #genBox > :not(.inv) { display: none !important; }
  body.print-invoice .inv { box-shadow: none !important; border: 0 !important; margin: 0 !important; }
  @page { size: A4; margin: 14mm; }
}

/* divers */
.chart .grid.base { stroke: var(--line-2); }
.notice[hidden] { display: none !important; }
.err a, .hint a { font-weight: 600; }
.recaptcha-free { display: none; }

/* messagerie : zone de saisie qui s'agrandit */
.chat-form { align-items: flex-end; }
.chat-form textarea { flex: 1; min-width: 0; min-height: 46px; max-height: 160px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); padding: 11px 18px; font: inherit; font-size: 16px; line-height: 1.4; resize: none; }
.chat-form textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-soft); }

/* double authentification et formulaires en ligne */
.grid-gap { display: grid; gap: 10px; min-width: 0; }
.row-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row-form .field { flex: 0 1 180px; }
.row-form input { letter-spacing: 0.2em; font-variant-numeric: tabular-nums; }
.inv-row h4 { font-variant-numeric: tabular-nums; }
.checkin .hint.ok { color: var(--ok); font-weight: 600; }
.checkin .hint.ko { color: var(--danger); font-weight: 600; }
.tbl td .btns { flex-wrap: wrap; }

/* menu mobile : l'en-tête et son bouton « fermer » restent au-dessus du tiroir */
.top.menu-open { z-index: 46; }
/* onglets de l'administration : sur grand écran, ils passent à la ligne au lieu d'être masqués */
@media (min-width: 900px) { .admtabs { flex-wrap: wrap; border-radius: 24px; } }

/* adresse du client sur la facture (plusieurs lignes possibles) */
.inv-parties p.inv-addr { white-space: pre-line; }
#billBox { padding-top: 0; }
#billBox h3 { font-size: 17px; }

/* détails de mise en page */
.secblock > .btn { justify-self: start; }
.btn.danger-text { color: var(--danger); }

/* titres cliquables des cartes (soirées, annonces, forum) : vrais boutons, accessibles au clavier */
.cardlink { all: unset; cursor: pointer; overflow-wrap: anywhere; }
.cardlink:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
/* contraste suffisant pour les sous-titres des choix (page Adhérer) */
.opt small { color: var(--ink-2); }
.side-card .hint { color: var(--ink-2); }

/* contrastes renforcés (accessibilité, niveau AA) */
:root { --ok-ink: #096444; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ok-ink: var(--ok); } }
:root[data-theme="dark"] { --ok-ink: var(--ok); }
.st.ok, .btn.done { color: var(--ok-ink); }
.conv[aria-current="true"] span span, .conv[aria-current="true"] time { color: var(--ink-2); }
.chat-sys { color: var(--ink-2); }

/* Panneau des notifications sur téléphone et petite tablette : aligné sur le bord droit de l'écran
   (et non sous la cloche, qui n'est pas tout à droite) pour rester entièrement visible, quelle que
   soit la largeur de l'écran. Le panneau se place alors par rapport à la barre du haut. */
@media (max-width: 760px) {
  .pop-anchor.notif-anchor { position: static; }
  .pop.notifs { right: max(12px, env(safe-area-inset-right, 0px)); width: min(380px, calc(100vw - 24px)); top: calc(100% + 6px); }
}
@media (max-width: 360px) { .notifs .pop-head { gap: 8px; } .notifs .pop-head .link { font-size: 14px; } }
