/* =========================================================
   CHARTE — seul endroit où les couleurs, polices, tailles,
   arrondis et ombres sont écrits. Le reste du fichier ne fait
   que s'en servir : pour changer l'apparence, on change ici.
   ========================================================= */
:root {
  /* Couleurs */
  --bleu: #0066FF;            /* boutons, numéros d'étapes, liens d'action */
  --bleu-fonce: #0056D2;      /* montants et chiffres, liens, survol des boutons, bloc final */
  --bleu-pale: #E8F0FF;       /* fonds légers : fichiers ajoutés, pastille + de la FAQ, survol */
  --marine: #1a2a4a;          /* titres et texte principal, pied de page */
  --texte-doux: #4a5a78;      /* texte secondaire : descriptions, légendes, aides */
  --texte-sur-fonce: #d3ddef; /* texte secondaire sur fond foncé (haut de page, bloc final, pied) */
  --orange: #F5A623;          /* accent SUR FOND FONCÉ uniquement (+ contour de focus clavier) */
  --orange-voile: rgb(245 166 35 / .16);   /* fond de la pastille orange */
  --erreur: #d93025;
  --blanc: #fff;
  --fond-alterne: #F5F7FA;    /* une section sur deux */
  --bordure: #dde1e7;         /* contours des cartes, séparateurs */
  --bordure-champ: #b8c4d8;   /* contours des champs, pointillés, trait des étapes */
  --voile: 16 28 54;          /* voile foncé posé sur la photo du haut (opacité choisie là où il sert) */

  /* Polices */
  --police-titres: 'Poppins', sans-serif;
  --police-texte: 'Lato', sans-serif;

  /* Tailles de texte : 7 crans, pas un de plus */
  --taille-h1: clamp(32px, 4.4vw, 56px);       /* grand titre du haut */
  --taille-h2: clamp(28px, 3vw, 40px);         /* titres de section */
  --taille-chiffre: clamp(32px, 3vw, 44px);    /* montants et chiffres clés */
  --taille-h3: 20px;                           /* titres de cartes et d'étapes */
  --taille-intro: clamp(17px, 1.4vw, 19px);    /* phrases d'introduction, questions de la FAQ */
  --taille-texte: 16px;                        /* texte courant, boutons */
  --taille-petit: 14px;                        /* légendes, étiquettes, mentions */
  --taille-bouton: 16px;

  /* Formes */
  --arrondi: 16px;          /* cartes, blocs */
  --arrondi-petit: 10px;    /* boutons, champs, petits éléments */
  --ombre: 0 12px 32px rgb(26 42 74 / .08);
  --ombre-bouton: 0 10px 30px rgb(0 102 255 / .3);
  --halo-cible: 0 0 0 3px rgb(0 102 255 / .25);

  /* Mise en page */
  --largeur-max: 1200px;
  --marge: 24px;
  --hauteur-entete: 72px;
}

/* Téléphone : la même échelle, un cran plus petite */
@media (max-width: 599px) {
  :root {
    --taille-h1: 31px;
    --taille-h2: 26px;
    --taille-chiffre: 26px;
    --taille-h3: 18px;
    --taille-intro: 17px;
    --taille-bouton: 15px;
  }
}

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

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

/* Les ancres s'arrêtent sous l'en-tête collé, pas derrière */
[id] { scroll-margin-top: var(--hauteur-entete); }

body {
  margin: 0;
  background: var(--blanc);
  color: var(--marine);
  font-family: var(--police-texte);
  font-size: var(--taille-texte);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--police-titres); margin: 0; line-height: 1.15; }
h1, h2 { font-weight: 800; }
h3 { font-weight: 700; font-size: var(--taille-h3); line-height: 1.3; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu-fonce); }
.insecable { white-space: nowrap; }   /* mot composé à ne jamais couper au trait d'union */
[hidden] { display: none !important; }   /* un élément masqué reste masqué même s'il a un display */

