/* ==========================================================================
   GBV · wow-v7.css — habillage « nuit bleutée + cobalt électrique ».
   Chargé APRÈS style-v5.css et digital-v6.css. CSS seulement : aucune photo ni
   illustration modifiée ou ajoutée. Mouvement coupé si « réduire les animations ».
   ========================================================================== */

/* ---------- 1. Palette (surcharge des variables du site) ---------- */
:root {
    --paper: #f3f6fc;
    --mist: #f3f6fc;
    --mist-2: #e7edf8;
    --slate: #d5def0;
    --surface-soft: #f8faff;
    --ink: #0a1230;
    --ink-2: #3f4b66;
    --muted: #4b5873;
    --line: #d3dcef;
    --line-strong: #b6c3df;
    --navy: #0f1d44;
    --navy-deep: #0a1230;
    --on-navy: #eaf0ff;
    --on-navy-2: #b9c6e6;
    --accent: #2a62f0;            /* cobalt : blanc dessus = contraste 5,3:1 */
    --accent-hover: #1d4fd0;
    --accent-soft: #e5edff;
    --accent-on-navy: #7cc8ff;    /* cyan glacé sur fonds sombres */
    --screen: #0a1230;
    --ice: #7cc8ff;
    --glow: 0 10px 30px -10px rgba(42, 98, 240, 0.55);
    --lift: 0 1px 2px rgba(10, 18, 48, 0.05), 0 12px 32px -14px rgba(10, 18, 48, 0.22);
    --lift-hover: 0 2px 4px rgba(10, 18, 48, 0.06), 0 22px 44px -16px rgba(42, 98, 240, 0.38);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-panel: 14px;
}

body {
    background:
        radial-gradient(1100px 520px at 85% -8%, rgba(42, 98, 240, 0.10), transparent 60%),
        radial-gradient(900px 480px at -10% 8%, rgba(124, 200, 255, 0.14), transparent 55%),
        var(--paper);
    background-attachment: fixed;
    color: var(--ink);
}
::selection { background: var(--accent); color: #fff; }

/* ---------- 2. Typographie ---------- */
h1, h2, h3, .section-title {
    letter-spacing: -0.022em;
    text-wrap: balance;
}
h1, .section-title { font-weight: 680; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.14em;
    font-weight: 650;
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--ice));
}

/* ---------- 3. En-tête en verre dépoli ---------- */
.site-header {
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(10, 18, 48, 0.08);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 8px 24px -18px rgba(10, 18, 48, 0.35);
}
.site-header a:not(.btn) { transition: color 0.2s var(--ease); }

