/* 01-tokens.css */
/* =========================================================================
   MADI : jetons de design
   Couleurs : les teintes douces du drapeau lesbien, telles que MADI les emploie sur
   Instagram (relevé du 25/11/2026) : fond pêche, mandarine, abricot, blanc, rose
   dragée, orchidée. Aucun aplat foncé, aucun rose sombre : le texte est une encre
   brun-noir chaude, posée sur des aplats clairs ou moyens.

   Contrastes WCAG vérifiés (scripts dans tests/build.test.js) :
   - --ink sur tous les aplats : ≥ 4,9:1 (orchidée), ≥ 9:1 sur les fonds clairs.
   - --ink-muted : texte secondaire sur fonds clairs (≥ 5:1), jamais sur orchidée ni mandarine.
   - --terre : petits surtitres sur blanc, crème, pêche et rose pâle (≥ 4,8:1).
   - --orchidee-texte : grands textes uniquement (≥ 24 px, ou 19 px en gras), ≥ 3,2:1.
   ========================================================================= */
:root {
  /* Drapeau lesbien adouci (de haut en bas) */
  --mandarine: #f4874b;       /* orange du drapeau, adouci */
  --abricot: #ffbc58;         /* orange clair */
  --blanc: #fffdfc;           /* bande blanche */
  --rose: #ffc4e8;            /* rose dragée */
  --orchidee: #d86fae;        /* rose orchidée */

  /* Fonds */
  --peche: #ffd8c4;           /* fond signature des visuels de MADI */
  --creme: #fff6f0;           /* fond de page */
  --rose-pale: #ffe3f1;       /* sections roses */

  /* Encres */
  --ink: #2d2226;             /* brun-noir chaud, texte principal */
  --ink-muted: #5c4651;       /* texte secondaire */
  --terre: #9a4524;           /* surtitres (brun des affiches de MADI) */
  --orchidee-texte: #b4508e;  /* grands titres en rose : jamais en petit texte */

  /* Filets */
  --line: #f2cdb9;
  --line-strong: #e4a98c;

  /* Rôles */
  --bg: var(--creme);
  --fg: var(--ink);
  --link: var(--ink);
  --link-line: var(--orchidee);
  --link-hover-bg: var(--rose);
  --focus: var(--ink);
  --focus-on-fill: var(--blanc);

  /* Typographie (charte : titres Poppins ExtraBold, texte Open Sans ; Poppins aussi pour
     les éléments d'interface : boutons, navigation, surtitres, dates) */
  --font-display: "Poppins", "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-h4: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 3.4vw, 4rem);
  --fs-display: clamp(2.4rem, 1.4rem + 3.8vw, 4.5rem);

  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-body: 1.65;

  /* Espacements */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2rem;
  --space-xl: 3rem;
  --space-2xl: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --space-3xl: clamp(4.5rem, 3rem + 6vw, 8rem);

  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --wrap: 72rem;
  --wrap-narrow: 46rem;

  /* Formes */
  --radius-s: 0.5rem;
  --radius-m: 1rem;
  --radius-l: 1.75rem;
  --radius-pill: 999px;
  --arch: 999px 999px var(--radius-m) var(--radius-m);

  --shadow-soft: 0 1px 2px rgb(45 34 38 / 0.06), 0 8px 24px -12px rgb(45 34 38 / 0.18);
  --shadow-lift: 0 2px 4px rgb(45 34 38 / 0.08), 0 18px 40px -18px rgb(180 80 142 / 0.45);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur-med: 250ms;

  --header-h: 4.5rem;

  color-scheme: light;
}

/* 02-fonts.css */
/* Polices auto-hébergées (aucun appel à Google Fonts : pas de fuite d'adresse IP).
   Sous-ensemble « latin » : couvre le français, le kreyòl (è, ò, à) et l'anglais. */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url("/assets/fonts/open-sans-var.woff2") format("woff2-variations"), url("/assets/fonts/open-sans-var.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/assets/fonts/poppins-700.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url("/assets/fonts/poppins-800.woff2") format("woff2");
}

/* 03-base.css */
/* ---------- Remise à zéro légère ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--space-s));
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Posé sur body, overflow-x: clip est reporté sur la fenêtre, où il vaut « hidden » : la page
   pouvait alors glisser de côté (focus, ouverture du menu) quand une carte inclinée dépassait
   du bord. Sur main, clip coupe vraiment ce qui dépasse, sans créer de zone défilante. */
main {
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: var(--lh-snug); letter-spacing: -0.01em; }
h4 { font-size: var(--fs-h4); font-weight: 700; line-height: var(--lh-snug); letter-spacing: 0; }

p,
ul,
ol,
dl,
blockquote,
figure {
  margin: 0;
}

p,
li {
  text-wrap: pretty;
}

* + p,
p + ul,
p + ol {
  margin-block-start: var(--space-s);
}

ul,
ol {
  padding-inline-start: 1.25em;
}

li + li {
  margin-block-start: var(--space-2xs);
}

strong {
  font-weight: 650;
}

/* Liens : encre foncée, soulignés d'orchidée. Au survol, le soulignement s'épaissit et un
   aplat rose dragée passe derrière le texte (pas de rose foncé en texte courant). */
a {
  color: var(--link);
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.2em;
  transition: background-color var(--dur-fast) ease, text-decoration-color var(--dur-fast) ease;
}

a:hover {
  color: var(--link);
  background-color: var(--link-hover-bg);
  text-decoration-color: var(--ink);
  text-decoration-thickness: 0.14em;
}

abbr[title] {
  text-decoration: none;
}

/* Focus clavier très visible, double anneau lisible sur tous les fonds. */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Sur un aplat orchidée ou mandarine, l'anneau d'encre reste lisible (≥ 4,9:1) : un seul
   anneau pour tout le site. */

main:focus {
  outline: none;
}

::selection {
  background: var(--rose);
  color: var(--ink);
}

/* ---------- Utilitaires ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--space-s);
  inset-block-start: -10rem;
  z-index: 100;
  padding: var(--space-xs) var(--space-m);
  background: var(--ink);
  color: var(--blanc);
  font-weight: 600;
  border-radius: var(--radius-s);
  text-decoration: none;
}

.skip-link:focus {
  inset-block-start: var(--space-s);
  color: var(--blanc);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* À l'impression, garder les aplats de couleur (cartes, bandeaux) : ils portent la mise en page. */
@media print {
  html {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Éléments qui ne valent que si le script tourne (boutons des carrousels).
   La classe has-js est posée par site.js dès son démarrage. */
.js-only {
  display: none;
}
.has-js .js-only {
  display: revert;
}

/* 04-layout.css */
/* ---------- Conteneurs ---------- */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 2 * var(--gutter), var(--wrap-narrow));
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding-block: var(--space-2xl);
  isolation: isolate;
}

.section--tight {
  padding-block: var(--space-xl);
}

.section--blanc { background: var(--blanc); }
.section--creme { background: var(--creme); }
.section--peche { background: var(--peche); }
.section--rose { background: var(--rose-pale); }
.section--orchidee { background: var(--orchidee); }

/* Bandeau orchidée : texte à l'encre, filets et liens à l'encre (aucun texte clair). */
.section--orchidee a:hover {
  background-color: var(--blanc);
}

