/* Rendu des sites publics : styles de la maquette validée (« IDMF — Nouvelle landing page »). Sections sombres et
   claires alternées ; titres Space Grotesk, texte Inter, repères JetBrains Mono. Les couleurs d'accent viennent du
   thème de chaque site (élément <style> de la page) ; les valeurs ci-dessous sont celles par défaut. */

/* ---------- Polices (auto-hébergées, licence SIL OFL 1.1 : voir polices/LICENCES.txt) ---------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("polices/inter-latin.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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("polices/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("polices/space-grotesk-latin.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: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("polices/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("polices/jetbrains-mono-latin-400.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;
}

/* ---------- Couleurs et bases ---------- */

:root {
  --accent: #2F5BFF;
  --accent-sombre: #8FA8FF;
  --accent-fonce: #2242B8;
  --accent-pale: #EEF2FF;
  --erreur: #B42318; /* contraste 6,5:1 sur le blanc */
  --encre: #0B0F17;
  --gris-texte: #4A5363;
  --gris-bord: #E2E5EB;
  --gris-trait: #C9D0DC;
  --police-titres: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --police-texte: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --police-reperes: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --marge: 24px;
  /* Hauteur de l'en-tête fixe : 2 × 20 px de marge, 44 px de contenu, 1 px de bordure. */
  --hauteur-entete: 85px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Une section visée par une ancre s'arrête sous l'en-tête fixe, avec un peu d'air. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hauteur-entete) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Pied de page toujours en bas de l'écran, même sur une page courte. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  font-family: var(--police-texte);
  font-size: 16px;
  line-height: 1.55;
  color: var(--encre);
  background: #F4F5F7;
}

main {
  flex: 1 0 auto;
}

/* Texte lu par les lecteurs d'écran seulement. */
.masque {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

h1, h2, h3, p, ul, ol {
  margin: 0;
}

a {
  color: var(--lien, var(--accent));
}

a:hover {
  color: var(--lien-survol, var(--accent-fonce));
}

input, select, textarea, button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.conteneur {
  max-width: 1200px;
  margin-inline: auto;
}

.evitement {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--encre);
  font-weight: 600;
}

.evitement:focus {
  top: 16px;
}

/* ---------- Fonds des sections : chaque bloc choisit le sien, les couleurs s'y adaptent ---------- */

.fond-clair,
.fond-blanc {
  --titre: var(--encre);
  --texte: var(--gris-texte);
  --texte-doux: var(--gris-texte);
  --surtitre: var(--accent);
  --lien: var(--accent);
  --lien-survol: var(--accent-fonce);
  --separation: var(--gris-bord);
  --trait: var(--gris-trait);
  --point: var(--encre);
  --carte-bord: var(--gris-bord);
  --element: #F8F9FB;
  --element-bord: var(--gris-bord);
  --bandeau: var(--accent-pale);
  --bandeau-accent: var(--accent-fonce);
  color: var(--encre);
}

.fond-clair {
  --carte: #FFFFFF;
  background: #F4F5F7;
}

.fond-blanc {
  --carte: #F8F9FB;
  background: #FFFFFF;
}

.fond-sombre {
  --titre: #FFFFFF;
  --texte: #B4BCCB;
  --texte-doux: #A7B0C0;
  --surtitre: var(--accent-sombre);
  --lien: var(--accent-sombre);
  --lien-survol: #FFFFFF;
  --separation: #1E2533;
  --trait: #3A4458;
  --point: #FFFFFF;
  --carte: #121826;
  --carte-bord: #232B3B;
  --element: #1A2232;
  --element-bord: #262F42;
  --bandeau: #121826;
  --bandeau-accent: var(--accent-sombre);
  background: var(--encre);
  color: #FFFFFF;
}

.fond-sombre :focus-visible {
  outline-color: var(--accent-sombre);
}

.bloc {
  padding: clamp(72px, 9vw, 112px) var(--marge);
}

/* Deux sections du même fond se suivent : pas de double marge. */
.fond-clair + .fond-clair,
.fond-blanc + .fond-blanc,
.fond-sombre + .fond-sombre {
  padding-top: 0;
}

