/* ==========================================================================
   Orah Technologies — feuille de style principale
   Design « Connected intelligence » : Geist / Geist Mono, bleu #0A66C2,
   thèmes clair et sombre pilotés par [data-theme] sur <html>.
   ========================================================================== */

/* ---------- Polices (Geist variable, sous-ensembles latin + latin-ext) ---------- */
@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/geist-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/geist-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Geist Mono';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/geist-mono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Geist Mono';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/geist-mono-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Jetons ---------- */
:root {
    --blue: #0A66C2;
    --blue-hover: #0B72D9;
    --blue-deep: #04428A;
    --blue-ink: #0A4E97;
    --blue-soft: #DCE8F7;
    --blue-mist: #BCD4F0;
    --night: #030A14;
    --footer: #032C5C;

    --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Menlo, monospace;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --gutter: clamp(18px, 4vw, 56px);

    --bg: #F3F5F8;
    --bg2: #FFFFFF;
    --soft: #E4EAF2;
    --ink: #0A1628;
    --mut: #4F5F77;
    --line: rgba(10, 22, 40, 0.12);
    --acc: #0A5CB0;
    --card: #FFFFFF;
    --navbg: rgba(255, 255, 255, 0.84);
    --chip: rgba(10, 22, 40, 0.22);
    --warn: #8A5400;
    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #06101E;
    --bg2: #0A1829;
    --soft: #0E1F35;
    --ink: #EDF2F9;
    --mut: #93A4BC;
    --line: rgba(237, 242, 249, 0.12);
    --acc: #5EA6FF;
    --card: #0D1D33;
    --navbg: rgba(6, 16, 30, 0.72);
    --chip: rgba(237, 242, 249, 0.25);
    --warn: #F0B458;
    color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    transition: background .5s, color .5s;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .8; }
input, textarea, button { font-family: inherit; }
button { color: inherit; }
img, svg { display: block; }
h1, h2, h3, p, ol, ul, dl, dd, fieldset { margin: 0; }
ol, ul { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
strong { font-weight: 600; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }

.mono { font-family: var(--mono); }
.muted { color: var(--mut); }
.ink { color: var(--ink); }
.acc { color: var(--acc); }
.blue { color: var(--blue); }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; }
.px { padding-left: var(--gutter); padding-right: var(--gutter); }
.sr-only {
    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: fixed; left: 16px; top: -60px; z-index: 200;
    padding: 12px 16px; border-radius: 10px; background: var(--blue); color: #fff;
}
.skip-link:focus { top: 16px; opacity: 1; }

.eyebrow {
    font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
    text-transform: uppercase; color: var(--acc);
}
.lead-muted { font-size: 17px; line-height: 1.6; color: var(--mut); }

.h-xl { font-weight: 300; font-size: clamp(42px, 6.2vw, 108px); line-height: .94; letter-spacing: -0.055em; text-wrap: balance; }
.h-xxl { font-weight: 300; font-size: clamp(46px, 7vw, 124px); line-height: .9; letter-spacing: -0.06em; }
.h-lg { font-weight: 300; font-size: clamp(40px, 5.6vw, 96px); line-height: .92; letter-spacing: -0.055em; }
.h-display { font-weight: 300; font-size: clamp(52px, 9vw, 168px); line-height: .86; letter-spacing: -0.065em; }
.h-case { font-weight: 300; font-size: clamp(34px, 4.4vw, 72px); line-height: .95; letter-spacing: -0.05em; }
.h-case-lg { font-weight: 300; font-size: clamp(34px, 5.4vw, 96px); line-height: .92; letter-spacing: -0.055em; }

.grid-lines {
    position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 96px 96px;
}
.grid-lines-soft { opacity: .9; }
.hatch { background: repeating-linear-gradient(135deg, rgba(10,102,194,.1) 0 1px, transparent 1px 14px), var(--bg2); }
.hatch-soft { background: repeating-linear-gradient(135deg, rgba(10,102,194,.12) 0 1px, transparent 1px 14px), var(--soft); }

.grain {
    position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.rec-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #FF4D4F; font-style: normal; flex: none; }
.rec-blink { width: 8px; height: 8px; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px;
    border-radius: 10px; font-size: 14px; font-weight: 500; white-space: nowrap; border: 1px solid transparent;
    transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { opacity: 1; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-lg { height: 58px; border-radius: 12px; font-size: 16px; padding: 0 24px; gap: 14px; }
.btn-white { background: #fff; color: var(--blue-ink); padding-right: 10px; }
.btn-white:hover { background: #EAF2FC; color: var(--blue-ink); }
.btn-arrow { width: 38px; height: 38px; border-radius: 8px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; }
.btn-ghost-light { border-color: rgba(255,255,255,.45); color: #fff; font-weight: 400; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav-shell {
    position: fixed; top: 14px; left: 0; right: 0; z-index: 60;
    display: flex; justify-content: center; padding: 0 clamp(10px, 2.4vw, 28px);
}
.nav {
    width: 100%; max-width: 1440px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 8px 8px 8px 20px; background: var(--navbg); color: var(--ink);
    -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid var(--line); border-radius: 14px; transition: background .5s;
}
.nav-left { display: flex; align-items: center; gap: 18px; flex: none; }
.nav-logo { display: flex; align-items: baseline; font-size: 18px; font-weight: 500; letter-spacing: -0.03em; white-space: nowrap; }
.nav-logo:hover { opacity: 1; }
.nav-logo-sub { font-weight: 300; opacity: .7; margin-left: 6px; }
.nav-label {
    font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mut);
    white-space: nowrap; padding-left: 18px; border-left: 1px solid var(--line);
}
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--mut); }
.nav-links > a:hover { color: var(--ink); opacity: 1; }
.nav-right { display: flex; align-items: center; gap: 8px; min-width: 0; }

.svc { position: relative; display: flex; align-items: center; height: 44px; }
.svc-btn {
    display: flex; align-items: center; gap: 6px; height: 44px; padding: 0; border: 0; background: transparent;
    font-size: 14px; color: var(--mut); cursor: pointer;
}
.svc.is-open .svc-btn, .svc-btn:hover { color: var(--ink); }
.svc-caret { display: inline-block; font-size: 10px; transition: transform .3s; }
.svc.is-open .svc-caret { transform: rotate(180deg); }
.svc-panel {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 14px; z-index: 70;
    visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s;
}
.svc.is-open .svc-panel { visibility: visible; opacity: 1; }
.svc-grid {
    width: min(920px, 86vw); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.1fr);
    background: var(--bg2); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(4, 30, 70, .22);
}
.svc-col { padding: 22px 20px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); }
.svc-head { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); margin-bottom: 10px; }
.svc-item { padding: 7px 0; font-size: 14px; color: var(--ink); }
.svc-item:hover { color: var(--blue); opacity: 1; }
[data-theme="dark"] .svc-item:hover { color: var(--acc); }
.svc-cta { padding: 22px 20px; background: var(--blue); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; font-size: 14px; }
.svc-cta:hover { background: var(--blue-hover); opacity: 1; color: #fff; }
.svc-cta-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-soft); }
.svc-cta-text { font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 300; }