.split {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

/* Un carrousel posé dans une colonne ne doit pas l'élargir (ni pousser le texte voisin hors de l'écran). */
.split > * {
  min-width: 0;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .split--wide-start { grid-template-columns: 1.2fr 0.8fr; }
  .split--wide-end { grid-template-columns: 0.8fr 1.2fr; }
  .split--top { align-items: start; }
}

.stack > * + * {
  margin-block-start: var(--space-m);
}

.stack-l > * + * {
  margin-block-start: var(--space-xl);
}

.prose {
  max-width: 68ch;
}

.prose > * + * {
  margin-block-start: var(--space-s);
}

.prose h2,
.prose h3 {
  margin-block-start: var(--space-xl);
}

.prose h2 + *,
.prose h3 + * {
  margin-block-start: var(--space-s);
}

.center {
  text-align: center;
  margin-inline: auto;
}

/* 05-chrome.css */
/* =========================================================================
   En-tête, navigation, sélecteur de langue, pied de page
   ========================================================================= */

/* ---------- Barre supérieure ---------- */
.topbar {
  background: var(--orchidee);
  color: var(--ink);
  font-size: var(--fs-xs);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  min-height: 2.5rem;
}

.topbar__tagline {
  min-width: 0;
  margin: 0;
  padding-block: var(--space-3xs);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/* ---------- Sélecteur de langue ---------- */
.lang-switch__list {
  display: flex;
  gap: var(--space-3xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-switch__list li {
  margin: 0;
}

.lang-switch__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  justify-content: center;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  color: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.lang-switch__link:hover {
  color: inherit;
  background: var(--rose);
}

.lang-switch__link[aria-current="true"] {
  background: var(--blanc);
  color: var(--ink);
}

.lang-switch__full {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (min-width: 40rem) {
  .lang-switch__link abbr {
    display: none;
  }

  .lang-switch__full {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: var(--creme);
  border-block-end: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex: none;
  margin-inline-end: auto;
  padding-block: var(--space-2xs);
  border-radius: var(--radius-s);
}

.brand__logo {
  width: auto;
  height: 2.75rem;
}

@media (min-width: 64rem) {
  .brand__logo {
    height: 3.25rem;
  }
}

/* Navigation bureau */
.nav--desktop {
  display: none;
}

.nav__list {
  display: flex;
  gap: var(--space-3xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list li {
  margin: 0;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.nav__link:hover {
  background: var(--rose-pale);
  color: var(--ink);
}

.nav__link[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 0.8rem;
  inset-block-end: 0.35rem;
  height: 3px;
  border-radius: 3px;
  background: var(--orchidee-texte);
}

/* Sept entrées : le menu bureau n'apparaît que lorsqu'elles tiennent toutes sur une ligne
   (mesuré en français, la langue aux libellés les plus longs). */
@media (min-width: 72rem) {
  .nav--desktop {
    display: block;
  }

  .nav--mobile {
    display: none;
  }
}

/* Menu mobile (fonctionne sans JavaScript grâce à <details>) */
.nav--mobile > summary {
  list-style: none;
}

.nav--mobile > summary::-webkit-details-marker {
  display: none;
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  min-height: 2.75rem;
  padding: 0.4rem 0.85rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--fs-sm);
  cursor: pointer;
  user-select: none;
}

.nav__toggle-close,
.nav--mobile[open] .nav__toggle-open {
  display: none;
}

.nav--mobile[open] .nav__toggle-close {
  display: block;
}

.nav__panel {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 100%;
  padding: var(--space-m) var(--gutter) var(--space-l);
  background: var(--creme);
  border-block-end: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

.nav__panel .nav__list {
  flex-direction: column;
  gap: 0;
}

.nav__panel .nav__link {
  display: flex;
  width: 100%;
  min-height: 3.25rem;
  padding-inline: var(--space-s);
  border-radius: var(--radius-s);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.nav__panel .nav__link[aria-current="page"]::after {
  inset-inline: var(--space-s) auto;
  width: 2.5rem;
}

/* Très petits écrans : le mot « Menu » passe en texte masqué et le logo rétrécit. */
@media (max-width: 23rem) {
  .nav__toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .brand__logo {
    height: 2.25rem;
  }
}

/* ---------- Pied de page ---------- */
/* overflow: clip (et non hidden) : le pied de page ne devient pas une zone défilante, donc un
   saut d'ancre ne peut pas le décaler sur le côté à cause du motif qui déborde. */
.site-footer {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding-block: var(--space-2xl) var(--space-l);
  background: var(--rose);
  color: var(--ink);
  font-size: var(--fs-sm);
  isolation: isolate;
}

.site-footer a:hover,
.site-footer .lang-switch__link:hover {
  background-color: var(--blanc);
}

.site-footer__motif {
  position: absolute;
  z-index: -1;
  inset-inline-end: -6rem;
  inset-block-start: -2rem;
  width: 34rem;
  color: rgb(216 111 174 / 0.28);
}

/* Tant que la devise n'a pas sa propre colonne (moins de 64rem), le motif d'arches passe en
   bas, derrière les liens en encre : jamais derrière la devise orchidée (contraste). */
@media (max-width: 63.99rem) {
  .site-footer__motif {
    inset-block: auto -9rem;
    width: 26rem;
  }
}

.site-footer__grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 48rem) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1.3fr;
  }
}

.site-footer__logo {
  width: 13rem;
  padding: var(--space-s) var(--space-m);
  background: var(--blanc);
  border-radius: var(--radius-m);
}

.site-footer__motto {
  margin-block-start: var(--space-m);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 800;
  color: var(--orchidee-texte);
}

.site-footer__about {
  margin-block-start: var(--space-2xs);
  max-width: 34ch;
}

.site-footer__title {
  margin-block-end: var(--space-s);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__list li + li {
  margin-block-start: var(--space-2xs);
}

.site-footer__list--icons li {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}

.site-footer__list--icons .icon {
  color: var(--orchidee-texte);
}

.site-footer__list a {
  display: inline-block;
  padding-block: 0.2rem;
  overflow-wrap: anywhere;
}

.site-footer__note {
  margin-block-start: var(--space-s);
  color: var(--ink-muted);
}

/* Téléphone : un pied de page court. Logo et devise sur une ligne, canaux à la suite les uns
   des autres. Retirés : la présentation (dite dans les pages), la liste des pages (le menu
   les donne toutes, et « Confidentialité » reste dans la dernière ligne) et le second choix
   de langue (celui du haut de page reste). */
@media (max-width: 47.99rem) {
  .site-footer {
    padding-block: var(--space-xl) var(--space-m);
  }

  .site-footer__grid {
    gap: var(--space-l);
  }

  .site-footer__brand {
    display: flex;
    align-items: center;
    gap: var(--space-m);
  }

  .site-footer__logo {
    width: 8.5rem;
    padding: var(--space-2xs) var(--space-s);
  }

  .site-footer__motto {
    margin: 0;
  }

  .site-footer__about {
    display: none;
  }

  .site-footer__title {
    margin-block-end: var(--space-2xs);
  }

  .site-footer__col--nav,
  .site-footer__bottom .lang-switch {
    display: none;
  }

  .site-footer__list--icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--space-m);
  }

  .site-footer__list li + li {
    margin-block-start: 0;
  }

  .site-footer__list a {
    padding-block: 0.55rem;
  }

  .site-footer__note {
    margin-block-start: var(--space-2xs);
  }
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s) var(--space-l);
  margin-block-start: var(--space-2xl);
  padding-block-start: var(--space-m);
  border-block-start: 1px solid rgb(45 34 38 / 0.18);
}

.site-footer__legal {
  margin: 0;
}

/* Signature SV DATCORE : seul « SV DATCORE » est cliquable, jamais souligné, jamais coupé. */
.signature {
  margin: 0;
  margin-inline-start: auto; /* si elle passe à la ligne, elle reste en bout de ligne */
  white-space: nowrap;
}

.signature a,
.signature a:hover,
.signature a:focus,
.signature a:visited {
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
}

/* Jusqu'à 1024 px, les trois blocs ne tiennent pas sur une ligne : on les empile, centrés. */
@media (max-width: 63.99rem) {
  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .signature {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 47.99rem) {
  .site-footer__bottom {
    gap: var(--space-xs);
    margin-block-start: var(--space-l);
  }
}

/* 06-components.css */
/* =========================================================================
   Composants de contenu
   ========================================================================= */

/* ---------- Boutons ---------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-block-start: var(--space-l);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-base);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease,
    transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}

/* Élément distinctif posé au cas par cas (destination, flèche, lien externe). */
.btn__icon {
  flex: none;
  transition: transform var(--dur-med) var(--ease-out);
}

/* La flèche avance, les arches de MADI se lèvent ; les autres icônes ne bougent pas. */
.btn:hover .btn__icon--arrow-right {
  transform: translateX(3px);
}

.btn:hover .btn__icon--madi {
  transform: translateY(-3px);
}

/* Bouton principal : aplat orchidée, texte à l'encre (4,9:1). Au survol, il passe à la
   mandarine du drapeau : un changement de teinte franc, pas un fondu. */
.btn--primary {
  background: var(--orchidee);
  color: var(--ink);
  box-shadow: var(--shadow-lift);
}

.btn--primary:hover {
  background: var(--mandarine);
  color: var(--ink);
}

.btn--secondary {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn--secondary:hover {
  background: var(--ink);
  color: var(--blanc);
}

/* Variantes posées sur un aplat de couleur (bandeaux d'appel, cartes orchidée). */
.btn--light {
  background: var(--blanc);
  color: var(--ink);
}

.btn--light:hover {
  background: var(--abricot);
  color: var(--ink);
}

.btn--ghost-light {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--ghost-light:hover {
  background: var(--ink);
  color: var(--blanc);
}

/* Téléphone : dans un panneau (bandeau d'appel, carte), les boutons prennent toute la largeur.
   Le libellé tient alors sur une ligne et l'icône reste collée au texte. */
@media (max-width: 29.99rem) {
  :is(.cta-band, .empty-state, .buy__soon) .btn-row > .btn {
    flex: 1 1 100%;
    padding-inline: var(--space-s);
  }
}

/* ---------- Surtitre & en-têtes de section ---------- */
/* align-items: baseline pose les arches sur la ligne de base du premier mot, même quand
   le surtitre passe sur deux lignes. */
.kicker {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2xs);
  margin: 0 0 var(--space-s);
  color: var(--terre);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* La marque de MADI devant chaque surtitre : les deux arches du « M » du logo, redessinées
   en traits épais pour rester lisibles à cette taille (le trait fin du logo disparaîtrait). */
.kicker::before {
  content: "";
  flex: none;
  width: 1.6rem;
  height: 0.88rem;
  background: var(--orchidee);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 22'%3E%3Cpath d='M3 19.5V12a8.5 8.5 0 0 1 17 0v7.5M20 19.5V12a8.5 8.5 0 0 1 17 0v7.5' fill='none' stroke='%23000' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 22'%3E%3Cpath d='M3 19.5V12a8.5 8.5 0 0 1 17 0v7.5M20 19.5V12a8.5 8.5 0 0 1 17 0v7.5' fill='none' stroke='%23000' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.section--orchidee .kicker {
  color: var(--ink);
}

.section--orchidee .kicker::before {
  background: var(--ink);
}

.section-head {
  max-width: 48rem;
  margin-block-end: var(--space-xl);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .kicker {
  justify-content: center;
}

.section-head__lede {
  margin-block-start: var(--space-s);
  font-size: var(--fs-lg);
  color: var(--ink-muted);
}

.lede {
  font-size: var(--fs-lg);
  line-height: 1.55;
}

/* ---------- Motifs décoratifs (masques SVG colorés par currentColor) ---------- */
.motif {
  display: block;
  pointer-events: none;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
}

.motif--arcs {
  aspect-ratio: 545 / 377;
  -webkit-mask-image: url("/assets/img/motif-arcs.svg");
  mask-image: url("/assets/img/motif-arcs.svg");
}

.motif--leaf {
  aspect-ratio: 100 / 170;
  -webkit-mask-image: url("/assets/img/motif-leaf.svg");
  mask-image: url("/assets/img/motif-leaf.svg");
}

/* ---------- Liste à puces illustrées ---------- */
.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-inline-start: 2.25rem;
}

.checklist li + li {
  margin-block-start: var(--space-s);
}

.checklist li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.2em;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--orchidee)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232d2226' d='M9.6 19.2 2.6 12.2 5 9.8l4.6 4.6L19 5l2.4 2.4z'/%3E%3C/svg%3E")
    center / 0.8rem no-repeat;
}

/* ---------- Liste numérotée (missions) ---------- */
.numbered {
  display: grid;
  gap: var(--space-m);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

@media (min-width: 48rem) {
  .numbered {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-l) var(--space-xl);
  }
}

.numbered li {
  margin: 0;
  counter-increment: item;
  padding-block-start: var(--space-s);
  border-block-start: 2px solid var(--ink);
}

.numbered li::before {
  content: counter(item, decimal-leading-zero);
  display: block;
  margin-block-end: var(--space-2xs);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 800;
  color: var(--orchidee-texte);
}

.numbered h3 {
  font-size: var(--fs-h4);
}

.numbered p {
  margin-block-start: var(--space-2xs);
  color: var(--ink-muted);
}

/* ---------- Citation / bandeau ---------- */
.quote {
  position: relative;
  max-width: 60rem;
  margin-inline: auto;
  text-align: center;
}

.quote__text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.2rem + 4vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.quote__text::before { content: "« "; color: var(--blanc); }
.quote__text::after { content: " »"; color: var(--blanc); }

.quote__translation {
  margin-block-start: var(--space-m);
  font-size: var(--fs-lg);
}

.quote__source {
  margin-block-start: var(--space-s);
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- Charte « Safe space » bilingue ---------- */
.bilingual {
  position: relative;
  display: grid;
  gap: var(--space-l);
  padding: var(--space-xl) var(--space-l);
  background: var(--blanc);
  border-radius: var(--radius-l) var(--radius-l) var(--radius-l) 0;
}

@media (min-width: 48rem) {
  .bilingual {
    grid-template-columns: 1fr 1fr;
    padding: var(--space-2xl) var(--space-xl);
  }

  .bilingual__col + .bilingual__col {
    padding-inline-start: var(--space-l);
    border-inline-start: 2px dotted var(--orchidee);
  }
}

.bilingual__lang {
  margin-block-end: var(--space-2xs);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terre);
}

.bilingual__text {
  font-size: var(--fs-lg);
  line-height: 1.55;
}

/* ---------- Frise chronologique ---------- */
.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  inset-block: 0.5rem 0.5rem;
  inset-inline-start: 0.6rem;
  width: 3px;
  border-radius: 3px;
  background: var(--mandarine);
}

.timeline li {
  position: relative;
  margin: 0;
  padding-inline-start: 2.75rem;
}

.timeline li + li {
  margin-block-start: var(--space-xl);
}

.timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.3rem;
  width: 1.35rem;
  height: 1.35rem;
  border: 4px solid var(--rose-pale); /* couleur du fond de la section « Notre histoire » */
  border-radius: 50%;
  background: var(--orchidee);
  box-shadow: 0 0 0 2px var(--orchidee-texte);
}

.timeline__date {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terre);
}

.timeline__title {
  margin-block-start: var(--space-3xs);
  font-size: var(--fs-h3);
}

.timeline__text {
  margin-block-start: var(--space-2xs);
  color: var(--ink-muted);
}

/* ---------- Encadrés : aplats pleins, sans liseré ---------- */
.callout {
  display: flex;
  gap: var(--space-s);
  padding: var(--space-l);
  border-radius: var(--radius-l);
  background: var(--rose-pale);
}

/* Avertissement : aplat mandarine, pastille blanche, texte à l'encre (6,1:1) */
.callout--warn {
  background: var(--mandarine);
  color: var(--ink);
}

.callout--warn > .icon {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  border-radius: 50%;
  background: var(--blanc);
  color: var(--ink);
}

.callout--warn a:hover {
  background-color: var(--blanc);
}

.callout__title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
}

.callout__body > * + * {
  margin-block-start: var(--space-2xs);
}

/* ---------- Questions / réponses (accordéon natif) ---------- */
/* La liste garde une largeur de lecture, mais reste alignée sur le bord gauche de la page. */
.faq {
  max-width: var(--wrap-narrow);
  border-block-start: 1px solid var(--line-strong);
}

.faq details {
  border-block-end: 1px solid var(--line-strong);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  min-height: 3.5rem;
  padding-block: var(--space-s);
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: var(--lh-snug);
  text-wrap: balance;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  content: "+" / "";
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--rose);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
  content: "−" / "";
}

.faq__answer {
  padding-block-end: var(--space-m);
  max-width: 68ch;
  color: var(--ink-muted);
}

.faq__answer > * + * {
  margin-block-start: var(--space-xs);
}

/* Citation posée sur une section blanche : aplat rose clair pour la détacher */
.bilingual--single {
  grid-template-columns: 1fr;
  background: var(--rose-pale);
}

.bilingual__caption {
  margin-block-start: var(--space-s);
  color: var(--ink-muted);
  font-size: var(--fs-sm);
}

/* 07-pages.css */
/* =========================================================================
   Héros et sections propres à certaines pages
   ========================================================================= */

/* ---------- Héro d'accueil ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-xl) var(--space-2xl);
  background: var(--creme);
  isolation: isolate;
}

.hero__grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 60rem) {
  .hero {
    padding-block: var(--space-2xl) var(--space-3xl);
  }

  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-2xl);
  }
}

/* Titre d'accueil : le nom du collectif tel que MADI l'écrit sur Instagram
   (« Collectif Féministe LBQ en Haïti »). « LBQ » porte l'accent : rose orchidée sur un
   trait de pinceau abricot. */
.hero__title {
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero__title-accent {
  position: relative;
  display: inline-block;
  color: var(--orchidee-texte);
}

/* Trait de pinceau sous « LBQ » */
.hero__title-accent::after {
  content: "";
  position: absolute;
  inset-inline: -0.06em -0.1em;
  inset-block-end: -0.04em;
  height: 0.2em;
  border-radius: 999px 40% 999px 30%;
  background: var(--abricot);
  transform: rotate(-2deg);
  z-index: -1;
}

.hero__subtitle {
  margin-block-start: var(--space-m);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: var(--lh-snug);
}

.hero__text {
  margin-block-start: var(--space-s);
  max-width: 38rem;
  font-size: var(--fs-lg);
  color: var(--ink-muted);
}

/* Visuel coucher de soleil en arche (en attendant des photos consenties) : des aplats
   francs, dans l'ordre des bandes du drapeau lesbien adouci (mandarine, abricot, soleil
   blanc, mer rose dragée et orchidée). */
/* Sur téléphone, le visuel reste plus petit pour que le ruban des valeurs arrive vite. */
.hero__visual {
  --sunset-width: 16rem;
  width: min(100%, calc(var(--sunset-width) + 2 * var(--space-xl)));
  margin-inline: auto;
}

@media (min-width: 48rem) {
  .hero__visual {
    --sunset-width: 30rem;
  }
}

.sunset {
  position: relative;
  width: min(100%, var(--sunset-width));
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--arch);
  overflow: hidden;
  isolation: isolate;
  background: var(--peche);
}

/* Ciel en bandes nettes, sans dégradé */
.sunset__sky {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 30fr 16fr 10fr 44fr;
}

.sunset__sky::before,
.sunset__sky::after {
  content: "";
}

.sunset__sky::before {
  grid-row: 2;
  background: var(--abricot);
}

.sunset__sky::after {
  grid-row: 3;
  background: var(--mandarine);
}

/* Soleil : un disque plein posé sur l'horizon */
.sunset::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset-inline-start: 27%;
  inset-block-start: 38%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blanc);
}