.fond-blanc + .fond-clair,
.fond-clair + .fond-blanc {
  border-top: 1px solid var(--gris-bord);
}

/* Section sans marge haute (même fond que la précédente) : un peu plus d'air quand une ancre la vise. */
.fond-clair + .fond-clair[id],
.fond-blanc + .fond-blanc[id],
.fond-sombre + .fond-sombre[id] {
  scroll-margin-top: 32px;
}

/* ---------- Textes communs ---------- */

.surtitre {
  margin-bottom: 16px;
  font-family: var(--police-reperes);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--surtitre);
}

.titre-section {
  max-width: 760px;
  font-family: var(--police-titres);
  font-weight: 700;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--titre);
  text-wrap: balance;
}

.intro {
  font-size: 18px;
  color: var(--texte);
}

.repere {
  font-family: var(--police-reperes);
  font-size: 14px;
  color: var(--surtitre);
}

.tete {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 64px;
  align-items: flex-end;
  justify-content: space-between;
}

.tete__titres {
  flex: 1 1 520px;
  min-width: 0;
}

.tete > .intro {
  flex: 1 1 360px;
  max-width: 460px;
}

/* ---------- Boutons et liens ---------- */

.boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 24px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.bouton:hover {
  border-color: var(--accent-fonce);
  background: var(--accent-fonce);
  color: #FFFFFF;
}

.bouton--grand {
  min-height: 52px;
  padding: 16px 28px;
  font-size: 17px;
}

.bouton--contour {
  border-color: var(--trait);
  background: transparent;
  color: var(--titre);
}

.bouton--contour:hover {
  border-color: var(--titre);
  background: transparent;
  color: var(--titre);
}

.bouton svg,
.lien-fleche svg {
  flex: none;
}

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
  color: var(--lien);
}

.lien-fleche:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.bloc__bouton {
  margin-top: 40px;
}

/* ---------- En-tête ---------- */

/* En-tête fixe en haut de l'écran pendant le défilement. */
.entete {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 20px var(--marge);
  border-bottom: 1px solid #1E2533;
  background: var(--encre);
}

.entete :focus-visible,
.pied :focus-visible {
  outline-color: var(--accent-sombre);
}

.entete__ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.marque {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #FFFFFF;
  text-decoration: none;
}

.marque:hover {
  color: #FFFFFF;
}

.marque__monogramme {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  font-family: var(--police-reperes);
  font-size: 14px;
  color: #FFFFFF;
}

.marque__nom {
  font-family: var(--police-titres);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
}

.entete__ligne {
  min-height: 44px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.menu__liste {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0;
  list-style: none;
}

.menu__element {
  position: relative;
}

.menu__lien {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-block: 10px;
  color: #C9D0DC;
  text-decoration: none;
}

.menu__lien:hover,
.menu__lien[aria-current="page"],
.menu__element--groupe:hover > .menu__lien,
.menu__element--groupe:focus-within > .menu__lien {
  color: #FFFFFF;
}

.menu__lien[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Sous-liens (pages de services) : au survol ou quand le clavier entre dans l'élément. */
.menu__sous {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 260px;
  padding: 8px;
  border: 1px solid #232B3B;
  border-radius: 12px;
  background: #121826;
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.35);
  list-style: none;
}

.menu__element--groupe:hover > .menu__sous,
.menu__element--groupe:focus-within > .menu__sous {
  display: block;
}

.menu__sous a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #C9D0DC;
  text-decoration: none;
}

.menu__sous a:hover,
.menu__sous a[aria-current="page"] {
  background: #1A2232;
  color: #FFFFFF;
}

.bouton--entete {
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 15px;
}

/* Téléphone et tablette : bouton « Menu », panneau ouvert par l'ancre #menu (:target), sans script. */
.menu-bouton,
.menu-mobile,
.menu-mobile__fond {
  display: none;
}

.menu-bouton {
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #3A4458;
  border-radius: 8px;
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
}

