/* ============================================================
   GEOFIXE — Styles page d'accueil (refonte V2)
   ============================================================ */

/* ===== HERO ===== */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(1rem, 2.5vw, 1.75rem) clamp(3rem, 8vw, 6rem);
}
.hero__aura {
    position: absolute;
    top: -20%; right: -10%;
    width: 720px; height: 720px;
    max-width: 110vw;
    background: radial-gradient(closest-side, rgba(109,59,235,.16), rgba(109,59,235,0) 70%);
    pointer-events: none;
    z-index: 0;
}
.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 6vw, 4rem);
    align-items: center;
}
.hero__title { margin: 1.2rem 0 1.1rem; }
.hero__lead { max-width: 36ch; }
.hero__checklist { margin: 1.6rem 0; display: grid; gap: .7rem; }
.hero__checklist li {
    display: flex; align-items: center; gap: .65rem;
    font-size: 1.02rem; color: var(--ink-soft);
}
.hero__checklist .check {
    flex: none;
    display: grid; place-items: center;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--trust-100); color: var(--trust);
    font-size: .8rem; font-weight: 700;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.1rem; }
.hero__actions .btn { flex: 1 1 auto; }
.hero__guarantee { font-size: .92rem; color: var(--muted); text-align: center; }

/* — Visuel téléphone — */
.hero__visual {
    position: relative;
    justify-self: center;
    width: min(220px, 62vw);
    margin-top: 1rem;
}
.phone {
    position: relative;
    aspect-ratio: 220 / 450;
    background: #14101f;
    border-radius: 38px;
    padding: 11px;
    box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06);
    /* animation de flottement retirée : le téléphone reste fixe (seules les animations d'écran sont conservées) */
}
.phone__notch {
    position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
    width: 110px; height: 22px; border-radius: var(--r-full);
    background: #14101f; z-index: 2;
}
.phone__screen {
    height: 100%;
    border-radius: 32px;
    background: linear-gradient(170deg, #f3eeff 0%, #ffffff 55%);
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem 1.2rem;
    overflow: hidden;
}
.callcard { text-align: center; width: 100%; }
.callcard__status {
    font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--brand-600); margin-bottom: 1.4rem;
}
.callcard__avatar {
    width: 84px; height: 84px; margin: 0 auto 1rem;
    display: grid; place-items: center;
    border-radius: 50%; font-size: 2.2rem;
    background: var(--brand-100);
    box-shadow: 0 0 0 0 rgba(109,59,235,.4);
    animation: ring 2s ease-out infinite;
}
.callcard__name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.callcard__num { font-size: 1.05rem; color: var(--ink-soft); margin-top: .15rem; letter-spacing: .04em; }
.callcard__tag {
    margin-top: .9rem; font-size: .78rem; color: var(--muted);
    background: var(--surface-2); border-radius: var(--r-full);
    padding: .4rem .7rem; display: inline-block;
}
.callcard__btns { display: flex; justify-content: center; gap: 2.4rem; margin-top: 1.8rem; }
.cbtn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; color: #fff; }
.cbtn--decline { background: #ef4d61; }
.cbtn--accept  { background: var(--trust-bright); animation: pulse 1.6s ease-in-out infinite; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse  { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes ring {
    0%   { box-shadow: 0 0 0 0 rgba(109,59,235,.35); }
    70%  { box-shadow: 0 0 0 18px rgba(109,59,235,0); }
    100% { box-shadow: 0 0 0 0 rgba(109,59,235,0); }
}

@media (min-width: 980px) {
    .hero__grid { grid-template-columns: 1.05fr .95fr; }
    .hero__actions .btn { flex: 0 0 auto; }
    .hero__visual { width: min(240px, 24vw); margin-top: 0; }
}

/* ===== BARRE DE CONFIANCE ===== */
.trustbar {
    background: var(--surface);
    border-block: 1px solid var(--border);
}
.trustbar__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
    padding-block: 1.8rem;
    text-align: center;
}
.trustbar__item { display: flex; flex-direction: column; gap: .25rem; }
.trustbar__item .num {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ink); line-height: 1;
}
.trustbar__item .num sup { color: var(--brand); font-size: .6em; }
.trustbar__item .num .den { color: var(--faint); font-size: .55em; font-weight: 600; }
.trustbar__item .lbl { font-size: .88rem; color: var(--muted); }
@media (min-width: 760px) {
    .trustbar__row { grid-template-columns: repeat(4, 1fr); }
}

/* ===== ÉCONOMIE / COMPARATIF ===== */
/* .saving__grid et .saving__text ne sont plus utilisés sur la home V3 :
   le comparatif vit désormais dans la section .mecanisme, en pleine largeur.
   Conservés au cas où une autre page réutiliserait la mise en page 2 colonnes. */
.saving__grid {
    display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
}
.saving__text h2 { margin-bottom: 1rem; }
.saving__text .lead { margin-bottom: 1.6rem; }
.saving__compare {
    background: var(--surface);
    border: var(--card-border);
    border-radius: var(--r-xl);
    padding: clamp(1.4rem, 4vw, 2.2rem);
    box-shadow: var(--shadow-md);
}
.compare-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.compare-head span:first-child { font-weight: 600; color: var(--ink-soft); font-size: .95rem; }
.tag { font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: var(--r-full); }
.tag--red { background: #fdecee; color: #d23b50; }
.tag--green { background: var(--trust-100); color: var(--trust); }
.compare-rate { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; color: var(--ink); }
.compare-rate small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.compare-bar { height: 10px; border-radius: var(--r-full); background: var(--surface-2); margin-top: .5rem; overflow: hidden; }
/* La barre se remplit quand le bloc entre dans le viewport (main.js pose .is-visible).
   La largeur cible est portée par --w dans le markup. */
.compare-bar span {
    display: block; height: 100%; width: 0;
    border-radius: var(--r-full); background: #e9879a;
    transition: width 1.1s var(--ease) .15s;
}
.saving__compare.is-visible .compare-bar span { width: var(--w, 100%); }
@media (prefers-reduced-motion: reduce) {
    .compare-bar span { width: var(--w, 100%); transition: none; }
}
.compare-bar--green span { background: var(--trust-bright); }
.compare-vs {
    text-align: center; font-weight: 700; color: var(--faint);
    font-size: .85rem; margin: 1rem 0; text-transform: uppercase; letter-spacing: .1em;
}
.compare-foot {
    margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px dashed var(--border-strong);
    text-align: center; color: var(--ink-soft); font-size: .98rem;
}
.compare-foot strong { color: var(--trust); }
@media (min-width: 900px) { .saving__grid { grid-template-columns: 1fr 1fr; } }

/* ===== ÉTAPES ===== */
.steps__grid {
    display: grid; grid-template-columns: 1fr; gap: 1.25rem;
    counter-reset: step;
}
.step { position: relative; }
.step__num {
    /* À la place de l'emoji : badge dans le flux, en haut de la carte */
    display: grid; place-items: center;
    width: 52px; height: 52px; border-radius: var(--r-md);
    background: var(--brand); color: #fff;
    font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
    box-shadow: var(--shadow-brand);
    margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.05rem; line-height: 1.3; margin-bottom: .4rem; }   /* = prod step-title */
.step p { color: var(--muted); font-size: .88rem; line-height: 1.65; }     /* = prod step-description */
@media (min-width: 820px) { .steps__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

/* ===== AVANTAGES ===== */
.features__grid {
    display: grid; grid-template-columns: 1fr; gap: 1.1rem;
}
.features__grid h3 { font-size: 1rem; line-height: 1.3; margin-bottom: .4rem; }   /* = prod feature-title */
.features__grid p { color: var(--muted); font-size: .88rem; line-height: 1.65; }  /* = prod feature-description */
@media (min-width: 640px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== RÉASSURANCE ===== */
.reassure { padding-block: clamp(2rem, 5vw, 3.5rem); }
.reassure__grid {
    display: grid; grid-template-columns: 1fr; gap: 1.25rem;
}
.reassure__item { display: flex; gap: 1rem; align-items: flex-start; }
.reassure__item .ri {
    flex: none; width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: var(--r-md); background: var(--brand-100); color: var(--brand-600);
}
.reassure__item .ri svg { width: 24px; height: 24px; }
.reassure__item h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.reassure__item p { font-size: .92rem; color: var(--muted); }
@media (min-width: 640px) { .reassure__grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }

/* ===== TARIFS ===== */
/* Fond teinté pour faire ressortir les cartes blanches */
.pricing { background: var(--brand-50); }

/* ----- MOBILE/TABLETTE : slider horizontal swipeable ----- */
.pricing__grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    -webkit-overflow-scrolling: touch;
    /* débord pleine largeur + place pour l'ombre/aperçu */
    margin-inline: -20px;
    padding: .75rem 20px 1.5rem;
    scrollbar-width: none;
}
.pricing__grid::-webkit-scrollbar { display: none; }
.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 86%;                 /* on voit la carte + un aperçu de la suivante */
    scroll-snap-align: start;
    background: var(--surface);
    border: var(--card-border);
    border-radius: var(--r-xl);
    padding: clamp(1.2rem, 2.2vw, 1.5rem);
    box-shadow: var(--shadow-sm);
}
/* .plan--featured : carte identique aux autres (plus de contour lumineux),
   on conserve uniquement le badge « Le plus populaire ». */
/* CTA aligné en bas quelle que soit la longueur de la liste */
.plan__features { flex: 1 0 auto; }

/* ----- DESKTOP : grille classique (largeur adaptée au nombre de plans) ----- */
@media (min-width: 980px) {
    .pricing__grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        overflow: visible;
        margin-inline: auto;
        padding: 0;
        max-width: 480px;
        align-items: stretch;
    }
    .plan { flex: initial; }
    .pricing__grid:has(.plan:nth-child(2)) { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
    .pricing__grid:has(.plan:nth-child(3)) { grid-template-columns: repeat(3, 1fr); max-width: 1120px; }
}
.plan__badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--brand); color: #fff;
    font-size: .8rem; font-weight: 600;
    padding: .4rem .95rem; border-radius: var(--r-full);
    white-space: nowrap; box-shadow: var(--shadow-brand);
}
.plan__name { font-size: 1.1rem; margin-top: .2rem; }
.plan__price { display: flex; align-items: baseline; gap: .4rem; margin-top: .5rem; }
.plan__price .amount { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--ink); letter-spacing: -.03em; }
.plan__price .per { color: var(--muted); font-weight: 600; }
.plan__sub { color: var(--faint); font-size: .9rem; margin-top: .15rem; }
.plan__save {
    margin-top: .8rem; padding: .55rem .85rem;
    background: var(--trust-100); color: var(--trust);
    border-radius: var(--r-md); font-size: .85rem; text-align: center;
}
.plan__save strong { color: var(--trust); }
.plan__features { margin: 1rem 0; display: grid; gap: .5rem; }
.plan__features li { position: relative; padding-left: 1.7rem; color: var(--ink-soft); font-size: .92rem; }
.plan__features li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    width: 1.35rem; height: 1.35rem;
    display: grid; place-items: center;
    background: var(--brand-100); color: var(--brand-600);
    border-radius: 50%; font-size: .72rem; font-weight: 700;
}
.plan__features li.is-off { color: var(--muted); }
.plan__features li.is-off::before { content: "✕"; background: #e23744; color: #fff; }
.plan__features li.is-key {
    color: var(--ink);
    font-weight: 700;
    background: var(--trust-100);
    border-radius: 12px;
    padding: .6rem .75rem .6rem 2.3rem;
    margin-bottom: .2rem;
}
.plan__features li.is-key::before {
    content: "✦";
    left: .6rem; top: .6rem;
    background: var(--trust); color: #fff;
}
.plan__note { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 1rem; }

/* Plan grisé / non sélectionnable (ex. Pro) */
.plan--disabled { opacity: .6; filter: grayscale(.4); }
.plan__discover {
    margin-top: auto; display: block; text-align: center;
    padding: .8rem 1rem; border-radius: var(--r-full);
    border: 1.5px solid var(--border-strong); color: var(--muted);
    font-weight: 700; cursor: not-allowed; user-select: none;
}

/* Points de navigation du slider (mobile/tablette uniquement) */
.pricing__dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.25rem; }
.pricing-dot {
    width: 9px; height: 9px; padding: 0;
    border-radius: var(--r-full);
    background: var(--border-strong);
    border: none;
    transition: width var(--t), background var(--t);
}
.pricing-dot.is-active { width: 28px; background: var(--brand); }
@media (min-width: 980px) { .pricing__dots { display: none; } }

