/* ============================================================
   GEOFIXE — Design System V2 (Refonte 2026)
   Thème clair, chaleureux & rassurant
   Direction : « Lien humain · Sérénité · Confiance »
   ------------------------------------------------------------
   Polices : Bricolage Grotesque (titres) · Hanken Grotesk (corps)
   ============================================================ */

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== TOKENS ===== */
:root {
    /* — Marque — */
    --brand:        #6D3BEB;   /* violet adouci, signature Geofixe */
    --brand-600:    #5A28CE;   /* hover / texte sur clair */
    --brand-700:    #4A1FAE;
    --brand-100:    #F1ECFD;   /* tuile violette très douce */
    --brand-50:     #F8F5FE;

    /* — Confiance (économies, succès) — */
    --trust:        #128A63;
    --trust-bright: #1FA97A;
    --trust-100:    #E4F5EE;

    /* — Accent chaleureux (rare, ponctuel) — */
    --warm:         #F0894E;
    --warm-100:     #FDEDE2;

    /* — Fonds — */
    --bg:           #FAFAF8;   /* crème chaud, plus rassurant que le blanc froid */
    --surface:      #FFFFFF;
    --surface-2:    #F4F2F8;
    --ink-surface:  #2A1560;   /* violet profond de marque (CTA + footer) — cohérent avec les accents */

    /* — Encres / textes — */
    --ink:          #1B1830;   /* near-black tiède */
    --ink-soft:     #423D58;
    --muted:        #6E6A82;
    --faint:        #9A96AC;
    --on-dark:      #F4F2FB;
    --on-dark-soft: #B6B0CE;

    /* — Lignes — */
    --border:       #EBE8F1;
    --border-strong:#DEDAEA;

    /* — Bordures de carte —
       --card-border        : bordure standard du site (discrète, initiale)
       --card-border-strong : bordure renforcée, réservée au blog & à l'annuaire */
    --card-border: 1px solid var(--border);
    --card-border-strong: 1.5px solid #C4BED8;

    /* — Anneau focus (accessibilité) — */
    --ring:         rgba(109, 59, 235, .40);

    /* — Ombres (douces, thème clair) — */
    --shadow-xs:   0 1px 2px rgba(27,24,48,.05);
    --shadow-sm:   0 1px 3px rgba(27,24,48,.06), 0 1px 2px rgba(27,24,48,.04);
    --shadow-md:   0 6px 20px -6px rgba(27,24,48,.10), 0 2px 6px rgba(27,24,48,.04);
    --shadow-lg:   0 24px 60px -20px rgba(27,24,48,.18), 0 8px 24px -12px rgba(27,24,48,.08);
    --shadow-brand:0 18px 44px -16px rgba(109,59,235,.42);

    /* — Rayons — */
    --r-xs:  8px;
    --r-sm:  12px;
    --r-md:  16px;
    --r-lg:  22px;
    --r-xl:  30px;
    --r-full:9999px;

    /* — Polices — */
    --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* — Layout — */
    --container: 1180px;
    --container-narrow: 860px;
    --header-h: 72px;

    /* — Transitions — */
    --ease: cubic-bezier(.22, 1, .36, 1);
    --t-fast: .15s var(--ease);
    --t:      .28s var(--ease);
}

/* ===== BASE ===== */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
    font-size: 100%;  /* dézoom global désactivé (test) */
}
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-size: 1rem;               /* 16px — densité alignée sur la prod */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: none; }
ul, ol { list-style: none; }
strong, b { font-weight: 700; color: var(--ink); }
::selection { background: var(--brand-100); color: var(--brand-700); }

:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.02em;
    color: var(--ink);
    text-wrap: balance;
}
.display {
    font-size: clamp(2.4rem, 6vw, 4rem);
    letter-spacing: -.035em;
}
h2 { font-size: clamp(1.9rem, 4vw, 2.85rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { text-wrap: pretty; }
.lead {
    font-size: clamp(1.02rem, 1.1vw, 1.12rem);  /* ≈17px — aligné sur la prod */
    color: var(--ink-soft);
    line-height: 1.6;
}

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}
.container--narrow { max-width: var(--container-narrow); }
@media (min-width: 640px)  { .container { padding-inline: 32px; } }
@media (min-width: 1200px) { .container { padding-inline: 40px; } }

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* En-tête de section centré */
.section-head {
    max-width: 660px;
    margin-inline: auto;
    text-align: center;
    margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}
.section-head .lead { margin-top: 1rem; }

/* ===== EYEBROW / BADGE ===== */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--brand-600);
    background: var(--brand-100);
    padding: .4rem .85rem;
    border-radius: var(--r-full);
    margin-bottom: 1.1rem;
}
.eyebrow--trust { color: var(--trust); background: var(--trust-100); }

.pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 600;
    font-size: .9rem;
    padding: .45rem .9rem;
    border-radius: var(--r-full);
    background: var(--surface);
    border: var(--card-border);
    color: var(--ink-soft);
    box-shadow: var(--shadow-xs);
}
.pill .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--trust-bright);
    box-shadow: 0 0 0 4px var(--trust-100);
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    padding: .85rem 1.4rem;
    border-radius: var(--r-full);
    border: 1.5px solid transparent;
    transition: transform var(--t-fast), box-shadow var(--t), background var(--t), border-color var(--t);
    white-space: nowrap;
}
.btn svg { transition: transform var(--t); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: var(--shadow-brand);
}
.btn-primary:hover { background: var(--brand-600); box-shadow: 0 22px 50px -14px rgba(109,59,235,.55); }

.btn-secondary {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-600); }

.btn-ghost { color: var(--ink-soft); }
.btn-ghost:hover { color: var(--brand-600); }

/* Bouton IA dédié (header desktop) — pill violette distinctive */
.btn-ia {
    display: inline-flex; align-items: center; gap: .4rem;
    font-family: var(--font-body); font-weight: 700; font-size: .95rem; line-height: 1;
    padding: .62rem 1rem;
    border-radius: var(--r-full);
    color: var(--brand-600);
    background: var(--brand-50);
    border: 1.5px solid var(--brand-100);
    transition: background var(--t), border-color var(--t), color var(--t), transform var(--t-fast);
    white-space: nowrap;
}
.btn-ia:hover { background: var(--brand-100); border-color: var(--brand); color: var(--brand-600); }
.btn-ia:active { transform: translateY(1px) scale(.99); }
.btn-ia .ia-spark { font-size: 1rem; line-height: 1; }

.btn-lg  { padding: 1.05rem 1.8rem; font-size: 1.08rem; }
.btn-full{ width: 100%; }
/* Bouton clair posé sur fond foncé (final-cta, footer…). Couleurs FIXES
   pour rester lisible quel que soit le thème (sinon texte clair sur fond blanc). */
.btn-on-dark { background: #fff; color: #2A1560; box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); }
.btn-on-dark:hover { background: #F1ECFD; color: #4A1FAE; }

/* ===== CARTE ===== */
.card {
    background: var(--surface);
    border: var(--card-border);
    border-radius: var(--r-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card--hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}

/* Pastille d'icône */
.icon-badge {
    display: inline-grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: var(--r-md);
    background: var(--brand-100);
    color: var(--brand-600);
    font-size: 1.5rem;
    margin-bottom: 1.1rem;
}
.icon-badge--trust { background: var(--trust-100); color: var(--trust); }
.icon-badge--warm  { background: var(--warm-100);  color: var(--warm); }

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 250, 248, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t), box-shadow var(--t), background var(--t);
    /* Couche GPU isolée (comme la prod) : stabilise le rendu au scroll
       → le texte du logo reste net et ne « vibre » plus. */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.site-header.is-scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-xs);
}
.site-header__inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 23px;            /* px entier : net (pas de sous-pixel dû au dézoom), stable au scroll */
    letter-spacing: -.025em;
    color: var(--ink);
}
.brand__name { font-weight: 800; }
.brand img { width: 34px; height: 34px; }
.brand__name span { color: var(--brand); }