.menu-bouton:hover {
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.menu-mobile {
  position: fixed;
  top: var(--hauteur-entete);
  right: 0;
  left: 0;
  z-index: 30;
  max-height: calc(100dvh - var(--hauteur-entete));
  padding: 8px var(--marge) 28px;
  overflow-y: auto;
  border-bottom: 1px solid #1E2533;
  background: var(--encre);
}

.menu-mobile__liste {
  margin-bottom: 20px;
  padding: 0;
  list-style: none;
}

.menu-mobile__liste > li {
  border-bottom: 1px solid #1E2533;
}

.menu-mobile__lien,
.menu-mobile__sous a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.menu-mobile__sous {
  margin: -4px 0 8px;
  padding: 0 0 0 16px;
  list-style: none;
}

.menu-mobile__sous a {
  min-height: 44px;
  color: #C9D0DC;
  font-size: 16px;
  font-weight: 400;
}

.menu-mobile a[aria-current="page"] {
  color: var(--accent-sombre);
}

.menu-mobile__fond {
  position: fixed;
  inset: var(--hauteur-entete) 0 0;
  z-index: 25;
  background: rgb(11 15 23 / 0.6);
}

@media (max-width: 959px) {
  :root {
    --hauteur-entete: 69px;
  }

  .entete {
    padding-block: 12px;
  }

  .entete__ligne {
    flex-wrap: nowrap;
  }

  .menu {
    display: none;
  }

  .menu-bouton--ouvrir {
    display: inline-flex;
  }

  #menu:target {
    display: block;
  }

  #menu:target ~ .menu-mobile__fond {
    display: block;
  }

  .entete:has(#menu:target) .menu-bouton--ouvrir {
    display: none;
  }

  .entete:has(#menu:target) .menu-bouton--fermer {
    display: inline-flex;
  }
}

/* ---------- Accroche ---------- */

.bloc--accroche {
  padding-top: clamp(64px, 8vw, 96px);
}

.accroche {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
}

.accroche__texte {
  flex: 999 1 520px;
  min-width: 0;
}

.accroche .surtitre {
  margin-bottom: 24px;
}

.accroche__titre {
  font-family: var(--police-titres);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--titre);
  text-wrap: balance;
}

.accroche__titre .accent {
  color: var(--surtitre);
}

.accroche__intro {
  max-width: 620px;
  margin-top: 28px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--texte);
}

.points-forts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin-top: 56px;
  padding: 32px 0 0;
  border-top: 1px solid var(--separation);
  list-style: none;
}

.points-forts__titre {
  font-family: var(--police-titres);
  font-weight: 600;
  font-size: 20px;
  color: var(--titre);
}

.points-forts__texte {
  margin-top: 4px;
  font-size: 14px;
  color: var(--texte-doux);
}

.encadre {
  flex: 1 1 380px;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--carte-bord);
  border-radius: 16px;
  background: var(--carte);
}

.encadre__legende {
  margin-bottom: 20px;
  font-family: var(--police-reperes);
  font-size: 13px;
  color: var(--texte-doux);
}

.encadre__liste {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.encadre__element {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--element-bord);
  border-radius: 10px;
  background: var(--element);
}

.encadre__element .repere {
  font-size: 13px;
  color: var(--texte-doux);
}

.encadre__titre {
  font-weight: 600;
  font-size: 16px;
  color: var(--titre);
}

.encadre__texte {
  margin-top: 2px;
  font-size: 13px;
  color: var(--texte-doux);
}

.encadre__element--avant {
  border-color: var(--accent);
  background: var(--accent);
}

.encadre__element--avant .repere,
.encadre__element--avant .encadre__titre,
.encadre__element--avant .encadre__texte {
  color: #FFFFFF;
}

/* ---------- Titre d'une page sans accroche, pages d'erreur ---------- */

.entete-page {
  padding-top: clamp(56px, 7vw, 88px);
  padding-bottom: clamp(56px, 7vw, 88px);
}

.entete-page__titre {
  max-width: 900px;
  font-family: var(--police-titres);
  font-weight: 700;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--titre);
  text-wrap: balance;
}

.entete-page__texte {
  max-width: 620px;
  margin-top: 20px;
  font-size: 18px;
  color: var(--texte);
}

/* ---------- Texte ---------- */

.texte {
  max-width: 760px;
}

.texte__titre {
  margin-bottom: 24px;
  font-family: var(--police-titres);
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--titre);
  text-wrap: balance;
}

.texte__paragraphe,
.texte__points {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--texte);
}