/* ===== MINI FAQ ===== */
.faq-list { display: grid; gap: .8rem; }
.faq-item {
    background: var(--surface);
    border: var(--card-border);
    border-radius: var(--r-md);
    padding: 0 1.2rem;
    transition: border-color var(--t), box-shadow var(--t);
}
.faq-item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq-item summary {
    list-style: none; cursor: pointer;
    padding: 1.1rem 0;
    font-weight: 600; color: var(--ink);
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; flex: none;
    font-size: 1.4rem; color: var(--brand); font-weight: 400;
    transition: transform var(--t);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 1.2rem; color: var(--muted); }
.faq-more { text-align: center; margin-top: 1.5rem; }

/* (Le composant .final-cta est désormais dans design-system.css — partagé) */

/* ============================================================
   AJUSTEMENTS THÈME SOMBRE (home)
   ============================================================ */
/* Tag « comparatif » rouge : version lisible sur fond sombre */
html[data-theme="dark"] .tag--red { background: rgba(239, 77, 97, .16); color: #FF9AA8; }
html[data-theme="dark"] .compare-bar span { background: #C85A6E; }
html[data-theme="dark"] .compare-bar--green span { background: var(--trust-bright); }

/* Aura du hero un peu plus présente dans le sombre */
html[data-theme="dark"] .hero__aura {
    background: radial-gradient(closest-side, rgba(124,77,255,.30), rgba(124,77,255,0) 70%);
}

/* Offre vedette : halo violet premium */
/* (carte du milieu : plus de glow en thème sombre — identique aux autres) */

/* Barre de confiance : léger contraste de surface */
html[data-theme="dark"] .trustbar { background: var(--surface); }

/* Écran du smartphone en thème sombre (le contenu suit les tokens) */
html[data-theme="dark"] .phone__screen {
    background: linear-gradient(170deg, #221a3c 0%, #16121f 60%);
}

/* ===== NOTRE HISTOIRE ===== */
.story__head {
    max-width: 62ch;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    text-align: center;
}
.story__head .lead { margin-top: 1rem; }

.story__pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2.4vw, 1.5rem);
    margin: 0;
    padding: 0;
    list-style: none;
}
.story__pillar { text-align: left; }
.story__pillar .icon-badge { margin-bottom: .9rem; }
.story__pillar .icon-badge svg { width: 26px; height: 26px; }
.story__pillar h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.story__pillar p { color: var(--ink-soft); font-size: .98rem; }

@media (min-width: 980px) {
    .story__pillars { grid-template-columns: repeat(3, 1fr); }
}

/* ===== MUR D'AVIS / RETOURS CLIENTS ===== */
.wall__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2.4vw, 1.5rem);
    margin-top: clamp(2rem, 4vw, 2.75rem);
}

