/* Le Renouveau — feuille de style (générée depuis vitrine/src.html) */
/* ---------- Polices Google Fonts intégrées : Lexend, Atkinson Hyperlegible, Caveat ----------
   Lexend : conçue pour faciliter la lecture. Atkinson Hyperlegible : lisibilité maximale.
   Caveat : écriture manuscrite, réservée aux annotations « à l'encre bleue ». */
@font-face { font-family: "Lexend"; src: url(fonts/lexend.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(fonts/atkinson.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(fonts/atkinson-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(fonts/newsreader.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(fonts/newsreader-italic.woff2) format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Caveat"; src: url(fonts/caveat.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

/* ---------- Jetons ----------
   Mise en page : colonne de lecture centrée, sections alternant blanc, gris bleuté
   et bleu marine du logo ; les formulaires sont des pages de carnet perforées. */
:root {
  --bg: #f4f6fa; --surface: #ffffff; --surface-2: #eef2f8;
  --ink: #14213f; --ink-2: #4a5675; --line: #dde2ec; --line-2: #c3cad9;
  --navy: #1b2f63; --navy-2: #14244d; --on-navy: #f1f4fb; --on-navy-2: #b9c4de; --navy-accent: #8fc4f2;
  --sky: #256aa8; --sky-soft: #e2eefa; --hand: #1d4fb0;
  --cta: #c0500e; --cta-hover: #9c400a; --on-cta: #ffffff; --cta-soft: #fcebdd;
  --green: #2b7a3f; --green-soft: #e2f2e5; --amber: #7a5600; --amber-soft: #fff1cc; --red: #a3261c; --red-soft: #fbe7e4;
  --shadow: 0 1px 2px rgba(20,33,63,.06), 0 8px 24px -12px rgba(20,33,63,.22);
  --f-display: "Lexend", "Segoe UI", system-ui, sans-serif;
  --f-body: "Atkinson", "Segoe UI", system-ui, sans-serif;
  --f-hand: "Caveat", "Segoe Print", cursive;
  --f-head: "Newsreader", Georgia, "Times New Roman", serif;
  --s-0: clamp(1rem, .97rem + .15vw, 1.08rem);
  --s-1: clamp(1.15rem, 1.08rem + .35vw, 1.35rem);
  --s-2: clamp(1.4rem, 1.2rem + .9vw, 1.9rem);
  --s-3: clamp(1.8rem, 1.4rem + 1.9vw, 2.8rem);
  --s-4: clamp(2.2rem, 1.5rem + 3.2vw, 3.9rem);
  --r: 6px; --r-lg: 18px;
  --gap: clamp(1rem, .7rem + 1.4vw, 1.75rem);
  --pad: clamp(1.25rem, .9rem + 1.6vw, 2.25rem);
  --section: clamp(3rem, 2.2rem + 4vw, 6rem);
  --max: 1160px;
  --ease: cubic-bezier(.2,.8,.2,1);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0e152c; --surface: #161f3d; --surface-2: #1c2749; --ink: #eef1f8; --ink-2: #aeb7cf; --line: #2a3660; --line-2: #3a4878;
  --navy: #0a1129; --navy-2: #070c1f; --on-navy: #eef1f8; --on-navy-2: #a9b4d0; --navy-accent: #8fc4f2; --sky: #79b8ee; --sky-soft: #1a2d52; --hand: #9cc4ff;
  --cta: #f0894a; --cta-hover: #ffac78; --on-cta: #1c0d02; --cta-soft: #3d2514;
  --green: #86d49a; --green-soft: #183826; --amber: #ffd770; --amber-soft: #3b3014; --red: #ffb1a6; --red-soft: #45201d;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -12px rgba(0,0,0,.6); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0e152c; --surface: #161f3d; --surface-2: #1c2749; --ink: #eef1f8; --ink-2: #aeb7cf; --line: #2a3660; --line-2: #3a4878;
  --navy: #0a1129; --navy-2: #070c1f; --on-navy: #eef1f8; --on-navy-2: #a9b4d0; --navy-accent: #8fc4f2; --sky: #79b8ee; --sky-soft: #1a2d52; --hand: #9cc4ff;
  --cta: #f0894a; --cta-hover: #ffac78; --on-cta: #1c0d02; --cta-soft: #3d2514;
  --green: #86d49a; --green-soft: #183826; --amber: #ffd770; --amber-soft: #3b3014; --red: #ffb1a6; --red-soft: #45201d;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -12px rgba(0,0,0,.6); color-scheme: dark; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--s-0)/1.65 var(--f-body); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
/* Titres de page et de section : serif de presse, plus chaleureuse qu'une linéale d'application */
h1, h2 { font-family: var(--f-head); font-weight: 600; letter-spacing: -.012em; line-height: 1.08; }
p { margin: 0; }
a { color: var(--sky); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 3px; }
/* Titres et sections ciblés par la navigation : focus pour les lecteurs d'écran, sans cadre visible */
[tabindex="-1"]:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 70; background: var(--surface); color: var(--ink); padding: .6rem 1rem; border-radius: var(--r); }
.skip:focus { top: 1rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.ico { width: 1.2em; height: 1.2em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--ink-2); }
.hand { font-family: var(--f-hand); color: var(--hand); font-weight: 600; font-size: 1.45em; line-height: 1.1; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font: 600 .82rem var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--sky); }
.lead { font-size: var(--s-1); color: var(--ink-2); line-height: 1.5; max-width: 58ch; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: .75rem; min-height: 70px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 1px solid var(--line); }
.brand b { font: 700 1.15rem/1.1 var(--f-display); display: block; letter-spacing: -.01em; }
.brand small { display: block; font-size: .8rem; color: var(--ink-2); line-height: 1.25; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.nav a { display: block; white-space: nowrap; padding: .5rem .55rem; border-radius: var(--r); text-decoration: none; color: var(--ink-2); font: 500 .95rem var(--f-display); }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--sky-soft); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--r); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; } :root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; } :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; } }
.header-cta { display: inline-flex; }
.menu-btn { display: none; }
@media (max-width: 1020px) {
  .menu-btn { display: grid; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: .5rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px)); box-shadow: var(--shadow); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { padding: .8rem .6rem; font-size: 1.05rem; }
}
@media (max-width: 760px) { .bar .header-cta { display: none; } }
@media (max-width: 640px) { .brand small { display: none; } }

/* Barre d'onglets mobile : les 4 tâches principales à portée de pouce */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: .3rem max(8px, env(safe-area-inset-right, 0px)) calc(.3rem + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); box-shadow: 0 -6px 20px -12px rgba(20,33,63,.35); }
  .tabbar a { display: grid; justify-items: center; gap: .1rem; padding: .35rem 0; text-decoration: none; color: var(--ink-2); font: 500 .74rem var(--f-display); border-radius: var(--r); }
  .tabbar a .ico { width: 1.45rem; height: 1.45rem; }
  .tabbar a[aria-current="page"] { color: var(--sky); background: var(--sky-soft); }
  .tabbar a.tab-cta[aria-current="page"] { color: var(--cta-hover); background: var(--cta-soft); }
  .tabbar a.tab-cta { color: var(--cta); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Boutons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .75rem 1.3rem; border-radius: var(--r); border: 2px solid transparent; font: 600 1rem/1.2 var(--f-display); text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--cta { background: var(--cta); color: var(--on-cta); }
.btn--cta:hover { background: var(--cta-hover); }
.btn--line { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--line:hover { border-color: var(--ink); }
.btn--navy { background: transparent; color: var(--on-navy); border-color: rgba(241,244,251,.45); }
.btn--navy:hover { border-color: var(--on-navy); }
.btn--sm { min-height: 40px; padding: .45rem .9rem; font-size: .92rem; }
.btn--danger { background: transparent; color: var(--red); border-color: currentColor; }
.btn--danger[data-armed] { background: var(--red); color: var(--surface); border-color: var(--red); }
.text-link { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font: 600 1rem var(--f-display); color: var(--sky); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.sec--navy .text-link { color: var(--navy-accent); }
.link-btn { background: none; border: 0; padding: .6rem .2rem; margin: -.6rem -.2rem; font: inherit; color: var(--sky); text-decoration: underline; cursor: pointer; }

/* ---------- Sections ---------- */
.view { display: grid; grid-template-columns: minmax(0, 1fr); }
/* Toute pile verticale en grille reste à la largeur de sa colonne (photos 640 px comprises) */
.prose, .admin-wrap, .receipt, .quote, .service, .member, [style*="display:grid"] { grid-template-columns: minmax(0, 1fr); }
figure, .card, .carnet, .issue { min-width: 0; }
.sec { padding-block: var(--section); }
.sec--white { background: var(--surface); }
.sec--navy { background: var(--navy); color: var(--on-navy); }
.sec--navy .muted, .sec--navy .lead { color: var(--on-navy-2); }
.sec--navy .eyebrow { color: var(--navy-accent); }
.sec-head { display: grid; gap: .7rem; margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.75rem); max-width: 62ch; }
.sec-head h2 { font-size: var(--s-3); }
.sec-head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; flex-wrap: wrap; }
.sec-head--split > div { display: grid; gap: .7rem; max-width: 62ch; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.wide-left { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-2, .wide-left { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--pad); min-width: 0; }
.sec--white .card { background: var(--bg); }
.card--sky { background: var(--sky-soft) !important; border-color: transparent; }
.card--warm { background: var(--cta-soft) !important; border-color: transparent; }

/* En-tête de page intérieure */
.page-head { position: relative; isolation: isolate; background: var(--surface); border-bottom: 1px solid var(--line); padding-block: clamp(2rem, 1.5rem + 3vw, 4rem); }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(assets/photos/cdi-bg.webp) center 30% / cover no-repeat; opacity: .07; filter: grayscale(1); }
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--surface) 35%, transparent); }
:root[data-theme="dark"] .page-head::before { opacity: .12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .page-head::before { opacity: .12; } }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--gap); align-items: end; }
.page-head .head-photo { width: clamp(180px, 22vw, 300px); aspect-ratio: 3/2; object-fit: cover; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 60px; }
@media (max-width: 760px) { .page-head .wrap { grid-template-columns: minmax(0, 1fr); } .page-head .head-photo { display: none; } }
.crumbs { font-size: .9rem; color: var(--ink-2); margin-bottom: .9rem; }
.crumbs a { color: var(--ink-2); display: inline-block; padding-block: .7rem; margin-block: -.7rem; }
.page-head h1 { font-size: var(--s-4); letter-spacing: -.025em; max-width: 20ch; margin-bottom: .9rem; }

