/* ============================================================
   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);
}
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-size: 1.0625rem;          /* 17px — confort de lecture tous âges */
    -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.075rem, 1.6vw, 1.3rem);
    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); }

.btn-lg  { padding: 1.05rem 1.8rem; font-size: 1.08rem; }
.btn-full{ width: 100%; }
.btn-on-dark { background: #fff; color: var(--ink); box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); }
.btn-on-dark:hover { background: var(--brand-100); color: var(--brand-700); }

/* ===== 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);
}
.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: 700;
    font-size: 1.3rem;
    letter-spacing: -.02em;
    color: var(--ink);
}
.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:hover { color: var(--brand-600); background: var(--brand-50); }

.header-cta { display: none; 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);
}

@media (min-width: 980px) {
    .nav-desktop, .header-cta { 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;
}
.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;
}
.site-footer .brand { color: #fff; }
.site-footer .brand__name span { color: #c9acff; }
.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; }