.avis {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(1.3rem, 2.6vw, 1.7rem);
    background: var(--surface);
    border: var(--card-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
}
.avis__top { display: flex; align-items: center; gap: .8rem; }
.avis__avatar {
    flex: none;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--brand-100);
    color: var(--brand-600);
    font-family: var(--font-display);
    font-weight: 700; font-size: .92rem;
    letter-spacing: .02em;
}
.avis__meta { display: flex; flex-direction: column; margin-right: auto; min-width: 0; }
.avis__name {
    display: inline-flex; align-items: center; gap: .35rem;
    font-weight: 700; font-size: .95rem; color: var(--ink);
}
.avis__name .vcheck {
    flex: none;
    display: grid; place-items: center;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--trust-100); color: var(--trust);
    font-size: .6rem; font-weight: 700;
}
.avis__date { font-size: .82rem; color: var(--muted); }
.avis__stars { flex: none; color: #F5B301; font-size: .95rem; letter-spacing: .06em; }
.avis__quote {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--ink-soft);
}
.avis__proof {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem .9rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-full);
    background: var(--surface);
    color: var(--brand-600);
    font-size: .85rem; font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.avis__proof:hover { background: var(--brand-100); border-color: var(--brand-100); }
.avis__proof:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

@media (min-width: 760px) {
    .wall__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== LIGHTBOX (avis en grand) ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 4vw, 3rem);
    background: rgba(20, 16, 31, .82);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .2s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__stage {
    margin: 0;
    max-width: min(1000px, 100%);
    display: flex;
    flex-direction: column;
    gap: .85rem;
    transform: translateY(8px) scale(.98);
    transition: transform .22s ease;
}
.lightbox.is-open .lightbox__stage { transform: none; }
.lightbox__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 82vh;
    object-fit: contain;
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
}
.lightbox__cap {
    text-align: center;
    color: rgba(255, 255, 255, .85);
    font-size: .9rem;
    font-weight: 600;
}
.lightbox__close {
    position: fixed;
    top: clamp(.8rem, 2vw, 1.4rem);
    right: clamp(.8rem, 2vw, 1.4rem);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .28); }