/* Mer : deux aplats qui passent devant le soleil */
.sunset::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 56% 0 0;
  background: var(--rose);
  border-block-start: 0.9rem solid var(--blanc);
  box-shadow: inset 0 -5.5rem 0 var(--orchidee);
}

.sunset__arcs {
  position: absolute;
  z-index: 3;
  inset-inline: 8%;
  inset-block-start: 8%;
  color: var(--blanc);
}

.hero__founding {
  display: grid;
  grid-template-columns: 1fr min(100%, var(--sunset-width)) 1fr;
  justify-items: end;
  row-gap: var(--space-3xs);
  margin-block-start: var(--space-xs);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  line-height: var(--lh-snug);
  text-align: end;
}

.hero__founding .kicker {
  margin: 0;
  grid-column: 2;
}

.hero__founding .kicker::before {
  content: none;
}

.hero__founding time {
  color: var(--orchidee-texte);
  grid-column: 1 / -1;
  font-size: clamp(1.625rem, 1.35rem + 0.85vw, 2rem);
  font-weight: 700;
  line-height: var(--lh-tight);
}

@media print {
  .hero__visual {
    break-inside: avoid;
  }
}

/* Ruban des valeurs (kreyòl, d'après la plaquette de MADI) */
.ribbon {
  background: var(--orchidee);
  color: var(--ink);
}