/* ---------- Accueil : hero ---------- */
.hero { background: var(--surface); padding-block: clamp(2rem, 1.2rem + 4vw, 5rem) clamp(3rem, 2.4rem + 3vw, 5rem); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem .35rem .4rem; border-radius: 99px; background: var(--sky-soft); color: var(--ink); font: 500 .9rem var(--f-display); }
.chip b { background: var(--green); color: var(--surface); font-size: .75rem; padding: .1rem .5rem; border-radius: 99px; letter-spacing: .03em; }
.hero h1 { font-size: var(--s-4); letter-spacing: -.03em; line-height: 1.05; margin: 1.1rem 0 1rem; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero .lead { margin-bottom: 1.6rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.5rem; color: var(--ink-2); font-size: .93rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-trust .ico { color: var(--green); }
.hero-visual { position: relative; padding-bottom: 2.5rem; }
.hero-visual .photo { position: relative; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 90px; overflow: hidden; aspect-ratio: 5/4; box-shadow: var(--shadow); }
.hero-visual .photo img { width: 100%; height: 100%; object-fit: cover; background: var(--surface-2); }
.photo-tag { position: absolute; top: .8rem; right: .8rem; background: rgba(10,17,41,.72); color: #fff; font-size: .72rem; padding: .15rem .55rem; border-radius: 99px; }
.mot { position: absolute; left: 0; bottom: 0; width: min(330px, 88%); background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 1rem 1.1rem 1rem 1.3rem; border-left: 3px solid var(--sky); }
.mot p.muted { font-size: .95rem; }
.mot .sign { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-top: .4rem; }
.mot .sign small { font-size: .78rem; color: var(--ink-2); }

/* Raccourcis « Vous venez pour… » */
.quick { margin-top: -2rem; position: relative; z-index: 2; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
@media (max-width: 960px) { .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quick a { display: grid; grid-template-columns: auto 1fr; gap: .2rem .85rem; align-items: center; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .2s, transform .2s var(--ease); min-height: 84px; }
.quick a:hover { border-color: var(--sky); transform: translateY(-2px); }
.quick .q-ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-soft); color: var(--sky); }
.quick a.q-cta .q-ico { background: var(--cta-soft); color: var(--cta); }
.quick b { font: 600 1rem/1.2 var(--f-display); }
.quick span { font-size: .88rem; color: var(--ink-2); line-height: 1.3; }
@media (max-width: 460px) { .quick a { grid-template-columns: minmax(0, 1fr); justify-items: start; } .quick .q-ico { grid-row: auto; } }

/* Trouver son élu */
.finder { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--gap); align-items: start; }
@media (max-width: 900px) { .finder { grid-template-columns: minmax(0, 1fr); } }
.levels { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.1rem 0 .8rem; }
.level { min-width: 54px; min-height: 48px; padding: .3rem .85rem; border-radius: var(--r); border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 1rem var(--f-display); cursor: pointer; }
.level:hover { border-color: var(--ink); }
.level[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.reps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (max-width: 460px) { .reps { grid-template-columns: minmax(0, 1fr); } }
.rep { display: flex; gap: .75rem; align-items: center; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: opacity .25s, border-color .25s, background-color .25s; }
.rep.dim { opacity: .6; }
.rep.match { border-color: var(--sky); background: var(--sky-soft); }
.rep b { display: block; font: 600 .98rem/1.2 var(--f-display); }
.rep span { font-size: .85rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.avatar { width: 44px; height: 44px; flex: none; }
.finder-out { margin: .2rem 0 1rem; font-size: .95rem; color: var(--ink-2); min-height: 1.6em; }

/* Chiffres */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.figure { padding: 1.4rem 1rem 1.4rem 0; }
.figure + .figure { padding-left: 1.2rem; border-left: 1px solid var(--line); }
@media (max-width: 760px) { .figure:nth-child(3) { border-left: 0; padding-left: 0; } .figure:nth-child(n+3) { border-top: 1px solid var(--line); } }
.figure b { display: block; font: 700 var(--s-3)/1 var(--f-display); letter-spacing: -.03em; color: var(--sky); font-variant-numeric: tabular-nums; }
.figure span { display: block; margin-top: .4rem; color: var(--ink-2); font-size: .95rem; line-height: 1.35; }

/* Étapes de la plateforme */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: st; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: st; display: grid; gap: .35rem; align-content: start; position: relative; padding-top: 3.2rem; }
.steps li::before { content: counter(st); position: absolute; top: 0; left: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; font: 700 1.05rem var(--f-display); color: var(--navy-accent); border: 2px solid var(--navy-accent); }
.steps li::after { content: ""; position: absolute; top: 1.2rem; left: 3rem; right: -.5rem; border-top: 2px dashed rgba(241,244,251,.25); }
.steps li:last-child::after { display: none; }
@media (max-width: 860px) { .steps li::after { display: none; } }
.steps b { font: 600 1.08rem var(--f-display); }
.steps span { font-size: .95rem; }

/* Cartes d'action (services) */
.service { display: grid; gap: .75rem; align-content: start; }
.service .s-ico { width: 52px; height: 52px; border-radius: 14px 14px 14px 4px; display: grid; place-items: center; background: var(--sky-soft); color: var(--sky); }
.service .s-ico .ico { width: 1.6rem; height: 1.6rem; }
.service h3 { font-size: var(--s-1); }
.service ul { list-style: none; margin: .2rem 0 0; padding: .8rem 0 0; border-top: 1px dashed var(--line-2); display: grid; gap: .4rem; }
.service li { display: flex; gap: .5rem; font-size: .95rem; }
.service li .ico { color: var(--green); margin-top: .2rem; width: 1.05em; height: 1.05em; }
.service--cta .s-ico { background: var(--surface); color: var(--cta); }

/* Charte */
.charter { list-style: none; margin: 0; padding: 0; display: grid; }
.charter li { display: grid; grid-template-columns: 4.5rem 1fr; gap: .25rem 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.charter li:last-child { border-bottom: 1px solid var(--line); }
.charter .art { grid-row: span 2; font: 600 .85rem var(--f-display); color: var(--sky); text-transform: uppercase; letter-spacing: .05em; padding-top: .2rem; }
.charter strong { font: 600 1.1rem var(--f-display); }
.charter span:last-child { color: var(--ink-2); }
.framed { position: relative; margin: 0; }
.framed img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--r-lg); }
.framed figcaption { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-size: .88rem; color: var(--ink-2); padding-top: .6rem; }
.framed figcaption small { font-size: .78rem; }

/* Témoignages */
.quote { display: grid; gap: 1rem; align-content: space-between; height: 100%; }
.quote blockquote { margin: 0; font: 400 1.12rem/1.55 var(--f-body); }
.quote .q-mark { font: 700 3rem/0.6 var(--f-display); color: var(--sky); height: 1.2rem; }
.quote footer { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; align-items: center; font-size: .9rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: .8rem; }
.quote footer b { color: var(--ink); font-family: var(--f-display); font-weight: 600; }
.demo-tag { font-size: .74rem; color: var(--ink-2); border: 1px dashed var(--line-2); padding: .05rem .45rem; border-radius: 99px; white-space: nowrap; }
.carousel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; }
.carousel .card { min-height: 220px; }
.carousel-nav { display: flex; gap: .5rem; align-items: center; }
.carousel-nav .num { font-size: .9rem; color: var(--ink-2); min-width: 3.2rem; text-align: center; }
@media (max-width: 640px) { .carousel { grid-template-columns: minmax(0, 1fr); } }

/* Galerie */
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); }
.strip li:first-child { grid-row: span 2; }
.strip figure { margin: 0; height: 100%; position: relative; }
.strip img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); aspect-ratio: 3/2; }
.strip li:first-child img { aspect-ratio: auto; }
.strip figcaption { position: absolute; left: .6rem; bottom: .6rem; background: rgba(10,17,41,.75); color: #fff; font-size: .82rem; padding: .25rem .65rem; border-radius: 99px; }
@media (max-width: 760px) { .strip { grid-template-columns: 1fr 1fr; } .strip li:first-child { grid-column: span 2; grid-row: auto; } .strip li:first-child img { aspect-ratio: 3/2; } }

/* Bandeau WhatsApp */
.join { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--gap); align-items: center; }
.join .qr { width: 156px; background: #fff; padding: 10px; border-radius: var(--r); }
@media (max-width: 640px) { .join { grid-template-columns: minmax(0, 1fr); } .join .qr { width: 132px; } }

/* Calendrier de l'année */
.year { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; }
@media (max-width: 960px) { .year { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .year { grid-template-columns: minmax(0, 1fr); } }
.year li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; display: grid; gap: .3rem; align-content: start; border-top: 4px solid var(--sky); }
.year li:nth-child(2) { border-top-color: var(--green); } .year li:nth-child(3) { border-top-color: var(--cta); } .year li:nth-child(4) { border-top-color: var(--navy); } .year li:nth-child(5) { border-top-color: var(--green); }
.year time { font: 600 .82rem var(--f-display); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.year b { font: 600 1.02rem/1.25 var(--f-display); }
.year span { font-size: .92rem; color: var(--ink-2); }

/* ---------- Événements ---------- */
.events { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 960px) { .events { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .events { grid-template-columns: minmax(0, 1fr); } }
.event { display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-width: 0; }
.sec--white .event { background: var(--bg); }
.event-photo { position: relative; }
.event-photo img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.event-date { position: absolute; left: .8rem; bottom: -1.4rem; width: 4.4rem; background: var(--surface); color: var(--ink); border-radius: var(--r); box-shadow: var(--shadow); text-align: center; padding: .35rem 0 .4rem; border-top: 4px solid var(--cta); }
.event-date b { display: block; font: 700 1.6rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.event-date span { font: 600 .72rem var(--f-display); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.event-cat { position: absolute; right: .7rem; top: .7rem; background: rgba(10,17,41,.75); color: #fff; font: 500 .75rem var(--f-display); padding: .2rem .6rem; border-radius: 99px; }
.event.past .event-date { border-top-color: var(--line-2); }
.event.past .event-photo img { filter: saturate(.55); }
.event-body { display: grid; gap: .55rem; align-content: start; padding: 2.1rem 1.2rem 1.2rem; }
.event-body h3 { font-size: 1.12rem; }
.event-meta { display: grid; gap: .25rem; font-size: .9rem; color: var(--ink-2); }
.event-meta span { display: flex; gap: .45rem; align-items: flex-start; }
.event-meta .ico { color: var(--sky); margin-top: .15rem; width: 1.05em; height: 1.05em; }
.event-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .3rem; padding-top: .8rem; border-top: 1px dashed var(--line-2); }
.seg { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: var(--r); overflow: hidden; margin-bottom: 1.4rem; }
.seg button { background: var(--surface); color: var(--ink); border: 0; padding: .6rem 1.1rem; min-height: 46px; font: 600 .95rem var(--f-display); cursor: pointer; }
.seg button + button { border-left: 1.5px solid var(--line-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.memories { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.memories li:first-child { grid-column: span 2; grid-row: span 2; }
.memories figure { margin: 0; position: relative; height: 100%; }
.memories img { width: 100%; height: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--r); }
.memories li:first-child img { aspect-ratio: auto; }
.memories figcaption { position: absolute; left: .5rem; bottom: .5rem; background: rgba(10,17,41,.78); color: #fff; font-size: .8rem; padding: .25rem .6rem; border-radius: var(--r); }
@media (max-width: 700px) { .memories { grid-template-columns: repeat(2, minmax(0, 1fr)); } .memories li:first-child img { aspect-ratio: 3/2; } }

/* ---------- Page de carnet (formulaires) ----------
   Perforations à gauche + marge bleue, comme une page de carnet de liaison. */
.carnet { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--pad) var(--pad) var(--pad) calc(var(--pad) + 2.2rem); box-shadow: var(--shadow); min-width: 0; }
.carnet::before { content: ""; position: absolute; left: .9rem; top: 1.2rem; bottom: 1.2rem; width: 12px; background: radial-gradient(circle at 6px 6px, var(--bg) 4.5px, var(--line-2) 5px, transparent 6px) 0 0 / 12px 34px repeat-y; }
.carnet::after { content: ""; position: absolute; left: 2.35rem; top: 0; bottom: 0; border-left: 2px solid color-mix(in srgb, var(--sky) 40%, transparent); }
@media (max-width: 520px) { .carnet { padding-left: calc(1.1rem + 1.6rem); padding-right: 1.1rem; } .carnet::before { left: .55rem; } .carnet::after { left: 1.7rem; } }
.carnet-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.carnet-head h2 { font-size: var(--s-2); }
.carnet-head .hand { font-size: 1.35rem; }

/* ---------- Formulaires ---------- */
form { display: grid; gap: 1.05rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: .35rem; min-width: 0; }
.field > label, .lbl { font: 600 .95rem var(--f-display); }
.opt { font-weight: 400; color: var(--ink-2); font-family: var(--f-body); }
.help { font-size: .88rem; color: var(--ink-2); }
input, select, textarea { width: 100%; font: 400 1rem var(--f-body); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r); padding: .7rem .8rem; min-height: 50px; }
textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sky) 30%, transparent); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }
.err { color: var(--red); font-size: .88rem; }
.err:empty { display: none; }
.check { display: flex; gap: .65rem; align-items: flex-start; font: 400 .95rem/1.45 var(--f-body); color: var(--ink-2); cursor: pointer; }
.check a { display: inline-block; padding-block: .5rem; margin-block: -.5rem; }
.check input { width: 22px; height: 22px; min-height: 0; flex: none; margin-top: .05rem; accent-color: var(--sky); }
.check strong { color: var(--ink); }
.hp { position: absolute; left: -9999px; }
fieldset.field { border: 0; margin: 0; padding: 0; }
fieldset.field legend { margin-bottom: .45rem; padding: 0; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .5rem; }
@media (max-width: 520px) { .choices[data-cats] { grid-template-columns: repeat(2, minmax(0, 1fr)); } .choices[data-cats] label { font-size: .88rem; padding: .6rem .65rem; align-items: flex-start; } .choices[data-cats] input { margin-top: .1rem; } }
.choices label { display: flex; gap: .55rem; align-items: center; padding: .75rem .85rem; border: 1.5px solid var(--line-2); border-radius: var(--r); cursor: pointer; font: 500 .95rem/1.25 var(--f-display); background: var(--surface); min-height: 52px; }
.choices label:hover { border-color: var(--ink-2); }
.choices input { width: 18px; height: 18px; min-height: 0; accent-color: var(--sky); flex: none; }
.choices label:has(input:checked) { border-color: var(--sky); background: var(--sky-soft); }
.choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .choices--3 { grid-template-columns: minmax(0, 1fr); } }
.choices .u-urgente:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.form-status { padding: .85rem 1rem; border-radius: var(--r); font-size: .97rem; }
.form-status:empty { display: none; }
.form-status.ok { background: var(--green-soft); color: var(--green); }
.form-status.ko { background: var(--red-soft); color: var(--red); }
.count { font-size: .82rem; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }

/* Progression en 3 étapes */
.progress { list-style: none; margin: 0 0 .4rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.progress li { font: 500 .85rem var(--f-display); color: var(--ink-2); padding-top: .55rem; border-top: 4px solid var(--line); }
.progress li[data-state="current"] { color: var(--ink); border-color: var(--sky); }
.progress li[data-state="done"] { color: var(--green); border-color: var(--green); }
.step-nav { display: flex; justify-content: space-between; gap: .7rem; flex-wrap: wrap; margin-top: .3rem; }
.recap { background: var(--surface-2); border-radius: var(--r); padding: .9rem 1rem; display: grid; gap: .2rem; font-size: .95rem; }
.recap b { font-family: var(--f-display); font-weight: 600; }
.alert { padding: .85rem 1rem; border-radius: var(--r); background: var(--red-soft); color: var(--red); font-size: .95rem; }
.receipt { display: grid; gap: .6rem; }
.receipt .ref { font: 700 1.6rem var(--f-display); letter-spacing: .02em; color: var(--ink); background: var(--surface-2); border: 2px dashed var(--line-2); padding: .4rem .9rem; border-radius: var(--r); justify-self: start; font-variant-numeric: tabular-nums; }
.stamp { display: inline-block; font: 700 .85rem var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--green); border: 2px solid currentColor; padding: .2rem .6rem; border-radius: 4px; rotate: -4deg; justify-self: start; }

/* Statuts et liste des signalements */
.status { display: inline-flex; align-items: center; gap: .4rem; font: 600 .8rem var(--f-display); padding: .2rem .65rem; border-radius: 99px; white-space: nowrap; }
.status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.st-recue { background: var(--sky-soft); color: var(--sky); }
.st-etude { background: var(--amber-soft); color: var(--amber); }
.st-portee { background: var(--cta-soft); color: var(--cta-hover); }
:root[data-theme="dark"] .st-portee { color: var(--cta); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .st-portee { color: var(--cta); } }
.st-resolue { background: var(--green-soft); color: var(--green); }
.filters { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.2rem; }
.filters .field { flex: 1 1 180px; }
.issues { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.issue { display: grid; gap: .6rem; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem; }
.sec--white .issue { background: var(--bg); }
.issue-top { display: flex; justify-content: space-between; gap: .5rem 1rem; align-items: flex-start; flex-wrap: wrap; }
.issue h3 { font-size: 1.1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .83rem; color: var(--ink-2); }
.tags span { background: var(--surface-2); padding: .1rem .55rem; border-radius: 4px; }
.reply { border-left: 3px solid var(--green); padding: .5rem .9rem; background: var(--green-soft); border-radius: 0 var(--r) var(--r) 0; font-size: .95rem; color: var(--ink); }
.reply b { display: block; font: 600 .82rem var(--f-display); color: var(--green); }
.issue-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.issue-foot .muted { font-size: .9rem; }
.support { display: inline-flex; gap: .45rem; align-items: center; min-height: 42px; padding: .35rem .95rem; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 99px; font: 600 .9rem var(--f-display); cursor: pointer; }
.support:hover { border-color: var(--ink); }
.support[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.track { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; }
.track li { font-size: .78rem; line-height: 1.25; padding-top: .45rem; border-top: 4px solid var(--line); color: var(--ink-2); }
.track li.done { border-color: var(--green); color: var(--ink); }

/* Équipe, histoire, valeurs */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: var(--gap); }
.member { display: grid; gap: .6rem; justify-items: start; align-content: start; transition: opacity .25s; }
.member.dim { opacity: .6; }
.member .avatar { width: 64px; height: 64px; }
.member h3 { font-size: 1.15rem; }
.member .cls { display: flex; gap: .35rem; flex-wrap: wrap; }
.member .cls span { font-size: .82rem; background: var(--surface-2); padding: .1rem .5rem; border-radius: 4px; font-variant-numeric: tabular-nums; }
.member p { font-size: .92rem; color: var(--ink-2); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.2rem; border-left: 2px solid var(--line-2); display: grid; gap: 1.2rem; }
.timeline li { position: relative; display: grid; gap: .15rem; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.2rem - 7px); top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--sky); }
.timeline li.next::before { border-style: dashed; border-color: var(--ink-2); }
.timeline time, .timeline .when { font: 600 .85rem var(--f-display); color: var(--sky); }
.timeline p { color: var(--ink-2); font-size: .95rem; }
.prose { display: grid; gap: 1rem; max-width: 66ch; }
.prose h2 { font-size: var(--s-2); margin-top: .8rem; }
.values .card h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.values .v-n { font: 700 .82rem var(--f-display); color: var(--sky); letter-spacing: .06em; display: block; margin-bottom: .5rem; text-transform: uppercase; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); font-size: .95rem; }
.facts li span:first-child { color: var(--ink-2); }
.facts li span:last-child { font-family: var(--f-display); font-weight: 500; text-align: right; }
.source { font-size: .8rem; color: var(--ink-2); margin-top: .6rem; }