.lightbox__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
body.lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    .lightbox,
    .lightbox__stage,
    .avis__proof { transition: none; }
}

/* ============================================================
   HOME V3 — axe « économie »
   Nouveaux composants : trajet d'appel du hero, schéma du
   mécanisme, simulateur d'économie, bandes illustrées, avantages.
   Aucune couleur en dur : tout passe par les tokens, donc le
   thème sombre suit sans règle supplémentaire.
   ============================================================ */

/* ---- Icône inline (cadenas des mentions de réassurance) ---- */
.ico-inline {
    display: inline-block;
    vertical-align: -2px;
    margin-right: .2rem;
    opacity: .85;
}

/* ===== HERO — visuel enrichi ===== */
.hero__visual {
    position: relative;
    justify-self: center;
    width: min(230px, 64vw);
    margin-top: 1.5rem;
}

.phone { position: relative; z-index: 1; }

/* Contenus de l'écran d'appel passés de l'emoji au SVG */
.callcard__avatar svg { width: 42px; height: 42px; }
.cbtn svg { width: 24px; height: 24px; }

/* ===== MÉCANISME — schéma du trajet de l'appel ===== */
.mecanisme__legend {
    display: grid;
    grid-template-columns: 1fr;
    gap: .7rem;
    max-width: 780px;
    margin: 0 auto clamp(2rem, 5vw, 3rem);
}
.mecanisme__legend li {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .95rem;
    color: var(--ink-soft);
}
.mecanisme__legend li span {
    flex: none;
    display: grid; place-items: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--brand-100);
    color: var(--brand-600);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: .82rem;
}
.mecanisme .saving__compare { max-width: 780px; margin-inline: auto; }
.mecanisme__more { text-align: center; margin-top: 1.75rem; }

