/* =========================================================================
   Parcours Rénovation — feuille de style unique
   -------------------------------------------------------------------------
   Ordre : polices · jetons · base · utilitaires · composants · sections ·
           responsive · animations · impression
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Polices — servies depuis le site, jamais depuis un CDN tiers
   ------------------------------------------------------------------------- */

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-latin.woff2') format('woff2');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
  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: 'DM Sans';
  src: url('../fonts/DMSans-latin-ext.woff2') format('woff2');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
  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: 'Lora';
  src: url('../fonts/Lora-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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: 'Lora';
  src: url('../fonts/Lora-latin-ext.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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;
}

/* -------------------------------------------------------------------------
   2. Jetons de conception
   ------------------------------------------------------------------------- */

:root {
  /* — Couleurs de marque ------------------------------------------------- */
  --petrole:        #193F4A;   /* bleu pétrole principal */
  --petrole-clair:  #21525F;
  --petrole-fonce:  #0F2B33;
  --bleu-grise:     #607E83;   /* secondaire — décor et grands textes */
  --ocre:           #C39562;   /* accent : traits, icônes, survols */
  --ocre-clair:     #D9B287;
  --beige:          #F2EDE5;
  --anthracite:     #292A28;
  --blanc:          #FFFFFF;

  /* Ocre assombri réservé aux boutons pleins : #C39562 sur texte blanc ne
     donne que 2,7:1, très en deçà du minimum de 4,5:1 exigé au § 29 des
     spécifications. Cette teinte-ci atteint 4,6:1 tout en restant ocre. */
  --ocre-bouton:       #A06A31;
  --ocre-bouton-survol:#8E5C28;
  /* Ocre pour le TEXTE. --ocre-bouton ne tient le contraste que sur du
     blanc pur ; sur crème et sur beige il passe sous 4,5:1. */
  --ocre-texte:        #8E5C28;

  /* — Neutres, légèrement teintés vers le pétrole ------------------------ */
  --creme:        #FAF7F2;   /* fond de page */
  --creme-fonce:  #F5F0E8;
  --texte:        #45595E;   /* corps de texte — 6,9:1 sur --creme */
  --texte-doux:   #5E7176;   /* légendes, aides de saisie — 5,1:1 sur blanc */
  --sur-petrole:  #E8F0F1;   /* texte clair sur fond pétrole */
  --sur-petrole-doux: #B9CBCE;  /* secondaire sur pétrole — 6,7:1 */
  --trait:        #E4DCCE;   /* filets et bordures */
  --trait-fort:   #D6C9B4;

  /* — États -------------------------------------------------------------- */
  --erreur:   #A4321F;
  --succes:   #1F6B4E;

  /* — Typographie -------------------------------------------------------- */
  --police-texte:  'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --police-titre:  'Lora', Georgia, 'Times New Roman', serif;

  --t-display: clamp(2.5rem, 1.6rem + 3.6vw, 4rem);       /* 40 → 64 px */
  --t-h2:      clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);    /* 28 → 40 px */
  --t-h3:      clamp(1.125rem, 1.05rem + 0.32vw, 1.3125rem);
  --t-lead:    clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --t-corps:   1.0625rem;   /* 17 px */
  --t-petit:   0.9375rem;   /* 15 px */
  --t-micro:   0.8125rem;   /* 13 px */

  /* — Espacements : trame de 4 px ---------------------------------------- */
  --e1: 0.25rem;  --e2: 0.5rem;   --e3: 0.75rem;  --e4: 1rem;
  --e5: 1.5rem;   --e6: 2rem;     --e7: 3rem;     --e8: 4rem;
  --e9: 5rem;     --e10: 7.5rem;

  --section-y: clamp(3rem, 1.2rem + 7vw, 7.5rem);   /* 48 → 120 px */

  /* — Formes ------------------------------------------------------------- */
  --r-sm:   8px;
  --r:      14px;
  --r-lg:   20px;
  --r-pill: 999px;

  --ombre-douce:  0 1px 2px rgba(25, 63, 74, .04), 0 6px 20px rgba(25, 63, 74, .05);
  --ombre-carte:  0 1px 2px rgba(25, 63, 74, .05), 0 12px 32px rgba(25, 63, 74, .07);
  --ombre-relief: 0 2px 4px rgba(25, 63, 74, .06), 0 20px 48px rgba(25, 63, 74, .11);

  /* — Mouvement ---------------------------------------------------------- */
  --sortie: cubic-bezier(0.23, 1, 0.32, 1);
  --doux:   cubic-bezier(0.4, 0, 0.2, 1);

  /* — Empilement --------------------------------------------------------- */
  --z-decor:  0;
  --z-contenu:1;
  --z-sticky: 100;
  --z-menu:   200;

  --largeur:  1200px;
  --gouttiere: 1rem;
  --hauteur-entete: 72px;
}

