/* ==========================================================================
   Contre les violences policières : feuille de style
   Montserrat hébergée sur le site (aucun appel à Google Fonts).
   Contrastes vérifiés selon WCAG 2.1 (valeurs en commentaire).
   ========================================================================== */

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

/* 1. Jetons : clair ---------------------------------------------------------- */
:root {
  color-scheme: light;
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --bg: #ffffff;
  --bg-alt: #f4f1ea;          /* papier */
  --surface: #ffffff;
  --surface-2: #f4f1ea;
  --fill: rgba(18, 18, 18, 0.06);
  --segment-selected: #ffffff;

  --scene: #0e0e0e;           /* encre */
  --on-scene: #f4f1ea;        /* 17,1:1 */
  --on-scene-2: #a8a39a;      /* 7,7:1 */
  --rouge-scene: #ff5a4a;     /* 6,3:1 sur encre */

  --text: #121212;            /* 16,6:1 sur papier */
  --text-2: #5f5b55;          /* 6,7:1 sur blanc, 6,0:1 sur papier */
  --separator: #e2ddd2;
  --border-field: #8a857d;    /* 3,7:1 sur blanc */

  --accent: #d7261e;          /* rouge : texte blanc 5,0:1 */
  --accent-hover: #c81e1e;    /* texte blanc 5,7:1 */
  --accent-pressed: #b3170f;  /* texte blanc 6,9:1 */
  --on-accent: #ffffff;
  --link: #c81e1e;            /* 5,7:1 sur blanc, 5,1:1 sur papier */
  --accent-tint: rgba(215, 38, 30, 0.09);
  --focus: #d7261e;

  --success: #1f7a35;
  --danger: #c81e1e;
  --warning: #9a4a00;

  --glass-bg: rgba(14, 14, 14, 0.9);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-float: 0 4px 12px rgba(0, 0, 0, 0.08), 0 16px 40px rgba(0, 0, 0, 0.16);

  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.1875rem, 1.1rem + 0.4vw, 1.4375rem);
  --fs-h1: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
  --fs-h2: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  --fs-h3: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --fs-subhead: 0.9375rem;
  --fs-footnote: 0.8125rem;

  --section-y: clamp(64px, 9vw, 128px);
  --gutter: clamp(16px, 4vw, 48px);
  --container: 980px;
  --container-wide: 1200px;

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 28px; --r-pill: 980px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-1: 150ms; --dur-2: 250ms; --dur-3: 400ms; --dur-reveal: 700ms;
}

/* 2. Jetons : sombre ---------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e0e0e; --bg-alt: #161514; --surface: #1c1c1c; --surface-2: #2a2928;
    --fill: rgba(244, 241, 234, 0.08); --segment-selected: #3a3936;
    --text: #f4f1ea; --text-2: #b0aaa0;              /* 7,4:1 sur #1c1c1c */
    --separator: #2f2e2b; --border-field: #8a857d;    /* 4,6:1 sur #1c1c1c */
    --link: #ff5a4a;                                  /* 5,5:1 sur #1c1c1c */
    --accent-tint: rgba(255, 90, 74, 0.14);
    --focus: #ff5a4a;
    --success: #30d158; --danger: #ff5a4a; --warning: #ffb340;
    --shadow-float: 0 4px 12px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0e0e; --bg-alt: #161514; --surface: #1c1c1c; --surface-2: #2a2928;
  --fill: rgba(244, 241, 234, 0.08); --segment-selected: #3a3936;
  --text: #f4f1ea; --text-2: #b0aaa0;
  --separator: #2f2e2b; --border-field: #8a857d;
  --link: #ff5a4a; --accent-tint: rgba(255, 90, 74, 0.14); --focus: #ff5a4a;
  --success: #30d158; --danger: #ff5a4a; --warning: #ffb340;
}