@media (min-width: 820px) {
    .mecanisme__legend { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

/* ===== SIMULATEUR D'ÉCONOMIE ===== */
.simu {
    background: var(--surface);
    border: var(--card-border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    padding: clamp(1.4rem, 4vw, 2.4rem);
}

/* — Curseur — */
.simu__control { margin-bottom: clamp(1.5rem, 4vw, 2rem); }
.simu__label {
    display: block;
    font-weight: 600;
    font-size: .95rem;
    color: var(--ink-soft);
    margin-bottom: .35rem;
}
.simu__value {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    letter-spacing: -.03em;
    color: var(--brand);
    line-height: 1.1;
    margin-bottom: .9rem;
}
.simu__range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 34px;              /* cible tactile confortable */
    background: transparent;
    cursor: pointer;
    display: block;
}
.simu__range::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: var(--r-full);
    border: 1px solid var(--border);
    /* --fill est mis à jour par main.js à chaque déplacement */
    background: linear-gradient(to right, var(--brand) var(--fill, 36%), var(--surface-2) var(--fill, 36%));
}
.simu__range::-moz-range-track {
    height: 8px;
    border-radius: var(--r-full);
    border: 1px solid var(--border);
    background: linear-gradient(to right, var(--brand) var(--fill, 36%), var(--surface-2) var(--fill, 36%));
}
.simu__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px; height: 28px;
    margin-top: -11px;
    border-radius: 50%;
    background: var(--brand);
    border: 3px solid var(--surface);
    box-shadow: var(--shadow-brand);
    transition: transform var(--t-fast);
}
.simu__range::-moz-range-thumb {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--brand);
    border: 3px solid var(--surface);
    box-shadow: var(--shadow-brand);
}
.simu__range:active::-webkit-slider-thumb { transform: scale(1.12); }
.simu__range:focus-visible { outline: none; }
.simu__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px var(--ring); }
.simu__range:focus-visible::-moz-range-thumb    { box-shadow: 0 0 0 5px var(--ring); }