@media (min-width: 768px) {
  :root { --gouttiere: 1.5rem; --hauteur-entete: 80px; }
}

/* -------------------------------------------------------------------------
   3. Base
   ------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Décale l'ancre pour que l'en-tête collant ne recouvre pas le titre visé. */
  scroll-padding-top: calc(var(--hauteur-entete) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--texte);
  font-family: var(--police-texte);
  font-size: var(--t-corps);
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--petrole);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-family: var(--police-titre);
  font-size: var(--t-display);
  line-height: 1.06;
  letter-spacing: -0.022em;
}

h2 {
  font-family: var(--police-titre);
  font-size: var(--t-h2);
  letter-spacing: -0.015em;
}

h3 {
  font-family: var(--police-texte);
  font-size: var(--t-h3);
  font-weight: 700;
  letter-spacing: -0.005em;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--petrole); text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }

/* Anneau de focus unique, visible sur tous les fonds. Jamais supprimé. */
:where(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--petrole);
  outline-offset: 3px;
  border-radius: 4px;
}
.sur-fond-sombre :focus-visible,
.pied:focus-visible,
.pied :focus-visible,
.cta-final :focus-visible { outline-color: var(--ocre-clair); }

::selection { background: var(--ocre-clair); color: var(--petrole-fonce); }

/* -------------------------------------------------------------------------
   4. Utilitaires
   ------------------------------------------------------------------------- */

.contenu {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.section { padding-block: var(--section-y); }

.section--beige { background: var(--beige); }
.section--blanc { background: var(--blanc); }

.invisible {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Lien d'évitement — premier élément focalisable de la page. */
.evitement {
  position: absolute;
  left: var(--gouttiere);
  top: 0;
  z-index: calc(var(--z-menu) + 1);
  transform: translateY(-150%);
  padding: 0.75rem 1.25rem;
  background: var(--petrole);
  color: var(--blanc);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  text-decoration: none;
  font-weight: 600;
  transition: transform 180ms var(--sortie);
}
.evitement:focus { transform: translateY(0); }

.entete-section { max-width: 46rem; margin-bottom: var(--e7); }
.entete-section--centre { margin-inline: auto; text-align: center; }
.entete-section p {
  margin-top: var(--e4);
  font-size: var(--t-lead);
  color: var(--texte);
  max-width: 60ch;
}
.entete-section--centre p { margin-inline: auto; }

/* Un seul porteur : le sous-titre de la hero demandé au § 10. En petites
   capitales espacées, il se lisait comme une étiquette de section posée
   au-dessus de chaque titre ; il redevient ici une ligne de contexte. */
.surtitre {
  display: block;
  font-size: var(--t-petit);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ocre-texte);
}

/* -------------------------------------------------------------------------
   5. Boutons
   ------------------------------------------------------------------------- */

.bouton {
  --fond: var(--ocre-bouton);
  --fond-survol: var(--ocre-bouton-survol);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--fond);
  color: var(--blanc);
  font-size: var(--t-corps);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms var(--doux),
              transform 200ms var(--sortie),
              box-shadow 200ms var(--doux);
}
.bouton:hover { background: var(--fond-survol); transform: translateY(-1px); box-shadow: var(--ombre-douce); }
.bouton:active { transform: scale(0.97); }
.bouton[disabled], .bouton[aria-disabled='true'] {
  opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none;
}

.bouton .fleche { transition: transform 200ms var(--sortie); }
.bouton:hover .fleche { transform: translateX(3px); }

.bouton--large { width: 100%; }
.bouton--fort { min-height: 54px; padding-inline: 2rem; font-size: 1.125rem; }

.bouton--secondaire {
  background: var(--blanc);
  color: var(--petrole);
  border-color: var(--ocre);
}
.bouton--secondaire:hover { background: var(--beige); border-color: var(--ocre-bouton); }

.bouton--fantome {
  background: transparent;
  color: var(--petrole);
  border-color: var(--trait-fort);
}
.bouton--fantome:hover { background: var(--blanc); border-color: var(--petrole); }

