/* =========================================================
 * mon-monte-escalier.fr
 *
 * Lecteurs de 70 ans et plus, sur mobile, arrives de Facebook. D'ou :
 *  - corps de texte a 18 px minimum, interligne large ;
 *  - contrastes forts (texte principal au-dela de 12:1, boutons au-dela de 7:1) ;
 *  - cibles tactiles de 60 px minimum, aucune liste deroulante, aucun pop-up ;
 *  - polices systeme (aucun chargement externe, rien a attendre) ;
 *  - mouvements discrets, coupes si « reduire les animations » est actif.
 * ========================================================= */

:root {
  --fond: #faf6ef;
  --fond-sable: #f1e9dc;
  --blanc: #ffffff;
  --encre: #1e2b2f;
  --encre-douce: #3c4a4e;
  --vert: #1d5c4d;
  --vert-fonce: #143f35;
  --vert-moyen: #2b7a66;
  --vert-pale: #e3eee9;
  --vert-voile: #f2f7f4;
  --terre: #a6481f;
  --terre-fonce: #873a18;
  --terre-pale: #f6e4d8;
  --ligne: #d6cbbb;
  --ligne-douce: #e6dccd;
  --erreur: #9e1c1c;
  --rayon: 14px;
  --rayon-grand: 20px;
  --ombre-legere: 0 1px 2px rgba(30, 43, 47, 0.06), 0 2px 8px rgba(30, 43, 47, 0.05);
  --ombre: 0 1px 2px rgba(30, 43, 47, 0.06), 0 10px 30px rgba(30, 43, 47, 0.1);
  --titres: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', serif;
  --texte:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  font-size: 112.5%; /* 18 px */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1rem;
  line-height: 1.6;
}

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

img {
  height: auto;
}

.photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

a {
  color: var(--vert);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--vert-fonce);
}

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

h1,
h2,
h3 {
  font-family: var(--titres);
  font-weight: 700;
  line-height: 1.2;
  color: var(--encre);
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.1rem, 7vw, 3.2rem);
  letter-spacing: -0.015em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

.conteneur {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* ---------- Boutons ---------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 14px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--vert);
  color: var(--blanc);
  font: 700 1.05rem/1.2 var(--texte);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--vert-fonce);
  transition:
    background-color 0.15s ease,
    transform 0.15s ease;
}

.bouton:hover {
  background: var(--vert-fonce);
  color: var(--blanc);
}

.bouton:active {
  transform: translateY(1px);
}

.bouton svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bouton--chaud {
  background: var(--terre);
  box-shadow: 0 2px 0 var(--terre-fonce);
}

.bouton--chaud:hover {
  background: var(--terre-fonce);
}

.bouton[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.bouton--large {
  width: 100%;
}

/* ---------- En-tete ---------- */

.entete {
  border-bottom: 1px solid var(--ligne-douce);
  background: var(--fond);
}

.entete .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--encre);
  font-family: var(--titres);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.marque svg {
  width: 36px;
  height: 36px;
}

.entete__lien {
  display: none;
  font-weight: 600;
}

@media (min-width: 720px) {
  .entete__lien {
    display: inline;
  }
}

/* ---------- Hero ---------- */

/*
 * Mobile : photo compacte (le surtitre s'y pose), titre, accroche, puis tout de
 * suite le formulaire ; le sous-titre passe sous la carte.
 * Ordinateur : texte a gauche, carte a droite, la photo court sur toute la
 * largeur dessous et la carte la chevauche.
 * .hero__texte est transparent pour la grille (display: contents).
 */

.hero {
  padding: 14px 0 36px;
}

.hero__grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    'visuel'
    'titre'
    'accroche'
    'demande'
    'complement';
}

.hero__texte {
  display: contents;
}

.hero__visuel {
  grid-area: visuel;
  border-radius: var(--rayon-grand);
}

.hero__visuel img {
  aspect-ratio: auto;
  height: clamp(170px, 46vw, 230px);
  object-position: 50% 62%;
}