.simu__scale {
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
    color: var(--faint);
    margin-top: .25rem;
}

/* — Résultats — */
.simu__line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: .85rem 0;
    border-bottom: 1px solid var(--border);
}
.simu__line-lbl {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    color: var(--ink-soft);
    font-size: .98rem;
}
.simu__line-lbl small { font-weight: 500; font-size: .82rem; color: var(--faint); }
.simu__line-val {
    flex: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.simu__line-val small { font-size: .78rem; font-weight: 600; color: var(--muted); }
.simu__line:first-child .simu__line-val { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }

.simu__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin-top: 1.1rem;
    padding: 1.1rem 1.3rem;
    border-radius: var(--r-lg);
    background: var(--trust-100);
}
.simu__total-lbl {
    font-weight: 700;
    color: var(--trust);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .82rem;
}
.simu__total-val {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.7rem, 5vw, 2.3rem);
    letter-spacing: -.03em;
    color: var(--trust);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.simu__total-val small { font-size: .45em; font-weight: 700; }

.simu__note {
    margin-top: .9rem;
    font-size: .92rem;
    color: var(--muted);
    text-align: center;
}
.simu__note strong { color: var(--trust); }

.simu__cta { margin-top: 1.5rem; }
.simu__legal {
    margin-top: 1rem;
    font-size: .78rem;
    line-height: 1.55;
    color: var(--faint);
    text-align: center;
}

/* ===== AVANTAGES — illustrations sans carte ===== */
.feats {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.75rem, 4vw, 2.5rem);
}
.feat { text-align: center; }
.feat__ill {
    width: 62px;
    height: 62px;
    margin: 0 auto .85rem;
}
.feat h3 { font-size: 1.05rem; line-height: 1.3; margin-bottom: .4rem; }
.feat p  { color: var(--muted); font-size: .92rem; line-height: 1.65; max-width: 34ch; margin-inline: auto; }