.nav-desktop { display: none; align-items: center; gap: .35rem; }
.nav-desktop a {
    font-weight: 500;
    font-size: .98rem;
    color: var(--ink-soft);
    padding: .5rem .8rem;
    border-radius: var(--r-sm);
    transition: color var(--t-fast), background var(--t-fast);
}
.nav-desktop a { white-space: nowrap; }
.nav-desktop a:hover { color: var(--brand-600); background: var(--brand-50); }

/* Groupe de droite : actions + toggle thème, séparés par un vrai vide (pas de trait) */
.header-right { display: none; align-items: center; gap: 1.75rem; }
.header-cta { display: flex; align-items: center; gap: .65rem; }

/* Burger */
.burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    border-radius: var(--r-sm);
    border: var(--card-border);
    background: var(--surface);
    padding: 0 11px;
    box-shadow: var(--shadow-xs);
}
.burger span {
    height: 2px; width: 100%;
    background: var(--ink);
    border-radius: 2px;
    transition: transform var(--t), opacity var(--t-fast);
}

/* 1140 px et non 980 : en dessous, la barre a besoin de ~1136 px et
   le logo chevauchait le menu tandis que « Commencer » sortait du cadre.
   Sous ce seuil, le menu burger donne accès à tout. */
@media (min-width: 1140px) {
    .nav-desktop, .header-right { display: flex; }
    .burger { display: none; }
}

/* ===== MENU MOBILE ===== */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem 2rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .36s var(--ease), visibility .36s;
    overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); visibility: visible; }
body.menu-open { overflow: hidden; }

.mobile-menu__top {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mobile-menu__close {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: var(--r-sm);
    border: var(--card-border);
    background: var(--surface);
    font-size: 1.4rem; color: var(--ink);
}
.mobile-menu__label {
    font-size: .75rem; font-weight: 600; letter-spacing: .08em;
    text-transform: uppercase; color: var(--faint);
    margin: 1.4rem .4rem .4rem;
}

/* Carte « Assistant IA » mise en avant en haut du menu mobile */
.mobile-ia-card {
    display: flex; align-items: center; gap: .72rem;
    margin: 1.1rem 0 .4rem;
    padding: .5rem .25rem;
}
.mobile-ia-card:active { transform: translateY(1px); }
.mobile-ia-card__icon {
    flex-shrink: 0;
    display: grid; place-items: center;
}
.mobile-ia-card__icon img {
    width: 42px; height: 42px; display: block;
    filter: drop-shadow(0 5px 10px rgba(124,77,235,.30));
    animation: iaCardFloat 3s ease-in-out infinite;   /* flottement continu */
}
@keyframes iaCardFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
/* Fondu d'apparition de la mascotte (1re ouverture only) — flottement conservé sinon via la règle de base */
.mobile-menu.is-open.ia-intro .mobile-ia-card__icon img {
    animation: iaCardFloat 3s ease-in-out infinite, iaIconFade 1.2s ease both;
}
@keyframes iaIconFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .mobile-ia-card__icon img,
    .mobile-menu.is-open.ia-intro .mobile-ia-card__icon img { animation: none; }
}
.mobile-ia-card__text { display: flex; flex-direction: column; gap: .15rem; flex: 1; min-width: 0; }
.mobile-ia-card__title { font-size: .96rem; font-weight: 700; color: var(--ink); }
.mobile-ia-card__sub { font-size: .77rem; color: var(--muted); }
/* Apparition à l'ouverture du menu : les lettres du titre « tombent » une par une */
.mobile-ia-card__title .ia-ch { display: inline-block; will-change: transform, opacity; }
.mobile-menu.is-open.ia-intro .mobile-ia-card__title .ia-ch {
    animation: iaCharDrop .34s var(--ease) both;
    animation-delay: calc(var(--i) * .04s + .12s);
}
@keyframes iaCharDrop {
    0%   { opacity: 0; transform: translateY(-8px); }
    60%  { opacity: 1; }
    100% { opacity: 1; transform: translateY(0); }
}
.mobile-menu.is-open.ia-intro .mobile-ia-card__sub {
    animation: iaSubIn .5s ease .42s both;
}
@keyframes iaSubIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .mobile-menu.is-open.ia-intro .mobile-ia-card__title .ia-ch,
    .mobile-menu.is-open.ia-intro .mobile-ia-card__sub { animation: none; }
}
.mobile-ia-card__arrow {
    flex-shrink: 0; line-height: 1;
    font-size: 1.35rem; color: var(--brand);
    transition: transform .3s var(--ease);
}
.mobile-ia-card:hover .mobile-ia-card__arrow,
.mobile-ia-card:active .mobile-ia-card__arrow { transform: translateX(2px); }
.mobile-menu nav a {
    display: flex; align-items: center; gap: .9rem;
    padding: .95rem .6rem;
    font-size: 1.1rem; font-weight: 500;
    border-radius: var(--r-sm);
    border-bottom: 1px solid var(--border);
}
.mobile-menu nav a .ico { font-size: 1.25rem; width: 1.6rem; text-align: center; }
.mobile-menu nav a:active { background: var(--brand-50); }
.mobile-menu__cta { margin-top: auto; padding-top: 1.5rem; }
.mobile-menu__cta .note {
    text-align: center; font-size: .9rem; color: var(--muted); margin-top: .75rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--ink-surface);
    color: var(--on-dark-soft);
    padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
    margin-top: 2rem;
}
/* Logo footer : même rendu que le header (sombre) — moins lumineux que #fff */
.site-footer .brand { color: #DCD6EC; }
.site-footer .brand__name span { color: #9B7BFF; }
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
.footer-brand { max-width: 320px; }
.footer-brand p { margin-top: 1rem; font-size: .95rem; line-height: 1.6; }
.footer-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.footer-col h4 {
    font-family: var(--font-body);
    font-size: .8rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--on-dark);
    margin-bottom: 1rem;
}
.footer-col a {
    display: block;
    font-size: .95rem;
    padding: .35rem 0;
    color: var(--on-dark-soft);
    transition: color var(--t-fast);
}
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer-social a {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: var(--r-full);
    background: rgba(255,255,255,.07);
    color: var(--on-dark);
    transition: background var(--t-fast), transform var(--t-fast), color var(--t-fast);
}
.footer-social a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: .85rem;
    color: var(--faint);
    display: flex;
    flex-direction: column;
    gap: .45rem;
}
.footer-bottom .footer-siret { color: var(--on-dark-soft); font-weight: 600; }
.footer-bottom .legal-note { line-height: 1.6; max-width: 720px; }