/* Étiquette en petites capitales (pastille du haut, carte du haut) */
.pastille, .hero__carte-titre {
  font-family: var(--police-titres);
  font-weight: 600;
  font-size: var(--taille-petit);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* =========================================================
   BOUTONS (même style partout)
   ========================================================= */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--arrondi-petit);
  background: var(--bleu);
  color: var(--blanc);
  font-family: var(--police-titres);
  font-weight: 600;
  font-size: var(--taille-bouton);
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.bouton:hover { background: var(--bleu-fonce); color: var(--blanc); }
.bouton:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.bouton--petit { min-height: 44px; padding: 0 20px; }
.bouton--grand {
  min-height: 56px;
  padding: 0 28px;
  box-shadow: var(--ombre-bouton);
}
.bouton--grand:hover { transform: translateY(-2px); }

@media (max-width: 599px) {
  .bouton--grand { padding: 0 16px; gap: 8px; }
}

/* =========================================================
   0. EN-TÊTE
   ========================================================= */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blanc);
  border-bottom: 1px solid var(--bordure);
}
.entete__inner {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 var(--marge);
  height: var(--hauteur-entete);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.entete__logo img { height: 40px; width: auto; }

.entete__menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.entete__menu a:not(.bouton) {
  color: var(--marine);
  font-family: var(--police-titres);
  font-weight: 500;
  font-size: var(--taille-petit);
  text-decoration: none;
  padding: 10px 0;
}
.entete__menu a:not(.bouton):hover { color: var(--bleu); }
.entete__menu .bouton { font-size: var(--taille-petit); }

.entete__burger { display: none; }

/* Tablette et mobile : menu replié derrière le bouton ☰ */
@media (max-width: 1023px) {
  :root { --hauteur-entete: 64px; }
  .entete__logo img { height: 34px; }

  .entete__burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-right: -12px;
    border: none;
    background: none;
    color: var(--marine);
    cursor: pointer;
  }
  .entete__burger .icone-fermer { display: none; }
  .entete__burger[aria-expanded="true"] .icone-ouvrir { display: none; }
  .entete__burger[aria-expanded="true"] .icone-fermer { display: block; }

  .entete__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--marge) 24px;
    background: var(--blanc);
    border-bottom: 1px solid var(--bordure);
    box-shadow: var(--ombre);
  }
  .entete__menu.est-ouvert { display: flex; }
  .entete__menu a:not(.bouton) {
    padding: 14px 0;
    font-size: var(--taille-intro);
    border-bottom: 1px solid var(--bordure);
  }
  .entete__menu .bouton { margin-top: 20px; min-height: 52px; font-size: var(--taille-bouton); }
}

/* =========================================================
   1. HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--marine);
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}
/* Voile : foncé sous le texte, plus léger à droite pour laisser voir le coucher de soleil */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    rgb(var(--voile) / .94) 0%,
    rgb(var(--voile) / .84) 45%,
    rgb(var(--voile) / .3) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 104px var(--marge) 112px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero__texte {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pastille {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--orange-voile);
  color: var(--orange);
}

.hero h1 {
  color: var(--blanc);
  font-size: var(--taille-h1);
  line-height: 1.1;
  max-width: 760px;
}
.hero__sous-titre {
  color: var(--texte-sur-fonce);
  font-size: var(--taille-intro);
  max-width: 620px;
}

.hero__coches {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.hero__coches li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blanc);
  font-weight: 700;
}
.hero__coches svg { flex: 0 0 auto; color: var(--orange); }
.hero__texte > div { padding-top: 8px; }

.hero__carte {
  flex: 0 0 320px;
  background: var(--blanc);
  border-radius: var(--arrondi);
  padding: 28px;
  box-shadow: var(--ombre);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero__carte-titre { color: var(--texte-doux); }
.hero__carte-montant {
  font-family: var(--police-titres);
  font-weight: 800;
  font-size: var(--taille-chiffre);
  line-height: 1.1;
  color: var(--bleu-fonce);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bordure);
  margin-bottom: 8px;
}
.hero__carte-texte { font-size: var(--taille-petit); color: var(--texte-doux); }

/* Tablette : la carte passe sous le texte */
@media (max-width: 1023px) {
  .hero__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 72px var(--marge) 80px;
  }
  .hero__carte { flex: none; max-width: 420px; }
}