/* Lien texte avec flèche — utilisé sous les listes de conseils. */
.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--petrole);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--ocre);
  padding-bottom: 2px;
  transition: color 180ms var(--doux), border-color 180ms var(--doux);
}
.lien-fleche:hover { color: var(--ocre-texte); border-color: var(--ocre-bouton); }
.lien-fleche .fleche { transition: transform 200ms var(--sortie); }
.lien-fleche:hover .fleche { transform: translateX(3px); }

/* -------------------------------------------------------------------------
   6. En-tête
   ------------------------------------------------------------------------- */

.entete {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: color-mix(in srgb, var(--creme) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: background-color 220ms var(--doux),
              border-color 220ms var(--doux),
              box-shadow 220ms var(--doux);
}
@supports (backdrop-filter: blur(1px)) {
  .entete { backdrop-filter: saturate(1.4) blur(12px); }
}

.entete[data-defile='true'] {
  background: color-mix(in srgb, var(--blanc) 88%, transparent);
  border-bottom-color: var(--trait);
  box-shadow: 0 1px 16px rgba(25, 63, 74, .06);
}

.entete__barre {
  display: flex;
  align-items: center;
  gap: var(--e5);
  min-height: var(--hauteur-entete);
}

.entete__logo { flex: 0 0 auto; line-height: 0; }
.entete__logo img { height: 38px; width: auto; }

.entete__nav { display: none; margin-left: auto; }

.nav-liste { display: flex; align-items: center; gap: clamp(0.75rem, 1.6vw, 1.75rem); }

.nav-lien {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--petrole);
  font-size: var(--t-petit);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
/* Le soulignement grandit depuis le centre : discret, et sans décalage
   de mise en page puisqu'il est dessiné en pseudo-élément. */
.nav-lien::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.15rem;
  height: 2px;
  background: var(--ocre);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms var(--sortie);
}
.nav-lien:hover::after,
.nav-lien[aria-current='true']::after { transform: scaleX(1); }

.entete__action { margin-left: auto; display: none; }

/* Bouton hamburger */
.burger {
  margin-left: auto;
  display: inline-flex;
  /* Les traits s'empilent : sans cette direction ils se rangent en ligne et le
     bouton n'affiche qu'un trait unique. */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--trait-fort);
  border-radius: var(--r-sm);
  color: var(--petrole);
  cursor: pointer;
  transition: background-color 180ms var(--doux), border-color 180ms var(--doux);
}
.burger:hover { background: var(--blanc); border-color: var(--petrole); }
.burger__trait {
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 240ms var(--sortie), opacity 160ms var(--doux);
}
.burger__trait + .burger__trait { margin-top: 5px; }
/* Le premier enfant du bouton est son libellé pour lecteur d'écran : les
   traits occupent les rangs 2, 3 et 4, pas 1, 2 et 3. */
.burger[aria-expanded='true'] .burger__trait:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] .burger__trait:nth-child(3) { opacity: 0; }
.burger[aria-expanded='true'] .burger__trait:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* Panneau mobile */
.menu-mobile {
  position: fixed;
  inset: var(--hauteur-entete) 0 auto 0;
  z-index: var(--z-menu);
  max-height: calc(100dvh - var(--hauteur-entete));
  overflow-y: auto;
  padding: var(--e5) var(--gouttiere) var(--e7);
  background: var(--blanc);
  border-bottom: 1px solid var(--trait);
  box-shadow: var(--ombre-relief);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms var(--doux), transform 240ms var(--sortie), visibility 240ms;
}
.menu-mobile[data-ouvert='true'] { opacity: 1; transform: translateY(0); visibility: visible; }

.menu-mobile ul { display: grid; gap: 0.25rem; }
.menu-mobile a {
  display: block;
  padding: 0.875rem 0.5rem;
  border-radius: var(--r-sm);
  color: var(--petrole);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
}
.menu-mobile a:hover { background: var(--beige); }
.menu-mobile .bouton { margin-top: var(--e5); }

/* -------------------------------------------------------------------------
   7. Hero
   ------------------------------------------------------------------------- */

.hero { position: relative; padding-top: clamp(2rem, 4vw, 3.5rem); }

.hero__grille {
  display: grid;
  gap: var(--e6);
  align-items: start;
}

.hero__texte { max-width: 34rem; }
.hero__surtitre { margin-bottom: var(--e4); }
.hero__titre { margin-bottom: var(--e4); }
.hero__accroche {
  font-size: var(--t-lead);
  color: var(--texte);
  max-width: 34ch;
  margin-bottom: var(--e6);
}