/* Sur mobile, seules les infos du bas (SIRET/copyright/ARCEP) sont centrées */
@media (max-width: 719px) {
    .footer-bottom { align-items: center; text-align: center; }
    .footer-bottom .legal-note { margin-inline: auto; }
}

@media (min-width: 720px) {
    .footer-grid { grid-template-columns: 1.4fr 2fr; }
    .footer-cols { grid-template-columns: repeat(4, 1fr); }
}

/* ===== UTILITAIRES ===== */
.text-center { text-align: center; }
.gradient-ink { color: var(--brand); }            /* accent texte sobre, pas de dégradé criard */
.surface-dark { background: var(--ink-surface); color: var(--on-dark); }
.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
    background: var(--brand); color: #fff; padding: .6rem 1.2rem;
    border-radius: var(--r-full); z-index: 300; transition: top var(--t);
}
.skip-link:focus { top: 12px; }

/* ===== CTA FINAL (composant partagé) ===== */
.final-cta { padding-block: clamp(1rem, 4vw, 2rem) clamp(3rem, 7vw, 5rem); }
.final-cta__box {
    position: relative; overflow: hidden;
    border-radius: var(--r-xl);
    padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 5vw, 3rem);
    text-align: center;
}
.final-cta__aura {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(closest-side at 80% 0%, rgba(124,77,240,.45), transparent 60%),
        radial-gradient(closest-side at 0% 100%, rgba(31,169,122,.25), transparent 55%);
}
.final-cta__box > * { position: relative; z-index: 1; }
.final-cta__box h2 { color: #fff; margin-bottom: 1rem; }
.final-cta__box p { color: var(--on-dark-soft); max-width: 46ch; margin: 0 auto 1.8rem; }
.final-cta__box .btn { margin-inline: auto; }
.final-cta__note { margin-top: 1.1rem !important; font-size: .85rem; }

/* ===== RÉVÉLATION AU SCROLL ===== */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
}

