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

/* ===== HERO ===== */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(2.5rem, 7vw, 5.5rem) 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(300px, 78vw);
    margin-top: 1rem;
}
.phone {
    position: relative;
    aspect-ratio: 300 / 600;
    background: #14101f;
    border-radius: 42px;
    padding: 12px;
    box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06);
    animation: floaty 6s var(--ease) infinite;
}
.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(330px, 30vw); 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; padding-top: 2rem; }
.step__num {
    position: absolute; top: -16px; left: 1.6rem;
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--brand); color: #fff;
    font-family: var(--font-display); font-weight: 700;
    box-shadow: var(--shadow-brand);
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--muted); }
@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 { margin-bottom: .4rem; }
.features__grid p { color: var(--muted); font-size: .98rem; }
@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.6rem, 4vw, 2.4rem);
    box-shadow: var(--shadow-sm);
}
.plan--featured {
    border: 1.5px solid var(--brand);
    box-shadow: var(--shadow-lg);
}
/* 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; }
    .pricing__grid:has(.plan:nth-child(3)) .plan--featured { transform: scale(1.04); }
}
.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.25rem; margin-top: .4rem; }
.plan__price { display: flex; align-items: baseline; gap: .4rem; margin-top: .8rem; }
.plan__price .amount { font-family: var(--font-display); font-weight: 800; font-size: 3rem; 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: 1.1rem; padding: .8rem 1rem;
    background: var(--trust-100); color: var(--trust);
    border-radius: var(--r-md); font-size: .92rem; text-align: center;
}
.plan__save strong { color: var(--trust); }
.plan__features { margin: 1.4rem 0; display: grid; gap: .7rem; }
.plan__features li {
    position: relative; padding-left: 1.85rem;
    color: var(--ink-soft); font-size: .98rem;
}
.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__note { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 1rem; }

/* 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é) */