@media (min-width: 640px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) {
    .feats { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
    .feat { text-align: left; }
    .feat__ill { margin-inline: 0; }
    .feat p { margin-inline: 0; }
}

/* ===== AJUSTEMENTS THÈME SOMBRE (home V3) ===== */
/* Piste du curseur : plus contrastée sur fond sombre */
html[data-theme="dark"] .simu__range::-webkit-slider-runnable-track {
    background: linear-gradient(to right, var(--brand) var(--fill, 36%), rgba(255,255,255,.09) var(--fill, 36%));
}
html[data-theme="dark"] .simu__range::-moz-range-track {
    background: linear-gradient(to right, var(--brand) var(--fill, 36%), rgba(255,255,255,.09) var(--fill, 36%));
}

/* Le vert « économie » reste lisible : le fond de la tuile est déjà translucide */
html[data-theme="dark"] .simu__total { background: rgba(46, 230, 166, .12); }

/* ============================================================
   HERO — respiration sur petits écrans
   Le bloc « densité mobile » de design-system.css resserre tout
   le site ; sur le hero, la succession titre / lead / checklist /
   boutons / mention devenait trop compacte. On lui redonne de
   l'air sans toucher aux autres sections.
   ============================================================ */
@media (max-width: 640px) {
    .hero { padding-block: 1.75rem 3.25rem; }
    .hero__title { margin: 1.35rem 0 1.15rem; }
    .hero__lead { max-width: none; }
    .hero__checklist { margin: 1.9rem 0; gap: 1rem; }
    .hero__checklist li { font-size: 1rem; line-height: 1.45; align-items: flex-start; }
    .hero__checklist .check { margin-top: .1rem; }
    .hero__actions { gap: .85rem; margin-bottom: 1.35rem; }
    .hero__guarantee { line-height: 1.6; }
    .hero__grid { gap: 3rem; }
    .hero__visual { margin-top: .5rem; }
}

/* ============================================================
   ÉCHELLE DESKTOP — la home paraissait « zoomée » au-delà de 900px
   ------------------------------------------------------------
   Les tokens du design system visent large (H1 jusqu'à 4rem, H2
   jusqu'à 2,85rem) : sur la colonne de texte du hero, large de
   ~600px, le titre débordait sur trois lignes et écrasait tout
   le reste. On resserre l'échelle typographique, les rythmes
   verticaux et les gros chiffres — uniquement sur cette page,
   le mobile restant tel quel (il convient).
   ============================================================ */
@media (min-width: 900px) {

    /* — Typographie — */
    .display { font-size: clamp(2.4rem, 3.5vw, 3.05rem); }
    h2       { font-size: clamp(1.75rem, 2.5vw, 2.25rem); }
    h3       { font-size: clamp(1.15rem, 1.5vw, 1.35rem); }

    /* — Rythme vertical : un cran plus serré — */
    .section        { padding-block: clamp(3rem, 5.2vw, 5.25rem); }
    .section--tight { padding-block: clamp(2.25rem, 3.5vw, 3.25rem); }
    .section-head   { margin-bottom: clamp(2rem, 3.2vw, 2.75rem); }

    /* — Hero : la colonne de texte gagne la place laissée vide à droite — */
    .hero__grid   { grid-template-columns: 1.3fr .7fr; gap: clamp(2rem, 4vw, 3.25rem); }
    .hero__lead   { max-width: 46ch; }
    .hero__title  { margin: 1rem 0 .95rem; }
    .hero__visual { width: clamp(240px, 19vw, 255px); }

    /* — Gros chiffres : ils portaient l'essentiel de l'effet « zoom » — */
    .trustbar__item .num  { font-size: clamp(1.5rem, 2.2vw, 1.8rem); }
    .compare-rate         { font-size: 1.85rem; }
    .plan__price .amount  { font-size: 1.95rem; }
    .simu__value          { font-size: clamp(1.7rem, 2.6vw, 2.05rem); }
    .simu__total-val      { font-size: clamp(1.6rem, 2.6vw, 2rem); }
}