/* Le point blanc est centré entre deux valeurs : même écart (--ribbon-gap) de chaque côté. */
.ribbon__list {
  --ribbon-gap: var(--space-m);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2xs) var(--ribbon-gap);
  margin-block: 0; /* les marges latérales automatiques de .wrap centrent la liste */
  padding: var(--space-m) 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 0.9rem + 1.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ribbon__list li {
  display: inline-flex;
  align-items: center;
  gap: var(--ribbon-gap);
  margin: 0;
}

.ribbon__list li + li::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--blanc);
}

/* Téléphone : les trois valeurs tiennent sur une ligne, sans point en début de ligne. */
@media (max-width: 29.99rem) {
  .ribbon__list {
    --ribbon-gap: var(--space-xs);
    font-size: 1.0625rem;
  }
}

/* Écran très étroit : une valeur par ligne, sans séparateur. */
@media (max-width: 22.49rem) {
  .ribbon__list {
    flex-direction: column;
    align-items: center;
  }

  .ribbon__list li + li::before {
    display: none;
  }
}

/* ---------- Héro des pages intérieures ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-2xl) var(--space-xl);
  background: var(--peche);
  isolation: isolate;
}

.page-hero__motif {
  position: absolute;
  z-index: -1;
  inset-inline-end: -4rem;
  inset-block-start: 50%;
  width: clamp(18rem, 40vw, 34rem);
  translate: 0 -45%;
  color: rgb(216 111 174 / 0.3);
}

.page-hero__title {
  max-width: 18ch;
}

.page-hero__kreyol {
  margin-block-start: var(--space-xs);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--orchidee-texte);
}

.page-hero__lede {
  margin-block-start: var(--space-m);
  max-width: 40rem;
  font-size: var(--fs-lg);
}

/* ---------- Bloc d'appel à l'action ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: var(--space-xl) var(--space-l);
  border-radius: var(--radius-l);
  background: var(--orchidee);
  color: var(--ink);
  isolation: isolate;
}

@media (min-width: 48rem) {
  .cta-band {
    padding: var(--space-2xl) var(--space-xl);
  }
}

.cta-band__motif {
  position: absolute;
  z-index: -1;
  inset-inline-end: -3rem;
  inset-block-end: -4rem;
  width: 24rem;
  color: rgb(255 188 88 / 0.55);
}

/* Téléphone : moins de marge intérieure, et le motif recule dans le coin, sous les boutons. */
@media (max-width: 29.99rem) {
  .cta-band {
    padding-inline: var(--space-s);
  }

  .cta-band__motif {
    inset-inline-end: -5rem;
    inset-block-end: -6rem;
    width: 16rem;
  }
}

/* Bouton à contour sur l'aplat : fond plein, pour que le motif ne se voie pas au travers. */
.cta-band .btn--secondary:not(:hover) {
  background: var(--orchidee);
}

.cta-band h2 {
  max-width: 22ch;
}

.cta-band p {
  max-width: 40rem;
  font-size: var(--fs-lg);
}


/* ---------- Bloc « Notre histoire » ---------- */
.story-figure {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: min(100%, 16rem);
  margin-inline: auto;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  background: var(--orchidee);
  color: var(--ink);
  text-align: center;
}

.story-figure__number {
  font-family: var(--font-display);
  font-size: clamp(5rem, 3rem + 10vw, 9rem);
  font-weight: 800;
  line-height: 0.9;
}

.story-figure__label {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
}

/* Les arches restent sous le texte « ans de lutte », sans le traverser. */
.story-figure .motif {
  position: absolute;
  z-index: -1;
  inset-inline: 14%;
  inset-block-end: -24%;
  color: var(--abricot);
}

@media (min-width: 48rem) {
  .story-figure {
    width: min(100%, 26rem);
  }
}

/* ---------- Page 404 ---------- */
.notfound {
  padding-block: var(--space-3xl);
  text-align: center;
}

.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 3rem + 12vw, 10rem);
  font-weight: 800;
  line-height: 1;
  color: var(--orchidee-texte);
}

.notfound .btn-row {
  justify-content: center;
}

.notfound__langs > * + * {
  margin-block-start: var(--space-l);
}

/* 08-inner.css */
/* =========================================================================
   Blocs des pages intérieures (collectif, actions, agir, ressources,
   contact, confidentialité)
   ========================================================================= */

/* ---------- Vision (Le collectif) ---------- */
.vision {
  position: relative;
  overflow: hidden;
  /* Arche elliptique de hauteur fixe : un bloc large garde un dôme bas, qui ne rogne pas le texte. */
  padding: var(--space-2xl) var(--space-l) var(--space-2xl);
  border-radius: 50% 50% var(--radius-m) var(--radius-m) / 5rem 5rem var(--radius-m) var(--radius-m);
  background: var(--rose);
  isolation: isolate;
}

