/* =========================================================================
   HEXALOGICIEL — Design system futuriste
   Palette inspirée du logo : noir profond, bleu électrique, cyan, argent.
   ========================================================================= */

:root {
    --bg:        #05070d;
    --bg-2:      #0a0e18;
    --surface:   #0e1422;
    --surface-2: #121a2c;
    --border:    rgba(120, 160, 220, 0.14);
    --border-strong: rgba(120, 170, 255, 0.35);

    --text:      #e8eef9;
    --text-dim:  #9aa8c2;
    --text-mute: #6b7894;

    --blue:      #2b8fff;
    --blue-2:    #1e6fff;
    --cyan:      #46e0ff;
    --silver:    #cfe0f5;

    --grad: linear-gradient(120deg, #ffffff 0%, #46e0ff 35%, #2b8fff 70%, #1e6fff 100%);
    --grad-blue: linear-gradient(120deg, #46e0ff, #2b8fff 60%, #1e6fff);
    --glow: 0 0 40px rgba(43, 143, 255, 0.35);

    --radius:    16px;
    --radius-sm: 10px;
    --maxw:      1180px;
    --ease:      cubic-bezier(0.22, 1, 0.36, 1);

    --font: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --mono: "SF Mono", "Cascadia Code", "Fira Code", Consolas, "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.container.narrow { max-width: 820px; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 1000;
    background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* --- Fond animé (canvas) ------------------------------------------------- */
#bg-canvas {
    position: fixed; inset: 0; z-index: -2;
    width: 100%; height: 100%;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(43, 143, 255, 0.18), transparent 60%),
        radial-gradient(900px 500px at 0% 10%, rgba(70, 224, 255, 0.10), transparent 55%),
        var(--bg);
}
body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(rgba(120, 160, 220, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 160, 220, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
}

/* --- Texte en dégradé ---------------------------------------------------- */
.text-grad {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* --- Boutons (design system unifié) -------------------------------------- */
.btn {
    --btn-pad-y: 13px;
    --btn-pad-x: 24px;
    --btn-fs: 0.98rem;
    --btn-shadow: 0 4px 16px rgba(43, 143, 255, 0.22);
    --btn-shadow-hover: 0 6px 22px rgba(43, 143, 255, 0.32);

    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: var(--btn-pad-y) var(--btn-pad-x); border-radius: 999px;
    font-weight: 600; font-size: var(--btn-fs); line-height: 1.2;
    cursor: pointer; border: 1px solid transparent; position: relative;
    text-decoration: none;
    transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s, border-color 0.22s, color 0.22s;
    white-space: nowrap;
}
.btn:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}
.btn:active { transform: translateY(0) scale(0.99); }
.btn .icon { width: 17px; height: 17px; flex-shrink: 0; }

/* Tailles — même style, échelles différentes uniquement */
.btn-sm {
    --btn-pad-y: 10px; --btn-pad-x: 18px; --btn-fs: 0.88rem;
    --btn-shadow: 0 3px 12px rgba(43, 143, 255, 0.2);
    --btn-shadow-hover: 0 5px 18px rgba(43, 143, 255, 0.28);
}
.btn-lg {
    --btn-pad-y: 15px; --btn-pad-x: 28px; --btn-fs: 1rem;
}
.btn-block { width: 100%; }

/* Primaire — actions principales (CTA, contact, menu) */
.btn-primary {
    background: var(--grad-blue);
    color: #04101f;
    box-shadow: var(--btn-shadow);
}
.btn-primary:hover {
    color: #04101f;
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow-hover);
}
.btn-primary .icon { transition: transform 0.22s var(--ease); }
.btn-primary:hover .icon { transform: translateX(3px); }

/* Secondaire — actions complémentaires (même rendu pour ghost & outline) */
.btn-secondary,
.btn-ghost,
.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: rgba(70, 224, 255, 0.38);
    box-shadow: none;
}
.btn-secondary:hover,
.btn-ghost:hover,
.btn-outline:hover {
    color: var(--text);
    background: rgba(43, 143, 255, 0.1);
    border-color: rgba(70, 224, 255, 0.65);
    transform: translateY(-2px);
    box-shadow: none;
}