.hero__surtitre {
  grid-area: visuel;
  align-self: end;
  justify-self: start;
  z-index: 1;
  margin: 0 0 12px 12px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--terre-pale);
  color: #7d3414;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(30, 43, 47, 0.15);
}

.hero__texte h1 {
  grid-area: titre;
  margin: 16px 0 8px;
}

.hero__accroche {
  grid-area: accroche;
  font-family: var(--titres);
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--encre-douce);
  margin: 0 0 18px;
}

.demande {
  grid-area: demande;
}

.hero__sous-titre {
  grid-area: complement;
  font-size: 1.05rem;
  color: var(--encre-douce);
  max-width: 34em;
  margin: 20px 0 0;
}

@media (min-width: 960px) {
  .hero {
    padding: 44px 0 64px;
  }
  .hero__grille {
    grid-template-columns: minmax(0, 1fr) 480px;
    grid-template-rows: auto auto auto auto minmax(380px, 1fr);
    grid-template-areas: none;
    column-gap: 48px;
  }
  .hero__surtitre {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    margin: 6px 0 16px;
    box-shadow: none;
  }
  .hero__texte h1 {
    grid-column: 1;
    grid-row: 2;
    margin: 0 0 14px;
  }
  .hero__accroche {
    grid-column: 1;
    grid-row: 3;
    font-size: 1.5rem;
    margin-bottom: 14px;
  }
  .hero__sous-titre {
    grid-column: 1;
    grid-row: 4;
    font-size: 1.1rem;
    margin: 0 0 36px;
  }
  /* La photo court sous toute la largeur : la carte du formulaire la chevauche a droite. */
  .hero__visuel {
    grid-column: 1 / 3;
    grid-row: 5;
    align-self: stretch;
    min-height: 380px;
    position: relative;
  }
  .hero__visuel img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-position: 30% 70%;
  }
  .demande {
    grid-column: 2;
    grid-row: 1 / 6;
    align-self: start;
    position: relative;
    z-index: 1;
    margin-bottom: 56px;
  }
}

.photo {
  margin: 0;
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--fond-sable);
}

.photo figcaption {
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--encre-douce);
}

/* ---------- Carte de demande (tunnel) ---------- */

.demande {
  background: var(--blanc);
  border: 1px solid var(--ligne-douce);
  border-radius: var(--rayon-grand);
  box-shadow: var(--ombre);
  padding: 18px 16px 22px;
  scroll-margin-top: 12px;
}

@media (min-width: 480px) {
  .demande {
    padding: 26px 28px 30px;
  }
}

.demande__entete {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 14px;
  margin-bottom: 18px;
}

.demande__titre {
  grid-column: 1 / -1;
  font-size: 1.1rem;
  margin: 0 0 8px;
}

@media (min-width: 480px) {
  .demande__titre {
    font-size: 1.2rem;
  }
}

.progression__piste {
  grid-column: 1;
  grid-row: 2;
  height: 8px;
  border-radius: 999px;
  background: var(--fond-sable);
  overflow: hidden;
}

.progression__barre {
  display: block;
  height: 100%;
  width: 11%;
  background: var(--vert);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.progression__libelle {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--encre-douce);
  white-space: nowrap;
}

.ecran[hidden] {
  display: none;
}