.texte__points {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 22px;
}

.texte > :last-child {
  margin-bottom: 0;
}

.texte .bouton {
  margin-top: 12px;
}

/* ---------- Cartes ---------- */

/* Grilles : colonnes choisies par le gabarit selon le nombre d'éléments (jamais un élément seul sur sa ligne) :
   grand écran (1080 px et plus), écran moyen (760 px et plus), une colonne sur téléphone. */
.grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .grille--m2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grille--m3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
  .grille--g1 { grid-template-columns: minmax(0, 1fr); }
  .grille--g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grille--g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grille--g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grille--g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .grille--g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.cartes {
  margin-top: 56px;
}

.cartes--larges {
  margin-top: 48px;
}

/* Carte entièrement cliquable : son lien (« En savoir plus ») est étendu à toute la carte. */
.carte--lien {
  position: relative;
}

.carte--lien .carte__lien::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.carte--lien:hover {
  border-color: var(--accent);
}

.fond-sombre .carte--lien:hover {
  border-color: var(--accent-sombre);
}

.carte--lien:hover .carte__lien {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.carte--lien:has(.carte__lien:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.carte--lien .carte__lien:focus-visible {
  outline: none;
}

.carte {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--carte-bord);
  border-radius: 16px;
  background: var(--carte);
}

.carte--avant {
  padding: 31px;
  border: 2px solid var(--accent);
}

.fond-sombre .carte--avant {
  border-color: var(--accent-sombre);
}

.carte__icone {
  margin-bottom: 24px;
  color: var(--surtitre);
}

.carte .repere {
  margin-bottom: 16px;
}

.repere--neutre {
  font-size: 13px;
  color: var(--texte);
}

.carte .repere--neutre {
  margin-bottom: 12px;
}

.carte__titre {
  margin-bottom: 12px;
  font-family: var(--police-titres);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  color: var(--titre);
}

.carte__texte {
  font-size: 16px;
  color: var(--texte);
}

.carte__points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  padding-left: 18px;
  font-size: 15px;
  color: var(--texte);
}

.carte__lien {
  margin-top: auto;
  padding-top: 24px;
}

/* Côte à côte : titre, texte et bouton à gauche, cartes compactes à droite. */
.cote {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 56px 80px;
}

.cote__texte {
  flex: 1 1 440px;
  min-width: 0;
}

.cote__texte .intro {
  margin-top: 24px;
}

.cote__texte .bouton {
  margin-top: 32px;
}

.cote .cartes {
  flex: 1 1 440px;
  min-width: 0;
  gap: 16px;
  margin-top: 0;
}

.cote .carte {
  padding: 24px;
  border-radius: 14px;
}

.cote .carte--avant {
  padding: 23px;
}

.cote .carte__titre {
  margin-bottom: 8px;
  font-family: var(--police-texte);
  font-size: 17px;
}

.cote .carte__texte {
  font-size: 15px;
  color: var(--texte-doux);
}

/* ---------- Étapes et frise ---------- */

.etapes,
.frise {
  gap: 32px 24px;
}

.etapes {
  margin-top: 56px;
}

.frise {
  margin-top: 64px;
}

.etape,
.jalon {
  position: relative;
  padding-top: 24px;
  border-top: 2px solid var(--trait);
}

.jalon::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--point);
}

.jalon .repere {
  color: var(--texte);
}

.etape__titre,
.jalon__titre {
  margin: 8px 0;
  font-family: var(--police-titres);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--titre);
}

.etape__texte,
.jalon__texte {
  font-size: 15px;
  color: var(--texte);
}

.jalon--avant {
  border-top-color: var(--surtitre);
}

.jalon--avant::before {
  background: var(--surtitre);
}

.jalon--avant .repere {
  color: var(--surtitre);
}

/* ---------- Questions fréquentes ---------- */

.faq {
  max-width: 860px;
  margin-top: 48px;
  border-top: 1px solid var(--separation);
}

.faq__question {
  border-bottom: 1px solid var(--separation);
}

.faq__question summary {
  position: relative;
  padding: 24px 48px 24px 0;
  list-style: none;
  cursor: pointer;
}

.faq__question summary::-webkit-details-marker {
  display: none;
}