/* 3. Base ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 450;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
p a, li a, dd a, .case a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }
[hidden] { display: none !important; }
strong { font-weight: 700; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.muted { color: var(--text-2); }
.petit { font-size: var(--fs-subhead); }
.icon { width: 20px; height: 20px; flex: none; }

.evitement { position: absolute; left: 16px; top: -100px; z-index: 200; padding: 12px 20px; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-weight: 700; }
.evitement:focus { top: 12px; text-decoration: none; }

/* 4. Mise en page ---------------------------------------------------------------- */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--wide { width: min(var(--container-wide), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.stack > * + * { margin-top: var(--stack, 16px); }
.grille-2 { display: grid; gap: 16px 20px; }
@media (min-width: 640px) { .grille-2 { grid-template-columns: 1fr 1fr; } }

/* 5. Typographie ------------------------------------------------------------------ */
.t-h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.02em; }
.t-h2 { font-size: var(--fs-h2); }
.t-h3 { font-size: var(--fs-h3); line-height: 1.15; }
.t-title3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.t-large-title { font-size: 2.125rem; font-weight: 800; letter-spacing: -0.02em; }
.t-lead { font-size: var(--fs-lead); line-height: 1.4; font-weight: 450; }
.t-stat { font-size: clamp(3rem, 2rem + 5vw, 5.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }

/* 6. Boutons ----------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px;
  border: 0; border-radius: var(--r-pill);
  background: var(--accent); color: var(--on-accent);
  font: inherit; font-size: var(--fs-body); font-weight: 700; letter-spacing: 0;
  text-decoration: none !important; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-1), transform var(--dur-1) var(--ease-out), opacity var(--dur-1), box-shadow var(--dur-1);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { background: var(--accent-pressed); transform: scale(0.97); }
.btn--lg { min-height: 54px; padding: 0 30px; font-size: 1.0625rem; }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: var(--fs-subhead); }
.btn--xs { min-height: 30px; padding: 0 12px; font-size: var(--fs-footnote); }
.btn--bloc { display: flex; width: 100%; }
.btn--teinte { background: var(--accent-tint); color: var(--link); }
.btn--teinte:hover, .btn--teinte:active { background: var(--accent-tint); filter: brightness(0.95); }
.btn--fantome { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.btn--fantome:hover, .btn--fantome:active { background: var(--fill); }
.btn--fantome-danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.btn--fantome-danger:hover { background: var(--accent-tint); }
.btn--danger { background: #c81e1e; color: #fff; }
.btn--danger:hover, .btn--danger:active { background: #b3170f; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn .icon { width: 18px; height: 18px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.actions--fin { justify-content: flex-end; gap: 12px; }
.link-more { font-weight: 700; }
.link-more::after { content: "\00a0\203a"; display: inline-block; transition: transform var(--dur-2) var(--ease-out); }
.link-more:hover::after { transform: translateX(3px); }
.lien-bouton { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--link); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }

/* 7. Barre de navigation en verre ---------------------------------------------------- */
.glass { background: var(--glass-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: #0e0e0e; } }
@media (prefers-reduced-transparency: reduce) { .glass { background: #0e0e0e; -webkit-backdrop-filter: none; backdrop-filter: none; } }
.navbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; border-bottom: 1px solid var(--glass-border); color: #f4f1ea; }
.navbar__inner { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.navbar__titre { display: inline-flex; align-items: center; gap: 10px; color: #f4f1ea; font-weight: 800; font-size: 0.9375rem; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none !important; }
.navbar__marque { width: 14px; height: 14px; background: var(--accent); border-radius: 3px; flex: none; }
.navbar__droite { display: flex; align-items: center; gap: 16px; }
.navbar__compte { font-size: var(--fs-subhead); color: #a8a39a; }
.navbar__compte strong { color: #f4f1ea; font-weight: 800; }
@media (max-width: 560px) {
  .navbar__titre { font-size: 0.8125rem; text-transform: none; letter-spacing: 0; min-width: 0; }
  .navbar__titre-texte { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .navbar__compte { display: none; }
}

/* 8. Héros ------------------------------------------------------------------------- */
.hero { background: var(--scene); color: var(--on-scene); padding-block: clamp(48px, 8vw, 112px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero__inner { display: grid; gap: 24px; }
.hero__surtitre { font-size: var(--fs-footnote); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-scene-2); }
@media (max-width: 560px) { .hero__surtitre span { display: block; } .hero__surtitre .sep { display: none; } }
.hero__titre {
  font-size: clamp(2.5rem, 1.2rem + 6.2vw, 6.25rem);
  font-weight: 900; line-height: 1.02; letter-spacing: -0.03em; text-transform: uppercase;
  text-wrap: wrap;
}
.hero__titre em { font-style: normal; color: var(--rouge-scene); }
.hero__chapeau { max-width: 44rem; font-size: var(--fs-lead); line-height: 1.5; color: #d9d4ca; } /* 13,5:1 */
.hero__actions { margin-top: 8px; }
.hero .link-more { color: #f4f1ea; }
.hero__compteur { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin-top: clamp(16px, 4vw, 40px); padding-top: 24px; border-top: 1px solid rgba(244, 241, 234, 0.16); }
.hero__nombre { font-size: clamp(3.5rem, 2rem + 7vw, 7.5rem); font-weight: 900; line-height: 0.9; letter-spacing: -0.045em; }
.hero__legende { font-size: var(--fs-lead); font-weight: 600; color: var(--on-scene-2); }

/* 9. Communiqué ------------------------------------------------------------------- */
.communique__grille { display: grid; gap: 48px; }
@media (min-width: 1000px) { .communique__grille { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; } }
.communique__texte { max-width: 46rem; font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem); line-height: 1.62; }
.communique__texte > * + * { margin-top: 1em; }
.communique__ref { font-size: var(--fs-footnote); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.communique__texte h2 {
  margin-top: 2.2em; padding-top: 20px; position: relative;
  font-size: var(--fs-h2); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.08;
}
.communique__texte h2::before { content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 6px; background: var(--accent); }
.communique__ref + h2 + h2, .communique__ref + h2.visually-hidden + h2 { margin-top: 0.6em; }
.exigences { list-style: none; display: grid; gap: 0.75em; }
.exigences li { position: relative; padding-left: 1.6em; }
.exigences li::before { content: ""; position: absolute; left: 0.1em; top: 0.55em; width: 0.6em; height: 0.6em; background: var(--accent); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.communique__contact { margin-top: 2em !important; padding-top: 1em; border-top: 1px solid var(--separator); font-size: var(--fs-body); font-weight: 600; }

.communique__aside .aside__colle { display: grid; gap: 12px; }
@media (min-width: 1000px) { .communique__aside .aside__colle { position: sticky; top: 88px; } }
.communique__aside .partage { grid-template-columns: 1fr; }
@media (max-width: 999px) { .communique__aside .partage { grid-template-columns: 1fr 1fr; } }
.aside__titre { margin-top: 16px; font-size: var(--fs-footnote); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }

/* Partage */
.partage { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.partage__btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  border: 0; border-radius: var(--r-md); background: var(--fill); color: var(--text);
  font: inherit; font-size: var(--fs-subhead); font-weight: 600; cursor: pointer; text-decoration: none !important;
  transition: background-color var(--dur-1), transform var(--dur-1) var(--ease-out);
}
.partage__btn:hover { background: var(--accent-tint); color: var(--link); }
.partage__btn:active { transform: scale(0.97); }
.partage__btn .icon { width: 20px; height: 20px; }

/* 10. Formulaire de signature ------------------------------------------------------- */
.signer__inner { display: grid; gap: 32px; max-width: 760px; }
.signer__intro { display: grid; gap: 12px; }
.carte { background: var(--surface); border-radius: var(--r-xl); padding: clamp(20px, 4vw, 40px); }
.formulaire { display: grid; gap: 32px; }
.formulaire__type { display: grid; gap: 8px; }
.formulaire__type-libelle { font-size: var(--fs-subhead); font-weight: 700; }
.segmented { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 12px; background: var(--fill); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label, .segmented a {
  display: grid; place-items: center; min-height: 44px; padding: 0 16px; border-radius: 9px;
  font-size: var(--fs-subhead); font-weight: 700; color: var(--text); cursor: pointer; text-align: center; text-decoration: none !important;
  transition: background-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.segmented input:checked + label, .segmented a[aria-current="page"] { background: var(--segment-selected); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14), 0 0 0 0.5px rgba(0, 0, 0, 0.05); }
.formulaire__type .segmented label { line-height: 1.2; padding-block: 6px; }
.segmented input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 1px; }
.formulaire__type .segmented { display: grid; width: 100%; }

.bloc { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 16px; }
.bloc__titre { padding: 0; margin-bottom: 4px; font-size: var(--fs-h3); font-weight: 800; letter-spacing: -0.01em; }
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .field__libelle { font-size: var(--fs-subhead); font-weight: 700; }
.facultatif { font-weight: 500; color: var(--text-2); }
.input {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; font-size: 1.0625rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-field); border-radius: var(--r-md);
  transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
.select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.input::placeholder { color: var(--text-2); opacity: 0.8; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field__hint { font-size: var(--fs-footnote); color: var(--text-2); }
.field__error { font-size: var(--fs-footnote); font-weight: 600; color: var(--danger); }

/* Choix de la qualité : options en cartes */
.choix { margin: 8px 0 0; padding: 0; border: 0; min-width: 0; }
.choix__legende { padding: 0; margin-bottom: 8px; font-size: var(--fs-subhead); font-weight: 700; }
.choix__grille { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choix__option { position: relative; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--border-field); background: var(--surface); cursor: pointer; font-weight: 600; font-size: var(--fs-subhead); line-height: 1.25; transition: border-color var(--dur-1), background-color var(--dur-1), transform var(--dur-1) var(--ease-out); }
.choix__option:active { transform: scale(0.98); }
.choix__option input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 50%; border: 1.5px solid var(--border-field); background: var(--surface); transition: border-width var(--dur-1), border-color var(--dur-1); }
.choix__option input:checked { border: 6px solid var(--accent); }
.choix__option:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.choix__option input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.choix[aria-invalid="true"] .choix__option { border-color: var(--danger); }

/* Cases à cocher */
.case { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: var(--fs-subhead); line-height: 1.45; }
.case input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; border-radius: 7px; border: 1.5px solid var(--border-field); background: var(--surface); cursor: pointer; display: grid; place-items: center; transition: background-color var(--dur-1), border-color var(--dur-1); }
.case input::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform var(--dur-2) var(--ease-out); }
.case input:checked { background: var(--accent); border-color: var(--accent); }
.case input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.case input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.case input[aria-invalid="true"] { border-color: var(--danger); }
.case .field__error { grid-column: 2; }
.case--encadre { margin-top: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--accent-tint); }
.bloc > [data-pour] { display: grid; gap: 16px; }
.case__note { margin: -8px 0 0 36px; font-size: var(--fs-footnote); color: var(--text-2); }

/* Dépôt du logo */
.depot { display: flex; align-items: center; gap: 16px; padding: 12px; border: 1.5px dashed var(--border-field); border-radius: var(--r-md); cursor: pointer; transition: border-color var(--dur-1), background-color var(--dur-1); }
.depot:hover, .depot.est-survole { border-color: var(--accent); background: var(--accent-tint); }
.depot__apercu { flex: none; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 10px; background: var(--fill); color: var(--text-2); overflow: hidden; }
.depot__apercu img { width: 100%; height: 100%; object-fit: contain; }
.depot__apercu .icon { width: 28px; height: 28px; }
.depot__texte { display: grid; gap: 2px; }
.depot__action { font-weight: 700; color: var(--link); }
.depot__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.depot__input:focus-visible + .depot__retirer, .depot:focus-within { outline: none; }
.field:has(.depot__input:focus-visible) .depot { outline: 2px solid var(--focus); outline-offset: 2px; }
.depot__retirer { justify-self: start; font-size: var(--fs-footnote); }

.pot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formulaire__envoi { display: grid; gap: 14px; }
.formulaire__note { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-footnote); color: var(--text-2); }
.formulaire__note .icon { width: 18px; height: 18px; color: var(--success); margin-top: 1px; }
.erreur-generale { padding: 12px 16px; border-radius: var(--r-md); background: var(--accent-tint); color: var(--danger); font-weight: 600; font-size: var(--fs-subhead); }
.est-occupe { pointer-events: none; }
.btn .rond { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: tourne 0.8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* Merci */
.merci { display: grid; gap: 16px; justify-items: start; }
.merci:focus { outline: none; }
.merci__icone { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; }
.merci__icone .icon { width: 30px; height: 30px; }
.merci__partage { width: 100%; display: grid; gap: 12px; margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--separator); }
@media (min-width: 640px) { .merci .partage { grid-template-columns: repeat(4, auto); justify-content: start; } }

/* 11. Signataires ------------------------------------------------------------------- */
.signataires__tete { display: grid; gap: 12px; margin-bottom: 48px; }
.signataires__chiffre { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.signataires__unite { font-size: var(--fs-lead); font-weight: 700; }
.signataires__repartition { max-width: 46rem; }
.signataires__grille { display: grid; gap: 56px; }
@media (min-width: 900px) { .signataires__grille { grid-template-columns: 5fr 7fr; gap: 72px; } }
.signataires__sous-titre { margin-bottom: 20px; padding-bottom: 12px; border-bottom: 3px solid var(--text); text-transform: uppercase; letter-spacing: 0.01em; }
.orgs { list-style: none; display: grid; gap: 4px; }
.org { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.org__logo { width: 48px; height: 48px; flex: none; border-radius: 10px; object-fit: contain; background: #fff; }
.org__logo--vide { display: grid; place-items: center; background: var(--scene); color: #f4f1ea; font-weight: 800; font-size: 0.9375rem; letter-spacing: 0.02em; }
.org__texte { display: grid; }
.org__nom { font-weight: 700; color: var(--text); }
a.org__nom { text-decoration: underline; text-decoration-color: var(--separator); text-underline-offset: 0.2em; }
a.org__nom:hover { color: var(--link); text-decoration-color: currentColor; }
.org__sigle { font-size: var(--fs-footnote); color: var(--text-2); font-weight: 600; letter-spacing: 0.04em; }
.premiers__titre { margin: 28px 0 10px; font-size: var(--fs-footnote); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.premiers { list-style: none; display: grid; gap: 10px; font-weight: 600; }
.premiers li { position: relative; padding-left: 18px; }
.premiers li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; background: var(--accent); }
.noms { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 24px; font-weight: 600; }
.noms li { padding-block: 4px; border-bottom: 1px solid var(--separator); }
.noms li.est-nouveau { animation: apparait var(--dur-3) var(--ease-out); }
@keyframes apparait { from { transform: translateY(8px); } }
.plus { margin-top: 20px; }
.note { margin-top: 20px; font-size: var(--fs-footnote); }
.vide { padding: 32px; border-radius: var(--r-lg); background: var(--bg-alt); display: grid; gap: 8px; justify-items: start; }

/* 12. Pages simples (confirmation, retrait, erreurs) ---------------------------------- */
.page-simple main, .page-texte main { background: var(--bg-alt); }
.page-simple .simple { min-height: calc(100dvh - 56px - 160px); }
.simple__inner { max-width: 640px; }
.simple__carte { display: grid; gap: 18px; justify-items: start; }
.simple__carte--etroite { max-width: 440px; margin-inline: auto; }
.simple__carte > form, .simple__carte .partage { width: 100%; }
.simple__icone { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--fill); }
.simple__icone--ok { background: var(--accent); color: #fff; }
.simple__icone .icon { width: 30px; height: 30px; }
.simple__action { width: 100%; margin-top: 8px; }
.simple__retour { margin-top: 8px; }
.resume { width: 100%; margin: 0; border-radius: var(--r-md); background: var(--bg-alt); }
.resume > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.resume > div + div { border-top: 1px solid var(--separator); }
.resume dt { color: var(--text-2); font-size: var(--fs-subhead); }
.resume dd { margin: 0; font-weight: 700; text-align: right; }
.formulaire-simple { width: 100%; }
.verifs { list-style: none; width: 100%; display: grid; gap: 6px; font-size: var(--fs-subhead); }
.verifs .ok span { color: var(--success); font-weight: 800; }
.verifs .ko { color: var(--danger); font-weight: 600; }
.etapes { padding-left: 1.2em; display: grid; gap: 8px; }

/* Textes légaux */
.prose { max-width: 46rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; font-size: var(--fs-h3); }
.prose ul { padding-left: 1.2em; display: grid; gap: 0.5em; }
.a-completer { padding: 0 6px; border-radius: 4px; background: #ffe08a; color: #121212; font-weight: 700; }

/* 13. Pied de page ------------------------------------------------------------------- */
.pied { background: var(--scene); color: var(--on-scene-2); padding-block: 40px calc(40px + env(safe-area-inset-bottom)); font-size: var(--fs-footnote); }
.pied__inner { display: grid; gap: 12px; }
.pied__asso { color: var(--on-scene); font-weight: 600; }
.pied__liens { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pied a { color: var(--on-scene); text-decoration: underline; text-decoration-color: rgba(244, 241, 234, 0.3); text-underline-offset: 0.2em; }
.pied a:hover { text-decoration-color: currentColor; }

/* 14. Notification ------------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 100;
  max-width: calc(100% - 32px); padding: 12px 22px; border-radius: var(--r-pill);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-float);
  font-size: var(--fs-subhead); font-weight: 600; color: #f4f1ea; text-align: center;
  transform: translate(-50%, 0);
  transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-3) var(--ease-out), visibility 0s;
}
.toast:not(.is-shown) { opacity: 0; visibility: hidden; transform: translate(-50%, 24px); pointer-events: none; transition-delay: 0s, 0s, var(--dur-3); }

/* 15. Feuille de dialogue (administration) --------------------------------------------- */
.sheet { width: min(480px, 100% - 32px); padding: 0; border: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--text); box-shadow: var(--shadow-float); }
.sheet::backdrop { background: rgba(0, 0, 0, 0.4); }
.sheet[open] { animation: feuille var(--dur-3) var(--ease-out); }
.sheet__body { padding: 24px; }
@keyframes feuille { from { opacity: 0; transform: translateY(16px) scale(0.98); } }

/* 16. Administration ------------------------------------------------------------------ */
.page-admin main { background: var(--bg-alt); }
.admin { padding-block: 32px 64px; }
.admin__tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.admin__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bandeau { margin-bottom: 12px; padding: 12px 16px; border-radius: var(--r-md); font-weight: 600; font-size: var(--fs-subhead); }
.bandeau--info { background: var(--surface); }
.bandeau--alerte { background: #fff1d6; color: #6b3500; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bandeau--alerte { background: #3a2a10; color: #ffd28a; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat { display: grid; gap: 2px; align-content: start; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); }
.stat__n { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat--principale .stat__n { color: var(--link); }
.stat__l { font-size: var(--fs-subhead); color: var(--text-2); font-weight: 600; }
.stat__s { font-size: var(--fs-footnote); color: var(--text-2); }
.admin__barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.segmented--liens { display: inline-flex; flex-wrap: wrap; }
.segmented--liens a { display: inline-flex; gap: 6px; align-items: center; min-height: 36px; white-space: nowrap; }
.segmented--liens a .num { color: var(--text-2); font-weight: 600; }
.search { position: relative; flex: 1 1 260px; max-width: 360px; }
.search .input { min-height: 40px; padding-left: 38px; background: var(--surface); border-color: transparent; }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--text-2); pointer-events: none; }
.table-cadre { overflow-x: auto; border-radius: var(--r-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-subhead); }
.table th { position: sticky; top: 0; padding: 10px 14px; text-align: left; font-size: var(--fs-footnote); font-weight: 700; color: var(--text-2); background: var(--surface); border-bottom: 1px solid var(--separator); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--separator); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--fill); }
.cellule-org { display: flex; gap: 10px; align-items: flex-start; }
.cellule-org img { width: 32px; height: 32px; border-radius: 6px; object-fit: contain; background: #fff; flex: none; }
.cellule-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 190px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.admin__outils { display: grid; gap: 12px; margin-top: 32px; }
@media (min-width: 800px) { .admin__outils { grid-template-columns: 1fr 1fr; } }
.admin__outils .carte { display: grid; gap: 12px; align-content: start; border-radius: var(--r-lg); padding: 24px; }
.ligne-form { display: flex; gap: 8px; }
.ligne-form .input { min-height: 40px; }
.journal { margin-top: 24px; font-size: var(--fs-subhead); }
.journal summary { cursor: pointer; font-weight: 700; }
.journal ul { list-style: none; margin-top: 12px; display: grid; gap: 6px; }
.vide--admin { background: var(--surface); }

/* 17. Révélation au défilement : le contenu reste lisible sans script ------------------ */
.js [data-revele] { transition: transform var(--dur-reveal) var(--ease-out); }
.js [data-revele]:not(.est-visible) { transform: translateY(24px); }

/* 18. Mobile ----------------------------------------------------------------------- */
@media (max-width: 480px) {
  .choix__grille { grid-template-columns: 1fr; }
  .partage { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { width: 100%; }
}

/* 19. Mouvement réduit ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .js [data-revele]:not(.est-visible) { transform: none; }
  .btn:active, .partage__btn:active, .choix__option:active { transform: none; }
}

/* 20. Impression : le communiqué seul ------------------------------------------------- */
@media print {
  .navbar, .communique__aside, .signer, .pied, .toast, .hero__actions, .hero__compteur { display: none !important; }
  .hero { background: none; color: #000; padding: 0 0 24px; }
  .hero__titre em { color: #000; }
  .hero__chapeau { color: #000; }
}