/* Instances */
.instances { list-style: none; margin: 0; padding: 0; }
.instances li { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.instances li span { font-size: .85rem; color: var(--ink-2); text-align: right; }
.instances small { grid-column: 1 / -1; color: var(--ink-2); font-size: .95rem; }
.instances strong { font: 600 1.05rem var(--f-display); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; position: relative; font: 600 1.06rem/1.35 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .4rem; top: 1.35rem; width: .6rem; height: .6rem; border-right: 2px solid var(--sky); border-bottom: 2px solid var(--sky); rotate: 45deg; transition: rotate .2s; }
.faq details[open] summary::after { rotate: -135deg; top: 1.6rem; }
.faq details > div { padding: 0 0 1.2rem; color: var(--ink-2); max-width: 70ch; display: grid; gap: .6rem; }
.faq-search { margin-bottom: 1rem; }

/* Contact */
.c-line { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 0; border-top: 1px solid var(--line); }
.c-line:first-of-type { border-top: 0; padding-top: 0; }
.c-line .ico { color: var(--sky); margin-top: .2rem; }
.c-line strong { display: block; font: 600 .95rem var(--f-display); }
.c-line code { font: 400 .98rem var(--f-body); overflow-wrap: anywhere; }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { text-align: left; padding: .55rem 0; border-top: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; color: var(--ink-2); }
.todo { background: var(--amber-soft); color: var(--amber); padding: 0 .35rem; border-radius: 3px; font-size: .9em; }

/* Pages légales */
.legal { display: grid; gap: .9rem; max-width: 74ch; }
.legal h2 { font-size: var(--s-1); margin-top: 1rem; }
.legal ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: linear-gradient(rgba(14,24,52,.95), rgba(10,17,41,.97)), url(assets/photos/salle-1200.webp) center / cover no-repeat, var(--navy-2); color: var(--on-navy-2); padding-block: 3rem 2rem; font-size: .95rem; }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
@media (max-width: 760px) { .foot { grid-template-columns: minmax(0, 1fr); } }
.site-footer .brand { color: var(--on-navy); }
.site-footer .brand small { color: var(--on-navy-2); display: block; }
.foot h2 { font-size: .95rem; color: var(--on-navy); margin-bottom: .7rem; letter-spacing: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.foot a, .foot .link-btn { color: var(--on-navy-2); text-decoration: none; font: inherit; }
.foot a:hover, .foot .link-btn:hover { color: var(--on-navy); text-decoration: underline; }
.foot-bottom { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; }
.foot-bottom .admin-link { color: rgba(185,196,222,.8); text-decoration: none; font-size: .8rem; }

/* Bandeau cookies : refuser aussi simple qu'accepter */
.cookies { position: fixed; z-index: 56; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(440px, calc(100% - 32px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem; box-shadow: 0 18px 50px -10px rgba(10,17,41,.45); display: grid; gap: .8rem; font-size: .95rem; }
.cookies .actions .btn { flex: 1; min-height: 46px; }
@media (max-width: 760px) { .cookies { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } }
.toast { position: fixed; z-index: 58; left: 50%; translate: -50% 0; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--surface); padding: .75rem 1.15rem; border-radius: var(--r); font: 500 .95rem var(--f-display); box-shadow: 0 10px 30px rgba(0,0,0,.3); max-width: calc(100% - 32px); }
@media (max-width: 760px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- WhatsApp ---------- */
.btn--wa { background: #1c7c43; color: #fff; }
.btn--wa:hover { background: #156535; }
.wa-card { display: grid; gap: .8rem; }
.wa-card .actions .btn { flex: 1 1 200px; }

/* ---------- Assistant (chatbot à règles, sans service extérieur) ---------- */
.chat-fab { position: fixed; z-index: 50; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: .5rem; min-height: 54px; padding: .7rem 1.1rem .7rem .9rem; border: 0; border-radius: 99px; background: var(--navy); color: #fff; font: 600 .98rem var(--f-display); box-shadow: 0 12px 30px -8px rgba(10,17,41,.55); cursor: pointer; }
.chat-fab .ico { width: 1.4rem; height: 1.4rem; }
.chat-fab:hover { background: var(--navy-2); }
:root[data-theme="dark"] .chat-fab { background: var(--sky); color: #0a1129; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chat-fab { background: var(--sky); color: #0a1129; } }
@media (max-width: 760px) { .chat-fab { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); padding: .7rem; min-height: 52px; min-width: 52px; justify-content: center; } .chat-fab span { display: none; } }
.chat { position: fixed; z-index: 52; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: min(380px, calc(100% - 32px)); height: min(600px, calc(100dvh - 110px)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 24px 60px -12px rgba(10,17,41,.5); overflow: hidden; }
@media (max-width: 760px) { .chat { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); height: min(560px, calc(100dvh - 160px)); } }
.chat-head { display: flex; align-items: center; gap: .7rem; padding: .8rem .9rem; background: var(--navy); color: #fff; }
.chat-head img { width: 36px; height: 36px; border-radius: 50%; background: #fff; }
.chat-head b { display: block; font: 600 1rem var(--f-display); }
.chat-head small { display: block; font-size: .78rem; color: #b9c4de; }
.chat-head button { margin-left: auto; width: 40px; height: 40px; border-radius: var(--r); border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; cursor: pointer; font: 400 1.4rem/1 var(--f-display); }
.chat-log { overflow-y: auto; padding: 1rem .9rem; display: flex; flex-direction: column; gap: .6rem; background: var(--bg); }
.bubble { max-width: 88%; padding: .6rem .8rem; border-radius: 14px; font-size: .95rem; line-height: 1.45; }
.bubble p + p { margin-top: .4rem; }
.bubble.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: var(--sky); color: #fff; border-bottom-right-radius: 4px; }
:root[data-theme="dark"] .bubble.me { color: #0a1129; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bubble.me { color: #0a1129; } }
.bubble a { font-weight: 600; }
.bubble ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.bubble .btn { min-height: 40px; padding: .4rem .8rem; font-size: .9rem; margin-top: .5rem; }
.chat-chips { display: flex; gap: .4rem; overflow-x: auto; padding: .55rem .7rem; border-top: 1px solid var(--line); background: var(--surface); scrollbar-width: thin; }
.chat-chips button { flex: none; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 99px; padding: .35rem .8rem; min-height: 38px; font: 500 .85rem var(--f-display); cursor: pointer; white-space: nowrap; }
.chat-chips button:hover { border-color: var(--sky); }
.chat-form { display: flex; gap: .5rem; padding: .6rem .7rem calc(.6rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); }
.chat-form input { min-height: 44px; }
.chat-form button { flex: none; width: 46px; min-height: 44px; border: 0; border-radius: var(--r); background: var(--cta); color: var(--on-cta); cursor: pointer; display: grid; place-items: center; }
.chat-note { font-size: .72rem; color: var(--ink-2); text-align: center; padding: 0 .7rem .4rem; background: var(--surface); }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ---------- Bandeau supérieur : établissement, accès par niveau, WhatsApp ---------- */
.topbar { background: var(--navy-2); color: var(--on-navy-2); font-size: .84rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; min-height: 40px; flex-wrap: wrap; padding-block: .25rem; }
.top-levels { display: flex; align-items: center; gap: .15rem; }
.top-levels > span { margin-right: .4rem; }
.top-levels a { color: var(--on-navy); text-decoration: none; font: 600 .82rem var(--f-display); padding: .35rem .55rem; border-radius: 99px; min-width: 2.3rem; text-align: center; }
.top-levels a:hover { background: rgba(255,255,255,.14); }
.top-wa { color: var(--on-navy); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; font-variant-numeric: tabular-nums; padding-block: .35rem; }
.top-wa:hover { text-decoration: underline; }
[data-off-whatsapp] .top-wa { display: none; }
@media (max-width: 900px) { .top-place, .top-wa { display: none; } .topbar .wrap { justify-content: center; } }
@media (max-width: 420px) { .top-levels > span { display: none; } .top-levels::before { content: "Niveau"; margin-right: .35rem; } }

/* ---------- Menu par besoins : Découvrir / S'informer / Agir ---------- */
.nav > ul > li { position: relative; }
.nav-top { display: inline-flex; align-items: center; gap: .3rem; background: none; border: 0; cursor: pointer; white-space: nowrap; padding: .5rem .6rem; border-radius: var(--r); color: var(--ink-2); font: 500 .97rem var(--f-display); }
.nav-top::after { content: ""; width: .42rem; height: .42rem; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; rotate: 45deg; translate: 0 -2px; transition: rotate .2s; }
.nav-top:hover, li.open > .nav-top, li.current > .nav-top { color: var(--ink); background: var(--surface-2); }
li.current > .nav-top { background: var(--sky-soft); }
li.open > .nav-top::after { rotate: -135deg; translate: 0 2px; }
.sub { display: none; position: absolute; top: calc(100% + 14px); left: -.5rem; width: 340px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 22px 50px -18px rgba(10,17,41,.4); padding: .5rem; z-index: 5; }
.sub::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
li.open > .sub { display: grid; animation: subIn .22s var(--ease); }
@media (hover: hover) and (min-width: 1021px) { .nav li.has-sub:hover > .sub { display: grid; animation: subIn .22s var(--ease); } }
@keyframes subIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sub a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 .8rem; align-items: center; white-space: normal; padding: .65rem .7rem; border-radius: var(--r); }
.sub a .s-i { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px 10px 10px 3px; display: grid; place-items: center; background: var(--sky-soft); color: var(--sky); }
.sub a.s-cta .s-i { background: var(--cta-soft); color: var(--cta); }
.sub a b { font: 600 .97rem/1.25 var(--f-display); color: var(--ink); }
.sub a span { font: 400 .84rem/1.3 var(--f-body); color: var(--ink-2); }
@media (max-width: 1020px) {
  .nav-top { pointer-events: none; text-transform: uppercase; font-size: .76rem; letter-spacing: .07em; padding: 1rem .6rem .2rem; color: var(--sky); background: none !important; }
  .nav-top::after { display: none; }
  .sub { display: grid; position: static; width: auto; border: 0; box-shadow: none; padding: 0; animation: none !important; }
  .sub::before { display: none; }
  .nav { max-height: calc(100dvh - 150px); overflow-y: auto; }
}

/* ---------- Hero : phrase fixe, un mot qui change, tuiles vivantes ---------- */
.hero { background: radial-gradient(58rem 30rem at 88% -12%, var(--sky-soft), transparent 62%), radial-gradient(40rem 24rem at -12% 112%, var(--cta-soft), transparent 62%), var(--surface); }
.hero-grid { align-items: start; }
.hero h1 { font-size: clamp(2.35rem, 1.3rem + 4.5vw, 4.5rem); line-height: 1.02; }
.rot { display: grid; overflow: hidden; color: var(--sky); padding-bottom: .1em; margin-bottom: -.1em; }
.rot span { grid-area: 1 / 1; justify-self: start; opacity: 0; transform: translateY(105%); transition: transform .65s var(--ease), opacity .45s; background: linear-gradient(var(--cta), var(--cta)) no-repeat 0 94% / 100% .14em; padding-right: .04em; }
.rot span.on { opacity: 1; transform: none; }
.rot span.out { opacity: 0; transform: translateY(-105%); }
.rot-dots { display: flex; gap: .35rem; margin: -.3rem 0 1.1rem; }
.rot-dots i { width: 1.4rem; height: 4px; border-radius: 99px; background: var(--line-2); transition: background-color .3s, width .3s var(--ease); }
.rot-dots i.on { background: var(--cta); width: 2.4rem; }
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.b-photo { grid-column: 1 / -1; position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--shadow); animation: heroPhoto 1s var(--ease) both .12s; }
.b-photo img { width: 100%; height: 100%; object-fit: cover; background: var(--surface-2); }
.b-photo .mot { left: .8rem; bottom: .8rem; width: min(268px, calc(100% - 1.6rem)); padding: .75rem .9rem .7rem 1rem; animation: heroIn .8s var(--ease) both .5s; }
.b-photo .mot p.muted { font-size: .88rem; }
.b-photo .mot .sign small { display: none; }
.b-photo .mot .hand { font-size: 1.25rem; }
.b-tile { border-radius: var(--r-lg); padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); display: grid; gap: .5rem; align-content: start; min-width: 0; animation: heroIn .8s var(--ease) both .35s; }
.b-tile + .b-tile { animation-delay: .45s; }
.b-tile.countdown .cd-num b { font-size: clamp(2.3rem, 1.7rem + 2vw, 3.3rem); }
.b-tile h3 { font-size: 1.05rem; }
.b-tile .event-meta span:nth-child(2) { display: none; }
@media (max-width: 520px) { .bento { grid-template-columns: minmax(0, 1fr); } .b-photo { aspect-ratio: 4 / 3; } }

/* Pourquoi nous rejoindre */
.why { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.why li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .1rem .8rem; }
.why .ico { grid-row: span 2; color: var(--cta); width: 1.5rem; height: 1.5rem; margin-top: .15rem; }
.why b { font: 600 1.02rem var(--f-display); }
.why span { color: var(--ink-2); font-size: .95rem; }

/* Signature */
.sig { color: var(--on-navy); font: 700 .85rem var(--f-display); letter-spacing: .04em; text-decoration: none; border-bottom: 2px solid var(--cta); padding-bottom: 1px; }
.sig:hover { color: #fff; border-color: #fff; }

/* =====================================================================
   ACCUEIL « JOURNAL DES PARENTS »
   Une page de journal plutôt qu'une page d'application : vraie photo de l'équipe,
   titre en serif de presse, colonnes séparées par des filets, peu de cartes.
   ===================================================================== */
.une { background: var(--surface); border-bottom: 1px solid var(--line); padding-top: clamp(1.4rem, .8rem + 3vw, 3.4rem); overflow-x: clip; }
/* Les éléments inclinés ou en cours d'apparition ne doivent jamais élargir la page */
.sec, .page-head { overflow-x: clip; }
.une-kicker { display: flex; justify-content: space-between; gap: .3rem 1.5rem; flex-wrap: wrap; font: 600 .78rem var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding-bottom: .8rem; border-bottom: 2px solid var(--ink); margin-bottom: clamp(1.4rem, 1rem + 2vw, 2.6rem); }
.une-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.6rem, 1rem + 3.5vw, 5rem); align-items: center; }
@media (max-width: 900px) { .une-grid { grid-template-columns: minmax(0, 1fr); } }
.une h1 { font-weight: 500; font-size: clamp(2.6rem, 1.3rem + 5.2vw, 5.6rem); line-height: .97; letter-spacing: -.03em; margin: 0 0 1.3rem; }
.une h1 .rot { color: var(--cta); font-style: italic; font-weight: 500; }
.une h1 .rot span { background: none; padding-right: .06em; }
.une .rot-dots { margin: -.2rem 0 1.3rem; }
.une-lead { font-size: var(--s-1); line-height: 1.55; color: var(--ink-2); max-width: 52ch; margin-bottom: 1.7rem; }
.une-lead strong { color: var(--ink); font-weight: 700; }
.une-sign { display: flex; align-items: center; gap: .9rem; margin-top: 1.6rem; }
.une-sign img { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: #fff; flex: none; }
.une-sign .hand { font-size: 1.32rem; line-height: 1.15; }
.collage { position: relative; padding: 0 0 3.6rem 1.8rem; }
.collage .lycee { width: 100%; aspect-ratio: 778 / 470; object-fit: cover; border-radius: 3px; box-shadow: var(--shadow); background: var(--surface-2); }
.collage .lycee-cap { position: absolute; top: .7rem; right: .7rem; margin: 0; background: rgba(10,17,41,.74); color: #fff; font-size: .74rem; padding: .2rem .65rem; border-radius: 99px; }
@media (max-width: 600px) { .une-kicker { font-size: .7rem; } .une-kicker span:last-child { display: none; } }
.polaroid { position: absolute; left: 0; bottom: 0; width: min(80%, 450px); margin: 0; background: #fff; padding: .55rem .55rem .65rem; box-shadow: 0 16px 34px -12px rgba(10,17,41,.5); rotate: -2.5deg; transition: rotate .4s var(--ease), transform .4s var(--ease); }
.polaroid:hover { rotate: -.5deg; transform: translateY(-4px); }
.polaroid img { width: 100%; aspect-ratio: 650 / 144; object-fit: cover; }
.polaroid figcaption { font-family: var(--f-hand); font-weight: 600; color: #1d4fb0; font-size: 1.2rem; line-height: 1.1; padding-top: .35rem; }
.polaroid::before { content: ""; position: absolute; top: -11px; left: 50%; width: 96px; height: 24px; translate: -50% 0; rotate: 3deg; background: rgba(255, 226, 120, .78); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
@media (max-width: 520px) { .collage { padding: 0 0 3rem .6rem; } .polaroid { width: 92%; } }
.une-bref { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: clamp(1.8rem, 1rem + 2.4vw, 3.2rem); }
.une-bref a { display: block; padding: 1.05rem 1.3rem 1.2rem 0; text-decoration: none; color: var(--ink); min-width: 0; }
.une-bref a + a { padding-left: 1.3rem; border-left: 1px solid var(--line); }
.une-bref small { display: block; font: 600 .72rem var(--f-display); text-transform: uppercase; letter-spacing: .09em; color: var(--cta); margin-bottom: .3rem; }
.une-bref b { font: 600 1.02rem/1.3 var(--f-display); }
.une-bref span { display: block; font-size: .88rem; color: var(--ink-2); margin-top: .2rem; }
.une-bref a:hover b { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .une-bref { grid-template-columns: minmax(0, 1fr); } .une-bref a, .une-bref a + a { padding: .9rem 0; border-left: 0; border-top: 1px solid var(--line); } .une-bref a:first-child { border-top: 0; } }

/* Arrivée de la une : le contenu est visible dès la première image, seul le mouvement s'anime */
@keyframes polIn { from { transform: translateY(26px) rotate(-6deg); } to { transform: none; } }
.une h1, .une-lead, .une .actions, .une-sign { animation: heroIn .8s var(--ease) both; }
.une-lead { animation-delay: .1s; } .une .actions { animation-delay: .18s; } .une-sign { animation-delay: .26s; }
.collage .lycee { animation: heroPhoto 1.1s var(--ease) both .1s; }
.polaroid { animation: polIn 1s var(--ease) both .45s; }
.une-bref a { animation: heroIn .7s var(--ease) both .5s; }
.une-bref a + a { animation-delay: .58s; } .une-bref a + a + a { animation-delay: .66s; }

/* Section « Qui contacter » */
.who-sec .finder > div > h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); margin: 0 0 .9rem; }
.who-sec .levels .level { min-width: 58px; min-height: 52px; font-size: 1.05rem; }

/* Colonnes « journal » */
.journal { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(1.6rem, 1rem + 3.5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .journal { grid-template-columns: minmax(0, 1fr); } }
.col-title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: .6rem; }
.col-title h2 { font-size: var(--s-2); }
.chron { list-style: none; margin: 0; padding: 0; }
.chron li { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: .3rem 1.3rem; padding: 1.15rem 0 1.25rem; border-bottom: 1px solid var(--line); }
.chron time { font: 600 .84rem var(--f-display); color: var(--ink-2); padding-top: .35rem; font-variant-numeric: tabular-nums; }
.chron h3 { font-family: var(--f-head); font-weight: 600; font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); line-height: 1.18; letter-spacing: -.01em; }
.chron h3 a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--cta), var(--cta)) no-repeat 0 100% / 0 2px; transition: background-size .35s var(--ease); }
.chron h3 a:hover { background-size: 100% 2px; }
.chron p { grid-column: 2; color: var(--ink-2); font-size: .98rem; }
.chron time { grid-column: 1; grid-row: 1 / span 3; }
.chron .lab, .chron h3 { grid-column: 2; }
.chron .lab { grid-column: 2; font: 600 .72rem var(--f-display); text-transform: uppercase; letter-spacing: .08em; color: var(--sky); }
@media (max-width: 520px) { .chron li { grid-template-columns: minmax(0, 1fr); } .chron time, .chron p, .chron .lab, .chron h3 { grid-column: auto; grid-row: auto; } }
.agenda-list { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.agenda-list li { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: .1rem 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.agenda-list .d { grid-row: span 2; text-align: center; border: 1.5px solid var(--ink); border-radius: 4px; padding: .25rem 0 .3rem; line-height: 1; }
.agenda-list .d b { display: block; font: 600 1.6rem/1 var(--f-head); }
.agenda-list .d span { font: 600 .68rem var(--f-display); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.agenda-list a { color: var(--ink); font: 600 1rem/1.3 var(--f-display); text-decoration: none; }
.agenda-list a:hover { text-decoration: underline; }
.agenda-list small { color: var(--ink-2); font-size: .86rem; }
.poll-box { border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem; background: var(--bg); }

/* Bande « Un souci au lycée ? » */
.signal { background: linear-gradient(100deg, rgba(14,24,52,.95) 0%, rgba(20,36,77,.88) 55%, rgba(20,36,77,.72) 100%), url(assets/photos/couloir-1200.webp) center / cover no-repeat, var(--navy); color: var(--on-navy); }
@media (hover: hover) and (min-width: 1024px) { .signal, .band-photo { background-attachment: fixed; } }
.signal-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.6rem, 1rem + 4vw, 5rem); align-items: center; }
@media (max-width: 900px) { .signal-grid { grid-template-columns: minmax(0, 1fr); } }
.signal h2 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.5rem); color: #fff; font-weight: 500; }
.signal h2 em { font-style: italic; color: #ffb27f; }
.signal p.lead { color: var(--on-navy-2); margin-top: .9rem; }
.cat-pick { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 1.4rem; }
.cat-pick a { color: #fff; text-decoration: none; border: 1.5px solid rgba(255,255,255,.35); border-radius: 99px; padding: .5rem 1rem; min-height: 44px; display: inline-flex; align-items: center; font: 500 .95rem var(--f-display); transition: background-color .2s, color .2s, border-color .2s; }
.cat-pick a:hover, .cat-pick a:focus-visible { background: #fff; color: var(--navy-2); border-color: #fff; }
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.3rem; counter-reset: how; }
.how li { counter-increment: how; display: grid; grid-template-columns: 2.8rem minmax(0, 1fr); gap: .1rem 1rem; }
.how li::before { content: counter(how); grid-row: span 2; font: 500 2.4rem/1 var(--f-head); color: var(--navy-accent); }
.how b { font: 600 1.05rem var(--f-display); color: #fff; }
.how span { color: var(--on-navy-2); font-size: .95rem; }

/* Bande photo « Le Renouveau commence avec vous » */
.band-photo { position: relative; color: #fff; background: linear-gradient(180deg, rgba(10,17,41,.35), rgba(10,17,41,.82)), url(assets/photos/cafe-1200.webp) center 40% / cover no-repeat, var(--navy); padding-block: clamp(5rem, 3rem + 9vw, 10rem) clamp(3rem, 2rem + 4vw, 5rem); overflow-x: clip; }
.band-photo .wrap { display: grid; gap: 1.1rem; }
.band-photo blockquote { margin: 0; font: 500 clamp(2.2rem, 1.3rem + 4.2vw, 4.6rem)/1.02 var(--f-head); letter-spacing: -.025em; max-width: 16ch; text-wrap: balance; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.band-photo blockquote em { color: #ffb27f; }
.band-photo p { color: rgba(255,255,255,.86); max-width: 52ch; font-size: var(--s-1); }
.band-photo .src { font-size: .8rem; color: rgba(255,255,255,.7); }
.band-photo .btn--line { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.band-photo .btn--line:hover { border-color: #fff; }

/* Lettre aux familles */
.letter-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(2rem, 1rem + 4.5vw, 5.5rem); align-items: start; }
@media (max-width: 900px) { .letter-grid { grid-template-columns: minmax(0, 1fr); } }
.letter h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); margin-bottom: 1.4rem; font-weight: 500; }
.letter .body { display: grid; gap: 1.05rem; font-size: 1.1rem; line-height: 1.72; max-width: 62ch; }
.letter .body > p:first-child::first-letter { float: left; font: 600 3.7em/.82 var(--f-head); margin: .06em .12em 0 0; color: var(--navy); }
:root[data-theme="dark"] .letter .body > p:first-child::first-letter { color: var(--sky); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .letter .body > p:first-child::first-letter { color: var(--sky); } }
.letter .sign { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.letter .sign .hand { font-size: 1.6rem; }
.affiche { margin: 0; background: #fff; padding: .6rem .6rem .5rem; box-shadow: var(--shadow); rotate: 1.6deg; border-radius: 2px; transition: rotate .4s var(--ease); }
.affiche:hover { rotate: 0deg; }
.affiche img { width: 100%; }
.affiche figcaption { font-size: .82rem; color: #4a5675; padding: .5rem .15rem 0; }
.principes { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .7rem; }
.principes li { padding-left: 1.4rem; position: relative; color: var(--ink-2); }
.principes li::before { content: ""; position: absolute; left: 0; top: .62em; width: .6rem; height: 2px; background: var(--cta); }
.principes strong { color: var(--ink); }

/* Questions + contact */
.qa-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: clamp(1.6rem, 1rem + 3.5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .qa-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-card { border: 1px solid var(--line); border-radius: var(--r); padding: var(--pad); display: grid; gap: .9rem; background: var(--surface); }
.contact-card h2 { font-size: var(--s-2); }
.big-line { display: flex; align-items: center; gap: .6rem; font: 600 1.2rem var(--f-display); color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.big-line .ico { color: var(--sky); }
a.big-line:hover { text-decoration: underline; }

/* Rôles de l'équipe (back-office) */
.role-tag.r-proprietaire { background: var(--ink); color: var(--surface); }
.role-tag.r-gestionnaire { background: var(--green-soft); color: var(--green); }
.role-tag.r-editeur { background: var(--amber-soft); color: var(--amber); }
.role-tag.r-inconnu { background: var(--red-soft); color: var(--red); }
.roles-matrix td, .roles-matrix th { text-align: center; }
.roles-matrix td:first-child, .roles-matrix th:first-child { text-align: left; }
.admin-bar [data-me] { font-size: .88rem; color: var(--on-navy-2); }

/* =====================================================================
   ANIMATIONS ET DÉTAILS (tout le site)
   Tout est coupé si l'appareil demande moins de mouvement, ou via l'option
   « Animations décoratives » de la supervision.
   ===================================================================== */
/* Transitions entre pages (version en plusieurs pages, navigateurs récents) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .25s ease both; }
::view-transition-new(root) { animation: vtIn .35s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(12px); } }
/* Transition entre rubriques (version en un seul fichier) */
.view.entering { animation: viewIn .5s var(--ease) both; }
@keyframes viewIn { from { opacity: .2; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Bandeau de photos qui défile, s'arrête au survol */
.marquee-sec { overflow: hidden; }
.marquee { display: flex; gap: 1rem; width: max-content; padding-block: .4rem 1rem; }
.marquee-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-100% - 1rem)); } }
.marquee li { flex: none; width: clamp(220px, 22vw, 320px); }
.marquee li:nth-child(odd) { margin-top: 1.4rem; }
.marquee figure { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); rotate: var(--tilt, 0deg); transition: rotate .4s var(--ease), transform .4s var(--ease); }
.marquee li:nth-child(3n) figure { --tilt: -1.2deg; } .marquee li:nth-child(3n+1) figure { --tilt: .9deg; }
.marquee figure:hover { rotate: 0deg; transform: scale(1.03); }
.marquee img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface-2); }
.marquee li:nth-child(even) img { aspect-ratio: 1; }
.marquee figcaption { position: absolute; left: .7rem; bottom: .7rem; background: rgba(10,17,41,.74); color: #fff; font-size: .8rem; padding: .25rem .65rem; border-radius: 99px; }

/* Photos qui se dévoilent au défilement */
.unveil { clip-path: inset(0 0 0 0 round var(--r-lg)); }
.unveil.pending { clip-path: inset(14% 10% 14% 10% round var(--r-lg)); }
.unveil.shown { transition: clip-path 1.1s var(--ease); }
.unveil.pending img { transform: scale(1.12); }
.unveil.shown img { transition: transform 1.4s var(--ease); }

/* Titres qui arrivent mot à mot */
.words .w { display: inline-block; transform: translateY(.45em); opacity: .15; transition: transform .7s var(--ease), opacity .7s var(--ease); transition-delay: calc(var(--k) * 45ms); }
.words.shown .w { transform: none; opacity: 1; }

/* Apparition générale des blocs (cartes, lignes de liste) */
.fx { opacity: .2; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.fx.shown { opacity: 1; transform: none; }

/* Profondeur légère des photos d'en-tête */
.page-head .head-photo { will-change: transform; transition: rotate .4s var(--ease); }
.page-head .head-photo:hover { rotate: -1.2deg; }

/* Polaroïd qui respire, logo qui tourne doucement au survol */
@keyframes float { 50% { translate: 0 -6px; } }
.polaroid { animation: polIn 1s var(--ease) both .45s, float 6s ease-in-out 1.6s infinite; }
.brand img { transition: rotate .6s var(--ease); }
.brand:hover img { rotate: -12deg; }

/* Boutons : flèche qui avance, léger relief */
.btn .ico, .text-link .ico { transition: transform .25s var(--ease); }
.btn:hover .ico, .text-link:hover .ico { transform: translateX(3px); }
.btn--cta { box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--cta) 70%, transparent); }
.btn--cta:hover { box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--cta) 80%, transparent); transform: translateY(-2px); }

/* Questions fréquentes : ouverture fluide */
.faq details > div { overflow: hidden; }
.faq details.anim > div { transition: height .35s var(--ease), opacity .35s; }
.faq summary { transition: color .2s; }
.faq summary:hover { color: var(--sky); }

/* Barre d'onglets : petit rebond */
@keyframes tap { 40% { transform: scale(.86); } 100% { transform: none; } }
.tabbar a:active .ico { animation: tap .3s var(--ease); }

/* Cartes d'élus : soulignement au survol */
.rep { position: relative; }
.rep::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: -1px; height: 2px; background: var(--cta); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.rep:hover::after { transform: scaleX(1); }

/* Bouton haut de page avec anneau de progression */
.to-top { position: fixed; z-index: 49; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(86px + env(safe-area-inset-bottom, 0px)); width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; transition: transform .3s var(--ease), opacity .3s; }
.to-top > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.to-top .ring-bg { fill: none; stroke: var(--line); stroke-width: 3; }
.to-top .ring { fill: none; stroke: var(--cta); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 125.7; stroke-dashoffset: 125.7; }
.to-top:hover { transform: translateY(-3px); }
@media (max-width: 760px) { .to-top { bottom: calc(146px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; } }

@media (prefers-reduced-motion: reduce) {
  .marquee { width: auto; overflow-x: auto; } .marquee-track[aria-hidden] { display: none; }
  .fx, .words .w { opacity: 1 !important; transform: none !important; }
  .unveil.pending { clip-path: none; } .unveil.pending img { transform: none; }
}
[data-off-animations] .marquee { width: auto; overflow-x: auto; }
[data-off-animations] .marquee-track[aria-hidden] { display: none; }
[data-off-animations] .fx, [data-off-animations] .words .w { opacity: 1 !important; transform: none !important; }
[data-off-animations] .unveil.pending { clip-path: none; }
[data-off-animations] .unveil.pending img { transform: none; }

/* ---------- Espace parents ---------- */
.header-espace { display: inline-flex; }
.bar .btn, .brand b { white-space: nowrap; }
.brand { flex: none; }
@media (max-width: 1260px) { .brand small { display: none; } }
@media (max-width: 1120px) { .header-espace span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .header-espace { padding-inline: .75rem; } }
@media (max-width: 760px) { .bar .header-espace { display: none; } }
.p-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
@media (max-width: 800px) { .p-grid { grid-template-columns: minmax(0, 1fr); } }
.p-card { display: grid; gap: .8rem; align-content: start; }
.p-card h2 { font-size: var(--s-1); display: flex; align-items: center; gap: .5rem; }
.p-card h2 .ico { color: var(--sky); }
.p-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.p-list li { display: flex; justify-content: space-between; gap: .6rem; align-items: center; flex-wrap: wrap; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); font-size: .95rem; }
.p-empty { color: var(--ink-2); font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chips span { background: var(--sky-soft); color: var(--ink); font: 500 .8rem var(--f-display); padding: .15rem .6rem; border-radius: 99px; }
.notice { font-size: .85rem; color: var(--ink-2); display: flex; gap: .5rem; align-items: flex-start; }
.notice .ico { color: var(--sky); margin-top: .1rem; }
[data-p-closed], [data-pb-closed] { display: none; }
[data-off-espace] [data-p-closed], [data-off-signalements] [data-pb-closed] { display: block; }

/* Interrupteurs (options du site) */
.switch { display: flex; align-items: center; gap: .75rem; padding: .7rem .2rem; border-top: 1px solid var(--line); cursor: pointer; font-size: .95rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { flex: none; width: 46px; height: 26px; border-radius: 99px; background: var(--line-2); position: relative; transition: background-color .2s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s var(--ease); }
.switch input:checked + .switch-ui { background: var(--green); }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--sky); outline-offset: 2px; }

/* Tableaux du back-office */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.tbl { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 720px; }
.tbl th, .tbl td { text-align: left; padding: .55rem .65rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font: 600 .78rem var(--f-display); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); background: var(--surface-2); position: sticky; top: 0; }
.tbl td { font-variant-numeric: tabular-nums; }
.tbl tr.ko td { color: var(--red); }
.role-tag { font: 600 .74rem var(--f-display); padding: .1rem .5rem; border-radius: 99px; background: var(--surface-2); white-space: nowrap; }
.role-tag.r-parent { background: var(--sky-soft); color: var(--sky); }
.role-tag.r-admin { background: var(--cta-soft); color: var(--cta-hover); }
.role-tag.r-supervision { background: var(--ink); color: var(--surface); }
.bars { display: grid; gap: .5rem; }
.bar-row { display: grid; grid-template-columns: 7rem minmax(0, 1fr) 2.5rem; gap: .6rem; align-items: center; font-size: .9rem; }
.bar-row .track-b { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar-row .fill { height: 100%; background: var(--sky); border-radius: 99px; transition: width .9s var(--ease); }
.sup-note { background: var(--ink); color: var(--surface); padding: .8rem 1rem; border-radius: var(--r); font-size: .92rem; }

/* ---------- Sondage du mois ---------- */
.poll { display: grid; gap: .6rem; }
.poll-q { font: 600 var(--s-1)/1.3 var(--f-display); }
.poll-opt { display: block; width: 100%; text-align: left; position: relative; overflow: hidden; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: var(--r); padding: .75rem .9rem; min-height: 50px; font: 500 .97rem var(--f-display); cursor: pointer; }
.poll-opt:hover { border-color: var(--sky); }
.poll-res { position: relative; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; padding: .7rem .9rem; display: flex; justify-content: space-between; gap: .6rem; font-size: .95rem; background: var(--surface); }
.poll-res .poll-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--sky-soft); transition: width 1s var(--ease); }
.poll-res.mine .poll-fill { background: color-mix(in srgb, var(--cta) 22%, var(--surface)); }
.poll-res span { position: relative; }
.poll-res b { position: relative; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Compte à rebours du prochain rendez-vous */
.countdown { display: grid; gap: .7rem; align-content: start; }
.cd-num { display: flex; align-items: baseline; gap: .5rem; }
.cd-num b { font: 700 clamp(3rem, 2rem + 4vw, 4.6rem)/1 var(--f-display); color: var(--cta); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.cd-num span { font: 600 1.1rem var(--f-display); color: var(--ink-2); }

/* Lettre d'information (pied de page) */
.news { display: flex; gap: .5rem; margin-top: 1rem; max-width: 420px; flex-wrap: wrap; }
.news input { flex: 1 1 200px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: var(--on-navy); }
.news input::placeholder { color: var(--on-navy-2); }
.news-status { font-size: .85rem; margin-top: .4rem; min-height: 1.2em; }

/* ---------- Animations ---------- */
.scroll-bar { position: fixed; z-index: 61; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 3px; background: var(--cta); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
/* Les animations d'arrivée partent d'un contenu déjà visible (aperçus de lien, captures) */
@keyframes heroIn { from { transform: translateY(18px); } to { transform: none; } }
@keyframes heroPhoto { from { transform: scale(.965); } to { transform: none; } }
@keyframes underline { to { background-size: 100% .22em; } }
.hero-grid > div:first-child > * { animation: heroIn .8s var(--ease) both; }
.hero-grid > div:first-child > :nth-child(2) { animation-delay: .08s; }
.hero-grid > div:first-child > :nth-child(3) { animation-delay: .16s; }
.hero-grid > div:first-child > :nth-child(4) { animation-delay: .24s; }
.hero-grid > div:first-child > :nth-child(5) { animation-delay: .32s; }
.hero-visual .photo { animation: heroPhoto 1s var(--ease) both .12s; }
.hero-visual .mot { animation: heroIn .8s var(--ease) both .5s; }
.hero h1 em { background: linear-gradient(var(--cta), var(--cta)) no-repeat 0 92% / 0 .22em; animation: underline .9s var(--ease) .9s forwards; }
.quick a { animation: heroIn .7s var(--ease) both; }
.quick a:nth-child(1) { animation-delay: .35s; } .quick a:nth-child(2) { animation-delay: .42s; } .quick a:nth-child(3) { animation-delay: .49s; } .quick a:nth-child(4) { animation-delay: .56s; }
.reveal.in { animation-delay: calc(var(--i, 0) * 70ms); }
.event, .service, .member, .quote { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.event:hover, .card.service:hover, .card.member:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.event:hover .event-photo img { transform: scale(1.04); }
.event-photo { overflow: hidden; }
.event-photo img { transition: transform .6s var(--ease), filter .3s; }
.framed img, .strip img, .memories img { transition: transform .6s var(--ease); }
.framed:hover img { transform: scale(1.015); }
[data-off-animations] *, [data-off-animations] *::before, [data-off-animations] *::after { animation: none !important; transition: none !important; }
[data-off-animations] .hero h1 em { background-size: 100% .22em; }
@media (prefers-reduced-motion: reduce) { .hero h1 em { background-size: 100% .22em; } .scroll-bar { display: none; } }

/* Options désactivées depuis la supervision */
[data-off-chat] .chat-fab, [data-off-chat] .chat { display: none !important; }
[data-off-sondage] [data-poll-wrap] { display: none !important; }
[data-off-inscriptions] [data-going] { display: none !important; }
[data-off-soutiens] [data-support] { display: none !important; }
[data-off-whatsapp] .btn--wa, [data-off-whatsapp] .wa-card { display: none !important; }
[data-off-newsletter] [data-news-wrap] { display: none !important; }
[data-off-espace] .header-espace, [data-off-espace] [data-p-guest], [data-off-espace] [data-p-dash], [data-off-espace] .tabbar a[data-espace-tab], [data-off-espace] .foot a[data-espace-foot] { display: none !important; }
[data-off-signalements] [data-issue-form] { display: none !important; }

/* ---------- Back-office ---------- */
.admin-wrap { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem); display: grid; gap: var(--gap); }
.admin-bar { display: flex; justify-content: space-between; align-items: center; gap: .8rem 1rem; flex-wrap: wrap; background: var(--navy); color: var(--on-navy); padding: .9rem 1.1rem; border-radius: var(--r); }
.admin-bar b { font-family: var(--f-display); font-weight: 600; }
.admin-bar .btn { color: var(--on-navy); border-color: rgba(241,244,251,.45); background: transparent; }
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; }
.tabs button { background: var(--surface); border: 1px solid var(--line); color: var(--ink); padding: .5rem .85rem; border-radius: var(--r); font: 500 .92rem var(--f-display); cursor: pointer; min-height: 42px; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.badge { display: inline-block; min-width: 1.35rem; padding: 0 .35rem; margin-left: .35rem; border-radius: 99px; background: var(--cta); color: var(--on-cta); font-size: .76rem; text-align: center; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; background: var(--bg); }
.kpi b { display: block; font: 700 2rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.kpi span { font-size: .9rem; color: var(--ink-2); }
.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.a-item { border: 1px solid var(--line); background: var(--bg); padding: 1rem; border-radius: var(--r); display: grid; gap: .7rem; }
.a-item.unread { border-left: 4px solid var(--cta); }
.a-item .row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.a-item pre { white-space: pre-wrap; font: inherit; margin: 0; color: var(--ink-2); }
.demo-box { background: var(--amber-soft); color: var(--amber); padding: .85rem 1rem; border-radius: var(--r); font-size: .95rem; }
.demo-box code { font: 700 1rem var(--f-display); }
.log { font-size: .85rem; max-height: 230px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); padding: .7rem; background: var(--bg); font-variant-numeric: tabular-nums; }
.login-card { max-width: 560px; margin: 0 auto; width: 100%; }

/* ---------- Animations au défilement (contenu visible au repos) ---------- */
@keyframes rise { from { opacity: .35; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal.in { animation: rise .65s var(--ease) both calc(var(--i, 0) * 70ms); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .card, .carnet, .issue { border: 1px solid CanvasText; } }

/* =====================================================================
   AMÉLIORATIONS v2 : ancres, en-tête, agenda, partage, mobile, impression
   ===================================================================== */
/* Les ancres (#trouver, #equipe, #suivi…) ne passent plus sous l'en-tête collant */
[id] { scroll-margin-top: 92px; }
p, li, blockquote, figcaption { text-wrap: pretty; }
.site-header { transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(10,17,41,.4); }

/* Liens d'outils : ajouter à l'agenda, partager */
.tool-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0; background: none; border: 0; font: 600 .88rem var(--f-display); color: var(--sky); text-decoration: none; cursor: pointer; }
.tool-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.tool-link .ico { width: 1.15em; height: 1.15em; }
.event-tools { display: flex; flex-wrap: wrap; gap: 0 1.1rem; margin-top: -.1rem; }
.issue-actions { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .3rem 1rem; }
[data-off-whatsapp] [data-wa-share] { display: none !important; }

/* Bandeau photo : bouton pause (le défilement ne s'arrêtait qu'au survol) */
.marquee-tools { display: inline-flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .4rem .9rem; font-size: .9rem; }
.marquee-toggle { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .3rem .85rem .3rem .65rem; border: 1.5px solid var(--line-2); border-radius: 99px; background: var(--surface); color: var(--ink); font: 600 .85rem var(--f-display); cursor: pointer; }
.marquee-toggle:hover { border-color: var(--ink); }
.marquee.paused .marquee-track { animation-play-state: paused; }

/* Téléphone : moins de boutons flottants, liste des élus plus compacte */
@media (max-width: 760px) {
  .to-top { display: none !important; }
  .reps { gap: .4rem; }
  .rep { padding: .5rem .7rem; }
  .rep .avatar { width: 36px; height: 36px; }
  .who-sec { padding-block: clamp(2.2rem, 1.6rem + 3vw, 3rem); }
}

/* Impression : le contenu seul, lisible sur papier */
@media print {
  .topbar, .site-header, .tabbar, .chat-fab, .chat, .cookies, .toast, .to-top, .scroll-bar, .marquee-sec, .news, .skip, .event-tools, .support { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .fx, .words .w { opacity: 1 !important; transform: none !important; }
  .unveil.pending { clip-path: none !important; }
  .sec, .page-head { padding-block: 1.2rem; }
  .signal, .band-photo, .site-footer { background: none !important; color: #000 !important; }
  .signal *, .band-photo *, .site-footer * { color: #000 !important; text-shadow: none !important; }
  .faq details > div { display: grid !important; height: auto !important; }
  .faq details:not([open]) > div { content-visibility: visible; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; word-break: break-all; }
  .card, .issue, .event, li { break-inside: avoid; }
}

/* Sondage désactivé : son lien de menu disparaît aussi. « En bref » : les colonnes s'adaptent au nombre d'entrées. */
[data-off-sondage] a[href$="#sondage"] { display: none !important; }
@media (min-width: 761px) { .une-bref { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
/* États vides (agenda, événements, témoignages) : le message occupe toute la largeur */
.agenda-list li.muted { display: block; }
.events > li.muted, [data-testimonials] > p.muted { grid-column: 1 / -1; }

/* =====================================================================
   AMÉLIORATIONS v3 : contrastes, focus, petits écrans, page « Comprendre le lycée »
   ===================================================================== */
/* Bordures des champs et des cases à 3:1 au moins (WCAG 1.4.11) */
:root { --line-3: #7f89a0; }
:root[data-theme="dark"] { --line-3: #6f7cab; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --line-3: #6f7cab; } }
input, select, textarea, .choices label, .level, .poll-opt, .seg, .seg button + button, .chat-chips button { border-color: var(--line-3); }
input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
input:focus, select:focus, textarea:focus { border-color: var(--sky); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }
.choices label:has(input:checked) { border-color: var(--sky); }
.choices .u-urgente:has(input:checked) { border-color: var(--red); }
.level[aria-pressed="true"] { border-color: var(--ink); }
.news input { border-color: rgba(255,255,255,.45); }
::placeholder { color: var(--ink-2); opacity: 1; }
.news input::placeholder { color: var(--on-navy-2); }
/* Focus visible aussi sur les fonds bleu marine */
.topbar, .site-footer, .signal, .band-photo, .chat-head, .admin-bar { --focus: var(--navy-accent); }
:focus-visible { outline-color: var(--focus, var(--sky)); }
/* Un élément qui reçoit le focus ne reste pas caché sous l'en-tête ou la barre d'onglets */
html { scroll-padding-top: 92px; }
@media (max-width: 760px) { html { scroll-padding-bottom: 84px; } }
@media (max-height: 480px) { .site-header { position: static; } .tabbar { position: static; } body { padding-bottom: 0; } }
@media (max-width: 360px) { .top-levels::before { display: none; } .top-levels a { min-width: 0; padding-inline: .42rem; } .bar { gap: .45rem; } .brand b { font-size: 1.02rem; } }
.req-note { margin: -.2rem 0 0; }
.news-consent { font-size: .8rem; margin-top: .2rem; max-width: 420px; }
.news-consent a { color: var(--on-navy); }

/* Sommaire de page */
.sec-nav { background: var(--surface); border-bottom: 1px solid var(--line); }
.sec-nav .wrap { display: flex; gap: .4rem; overflow-x: auto; padding-block: .6rem; scrollbar-width: none; }
.sec-nav .wrap::-webkit-scrollbar { display: none; }
.sec-nav a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .95rem; border: 1.5px solid var(--line-2); border-radius: 99px; color: var(--ink); text-decoration: none; font: 500 .92rem var(--f-display); white-space: nowrap; }
.sec-nav a:hover { border-color: var(--ink); }
/* Fiches des instances */
.inst-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 800px) { .inst-grid { grid-template-columns: minmax(0, 1fr); } }
.inst { display: grid; gap: .7rem; align-content: start; }
.inst h3 { font: 600 var(--s-2)/1.15 var(--f-head); letter-spacing: -.01em; }
.inst .facts li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .2rem 1rem; }
.inst .facts li span:last-child, [id="elections"] .facts li span:last-child { text-align: left; }
[id="elections"] .facts li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .2rem 1rem; }
@media (max-width: 460px) { .inst .facts li, [id="elections"] .facts li { grid-template-columns: minmax(0, 1fr); } }
.inst-note { font-size: .88rem; color: var(--ink-2); padding-left: .8rem; border-left: 2px solid var(--cta); }
.source a { color: inherit; }
/* Guide du parent délégué */
.guide { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 900px) { .guide { grid-template-columns: minmax(0, 1fr); } }
.guide > li { display: grid; gap: .6rem; align-content: start; }
.guide-n { font: 500 2.6rem/1 var(--f-head); color: var(--cta); }
.guide h3 { font: 600 var(--s-2)/1.1 var(--f-head); }
.guide ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .5rem; color: var(--ink-2); font-size: .97rem; }
.guide-rule { display: flex; gap: .9rem; align-items: flex-start; margin-top: var(--gap); }
.guide-rule .ico { color: var(--sky); width: 1.5rem; height: 1.5rem; margin-top: .15rem; }
/* Glossaire */
.glossary { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 1rem + 3vw, 4rem); }
@media (max-width: 760px) { .glossary { grid-template-columns: minmax(0, 1fr); } }
.glossary > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .2rem 1rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.glossary dt { font: 600 1rem var(--f-display); color: var(--sky); }
.glossary dd { margin: 0; color: var(--ink-2); font-size: .97rem; }
@media (max-width: 420px) { .glossary > div { grid-template-columns: minmax(0, 1fr); } }
@media print { .sec-nav { display: none !important; } }

/* =============================================================================
   DONNÉES SUR LE SERVEUR : les mentions et comptes de démonstration disparaissent
   ========================================================================== */
html[data-mode="server"] .demo-box, html[data-mode="down"] .demo-box,
html[data-mode="server"] [data-demo-only], html[data-mode="down"] [data-demo-only] { display: none !important; }
html[data-wait] :is([data-issues], [data-issues-home], [data-issues-count], [data-events], [data-events-home], [data-agenda-home], [data-bref], [data-poll], [data-countdown], [data-hero-issue], [data-testimonials], [data-carousel-slot]) { visibility: hidden; }

/* =============================================================================
   EN-TÊTE : bandeau marine, logo en médaillon
   Le logo (disque blanc) se perdait sur un en-tête blanc. L'en-tête prend la
   couleur marine de l'association : le médaillon s'y détache, et sur grand écran
   il dépasse sous la barre comme un sceau. En défilant, il reprend sa place.
   ========================================================================== */
.site-header { background: var(--navy); color: var(--on-navy); border-bottom: 2px solid color-mix(in srgb, var(--navy-accent) 60%, transparent); --focus: var(--navy-accent); }
.site-header.scrolled { box-shadow: 0 10px 28px -14px rgba(5,10,28,.7); }
.site-header .bar { min-height: 76px; }
.site-header .brand { color: var(--on-navy); gap: .9rem; }
.site-header .brand img { position: relative; z-index: 2; width: 60px; height: 60px; border: 2px solid #fff; background: #fff; box-shadow: 0 0 0 1px rgba(10,17,41,.14), 0 8px 18px -8px rgba(5,10,28,.7); transition: width .28s var(--ease), height .28s var(--ease), margin .28s var(--ease), rotate .6s var(--ease); }
.site-header .brand b { font-size: 1.32rem; color: #fff; }
.site-header .brand small { color: var(--on-navy-2); }
/* boutons de l'en-tête, sur fond marine */
.site-header .btn--line { background: transparent; color: var(--on-navy); border-color: rgba(241,244,251,.42); }
.site-header .btn--line:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.site-header .icon-btn { background: transparent; color: var(--on-navy); border-color: rgba(241,244,251,.3); }
.site-header .icon-btn:hover { background: rgba(255,255,255,.12); }
/* le panneau du menu (téléphone) et les sous-menus restent sur fond clair */
.site-header .sub, .site-header .nav.open { --focus: var(--sky); }
@media (min-width: 1021px) {
  /* médaillon : plus grand que la barre, il la déborde par le bas */
  .site-header .brand img { width: 92px; height: 92px; margin-block: -4px -28px; border-width: 3px; }
  .site-header.scrolled .brand img { width: 58px; height: 58px; margin-block: 0; border-width: 2px; }
  .site-header .nav > ul > li > a, .site-header .nav-top { color: var(--on-navy); }
  .site-header .nav > ul > li > a:hover, .site-header .nav-top:hover, .site-header li.open > .nav-top { color: #fff; background: rgba(255,255,255,.12); }
  .site-header li.current > .nav-top, .site-header .nav > ul > li > a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.14); box-shadow: inset 0 -2px 0 var(--navy-accent); }
  [id] { scroll-margin-top: 100px; } html { scroll-padding-top: 100px; }
}
@media (min-width: 1021px) and (max-width: 1180px) { .site-header .brand img { width: 78px; height: 78px; margin-block: -2px -16px; } .site-header .brand b { font-size: 1.18rem; } }
@media (max-width: 640px) { .site-header .bar { min-height: 70px; } .site-header .brand { gap: .65rem; } .site-header .brand img { width: 56px; height: 56px; } .site-header .brand b { font-size: 1.15rem; } }
@media (max-width: 360px) { .site-header .brand img { width: 48px; height: 48px; } .site-header .brand b { font-size: 1.02rem; } }
@media (prefers-reduced-motion: reduce) { .site-header .brand img { transition: none; } }

/* =============================================================================
   ACCUEIL v2 : chiffres, engagements, témoignages, détails, animations, filigranes
   Tout mouvement est coupé si l'appareil demande moins d'animations ou si
   l'option « Animations décoratives » est désactivée dans la supervision.
   « html[data-mode] » = le script a démarré : sans script, rien n'est masqué.
   ========================================================================== */

/* ---------- Filigranes : dessins au trait liés à la vie du lycée, à peine visibles ----------
   Chaque dessin sert de masque sur un aplat de la couleur du texte : il suit donc
   tout seul le mode clair et le mode sombre. Fichiers : assets/filigranes/*.svg */
.une, .sec-figures, .wm { position: relative; isolation: isolate; }
.une > .wrap, .sec-figures > .wrap, .wm > .wrap { position: relative; z-index: 1; }
.wm { overflow: clip; --wm-o: .065; }
.une::after, .wm::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none; aspect-ratio: 1; background: var(--ink); opacity: var(--wm-o, .065);
  -webkit-mask: var(--wm-img) center / contain no-repeat; mask: var(--wm-img) center / contain no-repeat;
}
.une { --wm-img: url(assets/filigranes/ecole.svg); --wm-o: .06; }
.une::after { width: min(40vw, 540px); right: -5vw; top: 6%; rotate: 7deg; }
.wm--dialogue { --wm-img: url(assets/filigranes/dialogue.svg); }
.wm--dialogue::after { width: min(36vw, 460px); left: -6vw; bottom: -12%; rotate: -10deg; }
.wm--agenda { --wm-img: url(assets/filigranes/agenda.svg); }
.wm--agenda::after { width: min(26vw, 340px); right: -4vw; top: -8%; rotate: 12deg; }
.wm--diplome { --wm-img: url(assets/filigranes/diplome.svg); }
.wm--diplome::after { width: min(36vw, 470px); right: -5vw; bottom: -16%; rotate: 12deg; }
.wm--familles { --wm-img: url(assets/filigranes/familles.svg); }
.wm--familles::after { width: min(30vw, 400px); left: 38%; top: -16%; rotate: -6deg; }
.wm--crayon { --wm-img: url(assets/filigranes/crayon.svg); }
.wm--crayon::after { width: min(28vw, 360px); left: -5vw; top: 8%; rotate: -8deg; }
.wm--livre { --wm-img: url(assets/filigranes/livre.svg); }
.wm--livre::after { width: min(30vw, 400px); right: -5vw; bottom: -14%; rotate: 9deg; }
@media (max-width: 760px) { .wm::after, .une::after { width: 62vw; } .wm { --wm-o: .05; } }
/* haut de page : semis de petits dessins (livre, crayon, diplôme, bulles, boussole, agenda, familles, école), qui s'efface vers le bas */
.une::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--ink); opacity: .05;
  -webkit-mask: url(assets/filigranes/motif.svg) 0 0 / 520px 460px repeat, linear-gradient(180deg, #000 0%, transparent 78%); -webkit-mask-composite: source-in;
  mask: url(assets/filigranes/motif.svg) 0 0 / 520px 460px repeat, linear-gradient(180deg, #000 0%, transparent 78%); mask-composite: intersect; }
/* sections marine : grands anneaux en filigrane */
.signal { position: relative; overflow: clip; isolation: isolate; }
.signal > .wrap { position: relative; z-index: 1; }
.signal::before, .signal::after { content: ""; position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; border: 1px solid rgba(143,196,242,.16); aspect-ratio: 1; }
.signal::before { width: min(60vw, 720px); right: -14vw; top: -30%; box-shadow: 0 0 0 60px rgba(143,196,242,.035), 0 0 0 130px rgba(143,196,242,.025); }
.signal::after { width: min(28vw, 320px); left: -6vw; bottom: -22%; box-shadow: 0 0 0 44px rgba(143,196,242,.03); }
.signal > .wrap::before { content: ""; position: absolute; z-index: -1; pointer-events: none; width: min(30vw, 380px); aspect-ratio: 1; right: 30%; bottom: -34%; rotate: -14deg; background: var(--navy-accent); opacity: .07; -webkit-mask: url(assets/filigranes/porte-voix.svg) center / contain no-repeat; mask: url(assets/filigranes/porte-voix.svg) center / contain no-repeat; }

/* ---------- Tampon « Élus » sur la photo du lycée ---------- */
.une-stamp { position: absolute; z-index: 3; right: -.6rem; bottom: 2.2rem; width: 6.6rem; aspect-ratio: 1; display: grid; place-content: center; text-align: center; border-radius: 50%; color: var(--cta); background: color-mix(in srgb, var(--surface) 86%, transparent); border: 2px solid currentColor; outline: 1px dashed currentColor; outline-offset: -7px; rotate: 11deg; box-shadow: 0 8px 20px -12px rgba(10,17,41,.5); }
.une-stamp b { display: block; font: 700 1.25rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; }
.une-stamp i { display: block; font: 600 .68rem/1.3 var(--f-display); font-style: normal; letter-spacing: .04em; margin-top: .2rem; }
@media (max-width: 760px) { .une-stamp { width: 5.2rem; right: .2rem; bottom: 3rem; } .une-stamp b { font-size: 1rem; } .une-stamp i { font-size: .6rem; } }

/* ---------- Chiffres clés ---------- */
.sec-figures { background: var(--surface); border-bottom: 1px solid var(--line); }
.sec-figures .figures { border: 0; }
.sec-figures .figure { padding-block: 1.7rem 1.6rem; }
.sec-figures .figure b { font-family: var(--f-head); font-weight: 600; color: var(--ink); }
.sec-figures .figure b::after { content: ""; display: block; width: 2.4rem; height: 3px; margin-top: .6rem; border-radius: 2px; background: var(--cta); }
.sec-figures .figure:nth-child(2) b::after { background: var(--sky); }
.sec-figures .figure:nth-child(3) b::after { background: var(--green); }
.sec-figures .figure:nth-child(4) b::after { background: var(--navy); }
@media (max-width: 760px) { .sec-figures .figure:nth-child(3) { padding-left: 0; border-left: 0; } .sec-figures .figure:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- Engagements (4 cartes) ---------- */
.home-services .service { position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.home-services .service ul { display: none; }
.home-services .service p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: .96rem; }
.home-services .service::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.home-services .service:nth-child(2)::before { background: var(--cta); } .home-services .service:nth-child(3)::before { background: var(--green); } .home-services .service:nth-child(4)::before { background: var(--navy-accent); }
.home-services .service:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -24px rgba(10,17,41,.45); border-color: var(--line-2); }
.home-services .service:hover::before { transform: scaleX(1); }
.home-services .service .s-ico { transition: rotate .45s var(--ease), scale .45s var(--ease); }
.home-services .service:hover .s-ico { rotate: -8deg; scale: 1.08; }

/* ---------- Témoignages ---------- */
.home-quotes { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.6rem, 1rem + 4vw, 5rem); align-items: center; }
.hq-intro { display: grid; gap: .8rem; justify-items: start; }
.hq-intro h2 { font-size: var(--s-3); }
.home-quotes .carousel { grid-template-columns: minmax(0, 1fr); gap: .9rem; }
.home-quotes .carousel .card { position: relative; min-height: 250px; padding: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); border-radius: 4px 22px 22px 22px; box-shadow: 0 24px 46px -30px rgba(10,17,41,.5); }
.home-quotes .quote blockquote { font: 500 clamp(1.2rem, 1.05rem + .6vw, 1.5rem)/1.45 var(--f-head); }
.home-quotes .carousel-nav { justify-content: flex-end; }
@media (max-width: 860px) { .home-quotes { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Détails : fil d'actualité, agenda, étapes ---------- */
@media (min-width: 700px) {
  .chron li { position: relative; }
  .chron li::before { content: ""; position: absolute; left: calc(6.2rem + .28rem); top: 1.55rem; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--cta); z-index: 1; }
  .chron li::after { content: ""; position: absolute; left: calc(6.2rem + .28rem + 4.5px); top: 1.55rem; bottom: -1.55rem; width: 2px; background: var(--line); }
  .chron li:last-child::after { display: none; }
  .chron li > :not(time) { padding-left: .5rem; }
}
.agenda-list li { transition: background-color .25s, padding .25s var(--ease); border-radius: 6px; }
.agenda-list .d { background: var(--surface); transition: rotate .3s var(--ease), scale .3s var(--ease), background-color .3s, color .3s; }
.agenda-list li:hover .d { rotate: -5deg; scale: 1.06; }
.agenda-list li:first-child .d { background: var(--ink); color: var(--surface); position: relative; }
.agenda-list li:first-child .d span { color: inherit; opacity: .8; }
.agenda-list li:first-child .d::after { content: ""; position: absolute; top: -5px; right: -5px; width: 11px; height: 11px; border-radius: 50%; background: var(--cta); box-shadow: 0 0 0 0 color-mix(in srgb, var(--cta) 60%, transparent); }
.how li { position: relative; }
.how li:not(:last-child)::after { content: ""; position: absolute; left: .62rem; top: 2.7rem; bottom: -1.05rem; width: 2px; border-radius: 2px; background: linear-gradient(var(--navy-accent), transparent); opacity: .5; }
.une-bref a { position: relative; transition: background-color .25s; }
.une-bref a::after { content: "→"; position: absolute; right: .9rem; top: 1rem; font: 600 1rem var(--f-display); color: var(--cta); opacity: 0; translate: -8px 0; transition: opacity .25s, translate .3s var(--ease); }
.une-bref a:hover::after, .une-bref a:focus-visible::after { opacity: 1; translate: 0 0; }
.btn--cta { position: relative; overflow: hidden; }
.btn--cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%); translate: -120% 0; pointer-events: none; }

/* ---------- Animations ---------- */
@keyframes stampIn { 0% { opacity: 0; scale: 1.9; rotate: -8deg; } 60% { opacity: 1; scale: .94; rotate: 13deg; } 100% { opacity: 1; scale: 1; rotate: 11deg; } }
@keyframes wmDrift { from { translate: 0 0; } to { translate: -14px 18px; } }
@keyframes wmSpin { to { rotate: 360deg; } }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cta) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes quoteIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes popNum { 0% { opacity: 0; scale: .5; } 70% { scale: 1.12; } 100% { opacity: 1; scale: 1; } }
@keyframes growY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes shine { to { translate: 120% 0; } }
@keyframes kenBurns { from { background-size: auto, 108% auto, auto; } to { background-size: auto, 122% auto, auto; } }
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-off-animations]) {
    .une-stamp { animation: stampIn .55s cubic-bezier(.2, 1.4, .4, 1) both 1.25s; }
    .une::after { animation: wmDrift 16s ease-in-out infinite alternate; }
    .wm::after { animation: wmDrift 20s ease-in-out infinite alternate-reverse; }
    .signal::before { animation: wmSpin 90s linear infinite; border-style: dashed; }
    .signal::after { animation: wmSpin 70s linear infinite reverse; border-style: dashed; }
    .agenda-list li:first-child .d::after { animation: pulseDot 2s ease-out infinite; }
    .home-quotes .quote { animation: quoteIn .5s var(--ease) both; }
    .btn--cta:hover::after { animation: shine .7s var(--ease); }
  }
  /* éléments qui se dessinent quand ils arrivent à l'écran */
  html[data-mode]:not([data-off-animations]) {
    .col-title { border-bottom-color: transparent; background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 100% / 0 2px; transition: background-size 1s var(--ease); }
    .col-title.seen { background-size: 100% 2px; }
    .sec-figures .figure b::after { transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
    .sec-figures .figure:nth-child(2) b::after { transition-delay: .12s; } .sec-figures .figure:nth-child(3) b::after { transition-delay: .24s; } .sec-figures .figure:nth-child(4) b::after { transition-delay: .36s; }
    .sec-figures .figures.seen .figure b::after { transform: scaleX(1); }
    .how li::before { opacity: 0; }
    .how.seen li::before { animation: popNum .5s var(--ease) both; }
    .how.seen li:nth-child(2)::before { animation-delay: .18s; } .how.seen li:nth-child(3)::before { animation-delay: .36s; }
    .how li:not(:last-child)::after { transform: scaleY(0); transform-origin: top; }
    .how.seen li:not(:last-child)::after { animation: growY .6s var(--ease) both .3s; }
    .how.seen li:nth-child(2)::after { animation-delay: .5s; }
    .chron li::after { transform: scaleY(0); transform-origin: top; }
    .chron.seen li::after { animation: growY .7s var(--ease) both; }
    .chron.seen li:nth-child(2)::after { animation-delay: .25s; } .chron.seen li:nth-child(3)::after { animation-delay: .5s; }
    .chron li::before { scale: 0; transition: scale .4s var(--ease); }
    .chron.seen li::before { scale: 1; }
    .chron.seen li:nth-child(2)::before { transition-delay: .2s; } .chron.seen li:nth-child(3)::before { transition-delay: .4s; } .chron.seen li:nth-child(n+4)::before { transition-delay: .6s; }
    main > section.wm::after { opacity: 0; transition: opacity 1.4s ease .2s; }
    main > section.wm.seen::after { opacity: var(--wm-o, .065); }
  }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 1000px) { html[data-mode]:not([data-off-animations]) .band-photo { animation: kenBurns 26s ease-in-out infinite alternate; } }
@media print { .une::before, .une::after, .wm::after, .une-stamp { display: none; } }

/* =============================================================================
   ACCUEIL v3 : effets
   Rideau d'arrivée, lampe sur les filigranes, relief des photos, trait à la main
   sous le mot du titre, titres qui se dévoilent, cartes inclinées, bandeau de
   mots géants, lueur dans la section marine. Tout est coupé si l'appareil
   demande moins d'animations ou si l'option « Animations décoratives » est éteinte.
   ========================================================================== */

/* ---------- Rideau d'arrivée (classe « intro » posée par intro.js, une fois par visite) ---------- */
@keyframes curtainUp { to { transform: translateY(-101%); } }
@keyframes introLogo { 0% { opacity: 0; scale: .6; rotate: -14deg; } 45% { opacity: 1; scale: 1.06; rotate: 2deg; } 70%, 100% { opacity: 1; scale: 1; rotate: 0deg; } }
@keyframes introRing { 0% { opacity: .9; scale: .7; } 100% { opacity: 0; scale: 2.3; } }
@keyframes introLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
html.intro body::before { content: ""; position: fixed; inset: 0; height: auto; z-index: 9998; background: radial-gradient(120% 90% at 50% 40%, #24408a 0%, var(--navy) 55%, var(--navy-2) 100%); animation: curtainUp .75s cubic-bezier(.7, 0, .2, 1) 1.45s forwards; }
html.intro body::after { content: ""; position: fixed; z-index: 9999; left: 50%; top: 46%; width: 132px; height: 132px; margin: -66px 0 0 -66px; border-radius: 50%; border: 4px solid #fff; background: #fff url(assets/logo-192.webp) center / cover no-repeat; box-shadow: 0 0 0 0 rgba(255,255,255,.5), 0 30px 60px -20px rgba(0,0,0,.6); animation: introLogo 1s var(--ease) both, curtainUp .75s cubic-bezier(.7, 0, .2, 1) 1.45s forwards; }
html.intro { overflow: hidden; }
/* les entrées du haut de page attendent la levée du rideau */
html.intro .une h1, html.intro .une-lead, html.intro .une .actions, html.intro .une-sign, html.intro .une-bref a { animation-delay: 1.75s; }
html.intro .une-lead { animation-delay: 1.85s; } html.intro .une .actions { animation-delay: 1.93s; } html.intro .une-sign { animation-delay: 2.01s; }
html.intro .collage .lycee { animation-delay: 1.7s; }
html.intro .polaroid { animation-delay: 2.1s, 3.3s; }
html.intro .une-stamp { animation-delay: 2.9s !important; }
html.intro .une-stamp::after { animation-delay: 3.3s !important; }
@media (prefers-reduced-motion: reduce) { html.intro body::before, html.intro body::after { display: none; } html.intro { overflow: visible; } }

/* ---------- Lampe : les filigranes s'éclairent autour du pointeur ---------- */
.une-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .5s; background: var(--cta);
  -webkit-mask: url(assets/filigranes/motif.svg) 0 0 / 520px 460px repeat, radial-gradient(circle 250px at var(--mx, 50%) var(--my, 40%), #000 0%, rgba(0,0,0,.5) 45%, transparent 100%); -webkit-mask-composite: source-in;
  mask: url(assets/filigranes/motif.svg) 0 0 / 520px 460px repeat, radial-gradient(circle 250px at var(--mx, 50%) var(--my, 40%), #000 0%, rgba(0,0,0,.5) 45%, transparent 100%); mask-composite: intersect; }
.une-glow.on { opacity: .55; }
.une-glow::after { content: ""; position: absolute; left: var(--mx, 50%); top: var(--my, 40%); width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--sky) 16%, transparent), transparent 62%); }

/* ---------- Relief du collage (photo du lycée, photo d'équipe, tampon) ---------- */
.collage { --tx: 0; --ty: 0; transform: perspective(1100px) rotateY(calc(var(--tx) * 3.5deg)) rotateX(calc(var(--ty) * -3deg)); transition: transform .5s var(--ease); transform-style: preserve-3d; }
.collage .polaroid { translate: calc(var(--tx) * 16px) calc(var(--ty) * 11px); }
.collage .une-stamp { translate: calc(var(--tx) * 30px) calc(var(--ty) * 20px); transition: translate .5s var(--ease); }
.collage .lycee-cap { translate: calc(var(--tx) * -8px) calc(var(--ty) * -5px); transition: translate .5s var(--ease); }
.une .actions .btn, .band-photo .btn { transition: translate .25s var(--ease), background-color .2s, box-shadow .25s, border-color .2s, transform .2s; }

/* ---------- Tampon : onde au moment de l'impact ---------- */
@keyframes stampRipple { 0% { opacity: .8; scale: 1; } 100% { opacity: 0; scale: 2.1; } }
.une-stamp::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; pointer-events: none; }

/* ---------- Trait à la main sous le mot du titre ---------- */
@keyframes drawLine { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.une h1 .rot span { position: relative; }
.une h1 .rot span::after { content: ""; position: absolute; left: 0; right: .12em; bottom: .02em; height: .16em; background: var(--cta); opacity: .85; -webkit-mask: url(assets/filigranes/trait.svg) center / 100% 100% no-repeat; mask: url(assets/filigranes/trait.svg) center / 100% 100% no-repeat; clip-path: inset(0 100% 0 0); }
.une h1 .rot span.on::after { clip-path: inset(0 0 0 0); }

/* ---------- Bandeau de mots géants ---------- */
.bigwords { --skew: 0deg; --shift: 0px; overflow: clip; padding-block: clamp(1.4rem, 1rem + 2vw, 2.8rem); background: var(--surface); border-block: 1px solid var(--line); display: grid; gap: .2rem; }
.bw-track { display: flex; align-items: center; gap: clamp(1rem, .6rem + 1.6vw, 2.4rem); width: max-content; white-space: nowrap; font: 600 clamp(3.2rem, 1.8rem + 7vw, 8.4rem)/1 var(--f-head); letter-spacing: -.03em; transform: translateX(calc(var(--shift) * -1)); will-change: transform; }
.bw-row { transform: skewX(var(--skew)); transition: transform .55s cubic-bezier(.2, .8, .2, 1); }
.bw-row--rev { transform: skewX(calc(var(--skew) * -1)); }
.bw-track--rev { transform: translateX(calc(var(--shift) - 25%)); font-style: italic; font-weight: 500; }
.bw-track span { color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--ink) 55%, transparent); }
.bw-track span.fill { color: var(--cta); -webkit-text-stroke: 0; }
.bw-track--rev span.fill { color: var(--sky); }
.bw-track i { font-style: normal; color: var(--line-2); font-size: .5em; }
@media (max-width: 640px) { .bw-track span { -webkit-text-stroke-width: 1px; } }

/* ---------- Cartes des engagements : inclinaison et reflet ---------- */
.home-services { perspective: 1100px; }
.home-services .service { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 0%; transform-style: preserve-3d; }
.home-services .service:hover { transform: translateY(-8px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .12s linear, box-shadow .35s var(--ease), border-color .35s; }
.home-services .service::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--gx) var(--gy), color-mix(in srgb, var(--sky) 20%, transparent), transparent 65%); }
.home-services .service:hover::after { opacity: 1; }

/* ---------- Section marine : lueur qui respire ---------- */
@keyframes aurora { 0% { translate: -6% 4%; scale: 1; } 50% { translate: 8% -6%; scale: 1.18; } 100% { translate: -4% 8%; scale: .96; } }
.signal > .wrap::after { content: ""; position: absolute; z-index: -1; pointer-events: none; left: 18%; top: -30%; width: min(60vw, 720px); aspect-ratio: 1.4; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,150,80,.3), transparent 70%), radial-gradient(closest-side at 70% 60%, rgba(100,175,255,.3), transparent 70%); filter: blur(46px); opacity: .7; }

/* ---------- Filigranes : léger décalage au défilement ---------- */
.wm::after, .une::after { transform: translateY(calc(var(--p, 0) * -70px)); }

@media (prefers-reduced-motion: no-preference) {
  :root:not([data-off-animations]) {
    .une-stamp::after { animation: stampRipple .8s ease-out 1.65s both; }
    .une h1 .rot span.on::after { animation: drawLine .7s var(--ease) .35s both; }
    .bw-track { animation: bwSlide 46s linear infinite; }
    .bw-track--rev { animation: bwSlideRev 54s linear infinite; }
    .signal > .wrap::after { animation: aurora 16s ease-in-out infinite alternate; }
  }
  /* titres des sections : ils montent en se mettant au point */
  html[data-mode]:not([data-off-animations]) main section:not(.une) h2:not(.sr) { opacity: 0; transform: translateY(.5em); filter: blur(7px); transition: opacity .8s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
  html[data-mode]:not([data-off-animations]) main section:not(.une) h2.seen { opacity: 1; transform: none; filter: none; }
}
/* quatre copies des mots : un quart de la piste = une période, la boucle est donc invisible */
@keyframes bwSlide { from { translate: 0 0; } to { translate: -25% 0; } }
@keyframes bwSlideRev { from { translate: -25% 0; } to { translate: 0 0; } }
@media print { .bigwords, .une-glow { display: none; } }

/* =============================================================================
   NOTRE ÉTABLISSEMENT : panorama de l'entrée du lycée, en clôture de l'accueil
   ========================================================================== */
.lycee-band { position: relative; overflow: clip; isolation: isolate; height: clamp(300px, 20rem + 16vw, 560px); background: var(--navy); display: grid; align-items: end; }
.lb-photo { position: absolute; inset: -8% 0; z-index: -2; width: 100%; height: 116%; object-fit: cover; object-position: 50% 62%; }
.lycee-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,17,41,0) 35%, rgba(10,17,41,.62) 100%); }
.lb-in { padding-block: clamp(1rem, .6rem + 2vw, 2.2rem); }
.lb-card { display: inline-flex; align-items: center; gap: 1.1rem; max-width: 100%; background: color-mix(in srgb, var(--surface) 94%, transparent); color: var(--ink); border-radius: 4px 18px 18px 18px; padding: .9rem 1.3rem .95rem .9rem; box-shadow: 0 24px 50px -22px rgba(5,10,28,.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lb-card img { width: clamp(108px, 6rem + 5vw, 168px); height: auto; flex: none; background: #fff; border-radius: 8px; padding: .3rem; }
.lb-card h2 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.6rem); }
.lb-card p { font-size: .95rem; color: var(--ink-2); margin-top: .15rem; }
.lb-card small { display: block; font-size: .8rem; color: var(--ink-2); margin-top: .4rem; padding-top: .4rem; border-top: 1px dashed var(--line-2); }
@media (max-width: 560px) { .lycee-band { height: auto; padding-top: 52vw; } .lb-photo { object-position: 60% 50%; } .lb-card { align-items: flex-start; flex-direction: column; gap: .6rem; } .lb-card img { width: 120px; } }
@keyframes lbPan { from { transform: translateY(-5%) scale(1.06); } to { transform: translateY(5%) scale(1); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html:not([data-off-animations]) .lb-photo { animation: lbPan linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
/* le titre de ce bandeau reste toujours lisible (pas d'effet de mise au point) */
html[data-mode] main section.lycee-band h2 { opacity: 1 !important; transform: none !important; filter: none !important; }

/* =============================================================================
   AUTRES PAGES : filigranes, comptes rendus, adhésion, mot de passe oublié
   ========================================================================== */
.wm--ecole { --wm-img: url(assets/filigranes/ecole.svg); }
.wm--ecole::after { width: min(32vw, 420px); right: -5vw; top: -10%; rotate: 8deg; }
.wm--boussole { --wm-img: url(assets/filigranes/boussole.svg); }
.wm--boussole::after { width: min(28vw, 360px); left: -5vw; bottom: -14%; rotate: -12deg; }
.wm--porte-voix { --wm-img: url(assets/filigranes/porte-voix.svg); }
.wm--porte-voix::after { width: min(30vw, 400px); right: -4vw; top: 4%; rotate: 10deg; }
.sec--navy.wm::after { background: var(--on-navy); }
/* en-tête des pages intérieures : le même semis de petits dessins que sur l'accueil, côté droit */
.page-head > .wrap::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--ink); opacity: .055;
  -webkit-mask: url(assets/filigranes/motif.svg) 0 0 / 460px 407px repeat, linear-gradient(90deg, transparent 25%, #000 100%); -webkit-mask-composite: source-in;
  mask: url(assets/filigranes/motif.svg) 0 0 / 460px 407px repeat, linear-gradient(90deg, transparent 25%, #000 100%); mask-composite: intersect; }
/* cartes et listes : léger soulèvement au survol, partout */
.grid-3 > .card, .grid-2 > .card, .event, .issue, .member, .inst, .report { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
@media (hover: hover) { .grid-3 > .card:hover, .event:hover, .issue:hover, .member:hover, .inst:hover, .report:hover { transform: translateY(-5px); box-shadow: 0 20px 38px -24px rgba(10,17,41,.45); border-color: var(--line-2); } }

/* ---------- Comptes rendus ---------- */
.report-wrap { max-width: 860px; }
.report-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 1.2rem; }
.report { display: grid; gap: .7rem; border-radius: 4px 20px 20px 20px; border-left: 4px solid var(--sky); }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; font-size: .9rem; color: var(--ink-2); }
.report-inst { font: 600 .74rem var(--f-display); text-transform: uppercase; letter-spacing: .08em; color: var(--sky); background: var(--sky-soft); padding: .25rem .65rem; border-radius: 99px; }
.report h3 { font: 600 clamp(1.3rem, 1.1rem + .8vw, 1.75rem)/1.2 var(--f-head); }
.report p { color: var(--ink-2); }
.report-points { list-style: none; margin: .3rem 0 0; padding: .9rem 0 0; border-top: 1px dashed var(--line-2); display: grid; gap: .45rem; }
.report-points li { display: flex; gap: .55rem; }
.report-points .ico { color: var(--green); margin-top: .25rem; width: 1.05em; height: 1.05em; }
.report-empty { display: grid; gap: .5rem; text-align: center; padding-block: 2.4rem; border-style: dashed; }

/* ---------- Adhésion ---------- */
.choices--col { grid-template-columns: minmax(0, 1fr); }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field > legend { padding: 0; margin-bottom: .45rem; }
.adh-side { display: grid; gap: 1rem; align-content: start; }
.how--light li::before { color: var(--sky); }
.how--light b { color: var(--ink); }
.how--light span { color: var(--ink-2); }
.how--light li:not(:last-child)::after { background: linear-gradient(var(--sky), transparent); }

/* ---------- Mot de passe oublié ---------- */
.forgot { margin-top: 1.1rem; padding: 1.1rem 1.2rem; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--surface-2); display: grid; gap: .8rem; }
.forgot[hidden] { display: none; }

/* =============================================================================
   LANGUES : sélecteur FR / EN / ع, attente de la traduction, arabe (droite à gauche)
   ========================================================================== */
html[data-i18n-wait] body { visibility: hidden; }
.lang { display: inline-flex; gap: .15rem; padding: .15rem; border: 1px solid rgba(241,244,251,.22); border-radius: 99px; }
.lang button { min-width: 2.2rem; min-height: 28px; padding: .15rem .55rem; border: 0; border-radius: 99px; background: none; color: var(--on-navy-2); font: 600 .78rem var(--f-display); cursor: pointer; }
.lang button:hover { color: #fff; background: rgba(255,255,255,.12); }
.lang button[aria-pressed="true"] { background: var(--on-navy); color: var(--navy-2); }
.lang button[lang="ar"] { font-size: .95rem; line-height: 1; }
@media (max-width: 900px) { .topbar .wrap { justify-content: space-between; } }
@media (max-width: 420px) { .lang button { min-width: 1.9rem; padding-inline: .4rem; } .top-levels a { padding-inline: .34rem; min-width: 0; } }
/* l'assistant ne répond qu'en français : il est retiré dans les autres langues */
html:not([lang="fr"]) .chat-fab, html:not([lang="fr"]) .chat { display: none !important; }

/* ---------- Arabe ---------- */
html[lang="ar"] { --f-body: "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", Tahoma, Arial, sans-serif; --f-display: "Noto Kufi Arabic", "Geeza Pro", "Segoe UI", Tahoma, Arial, sans-serif; --f-head: "Noto Naskh Arabic", "Geeza Pro", "Times New Roman", serif; --f-hand: "Noto Naskh Arabic", "Geeza Pro", Tahoma, sans-serif; }
html[lang="ar"] body { font-size: 1.04em; line-height: 1.75; }
html[lang="ar"] *, html[lang="ar"] *::before, html[lang="ar"] *::after { letter-spacing: 0 !important; }
html[lang="ar"] h1, html[lang="ar"] h2 { line-height: 1.35; font-weight: 700; }
html[lang="ar"] .une h1 { line-height: 1.25; font-size: clamp(2.2rem, 1.2rem + 4.2vw, 4.4rem); }
html[lang="ar"] em, html[lang="ar"] i, html[lang="ar"] .rot, html[lang="ar"] .bw-track--rev { font-style: normal !important; }
html[lang="ar"] .eyebrow, html[lang="ar"] .une-kicker, html[lang="ar"] .nav-top { text-transform: none; }
html[lang="ar"] .hand { font-size: 1.15em; }
/* éléments placés à gauche/droite à la main : on les retourne */
[dir="rtl"] .brand { margin-right: 0; margin-left: auto; }
[dir="rtl"] .sub { left: auto; right: -.5rem; }
[dir="rtl"] svg:has(use[href="#i-arrow"]), [dir="rtl"] svg:has(use[href="#i-left"]) { scale: -1 1; }
[dir="rtl"] .nav-top::after { translate: 0 -2px; }
[dir="rtl"] .une-bref a { padding: 1.05rem 0 1.2rem 1.3rem; }
[dir="rtl"] .une-bref a + a { padding-right: 1.3rem; border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .une-bref a::after { right: auto; left: .9rem; content: "←"; }
[dir="rtl"] .figure { padding: 1.4rem 0 1.4rem 1rem; }
[dir="rtl"] .figure + .figure { padding-left: 1rem; padding-right: 1.2rem; border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .sec-figures .figure b::after { transform-origin: right; }
[dir="rtl"] .collage { padding: 0 1.8rem 3.6rem 0; }
[dir="rtl"] .polaroid { left: auto; right: 0; }
[dir="rtl"] .une-stamp { right: auto; left: -.6rem; }
[dir="rtl"] .collage .lycee-cap { right: auto; left: .7rem; }
[dir="rtl"] .chron li::before { left: auto; right: calc(6.2rem + .28rem); }
[dir="rtl"] .chron li::after { left: auto; right: calc(6.2rem + .28rem + 4.5px); }
[dir="rtl"] .chron li > :not(time) { padding-left: 0; padding-right: .5rem; }
[dir="rtl"] .chron h3 a { background-position: 100% 100%; }
[dir="rtl"] .how li:not(:last-child)::after { left: auto; right: .62rem; }
[dir="rtl"] .report { border-left: 0; border-right: 4px solid var(--sky); border-radius: 20px 4px 20px 20px; }
[dir="rtl"] .lb-card { border-radius: 18px 4px 18px 18px; padding: .9rem .9rem .95rem 1.3rem; }
[dir="rtl"] .home-quotes .carousel .card { border-radius: 22px 4px 22px 22px; }
[dir="rtl"] .col-title { background-position: 100% 100%; }
[dir="rtl"] .rep::after, [dir="rtl"] .home-services .service::before { transform-origin: right; }
[dir="rtl"] .agenda-list li:first-child .d::after { right: auto; left: -5px; }
[dir="rtl"] .scroll-bar { transform-origin: 100% 50%; }
[dir="rtl"] .page-head::after { background: linear-gradient(270deg, var(--surface) 35%, transparent); }
[dir="rtl"] .page-head > .wrap::before { -webkit-mask-image: url(assets/filigranes/motif.svg), linear-gradient(270deg, transparent 25%, #000 100%); mask-image: url(assets/filigranes/motif.svg), linear-gradient(270deg, transparent 25%, #000 100%); }
[dir="rtl"] .une h1 .rot span::after { left: .12em; right: 0; }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"], [dir="rtl"] input[type="password"], [dir="rtl"] #trk-ref { direction: ltr; text-align: right; }
[dir="rtl"] .num, [dir="rtl"] .ref, [dir="rtl"] time { unicode-bidi: plaintext; }

/* ---------- Plan du site ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--gap); }
.plan-card h2 { font-size: var(--s-1); padding-bottom: .5rem; margin-bottom: .6rem; border-bottom: 2px solid var(--ink); }
.plan-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.plan-card a { font: 600 1.02rem var(--f-display); color: var(--ink); text-decoration: none; }
.plan-card a:hover { color: var(--sky); text-decoration: underline; }
.plan-card span { display: block; font-size: .88rem; color: var(--ink-2); }
/* les libellés du menu sont plus longs en anglais : le sous-titre du logo laisse la place */
html:not([lang="fr"]) .site-header .brand small { display: none; }
html:not([lang="fr"]) .site-header .nav > ul { gap: 0; }