.faq__question summary::after {
  content: "+";
  position: absolute;
  top: 20px;
  right: 4px;
  font-family: var(--police-reperes);
  font-size: 24px;
  line-height: 1.2;
  color: var(--surtitre);
}

.faq__question[open] summary::after {
  content: "\2212";
}

.faq__question h3 {
  font-family: var(--police-titres);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.35;
  color: var(--titre);
}

.faq__reponse {
  padding-bottom: 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--texte);
}

/* ---------- Appel à l'action (bandeau) ---------- */

.bandeau {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 32px;
  border-radius: 16px;
  background: var(--bandeau);
}

.fond-sombre .bandeau {
  border: 1px solid var(--carte-bord);
}

.bandeau__texte {
  flex: 1 1 480px;
  min-width: 0;
}

.bandeau .surtitre {
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--bandeau-accent);
}

.bandeau__titre {
  margin-bottom: 8px;
  font-family: var(--police-titres);
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.2;
  color: var(--titre);
}

.bandeau__phrase {
  font-size: 18px;
  font-weight: 500;
  color: var(--titre);
}

.bandeau .lien-fleche {
  color: var(--bandeau-accent);
}

/* ---------- Contact ---------- */

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 56px 80px;
}

.contact__texte {
  flex: 1 1 360px;
  min-width: 0;
}

.contact__texte .intro {
  margin-top: 24px;
}

.engagements {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.engagements li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--titre);
}

.engagements svg {
  flex: none;
  margin-top: 2px;
  color: var(--surtitre);
}

.coordonnees {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.coordonnee {
  display: flex;
  align-items: center;
  gap: 14px;
}

.coordonnee__icone {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-pale);
  color: var(--accent);
}

.coordonnee__libelle {
  font-size: 13px;
  color: var(--texte);
}

.coordonnee a {
  font-weight: 600;
  text-decoration: none;
}

.coordonnee a:hover {
  text-decoration: underline;
}

.formulaire {
  display: flex;
  flex: 999 1 520px;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--carte-bord);
  border-radius: 20px;
  background: var(--carte);
  color: var(--encre);
}

.formulaire__grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 20px;
}

.champ {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.champ label {
  font-size: 14px;
  font-weight: 600;
  color: var(--titre);
}

.champ__aide {
  font-weight: 400;
  color: var(--texte);
}

/* Bord des champs : contraste de 3:1 au moins avec le blanc (repérage des champs, WCAG 1.4.11). */
.champ input,
.champ select,
.champ textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #8B94A5;
  border-radius: 10px;
  background: #FFFFFF;
  font-size: 16px;
  color: var(--encre);
}

.champ textarea {
  min-height: 140px;
  padding: 12px 14px;
  resize: vertical;
}

.consentement {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.consentement input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.consentement label {
  font-size: 14px;
  color: var(--texte);
}

.formulaire .bouton {
  align-self: flex-start;
}

/* Erreurs du formulaire (contraste 4,5:1 au moins sur le blanc et sur le fond de l'alerte). */
.champ__erreur {
  font-size: 14px;
  color: var(--erreur);
}

.champ [aria-invalid="true"],
.consentement [aria-invalid="true"] {
  border: 2px solid var(--erreur);
  outline-color: var(--erreur);
}

.formulaire__alerte {
  padding: 14px 18px;
  border: 1px solid var(--erreur);
  border-left-width: 4px;
  border-radius: 10px;
  background: #FEF3F2;
  font-size: 15px;
  color: var(--encre);
}

.formulaire__alerte ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.formulaire__alerte a {
  color: var(--erreur);
}

/* Champ piège : hors de l'écran (un robot le remplit, un visiteur ne le voit pas). */
.piege {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Demande envoyée : confirmation à la place du formulaire. */
.formulaire--envoye {
  align-items: flex-start;
  justify-content: center;
}

.formulaire__coche {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-pale);
  color: var(--accent);
}

.formulaire__confirmation {
  font-family: var(--police-titres);
  font-size: 20px;
  font-weight: 600;
  color: var(--titre);
}

/* ---------- Pied de page ---------- */

.pied {
  padding: 48px var(--marge);
  background: var(--encre);
  color: #A7B0C0;
}

.pied__ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}