.theme-toggle {
    display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border-radius: 10px;
    border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
}
.theme-track { position: relative; width: 34px; height: 18px; border-radius: 9px; background: var(--soft); border: 1px solid var(--line); }
.theme-knob {
    position: absolute; top: 2px; left: 18px; width: 12px; height: 12px; border-radius: 50%;
    background: var(--blue); transition: left .35s var(--ease);
}
[data-theme="dark"] .theme-knob { left: 2px; }
.theme-label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.theme-label::after { content: 'Clair'; }
[data-theme="dark"] .theme-label::after { content: 'Sombre'; }
html:lang(en) .theme-label::after { content: 'Light'; }
html:lang(en)[data-theme="dark"] .theme-label::after { content: 'Dark'; }

.lang-switch {
    display: flex; align-items: center; justify-content: center; height: 44px; min-width: 44px; padding: 0 10px;
    border-radius: 10px; border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink);
}
.lang-switch:hover { border-color: var(--mut); opacity: 1; }
.mobile-menu-lang { font-size: clamp(26px, 7vw, 32px); }

.menu-btn {
    display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
    background: transparent; color: var(--ink); font-size: 18px; cursor: pointer;
}
.menu-icon-close { display: none; }
.menu-open .menu-icon-open { display: none; }
.menu-open .menu-icon-close { display: inline; }

.mobile-menu {
    position: fixed; inset: 0; z-index: 55; background: var(--blue); color: #fff;
    padding: 110px 24px 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.mobile-menu-list { display: flex; flex-direction: column; overflow-y: auto; min-height: 0; }
.mobile-menu-item {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px; width: 100%;
    padding: 14px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff;
    font-size: clamp(34px, 9vw, 44px); font-weight: 300; letter-spacing: -0.04em; text-align: left; cursor: pointer;
}
.mobile-menu-title { display: flex; align-items: baseline; gap: 16px; }
.mobile-menu-num { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.mobile-svc-sign { font-size: 22px; }
.mobile-svc-sign::after { content: '+'; }
.mobile-svc-btn[aria-expanded="true"] .mobile-svc-sign::after { content: '−'; }
.mobile-svc { display: flex; flex-direction: column; gap: 18px; padding: 18px 0 22px; border-bottom: 1px solid rgba(255,255,255,.2); }
.mobile-svc-group { display: flex; flex-direction: column; gap: 6px; }
.mobile-svc-title { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-soft); }
.mobile-svc-items { display: flex; flex-wrap: wrap; gap: 6px; }
.mobile-svc-items a { padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.3); font-size: 14px; }
.mobile-menu-cta {
    display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-radius: 12px;
    background: #fff; color: var(--blue); font-size: 17px; font-weight: 500; flex: none;
}

@media (max-width: 1179.98px) {
    .nav-label, .nav-links, .theme-label { display: none; }
    .menu-btn { display: block; }
}
@media (max-width: 520px) {
    .lang-switch { display: none; }
    .nav { padding-left: 14px; gap: 8px; }
    .nav-cta { padding: 0 12px; font-size: 13px; }
    .theme-toggle { padding: 0 8px; }
}
/* Téléphones : le bouton « Démarrer mon projet » est déjà dans le menu mobile */
@media (max-width: 520px) {
    .nav-cta { display: none; }
}

/* ---------- Retour en haut ---------- */
.to-top {
    position: fixed; right: clamp(14px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 28px); z-index: 58;
    width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
    box-shadow: 0 14px 34px rgba(4, 40, 90, .35);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--blue-hover); color: #fff; opacity: 1; }
.to-top svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top span { position: relative; }
.to-top-track { fill: none; stroke: rgba(255,255,255,.25); stroke-width: 2; }
.to-top-ring { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 163.4; stroke-dashoffset: 163.4; }

