/* Design C « Itinéraire » : bleu nuit, vert « charge » et bleu ciel, formes arrondies, Lexend pour les titres et
   Atkinson Hyperlegible pour le texte. Signature : le parcours en pointillés et la jauge de recharge segmentée. */

@font-face { font-family: "Lexend"; src: url("/assets/fonts/lexend-latin-wght-normal.woff2") format("woff2-variations"), url("/assets/fonts/lexend-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 600 900; font-style: normal; font-display: swap; }

:root {
  --graphite: #0f2438;
  --graphite-2: #3a5068;
  --graphite-3: #4a6075;
  --gris: #f2f7fb;
  --gris-2: #eaf3fa;
  --ligne: #c3d6e6;
  --jaune: #18a957;
  --jaune-fonce: #0b6e42;
  --jaune-pale: #ddf3e6;
  --vert: #18a957;
  --vert-fonce: #0b6e42;
  --vert-pale: #ddf3e6;
  --ciel: #d6eaf8;
  --rayon: 14px;
  --conteneur: 1240px;
  --titre: "Lexend", Arial, sans-serif;
  --ombre-focus: 0 0 0 3px #ffffff, 0 0 0 5px var(--graphite);
}

body { font-family: "Atkinson Hyperlegible", Arial, sans-serif; font-size: 18px; line-height: 1.55; }
body.accueil { background: var(--gris); }
a { text-decoration-color: var(--vert); }
a:hover { color: var(--vert-fonce); background: none; }
h1, h2, h3, .panneau-titre, .logo-txt, .resultat .fourchette, .chiffres-cles strong, .stats-commune strong, .obs-chiffres strong,
.cta-devis h2, .cta-devis .cta-titre, .pied-titre, .loi .loi-titre, .specs td, .liste-stations .st-kw, .barres-temps .bt-val, .sommaire summary, .faq summary {
  font-family: var(--titre); font-stretch: normal;
}
h1 { font-weight: 700; font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.05; letter-spacing: -.02em; }
h2 { font-weight: 700; font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.12; letter-spacing: -.015em; }
h3 { font-weight: 600; font-size: 1.25rem; }
.faq summary { font-weight: 600; }
.faq summary::after { content: "+"; }
.faq details[open] summary::after { content: "\2212"; }

/* Bande « votre situation » : pilules sur bleu ciel */

/* En-tête */
header.site { border-bottom: 0; box-shadow: 0 1px 0 var(--ligne); }
.logo-txt { font-weight: 700; font-size: 1.45rem; letter-spacing: -.01em; }
.logo-pic { width: 40px; height: 40px; }
.nav-principale a { font-weight: 700; font-stretch: normal; border-radius: 999px; padding-left: 7px; padding-right: 7px; }
.nav-principale li.mis-en-avant a { box-shadow: inset 0 -3px 0 var(--vert); }

/* Boutons en pilule */
.btn { border-radius: 999px; border: 2px solid var(--graphite); font-stretch: normal; padding-left: 1.4em; padding-right: 1.4em; }
.btn-cta { background: var(--vert); border-color: var(--vert); color: var(--graphite); box-shadow: none; }
.btn-cta:hover { background: #14944b; color: var(--graphite); }
.btn-sombre, .btn-entete.btn-cta { background: var(--graphite); border-color: var(--graphite); color: var(--blanc); }
.btn-sombre:hover, .btn-entete.btn-cta:hover { background: #1b3954; color: var(--blanc); }
.burger { border-radius: 999px; }

/* Composants des pages */
.panneau { border: 0; border-radius: 22px; background: var(--blanc); box-shadow: 0 0 0 2px var(--ligne); }
.panneau-titre { font-weight: 700; }
.progression span { border-radius: 4px; height: 8px; }
.choix-tuiles label { border-radius: 16px; font-stretch: normal; }
.choix-tuiles label:has(input:checked) { border-color: var(--graphite); box-shadow: inset 0 0 0 1px var(--graphite); background: var(--gris-2); }
.choix-tuiles input { accent-color: var(--vert-fonce); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=search], select, textarea { border-color: #9fc2de; border-radius: 12px; }
.recherche input { border-radius: 999px; padding-left: 18px; }
input:focus, select:focus, textarea:focus { border-color: var(--graphite); box-shadow: 0 0 0 3px #bfe6cf; }
.bon-a-savoir { background: var(--gris-2); border-radius: 18px; }
.bon-a-savoir::before { background: var(--vert); color: var(--graphite); }
.loi { border-radius: 18px; border: 0; background: var(--gris); box-shadow: inset 4px 0 0 var(--graphite); }
.cta-devis { border: 0; border-radius: 22px; background: var(--graphite); color: var(--blanc); box-shadow: none; }
.cta-devis h2, .cta-devis .cta-titre, .cta-devis p, .cta-devis li { color: var(--blanc); }
.cta-devis li::before { background: var(--vert); }
.contenu th, table.tableau th { font-stretch: normal; border-bottom-color: var(--graphite); }
ol.etapes > li::before { background: var(--graphite); color: var(--blanc); border-color: var(--graphite); font-family: var(--titre); }
ol.etapes > li:not(:last-child)::after { background: none; border-left: 3px dashed #9fc2de; width: 0; }
.tag { border-radius: 999px; }
.liste-pros > li { border-radius: 18px; }
.liste-pros > li.premium { box-shadow: 0 0 0 3px var(--vert); border-color: var(--graphite); }
.selecteur-version button[aria-pressed="true"] { background: var(--vert); }
.ob-barre span { background: var(--vert); }
.sommaire { border-radius: 18px; background: var(--gris); }
.carte { border-radius: 22px; }

/* Pied de page bleu nuit */
footer.site { background: var(--graphite); color: var(--ligne); }
footer.site a { color: var(--ligne); text-decoration-color: #3a5068; }
footer.site a:hover { color: var(--blanc); text-decoration-color: var(--vert); }
footer.site .btn-cta, footer.site .btn-cta:hover { color: var(--graphite); }
.pied-titre { color: var(--blanc); }
.pied-bas { border-top-color: #1f3a54; }

/* ---------- Accueil C ---------- */
.hc-hero-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 470px), 1fr)); gap: 44px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
.hc-hero h1 { font-size: clamp(2.3rem, 4vw, 3.4rem); line-height: 1.04; margin: 0 0 22px; }
.hc-intro { font-size: 1.2rem; color: var(--graphite-2); max-width: 32em; }
.hc-pilules.tuiles-profil { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; max-width: none; }
.hc-pilules button { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 700; background: var(--blanc); color: var(--graphite); border: 2px solid var(--ligne); border-radius: 999px; padding: 10px 18px 10px 12px; min-height: 48px; cursor: pointer; }
.hc-pilules button:hover { border-color: var(--graphite); }
.hc-pilules button[aria-pressed="true"] { background: var(--graphite); color: var(--blanc); border-color: var(--graphite); box-shadow: none; }
.hc-pilules button[aria-pressed="true"] svg { color: var(--vert); }
.hc-boutons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0; }
.hc-lien-cta { font-weight: 700; padding: 14px 10px; }
.hc-scene { background: var(--ciel); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.hc-recharge { background: var(--blanc); border-radius: 18px; padding: 16px 18px; }
.hc-recharge-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hc-recharge-tete p { margin: 0; }
.hc-recharge-titre { font-family: var(--titre); font-weight: 600; }
.hc-segments { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; margin: 10px 0; }
.hc-segments span { height: 16px; border-radius: 4px; background: var(--ciel); }
.hc-segments span.plein { background: var(--vert); }
.hc-note { margin: 0; font-size: .85rem; color: var(--graphite-3); }

.hc-section { padding: 60px 0; }
.hc-section h2 { margin-top: 0; }
.hc-blanc { background: var(--blanc); }
.hc-titre-ligne { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 26px; }
.hc-titre-ligne h2 { margin: 0; }
.hc-lien-fort { font-weight: 700; }
.hc-route { position: relative; list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.hc-route::before { content: ""; position: absolute; left: 28px; right: 28px; top: 26px; border-top: 5px dashed #9fc2de; }
.hc-route li { position: relative; margin: 0; }
.hc-borne { width: 56px; height: 56px; border-radius: 50%; background: var(--graphite); color: var(--blanc); display: grid; place-items: center; font-family: var(--titre); font-weight: 700; font-size: 1.35rem; margin-bottom: 10px; }
.hc-arrivee { background: var(--vert); color: var(--graphite); }
.hc-route h3 { margin: 0 0 6px; }
.hc-route p { margin: 0; color: var(--graphite-2); }
@media (max-width: 760px) {
  .hc-route::before { left: 26px; right: auto; top: 28px; bottom: 28px; border-top: 0; border-left: 5px dashed #9fc2de; }
  .hc-route li { padding-left: 74px; min-height: 56px; }
  .hc-borne { position: absolute; left: 0; top: 0; }
}
.hc-prix { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 14px; }
.hc-prix article { background: var(--blanc); border-radius: 22px; padding: 22px; }
.hc-prix h3 { margin: 10px 0 4px; font-size: 1.2rem; }
.hc-prix p { margin: 0; }
.hc-etiquette { display: inline-block; background: var(--gris-2); border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 700; }
.hc-montant { font-family: var(--titre); font-weight: 700; font-size: 1.85rem; line-height: 1.15; margin: 4px 0 !important; }
.hc-pour { font-size: .95rem; color: var(--graphite-3); }
.hc-phare { background: var(--graphite) !important; color: var(--blanc); }
.hc-phare h3, .hc-phare .hc-montant { color: var(--blanc); }
.hc-phare .hc-etiquette { background: var(--vert); color: var(--graphite); }
.hc-phare .hc-pour { color: var(--ligne); }
.hc-outils { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.hc-outils a { background: var(--gris); border-radius: 22px; padding: 22px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.hc-outils a:hover { box-shadow: 0 0 0 2px var(--graphite); }
.hc-outils strong { font-family: var(--titre); font-size: 1.15rem; font-weight: 600; }
.hc-outils span { color: var(--graphite-3); font-size: 1rem; }
.hc-deux { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 40px; align-items: center; }
.hc-carte { display: block; }
.hc-guides { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.hc-guides li { margin: 0; }
.hc-guides a { display: block; background: var(--gris); border-radius: 16px; padding: 16px 18px; font-weight: 700; text-decoration: none; height: 100%; }
.hc-guides a:hover { box-shadow: 0 0 0 2px var(--graphite); }
@media (max-width: 1360px) and (min-width: 1101px) {
  .barre { gap: 10px; }
  .logo-txt { font-size: 1.2rem; }
  .logo-pic { width: 34px; height: 34px; }
  .nav-principale a { font-size: .86rem; padding-left: 5px; padding-right: 5px; }
  .btn-entete { padding-left: 1em; padding-right: 1em; font-size: .92rem; }
}

/* Accueil : étape 1 du formulaire dans le bandeau d'ouverture */
.hc-points { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; }
.hc-points li { position: relative; padding-left: 30px; color: var(--graphite-2); }
.hc-points li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--vert-pale); }
.hc-points li::after { content: ""; position: absolute; left: 6px; top: .5em; width: 8px; height: 4.5px; border-left: 2.4px solid var(--vert-fonce); border-bottom: 2.4px solid var(--vert-fonce); transform: rotate(-45deg); }
.hc-etape1 { background: var(--ciel); border-radius: 28px; padding: 22px; }
.etape1 { border-radius: 22px; }
.etape1--accueil { border-radius: 20px; }
.etape1-tuiles button, .etape1-liste button { border-radius: 16px; }
.etape1-ligne input { border-radius: 999px; padding-left: 20px; }
@media (max-width: 560px) { .hc-etape1 { padding: 10px; border-radius: 22px; } }
/* Accueil mobile : l'étape 1 juste après le titre et l'introduction */
@media (max-width: 900px) {
  .hc-hero-grille { gap: 22px; padding-top: 28px; }
  .hc-hero-texte { display: contents; }
  .hc-hero h1 { order: 1; margin-bottom: 0; }
  .hc-intro { order: 2; margin: 0; }
  .hc-etape1 { order: 3; }
  .hc-points { order: 4; margin: 0; }
  .hc-boutons { order: 5; }
}