/* Mobile : voile uniforme (le texte prend toute la largeur), titre + bouton visibles sans défiler */
@media (max-width: 599px) {
  .hero::before {
    background: linear-gradient(180deg,
      rgb(var(--voile) / .9) 0%,
      rgb(var(--voile) / .82) 100%);
  }
  .hero__photo { object-position: 70% center; }
  .hero__inner { padding: 28px var(--marge) 48px; gap: 36px; }
  .hero__texte { gap: 16px; }
  .hero__coches { flex-direction: column; gap: 8px; }
  .hero__coches li { align-items: flex-start; }
  .hero__texte > div { padding-top: 4px; }
  .hero .bouton--grand { width: 100%; }
  .hero__carte { padding: 24px; max-width: none; }
}

/* =========================================================
   SECTIONS — gabarit commun : fond blanc ou gris en alternance,
   titre et introduction centrés
   ========================================================= */
.section__inner {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 56px var(--marge);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
/* Simon 23/10 : encore trop d'espace en haut de ces 3 sections */
#qui-est-concerne .section__inner, #cas-clients .section__inner, #faq .section__inner { padding-top: 40px; }
.section--gris { background: var(--fond-alterne); }

.section__entete {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 820px;
  text-align: center;
}
.section h2 { font-size: var(--taille-h2); }
.section__intro { font-size: var(--taille-intro); color: var(--texte-doux); text-wrap: balance; }

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--police-titres);
  font-weight: 600;
  text-decoration: none;
}
.lien-fleche svg { transition: transform .2s; }
.lien-fleche:hover svg { transform: translateX(4px); }

@media (max-width: 599px) {
  .section__inner { padding: 40px var(--marge); gap: 28px; }
  #qui-est-concerne .section__inner, #cas-clients .section__inner, #faq .section__inner { padding-top: 28px; }
}

/* =========================================================
   2. BANDEAU CONFIANCE — défilement continu
   La liste est doublée par main.js ; l'animation la décale de la moitié,
   donc la 2e copie prend exactement la place de la 1re : boucle sans à-coup.
   ========================================================= */
.confiance {
  background: var(--blanc);
  border-bottom: 1px solid var(--bordure);
  padding: 40px 0 44px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
/* même étiquette en petites capitales que la pastille du haut, en plus gros et plus gras (Simon 23/10) */
.confiance__titre {
  text-align: center;
  font-family: var(--police-titres);
  font-weight: 800;
  font-size: var(--taille-intro);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--texte-doux);
  padding: 0 var(--marge);
}
.confiance__bande {
  overflow: hidden;
  /* les logos apparaissent et disparaissent en fondu sur les bords */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.confiance__liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  width: max-content;
  animation: defilement var(--duree-defilement, 40s) linear infinite;
}
.confiance__bande:hover .confiance__liste { animation-play-state: paused; }
.confiance__liste li {
  flex: 0 0 auto;
  margin-right: 88px; /* 64 → 88 px (Simon 23/10) */
}
.confiance__liste img {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
/* Marie Blachère : logo carré, affiché en plus grand que les autres (Simon 23/10) */
.confiance__liste img.confiance__logo--grand { height: 88px; max-width: none; }
/* Stellantis et ArcelorMittal un peu plus grands que les autres (Simon 23/10) */
.confiance__liste img.confiance__logo--moyen { height: 64px; max-width: none; }
/* invisible le temps que main.js place les logos forts à droite (évite un saut au chargement) */
.confiance__liste.en-placement { visibility: hidden; }
/* Emplacement provisoire tant que les vrais logos ne sont pas fournis */
.logo-attente {
  width: 140px;
  height: 48px;
  border-radius: var(--arrondi-petit);
  background: var(--fond-alterne);
  border: 1px dashed var(--bordure-champ);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texte-doux);
  font-size: var(--taille-petit);
  font-weight: 700;
}
@keyframes defilement {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .confiance__liste { animation: none; flex-wrap: wrap; justify-content: center; width: auto; row-gap: 20px; }
}
@media (max-width: 599px) {
  .confiance { padding: 32px 0 36px; gap: 20px; }
  .confiance__liste li { margin-right: 56px; }
  .confiance__liste img { height: 40px; }
  .confiance__liste img.confiance__logo--grand { height: 72px; }
  .confiance__liste img.confiance__logo--moyen { height: 52px; }
}