/* --- Header -------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    background: rgba(5, 7, 13, 0.55);
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s;
}
.site-header.scrolled {
    background: rgba(5, 7, 13, 0.85);
    border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 124px; transition: height 0.3s var(--ease); }
.brand-logo { height: 100px; width: auto; transition: height 0.3s var(--ease), filter 0.3s; }
/* L'en-tête et le logo rétrécissent au défilement pour rester compacts. */
.site-header.scrolled .header-inner { height: 78px; }
.site-header.scrolled .brand-logo { height: 56px; }
.brand:hover .brand-logo { filter: drop-shadow(0 0 12px rgba(70, 224, 255, 0.6)); }

.primary-nav ul { list-style: none; display: flex; align-items: center; gap: 6px; }
.primary-nav a:not(.btn) {
    padding: 9px 14px; border-radius: 8px; color: var(--text-dim);
    font-weight: 500; font-size: 0.96rem; position: relative; transition: color 0.2s;
}
.primary-nav a:not(.btn):hover { color: var(--text); }
.primary-nav a.is-active:not(.btn) { color: var(--text); }
.primary-nav a.is-active:not(.btn)::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
    background: var(--grad-blue); border-radius: 2px;
}
.nav-cta { margin-left: 8px; }
.nav-cta .btn-primary { color: #04101f; }
.nav-cta .btn-primary:hover { color: #04101f; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Sections ------------------------------------------------------------ */
.section { padding: 96px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(10, 14, 24, 0.6), transparent); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head.align-left { text-align: left; margin-left: 0; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-subtitle { color: var(--text-dim); font-size: 1.1rem; margin-top: 14px; }

.badge {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 7px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 500;
    color: var(--silver); background: rgba(43,143,255,0.08); border: 1px solid var(--border-strong);
    margin-bottom: 22px;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.5;transform:scale(.8);} }

.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.kicker .icon { width: 18px; height: 18px; }
.lead { font-size: 1.12rem; color: var(--text-dim); margin-top: 8px; }

/* --- Hero ---------------------------------------------------------------- */
.hero { padding: clamp(60px, 9vw, 120px) 0 80px; position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; }
.hero-subtitle { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-dim); margin: 24px 0 34px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Visuel code */
.hero-visual { position: relative; }
.hex-card {
    position: relative; padding: 4px; border-radius: var(--radius);
    background: linear-gradient(140deg, rgba(70,224,255,0.5), rgba(43,143,255,0.1) 40%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-14px);} }
.code-window {
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.code-bar { display: flex; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.code-bar span { width: 12px; height: 12px; border-radius: 50%; background: #2a3550; }
.code-bar span:first-child { background: #ff5f57; }
.code-bar span:nth-child(2) { background: #febc2e; }
.code-bar span:nth-child(3) { background: #28c840; }
.code-body { padding: 22px; font-family: var(--mono); font-size: 0.95rem; line-height: 1.9; color: var(--silver); overflow-x: auto; }
.c-key { color: #ff79c6; } .c-cls { color: var(--cyan); } .c-fn { color: #82aaff; }
.c-str { color: #c3e88d; } .c-num { color: #f78c6c; } .c-op { color: var(--text-mute); }

/* --- Stats --------------------------------------------------------------- */
.stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 80px;
    padding: 32px; border: 1px solid var(--border); border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(14,20,34,0.6), rgba(14,20,34,0.2));
}
.stat { text-align: center; }
.stat-value { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-suffix { font-size: 0.6em; margin-left: 3px; }
.stat-label { color: var(--text-dim); font-size: 0.92rem; margin-top: 4px; }

/* --- Cards --------------------------------------------------------------- */
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
    position: relative; padding: 32px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border); overflow: hidden;
    transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.card::before {
    content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(43,143,255,0.12), transparent 45%);
    pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.98rem; }

.card-icon {
    width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 20px;
    border-radius: 14px; background: rgba(43,143,255,0.1); border: 1px solid var(--border-strong);
    color: var(--cyan);
}
.card-icon .icon { width: 26px; height: 26px; }
.card-feature { padding: 38px; }
.card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; color: var(--blue); font-weight: 600; position: relative; z-index: 2; }
.card-link .icon { width: 17px; height: 17px; transition: transform 0.25s var(--ease); }
.card-link:hover .icon { transform: translateX(4px); }

/* --- Split / check list -------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.check-list { list-style: none; display: grid; gap: 14px; }
.check-list.cols-2 { grid-template-columns: 1fr 1fr; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--text); }
.check-list .icon { width: 22px; height: 22px; flex: none; color: var(--cyan); padding: 3px; border-radius: 50%; background: rgba(70,224,255,0.1); margin-top: 2px; }

.section-security { background: linear-gradient(180deg, transparent, rgba(43,143,255,0.04), transparent); }

/* --- Gammes NOVA / PULSAR ----------------------------------------------- */
.ranges .range-card { padding: 40px; display: flex; flex-direction: column; }
.range-card {
    position: relative; border-radius: var(--radius); border: 1px solid var(--border);
    background: var(--surface); overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.range-card::after {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-blue);
}
.range-pulsar::after { background: linear-gradient(120deg, #b06bff, #46e0ff, #2b8fff); }
.range-card:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: 0 30px 70px rgba(0,0,0,0.5); }
.range-name { font-size: 1.9rem; letter-spacing: 0.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.range-pulsar .range-name { background: linear-gradient(120deg, #d6b3ff, #46e0ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.range-tagline { color: var(--text-dim); margin-top: 4px; }
.range-text { color: var(--text-dim); margin: 18px 0 22px; }
.range-card .check-list { margin-bottom: 28px; }
.range-card .btn { margin-top: auto; }

/* --- Steps --------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step-num { font-family: var(--mono); font-size: 2rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 12px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 0.95rem; }

/* --- Vitrine logo (rappel plein écran) ----------------------------------- */
.brand-showcase {
    position: relative;
    display: flex; align-items: flex-start; justify-content: center;
    overflow: hidden; padding: 24px 24px 36px;
}
.showcase-inner {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    width: 100%; max-width: 720px; margin-inline: auto;
}
.showcase-logo {
    display: block; margin-inline: auto;
    width: min(580px, 82vw); height: auto;
}
.showcase-baseline {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 0; margin-top: 18px;
    color: var(--text);
    text-transform: uppercase; letter-spacing: 0.22em;
    font-size: 0.78rem; font-weight: 600;
}
.baseline-item { white-space: nowrap; }
.baseline-dot {
    display: inline-block; flex-shrink: 0;
    width: 7px; height: 7px; margin-inline: 1.1em;
    border-radius: 50%; background: var(--blue);
    vertical-align: middle;
}
/* Resserre l'espace autour de la vitrine logo */
.section:has(+ .brand-showcase) { padding-bottom: 40px; }
.brand-showcase + .section { padding-top: 40px; }

/* --- CTA band ------------------------------------------------------------ */
.cta-band {
    display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
    padding: 40px 44px; border-radius: 22px; position: relative; overflow: hidden;
    background: linear-gradient(120deg, rgba(43,143,255,0.12), rgba(70,224,255,0.04));
    border: 1px solid var(--border-strong);
}
.cta-band .btn-primary { flex-shrink: 0; }
.cta-title { font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-text { color: var(--text-dim); margin-top: 8px; max-width: 520px; }

/* --- Page hero ----------------------------------------------------------- */
.page-hero { padding: clamp(70px, 10vw, 130px) 0 50px; text-align: center; }
.page-hero .container { max-width: 820px; }
.page-title { font-size: clamp(2rem, 5vw, 3.4rem); }
.page-subtitle { color: var(--text-dim); font-size: 1.15rem; margin-top: 18px; }
.page-hero .hero-actions { justify-content: center; margin-top: 30px; }

/* --- Prose --------------------------------------------------------------- */
.prose p { color: var(--text-dim); margin-bottom: 18px; font-size: 1.05rem; }
.prose h2 { font-size: 1.5rem; margin: 36px 0 14px; }
.prose h3 { font-size: 1.15rem; margin: 24px 0 12px; color: var(--silver); }
.prose a { color: var(--blue); }
.prose a:hover { color: var(--cyan); }
.legal-prose h2:first-of-type { margin-top: 0; }
.legal-list { margin: 0 0 18px 1.25rem; color: var(--text-dim); }
.legal-list li { margin-bottom: 8px; }
.legal-updated { font-size: 0.9rem; color: var(--text-mute); margin-bottom: 8px; }
.legal-footer-note { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); text-align: center; color: var(--text-mute); font-size: 0.9rem; }
.muted { color: var(--text-mute); }

/* --- Contact ------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: 1.5rem; margin-bottom: 10px; }
.contact-list { list-style: none; display: grid; gap: 16px; margin: 26px 0; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; }
.contact-list .icon { width: 22px; height: 22px; color: var(--cyan); flex: none; margin-top: 2px; }
.form-note a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.form-note a:hover { color: var(--cyan); }
.support-badge { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 12px; background: rgba(70,224,255,0.08); border: 1px solid var(--border-strong); color: var(--silver); font-size: 0.92rem; }
.support-badge .icon { color: var(--cyan); }

/* --- Forms --------------------------------------------------------------- */
.contact-form-wrap { padding: 36px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; color: var(--silver); }
.field input, .field textarea, .field select {
    background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
    padding: 13px 15px; color: var(--text); font-family: inherit; font-size: 1rem; width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43,143,255,0.18);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-error { color: #ff8b8b; font-size: 0.85rem; margin-top: 6px; }
.form-note { color: var(--text-mute); font-size: 0.85rem; margin-top: 14px; text-align: center; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.alert { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 12px; margin-bottom: 22px; font-size: 0.95rem; }
.alert .icon { width: 20px; height: 20px; flex: none; }
.alert-success { background: rgba(40,200,100,0.12); border: 1px solid rgba(40,200,100,0.4); color: #9be8b5; }
.alert-error { background: rgba(255,90,90,0.1); border: 1px solid rgba(255,90,90,0.4); color: #ffadad; }

/* --- 404 ----------------------------------------------------------------- */
.error-hero { padding-top: 120px; }
.error-code { font-size: clamp(5rem, 18vw, 11rem); font-weight: 900; line-height: 1; display: block; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 64px; background: linear-gradient(180deg, transparent, rgba(10,14,24,0.6)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 300px; margin-inline: auto; }
.footer-brand .footer-logo {
    display: block; width: min(260px, 100%); height: auto;
    margin-inline: auto; margin-bottom: 14px;
}
.footer-baseline {
    display: flex; flex-wrap: nowrap; align-items: center; justify-content: center;
    color: var(--silver); font-size: 0.68rem; letter-spacing: 0.1em;
    text-transform: uppercase; font-weight: 600; margin-top: 2px;
    white-space: nowrap;
}
.footer-baseline .baseline-dot { width: 5px; height: 5px; margin-inline: 0.55em; }
.footer-baseline .baseline-item { white-space: nowrap; }
.footer-note { color: var(--text-mute); font-size: 0.84rem; margin-top: 12px; max-width: 280px; line-height: 1.55; }
.footer-col h3 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--silver); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--text-dim); font-size: 0.95rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-support { color: var(--text-mute); font-size: 0.9rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 24px 0; border-top: 1px solid var(--border); color: var(--text-mute); font-size: 0.88rem; }
.footer-made .dot { color: var(--blue); }

/* --- Reveal on scroll ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Contenu visible même si le JS n'a pas encore chargé */
.reveal:not(.is-visible) { animation: reveal-fallback 0.01s 1.2s forwards; }
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hex-card, .badge-dot { animation: none; }
    html { scroll-behavior: auto; }
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { order: -1; max-width: 460px; }
    .cards-4 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .header-inner, .site-header.scrolled .header-inner { height: 84px; }
    .brand-logo, .site-header.scrolled .brand-logo { height: 62px; }
    .primary-nav {
        position: fixed; inset: 84px 0 auto 0; background: rgba(8,11,20,0.98);
        backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
        transform: translateY(-120%); transition: transform 0.4s var(--ease); padding: 16px 24px 28px;
    }
    .primary-nav.open { transform: translateY(0); }
    .primary-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
    .primary-nav a { padding: 14px; font-size: 1.05rem; }
    .nav-cta { margin: 10px 0 0; } .nav-cta .btn { width: 100%; justify-content: center; }

    .cards-2, .cards-3, .cards-4, .split, .contact-grid, .stats, .steps { grid-template-columns: 1fr; }
    .check-list.cols-2 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
    .cta-band { padding: 32px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .stats { gap: 24px; }
}

@media (max-width: 400px) {
    .footer-brand { max-width: 100%; }
    .footer-brand .footer-logo { width: min(220px, 92vw); }
    .footer-baseline { font-size: 0.58rem; letter-spacing: 0.06em; }
    .footer-baseline .baseline-dot { margin-inline: 0.38em; }
}