.hero__media {
  position: relative;
  /* Mobile (§ 25) : titre → accroche → formulaire → photo. L'ordre du DOM
     suffit, aucune réécriture d'ordre ne doit remonter la photo. */
}

.hero__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  background: var(--creme-fonce);
}

/* -------------------------------------------------------------------------
   8. Formulaire principal
   ------------------------------------------------------------------------- */

.carte-formulaire {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--r-lg);
  box-shadow: var(--ombre-carte);
}

.formulaire__grille {
  display: grid;
  gap: var(--e4);
  grid-template-columns: 1fr;
}

.champ { display: grid; gap: 0.375rem; min-width: 0; }
.champ--moitie { grid-column: span 1; }

.champ label {
  font-size: var(--t-micro);
  font-weight: 600;
  color: var(--petrole);
  letter-spacing: 0.01em;
}

.champ input,
.champ select {
  width: 100%;
  min-height: 48px;
  padding: 0.625rem 0.875rem;
  background: var(--blanc);
  border: 1px solid var(--trait-fort);
  border-radius: var(--r-sm);
  color: var(--anthracite);
  transition: border-color 160ms var(--doux), box-shadow 160ms var(--doux);
}
.champ input::placeholder { color: var(--texte-doux); }

.champ select {
  appearance: none;
  padding-right: 2.5rem;
  /* Chevron dessiné en fond : pas d'icône supplémentaire à charger. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5 7 7.5 13 1.5' stroke='%2345595E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  cursor: pointer;
}
.champ select:invalid, .champ select[data-vide='true'] { color: var(--texte-doux); }

.champ input:hover, .champ select:hover { border-color: var(--bleu-grise); }
.champ input:focus, .champ select:focus {
  outline: none;
  border-color: var(--petrole);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--petrole) 16%, transparent);
}
.champ input:focus-visible, .champ select:focus-visible { outline: none; }

.champ[data-erreur='true'] input,
.champ[data-erreur='true'] select { border-color: var(--erreur); }
.champ[data-erreur='true'] input:focus,
.champ[data-erreur='true'] select:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--erreur) 18%, transparent);
}

.champ__erreur {
  min-height: 0;
  font-size: var(--t-micro);
  color: var(--erreur);
  font-weight: 500;
}
.champ__erreur:empty { display: none; }

/* Champ piège : hors écran mais pas display:none, que les robots le remplissent. */
.piege {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.formulaire__envoi { margin-top: var(--e5); }

.formulaire__mention {
  margin-top: var(--e3);
  font-size: var(--t-micro);
  line-height: 1.5;
  color: var(--texte-doux);
  text-align: center;
}
.formulaire__mention a { color: var(--texte-doux); }

.formulaire__reassurance {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: var(--e4);
  padding-top: var(--e4);
  border-top: 1px solid var(--trait);
  font-size: var(--t-petit);
  color: var(--texte);
}
.formulaire__reassurance svg {
  flex: 0 0 auto;
  /* Sans width/height, un SVG en ligne prend la taille par défaut d'un
     élément remplacé et gonfle la carte : la mesure est obligatoire. */
  width: 18px; height: 18px;
  margin-top: 2px;
  color: var(--ocre-bouton);
}

/* Retours d'envoi */
.formulaire__statut {
  margin-top: var(--e4);
  padding: var(--e4);
  border-radius: var(--r-sm);
  font-size: var(--t-petit);
  line-height: 1.5;
}
.formulaire__statut:empty { display: none; }
.formulaire__statut[data-ton='succes'] {
  background: color-mix(in srgb, var(--succes) 8%, var(--blanc));
  border: 1px solid color-mix(in srgb, var(--succes) 30%, var(--blanc));
  color: var(--succes);
}
.formulaire__statut[data-ton='erreur'] {
  background: color-mix(in srgb, var(--erreur) 7%, var(--blanc));
  border: 1px solid color-mix(in srgb, var(--erreur) 28%, var(--blanc));
  color: var(--erreur);
}
.formulaire__statut strong { display: block; margin-bottom: 0.25rem; }

/* Le bouton pendant l'envoi */
.bouton[data-charge='true'] { pointer-events: none; }
.bouton__rondelle {
  width: 18px; height: 18px;
  border: 2px solid color-mix(in srgb, var(--blanc) 45%, transparent);
  border-top-color: var(--blanc);
  border-radius: 50%;
  animation: rotation 700ms linear infinite;
}
@keyframes rotation { to { transform: rotate(360deg); } }

/* -------------------------------------------------------------------------
   9. Résumé du parcours (les trois jalons)
   ------------------------------------------------------------------------- */

.jalons {
  position: relative;
  margin-top: var(--e7);
  padding-bottom: var(--e2);
}

.jalons__trace { display: none; }

.jalons__liste {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--e5);
}

.jalon { display: flex; align-items: center; gap: var(--e4); }

.jalon__pastille {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--petrole);
  color: var(--blanc);
  box-shadow: 0 6px 18px rgba(25, 63, 74, .18);
}
.jalon__pastille svg { width: 26px; height: 26px; }