/* Mascotte du footer : compense l'espace du bras levé pour aligner avec le texte */
.brand--mascotte { gap: .35rem; }
.brand-mascotte-img { margin-left: -4px; }

/* ============================================================
   SWITCH THÈME CLAIR / SOMBRE
   ============================================================ */
/* Toggle thème = simple bouton icône (lune/soleil), façon chatbot IA */
.theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 40px; height: 40px;
    padding: 0;
    border-radius: var(--r-full);
    border: 1.5px solid var(--border-strong);
    background: var(--surface);
    color: var(--ink-soft);
    -webkit-tap-highlight-color: transparent;
    flex: none;
    transition: border-color var(--t), color var(--t), background var(--t);
}
.theme-toggle:hover { border-color: var(--brand); color: var(--brand-600); }
.theme-toggle__ico {
    grid-area: 1 / 1;
    width: 18px; height: 18px;
    transition: opacity var(--t-fast), transform var(--t);
}
/* Clair (défaut) → soleil ; Sombre → lune */
.theme-toggle__ico--sun  { color: #F0894E; opacity: 1; }
.theme-toggle__ico--moon { opacity: 0; transform: rotate(-50deg) scale(.6); }

/* Switch masqué sur mobile (pages subscription & billing : pas de menu mobile,
   on évite de surcharger le header sur petit écran) */
@media (max-width: 767px) { .th-hide-mobile { display: none; } }

/* Barre du tiroir mobile : switch + bouton fermer groupés à droite */
.mobile-menu__top-actions {
    display: flex;
    align-items: center;
    gap: .7rem;
}

/* ============================================================
   THÈME SOMBRE — palette « violet-nuit » modernisée
   (basée sur la prod, éclaircie & réchauffée)
   ============================================================ */
html[data-theme="dark"] {
    /* — Marque (éclaircie pour le contraste sur fond sombre) — */
    --brand:        #9B7BFF;
    --brand-600:    #AE93FF;
    --brand-700:    #C3AEFF;
    --brand-100:    rgba(124, 77, 255, .16);
    --brand-50:     #120E20;

    /* — Confiance — */
    --trust:        #34D8A0;
    --trust-bright: #2EE6A6;
    --trust-100:    rgba(46, 230, 166, .14);

    /* — Accent chaleureux — */
    --warm:         #F8A06A;
    --warm-100:     rgba(248, 160, 106, .16);

    /* — Fonds — full black (quasi-noir bleuté, façon prod) — */
    --bg:           #08080F;
    --surface:      #101019;
    --surface-2:    #181826;
    --ink-surface:  #0C0C16;   /* footer + CTA : noir bleuté */

    /* — Encres / textes — (adoucies : moins lumineuses, lecture plus confortable) */
    --ink:          #DCD6EC;
    --ink-soft:     #B2ABC8;
    --muted:        #8C84A6;
    --faint:        #6E6788;
    --on-dark:      #DCD6EC;
    --on-dark-soft: #A7A0C0;

    /* — Lignes (discrètes sur noir) — */
    --border:       rgba(255, 255, 255, .08);
    --border-strong:rgba(255, 255, 255, .15);
    --card-border:        1px solid rgba(255, 255, 255, .08);
    --card-border-strong: 1.5px solid rgba(255, 255, 255, .16);

    /* — Focus — */
    --ring:         rgba(155, 123, 255, .55);

    /* — Ombres noires franches — */
    --shadow-xs:   0 1px 2px rgba(0,0,0,.45);
    --shadow-sm:   0 1px 3px rgba(0,0,0,.50), 0 1px 2px rgba(0,0,0,.45);
    --shadow-md:   0 8px 28px -8px rgba(0,0,0,.75), 0 2px 8px rgba(0,0,0,.55);
    --shadow-lg:   0 30px 70px -22px rgba(0,0,0,.85), 0 10px 28px -16px rgba(0,0,0,.70);
    --shadow-brand:0 18px 48px -16px rgba(124,77,255,.55);

    color-scheme: dark;
}

/* Fond : dégradé radial subtil pour la profondeur (premium) sur noir */
html[data-theme="dark"] body {
    background:
        radial-gradient(1100px 560px at 78% -10%, rgba(124,77,255,.12), transparent 60%),
        radial-gradient(900px 500px at 0% 8%, rgba(46,230,166,.04), transparent 55%),
        var(--bg);
    background-attachment: fixed;
}

/* En-tête translucide adapté au noir */
html[data-theme="dark"] .site-header {
    background: rgba(8, 8, 15, .80);
}
html[data-theme="dark"] .site-header.is-scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 10px 30px -18px rgba(0,0,0,.8);
}