/* =========================================================
   CARTE — même famille pour toutes les cartes de la page
   ========================================================= */
.secteur, .frise, .cas, .formulaire, .contact, .faq details {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--arrondi);
  box-shadow: var(--ombre);
}

/* =========================================================
   3. QUI EST CONCERNÉ
   ========================================================= */
.secteurs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.secteur {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.secteur img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.secteur__corps {
  flex: 1;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.secteur p { flex: 1; color: var(--texte-doux); }
.secteur .lien-fleche { align-self: flex-start; margin-bottom: -10px; }

.secteurs__note { display: flex; justify-content: center; }

/* Tablette : 3 cartes en largeur seraient trop étroites → cartes horizontales, photo à gauche */
@media (max-width: 1023px) {
  .secteurs { grid-template-columns: 1fr; }
  /* la photo suit la hauteur du texte (sinon la photo portrait étire la carte) */
  .secteur { display: block; position: relative; padding-left: 38%; }
  .secteur img { position: absolute; top: 0; left: 0; width: 38%; height: 100%; }
  .secteur__corps { min-height: 220px; }
}
/* Mobile : photo au-dessus, moins haute */
@media (max-width: 599px) {
  .secteur { padding-left: 0; }
  .secteur img { position: static; width: 100%; height: 180px; }
  .secteur__corps { min-height: 0; padding: 22px; gap: 10px; }
  .secteurs__note .bouton { width: 100%; }
}

/* =========================================================
   4. COMMENT ÇA MARCHE
   Ordinateur : titre + illustration à gauche (maquette), étapes dans une carte à droite.
   Tablette / mobile : titre centré au-dessus, étapes en dessous, pas d'illustration.
   Le trait vertical entre les numéros est dessiné par chaque étape vers la suivante (::after).
   ========================================================= */
.texte-bleu { color: var(--bleu); }
.comment__intro h2 .texte-bleu { display: block; }   /* « Comment » / « ça marche ? » sur 2 lignes */

.comment__intro { display: flex; flex-direction: column; gap: 16px; }
.comment__illustration { display: none; }

.frise {
  list-style: none;
  margin: 0;
  padding: 8px 28px;
}
.etape {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
}
.etape__num {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bleu);
  color: var(--blanc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--police-titres);
  font-weight: 700;
  box-shadow: 0 0 0 5px var(--blanc);
}
.etape:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: calc(50% + 16px);
  width: 2px;
  margin-top: 4px;
  height: calc(100% - 40px);
  background: var(--bordure-champ);
}
.etape__corps {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* trait de séparation entre les lignes, à partir du texte */
.etape:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50px;
  right: 0;
  height: 1px;
  background: var(--bordure);
}
.etape p { color: var(--texte-doux); }

@media (max-width: 1023px) {
  .comment__intro { text-align: center; align-items: center; }
  .comment__intro .section__intro { max-width: 560px; }
  .frise { max-width: 720px; width: 100%; margin: 0 auto; }
}
/* Téléphone : pas de carte, frise simple (pastilles à gauche reliées par un trait, texte à droite) */
@media (max-width: 599px) {
  .frise { padding: 0; background: none; border: none; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; gap: 28px; }
  .etape { gap: 16px; padding: 0; align-items: flex-start; }
  .etape__num { width: 40px; height: 40px; }
  .etape:not(:last-child)::after {
    left: 19px;
    top: 40px;
    bottom: -28px;
    height: auto;
    margin-top: 0;
  }
  .etape:not(:first-child)::before { display: none; }
  .etape__corps { padding-top: 7px; gap: 6px; }
  .comment__intro h2 .texte-bleu { display: inline; }
}

/* Ordinateur : 2 colonnes */
@media (min-width: 1024px) {
  .comment__inner {
    display: grid;
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: 56px;
  }
  .comment__illustration { display: block; width: 100%; max-width: 440px; margin-top: 16px; }
}

/* =========================================================
   5. CHIFFRES CLÉS — une carte, 4 colonnes séparées par un trait fin
   ========================================================= */