.pied__marque {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 14px;
}

.pied__nom {
  font-family: var(--police-titres);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: #FFFFFF;
}

.pied__coordonnees {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pied__localisation {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.pied__localisation svg {
  flex-shrink: 0;
  color: var(--accent-sombre);
}

.pied__telephone a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: #FFFFFF;
  text-decoration: none;
  white-space: nowrap;
}

.pied__telephone a:hover {
  text-decoration: underline;
}

.pied__telephone svg {
  color: var(--accent-sombre);
}

.pied__liens {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
}

.pied__liens a {
  color: #C9D0DC;
  text-decoration: none;
}

.pied__liens a:hover,
.pied__liens a[aria-current="page"] {
  color: #FFFFFF;
  text-decoration: underline;
}

.pied__droits {
  flex-basis: 100%;
  font-size: 14px;
}

/* Version de l'application (site de l'éditeur de la plateforme seulement) : discrète, contraste 5,3:1 sur l'encre. */
.pied__version {
  margin-left: 8px;
  font-family: var(--police-reperes);
  font-size: 12px;
  color: #7D8799;
  white-space: nowrap;
}

/* Place des boutons fixes (48 px, à 20 px du bord droit) : aucun lien du pied de page dessous. */
@media (min-width: 760px) {
  .pied__ligne {
    padding-right: 56px;
  }
}

/* ---------- Fil d'Ariane (pages intérieures) ---------- */

.ariane {
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--texte-doux);
}

.ariane ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 0;
  list-style: none;
}

.ariane li + li::before {
  content: "\203A";
  margin-right: 8px;
  color: var(--texte-doux);
}

.ariane a {
  color: var(--texte);
  text-decoration: none;
}

.ariane a:hover {
  color: var(--titre);
  text-decoration: underline;
}

.ariane [aria-current="page"] {
  color: var(--titre);
}

/* Page avec une accroche : le fil d'Ariane est dans une bande du même fond, juste au-dessus. */
.bande-ariane {
  padding: 28px var(--marge) 0;
}

.bande-ariane .ariane {
  margin-bottom: 0;
}

.bande-ariane + .bloc {
  padding-top: 40px;
}

/* ---------- Boutons fixes : vers le contact, retour en haut ---------- */

.defilement {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.defilement__bouton {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid #3A4458;
  border-radius: 50%;
  background: var(--encre);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgb(11 15 23 / 0.25);
}

.defilement__bouton:hover {
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.defilement__bouton--contact {
  border-color: var(--accent);
  background: var(--accent);
}

.defilement__bouton--contact:hover {
  border-color: var(--accent-fonce);
  background: var(--accent-fonce);
}

/* Navigateurs qui savent lier une animation au défilement : « haut » apparaît après 300 px de défilement,
   « contact » disparaît quand le formulaire arrive à l'écran. Ailleurs, les deux restent visibles. */
@supports (animation-timeline: scroll()) {
  body {
    timeline-scope: --contact;
  }

  .bloc--contact {
    view-timeline-name: --contact;
  }

  .defilement__bouton--haut {
    animation: defilement-apparition linear both;
    animation-timeline: scroll(root);
    animation-range: 0 300px;
  }

  .defilement__bouton--contact {
    animation: defilement-disparition linear both;
    animation-timeline: --contact;
    animation-range: entry 0% entry 60%;
  }
}

@keyframes defilement-apparition {
  from {
    opacity: 0;
    visibility: hidden;
  }

  to {
    opacity: 1;
    visibility: visible;
  }
}

@keyframes defilement-disparition {
  from {
    opacity: 1;
    visibility: visible;
  }

  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ---------- Petits écrans ---------- */

@media (max-width: 640px) {
  :root {
    --marge: 20px;
  }

  .carte {
    padding: 24px;
  }

  .carte--avant {
    padding: 23px;
  }

  .encadre,
  .bandeau {
    padding: 22px;
  }

  .accroche {
    gap: 48px;
  }

  .accroche__intro {
    font-size: 18px;
  }

  .faq__question h3 {
    font-size: 18px;
  }

  .defilement {
    right: 14px;
    bottom: 14px;
  }
}