/* Sélection de texte */
html[data-theme="dark"] ::selection { background: rgba(124,77,255,.35); color: #fff; }

/* Toggle thème : état sombre → lune révélée */
html[data-theme="dark"] .theme-toggle__ico--sun  { opacity: 0; transform: rotate(50deg) scale(.6); }
html[data-theme="dark"] .theme-toggle__ico--moon { opacity: 1; transform: none; color: #CBB8FF; }


/* ============================================================
   SYSTÈME D'ILLUSTRATIONS SVG — « Ligne & aplat » Geofixe
   ------------------------------------------------------------
   Toutes les illustrations du site sont des SVG inline dessinés
   dans le langage graphique de la mascotte (traits arrondis
   épais, aplats violets doux, accent vert « économie »).

   RÈGLE : aucune couleur en dur dans le markup SVG. Chaque
   élément porte l'une des classes ci-dessous, qui puisent dans
   les tokens — la bascule clair/sombre est donc automatique et
   ne demande aucun fichier dupliqué.

     .ill__stroke  traits de contour (violet marque)
     .ill__fill    aplats de fond doux
     .ill__accent  accent « confiance / économie » (vert)
     .ill__warm    accent chaleureux, usage rare (orange)
     .ill__ink     détails sombres (yeux, texte de mockup)
     .ill__paper   surfaces claires (écrans, cartes)
   ============================================================ */
.ill { display: block; width: 100%; height: auto; overflow: visible; }

.ill__stroke {
    fill: none;
    stroke: var(--brand);
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ill__stroke--thin   { stroke-width: 2.2; }
.ill__stroke--accent { stroke: var(--trust); }
.ill__stroke--faint  { stroke: var(--brand); opacity: .28; }

.ill__fill   { fill: var(--brand-100); }
.ill__solid  { fill: var(--brand); }
.ill__accent { fill: var(--trust); }
.ill__warm   { fill: var(--warm); }
.ill__ink    { fill: var(--ink); }
.ill__paper  { fill: var(--surface); }
.ill__muted  { fill: var(--muted); }

/* Textes intégrés aux illustrations (tarifs, indicatifs…) */
.ill__label {
    font-family: var(--font-display);
    font-weight: 800;
    fill: var(--ink);
}
.ill__label--on-solid { fill: #fff; }
/* Traits posés sur un aplat plein (accent/marque) : restent blancs dans les deux thèmes */
.ill__stroke--on-solid { stroke: #fff; }
.ill__label--accent   { fill: var(--trust); }

/* En thème sombre, les aplats « papier » restent lisibles :
   on s'appuie sur --surface, déjà sombre, et on renforce le trait. */
html[data-theme="dark"] .ill__stroke { stroke-width: 3.4; }
html[data-theme="dark"] .ill__fill   { fill: rgba(155, 123, 255, .16); }

/* ---- Animations d'illustration ----
   Déclenchées à l'entrée dans le viewport : main.js pose
   .is-visible sur le conteneur [data-reveal] parent. */
.ill [class*="ill-anim"] { opacity: 0; }
.is-visible .ill [class*="ill-anim"] { opacity: 1; }

/* Tracé qui se dessine (câbles, trajets d'appel) */
.ill-anim-draw {
    stroke-dasharray: var(--len, 300);
    stroke-dashoffset: var(--len, 300);
}
.is-visible .ill-anim-draw { animation: illDraw 1.1s var(--ease) forwards; }
@keyframes illDraw { to { stroke-dashoffset: 0; } }

/* Apparition en fondu montant, cadencée par --d */
.ill-anim-pop { transform: translateY(6px) scale(.94); transform-origin: center; }
.is-visible .ill-anim-pop {
    animation: illPop .55s var(--ease) forwards;
    animation-delay: calc(var(--d, 0) * 1ms);
}
@keyframes illPop { to { opacity: 1; transform: none; } }

/* Ondes d'appel qui pulsent en boucle */
.is-visible .ill-anim-wave {
    animation: illWave 2.4s ease-out infinite;
    animation-delay: calc(var(--d, 0) * 1ms);
}
@keyframes illWave {
    0%   { opacity: 0;   transform: scale(.55); }
    35%  { opacity: .55; }
    100% { opacity: 0;   transform: scale(1.35); }
}

/* Flottement lent (badges, pastilles détachées) */
.is-visible .ill-anim-float { animation: illFloat 4.5s ease-in-out infinite; }
@keyframes illFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

@media (prefers-reduced-motion: reduce) {
    .ill [class*="ill-anim"] { opacity: 1 !important; transform: none !important; animation: none !important; }
    .ill-anim-draw { stroke-dashoffset: 0 !important; }
}

/* ============================================================
   DENSITÉ MOBILE — dézoom équilibré, orienté lisibilité (≤640px)
   Chargé sur toutes les pages via partials/head.php.
   Objectif : titres à l'échelle mobile + espacements resserrés,
   sans jamais réduire le texte de lecture (plancher 16px =
   accessibilité + anti-zoom auto des champs sur iOS).
   ============================================================ */
@media (max-width: 640px) {
    /* Titres : ramenés à une échelle mobile, hiérarchie préservée */
    .display        { font-size: clamp(1.8rem, 7vw, 2.3rem); }   /* ~38px → ~29px */
    h2              { font-size: clamp(1.45rem, 5.2vw, 1.8rem); } /* ~30px → ~23px */
    h3              { font-size: clamp(1.12rem, 3.6vw, 1.3rem); } /* ~24px → ~19px */

    /* Texte de lecture : plancher 16px conservé */
    .lead           { font-size: 1rem; line-height: 1.55; }      /* ~17px → 16px */

    /* Espacements verticaux resserrés → plus de contenu visible d'emblée */
    .section        { padding-block: clamp(2.25rem, 7vw, 3rem); }  /* ~56px → ~36px */
    .section--tight { padding-block: clamp(1.75rem, 5vw, 2.5rem); }
    .section-head   { margin-bottom: clamp(1.5rem, 5vw, 2rem); }   /* ~36px → ~24px */

    /* --- Composants : volume visuel resserré (cibles tactiles ≥44px conservées) --- */
    /* Cartes : rembourrage resserré → contenu plus dense */
    .card                     { padding: 1.15rem; }

    /* Pastilles d'icônes des cartes */
    .icon-badge               { width: 44px; height: 44px; font-size: 1.25rem; margin-bottom: .85rem; }

    /* Gros boutons : un cran plus compacts */
    .btn-lg                   { padding: .9rem 1.4rem; font-size: 1rem; }

    /* Menu mobile : liens, icônes et mascotte à l'échelle */
    .mobile-menu nav a        { font-size: 1rem; padding: .8rem .6rem; }
    .mobile-menu nav a .ico   { font-size: 1.1rem; width: 1.4rem; }
    .mobile-ia-card__icon img { width: 36px; height: 36px; }
    .mobile-ia-card__title    { font-size: .9rem; }
}


/* ============================================================
   BARRE D'ANNONCE — posée au-dessus du header
   ------------------------------------------------------------
   Contenu et affichage pilotés depuis l'admin (partials/banner.php).
   Elle vit dans le flux, avant le header sticky : elle se voit à
   l'arrivée sur la page puis libère la place au défilement, sans
   entrer en conflit avec `position: sticky` ni avec le
   `scroll-padding-top` des ancres.
   Conçue mobile d'abord (~80 % du trafic) : toute la barre est
   cliquable, et le libellé du bouton cède la place à une pastille
   fléchée sous 720px pour tenir sur deux lignes.
   Couleurs FIXES (comme .btn-on-dark) : le texte reste blanc dans
   les deux thèmes, il ne doit pas suivre les tokens.
   ============================================================ */
.annbar {
    position: relative;
    z-index: 99;                        /* sous le header : c'est lui qui doit primer en se collant */
    background: linear-gradient(100deg, #4A1FAE 0%, #6D3BEB 48%, #8A63F5 100%);
    color: #fff;
}
.annbar--trust { background: linear-gradient(100deg, #0B5A40 0%, #128A63 50%, #1FA97A 100%); }
.annbar--night { background: linear-gradient(100deg, #14112B 0%, #2A1560 55%, #3E2196 100%); }

.annbar__inner {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding: .6rem clamp(1rem, 4vw, 1.5rem);
    color: #fff;
    transition: background var(--t-fast);
}
.annbar__inner:hover { background: rgba(255,255,255,.07); }
.annbar__inner:active { background: rgba(255,255,255,.12); }
.annbar__inner:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }

.annbar__badge {
    display: none;                      /* réservé au grand écran : place comptée sur mobile */
    flex-shrink: 0;
    font-size: .64rem; font-weight: 800;
    letter-spacing: .1em; text-transform: uppercase;
    padding: .3rem .6rem;
    border-radius: var(--r-full);
    background: rgba(255,255,255,.2);
}

.annbar__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .1rem;
    line-height: 1.3;
}
.annbar__title {
    font-size: .875rem;
    font-weight: 700;
    color: #fff;
    text-wrap: balance;
}
.annbar__sub {
    font-size: .78rem;
    color: rgba(255,255,255,.82);
}
/* Garde-fou mobile : un texte trop long saisi en admin ne doit pas
   transformer la barre en pavé qui repousse le contenu hors de l'écran. */
.annbar__title, .annbar__sub {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.annbar__title { -webkit-line-clamp: 2; }
.annbar__sub   { -webkit-line-clamp: 1; }

/* Mobile : pastille fléchée. Le libellé reste dans le DOM pour les
   lecteurs d'écran — le lien doit s'annoncer autrement que « lien ». */
.annbar__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: 34px; height: 34px;
    border-radius: var(--r-full);
    background: #fff;
    color: #2A1560;
    font-weight: 700;
    font-size: .82rem;
    line-height: 1;
}
.annbar--trust .annbar__cta { color: #0B5A40; }
.annbar__cta svg { width: 16px; height: 16px; transition: transform var(--t); }
.annbar__inner:hover .annbar__cta svg { transform: translateX(2px); }
.annbar__cta-label {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ≥ 720px : une seule ligne, pastille visible, vrai bouton libellé */
@media (min-width: 720px) {
    .annbar__inner { gap: 1rem; padding-block: .55rem; }
    .annbar__badge { display: inline-flex; align-items: center; }
    .annbar__text {
        flex-direction: row;
        align-items: baseline;
        gap: .5rem;
        flex-wrap: wrap;
    }
    .annbar__title { font-size: .92rem; }
    .annbar__title, .annbar__sub { display: block; overflow: visible; }
    .annbar__sub {
        font-size: .84rem;
        padding-left: .55rem;
        border-left: 1px solid rgba(255,255,255,.28);
    }
    .annbar__cta {
        width: auto; height: auto;
        padding: .5rem 1rem;
        box-shadow: 0 6px 16px -8px rgba(0,0,0,.5);
    }
    .annbar__cta-label {
        position: static; width: auto; height: auto;
        margin: 0; overflow: visible; clip: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .annbar__inner, .annbar__cta svg { transition: none; }
}