.ecran__titre {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

@media (min-width: 480px) {
  .ecran__titre {
    font-size: 1.45rem;
  }
}

.ecran__titre:focus {
  outline: none;
}

.ecran__aide {
  color: var(--encre-douce);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.choix-liste {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.choix-liste--escaliers {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.choix {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 14px 18px;
  border: 2px solid var(--ligne);
  border-radius: var(--rayon);
  background: var(--blanc);
  color: var(--encre);
  font: 600 1.05rem/1.3 var(--texte);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--ombre-legere);
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    transform 0.15s ease;
}

/* Survol : seulement avec une souris (sur ecran tactile, il resterait colle apres le toucher). */
@media (hover: hover) {
  .choix:hover {
    border-color: var(--vert);
    background: var(--vert-voile);
  }
  .choix--suite:hover .choix__etat {
    background: var(--vert);
    color: var(--blanc);
  }
  .choix--suite:hover .choix__icone {
    background: var(--blanc);
  }
}

.choix:active {
  transform: scale(0.99);
}

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

.choix[aria-pressed='true'] {
  border-color: var(--vert);
  background: var(--vert-pale);
  box-shadow: inset 0 0 0 1px var(--vert);
}

/* Choix « suite » : icone, libelle, fleche (devient une coche une fois choisi) */

.choix--suite {
  min-height: 66px;
  padding: 10px 12px 10px 14px;
}

.choix__icone {
  flex: none;
  box-sizing: content-box;
  width: 24px;
  height: 24px;
  padding: 8px;
  border-radius: 50%;
  background: var(--vert-pale);
  fill: none;
  stroke: var(--vert);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.choix__libelle {
  flex: 1;
}

.choix__etat {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fond-sable);
  color: var(--vert);
  transition: background-color 0.15s ease;
}

.choix__etat svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.choix__coche {
  display: none !important;
}

.choix[aria-pressed='true'] .choix__etat {
  background: var(--vert);
  color: var(--blanc);
}

.choix[aria-pressed='true'] .choix__fleche {
  display: none !important;
}

.choix[aria-pressed='true'] .choix__coche {
  display: block !important;
}

.choix[aria-pressed='true'] .choix__icone {
  background: var(--blanc);
}

/* Choix illustres (escalier) */

.choix--illustre {
  position: relative;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 8px;
  min-height: 128px;
  padding: 16px 6px 14px;
  font-size: 0.95rem;
}

.choix--illustre > svg {
  width: 64px;
  height: 64px;
}

.choix__badge {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--vert);
  color: var(--blanc);
  place-items: center;
}

.choix__badge svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.choix[aria-pressed='true'] .choix__badge {
  display: grid;
}

.retour {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  margin-top: 16px;
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--encre-douce);
  font: 600 0.95rem var(--texte);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.retour::before {
  content: '\2039';
  display: inline-block; /* echappe au soulignement du lien */
  font-size: 1.4rem;
  line-height: 1;
}

/* Champs */

.champ {
  margin-bottom: 16px;
}

.champ label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.champ__aide {
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--encre-douce);
}

.champ input {
  width: 100%;
  min-height: 58px;
  padding: 12px 16px;
  border: 2px solid #8c8273;
  border-radius: 12px;
  background: var(--blanc);
  color: var(--encre);
  font: 400 1.1rem var(--texte);
}

.champ input:focus {
  border-color: var(--vert);
  outline: 3px solid rgba(29, 92, 77, 0.25);
  outline-offset: 0;
}

.champ input[aria-invalid='true'] {
  border-color: var(--erreur);
}

.champ__erreur {
  margin: 6px 0 0;
  color: var(--erreur);
  font-weight: 600;
  font-size: 0.95rem;
}

.champ__erreur[hidden] {
  display: none;
}

/* Creneau */

.creneau__etiquette {
  font-weight: 700;
  margin: 18px 0 10px;
}

.jours {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.moments {
  display: grid;
  gap: 10px;
}

.choix-jour,
.choix-moment {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 64px;
}

.choix-jour small,
.choix-moment small {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--encre-douce);
}

.choix-moment[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--fond);
  box-shadow: none;
}

.choix-moment[disabled]:hover {
  border-color: var(--ligne);
}

/* Case de demande */

.demande__case {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 24px 0 12px;
  padding: 16px;
  border: 2px solid var(--ligne);
  border-radius: var(--rayon);
  background: var(--fond);
  cursor: pointer;
}

.demande__case:has(input:checked) {
  border-color: var(--vert);
  background: var(--vert-voile);
}