/* Chiffres posés directement sur la bande grise, sans carte autour (Simon 23/10 : « une case dans une case ») */
.chiffres { background: var(--fond-alterne); padding: 40px var(--marge); }
.chiffres__liste {
  list-style: none;
  margin: 0 auto;
  max-width: calc(var(--largeur-max) - 2 * var(--marge));
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.chiffres__liste li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 4px 16px;
}
.chiffres__liste li + li { border-left: 1px solid var(--bordure); }
.chiffres__valeur {
  font-family: var(--police-titres);
  font-weight: 800;
  font-size: var(--taille-chiffre);
  line-height: 1.1;
  color: var(--bleu-fonce);
  white-space: nowrap;
}
.chiffres__libelle { color: var(--texte-doux); }

/* Tablette et téléphone : 2 × 2 */
@media (max-width: 1023px) {
  .chiffres__liste { grid-template-columns: repeat(2, 1fr); padding: 0; }
  .chiffres__liste li { padding: 28px 12px; }
  .chiffres__liste li + li { border-left: none; }
  .chiffres__liste li:nth-child(even) { border-left: 1px solid var(--bordure); }
  .chiffres__liste li:nth-child(n+3) { border-top: 1px solid var(--bordure); }
}
@media (max-width: 599px) {
  .chiffres { padding: 16px var(--marge); }
  .chiffres__liste li { padding: 22px 8px; }
  .chiffres__libelle { font-size: var(--taille-petit); }
}

/* =========================================================
   6. CAS CLIENTS — carrousel qui défile horizontalement (au doigt, à la molette, ou avec les flèches)
   Les cartes « s'aimantent » en place (scroll-snap) ; main.js fait avancer d'une carte par flèche.
   ========================================================= */
.carrousel { display: flex; flex-direction: column; gap: 24px; }
.carrousel__piste {
  --visibles: 3;
  list-style: none;
  /* la piste déborde jusqu'au bord de la section (marge négative) pour que l'ombre des cartes ne soit pas coupée */
  padding: 12px var(--marge) 40px;
  margin: -12px calc(-1 * var(--marge)) -40px;
  scroll-padding-inline: var(--marge);
  /* fondu sur les bords : pas d'arête nette là où l'ombre des cartes voisines est coupée */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--marge), #000 calc(100% - var(--marge)), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 var(--marge), #000 calc(100% - var(--marge)), transparent);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--visibles) - 1) * 24px) / var(--visibles));
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carrousel__piste::-webkit-scrollbar { display: none; }
.cas {
  scroll-snap-align: start;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s, border-color .3s;
}
/* bande blanche en haut de la carte, logo centré (comme sur hexagroupe.com) */
.cas__bande {
  height: 128px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--bordure);
}
.cas__logo { max-height: 80px; max-width: 70%; width: auto; height: auto; object-fit: contain; }
.cas__corps { flex: 1; padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 4px; }
/* mise en avant quand on arrive depuis « Voir le cas client » */
.cas.est-cible { border-color: var(--bleu); box-shadow: var(--halo-cible); }
.cas__secteur { font-size: var(--taille-petit); color: var(--texte-doux); }
.cas__conso { flex: 1; margin-top: 12px; color: var(--texte-doux); }
.cas__montant {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--bordure);
  font-family: var(--police-titres);
  font-weight: 800;
  font-size: var(--taille-chiffre);
  line-height: 1.1;
  color: var(--bleu-fonce);
}
.cas__montant small {
  display: block;
  margin-top: 6px;
  font-family: var(--police-texte);
  font-size: var(--taille-petit);
  font-weight: 700;
  color: var(--texte-doux);
}

.carrousel__fleches { display: flex; justify-content: center; gap: 12px; }
.carrousel__fleche {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--bordure);
  background: var(--blanc);
  color: var(--bleu-fonce);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s, opacity .2s;
}
.carrousel__fleche:hover:not(:disabled) { background: var(--bleu); border-color: var(--bleu); color: var(--blanc); }
.carrousel__fleche:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { .carrousel__piste { scroll-behavior: auto; } }
/* Tablette : 2 cartes */
@media (max-width: 1023px) { .carrousel__piste { --visibles: 2; } }
/* Téléphone : 1 carte, le bord de la suivante dépasse pour montrer qu'on peut glisser */
@media (max-width: 599px) {
  .carrousel__piste { grid-auto-columns: 84%; gap: 16px; }
  .cas__bande { height: 112px; }
  .cas__corps { padding: 20px 22px 24px; }
}

