/* ============================================================
   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 {
    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; }
.compare-bar span { display: block; height: 100%; border-radius: var(--r-full); background: #e9879a; }
.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__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; font-size: 1.5rem;
    border-radius: var(--r-md); background: var(--brand-100);
}
.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(2, 1fr); gap: 1.75rem; } }
@media (min-width: 1000px){ .reassure__grid { grid-template-columns: repeat(4, 1fr); } }

/* ===== 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__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%);
}