/* ---------- 4. Boutons ---------- */
.btn { border-radius: 10px; transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.2s var(--ease); }
.btn-primary {
    background: linear-gradient(135deg, #3a74ff 0%, var(--accent) 55%, #1d4fd0 100%);
    box-shadow: var(--glow);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #4a80ff 0%, #2a62f0 55%, #1a47bd 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px -10px rgba(42, 98, 240, 0.7);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: rgba(255, 255, 255, 0.6); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: #fff; transform: translateY(-2px); }
.btn-light:hover, .btn-ghost-light:hover { transform: translateY(-2px); }

/* ---------- 5. Écran d'exploitation et panneaux de données ---------- */
.hero-screen, .screen, .screen-panel {
    border-radius: var(--radius-panel);
}
.screen, .hero-screen .screen, [class*="screen"] {
    --screen: #0a1230;
}
.screen, .screen-panel {
    background:
        radial-gradient(520px 220px at 100% 0%, rgba(42, 98, 240, 0.35), transparent 70%),
        radial-gradient(420px 200px at 0% 100%, rgba(124, 200, 255, 0.16), transparent 70%),
        #0a1230;
    box-shadow: 0 0 0 1px rgba(124, 200, 255, 0.18), 0 30px 60px -28px rgba(10, 18, 48, 0.8);
}
.data-panel {
    border-radius: var(--radius-panel);
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: var(--lift);
}
.pill-ok, .pill-ok-light { box-shadow: 0 0 0 1px rgba(29, 122, 79, 0.12); }

/* ---------- 6. Cartes ---------- */
.service, .kpi, .step, .faq-item, .tabpanel, .proof, .chip {
    transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease), background 0.28s var(--ease);
}
.service, .kpi, .faq-item {
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    box-shadow: var(--lift);
}
.service:hover, .kpi:hover, .faq-item:hover {
    transform: translateY(-3px);
    border-color: rgba(42, 98, 240, 0.45);
    box-shadow: var(--lift-hover);
}
.service-wide {
    background: linear-gradient(135deg, #0f1d44 0%, #0a1230 60%, #14306e 100%);
    border-color: rgba(124, 200, 255, 0.25);
    color: var(--on-navy);
}
.service-wide h3, .service-wide .service-num { color: #fff; }
.service-wide p { color: var(--on-navy-2); }
.service-icon { color: var(--accent); }
.service-wide .service-icon { color: var(--ice); }
.service-num { letter-spacing: 0.12em; }
.kpi-value { font-weight: 700; letter-spacing: -0.03em; }

/* ---------- 7. Sections ---------- */
.section-white { background: linear-gradient(180deg, #fff 0%, #f8faff 100%); }
.section-mist { background: linear-gradient(180deg, var(--mist) 0%, #eaf0fb 100%); }
.section-head { border-bottom-color: var(--line); }

/* ---------- 8. Pied de page ---------- */
.site-footer {
    background:
        radial-gradient(900px 320px at 90% 0%, rgba(42, 98, 240, 0.25), transparent 65%),
        linear-gradient(180deg, #0f1d44 0%, #070d24 100%);
}
.site-footer a { transition: color 0.2s var(--ease); }
.site-footer a:hover { color: var(--ice); }

/* ---------- 9. Formulaires ---------- */
input, select, textarea { border-radius: 10px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(42, 98, 240, 0.18); outline: none; }

/* ---------- 10. Accessibilité : focus visible ---------- */
:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; border-radius: 6px; }
.site-footer :focus-visible, .screen :focus-visible { outline-color: var(--ice); }

/* ---------- 11. Respect du « réduire les animations » ---------- */
@media (prefers-reduced-motion: reduce) {
    .btn, .service, .kpi, .step, .faq-item, .tabpanel, .proof, .chip { transition: none; }
    .btn:hover, .service:hover, .kpi:hover, .faq-item:hover { transform: none; }
}

/* ---------- 12. Cartes révélées : survol vif sans casser l'apparition progressive ---------- */
.js-motion [data-reveal].is-in {
    transition-property: opacity, transform, box-shadow, border-color, background;
    transition-duration: 0.8s, 0.28s, 0.28s, 0.28s, 0.28s;
}
@media (prefers-reduced-motion: reduce) {
    .js-motion [data-reveal].is-in { transition-duration: 0s; }
}

/* ==========================================================================
   13. Tableau d'exploitation « poste de commande » (haut de page)
   ========================================================================== */
.board {
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(rgba(124, 200, 255, 0.05) 1px, transparent 1px) 0 0 / 100% 28px,
        linear-gradient(90deg, rgba(124, 200, 255, 0.05) 1px, transparent 1px) 0 0 / 28px 100%,
        radial-gradient(640px 260px at 100% 0%, rgba(42, 98, 240, 0.38), transparent 70%),
        radial-gradient(520px 240px at 0% 100%, rgba(124, 200, 255, 0.16), transparent 70%),
        #0a1230;
    border: 1px solid rgba(124, 200, 255, 0.28);
    border-radius: 16px;
    box-shadow: 0 0 0 1px rgba(10, 18, 48, 0.6), 0 0 60px -12px rgba(42, 98, 240, 0.55), 0 36px 70px -30px rgba(10, 18, 48, 0.9);
    color: #fff;
}
/* trait lumineux qui balaie le haut du panneau */
.board::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--ice) 35%, #5b8cff 65%, transparent 100%);
    background-size: 60% 100%;
    background-repeat: no-repeat;
    animation: wow-sweep 5s linear infinite;
    z-index: 1;
}
@keyframes wow-sweep { from { background-position: -60% 0; } to { background-position: 160% 0; } }

.board-head { background: rgba(255, 255, 255, 0.04); border-bottom-color: rgba(124, 200, 255, 0.18); }
.board-name { color: var(--ice); display: inline-flex; align-items: center; gap: 10px; }
.board-name::before {
    content: "";
    width: 8px; height: 8px; border-radius: 50%;
    background: #3ddc97;
    box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6);
    animation: wow-pulse 2s ease-out infinite;
}
@keyframes wow-pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6); } 80%, 100% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); } }
.board-meta { color: var(--on-navy-2); }
.board-col + .board-col, .board-foot { border-color: rgba(124, 200, 255, 0.16); }