.jalon__legende { display: grid; gap: 2px; }

.jalon__titre {
  font-family: var(--police-texte);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--petrole);
}
.jalon__detail { font-size: var(--t-petit); color: var(--texte-doux); }

/* -------------------------------------------------------------------------
   10. Cartes d'accompagnement
   ------------------------------------------------------------------------- */

.grille-etapes {
  display: grid;
  gap: var(--e5);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.carte-etape {
  position: relative;
  padding: var(--e6) var(--e5) var(--e5);
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--r);
  box-shadow: var(--ombre-douce);
  transition: transform 240ms var(--sortie), box-shadow 240ms var(--doux);
}
.carte-etape:hover { transform: translateY(-3px); box-shadow: var(--ombre-carte); }

.carte-etape__icone {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: var(--e4);
  border-radius: 50%;
  background: color-mix(in srgb, var(--ocre) 18%, var(--blanc));
  color: var(--ocre-bouton);
}
.carte-etape__icone svg { width: 24px; height: 24px; }

/* Le numéro fait partie du titre : il donne l'ordre de lecture sans ajouter
   une étiquette au-dessus de chaque carte. */
.carte-etape__rang { color: var(--ocre-texte); }
.carte-etape h3 { margin-bottom: var(--e2); }
.carte-etape p { font-size: var(--t-petit); }

/* -------------------------------------------------------------------------
   11. « Pourquoi » — tuiles plates, volontairement moins hautes que les
       cartes précédentes pour éviter deux grilles identiques d'affilée.
   ------------------------------------------------------------------------- */

.grille-atouts {
  display: grid;
  gap: var(--e4);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.atout {
  display: grid;
  gap: var(--e3);
  padding: var(--e5) var(--e4);
  background: transparent;
  border: 1px solid var(--trait);
  border-radius: var(--r);
}
.atout__tete { display: flex; align-items: center; gap: 0.625rem; }
.atout__tete svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--ocre-bouton); }
.atout h3 { font-size: 1rem; }
.atout p { font-size: var(--t-petit); color: var(--texte-doux); }

/* -------------------------------------------------------------------------
   12. Solutions
   ------------------------------------------------------------------------- */

.grille-solutions {
  display: grid;
  gap: var(--e5);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.solution {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--r);
  box-shadow: var(--ombre-douce);
  transition: transform 240ms var(--sortie), box-shadow 240ms var(--doux);
}
.solution:hover { transform: translateY(-3px); box-shadow: var(--ombre-carte); }

.solution__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--creme-fonce);
}

.solution__corps {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--e2);
  padding: var(--e5) var(--e4) var(--e4);
}
.solution__accroche { font-size: var(--t-petit); color: var(--texte-doux); }

.solution details { margin-top: auto; }

.solution summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--e4);
  padding: 0.625rem 1.25rem;
  background: var(--ocre-bouton);
  border-radius: var(--r-pill);
  color: var(--blanc);
  font-size: var(--t-petit);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  transition: background-color 200ms var(--doux);
}
.solution summary::-webkit-details-marker { display: none; }
.solution summary:hover { background: var(--ocre-bouton-survol); }
.solution summary .fleche { transition: transform 220ms var(--sortie); }
.solution details[open] summary .fleche { transform: rotate(90deg); }
.solution summary .libelle-ferme { display: inline; }
.solution summary .libelle-ouvert { display: none; }
.solution details[open] summary .libelle-ferme { display: none; }
.solution details[open] summary .libelle-ouvert { display: inline; }

.solution__detail {
  margin-top: var(--e4);
  padding-top: var(--e4);
  border-top: 1px solid var(--trait);
  font-size: var(--t-petit);
  color: var(--texte);
}
.solution__detail ul { display: grid; gap: 0.5rem; margin-top: var(--e3); }
.solution__detail li { display: flex; gap: 0.5rem; }
.solution__detail li::before {
  content: '';
  flex: 0 0 auto;
  width: 6px; height: 6px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--ocre);
}