.vision .kicker {
  color: var(--ink);
}

.vision__text {
  margin-block-start: var(--space-s);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: var(--lh-snug);
}

.vision__leaf {
  position: absolute;
  z-index: -1;
  inset-inline-end: -1.5rem;
  inset-block-end: -2.5rem;
  width: 7rem;
  color: rgb(216 111 174 / 0.45);
  transform: rotate(18deg);
}

/* ---------- Manifeste « La lutte continue » ---------- */
.manifesto {
  display: grid;
  gap: var(--space-s);
  margin: var(--space-l) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .manifesto {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-m) var(--space-xl);
  }
}

.manifesto li {
  position: relative;
  margin: 0;
  padding-inline-start: var(--space-l);
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: var(--lh-snug);
}

.manifesto li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.45em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--blanc);
}

.manifesto__closing {
  margin-block-start: var(--space-xl);
  max-width: 48rem;
  font-size: var(--fs-lg);
  font-weight: 600;
}

/* ---------- Trois langues ---------- */
.lang-trio {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-s);
  margin: var(--space-l) 0 0;
  padding: 0;
  list-style: none;
}

/* Sans cette remise à zéro, la marge générale « li + li » décale les pastilles 2 et 3 vers le bas. */
.lang-trio li {
  margin: 0;
}

.lang-trio a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--orchidee);
  border-radius: var(--radius-pill);
  background: var(--blanc);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
}

.lang-trio a:hover,
.lang-trio a[aria-current] {
  background: var(--orchidee);
  color: var(--ink);
}

@media (forced-colors: active) {
  .lang-switch__link[aria-current],
  .nav__link[aria-current],
  .lang-trio a[aria-current] {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
}

/* ---------- Liens d'ancrage (Agir) ---------- */
.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-block: 0;
  padding: 0;
  list-style: none;
  counter-reset: jump;
}

.jump-links li {
  counter-increment: jump;
}

.jump-links a {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-xs);
  min-height: 2.75rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--peche);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
}

.jump-links a::before {
  content: counter(jump, decimal-leading-zero);
  color: var(--terre);
  font-weight: 800;
}

.jump-links a:hover {
  background: var(--orchidee);
  color: var(--ink);
}

.jump-links a:hover::before {
  color: var(--ink);
}

/* ---------- Étapes (bénévolat) : lignes numérotées, pas de cartes ---------- */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-block-end: 2px solid var(--ink);
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: var(--space-s);
  align-items: baseline;
  margin: 0;
  padding-block: var(--space-m);
  border-block-start: 2px solid var(--ink);
  font-size: var(--fs-lg);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 800;
  line-height: 1;
  color: var(--orchidee-texte);
}

.checklist--panel {
  padding: var(--space-l);
  border-radius: var(--radius-l);
  background: var(--blanc);
  font-size: var(--fs-lg);
}

.btn-row--center {
  justify-content: center;
}

/* ---------- Trouver de l'aide (Ressources) ---------- */
.help-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

/* Le carrousel des organisations ne doit pas élargir sa colonne. */
.help-grid > * {
  min-width: 0;
}

@media (min-width: 60rem) {
  .help-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

.note {
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}

/* ---------- Lexique ---------- */
.glossary {
  display: grid;
  gap: var(--space-m);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .glossary {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .glossary {
    grid-template-columns: repeat(3, 1fr);
  }
}

.glossary__item {
  margin: 0;
  padding-block: var(--space-s) var(--space-m);
  border-block-start: 2px solid var(--ink);
}

.glossary__term {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 800;
}

.glossary__ht {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--terre);
}

.glossary__def {
  margin: var(--space-2xs) 0 0;
  color: var(--ink-muted);
}

/* ---------- Contact ---------- */
.tips {
  margin-block-start: var(--space-xl);
}

.tips .checklist {
  margin-block-start: var(--space-s);
}

.official__thanks {
  margin-block-start: var(--space-l);
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--terre);
}

/* ---------- Mentions légales ---------- */
.legal-list {
  display: grid;
  gap: var(--space-s);
  margin: 0;
}

.legal-list > div {
  display: grid;
  gap: var(--space-3xs);
  padding-block-end: var(--space-s);
  border-block-end: 1px solid var(--line);
}

@media (min-width: 40rem) {
  .legal-list > div {
    grid-template-columns: 10rem 1fr;
    gap: var(--space-m);
  }
}

.legal-list dt {
  font-weight: 700;
}

.legal-list dd {
  margin: 0;
}

/* 09-cards.css */
/* =========================================================================
   Cartes illustrées (vcard) et jeux de cartes (deck)
   Petit écran : carrousel horizontal (scroll-snap) qui laisse voir le bord de la
   carte suivante. À partir de 60rem : grille aux colonnes décalées en hauteur.
   ========================================================================= */

/* ---------- Jeu de cartes ---------- */
.deck {
  --deck-lift: 3rem;
  position: relative;
}

.deck__track {
  display: flex;
  gap: var(--space-s);
  margin: 0 calc(-1 * var(--gutter));
  padding: var(--space-2xs) var(--gutter) var(--space-s);
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
}

.deck__track,
.rail__track {
  scrollbar-width: thin;
}

.has-js .deck__track,
.has-js .rail__track {
  scrollbar-width: none;
}

.has-js .deck__track::-webkit-scrollbar,
.has-js .rail__track::-webkit-scrollbar {
  display: none;
}

.deck__track:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.deck__slide {
  flex: 0 0 min(80%, 21rem);
  margin: 0;
  scroll-snap-align: start;
}

/* Boutons et compteur (affichés seulement avec le script, et seulement en carrousel) */
.has-js .deck__nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-block-start: var(--space-xs);
}

/* Rien à faire défiler (toutes les cartes tiennent) : pas de boutons */
.has-js .deck__nav[hidden] {
  display: none;
}

.deck__btn {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.deck__btn:hover {
  background: var(--orchidee);
  color: var(--ink);
}

.deck__btn[aria-disabled="true"],
.deck__btn[aria-disabled="true"]:hover {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink-muted);
  cursor: default;
}

/* Sur aplat orchidée : survol blanc */
.section--orchidee .deck__btn:hover {
  background: var(--blanc);
}

.deck__btn--prev .icon {
  transform: scaleX(-1);
}

.deck__counter {
  min-width: 4.5ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

@media (min-width: 60rem) {
  .deck__track {
    display: grid;
    grid-template-columns: repeat(var(--deck-cols, 3), minmax(0, 1fr));
    gap: var(--space-m);
    margin: 0;
    padding: 0 0 var(--deck-lift);
    overflow: visible;
  }

  .has-js .deck__nav {
    display: none;
  }

  .deck__slide {
    --lift: 0rem;
    translate: 0 var(--lift);
  }

  .deck--3,
  .deck--6 {
    --deck-cols: 3;
  }

  .deck--4 {
    --deck-cols: 4;
  }

  /* Cinq cartes : trois en haut, deux centrées dessous. La carte 2, décalée vers le bas,
     partage une colonne avec la carte 4 : l'écart entre rangées absorbe le décalage. */
  .deck--5 {
    --deck-cols: 6;
  }

  .deck--5 .deck__track {
    row-gap: calc(var(--space-m) + var(--deck-lift));
  }

  .deck--5 .deck__slide {
    grid-column: span 2;
  }

  .deck--5 .deck__slide:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .deck--resources,
  .deck--duo,
  .deck--2 {
    --deck-cols: 2;
  }

  /* Une seule carte (par exemple une seule activité annoncée) : une colonne étroite. */
  .deck--1 .deck__track {
    grid-template-columns: minmax(0, 24rem);
  }

  .deck--3 .deck__slide:nth-child(3n + 2),
  .deck--6 .deck__slide:nth-child(3n + 2),
  .deck--4 .deck__slide:nth-child(even),
  .deck--5 .deck__slide:nth-child(2),
  .deck--5 .deck__slide:nth-child(5) {
    --lift: var(--deck-lift);
  }
}

/* ---------- Carte illustrée ---------- */
.vcard {
  --panel: var(--orchidee);
  --panel-fg: var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--panel);
  color: var(--panel-fg);
  isolation: isolate;
}