/* ==========================================================================
   01 — Hero
   ========================================================================== */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
    background: linear-gradient(172deg, #0B6DCC 0%, #0A5DB8 45%, var(--blue-deep) 100%); color: #fff;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: clamp(104px, 13vh, 140px) var(--gutter) 28px;
}
.hero-grid { inset: -80px; background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); will-change: transform; }
.hero-glow {
    position: absolute; right: -10%; top: -20%; width: 70vw; height: 70vw; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(120,190,255,.28) 0%, rgba(120,190,255,0) 60%);
}
.hero-meta {
    position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-soft);
}
.hero-center { position: relative; padding: clamp(32px, 6vh, 64px) 0; }
.hero-title { font-weight: 300; font-size: clamp(54px, 10.6vw, 196px); line-height: .9; letter-spacing: -0.058em; }
.hero-line { display: block; }
.hero-line-indent { padding-left: clamp(0px, 14vw, 260px); }
.hero-line-right { text-align: right; }
.hero-network { position: relative; display: block; height: clamp(64px, 9vw, 120px); margin: clamp(6px, 1vw, 14px) 0; letter-spacing: normal; line-height: normal; }
.hero-network-line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255,255,255,.35); }
.hero-pulse {
    position: absolute; top: 50%; left: -140px; width: 140px; height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0), #fff); box-shadow: 0 0 12px #fff;
    animation: pulse-run 4.2s cubic-bezier(.6,0,.4,1) infinite;
}
@keyframes pulse-run { from { left: -140px; } to { left: 100%; } }
.hero-node { position: absolute; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.hero-node-label {
    position: absolute; bottom: 18px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
    white-space: nowrap; color: var(--blue-mist); transition: color .5s;
}
.hero-node-dot {
    width: 9px; height: 9px; border-radius: 50%; background: #0A5DB8; border: 1px solid #fff;
    transition: all .5s var(--ease);
}
.hero-node.is-active .hero-node-label { color: #fff; }
.hero-node.is-active .hero-node-dot { width: 16px; height: 16px; background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.15), 0 0 24px #fff; }
.hero-bottom { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.hero-lead { flex: 0 1 420px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.55; color: #EAF2FC; font-weight: 300; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-live { flex: 0 1 360px; display: flex; flex-direction: column; gap: 8px; font-size: 11.5px; }
.hero-live-title { letter-spacing: .1em; text-transform: uppercase; color: var(--blue-mist); }
.hero-live-event { display: flex; gap: 10px; color: #fff; }
.hero-live-time { color: var(--blue-mist); }

@media (max-width: 700px) {
    .hero-meta span:nth-child(2) { display: none; }
    .hero-node-label { font-size: 8.5px; letter-spacing: .06em; }
    .hero-node:nth-child(even) .hero-node-label { bottom: auto; top: 18px; }
}

/* ==========================================================================
   02 — Récit au défilement
   ========================================================================== */
.story { position: relative; height: 520vh; background: var(--blue-deep); color: #fff; }
.story-sticky {
    position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(86px, 11vh, 110px) var(--gutter) clamp(24px, 4vh, 40px);
}
.story-sticky .grid-lines { background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); }
.story-body {
    position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: space-between;
    gap: clamp(16px, 3vw, 48px);
}
.story-text { flex: 1 1 0; min-width: min(100%, 280px); display: flex; flex-direction: column; }
.story-verb {
    display: flex; align-items: baseline; gap: 18px; font-size: min(10.5vh, 7vw); line-height: .94; font-weight: 600;
    letter-spacing: -0.055em; color: rgba(255,255,255,.16); transform: translateX(-8px);
    transition: color .6s, transform .6s var(--ease);
}
.story-verb.is-active { color: #fff; transform: none; }
.story-verb-num { font-size: 12px; font-weight: 400; letter-spacing: .08em; width: 28px; color: rgba(255,255,255,.3); flex: none; }
.story-verb.is-active .story-verb-num { color: #fff; }
.story-copy { max-width: 440px; margin-top: clamp(16px, 3vh, 32px); display: flex; flex-direction: column; gap: 10px; }
.story-count { font-size: 11px; letter-spacing: .1em; color: var(--blue-mist); }
.story-chapters { display: grid; }
.story-chapter {
    grid-area: 1 / 1; display: flex; flex-direction: column; gap: 10px;
    opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s var(--ease); pointer-events: none;
}
.story-chapter.is-active { opacity: 1; transform: none; pointer-events: auto; }
.story-chapter p { font-size: clamp(17px, 1.6vw, 24px); line-height: 1.35; letter-spacing: -0.015em; font-weight: 300; text-wrap: pretty; }
.story-chapter span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-mist); }
.story-phone { flex: 0 0 auto; height: min(640px, 66vh); margin: 0 auto; }
.story-progress { position: relative; height: 28px; flex: none; }
.story-progress-line, .story-progress-fill { position: absolute; left: 0; top: 50%; height: 1px; }
.story-progress-line { right: 0; background: rgba(255,255,255,.22); }
.story-progress-fill { width: 0; background: #fff; box-shadow: 0 0 10px #fff; }
.story-progress-node {
    position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
    border: 1px solid #fff; background: var(--blue-deep); transition: background .4s;
}
.story-progress-node.is-on { background: #fff; }

@media (max-width: 899.98px) {
    .story { height: 420svh; }
    .story-body { flex-wrap: wrap; align-content: center; }
    .story-verbs { display: grid; }
    .story-verb { grid-area: 1 / 1; font-size: 15vw; line-height: .9; letter-spacing: -0.06em; opacity: 0; transform: none; }
    .story-verb.is-active { opacity: 1; }
    .story-verb-num { display: none; }
    .story-copy { margin-top: 10px; }
    .story-phone { height: 46svh; }
}

/* ---------- Téléphones (maquettes d'écrans) ---------- */
.phone {
    position: relative; aspect-ratio: 9 / 19.5; border-radius: 15% / 7%; background: #030C18;
    border: 1px solid rgba(255,255,255,.2); padding: 9px;
    box-shadow: 0 50px 100px rgba(2,14,34,.55), inset 0 0 0 6px #0A1424;
}
.phone-inner { position: relative; width: 100%; height: 100%; border-radius: 13% / 6%; overflow: hidden; background: #F4F7FB; color: #0A1628; container-type: inline-size; }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 32%; height: 22px; border-radius: 12px; background: #030C18; z-index: 5; }
.phone-screen {
    position: absolute; inset: 0; padding: 48px 16px 16px; display: flex; flex-direction: column; gap: 10px;
    background: #F4F7FB; opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s var(--ease);
}
.phone-screen.is-past { transform: translateY(-24px); }
.phone-screen.is-active { opacity: 1; transform: none; }
.phone-screen-grey { background: #EEF2F7; }
.phone-screen-blue { background: var(--blue); color: #fff; }
.phone-screen-blue .ph-k { color: var(--blue-soft); }
.phone-screen-cam { background: #050B14; color: #fff; padding: 0; }

.ph-k { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: #506079; }
.ph-h { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
.ph-h-sm { font-size: 20px; line-height: 1.1; }
.ph-h-xs { font-size: 17px; }
.ph-muted { font-size: 11px; color: #506079; }
.ph-blue { color: var(--blue); }
.ph-amber { color: #B26A00; }
.ph-pills { display: flex; gap: 6px; }
.ph-pills span { padding: 5px 9px; border-radius: 6px; background: #E3EAF3; font-size: 10px; }
.ph-pills .is-on { background: var(--blue); color: #fff; }
.ph-list { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.ph-row { padding: 10px; border-radius: 8px; background: #fff; display: flex; justify-content: space-between; gap: 8px; font-size: 11px; }
.ph-row-dashed { border: 1px dashed #9FB6D3; color: #506079; }
.ph-row-blue { background: var(--blue); color: #fff; }
.ph-cta { margin-top: auto; padding: 12px; border-radius: 10px; background: #0A1628; color: #fff; font-size: 12px; text-align: center; }
.ph-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ph-tile { padding: 12px; border-radius: 10px; background: #fff; font-size: 11px; display: flex; flex-direction: column; gap: 14px; }
.ph-tile-blue { background: var(--blue); color: #fff; }
.ph-tile-val { font-size: 18px; }
.ph-tile-val-sm { font-size: 13px; }
.ph-cam-hatch { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 1px, transparent 1px 8px); }
.ph-cam-top { position: absolute; left: 14px; top: 46px; right: 14px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9px; }
.ph-cam-top span { display: flex; align-items: center; gap: 6px; }
.ph-cam-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--mono); font-size: 9px; color: #6E7F99; text-align: center; white-space: nowrap; }
.ph-notif {
    position: absolute; left: 10px; right: 10px; bottom: 14px; padding: 12px; border-radius: 14px;
    background: rgba(244,247,251,.96); color: #0A1628; display: flex; flex-direction: column; gap: 4px;
}
.ph-notif .ph-k { font-size: 8.5px; letter-spacing: 0; }
.ph-notif strong { font-size: 12px; font-weight: 500; }
.ph-checks { display: flex; flex-direction: column; margin-top: 6px; }
.ph-check { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #E1E7EF; font-size: 11px; color: #506079; }
.ph-check:last-child { border-bottom: 0; }
.ph-check span { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #9FB6D3; font-size: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.ph-check.is-done { color: #0A1628; }
.ph-check.is-done span { background: var(--blue); border-color: var(--blue); color: #fff; }
.ph-foot { margin-top: auto; letter-spacing: 0; }
.ph-timeline { display: flex; flex-direction: column; margin-top: 6px; border-left: 1px solid rgba(255,255,255,.4); padding-left: 14px; gap: 16px; font-size: 11px; }
.ph-timeline div { display: flex; flex-direction: column; gap: 3px; }
.ph-timeline .ph-k { letter-spacing: 0; }
/* Petits téléphones (récit sur mobile) : on resserre l'écran pour que tout tienne */
@container (max-width: 210px) {
    .phone-screen { padding: 40px 10px 10px; gap: 7px; }
    .ph-h { font-size: 17px; }
    .ph-h-sm { font-size: 15px; }
    .ph-row { padding: 7px 8px; font-size: 9.5px; }
    .ph-tiles { gap: 5px; }
    .ph-tile { padding: 8px; gap: 8px; font-size: 9.5px; }
    .ph-tile-val { font-size: 14px; }
    .ph-tile-val-sm { font-size: 10.5px; }
    .ph-check { padding: 7px 0; font-size: 9.5px; gap: 8px; }
    .ph-timeline { gap: 10px; font-size: 9.5px; }
    .ph-cta { padding: 9px; font-size: 10.5px; }
}
.ph-map {
    height: 32%; border-radius: 10px; background: repeating-linear-gradient(135deg, #DCE5F0 0 1px, #EAF0F7 1px 7px);
    display: flex; align-items: flex-end; padding: 6px; font-family: var(--mono); font-size: 7.5px; color: #506079;
}

/* ==========================================================================
   03 / 10 — Respirations
   ========================================================================== */
.breath {
    min-height: 80vh; display: flex; align-items: center; justify-content: center;
    padding: clamp(100px, 14vw, 200px) var(--gutter); background: var(--bg); transition: background .5s;
}
.breath p { max-width: 980px; text-align: center; font-size: clamp(34px, 4.8vw, 76px); line-height: 1.08; letter-spacing: -0.045em; font-weight: 300; text-wrap: balance; }
.breath-2 { padding: clamp(120px, 16vw, 240px) var(--gutter); background: var(--bg); border-top: 1px solid var(--line); transition: background .5s; }
.breath-2 .wrap { display: flex; flex-direction: column; gap: 10px; }
.breath-2 p { font-size: clamp(34px, 5vw, 84px); line-height: 1; letter-spacing: -0.05em; font-weight: 300; }
.breath-2 .breath-2-accent { padding-left: clamp(0px, 20vw, 380px); font-weight: 600; color: var(--blue); }
[data-theme="dark"] .breath-2 .breath-2-accent { color: var(--acc); }

/* ==========================================================================
   04 — Bâtir (logiciel)
   ========================================================================== */
.build { padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(100px, 12vw, 180px); background: var(--bg); transition: background .5s; }
.build-inner { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 72px); }
.build-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 48px; }
.build-head-title { flex: 1 1 640px; min-width: 0; }
.build-head-title .eyebrow, .ba-head .eyebrow { margin-bottom: 22px; }
.build-head-side { flex: 0 1 380px; display: flex; flex-direction: column; gap: 20px; }
.segmented { display: flex; gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); width: max-content; max-width: 100%; flex-wrap: wrap; }
.segmented button {
    height: 44px; padding: 0 16px; border-radius: 9px; border: 0; cursor: pointer; font-size: 14px;
    background: transparent; color: var(--mut); transition: all .3s;
}
.segmented button[aria-pressed="true"] { background: var(--blue); color: #fff; }

.build-stage { position: relative; width: 100%; min-height: clamp(440px, 52vw, 720px); }
.browser {
    position: absolute; left: 0; top: 0; width: min(100%, 1060px); height: 88%; border-radius: 14px;
    border: 1px solid var(--line); background: var(--bg2); overflow: hidden; display: flex; flex-direction: column;
    transform-origin: top left; transition: all .6s var(--ease); box-shadow: 0 40px 90px rgba(3,20,48,.35);
}
.browser-bar { height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); flex: none; }
.browser-bar > span:not(.browser-url) { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.browser-url { margin-left: 14px; font-size: 10.5px; color: var(--mut); }
.browser-body { flex: 1; display: flex; min-height: 0; }
.browser-side { width: 190px; border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--mut); flex: none; }
.browser-side span { padding: 9px 10px; border-radius: 7px; }
.browser-side .is-on { background: var(--blue); color: #fff; }
.browser-main { flex: 1; min-width: 0; padding: clamp(16px, 2vw, 28px); display: flex; flex-direction: column; gap: 20px; }
.browser-main-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.browser-main-head .mono { font-size: 10.5px; }
.browser-main-title { font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.03em; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: clamp(90px, 12vw, 170px); padding-bottom: 1px; border-bottom: 1px solid var(--line); flex: none; }
.bars span { flex: 1; background: var(--soft); border-radius: 3px 3px 0 0; }
.bars .is-on { background: var(--blue); }
.dash-rows { display: flex; flex-direction: column; font-size: 13px; }
.dash-row { display: grid; grid-template-columns: minmax(70px, 90px) minmax(0, 1fr) auto; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: center; }
.dash-row .mono { font-size: 11px; }
.dash-what { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { padding: 4px 9px; border-radius: 6px; font-size: 11px; }
.status-active { background: rgba(10,102,194,.16); color: var(--acc); }
.status-neutral { background: var(--soft); color: var(--mut); }
.status-warning { background: rgba(214,140,20,.16); color: var(--warn); }

.build-phone {
    position: absolute; right: clamp(0px, 4vw, 60px); bottom: 0; width: clamp(170px, 19vw, 270px); padding: 8px;
    border-color: rgba(255,255,255,.18); box-shadow: 0 40px 90px rgba(2,14,34,.5); z-index: 2;
    opacity: .55; transition: all .6s var(--ease);
}
.build-phone-inner { padding: 40px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.build-phone-inner .ph-k { font-size: 8.5px; letter-spacing: 0; }
.build-phone-inner .ph-row { padding: 8px; font-size: 10px; }
.build-toast {
    position: absolute; right: clamp(140px, 26vw, 380px); top: clamp(40px, 7vw, 90px); padding: 14px 16px; border-radius: 12px;
    background: var(--blue); color: #fff; display: flex; flex-direction: column; gap: 3px; max-width: 260px;
    box-shadow: 0 20px 50px rgba(3,30,70,.35); z-index: 3; opacity: 0; transform: translateY(14px); transition: all .6s var(--ease);
}
.build-toast .mono { font-size: 9.5px; letter-spacing: .08em; color: var(--blue-soft); }
.build-toast span:last-child { font-size: 14px; }

[data-sw="web"] .browser { opacity: 1; transform: none; }
[data-sw="mobile"] .browser { opacity: .35; transform: scale(.97); }
[data-sw="soft"] .browser { opacity: 1; transform: scale(.97); }
[data-sw="mobile"] .build-phone { opacity: 1; transform: translateY(-24px); }
[data-sw="soft"] .build-phone { opacity: 1; }
[data-sw="soft"] .build-toast { opacity: 1; transform: none; }

.build-foot { display: grid; border-top: 1px solid var(--line); padding-top: 28px; }
.build-caption {
    grid-area: 1 / 1; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: baseline; justify-content: space-between;
    visibility: hidden; opacity: 0; transition: opacity .4s;
}
.build-caption.is-active { visibility: visible; opacity: 1; }
.build-caption p { flex: 1 1 520px; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.2; letter-spacing: -0.03em; font-weight: 300; }
.build-caption .mono { flex: 0 1 420px; font-size: 11.5px; line-height: 1.9; }

@media (max-width: 899.98px) {
    .browser-side { display: none; }
}

/* ==========================================================================
   05 — Maison intelligente
   ========================================================================== */
.home { background: var(--soft); padding: clamp(100px, 12vw, 170px) 0 clamp(80px, 10vw, 140px); transition: background .5s; }
.home-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: clamp(40px, 5vw, 64px); }
.home-head .h-xxl { flex: 1 1 700px; font-size: clamp(46px, 7.4vw, 132px); }
.indent-md { padding-left: clamp(0px, 8vw, 140px); }
.home-hint { flex: 0 1 320px; }
.home-stage {
    position: relative; width: 100%; aspect-ratio: 21 / 9; min-height: 420px; max-height: 88vh; overflow: hidden;
    background: repeating-linear-gradient(135deg, rgba(10,102,194,.09) 0 1px, transparent 1px 14px), linear-gradient(180deg, var(--bg2), var(--soft));
}
.spot {
    position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px;
    padding: 0; border: 0; background: transparent; cursor: pointer; color: var(--ink); min-height: 44px;
}
.spot-dot {
    position: relative; width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.35);
    border: 2px solid #fff; transition: all .4s; flex: none;
}
.spot-pill {
    padding: 6px 10px; border-radius: 7px; background: var(--bg2); color: var(--ink);
    font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: all .4s;
}
.spot.is-active .spot-dot { background: var(--blue); box-shadow: 0 0 0 8px rgba(10,102,194,.25), 0 0 30px #3D8BFF; }
.spot.is-active .spot-pill { background: var(--blue); color: #fff; }
.home-detail { display: grid; padding-top: clamp(28px, 3vw, 44px); }
.home-detail-item {
    grid-area: 1 / 1; display: flex; flex-wrap: wrap; gap: 24px 64px;
    visibility: hidden; opacity: 0; transition: opacity .4s;
}
.home-detail-item.is-active { visibility: visible; opacity: 1; }
.home-detail-name { flex: 1 1 380px; display: flex; flex-direction: column; gap: 10px; }
.home-detail-title { font-size: clamp(40px, 5vw, 80px); font-weight: 300; letter-spacing: -0.055em; line-height: .95; }
.home-detail-item p { flex: 1 1 380px; align-self: flex-end; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.4; letter-spacing: -0.015em; font-weight: 300; text-wrap: pretty; }

@media (max-width: 700px) {
    .home-stage { aspect-ratio: auto; min-height: 460px; }
    .spot { left: var(--mx); top: var(--my); }
    .spot-pill { font-size: 9px; padding: 5px 7px; }
}

/* ==========================================================================
   06 — Sécurité
   ========================================================================== */
.security { position: relative; background: var(--night); color: #fff; overflow: hidden; }
.security-hero {
    position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between;
    padding: clamp(100px, 12vh, 130px) var(--gutter) clamp(40px, 6vh, 64px); gap: 32px;
}
.security-bg {
    position: absolute; inset: 0;
    background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 1px, transparent 1px 12px), radial-gradient(ellipse at 30% 40%, rgba(10,102,194,.22), rgba(3,10,20,0) 60%);
}
.security-frame { position: absolute; left: var(--gutter); right: var(--gutter); top: clamp(88px, 11vh, 116px); bottom: clamp(24px, 4vh, 40px); pointer-events: none; }
.security-frame span { position: absolute; width: 28px; height: 28px; border: 0 solid rgba(255,255,255,.5); }
.security-frame span:nth-child(1) { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.security-frame span:nth-child(2) { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.security-frame span:nth-child(3) { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.security-frame span:nth-child(4) { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.security-top { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 22px 0; font-size: 11px; letter-spacing: .1em; color: #C9D6E8; }
[data-clock-long] { white-space: pre; }
.security-rec { display: flex; align-items: center; gap: 10px; }
.security-body { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 0 22px 22px; }
.security-copy { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.security-copy p { max-width: 460px; font-size: 17px; line-height: 1.6; color: #C9D6E8; font-weight: 300; }
.security-verbs { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.security-verbs i { font-style: normal; color: #5EA6FF; }
.security-phone { flex: 0 0 auto; width: clamp(240px, 22vw, 300px); margin: 0 auto; background: #0A1424; box-shadow: 0 50px 100px rgba(0,0,0,.6); }
.security-phone-inner { background: #07101E; color: #fff; }
.security-notif { position: absolute; inset: 0; }
.security-lock { position: absolute; top: 44px; left: 0; right: 0; text-align: center; font-size: 46px; font-weight: 200; letter-spacing: -0.04em; }
.security-card { top: 130px; bottom: auto; padding: 14px; border-radius: 16px; gap: 5px; }
.security-card .ph-k { font-size: 9px; }
.security-card strong { font-size: 14px; }
.security-card .ph-muted { font-size: 12px; }
.security-card button { margin-top: 8px; height: 40px; border-radius: 10px; border: 0; background: var(--blue); color: #fff; font-size: 13px; cursor: pointer; }
.security-card button:hover { background: var(--blue-hover); }
.security-feed { position: absolute; inset: 0; padding: 40px 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.feed-main { position: relative; flex: 1.3; border-radius: 10px; background: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 1px, #0B1628 1px 8px); overflow: hidden; }
.feed-cam { position: absolute; left: 8px; top: 8px; display: flex; align-items: center; gap: 5px; font-size: 8.5px; }
.feed-cam .rec-dot { width: 5px; height: 5px; }
.feed-time { position: absolute; right: 8px; bottom: 8px; font-size: 8.5px; color: #C9D6E8; }
.feed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; flex: 1; }
.feed-thumb {
    position: relative; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); color: #fff; cursor: pointer; padding: 0;
    background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 1px, #0B1628 1px 7px);
}
.feed-thumb.is-active { border-color: var(--blue); }
.feed-thumb span { position: absolute; left: 6px; bottom: 5px; font-size: 7.5px; }
.feed-close { height: 34px; border-radius: 9px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff; font-size: 11px; cursor: pointer; }
.security-offer { padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(80px, 9vw, 130px); border-top: 1px solid rgba(255,255,255,.08); }
.security-offer-grid { display: flex; flex-wrap: wrap; gap: 32px 64px; font-size: 16px; color: #C9D6E8; font-weight: 300; line-height: 1.5; }
.security-offer-grid > div { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }
.security-offer-grid .mono { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #5EA6FF; }

/* ==========================================================================
   07 — Avant / après
   ========================================================================== */
.ba-section { padding: clamp(100px, 12vw, 170px) var(--gutter); background: var(--bg2); transition: background .5s; }
.ba-inner { display: flex; flex-direction: column; gap: clamp(36px, 4vw, 56px); }
.ba-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; }
.ba-head > div { flex: 1 1 640px; }
.ba-head > p { flex: 0 1 380px; }
.ba {
    position: relative; width: 100%; height: clamp(520px, 44vw, 640px); border-radius: 14px; overflow: hidden;
    touch-action: pan-y; user-select: none; cursor: ew-resize; border: 1px solid var(--line);
}
.ba-before { position: absolute; inset: 0; background: var(--soft); }
.ba-tag { position: absolute; left: 20px; top: 18px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.ba-tag-right { left: auto; right: 20px; color: var(--blue-soft); }
.ba-mess {
    position: absolute; left: var(--x); top: var(--y); transform: rotate(var(--r));
    padding: 12px 16px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--line);
    font-size: clamp(11px, 1vw, 13px); color: var(--ink); white-space: nowrap; box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.ba-after {
    position: absolute; inset: 0; background: var(--blue); color: #fff; clip-path: inset(0 0 0 var(--split));
    padding: clamp(56px, 6vw, 72px) clamp(16px, 3vw, 40px) clamp(16px, 3vw, 40px);
}
.ba-grid {
    height: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
    background: rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.25);
}
.ba-cell { background: var(--blue); padding: clamp(14px, 1.6vw, 24px); display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.ba-cell .mono { font-size: 10.5px; color: var(--blue-soft); }
.ba-cell-title { font-size: clamp(17px, 1.6vw, 24px); letter-spacing: -0.02em; }
.ba-cell-desc { margin-top: 4px; font-size: 13px; color: var(--blue-soft); }
.ba-handle {
    position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px; background: #fff;
    box-shadow: 0 0 20px rgba(255,255,255,.8); pointer-events: none;
}
.ba-handle span {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%;
    background: #fff; color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
@media (max-width: 520px) {
    .ba-grid { grid-template-columns: minmax(0, 1fr); }
    .ba-cell { justify-content: center; }
    .ba-cell .mono { display: none; }
}
.ba-range { position: absolute; inset: auto 0 0 0; width: 100%; height: 1px; opacity: 0; pointer-events: none; }
.ba:has(.ba-range:focus-visible) .ba-handle span { outline: 2px solid var(--acc); outline-offset: 3px; }

@media (max-width: 899.98px) {
    .ba-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ba-mess-extra { display: none; }
    .ba-mess { left: min(var(--x), 40%); }
}

/* ==========================================================================
   08 — Deux univers
   ========================================================================== */
.duo { display: flex; flex-wrap: wrap; min-height: 86vh; }
.duo-half {
    flex: 1 1 0; min-width: min(100%, 420px); padding: clamp(56px, 7vw, 100px) var(--gutter);
    display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
    transition: flex .8s var(--ease), background .5s;
}
.duo[data-hover="part"] .duo-part, .duo[data-hover="pme"] .duo-pme { flex-grow: 1.5; }
.duo-part { background: var(--soft); color: var(--ink); }
.duo-pme { background: var(--blue); color: #fff; }
.duo-pme .eyebrow { color: var(--blue-soft); }
.duo-body { display: flex; flex-direction: column; gap: 28px; }
.duo h3 { font-weight: 300; font-size: clamp(40px, 5vw, 84px); line-height: .92; letter-spacing: -0.055em; }
.duo ul { display: flex; flex-direction: column; font-size: 17px; font-weight: 300; }
.duo li { padding: 12px 0; border-top: 1px solid var(--line); }
.duo-pme li { border-top-color: rgba(255,255,255,.28); }
.duo-link { font-size: 16px; color: var(--acc); }
.duo-pme .duo-link { color: #fff; }

@media (max-width: 899.98px) {
    .duo-half { flex: 1 1 100% !important; }
}

/* ==========================================================================
   09 — Processus (défilement horizontal)
   ========================================================================== */
.process { position: relative; height: 320vh; background: var(--bg); transition: background .5s; }
.process-sticky {
    position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
    gap: clamp(32px, 5vh, 64px); padding: clamp(90px, 11vh, 120px) 0 clamp(40px, 6vh, 64px);
}
.process-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.process-hint-mobile { display: none; }
.process-track {
    position: relative; display: flex; width: max-content; padding: 0 var(--gutter); will-change: transform;
}
.process-track::before {
    content: ''; position: absolute; left: var(--gutter); right: var(--gutter); top: clamp(92px, 9vw, 140px);
    height: 1px; background: var(--line);
}
.process-step { position: relative; width: min(420px, 78vw); padding-right: clamp(24px, 3vw, 48px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 18px; }
.process-num { font-size: clamp(84px, 9vw, 150px); font-weight: 200; letter-spacing: -0.07em; line-height: .8; color: var(--blue); }
[data-theme="dark"] .process-num { color: var(--acc); }
.process-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--blue); margin-top: 4px; }
.process-title { font-size: clamp(24px, 2.2vw, 34px); letter-spacing: -0.035em; }
.process-desc { font-size: 16px; line-height: 1.55; color: var(--mut); max-width: 340px; }

@media (max-width: 899.98px) {
    .process { height: auto; }
    .process-sticky { position: relative; height: auto; }
    .process-track-wrap { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .process-track-wrap::-webkit-scrollbar { display: none; }
    .process-track { transform: none !important; }
    .process-hint-desktop { display: none; }
    .process-hint-mobile { display: inline; }
}

/* ==========================================================================
   11 — Réalisations
   ========================================================================== */
.work { padding: clamp(40px, 5vw, 72px) 0 clamp(100px, 12vw, 170px); background: var(--bg); transition: background .5s; }
.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(48px, 6vw, 96px); }
.work-head p { max-width: 340px; font-size: 14px; line-height: 1.6; color: var(--mut); }
.case { margin-bottom: clamp(90px, 11vw, 160px); }
.case-last { margin-bottom: 0; }
.case-stack { font-size: 12px; color: var(--mut); }
.fact-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); margin-bottom: 10px; }

.case-1-meta { max-width: 1552px; margin: 0 auto 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.case-1-visual { position: relative; width: 100%; aspect-ratio: 21 / 9; min-height: 360px; overflow: hidden; }
.case-1-visual h3 { position: absolute; left: var(--gutter); top: clamp(20px, 4vw, 56px); max-width: 900px; padding-right: var(--gutter); }
.case-1-facts { display: flex; flex-wrap: wrap; gap: 24px 48px; padding-top: 28px; font-size: 16px; line-height: 1.55; }
.case-1-facts > div { flex: 1 1 260px; }
.case-1-facts > .case-stack { flex: 0 1 200px; }

.case-2 { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 80px); align-items: flex-start; }
.case-2-text { flex: 1 1 380px; position: sticky; top: 120px; display: flex; flex-direction: column; gap: 24px; }
.case-table { display: grid; grid-template-columns: minmax(90px, 120px) minmax(0, 1fr); font-size: 15px; line-height: 1.55; }
.case-table dt, .case-table dd { padding: 12px 0; border-top: 1px solid var(--line); }
.case-table dt { font-size: 11px; text-transform: uppercase; color: var(--mut); }
.case-2-visuals { flex: 1.3 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.case-2-a { width: 100%; aspect-ratio: 4 / 5; }
.case-2-b { width: 62%; margin-left: auto; aspect-ratio: 1 / 1; background: var(--blue); }

.case-3 { position: relative; }
.case-3-visual {
    position: relative; width: min(100%, 900px); margin-left: auto; aspect-ratio: 16 / 11; color: #C9D6E8;
    background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 1px, transparent 1px 12px), var(--night);
}
.case-3-cam { position: absolute; left: 16px; top: 14px; display: flex; align-items: center; gap: 8px; font-size: 10.5px; }
.case-3-card {
    position: relative; margin-top: clamp(-160px, -10vw, -40px); max-width: 620px; padding: clamp(24px, 3vw, 40px);
    background: var(--bg); display: flex; flex-direction: column; gap: 18px; transition: background .5s;
}
.case-3-card p, .case-4-text p { font-size: 16px; line-height: 1.6; color: var(--mut); }

.case-4 { display: flex; flex-wrap: wrap; gap: clamp(24px, 3vw, 40px); align-items: flex-end; }
.case-4-text { flex: 0 1 420px; display: flex; flex-direction: column; gap: 18px; }
.case-4-visual { flex: 1 1 520px; min-width: 0; aspect-ratio: 3 / 2; }

@media (max-width: 899.98px) {
    .case-2-text { position: static; }
}

/* ==========================================================================
   12 — Votre projet (formulaire)
   ========================================================================== */
.project { position: relative; padding: clamp(100px, 12vw, 170px) var(--gutter); background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%); color: #fff; overflow: hidden; }
.project-inner { position: relative; display: flex; flex-wrap: wrap; gap: clamp(48px, 6vw, 96px); }
.project-copy { flex: 1 1 520px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.project-copy-top { display: flex; flex-direction: column; gap: 24px; }
.project-copy .h-xxl { text-wrap: balance; }
.project-kicker { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-soft); }
.project-mail { display: flex; flex-direction: column; gap: 8px; }
.project-mail a { font-size: clamp(22px, 2vw, 30px); font-weight: 300; color: #fff; overflow-wrap: anywhere; }

.card {
    flex: 1 1 460px; min-width: 0; background: var(--card); color: var(--ink); padding: clamp(24px, 3.2vw, 44px); border-radius: 16px;
    display: flex; flex-direction: column; gap: 30px; box-shadow: 0 40px 100px rgba(2,20,50,.4); transition: background .5s, color .5s;
}
.wizard { display: flex; flex-direction: column; gap: 30px; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.step-dots { display: flex; gap: 6px; }
.step-dots span { width: 26px; height: 3px; border-radius: 2px; background: var(--chip); transition: background .3s; }
.step-dots .is-on { background: var(--blue); }
.wizard-step { display: flex; flex-direction: column; gap: 22px; }
.wizard-step[data-step="1"] { gap: 26px; }
.wizard-step[data-step="1"] fieldset { display: flex; flex-direction: column; gap: 14px; }
.wizard-step[data-step="2"] { gap: 18px; }
.js .wizard-step:not(.is-active) { display: none; }
.wizard-q { font-size: clamp(28px, 2.8vw, 40px); font-weight: 300; letter-spacing: -0.035em; line-height: 1.1; }
.wizard-q-sm { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; }
legend.wizard-q { margin-bottom: 22px; }
.wizard-step[data-step="1"] legend.wizard-q { margin-bottom: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
    display: inline-flex; align-items: center; height: 46px; padding: 0 18px; border-radius: 10px;
    border: 1px solid var(--chip); background: transparent; color: var(--ink); font-size: 15px; cursor: pointer; transition: all .2s;
}
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.chip:hover span { border-color: var(--mut); }
.chip input:checked:hover + span { border-color: var(--blue); }

.field { display: flex; flex-direction: column; gap: 4px; }
.field input, .field textarea {
    width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--chip); border-radius: 0;
    padding: 14px 0; color: var(--ink); font-size: 17px; outline: none; transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--blue); }
.field input::placeholder, .field textarea::placeholder { color: var(--mut); opacity: 1; }
.field input.input-validation-error, .field textarea.input-validation-error { border-bottom-color: #D14343; }
.field-error { font-size: 13px; color: #D14343; }
[data-theme="dark"] .field-error { color: #FF8A80; }
.field-error:empty { display: none; }
.wizard-alert { padding: 14px 16px; border-radius: 10px; background: rgba(209,67,67,.1); color: #B42318; font-size: 14px; }
[data-theme="dark"] .wizard-alert { color: #FF8A80; }
.wizard-alert.validation-summary-valid { display: none; }
.wizard-alert ul { margin: 0; }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; }
.wizard-back { height: 44px; background: transparent; border: 0; color: var(--mut); font-size: 15px; cursor: pointer; }
.wizard-back:hover { color: var(--ink); }
.wizard-next {
    display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 22px; border-radius: 12px; border: 0;
    background: var(--blue); color: #fff; font-size: 15px; font-weight: 500; cursor: pointer; transition: background .2s;
}
.wizard-next:hover { background: var(--blue-hover); }
.wizard-next[aria-disabled="true"] { background: var(--chip); cursor: not-allowed; }
.wizard-next.is-loading { opacity: .7; cursor: progress; }
html:not(.js) [data-wizard-next], html:not(.js) [data-wizard-back], html:not(.js) [data-step-label], html:not(.js) .step-dots { display: none; }

.wizard-done { display: flex; flex-direction: column; gap: 18px; }
.wizard-done-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 20px #3D8BFF; }
.wizard-done p { font-size: 16px; line-height: 1.6; }
.wizard-summary { font-size: 12px; line-height: 1.8; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.footer { background: var(--footer); color: #fff; padding: clamp(64px, 8vw, 110px) var(--gutter) 28px; overflow: hidden; }
.footer-inner { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 88px); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-tagline { flex: 2 1 320px; max-width: 420px; font-size: clamp(22px, 2vw, 30px); line-height: 1.2; letter-spacing: -0.03em; font-weight: 300; }
.footer-col { flex: 1 1 160px; display: flex; flex-direction: column; gap: 11px; font-size: 15px; color: var(--blue-soft); }
.footer-col-wide { flex-basis: 200px; }
.footer-head { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #9DBDE4; }
.footer-mark { position: relative; display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.footer-word { display: flex; align-items: center; font-size: clamp(72px, 17vw, 300px); font-weight: 600; letter-spacing: -0.075em; line-height: .8; }.footer-line { flex: 1; height: 1px; background: rgba(255,255,255,.4); position: relative; }
.footer-line span { position: absolute; right: 0; top: -5px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 0 16px #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); font-family: var(--mono); font-size: 11.5px; color: #9DBDE4; }
.footer-legal { display: flex; gap: 20px; }

/* ==========================================================================
   Pages secondaires (confidentialité, erreur)
   ========================================================================== */
.page { min-height: 70vh; padding: clamp(130px, 16vh, 180px) var(--gutter) clamp(80px, 10vw, 140px); }
.page .wrap { max-width: 860px; display: flex; flex-direction: column; gap: 20px; }
.page h1 { font-weight: 300; font-size: clamp(40px, 5.6vw, 80px); line-height: .95; letter-spacing: -0.05em; }
.page p { font-size: 17px; line-height: 1.6; color: var(--mut); }
.page code { font-family: var(--mono); }

/* ==========================================================================
   Photographies (Unsplash, voir wwwroot/images/photos/CREDITS.md)
   ========================================================================== */
.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-stage { background: var(--night); }
.home-stage .photo { object-position: 50% 40%; }
.home-stage-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,10,20,.35) 0%, rgba(3,10,20,.05) 45%, rgba(3,10,20,.35) 100%); pointer-events: none; }
.home-stage .spot { z-index: 1; color: #fff; }
.security-photo { opacity: .38; object-position: 70% 50%; filter: saturate(.7); }
.security-bg { background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 1px, transparent 1px 12px), radial-gradient(ellipse at 30% 40%, rgba(10,102,194,.28), rgba(3,10,20,.55) 60%), linear-gradient(90deg, rgba(3,10,20,.85) 0%, rgba(3,10,20,.45) 60%, rgba(3,10,20,.2) 100%); }
.case-1-visual { background: var(--night); }
.case-1-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(3,10,20,.72) 0%, rgba(3,10,20,.35) 45%, rgba(3,10,20,0) 75%); }
.case-1-visual h3 { color: #fff; z-index: 1; }
.case-2-a, .case-4-visual { position: relative; overflow: hidden; background: var(--soft); }
.case-3-visual { overflow: hidden; }
.cctv { filter: grayscale(1) contrast(1.15) brightness(.8); }
.cctv-lines { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55)); }
.case-3-cam { z-index: 1; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* ==========================================================================
   Apparitions au défilement (activées par orah.js)
   ========================================================================== */
.motion [data-reveal].reveal-wait { opacity: 0; transform: translateY(32px); }
.motion [data-reveal] { transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.motion [data-mask].reveal-wait { clip-path: inset(12% 6% 12% 6%); }
.motion [data-mask] { transition: clip-path 1.4s var(--ease); }
.motion [data-hero-line] { animation: hero-in 1.2s var(--ease) backwards; }
.motion .hero-line { animation-delay: .12s; }
.motion .hero-line-indent { animation-delay: .26s; }
.motion .hero-line-right { animation-delay: .4s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(40px); } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .hero-pulse { display: none; }
}