/* -------------------------------------------------------------------------
   13. Déroulé en six étapes
   ------------------------------------------------------------------------- */

.deroule { position: relative; }

.deroule__liste {
  display: grid;
  gap: var(--e5);
  grid-template-columns: 1fr;
}

.deroule__etape { position: relative; padding-left: 3.5rem; }

/* Ligne verticale reliant les pastilles sur mobile. */
.deroule__etape::before {
  content: '';
  position: absolute;
  left: 19px; top: 40px; bottom: calc(-1 * var(--e5));
  width: 2px;
  background: var(--trait-fort);
}
.deroule__etape:last-child::before { display: none; }

.deroule__rang {
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--petrole);
  color: var(--blanc);
  font-size: var(--t-petit);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.deroule__etape h3 { margin-bottom: 0.25rem; font-size: 1.0625rem; }
.deroule__etape p { font-size: var(--t-petit); color: var(--texte-doux); }

/* -------------------------------------------------------------------------
   14. Réassurance et à propos
   ------------------------------------------------------------------------- */

.reassurance__grille {
  display: grid;
  gap: var(--e6);
  align-items: center;
}

.reassurance__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r);
  background: var(--creme-fonce);
}

.temoignage { margin: 0; }
.temoignage blockquote {
  margin: 0;
  padding-left: var(--e5);
  border-left: 2px solid var(--ocre);
}
.temoignage blockquote p {
  font-family: var(--police-titre);
  font-size: var(--t-lead);
  line-height: 1.45;
  color: var(--petrole);
}
.temoignage figcaption {
  margin-top: var(--e3);
  padding-left: calc(var(--e5) + 2px);
  font-size: var(--t-petit);
  color: var(--texte-doux);
}

.engagements { display: grid; gap: var(--e4); margin-top: var(--e5); }

.engagement { display: flex; gap: var(--e3); }
.engagement svg { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 3px; color: var(--ocre-bouton); }
.engagement strong { display: block; color: var(--petrole); }
.engagement span { font-size: var(--t-petit); color: var(--texte-doux); }

.a-propos {
  margin-top: var(--e7);
  padding: var(--e6);
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--r);
}
.a-propos h3 { margin-bottom: var(--e3); }
.a-propos p + p { margin-top: var(--e3); }
.a-propos p { max-width: 68ch; }

/* -------------------------------------------------------------------------
   15. Conseils
   ------------------------------------------------------------------------- */

.grille-conseils {
  display: grid;
  gap: var(--e5);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.conseil {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--r);
}

.conseil__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--creme-fonce);
}

.conseil__corps { display: flex; flex-direction: column; flex: 1; padding: var(--e5) var(--e4) var(--e4); }
.conseil__duree {
  margin-bottom: var(--e2);
  font-size: var(--t-micro);
  color: var(--texte-doux);
}
.conseil h3 { margin-bottom: var(--e3); font-size: 1.0625rem; }

.conseil details { margin-top: auto; }
.conseil summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--petrole);
  font-size: var(--t-petit);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  border-bottom: 1px solid var(--ocre);
  padding-bottom: 2px;
}
.conseil summary::-webkit-details-marker { display: none; }
.conseil summary:hover { color: var(--ocre-texte); }
.conseil summary .libelle-ouvert { display: none; }
.conseil details[open] summary .libelle-ferme { display: none; }
.conseil details[open] summary .libelle-ouvert { display: inline; }
.conseil__detail { margin-top: var(--e4); font-size: var(--t-petit); }
.conseil__detail p + p { margin-top: var(--e3); }

/* -------------------------------------------------------------------------
   16. FAQ
   ------------------------------------------------------------------------- */

.faq { display: grid; gap: 0; max-width: 52rem; }

.faq details {
  border-bottom: 1px solid var(--trait);
}
.faq details:first-child { border-top: 1px solid var(--trait); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e4);
  padding: var(--e5) 0;
  color: var(--petrole);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ocre-texte); }

.faq__signe {
  flex: 0 0 auto;
  position: relative;
  width: 20px; height: 20px;
  color: var(--ocre-bouton);
}
.faq__signe::before, .faq__signe::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 240ms var(--sortie), opacity 200ms var(--doux);
}
.faq__signe::before { width: 14px; height: 2px; }
.faq__signe::after  { width: 2px; height: 14px; }
.faq details[open] .faq__signe::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq__reponse { padding-bottom: var(--e5); max-width: 68ch; }
.faq__reponse p + p { margin-top: var(--e3); }