/* =========================================================
   7. FORMULAIRE + CONTACT
   ========================================================= */
.formulaire__inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  align-items: start;
  gap: 32px;
}
.formulaire { padding: clamp(24px, 4vw, 44px); }
.formulaire__form { display: flex; flex-direction: column; gap: 28px; }
.formulaire__titre { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.formulaire__titre p { color: var(--texte-doux); font-size: var(--taille-petit); }
.formulaire__titre .formulaire__etape {
  color: var(--bleu-fonce);
  font-family: var(--police-titres);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.formulaire__titre .formulaire__duree { margin-top: -2px; color: var(--marine); font-family: var(--police-titres); font-weight: 600; font-size: var(--taille-intro); }
.etape-form { display: flex; flex-direction: column; gap: 28px; }
.formulaire__consigne { text-align: center; color: var(--texte-doux); }
.formulaire__retour {
  align-self: center;
  min-height: 44px;
  padding: 0 12px;
  border: none;
  background: none;
  color: var(--texte-doux);
  font: 600 var(--taille-petit) var(--police-titres);
  cursor: pointer;
}
.formulaire__retour:hover { color: var(--bleu-fonce); }
.formulaire__retour:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: var(--arrondi-petit); }

.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.champ { display: flex; flex-direction: column; gap: 8px; font-size: var(--taille-petit); font-weight: 700; }
.champ--large { grid-column: 1 / -1; }
.champ input {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--bordure-champ);
  border-radius: var(--arrondi-petit);
  font: 400 16px var(--police-texte);   /* 16 px : évite le zoom automatique sur iPhone */
  color: var(--marine);
  background: var(--blanc);
}
.champ input:focus { outline: 2px solid var(--bleu); outline-offset: 1px; border-color: var(--bleu); }
.champ input.est-invalide { border-color: var(--erreur); }

.depots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.depot { display: flex; flex-direction: column; gap: 10px; }
.depot__zone {
  position: relative;
  flex: 1;
  border: 2px dashed var(--bordure-champ);
  border-radius: var(--arrondi-petit);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  background: var(--fond-alterne);
  color: var(--bleu-fonce);
  transition: border-color .2s, background .2s;
}
.depot__zone:hover, .depot.est-survole .depot__zone { border-color: var(--bleu); background: var(--bleu-pale); }
.depot.est-invalide .depot__zone { border-color: var(--erreur); }
.depot__zone input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.depot__zone:focus-within { outline: 3px solid var(--orange); outline-offset: 2px; }
.depot__titre { font-family: var(--police-titres); font-weight: 600; color: var(--marine); }
.depot__aide { font-size: var(--taille-petit); line-height: 1.5; color: var(--texte-doux); }
.depot__action { font-size: var(--taille-petit); font-weight: 700; }
.depot__action--mobile { display: none; }

.depot__fichiers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.depot__fichiers li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  border-radius: var(--arrondi-petit);
  background: var(--bleu-pale);
  font-size: var(--taille-petit);
}
.depot__fichiers .nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.depot__fichiers .taille { color: var(--texte-doux); white-space: nowrap; }
.depot__fichiers button {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--arrondi-petit);
  background: none;
  color: var(--marine);
  font-size: 20px;   /* taille du signe ×, pas du texte */
  line-height: 1;
  cursor: pointer;
}
.depot__fichiers button:hover { background: var(--blanc); }

.formulaire__erreur { color: var(--erreur); font-weight: 700; }

.envoi { display: flex; flex-direction: column; gap: 8px; }
.envoi__barre { height: 10px; border-radius: 999px; background: var(--bleu-pale); overflow: hidden; }
.envoi__barre span { display: block; height: 100%; width: 0; background: var(--bleu); transition: width .2s; }
.envoi__texte { font-size: var(--taille-petit); color: var(--texte-doux); }

.formulaire__bouton { width: 100%; border: none; cursor: pointer; }
.formulaire__bouton:disabled { opacity: .6; cursor: wait; }