.board .br { border-bottom-color: rgba(255, 255, 255, 0.08); }
.board .br dt { color: #a3b5dc; }
.board .bv { color: #fff; font-size: 17px; letter-spacing: 0.01em; text-shadow: 0 0 18px rgba(124, 200, 255, 0.5); }
.board .bv.is-writing::before { color: var(--ice); }
.board .br.is-flip { background: rgba(124, 200, 255, 0.1); }

.board .pill-ok { color: #6df2b6; background: rgba(61, 220, 151, 0.12); border-color: rgba(61, 220, 151, 0.38); }
.board .pill-ok::before { animation: wow-blink 2.4s ease-in-out infinite; }
.board .pill-info { color: #92d8ff; background: rgba(124, 200, 255, 0.12); border-color: rgba(124, 200, 255, 0.38); }
@keyframes wow-blink { 50% { opacity: 0.35; } }

/* jauge liée au chiffre (taux de réussite) */
.meter {
    flex: 1 0 100%;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}
.meter::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: calc(var(--pct, 0) * 1%);
    border-radius: inherit;
    background: linear-gradient(90deg, #5b8cff, var(--ice));
    box-shadow: 0 0 12px rgba(124, 200, 255, 0.8);
    transition: width 1.4s var(--ease);
}

/* écran qui tape : même univers lumineux */
.tty { box-shadow: 0 0 0 1px rgba(124, 200, 255, 0.28), 0 0 50px -14px rgba(42, 98, 240, 0.6), 0 30px 60px -28px rgba(10, 18, 48, 0.85); }
.tty-text { text-shadow: 0 0 22px rgba(124, 200, 255, 0.45); }

@media (prefers-reduced-motion: reduce) {
    .board::before, .board-name::before, .board .pill-ok::before { animation: none; }
    .meter::after { transition: none; }
}

/* pendant l'animation d'écriture, le vrai texte reste invisible (évite le chevauchement) */
.board .bv.is-writing, .board .bv.is-writing * { color: transparent; text-shadow: none; }

/* ==========================================================================
   14. Barre du haut + en-tête « poste de commande »
   ========================================================================== */
.utility-bar {
    background: linear-gradient(90deg, #050a1d 0%, #0a1230 55%, #0f1d44 100%);
    border-bottom: 1px solid rgba(124, 200, 255, 0.14);
    font-family: var(--mono, ui-monospace, "Cascadia Mono", Consolas, monospace);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: #a3b5dc;
}
.utility-dot {
    background: #3ddc97;
    box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6);
    animation: wow-pulse 2s ease-out infinite;
}
.utility-links a { color: #d6e1fb; transition: color 0.2s var(--ease), text-shadow 0.2s var(--ease); }
.utility-links a:hover { color: #fff; text-decoration: none; text-shadow: 0 0 14px rgba(124, 200, 255, 0.8); }
.utility-lang {
    border: 1px solid rgba(124, 200, 255, 0.35);
    border-radius: 6px;
    padding: 2px 9px;
    color: var(--ice);
}

.site-header {
    background: rgba(7, 13, 36, 0.78);
    -webkit-backdrop-filter: saturate(170%) blur(18px);
    backdrop-filter: saturate(170%) blur(18px);
    border-bottom: 1px solid rgba(124, 200, 255, 0.2);
    box-shadow: 0 10px 40px -18px rgba(42, 98, 240, 0.55);
}
.site-header.is-scrolled { box-shadow: 0 14px 44px -16px rgba(42, 98, 240, 0.7); }
/* barre de progression de lecture (valeur --scroll posée par wow-v7.js) */
.site-header::after {
    content: "";
    position: absolute;
    left: 0; bottom: -1px;
    height: 2px;
    width: calc(var(--scroll, 0) * 1%);
    background: linear-gradient(90deg, #2a62f0, var(--ice));
    box-shadow: 0 0 12px rgba(124, 200, 255, 0.9);
    transition: width 0.12s linear;
}
.brand img { box-shadow: 0 0 0 1px rgba(124, 200, 255, 0.4), 0 0 22px -4px rgba(42, 98, 240, 0.85); transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.brand:hover img { transform: scale(1.05); box-shadow: 0 0 0 1px rgba(124, 200, 255, 0.7), 0 0 30px -2px rgba(124, 200, 255, 0.8); }

.nav-list a { color: #c6d3f0; border-radius: 8px; transition: color 0.2s var(--ease), background 0.2s var(--ease), text-shadow 0.2s var(--ease); }
.nav-list a:hover { color: #fff; background: rgba(124, 200, 255, 0.09); text-shadow: 0 0 16px rgba(124, 200, 255, 0.7); }
.nav-list a[aria-current="true"] { color: #fff; }
.nav-list a::after { background: linear-gradient(90deg, #2a62f0, var(--ice)); box-shadow: 0 0 10px rgba(124, 200, 255, 0.9); }
.header-cta { box-shadow: 0 0 0 1px rgba(124, 200, 255, 0.35), var(--glow); }

.nav-toggle { background: rgba(255, 255, 255, 0.06); border-color: rgba(124, 200, 255, 0.38); }
.nav-toggle-bars span { background: #fff; }

@media (max-width: 1180px) {
    .main-nav {
        background: #070d24;  /* opaque : le flou ne marche pas dans un parent déjà flouté */
        border-top: 1px solid rgba(124, 200, 255, 0.2);
        box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.7);
    }
    .nav-list a { color: #e4ecff; border-bottom: 1px solid rgba(255, 255, 255, 0.08); border-radius: 0; }
    .nav-list a:hover { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
    .utility-dot { animation: none; }
    .site-header::after { transition: none; }
}

/* ==========================================================================
   15. Pages de service (flotte dédiée, renfort de capacité, dernier kilomètre)
   ========================================================================== */
.page-crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.page-crumbs a { color: var(--accent); text-decoration: none; }
.page-crumbs a:hover { text-decoration: underline; }
.page-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; max-width: 68ch; color: var(--ink-2); margin-top: 14px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-prose h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 40px 0 14px; }
.page-prose > .container > h2:first-child, .page-prose h2:first-child { margin-top: 0; }
.page-prose p, .page-prose li { max-width: 72ch; line-height: 1.7; color: var(--ink-2); }
.page-prose ul { padding-left: 22px; display: grid; gap: 8px; margin: 0 0 8px; }
.page-prose a { color: var(--accent); }
.page-faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.86); padding: 4px 20px; margin: 0 0 12px; max-width: 78ch; box-shadow: var(--lift); }
.page-faq-item summary { cursor: pointer; font-weight: 600; padding: 14px 0; color: var(--ink); list-style: none; }
.page-faq-item summary::-webkit-details-marker { display: none; }
.page-faq-item summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.page-faq-item[open] summary::after { content: "–"; }
.page-faq-item p { margin: 0 0 16px; }
.service-more { margin-top: 14px; display: inline-flex; }


/* ==========================================================================
   16. Section « Nos partenaires » (texte seulement : noms, pas de logos)
   ========================================================================== */
.partners { padding-block: clamp(40px, 5vw, 72px); background: linear-gradient(180deg, #fff 0%, #f3f6fc 100%); border-block: 1px solid var(--line); }
.partners-sub { max-width: 62ch; color: var(--ink-2); margin-top: 10px; }
.partners-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 16px; }
.partner {
    flex: 1 1 240px; max-width: 380px; min-height: 96px; display: flex; align-items: center; justify-content: center;
    padding: 20px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--lift); transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.partner:hover { transform: translateY(-3px); border-color: rgba(42, 98, 240, 0.45); box-shadow: var(--lift-hover); }
.partner-name { font-size: clamp(20px, 2.2vw, 26px); font-weight: 680; letter-spacing: -0.01em; color: var(--ink); text-align: center; }
.partner-sep { color: var(--accent); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .partner { transition: none; } .partner:hover { transform: none; } }

/* Logos des partenaires (cartes blanches : les logos ont un fond blanc) */
.partner { flex-direction: column; gap: 12px; background: #fff; }
.partner img { display: block; width: auto; height: auto; max-width: 100%; max-height: 92px; object-fit: contain; }
.partner-name { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.partner-sep { color: var(--accent); }