/* -------------------------------------------------------------------------
   17. Appel final
   ------------------------------------------------------------------------- */

.cta-final { background: var(--petrole); color: var(--sur-petrole); }

.cta-final__bloc {
  display: grid;
  gap: var(--e5);
  align-items: center;
  padding-block: var(--section-y);
}

.cta-final h2 { color: var(--blanc); }
.cta-final p { color: var(--sur-petrole-doux); font-size: var(--t-lead); margin-top: var(--e3); }

.cta-final__action { display: grid; gap: var(--e3); justify-items: start; }
.cta-final__delai { font-size: var(--t-petit); color: var(--sur-petrole-doux); }

/* -------------------------------------------------------------------------
   18. Pied de page
   ------------------------------------------------------------------------- */

.pied {
  background: var(--petrole-fonce);
  color: var(--sur-petrole-doux);
  font-size: var(--t-petit);
}

.pied__grille {
  display: grid;
  gap: var(--e6);
  padding-block: var(--e8) var(--e6);
}

.pied__logo img { height: 44px; width: auto; }
.pied__descriptif { margin-top: var(--e4); max-width: 26ch; }

.pied h3 {
  margin-bottom: var(--e4);
  color: var(--blanc);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pied ul { display: grid; gap: 0.625rem; }
.pied a { color: var(--sur-petrole-doux); text-decoration: none; }
.pied a:hover { color: var(--blanc); text-decoration: underline; }

.pied__contact {
  padding: var(--e5);
  background: color-mix(in srgb, var(--blanc) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--blanc) 10%, transparent);
  border-radius: var(--r);
}
.pied__contact ul { gap: var(--e3); }
.pied__contact li { display: flex; align-items: center; gap: 0.625rem; }
.pied__contact svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--ocre-clair); }
.pied__contact a { font-weight: 500; }

.pied__bas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e3) var(--e5);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--e5);
  border-top: 1px solid color-mix(in srgb, var(--blanc) 10%, transparent);
  font-size: var(--t-micro);
}
.pied__bas ul { display: flex; flex-wrap: wrap; gap: var(--e3) var(--e4); }

/* -------------------------------------------------------------------------
   19. Pages secondaires (mentions, confidentialité, cookies, merci)
   ------------------------------------------------------------------------- */

/* En-tête simplifié des pages secondaires : pas de navigation, le bouton
   d'appel reste donc visible à toutes les largeurs. */
.entete__action--simple { display: block; margin-left: auto; }

.page-texte { padding-block: var(--e8) var(--e9); }
.page-texte__contenu { max-width: 46rem; }
.page-texte h1 { margin-bottom: var(--e5); }
.page-texte h2 { margin-top: var(--e7); margin-bottom: var(--e4); font-size: 1.5rem; }
.page-texte h3 { margin-top: var(--e5); margin-bottom: var(--e2); }
.page-texte p, .page-texte li { max-width: 70ch; }
.page-texte p + p, .page-texte ul { margin-top: var(--e3); }
.page-texte ul { display: grid; gap: 0.5rem; padding-left: 1.25rem; list-style: disc; }
.page-texte li { padding-left: 0.25rem; }
.page-texte a { color: var(--petrole); }
.page-texte .maj { margin-top: var(--e6); font-size: var(--t-petit); color: var(--texte-doux); }

.page-merci { display: grid; place-items: center; min-height: 60vh; text-align: center; }
.page-merci__bloc { max-width: 34rem; }
.page-merci__pastille {
  display: grid; place-items: center;
  width: 72px; height: 72px;
  margin: 0 auto var(--e5);
  border-radius: 50%;
  background: color-mix(in srgb, var(--succes) 12%, var(--blanc));
  color: var(--succes);
}
.page-merci p { margin-top: var(--e4); font-size: var(--t-lead); }
.page-merci .bouton { margin-top: var(--e6); }

/* -------------------------------------------------------------------------
   20. Points de rupture
   ------------------------------------------------------------------------- */

@media (min-width: 600px) {
  .formulaire__grille { grid-template-columns: 1fr 1fr; }
  .champ--pleine { grid-column: 1 / -1; }

  .jalons__liste { grid-template-columns: repeat(3, 1fr); }
  .jalon { flex-direction: column; text-align: center; gap: var(--e3); }

  .cta-final__bloc { grid-template-columns: 1fr auto; gap: var(--e7); }
  .cta-final__action { justify-items: end; text-align: right; }
}