.demande__case input {
  flex: none;
  width: 30px;
  height: 30px;
  margin: 2px 0 0;
  accent-color: var(--vert);
  cursor: pointer;
}

.demande__texte {
  font-weight: 600;
}

.demande__info {
  font-size: 0.9rem;
  color: var(--encre-douce);
  margin-bottom: 18px;
}

.erreur-envoi {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fbeaea;
  color: var(--erreur);
  font-weight: 600;
}

.erreur-envoi[hidden] {
  display: none;
}

/* Ecrans de sortie */

.sortie {
  padding: 4px 0;
}

.sortie p {
  color: var(--encre-douce);
}

/* ---------- Reassurance ---------- */

.reassurance {
  background: var(--blanc);
  border-top: 1px solid var(--ligne-douce);
  border-bottom: 1px solid var(--ligne-douce);
  padding: 22px 0;
}

.reassurance__liste {
  list-style: none;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.reassurance__liste li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--encre-douce);
}

.reassurance__liste strong {
  display: block;
  color: var(--encre);
  font-size: 1.05rem;
}

.reassurance__liste svg,
.aide__tete svg {
  flex: none;
  box-sizing: content-box;
  width: 28px;
  height: 28px;
  padding: 10px;
  border-radius: 50%;
  background: var(--vert-pale);
  fill: none;
  stroke: var(--vert);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 640px) {
  .reassurance__liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 28px;
  }
}

@media (min-width: 1000px) {
  .reassurance {
    padding: 28px 0;
  }
  .reassurance__liste {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .reassurance__liste li {
    align-items: flex-start;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 60px 0;
}

@media (min-width: 960px) {
  .section {
    padding: 88px 0;
  }
}

.section--sable {
  background: var(--fond-sable);
}

.section__intro {
  max-width: 40em;
  color: var(--encre-douce);
  font-size: 1.05rem;
}

/* Frise des etapes : verticale sur mobile, horizontale sur ordinateur */

.etapes {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 0;
  counter-reset: etape;
}

.etapes li {
  counter-increment: etape;
  position: relative;
  padding: 0 0 30px 70px;
}

.etapes li:last-child {
  padding-bottom: 0;
}

.etapes li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--vert);
  color: var(--blanc);
  font: 700 1.3rem var(--titres);
  box-shadow: 0 0 0 6px var(--fond-sable);
}

.etapes li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 24px;
  top: 50px;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--vert-moyen) 0 6px, transparent 6px 12px);
}

.etapes h3 {
  font-size: 1.25rem;
  margin: 10px 0 6px;
}

.etapes p {
  margin: 0;
  color: var(--encre-douce);
  max-width: 30em;
}

@media (min-width: 760px) {
  .etapes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin-top: 44px;
  }
  .etapes li {
    padding: 70px 0 0;
  }
  .etapes li:not(:last-child)::after {
    left: 62px;
    right: -16px;
    top: 24px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--vert-moyen) 0 6px, transparent 6px 12px);
  }
  .etapes h3 {
    margin-top: 0;
  }
}

/* Droit ou tournant */

.escaliers {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

@media (min-width: 760px) {
  .escaliers {
    grid-template-columns: 1fr 1fr;
  }
}

.escalier {
  display: flex;
  flex-direction: column;
  background: var(--blanc);
  border: 1px solid var(--ligne-douce);
  border-radius: var(--rayon-grand);
  overflow: hidden;
  box-shadow: var(--ombre-legere);
}

.escalier__visuel {
  background: #f3eadd;
  padding: 18px 18px 0;
}

.escalier__visuel svg {
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 200;
}

.escalier__corps {
  padding: 22px 24px 26px;
}

.escalier__corps h3 {
  margin-bottom: 12px;
}

.escalier__prix {
  display: flex;
  flex-direction: column;
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: var(--rayon);
  background: var(--vert-voile);
  border: 1px solid var(--vert-pale);
}

.prix__avant,
.prix__apres {
  font-size: 0.95rem;
  color: var(--encre-douce);
}

.prix__montant {
  font-family: var(--titres);
  font-size: clamp(1.75rem, 6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--vert-fonce);
  letter-spacing: -0.01em;
}

.escalier__corps ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--encre-douce);
}