/* Quatre teintes du drapeau adouci en alternance, toutes avec l'encre (≥ 4,9:1) */
.deck__slide:nth-child(4n + 2) .vcard {
  --panel: var(--abricot);
}

.deck__slide:nth-child(4n + 3) .vcard {
  --panel: var(--rose);
}

.deck__slide:nth-child(4n + 4) .vcard {
  --panel: var(--mandarine);
}

.vcard__art {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--peche);
  transform-origin: 50% 0;
  transition: scale var(--dur-med) var(--ease-out);
}

/* Panneau en arche : il commence à mi-hauteur de l'illustration (marge relative à la largeur). */
.vcard__panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-xs);
  margin-block-start: 58%;
  padding: var(--space-l) var(--space-m) var(--space-m);
  border-radius: 50% 50% 0 0 / 2.75rem 2.75rem 0 0;
  background: var(--panel);
}

.vcard__date {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* La date tient sur une ligne : sa taille suit la largeur du panneau (quatre colonnes étroites
   sur tablette paysage, carte large sur téléphone). */
@supports (container-type: inline-size) {
  .deck--dates .vcard__panel {
    container-type: inline-size;
  }

  .deck--dates .vcard__date {
    font-size: clamp(var(--fs-h4), 11.5cqi, var(--fs-h2)); /* « Septembre 2026 » tient */
    white-space: nowrap;
  }
}

.vcard__meta {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vcard__title {
  color: inherit;
  font-size: var(--fs-h4);
  line-height: var(--lh-snug);
}

.vcard__body > * + * {
  margin-block-start: var(--space-xs);
}

/* Le survol ne change pas la couleur : la teinte de lien du site serait illisible sur
   certains panneaux. Le signal de survol est l'illustration qui grandit. Pas de flèche
   systématique : seule une icône « lien externe » signale un lien vers un autre site. */
.vcard__body a,
.vcard__link,
.vcard__link:hover {
  color: inherit;
}

.vcard__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  margin-block-start: auto;
  padding-block-start: var(--space-2xs);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

/* Toute la carte est cliquable ; le lien reste le seul élément focalisable. */
.vcard__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* L'anneau de focus passe du lien à la carte entière, seulement si le navigateur
   comprend :has() ; sinon le lien garde l'anneau de focus général du site. */
@supports selector(:has(*)) {
  .vcard__link:focus-visible {
    outline: none;
  }

  .vcard:has(.vcard__link:focus-visible) {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
  }
}

.vcard:has(.vcard__link):hover .vcard__art {
  scale: 1.05;
}


/* ---------- Impression : toutes les cartes, en grille, sans boutons ---------- */
@media print {
  .deck__track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .deck__track,
  .deck--5 .deck__track {
    row-gap: var(--space-m);
  }

  .deck__slide,
  .deck--5 .deck__slide,
  .deck--5 .deck__slide:nth-child(4) {
    grid-column: auto;
    translate: none;
    break-inside: avoid;
  }

  .has-js .deck__nav {
    display: none;
  }
}

/* ---------- Carte « Écrire à MADI » (Ressources) ---------- */
.help-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding: var(--space-2xl) var(--space-l) var(--space-xl);
  border-radius: 50% 50% var(--radius-l) var(--radius-l) / 5rem 5rem var(--radius-l) var(--radius-l);
  background: var(--orchidee);
  color: var(--ink);
}

.help-card__title {
  font-size: var(--fs-h3);
}

.help-card a {
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.help-card a:hover {
  background-color: var(--blanc);
}

.help-card__links {
  display: grid;
  gap: var(--space-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-card__links li {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  margin: 0;
}

.help-card__links .icon {
  color: var(--blanc);
}

.help-card__links a,
.help-card__cta,
a.channels__value {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.help-card__cta {
  gap: var(--space-2xs);
  align-self: flex-start;
  margin-block-start: var(--space-2xs);
  font-family: var(--font-display);
}

/* ---------- Canaux de contact : lignes, pas de cartes ---------- */
.channels {
  margin: 0;
  border-block-end: 2px solid var(--ink);
}

.channels__row {
  display: grid;
  gap: var(--space-2xs);
  padding-block: var(--space-m);
  border-block-start: 2px solid var(--ink);
}

@media (min-width: 48rem) {
  .channels__row {
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: var(--space-l);
    align-items: baseline;
  }
}

.channels__label {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terre);
}

.channels dd {
  margin: 0;
}

.channels__value {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 800;
  line-height: var(--lh-snug);
  color: var(--ink);
  overflow-wrap: anywhere;
}

a.channels__value:hover {
  color: var(--orchidee-texte);
}

.channels__value .icon {
  color: var(--orchidee-texte);
}

.channels__hint {
  margin-block-start: var(--space-3xs);
  color: var(--ink-muted);
}

.channels__social {
  display: grid;
  gap: var(--space-m);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .channels__social {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 10-motion.css */
/* =========================================================================
   Mouvement : héros animés au chargement, apparitions au défilement.
   Aucun fondu : des découpes (clip-path), des déplacements et des rotations.
   Tout est réservé à l'écran et à qui n'a pas demandé moins d'animations.
   Les états de départ des apparitions n'existent que sous .has-reveal, classe
   posée par reveal.js : sans script, tout est visible d'emblée.
   ========================================================================= */

@keyframes slot-rise {
  from {
    clip-path: inset(100% -1em -1em -1em);
    translate: 0 0.5em;
  }
  to {
    clip-path: inset(-1em);
    translate: 0 0;
  }
}

@keyframes arch-open {
  from {
    clip-path: circle(0% at 50% 100%);
  }
  to {
    clip-path: circle(120% at 50% 100%);
  }
}

@keyframes sun-climb {
  from {
    translate: 0 70%;
  }
  to {
    translate: 0 0;
  }
}

@keyframes curtain-up {
  from {
    clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(0);
  }
}

@media screen and (prefers-reduced-motion: no-preference) {
  /* ---------- Héros : au chargement, sans script ---------- */
  .hero__title,
  .hero__subtitle,
  .hero__text,
  .hero .btn-row,
  .page-hero__title,
  .page-hero__kreyol,
  .page-hero__lede {
    animation: slot-rise 900ms var(--ease-out) backwards;
  }

  .hero__subtitle,
  .page-hero__kreyol {
    animation-delay: 120ms;
  }

  .hero__text,
  .page-hero__lede {
    animation-delay: 240ms;
  }

  .hero .btn-row {
    animation-delay: 360ms;
  }

  .sunset {
    animation: arch-open 1300ms var(--ease-out) 150ms backwards;
  }

  .sunset::after {
    animation: sun-climb 1800ms var(--ease-out) 350ms backwards;
  }

  .page-hero__motif {
    animation: curtain-up 1400ms var(--ease-out) 100ms backwards;
  }

  /* ---------- rise : les éléments sortent d'une fente, l'un après l'autre ---------- */
  .has-reveal [data-reveal="rise"] > * {
    transition: clip-path 800ms var(--ease-out), translate 800ms var(--ease-out);
  }

  .has-reveal [data-reveal="rise"]:not(.is-revealed) > * {
    clip-path: inset(100% -1em -1em -1em);
    translate: 0 1.5rem;
  }

  .has-reveal [data-reveal="rise"].is-revealed > * {
    clip-path: inset(-1em);
  }

  .has-reveal [data-reveal="rise"] > :nth-child(2) {
    transition-delay: 110ms;
  }

  .has-reveal [data-reveal="rise"] > :nth-child(3) {
    transition-delay: 220ms;
  }

  /* ---------- deal : les cartes sont distribuées, montent et se redressent ---------- */
  .has-reveal [data-reveal="deal"] {
    --deal-drop: 2.5rem;
  }

  .has-reveal [data-reveal="deal"] > * {
    transform-origin: 50% 100%;
    transition: translate 900ms var(--ease-out), rotate 900ms var(--ease-out);
  }

  /* La découpe porte sur la carte, pas sur l'élément de liste : une découpe animée sur les
     zones d'aimantation du carrousel fait s'arrêter Chrome à côté de la carte visée. */
  .has-reveal [data-reveal="deal"] > * > * {
    transition: clip-path 900ms var(--ease-out);
    transition-delay: inherit;
  }

  .has-reveal [data-reveal="deal"]:not(.is-revealed) > * {
    translate: 0 calc(var(--lift, 0rem) + var(--deal-drop));
    rotate: -6deg;
  }

  .has-reveal [data-reveal="deal"]:not(.is-revealed) > * > * {
    clip-path: inset(100% 0 0 0 round var(--radius-l));
  }

  .has-reveal [data-reveal="deal"]:not(.is-revealed) > :nth-child(even) {
    rotate: 6deg;
  }

  .has-reveal [data-reveal="deal"].is-revealed > * > * {
    clip-path: inset(-3rem round var(--radius-l));
  }

  .has-reveal [data-reveal="deal"] > :nth-child(2) { transition-delay: 110ms; }
  .has-reveal [data-reveal="deal"] > :nth-child(3) { transition-delay: 220ms; }
  .has-reveal [data-reveal="deal"] > :nth-child(4) { transition-delay: 330ms; }
  .has-reveal [data-reveal="deal"] > :nth-child(5) { transition-delay: 440ms; }
  .has-reveal [data-reveal="deal"] > :nth-child(6) { transition-delay: 550ms; }

  /* ---------- sweep : un aplat balayé de gauche à droite, comme un coup de pinceau ---------- */
  .has-reveal [data-reveal="sweep"] {
    transition: clip-path 1000ms var(--ease-out);
  }

  .has-reveal [data-reveal="sweep"]:not(.is-revealed) {
    clip-path: inset(0 100% 0 0 round var(--radius-l));
  }

  .has-reveal [data-reveal="sweep"].is-revealed {
    clip-path: inset(-1rem round var(--radius-l));
  }

  /* ---------- sun : une forme qui se lève depuis l'horizon ---------- */
  .has-reveal [data-reveal="sun"] {
    transition: clip-path 1100ms var(--ease-out);
  }

  .has-reveal [data-reveal="sun"]:not(.is-revealed) {
    clip-path: circle(0% at 50% 100%);
  }

  .has-reveal [data-reveal="sun"].is-revealed {
    clip-path: circle(150% at 50% 100%);
  }

  /* ---------- draw : le fil de la frise se trace, puis chaque étape glisse ---------- */
  .has-reveal [data-reveal="draw"]::before {
    transform-origin: 50% 0;
    transition: scale 1400ms var(--ease-out);
  }

  .has-reveal [data-reveal="draw"]:not(.is-revealed)::before {
    scale: 1 0;
  }

  .has-reveal [data-reveal="draw"] > * {
    transition: clip-path 700ms var(--ease-out), translate 700ms var(--ease-out);
  }

  .has-reveal [data-reveal="draw"]:not(.is-revealed) > * {
    clip-path: inset(0 100% 0 0);
    translate: -1rem 0;
  }

  .has-reveal [data-reveal="draw"].is-revealed > * {
    clip-path: inset(-1rem);
  }

  .has-reveal [data-reveal="draw"] > :nth-child(2) { transition-delay: 300ms; }
  .has-reveal [data-reveal="draw"] > :nth-child(3) { transition-delay: 600ms; }
  .has-reveal [data-reveal="draw"] > :nth-child(4) { transition-delay: 900ms; }
  .has-reveal [data-reveal="draw"] > :nth-child(5) { transition-delay: 1200ms; }

  /* ---------- stagger : les lignes d'une liste se dévoilent tour à tour ---------- */
  .has-reveal [data-reveal="stagger"] > * {
    transition: clip-path 700ms var(--ease-out), translate 700ms var(--ease-out);
  }

  .has-reveal [data-reveal="stagger"]:not(.is-revealed) > * {
    clip-path: inset(0 100% 0 0);
    translate: -1.5rem 0;
  }

  .has-reveal [data-reveal="stagger"].is-revealed > * {
    clip-path: inset(-1rem);
  }

  .has-reveal [data-reveal="stagger"] > :nth-child(2) { transition-delay: 90ms; }
  .has-reveal [data-reveal="stagger"] > :nth-child(3) { transition-delay: 180ms; }
  .has-reveal [data-reveal="stagger"] > :nth-child(4) { transition-delay: 270ms; }
  .has-reveal [data-reveal="stagger"] > :nth-child(5) { transition-delay: 360ms; }
  .has-reveal [data-reveal="stagger"] > :nth-child(6) { transition-delay: 450ms; }
  .has-reveal [data-reveal="stagger"] > :nth-child(n + 7) { transition-delay: 540ms; }

  /* Révélé par le focus clavier : tout de suite, sans transition ni délai */
  .has-reveal [data-reveal].is-instant,
  .has-reveal [data-reveal].is-instant::before,
  .has-reveal [data-reveal].is-instant > *,
  .has-reveal [data-reveal="deal"].is-instant > * > * {
    transition: none;
  }
}

@media screen and (prefers-reduced-motion: no-preference) and (min-width: 60rem) {
  .has-reveal [data-reveal="deal"] {
    --deal-drop: 5rem;
  }
}

/* 11-rails.css */
/* =========================================================================
   Rails : longues listes en carrousel de panneaux, sur téléphone seulement
   (missions, frise, manifeste, étapes, partenaires, lexique).
   Chaque élément devient un panneau plein, coiffé d'une arche basse, avec les
   arches de MADI dessinées au dos. À partir de 48rem, chaque liste retrouve sa
   propre mise en page (06-components, 08-inner) et les boutons disparaissent
   d'eux-mêmes, puisque plus rien ne défile.
   ========================================================================= */

@media screen and (max-width: 47.99rem) {
  .rail {
    --rail-panel: var(--blanc);
    --rail-text: var(--ink);
    --rail-motif: rgb(244 135 75 / 0.3);
  }

  .section--blanc .rail {
    --rail-panel: var(--peche);
  }

  .section--creme .rail {
    --rail-panel: var(--rose);
  }

  .section--orchidee .rail {
    --rail-panel: var(--blanc);
    --rail-motif: rgb(216 111 174 / 0.3);
  }

  /* La liste : même défilement que les jeux de cartes */
  .rail .rail__track {
    display: flex;
    gap: var(--space-s);
    margin-inline: calc(-1 * var(--gutter));
    padding: var(--space-2xs) var(--gutter) var(--space-s);
    border: 0;
    border-radius: 0;
    background: none;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
  }

  .rail .rail__track:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: -3px;
  }

  /* Le panneau */
  .rail .rail__track > li {
    position: relative;
    isolation: isolate;
    display: block;
    flex: 0 0 min(82%, 20rem);
    margin: 0;
    padding: 2.5rem var(--space-m) var(--space-l);
    overflow: hidden;
    border: 0;
    border-radius: 50% 50% var(--radius-l) var(--radius-l) / 2.5rem 2.5rem var(--radius-l) var(--radius-l);
    background: var(--rail-panel);
    color: var(--rail-text);
    scroll-snap-align: start;
  }

  /* Les arches de MADI, au dos du panneau */
  .rail .rail__track > li::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset-inline-end: -1.75rem;
    inset-block-end: -1.25rem;
    width: 8.5rem;
    aspect-ratio: 545 / 377;
    background-color: var(--rail-motif);
    -webkit-mask: url("/assets/img/motif-arcs.svg") center / contain no-repeat;
    mask: url("/assets/img/motif-arcs.svg") center / contain no-repeat;
    pointer-events: none;
  }

  /* ---------- Ce que chaque liste garde, ou laisse, dans son panneau ---------- */

  /* Frise : ni fil ni pastille, la date suffit */
  .rail .timeline::before,
  .rail .timeline li::before {
    display: none;
  }

  /* Étapes : le numéro passe au-dessus du texte */
  .rail .steps li::before {
    display: block;
    margin-block-end: var(--space-xs);
  }

  /* Coches et puces : posées au-dessus du texte, comme un sceau */
  .rail .checklist li::before,
  .rail .manifesto li::before {
    position: static;
    display: block;
    margin-block-end: var(--space-xs);
  }

  .rail .checklist li::before {
    width: 1.75rem;
    height: 1.75rem;
    background-size: 1rem;
  }

  .rail .manifesto li::before {
    width: 1rem;
    height: 1rem;
    background: var(--orchidee);
  }

  .rail .checklist--panel {
    font-size: var(--fs-base);
  }

  .rail .manifesto {
    margin-block-start: 0;
  }
}

/* Sur téléphone, les panneaux glissent depuis la droite, l'un après l'autre.
   Seul translate bouge : un clip-path animé sur les panneaux dérègle l'aimantation du défilement. */
@media screen and (max-width: 47.99rem) and (prefers-reduced-motion: no-preference) {
  .has-reveal .rail [data-reveal] {
    clip-path: none;
  }

  .has-reveal .rail [data-reveal] > * {
    clip-path: none;
    transition: translate 850ms var(--ease-out);
  }

  .has-reveal .rail [data-reveal]:not(.is-revealed) > * {
    clip-path: none;
    translate: 3.5rem 0;
  }

  .has-reveal .rail [data-reveal].is-revealed > * {
    clip-path: none;
    translate: none;
  }

  .has-reveal .rail [data-reveal] > :nth-child(2) { transition-delay: 120ms; }
  .has-reveal .rail [data-reveal] > :nth-child(3) { transition-delay: 240ms; }
  .has-reveal .rail [data-reveal] > :nth-child(n + 4) { transition-delay: 360ms; }

  .has-reveal .rail [data-reveal].is-instant > * {
    transition: none;
  }
}

/* 12-activites-cahier.css */
/* =========================================================================
   Pages « Nos activités » et « Cahier de fierté »
   ========================================================================= */

/* ---------- Aucune activité annoncée : panneau en arche ---------- */
/* Aligné à gauche, comme le titre de section au-dessus ; seul son texte est centré. */
.empty-state {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  max-width: 52rem;
  padding: var(--space-2xl) var(--space-l) var(--space-xl);
  border-radius: 50% 50% var(--radius-l) var(--radius-l) / 5rem 5rem var(--radius-l) var(--radius-l);
  background: var(--rose);
  text-align: center;
}

.empty-state > p {
  max-width: 40rem;
  margin-inline: auto;
}

.empty-state__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 800;
  line-height: var(--lh-snug);
}

.empty-state > * + * {
  margin-block-start: var(--space-s);
}

.empty-state .btn-row {
  justify-content: center;
  margin-block-start: var(--space-m);
}

.empty-state__motif {
  position: absolute;
  z-index: -1;
  inset-inline-end: -2.5rem;
  inset-block-end: -3rem;
  width: 14rem;
  color: rgb(216 111 174 / 0.35);
}

.empty-state .btn--secondary:not(:hover) {
  background: var(--rose);
}

/* Téléphone : moins de marge intérieure, motif repoussé dans le coin. */
@media (max-width: 29.99rem) {
  .empty-state {
    padding-inline: var(--space-s);
  }

  .empty-state__motif {
    inset-inline-end: -4rem;
    inset-block-end: -5rem;
  }
}

/* ---------- Photos (avec consentement écrit) ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: var(--space-m);
  margin: var(--space-l) 0 0;
  padding: 0;
  list-style: none;
}

.photo {
  margin: 0;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-m);
  background: var(--peche);
}

.photo figcaption {
  margin-block-start: var(--space-2xs);
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}

.photo-remove {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-s) var(--space-m);
  max-width: 52rem;
  margin-block-start: var(--space-l);
  padding: var(--space-m) var(--space-l);
  border-radius: var(--radius-l);
  background: var(--rose-pale);
}

.photo-remove p {
  flex: 1 1 20rem;
  margin: 0;
}

/* ---------- Extrait du cahier : pages à faire défiler, à toutes les tailles d'écran ---------- */
.excerpt__track {
  display: flex;
  gap: var(--space-m);
  margin: 0 calc(-1 * var(--gutter));
  padding: var(--space-2xs) var(--gutter) var(--space-s);
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
}

/* Grand écran : la bande de pages court jusqu'aux bords de la fenêtre, au lieu d'être coupée
   dans le vide juste après la colonne de texte. La première page reste alignée sur le texte.
   La largeur de référence est celle de la section (cqw), pas 100vw qui compte la barre de
   défilement et ferait déborder la page. */
.section--excerpt {
  container-type: inline-size;
}

@media (min-width: 72rem) {
  .excerpt__track {
    --bleed: max(var(--gutter), (100cqw - var(--wrap)) / 2);
    margin-inline: calc(-1 * var(--bleed));
    padding-inline: var(--bleed);
    scroll-padding-inline: var(--bleed);
  }
}

.has-js .excerpt__track {
  scrollbar-width: none;
}

.has-js .excerpt__track::-webkit-scrollbar {
  display: none;
}

/* Sans le script, pas de boutons : une fine barre de défilement reste visible à la souris. */
html:not(.has-js) .excerpt__track {
  scrollbar-width: thin;
  scrollbar-color: var(--orchidee) transparent;
}

/* Contrairement aux jeux de cartes, l'extrait défile à toutes les tailles d'écran :
   ses boutons et son compteur restent affichés sur grand écran (09-cards.css les y masque). */
@media (min-width: 60rem) {
  .has-js .excerpt .deck__nav {
    display: flex;
  }

  .has-js .excerpt .deck__nav[hidden] {
    display: none;
  }
}

.excerpt__track:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.excerpt__page {
  flex: 0 0 min(78%, 19rem);
  margin: 0;
  scroll-snap-align: start;
}

@media (min-width: 48rem) {
  .excerpt__page {
    flex-basis: 17rem;
  }
}

@media (min-width: 72rem) {
  .excerpt__page {
    flex-basis: 19rem;
  }
}

.excerpt__figure {
  margin: 0;
}

.excerpt__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-s);
  background: var(--blanc);
  box-shadow: var(--shadow-soft);
}

.excerpt__number {
  margin-block-start: var(--space-xs);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-align: center;
  color: var(--ink-muted);
}

/* Dernière « page » : la fin de l'extrait mène à l'achat */
.excerpt__end {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--space-m);
  aspect-ratio: 420 / 594;
  padding: var(--space-l);
  border-radius: 50% 50% var(--radius-s) var(--radius-s) / 4rem 4rem var(--radius-s) var(--radius-s);
  background: var(--orchidee);
  color: var(--ink);
  text-align: center;
}