.formulaire__rgpd { display: flex; gap: 10px; align-items: flex-start; font-size: var(--taille-petit); color: var(--texte-doux); }
.formulaire__obligatoires { margin-top: -16px; font-size: var(--taille-petit); color: var(--texte-doux); text-align: center; }
.formulaire__rgpd svg { flex: 0 0 auto; margin-top: 3px; }

.formulaire__merci {
  padding: 48px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  outline: none;
}
.formulaire__merci-icone {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bleu);
  color: var(--blanc);
  display: flex;
  align-items: center;
  justify-content: center;
}
.formulaire__merci p { max-width: 460px; font-size: var(--taille-intro); color: var(--texte-doux); }

/* Carte contact : même famille que les autres cartes */
.contact {
  align-self: center;   /* centrée en hauteur à côté du formulaire */
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact__personne { display: flex; align-items: center; gap: 16px; }
.contact__personne img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.contact__nom { font-family: var(--police-titres); font-weight: 600; }
.contact__fonction { font-size: var(--taille-petit); color: var(--texte-doux); }
.contact__lien {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 16px;
  border-radius: var(--arrondi-petit);
  background: var(--fond-alterne);
  color: var(--marine);
  text-decoration: none;
  font-weight: 700;
  transition: background .2s;
}
.contact__lien svg { flex: 0 0 auto; color: var(--bleu); }
.contact__lien:hover { background: var(--bleu-pale); color: var(--marine); }

@media (max-width: 1023px) {
  .formulaire__inner { grid-template-columns: 1fr; max-width: 720px; }
  /* tablette et téléphone : tout le contenu de la carte contact est centré */
  .contact { align-items: center; text-align: center; }
  .contact__personne { flex-direction: column; gap: 12px; }
  .contact__lien { align-self: stretch; justify-content: center; }
}
@media (max-width: 599px) {
  .formulaire { padding: 24px 14px; }
  .champs, .depots { grid-template-columns: 1fr; }
  .depot__action--ordi { display: none; }
  .depot__action--mobile { display: inline; }
  .formulaire__bouton { padding: 0 12px; }
}

/* =========================================================
   8. FAQ
   ========================================================= */
.faq__inner { max-width: 900px; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { box-shadow: none; }   /* 8 questions empilées : le contour suffit */
.faq summary {
  list-style: none;
  min-height: 64px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: var(--police-titres);
  font-weight: 600;
  font-size: var(--taille-texte);
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
/* pastille + / − */
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bleu-pale);
  color: var(--bleu-fonce);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;   /* taille du signe, pas du texte */
  font-weight: 700;
}
.faq details[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: var(--arrondi); }
.faq details p { padding: 0 22px 22px; color: var(--texte-doux); }
@media (max-width: 599px) {
  .faq summary { padding: 16px 18px; }
  .faq details p { padding: 0 18px 18px; }
}

/* =========================================================
   9. CTA FINAL
   ========================================================= */
.cta-final { padding: 0 var(--marge) 56px; }
.cta-final__bloc {
  max-width: calc(var(--largeur-max) - 2 * var(--marge));
  margin: 0 auto;
  background: var(--bleu-fonce);
  border-radius: var(--arrondi);
  padding: clamp(36px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--blanc);
}
.cta-final__texte { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
/* étiquette orange « Plus que N jours » au-dessus du titre */
.compte-a-rebours {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--marine);
  font-family: var(--police-titres);
  font-weight: 700;
  font-size: var(--taille-petit);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cta-final h2 { font-size: var(--taille-h2); }
.cta-final p { font-size: var(--taille-intro); color: var(--texte-sur-fonce); }

.bouton--blanc { background: var(--blanc); color: var(--bleu-fonce); box-shadow: none; flex: 0 0 auto; }
.bouton--blanc:hover { background: var(--bleu-pale); color: var(--bleu-fonce); }

@media (max-width: 1023px) {
  .cta-final__bloc { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 599px) {
  .cta-final { padding-bottom: 40px; }
  .cta-final__bloc { padding: 32px 18px; }
  .cta-final .bouton { width: 100%; padding: 0 12px; }
}

/* =========================================================
   PAGES DE TEXTE (mentions légales, politique de confidentialité)
   ========================================================= */
.entete__cta-seul { display: inline-flex; }
.page-texte {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px var(--marge) 80px;
}
.page-texte h1 { font-size: var(--taille-h2); margin-bottom: 24px; }
.page-texte h2 { font-size: var(--taille-h3); font-weight: 700; margin: 40px 0 12px; }
.page-texte p, .page-texte li { color: var(--texte-doux); }
.page-texte p + p { margin-top: 12px; }
.page-texte strong { color: var(--marine); }
.page-texte ul { margin: 12px 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.page-texte__maj { margin-top: 40px; font-size: var(--taille-petit); }
@media (max-width: 599px) {
  .page-texte { padding: 40px var(--marge) 56px; }
  .entete__cta-seul { display: none; }   /* trop large à côté du logo sur téléphone */
}

/* =========================================================
   ANIMATIONS (Simon 23/10) — toutes coupées si le visiteur a demandé « réduire les animations ».
   Durées volontairement lentes (Simon : sinon « du mouvement pour rien »). Pas de compteurs ni d'apparition élément par élément
   (essayés puis retirés : « lourd ») : chaque section glisse seulement d'un bloc, légèrement. La frise et l'étiquette ne démarrent que si main.js a posé la classe .js-anime :
   sans JavaScript, tout reste simplement affiché.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {

  /* Entrée du haut de page au chargement, en cascade */
  .hero__texte > *, .hero__carte { animation: entree 1.1s ease both; }
  .hero__texte > :nth-child(2) { animation-delay: .2s; }
  .hero__texte > :nth-child(3) { animation-delay: .4s; }
  .hero__texte > :nth-child(4) { animation-delay: .6s; }
  .hero__texte > :nth-child(5) { animation-delay: .8s; }
  .hero__carte { animation-delay: 1.56s; } /* la carte des montants arrive après le texte, le temps de le lire (Simon) */
  @keyframes entree { from { opacity: 0; transform: translateY(24px); } }

  /* Léger glissement de chaque section à son arrivée à l'écran (un seul mouvement par section ;
     le fond de la section reste en place, seul son contenu glisse). Classe .glisse posée par main.js. */
  .js-anime .glisse { opacity: 0; transform: translateY(20px); }
  .js-anime .glisse.est-visible { opacity: 1; transform: none; transition: opacity .9s ease, transform .9s ease; }

  /* Frise « Comment ça marche » : les pastilles s'allument une à une, le trait se dessine entre elles
     (--i = numéro de l'étape, posé par main.js ; démarre quand la frise est à moitié visible) */
  /* (la transition n'est posée qu'à l'allumage : le passage au gris au chargement est instantané, sans clignotement) */
  .js-anime .frise .etape__num { background: var(--bordure-champ); transform: scale(.85); }
  .js-anime .frise.est-visible .etape__num {
    background: var(--bleu);
    transform: none;
    transition: background .7s ease, transform .7s ease;
    transition-delay: calc(var(--i, 0) * .7s + .3s);
  }
  .js-anime .frise .etape:not(:last-child)::after { transform: scaleY(0); transform-origin: top; }
  .js-anime .frise.est-visible .etape:not(:last-child)::after {
    transform: none;
    transition: transform .6s ease;
    transition-delay: calc(var(--i, 0) * .7s + .7s);
  }

  /* FAQ : la réponse se déplie en douceur (navigateurs récents ; ailleurs elle s'ouvre d'un coup, comme avant) */
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size .3s ease, content-visibility .3s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }

  /* Message de remerciement : le rond apparaît, puis la coche se trace */
  .formulaire__merci:not([hidden]) .formulaire__merci-icone { animation: pop .8s cubic-bezier(.3, 1.5, .6, 1) both; }
  .formulaire__merci:not([hidden]) .formulaire__merci-icone path {
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: trace .9s .7s ease forwards;
  }
  @keyframes pop { from { opacity: 0; transform: scale(.4); } }
  @keyframes trace { to { stroke-dashoffset: 0; } }

  /* « Plus que N jours » : deux pulsations quand le bloc final est bien à l'écran, puis plus rien */
  .js-anime .cta-final__bloc.est-visible .compte-a-rebours { animation: pulsation 1.6s .5s ease-in-out 2; }
  @keyframes pulsation {
    50% { transform: scale(1.08); box-shadow: 0 0 0 8px var(--orange-voile); }
  }
}