.escalier__corps li {
  position: relative;
  padding-left: 28px;
}

.escalier__corps li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--vert);
  border-bottom: 2.5px solid var(--vert);
  transform: rotate(-45deg);
}

.mention-prix {
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--encre-douce);
  font-style: italic;
}

/* Aides */

.aides {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

@media (min-width: 760px) {
  .aides {
    grid-template-columns: 3fr 2fr;
  }
}

.aide {
  background: var(--blanc);
  border: 1px solid var(--ligne-douce);
  border-radius: var(--rayon-grand);
  padding: 26px 24px;
  box-shadow: var(--ombre-legere);
}

.aide__tete {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.aide__tete h3 {
  margin: 0;
}

.aide__chiffre {
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ligne-douce);
  font-family: var(--titres);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--vert-fonce);
}

.aide__chiffre span {
  display: block;
  margin-top: 4px;
  font: 400 0.95rem/1.4 var(--texte);
  color: var(--encre-douce);
}

.aide p:last-child {
  margin-bottom: 0;
  color: var(--encre-douce);
}

/* FAQ */

.faq {
  margin-top: 28px;
  border-top: 1px solid var(--ligne);
  max-width: 820px;
}

.faq details {
  border-bottom: 1px solid var(--ligne);
}

.faq summary {
  position: relative;
  list-style: none;
  min-height: 60px;
  padding: 18px 56px 18px 0;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
}

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

.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--vert-pale);
  font: 400 1.5rem/1 var(--texte);
  color: var(--vert);
}

.faq summary:focus-visible {
  outline-offset: 2px;
}

.faq summary:hover::after {
  background: var(--vert);
  color: var(--blanc);
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq details > div {
  padding: 0 0 22px;
  color: var(--encre-douce);
  max-width: 44em;
}

/* Bandeau final */

.bandeau-final {
  background: var(--vert);
  color: var(--vert-pale);
}

.bandeau-final__grille {
  display: grid;
  gap: 28px;
  align-items: center;
}

.bandeau-final__photo {
  border-radius: var(--rayon-grand);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.bandeau-final__photo img {
  aspect-ratio: 16 / 10;
}

.bandeau-final h2 {
  color: var(--blanc);
}

.bandeau-final p {
  max-width: 30em;
  font-size: 1.1rem;
  color: #e9f1ed;
  margin-bottom: 26px;
}

.bandeau-final .bouton {
  width: 100%;
}

@media (min-width: 640px) {
  .bandeau-final .bouton {
    width: auto;
  }
}

@media (min-width: 900px) {
  .bandeau-final__grille {
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
  }
}

/* ---------- Barre d'action mobile ---------- */

.barre-action {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--fond);
  border-top: 1px solid var(--ligne);
  box-shadow: 0 -6px 20px rgba(30, 43, 47, 0.1);
}

.barre-action[hidden] {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .barre-action:not([hidden]) {
    animation: barre-entree 0.2s ease-out;
  }
}

@keyframes barre-entree {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@media (min-width: 960px) {
  .barre-action {
    display: none !important;
  }
}

/* ---------- Pied de page ---------- */

.pied {
  background: var(--encre);
  color: #e9e4da;
  padding: 40px 0 48px;
  font-size: 0.95rem;
}

.pied a {
  color: var(--blanc);
}

.pied__liens {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 12px;
}

/* ---------- Pages simples (merci, legales) ---------- */

.page-simple {
  padding: 40px 0 64px;
}

.page-simple .conteneur {
  max-width: 780px;
}

.page-simple h2 {
  font-size: 1.4rem;
  margin-top: 1.8em;
}

.page-simple table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.95rem;
}

.page-simple th,
.page-simple td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border: 1px solid var(--ligne);
}

.page-simple th {
  background: var(--fond-sable);
}