.excerpt__end-text {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 800;
  line-height: var(--lh-snug);
}

.excerpt__end-motif {
  position: absolute;
  z-index: -1;
  inset-inline-end: -2rem;
  inset-block-end: -1.5rem;
  width: 11rem;
  color: rgb(255 188 88 / 0.6);
}

@media (max-width: 29.99rem) {
  .excerpt__end {
    padding: var(--space-s);
  }
}

.excerpt__note {
  margin-block-start: var(--space-s);
}

/* ---------- Obtenir le cahier ---------- */
.buy {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

.buy > * {
  min-width: 0;
}

@media (min-width: 60rem) {
  .buy {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: var(--space-2xl);
  }
}

/* Illustration du livre ouvert (et non la couverture, déjà montrée en page 1 de l'extrait).
   Décorative : retirée sur téléphone pour garder la page courte. */
.buy__art {
  display: none;
}

@media (min-width: 60rem) {
  .buy__art {
    display: block;
    width: 100%;
    max-width: 22rem;
    margin: var(--space-l) auto 0;
  }

  .buy__art img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--arch);
  }
}

/* Informations (format, pages, prix) : de simples étiquettes à filet fin, pour ne pas
   ressembler aux boutons ; seul le prix est en aplat abricot. */
.buy__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  margin: var(--space-s) 0 0;
  padding: 0;
  list-style: none;
}

.buy__facts li {
  margin: 0;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.buy__facts .buy__price {
  border-color: transparent;
  background: var(--abricot);
  font-family: var(--font-display);
  font-weight: 700;
}

.buy .btn-row {
  margin-block-start: var(--space-m);
}

.buy__soon {
  margin-block-start: var(--space-m);
  padding: var(--space-m);
  border-radius: var(--radius-l);
  background: var(--blanc);
}

/* Deux boutons de même largeur, qu'ils tiennent sur une ligne ou passent l'un sous l'autre. */
.buy__soon .btn-row > .btn {
  flex: 1 1 auto;
}

@media (max-width: 29.99rem) {
  .buy__soon {
    padding-inline: var(--space-s);
  }
}

.buy__soon > * + * {
  margin-block-start: var(--space-xs);
}

.buy__soon-title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 800;
}

.buy__subtitle {
  margin-block-start: var(--space-xl);
  font-size: var(--fs-h4);
}

.buy__subtitle + * {
  margin-block-start: var(--space-s);
}

.buy__haiti > p {
  margin-block: var(--space-2xs) var(--space-s);
}