@media (min-width: 768px) {
  .deroule__liste { grid-template-columns: repeat(2, 1fr); }
  .pied__grille { grid-template-columns: 1.4fr 1fr 1fr; }
  .pied__contact { grid-column: 1 / -1; }
  .reassurance__grille { grid-template-columns: 5fr 7fr; }
}

@media (min-width: 1024px) {
  /* Cinq atouts sur une rangée, comme dans la maquette : en auto-fit, la
     dernière tuile se retrouvait seule sur une deuxième ligne. */
  .grille-atouts { grid-template-columns: repeat(5, 1fr); }

  .entete__nav { display: block; }
  .entete__action { display: block; margin-left: 0; }
  .burger { display: none; }
  .menu-mobile { display: none; }

  .hero { padding-top: clamp(2.5rem, 3vw, 4rem); }
  .hero__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: var(--e7); align-items: center; }
  .hero__media { order: 0; }
  .hero__photo {
    aspect-ratio: 7 / 6;
    /* Découpe organique : c'est cette courbe qui relie la photo à la ligne
       de parcours dessinée juste en dessous. */
    border-radius: var(--r-lg) var(--r-lg) var(--r-lg) clamp(70px, 9vw, 140px);
  }

  .jalons { margin-top: var(--e8); }
  .jalons__trace {
    display: block;
    position: absolute;
    inset: 0 0 auto 0;
    width: 100%;
    height: 96px;
    pointer-events: none;
    color: var(--ocre);
  }
  .jalons__liste {
    position: relative;
    height: 96px;
    grid-template-columns: none;
    gap: 0;
  }
  .jalon {
    position: absolute;
    top: 48px;
    transform: translate(-50%, -50%);
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
    width: 12rem;
  }
  .jalon:nth-child(1) { left: 16.6667%; }
  .jalon:nth-child(2) { left: 50%; }
  .jalon:nth-child(3) { left: 83.3333%; }
  .jalon__legende {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    width: 12rem;
  }
  .jalons { padding-bottom: var(--e8); }

  .deroule__liste { grid-template-columns: repeat(6, 1fr); gap: var(--e4); }
  .deroule__etape { padding-left: 0; padding-top: 3.5rem; }
  .deroule__etape::before {
    left: 40px; top: 19px; bottom: auto;
    width: calc(100% - 40px + var(--e4)); height: 2px;
  }
  .deroule__rang { top: 0; left: 0; }
  .deroule__etape h3 { font-size: 1rem; }

  .pied__grille { grid-template-columns: 1.5fr 1fr 1fr 1.4fr; }
  .pied__contact { grid-column: auto; }
}

@media (min-width: 1280px) {
  .hero__grille { gap: var(--e8); }
}

/* -------------------------------------------------------------------------
   21. Apparition au défilement
   ------------------------------------------------------------------------- */

[data-anime] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms var(--sortie), transform 520ms var(--sortie);
  transition-delay: var(--retard, 0ms);
}
[data-anime][data-vu='true'] { opacity: 1; transform: none; }

/* Tracé progressif de la ligne de parcours. */
.jalons__trace path {
  stroke-dasharray: var(--longueur, 1400);
  stroke-dashoffset: var(--longueur, 1400);
  transition: stroke-dashoffset 1400ms var(--doux) 120ms;
}
.jalons[data-vu='true'] .jalons__trace path { stroke-dashoffset: 0; }

/* Aucun script chargé : rien ne doit rester invisible. */
.sans-js [data-anime] { opacity: 1; transform: none; }
.sans-js .jalons__trace path { stroke-dashoffset: 0; }

/* -------------------------------------------------------------------------
   22. Mouvement réduit — exigence du § 28
   ------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Le contenu apparaît par simple fondu : la compréhension reste guidée
     sans aucun déplacement. */
  [data-anime] { transform: none; transition: opacity 1ms linear; }
  .jalons__trace path { stroke-dasharray: none; stroke-dashoffset: 0; }
  .bouton:hover, .carte-etape:hover, .solution:hover { transform: none; }
}

/* -------------------------------------------------------------------------
   23. Impression
   ------------------------------------------------------------------------- */

@media print {
  .entete, .menu-mobile, .evitement, .cta-final__action, .jalons__trace { display: none !important; }
  body { background: #fff; color: #000; }
  details { open: true; }
  .solution__detail, .faq__reponse, .conseil__detail { display: block !important; }
}