.table-defilante {
  overflow-x: auto;
}

.a-completer {
  background: #fff3b0;
  color: #5c4a00;
  font-weight: 700;
  padding: 0 4px;
  border-radius: 4px;
}

.carte-merci {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 20px;
  box-shadow: var(--ombre);
  padding: 32px 22px;
}

@media (min-width: 600px) {
  .carte-merci {
    padding: 44px 48px;
  }
}

.carte-merci__icone {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}

.creneau-confirme {
  padding: 14px 18px;
  border-radius: var(--rayon);
  background: var(--vert-pale);
  font-weight: 700;
}

/* ---------- Ce que ca change (scenes de vie) ---------- */
.demande__duree {
  margin: 0.25rem 0 1.25rem;
  font-size: 0.9rem;
  color: var(--encre-douce);
}
.benefices {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.benefices li {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-left: 4px solid var(--terre);
  border-radius: var(--rayon);
  padding: 1rem 1.25rem;
  box-shadow: var(--ombre);
}
.benefices h3 {
  margin: 0 0 0.25rem;
  font-family: var(--titres);
  font-size: 1.15rem;
  color: var(--encre);
}
.benefices p {
  margin: 0;
  color: var(--encre-douce);
}
@media (min-width: 760px) {
  .benefices {
    grid-template-columns: repeat(2, 1fr);
  }
}
.encart-proche {
  margin-top: 1.5rem;
  background: var(--vert-pale);
  border-radius: var(--rayon);
  padding: 1.25rem 1.5rem;
}
.encart-proche h3 {
  margin: 0 0 0.5rem;
  font-family: var(--titres);
  font-size: 1.2rem;
  color: var(--vert-fonce);
}
.encart-proche p {
  margin: 0 0 0.75rem;
}
.lien-fort {
  font-weight: 700;
  color: var(--vert-fonce);
  text-underline-offset: 3px;
}

/* =========================================================
 * Alignements et chiffres (revue UI du 06/10/2026)
 * ========================================================= */

/* Georgia n'a que des chiffres elzeviriens (le 5, le 7, le 9 descendent) :
   les montants, pourcentages et numeros d'etape passent en police systeme,
   aux chiffres alignes et de meme largeur. */
.prix__montant,
.aide__chiffre,
.etapes li::before {
  font-family: var(--texte);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.02em;
}
.prix__montant,
.aide__chiffre {
  font-weight: 800;
}
.etapes li::before {
  font-weight: 800;
  font-size: 1.25rem;
}

/* Titre et accroche du heros : un peu d'air entre les deux sur mobile. */
.hero__texte h1 {
  margin-bottom: 12px;
}

/* Photo du heros sur ordinateur : moins haute, visages dans le cadre. */
@media (min-width: 960px) {
  .hero__visuel {
    min-height: 340px;
  }
  .hero__visuel img {
    object-position: 50% 32%;
  }
}

/* En-tetes de section centres sur ordinateur (le contenu occupe toute la largeur). */
@media (min-width: 760px) {
  .section > .conteneur > h2,
  .section > .conteneur > .section__intro {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .section > .conteneur > .section__intro {
    max-width: 36em;
  }
}

/* FAQ centree, plus de vide a droite. */
.faq {
  margin-left: auto;
  margin-right: auto;
}

/* Les deux aides cote a cote, meme largeur, meme hauteur. */
@media (min-width: 760px) {
  .aides {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

/* Reassurance sur ordinateur : icone au-dessus, texte centre. */
@media (min-width: 1000px) {
  .reassurance__liste li {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
}

/* Encart aidant centre sur ordinateur, largeur de lecture. */
@media (min-width: 760px) {
  .encart-proche {
    max-width: 46em;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

/* Bandeau final centre sur mobile. */
@media (max-width: 899px) {
  .bandeau-final__texte {
    text-align: center;
  }
  .bandeau-final p {
    margin-left: auto;
    margin-right: auto;
  }
}
