/* ==========================================================================
   NEOSEN — Feuille de style principale (mobile-first, sans framework)
   Les couleurs --primary, --accent et --dark sont injectées depuis l'admin.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
    --primary: #3B4BFF;
    --accent: #14C8B4;
    --dark: #0A0F1F;

    --ink: var(--dark);
    --text: #444b5f;
    --muted: #6b7285;
    --line: #e8eaf1;
    --line-strong: #d9dce6;
    --soft: #f6f7fb;
    --white: #fff;
    --dark-2: color-mix(in srgb, var(--dark) 88%, #fff);
    --primary-soft: color-mix(in srgb, var(--primary) 9%, #fff);
    --accent-soft: color-mix(in srgb, var(--accent) 12%, #fff);
    --grad: linear-gradient(115deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 45%, var(--accent)) 55%, var(--accent) 100%);

    --font-head: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 1px 2px rgba(10, 15, 31, .05), 0 1px 1px rgba(10, 15, 31, .03);
    --shadow: 0 10px 30px -12px rgba(10, 15, 31, .14), 0 2px 6px -2px rgba(10, 15, 31, .05);
    --shadow-lg: 0 30px 60px -20px rgba(10, 15, 31, .22), 0 8px 20px -10px rgba(10, 15, 31, .08);
    --shadow-primary: 0 12px 28px -10px color-mix(in srgb, var(--primary) 60%, transparent);

    --ease: cubic-bezier(.22, 1, .36, 1);
    --header-h: 72px;
    --gutter: 20px;
    --container: 1240px;
    --section-y: clamp(72px, 10vw, 128px);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.02em; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: color-mix(in srgb, var(--primary) 20%, transparent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.mono { font-family: var(--font-mono); font-size: .78em; letter-spacing: .02em; }
.sr-only, .hp { position: absolute !important; 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: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 16px; }
.text-gradient { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.icon { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- 3. Typographie de section ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
    text-transform: uppercase; letter-spacing: .14em; color: var(--primary);
    margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; opacity: .7; }
.eyebrow--light { color: color-mix(in srgb, var(--accent) 80%, #fff); }
.hero .eyebrow::before { display: none; }

.section { padding-block: var(--section-y); position: relative; }
.section--soft { background: var(--soft); }
.section--tight-top { padding-top: clamp(40px, 6vw, 64px); }
.section--dark { background: var(--dark); color: rgba(255, 255, 255, .72); }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-title { font-size: clamp(30px, 4.6vw, 50px); font-weight: 600; letter-spacing: -.03em; }
.section-text { margin-top: 18px; font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); max-width: 640px; }
.section-head--center .section-text { margin-inline: auto; }
.section--dark .section-text { color: rgba(255, 255, 255, .66); }
.section-head-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head-row .section-head { margin-bottom: 0; }
.section-head-row > .btn { align-self: flex-start; }

/* ---------- 4. Boutons ---------- */
.btn {
    --btn-bg: var(--ink); --btn-color: #fff; --btn-border: transparent;
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 22px;
    font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: -.005em;
    color: var(--btn-color); background: var(--btn-bg); border: 1.5px solid var(--btn-border); border-radius: 999px;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, color .25s, border-color .25s;
    white-space: nowrap; isolation: isolate; overflow: hidden;
}
.btn .btn-icon { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .btn-icon { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { --btn-bg: var(--primary); box-shadow: var(--shadow-primary); }
.btn-primary::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .35s; z-index: -1; }
.btn-primary:hover::before { opacity: 1; }
.btn-ghost { --btn-bg: transparent; --btn-color: var(--ink); --btn-border: var(--line-strong); }
.btn-ghost:hover { --btn-border: var(--ink); background: var(--white); box-shadow: var(--shadow-sm); }
.btn-light { --btn-bg: #fff; --btn-color: var(--ink); }
.btn-light:hover { box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .4); }
.btn-outline-light { --btn-bg: transparent; --btn-color: #fff; --btn-border: rgba(255, 255, 255, .28); }
.btn-outline-light:hover { --btn-border: #fff; background: rgba(255, 255, 255, .08); }
.btn-whatsapp { --btn-bg: #25D366; --btn-color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .65; pointer-events: none; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-size: 15px; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.link-arrow:hover { color: var(--primary); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- 5. Header & navigation ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
    transition: background-color .35s, box-shadow .35s, height .35s var(--ease), border-color .35s;
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    --header-h: 64px;
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
    border-bottom-color: rgba(10, 15, 31, .06);
    box-shadow: 0 6px 24px -14px rgba(10, 15, 31, .18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: auto; max-width: 180px; object-fit: contain; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: .08em; color: var(--ink); }
.site-header .brand { animation: logoIn .9s var(--ease) both; }
@keyframes logoIn { from { opacity: 0; transform: translateY(-8px) scale(.96); } to { opacity: 1; transform: none; } }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
    position: relative; display: block; padding: 8px 14px; font-size: 14.5px; font-weight: 500; color: var(--text);
    border-radius: 999px; transition: color .25s, background-color .25s;
}
.main-nav a:hover { color: var(--ink); background: rgba(10, 15, 31, .04); }
.main-nav a.is-active { color: var(--ink); }
.main-nav a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--primary); transform: translateX(-50%); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { display: none; }

.nav-toggle {
    position: relative; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .7);
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; z-index: 120;
}
.nav-toggle span { display: block; width: 18px; height: 1.75px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease), width .3s; }
.nav-toggle span:last-child { width: 12px; margin-left: 6px; }
.nav-open .nav-toggle span:first-child { transform: translateY(3.9px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { width: 18px; margin-left: 0; transform: translateY(-3.9px) rotate(-45deg); }

.mobile-nav {
    position: fixed; inset: 0; z-index: 90; background: var(--white);
    padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
    display: flex; flex-direction: column; justify-content: space-between;
    clip-path: circle(0 at calc(100% - 42px) 36px); visibility: hidden;
    transition: clip-path .6s var(--ease), visibility 0s .6s;
    overflow-y: auto;
}
.nav-open .mobile-nav { clip-path: circle(150% at calc(100% - 42px) 36px); visibility: visible; transition: clip-path .7s var(--ease); }
.mobile-nav li { opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .5s var(--ease); }
.nav-open .mobile-nav li { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i) * .05s); }
.mobile-nav li a { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; font-family: var(--font-head); font-size: clamp(28px, 8vw, 40px); font-weight: 600; color: var(--ink); letter-spacing: -.03em; border-bottom: 1px solid var(--line); }
.mobile-nav li a .mono { font-size: 12px; color: var(--muted); }
.mobile-nav li a.is-active { color: var(--primary); }
.mobile-nav-footer { margin-top: 32px; display: grid; gap: 18px; }
.mobile-nav-contact { display: grid; gap: 4px; font-size: 15px; color: var(--muted); }

/* ---------- 6. Décors communs ---------- */
.grid-lines {
    position: absolute; inset: 0;
    background-image: linear-gradient(to right, rgba(10, 15, 31, .05) 1px, transparent 1px), linear-gradient(to bottom, rgba(10, 15, 31, .05) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.grid-lines--light { background-image: linear-gradient(to right, rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .06) 1px, transparent 1px); }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; pointer-events: none; }
.glow-1 { width: 520px; height: 520px; background: color-mix(in srgb, var(--primary) 40%, transparent); top: -180px; right: -120px; }
.glow-2 { width: 420px; height: 420px; background: color-mix(in srgb, var(--accent) 35%, transparent); bottom: -200px; left: -140px; }

.icon-box {
    display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
    color: var(--primary); background: var(--primary-soft);
    border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
    transition: transform .5s var(--ease), background-color .3s, color .3s;
}
.icon-box .icon { width: 24px; height: 24px; }
.icon-box--soft { background: var(--soft); color: var(--ink); border-color: var(--line); }
.icon-box--sm { width: 40px; height: 40px; border-radius: 11px; }
.icon-box--sm .icon { width: 19px; height: 19px; }

.tag { display: inline-flex; align-items: center; padding: 5px 12px; font-size: 12.5px; font-weight: 500; color: var(--primary); background: var(--primary-soft); border-radius: 999px; }
.tech-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-chips li { padding: 4px 10px; font-size: 12.5px; color: var(--text); background: var(--soft); border: 1px solid var(--line); border-radius: 8px; font-family: var(--font-mono); }
.tech-chips--lg li { padding: 8px 14px; font-size: 14px; background: var(--white); }
.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.check-list .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; stroke-width: 2.25; }
.check-list--2 { margin-top: 28px; }

/* ---------- 7. Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 48px) 0 72px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero .glow-1 { top: -220px; right: -160px; width: 640px; height: 640px; opacity: .35; }
.hero .glow-2 { opacity: .3; }
.hero-inner { display: grid; gap: 56px; align-items: center; }
.hero-title { font-size: clamp(40px, 6.2vw, 68px); font-weight: 600; letter-spacing: -.045em; line-height: 1.04; }
.hero-lead { margin-top: 24px; font-size: clamp(17px, 1.9vw, 20px); line-height: 1.6; color: var(--muted); max-width: 580px; }
.hero .eyebrow { padding: 7px 14px 7px 10px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); border-radius: 999px; letter-spacing: .08em; font-size: 11.5px; color: var(--text); box-shadow: var(--shadow-sm); }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; font-size: 14px; color: var(--muted); }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges .icon { width: 18px; height: 18px; color: var(--accent); }

.hero-anim { opacity: 0; transform: translateY(24px); animation: heroIn 1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * .1s + .15s); }
@keyframes heroIn { to { opacity: 1; transform: none; } }

.hero-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.4; }

/* Composition animée du hero */
.hv { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1; margin-inline: auto; }
.hv-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hv-links path { fill: none; stroke: color-mix(in srgb, var(--primary) 45%, transparent); stroke-width: 1.5; stroke-dasharray: 5 7; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -600; } }
.hv-card {
    position: absolute; background: rgba(255, 255, 255, .86); border: 1px solid rgba(10, 15, 31, .08); border-radius: 18px;
    box-shadow: var(--shadow-lg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hv-code { left: 0; top: 6%; width: 64%; background: #0d1326; border-color: rgba(255, 255, 255, .08); color: #c9d1e8; overflow: hidden; }
.hv-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.hv-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.hv-bar i:nth-child(2) { background: #febc2e; }
.hv-bar i:nth-child(3) { background: #28c840; }
.hv-bar span { margin-left: 8px; color: rgba(255, 255, 255, .45); font-size: 11px; }
.hv-code pre { margin: 0; padding: 14px 16px 18px; font-size: clamp(9.5px, 1.25vw, 12.5px); line-height: 1.75; white-space: pre; overflow: hidden; }
.hv-code .k { color: #c792ea; } .hv-code .t { color: #ffcb6b; } .hv-code .f { color: #82aaff; } .hv-code .v { color: #f78c6c; } .hv-code .s { color: #c3e88d; }
.hv-code pre::after { content: ""; display: inline-block; width: 7px; height: 1.1em; background: var(--accent); vertical-align: text-bottom; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hv-dash { right: 0; top: 40%; width: 52%; padding: 16px 18px 14px; animation-delay: -2.5s; }
.hv-dash-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); }
.hv-trend { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: #0f9f6e; background: #e7f8f1; padding: 2px 8px; border-radius: 999px; }
.hv-trend .icon { width: 13px; height: 13px; }
.hv-value { margin-top: 8px; font-family: var(--font-head); font-size: clamp(22px, 3vw, 30px); font-weight: 600; color: var(--ink); letter-spacing: -.03em; }
.hv-value small { font-size: .55em; color: var(--muted); margin-left: 2px; }
.hv-bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-top: 10px; }
.hv-bars span { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(to top, color-mix(in srgb, var(--primary) 18%, #fff), color-mix(in srgb, var(--primary) 45%, #fff)); transform-origin: bottom; animation: grow 1.4s var(--ease) both; }
.hv-bars span:last-child { background: var(--grad); }
.hv-bars span:nth-child(2) { animation-delay: .08s; } .hv-bars span:nth-child(3) { animation-delay: .16s; } .hv-bars span:nth-child(4) { animation-delay: .24s; } .hv-bars span:nth-child(5) { animation-delay: .32s; } .hv-bars span:nth-child(6) { animation-delay: .4s; } .hv-bars span:nth-child(7) { animation-delay: .48s; }
@keyframes grow { from { transform: scaleY(0); } }
.hv-line { width: 100%; height: 34px; margin-top: 8px; overflow: visible; }
.hv-line path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 2.2s .6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hv-app { left: 14%; bottom: 0; width: 30%; aspect-ratio: 9 / 16; padding: 16px 10px 12px; border-radius: 22px; display: flex; flex-direction: column; gap: 9px; animation-delay: -4.5s; }
.hv-app-notch { width: 36%; height: 5px; border-radius: 4px; background: var(--line); margin: 0 auto 4px; }
.hv-app-row { display: flex; align-items: center; gap: 7px; }
.hv-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }
.hv-lines { flex: 1; display: grid; gap: 4px; }
.hv-lines i, .hv-app-list i { display: block; height: 5px; border-radius: 3px; background: var(--line); }
.hv-lines i:last-child { width: 60%; }
.hv-app-tile { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hv-app-tile span { aspect-ratio: 1; border-radius: 9px; background: var(--primary-soft); }
.hv-app-tile span:last-child { background: var(--accent-soft); }
.hv-app-list { display: grid; gap: 6px; }
.hv-app-list i:nth-child(2) { width: 80%; } .hv-app-list i:nth-child(3) { width: 55%; }
.hv-app-btn { margin-top: auto; height: 18px; border-radius: 7px; background: var(--primary); }
.hv-node { position: absolute; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--primary); animation: float 6s ease-in-out infinite; }
.hv-node .icon { width: 20px; height: 20px; }
.hv-node-1 { right: 12%; top: 6%; animation-delay: -1s; }
.hv-node-2 { right: 4%; bottom: 6%; color: var(--accent); animation-delay: -3s; }
.hv-node-3 { left: -2%; top: 62%; animation-delay: -5s; }

/* ---------- 8. Bandeau de références ---------- */
.trust { padding: 32px 0; border-block: 1px solid var(--line); background: var(--white); }
.trust-inner { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.trust-title { font-size: 13px; color: var(--muted); white-space: nowrap; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; }
.marquee { position: relative; width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 56px; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-head); font-weight: 600; font-size: 20px; color: color-mix(in srgb, var(--ink) 55%, #fff); letter-spacing: .02em; white-space: nowrap; }
.marquee-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
@keyframes marquee { to { transform: translateX(calc(-50% - 28px)); } }

/* ---------- 9. Expertises ---------- */
.expertise-grid { display: grid; gap: 20px; }
.expertise-card {
    position: relative; display: flex; flex-direction: column; padding: 32px 28px; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.expertise-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--primary) 7%, transparent), transparent 45%); opacity: 0; transition: opacity .4s; }
.expertise-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.expertise-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 22%, var(--line)); }
.expertise-card:hover::before { opacity: 1; }
.expertise-card:hover::after { transform: scaleX(1); }
.expertise-card:hover .icon-box { transform: rotate(-8deg) scale(1.06); background: var(--primary); color: #fff; }
.expertise-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.expertise-num { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.expertise-title { font-size: 24px; margin-bottom: 12px; }
.expertise-desc { color: var(--muted); }
.expertise-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 32px; }
.expertise-list li { font-size: 13px; padding: 5px 11px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--text); }
.expertise-card .link-arrow { margin-top: auto; }

/* ---------- 10. Réalisations ---------- */
.filters { display: flex; gap: 8px; margin-bottom: 36px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex-shrink: 0; padding: 9px 18px; font-size: 14px; font-weight: 500; border: 1px solid var(--line-strong); background: var(--white); border-radius: 999px; color: var(--text); transition: all .3s var(--ease); }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.projects-grid { display: grid; gap: 24px; }
.project-card { transition: opacity .4s, transform .5s var(--ease); }
.project-card.is-hidden { display: none; }
.project-card-link { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s; }
.project-card-link:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.project-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.1s var(--ease); }
.project-card-link:hover .project-media img { transform: scale(1.06); }
.project-placeholder { display: grid; place-items: center; height: 100%; background: var(--grad); }
.project-placeholder span { font-family: var(--font-head); font-size: 64px; color: rgba(255, 255, 255, .85); font-weight: 700; }
.project-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; padding: 20px; background: linear-gradient(to top, rgba(10, 15, 31, .65), rgba(10, 15, 31, 0) 60%); opacity: 0; transition: opacity .45s var(--ease); }
.project-overlay .btn { transform: translateY(12px); transition: transform .5s var(--ease); pointer-events: none; }
.project-card-link:hover .project-overlay { opacity: 1; }
.project-card-link:hover .project-overlay .btn { transform: none; }
.project-body { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 26px; flex: 1; }
.project-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-year { color: var(--muted); }
.project-title { font-size: 22px; transition: color .3s; }
.project-card-link:hover .project-title { color: var(--primary); }
.project-desc { color: var(--muted); font-size: 15px; }
.project-body .tech-chips { margin-top: auto; padding-top: 6px; }
.empty-state { padding: 48px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* ---------- 11. Timeline (approche) ---------- */
.timeline { position: relative; display: grid; gap: 0; counter-reset: step; }
.timeline-progress { position: absolute; left: 25px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.timeline-progress::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform-origin: top; transform: scaleY(var(--progress, 0)); transition: transform .2s linear; }
.timeline-step { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding-bottom: 36px; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--white); border: 1px solid var(--line-strong); color: var(--primary); box-shadow: 0 0 0 6px var(--white); transition: background-color .4s, color .4s, border-color .4s, transform .5s var(--ease); }
.section--soft .timeline-dot { box-shadow: 0 0 0 6px var(--soft); }
.timeline-dot .icon { width: 22px; height: 22px; }
.timeline-step.is-visible .timeline-dot { border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.timeline-step:hover .timeline-dot { background: var(--primary); color: #fff; transform: scale(1.08); }
.timeline-num { display: block; color: var(--primary); font-size: 12.5px; margin-bottom: 6px; padding-top: 4px; }
.timeline-body h3 { font-size: 20px; margin-bottom: 8px; }
.timeline-body p { color: var(--muted); font-size: 15px; }

/* ---------- 12. Bande Data ---------- */
.data-band { overflow: hidden; }
.data-band-bg { position: absolute; inset: 0; }
.data-band .glow-1 { opacity: .25; top: -200px; right: -200px; }
.data-band-inner { position: relative; display: grid; gap: 56px; align-items: center; }
.data-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.data-pills li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: #fff; font-size: 14px; }
.data-pills .icon { width: 17px; height: 17px; color: var(--accent); }
.data-band .btn-light { margin-top: 32px; }

.pipeline { display: grid; gap: 0; position: relative; }
.pipeline-step { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s; }
.pipeline-step:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.pipeline-step strong { display: block; color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 17px; }
.pipeline-num { color: var(--primary); display: block; }
.pipeline-desc { display: block; font-size: 14px; color: var(--muted); }
.pipeline-icon { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 13px; background: var(--grad); color: #fff; }
.pipeline-link { position: relative; display: block; width: 2px; height: 28px; margin-left: 43px; background: var(--line-strong); overflow: hidden; }
.pipeline-link i { position: absolute; left: 0; width: 2px; height: 10px; background: var(--accent); animation: flowY 1.6s linear infinite; }
@keyframes flowY { from { top: -10px; } to { top: 100%; } }
.section--dark .pipeline-step, .page-hero--dark .pipeline-step { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.section--dark .pipeline-step strong { color: #fff; }
.section--dark .pipeline-desc { color: rgba(255, 255, 255, .6); }
.section--dark .pipeline-num { color: var(--accent); }
.section--dark .pipeline-link { background: rgba(255, 255, 255, .12); }

/* ---------- 13. Pourquoi / chiffres ---------- */
.why-grid { display: grid; gap: 16px; }
.why-card { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); transition: transform .5s var(--ease), box-shadow .5s, border-color .4s; }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 20%, var(--line)); }
.why-card:hover .icon-box { background: var(--primary); color: #fff; border-color: transparent; transform: rotate(-6deg); }
.why-card h3 { font-size: 19px; margin: 22px 0 8px; }
.why-card p { color: var(--muted); font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: clamp(48px, 7vw, 80px); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.stat { padding: 28px 20px; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat:nth-child(2n) { border-right: 0; }
.stat-value { display: block; font-family: var(--font-head); font-size: clamp(34px, 5vw, 48px); font-weight: 600; letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat-label { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }

/* ---------- 14. Technologies ---------- */
.tech-groups { display: grid; gap: 16px; }
.tech-group { padding: 26px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.tech-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.tech-group-head h3 { font-size: 18px; }
.tech-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-list li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink); transition: transform .3s var(--ease), border-color .3s, background-color .3s; }
.tech-list li:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 35%, transparent); background: var(--primary-soft); }
.tech-list img { width: 18px; height: 18px; object-fit: contain; }
.tech-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 820px; margin-inline: auto; }
.tech-cloud li { padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line-strong); font-family: var(--font-head); font-weight: 500; color: var(--ink); transition: all .3s var(--ease); }
.tech-cloud li:hover { background: var(--ink); color: #fff; transform: translateY(-3px); }

/* ---------- 15. CTA ---------- */
.cta-section { padding-top: 0; }
.section--soft + .cta-section, .section--dark + .cta-section { padding-top: var(--section-y); }
.cta-card { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-xl); background: var(--dark); color: rgba(255, 255, 255, .72); padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px); text-align: center; }
.cta-bg { position: absolute; inset: 0; z-index: -1; }
.cta-bg .grid-lines { background-image: linear-gradient(to right, rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .06) 1px, transparent 1px); -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 20%, transparent 75%); }
.cta-bg .glow-1 { opacity: .45; top: -260px; right: -100px; }
.cta-bg .glow-2 { opacity: .35; bottom: -260px; left: -100px; }
.cta-content { max-width: 760px; margin-inline: auto; }
.cta-content .eyebrow { justify-content: center; }
.cta-title { color: #fff; font-size: clamp(30px, 5vw, 54px); letter-spacing: -.035em; }
.cta-text { margin-top: 18px; font-size: clamp(16px, 1.8vw, 19px); }
.cta-card .btn-group { justify-content: center; margin-top: 36px; }
.cta-card--compact { padding-block: clamp(40px, 6vw, 72px); }

/* ---------- 16. Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .62); padding: clamp(64px, 8vw, 96px) 0 28px; font-size: 15px; }
.footer-grid { display: grid; gap: 40px; }
.footer-brand p { margin-top: 18px; max-width: 340px; }
.footer-brand .brand-text { color: #fff; }
.footer-title { font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: rgba(255, 255, 255, .45); margin-bottom: 18px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a, .footer-contact a, .footer-bottom a { transition: color .25s; }
.footer-links a:hover, .footer-contact a:hover, .footer-bottom a:hover { color: #fff; }
.footer-contact { display: grid; gap: 12px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--accent); }
.socials { display: flex; gap: 8px; margin-top: 24px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); transition: all .3s var(--ease); }
.socials a:hover { background: #fff; color: var(--dark); transform: translateY(-3px); }
.socials .icon { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-direction: column; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 20px; }

.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6); transition: transform .4s var(--ease); animation: heroIn .8s 1.2s var(--ease) both; }
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float .icon { width: 27px; height: 27px; }

/* ---------- 17. Pages intérieures ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + 56px) 0 clamp(56px, 8vw, 96px); overflow: hidden; isolation: isolate; }
.page-hero-bg { position: absolute; inset: 0; z-index: -1; }
.page-hero .glow-1 { opacity: .25; }
.page-hero .glow-2 { opacity: .2; }
.page-title { font-size: clamp(36px, 6vw, 64px); letter-spacing: -.04em; max-width: 920px; }
.page-lead { margin-top: 22px; font-size: clamp(17px, 1.9vw, 20px); color: var(--muted); max-width: 680px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; font-size: 13.5px; color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current] { color: var(--ink); }
.page-hero--dark { background: var(--dark); color: rgba(255, 255, 255, .7); }
.page-hero--dark .page-title { color: #fff; }
.page-hero--dark .page-lead { color: rgba(255, 255, 255, .66); }
.page-hero--dark .breadcrumb, .page-hero--dark .breadcrumb [aria-current] { color: rgba(255, 255, 255, .55); }
.page-hero--dark .glow-1 { opacity: .35; }

.prose { color: var(--text); font-size: 17px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 1.8em; }
.prose h3 { font-size: 20px; margin-top: 1.5em; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { list-style: none; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
.prose ol { list-style: decimal; padding-left: 22px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { margin: 0; padding: 16px 24px; border-left: 3px solid var(--primary); background: var(--soft); border-radius: 0 12px 12px 0; }
.prose img { border-radius: var(--radius); }
.prose--lg { font-size: clamp(18px, 2vw, 22px); color: var(--ink); }
.prose .btn-group { margin-top: 36px; }
.prose .btn { text-decoration: none; }
.prose .btn-primary { color: #fff; }

/* À propos */
.about-grid { display: grid; gap: 48px; align-items: center; }
.about-media img, .about-media video { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-trio { display: grid; gap: 14px; }
.about-trio-item { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 18px; align-items: center; padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-sm); animation: float 7s ease-in-out infinite; animation-delay: calc(var(--d) * -2s); }
.about-trio-item:nth-child(2) { margin-left: 10%; }
.about-trio-item:nth-child(3) { margin-left: 20%; }
.about-trio-item .icon-box { grid-row: span 2; }
.about-trio-item .mono { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.about-trio-item strong { color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 18px; }
.mv-grid { display: grid; gap: 20px; }
.mv-card { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.mv-card h2 { font-size: 26px; margin: 24px 0 12px; }
.mv-card p { color: var(--muted); font-size: 17px; }

/* Services */
.services-list { display: grid; gap: clamp(64px, 10vw, 120px); }
.service-row { display: grid; gap: 40px; align-items: center; }
.service-row-title { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; margin-top: 12px; }
.service-row .section-text { margin-top: 16px; }
.service-row-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.service-art { position: relative; display: grid; place-items: center; aspect-ratio: 5 / 4; border-radius: var(--radius-xl); background: var(--soft); border: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.service-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(to right, rgba(10, 15, 31, .05) 1px, transparent 1px), linear-gradient(to bottom, rgba(10, 15, 31, .05) 1px, transparent 1px); background-size: 40px 40px; }
.service-art-icon { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 30px; background: var(--grad); color: #fff; box-shadow: var(--shadow-primary); animation: float 6s ease-in-out infinite; }
.service-art-icon .icon { width: 48px; height: 48px; stroke-width: 1.5; }
.service-art-ring { position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--primary) 35%, transparent); animation: spin 40s linear infinite; }
.service-art-ring--2 { width: 340px; height: 340px; border-color: color-mix(in srgb, var(--accent) 35%, transparent); animation-direction: reverse; animation-duration: 60s; }
@keyframes spin { to { transform: rotate(360deg); } }
.service-detail { display: grid; gap: 48px; align-items: start; }
.service-aside { display: grid; gap: 20px; }
.service-aside-img img { border-radius: var(--radius-lg); }
.aside-card { padding: 28px; border-radius: var(--radius-lg); background: var(--soft); border: 1px solid var(--line); }
.aside-title { font-size: 18px; margin-bottom: 18px; }
.other-services { display: grid; gap: 14px; }
.other-service { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: all .4s var(--ease); }
.other-service > span:nth-child(2) { flex: 1; display: grid; }
.other-service .mono { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.other-service strong { color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 18px; }
.other-service > .icon { transition: transform .4s var(--ease); color: var(--muted); }
.other-service:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.other-service:hover > .icon { transform: translateX(4px); color: var(--ink); }

/* Fiche réalisation */
.page-hero--project { padding-bottom: 48px; }
.project-hero { display: grid; gap: 40px; align-items: end; }
.project-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.project-facts div { padding: 18px 20px; background: var(--white); }
.project-facts dt { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.project-facts dd { margin: 6px 0 0; color: var(--ink); font-weight: 500; word-break: break-word; }
.project-facts dd a:hover { color: var(--primary); }
.project-showcase { padding-bottom: 8px; }
.browser-frame { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--soft); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar span { flex: 1; max-width: 360px; margin: 0 auto; padding: 4px 14px; font-size: 12px; color: var(--muted); text-align: center; background: var(--white); border-radius: 8px; border: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-frame img { width: 100%; }
.project-content { display: grid; gap: clamp(56px, 8vw, 88px); max-width: 1040px; }
.block-title { display: flex; align-items: baseline; gap: 14px; font-size: clamp(24px, 3vw, 32px); margin-bottom: 28px; }
.block-title .mono { color: var(--primary); font-size: 13px; }
.need-solution { display: grid; gap: 20px; }
.ns-card { padding: clamp(28px, 4vw, 40px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); }
.ns-card h2 { font-size: 24px; margin: 22px 0 14px; }
.ns-card .prose { font-size: 16px; }
.ns-card--accent { background: var(--dark); border-color: var(--dark); }
.ns-card--accent h2 { color: #fff; }
.ns-card--accent .prose, .ns-card--accent .prose strong { color: rgba(255, 255, 255, .78); }
.ns-card--accent .icon-box { background: var(--grad); color: #fff; border: 0; }
.feature-grid { display: grid; gap: 12px; }
.feature-grid li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); color: var(--ink); font-weight: 500; transition: border-color .3s, transform .4s var(--ease); }
.feature-grid li:hover { border-color: color-mix(in srgb, var(--primary) 35%, transparent); transform: translateY(-2px); }
.feature-grid .icon { color: var(--accent); width: 22px; height: 22px; }
.gallery { display: grid; gap: 16px; }
.gallery-item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--white); aspect-ratio: 16 / 10; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-zoom { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: var(--shadow); opacity: 0; transform: scale(.8); transition: all .4s var(--ease); }
.gallery-item:hover .gallery-zoom { opacity: 1; transform: none; }
.result-card { display: grid; gap: 28px; align-items: center; padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft)); border: 1px solid var(--line); }
.next-project { padding-bottom: var(--section-y); }
.next-project-link { position: relative; display: grid; gap: 6px; padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-xl); border: 1px solid var(--line); overflow: hidden; transition: border-color .4s, box-shadow .5s; }
.next-project-link .mono { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.next-project-link strong { font-family: var(--font-head); font-size: clamp(32px, 6vw, 64px); font-weight: 600; color: var(--ink); letter-spacing: -.04em; line-height: 1.05; transition: color .3s; }
.next-project-cat { color: var(--muted); }
.next-project-arrow { position: absolute; right: clamp(24px, 4vw, 48px); top: 50%; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; transform: translateY(-50%); transition: transform .5s var(--ease), background-color .3s; }
.next-project-link:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.next-project-link:hover strong { color: var(--primary); }
.next-project-link:hover .next-project-arrow { transform: translateY(-50%) translateX(6px); background: var(--primary); }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 56px 16px; background: rgba(10, 15, 31, .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn .3s; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1200px, 100%); max-height: 100%; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox-close, .lightbox-nav { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
@keyframes fadeIn { from { opacity: 0; } }

/* Data */
.data-hero { display: grid; gap: 56px; align-items: center; }
.data-hero .btn-group { margin-top: 32px; }
.dash { padding: 22px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.dash-head { display: flex; justify-content: space-between; align-items: center; color: rgba(255, 255, 255, .6); font-size: 13px; }
.dash-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent); }
.dash-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.4s infinite; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.dash-kpis div { padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); }
.dash-kpis small { display: block; font-size: 11px; color: rgba(255, 255, 255, .5); }
.dash-kpis strong { display: block; font-family: var(--font-head); font-size: clamp(16px, 2.4vw, 22px); font-weight: 600; margin: 4px 0 2px; }
.dash-kpis em { font-style: normal; font-size: 11.5px; color: #4ade80; }
.dash-chart { margin-top: 14px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .03); color: var(--accent); }
.dash-chart svg { width: 100%; height: 120px; }
.dash-stroke { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 500; stroke-dashoffset: 500; animation: draw 2.4s .4s var(--ease) forwards; }
.dash-area { opacity: 0; animation: fadeInTo 1s 1.2s forwards; }
@keyframes fadeInTo { to { opacity: 1; } }
.dash-bottom { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-top: 14px; }
.dash-donut { position: relative; width: 84px; height: 84px; }
.dash-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dash-donut circle { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 3.5; }
.dash-donut .dash-donut-val { stroke: var(--primary); stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; animation: donut 2s .6s var(--ease) forwards; }
@keyframes donut { to { stroke-dashoffset: 32; } }
.dash-donut span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; font-size: 16px; }
.dash-rows { display: grid; gap: 10px; }
.dash-rows i { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.dash-rows i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: 4px; background: var(--grad); transform-origin: left; animation: growX 1.6s .8s var(--ease) both; }
@keyframes growX { from { transform: scaleX(0); } }
.data-hero-visual img { border-radius: var(--radius-lg); }
.offer-grid { display: grid; gap: 20px; }
.offer-card { padding: clamp(26px, 4vw, 36px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); transition: transform .5s var(--ease), box-shadow .5s, border-color .4s; }
.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.offer-card:hover .icon-box { background: var(--grad); color: #fff; border-color: transparent; }
.offer-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.offer-head .mono { display: block; color: var(--muted); }
.offer-head h3 { font-size: 22px; }
.offer-card p { color: var(--muted); margin-bottom: 20px; }
.offer-card .tech-chips li { font-family: var(--font-body); font-size: 13.5px; padding: 6px 12px; }

/* Contact */
.contact-grid { display: grid; gap: 32px; align-items: start; }
.contact-aside { display: grid; gap: 16px; }
.contact-card { padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); }
.contact-card--dark { background: var(--dark); border-color: var(--dark); color: rgba(255, 255, 255, .75); }
.contact-card--dark .aside-title { color: #fff; }
.contact-list { display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list small { display: block; font-size: 12px; color: var(--muted); }
.contact-list a, .contact-list span:not(.icon-box) { color: var(--ink); font-weight: 500; word-break: break-word; }
.contact-list a:hover { color: var(--primary); }
.steps-list { display: grid; gap: 14px; }
.steps-list li { display: flex; gap: 14px; align-items: baseline; }
.steps-list .mono { color: var(--accent); }
.form-card { position: relative; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-xl); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-size: 14px; font-weight: 500; color: var(--ink); }
.req { color: var(--primary); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
    width: 100%; padding: 13px 16px; font: inherit; font-size: 15.5px; color: var(--ink); background: var(--soft);
    border: 1.5px solid transparent; border-radius: 12px; transition: border-color .25s, background-color .25s, box-shadow .25s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7285' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field select:hover, .field textarea:hover { background-color: color-mix(in srgb, var(--soft) 70%, var(--line)); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-color: var(--white); border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent); }
.field [aria-invalid=true] { border-color: #e5484d; background-color: #fff5f5; }
.field-error { font-size: 13px; color: #d93036; }
.chips-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-option { position: relative; cursor: pointer; }
.chip-option input { position: absolute; opacity: 0; pointer-events: none; }
.chip-option span { display: inline-block; padding: 9px 16px; font-size: 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); color: var(--text); transition: all .25s var(--ease); }
.chip-option:hover span { border-color: var(--ink); }
.chip-option input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-option input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.file-drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1.5px dashed var(--line-strong); border-radius: 14px; cursor: pointer; transition: border-color .25s, background-color .25s; }
.file-drop:hover, .file-drop.is-drag { border-color: var(--primary); background: var(--primary-soft); }
.file-drop.has-file { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.file-drop .icon { color: var(--primary); }
.file-drop strong { display: block; font-weight: 500; color: var(--ink); font-size: 14.5px; }
.file-drop small { display: block; color: var(--muted); font-size: 13px; }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); font-weight: 400 !important; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); flex-shrink: 0; }
.checkbox a { color: var(--primary); text-decoration: underline; }
.form-footer { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.form-note { font-size: 13px; color: var(--muted); }
.form-alert { margin-bottom: 20px; padding: 14px 18px; border-radius: 12px; background: #fff1f1; color: #b4232a; font-size: 14.5px; border: 1px solid #ffd6d6; }
.form-success { text-align: center; padding: clamp(24px, 6vw, 56px) 8px; animation: heroIn .7s var(--ease) both; }
.form-success h2 { font-size: 28px; margin: 24px 0 12px; }
.form-success p { color: var(--muted); max-width: 440px; margin: 0 auto 28px; }
.success-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: var(--shadow-primary); }
.success-icon .icon { width: 34px; height: 34px; stroke-width: 2.5; }
.btn.is-loading [data-submit-label]::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; vertical-align: -2px; animation: spin .7s linear infinite; }
.map-section iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.4); }

/* 404 */
.error-page { position: relative; min-height: 80vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) 0 80px; overflow: hidden; isolation: isolate; }
.error-page .page-title, .error-page .page-lead { margin-inline: auto; }
.error-code { font-size: clamp(80px, 18vw, 180px) !important; font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.05em; margin-bottom: 12px; }

/* ---------- 18. Animations au scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * .09s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .service-row--reverse .service-row-media[data-reveal], .js .about-media[data-reveal] { transform: translateX(28px); }
.js .service-row:not(.service-row--reverse) .service-row-media[data-reveal] { transform: translateX(28px); }
.js .service-row--reverse .service-row-media[data-reveal] { transform: translateX(-28px); }
.js .browser-frame[data-reveal] { transform: translateY(40px) scale(.97); }
.js [data-reveal].is-visible { transform: none; }

/* ---------- 19. Responsive ---------- */
@media (min-width: 600px) {
    :root { --gutter: 28px; }
    .projects-grid, .why-grid, .tech-groups, .feature-grid, .offer-grid, .mv-grid, .need-solution, .gallery { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr 1fr; }
    .field--full { grid-column: 1 / -1; }
    .form-footer { flex-direction: row; align-items: center; justify-content: space-between; }
    .stats { grid-template-columns: repeat(4, 1fr); }
    .stat { border-bottom: 0; }
    .stat:nth-child(2n) { border-right: 1px solid var(--line); }
    .stat:last-child { border-right: 0; }
    .trust-inner { flex-direction: row; gap: 40px; }
    .trust-title { flex-shrink: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
    .project-facts { grid-template-columns: repeat(2, 1fr); }
    .result-card { grid-template-columns: 1fr auto; }
    .other-services { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    :root { --gutter: 40px; }
    .hero { padding: calc(var(--header-h) + 64px) 0 96px; min-height: min(100vh, 920px); display: flex; align-items: center; }
    .hero-inner { grid-template-columns: 1.08fr 1fr; gap: 48px; }
    .expertise-grid { grid-template-columns: repeat(3, 1fr); }
    .section-head-row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 40px; }
    .section-head-row > .btn { align-self: flex-end; flex-shrink: 0; }
    .data-band-inner, .data-hero { grid-template-columns: 1.1fr 1fr; gap: 72px; }
    .about-grid { grid-template-columns: 1.15fr 1fr; gap: 80px; }
    .service-row { grid-template-columns: 1fr 1fr; gap: 80px; }
    .service-row--reverse .service-row-content { order: 2; }
    .service-detail { grid-template-columns: 1.5fr 1fr; gap: 72px; }
    .service-aside { position: sticky; top: calc(var(--header-h) + 24px); }
    .contact-grid { grid-template-columns: 380px 1fr; gap: 40px; }
    .contact-aside { position: sticky; top: calc(var(--header-h) + 24px); }
    .project-hero { grid-template-columns: 1.3fr 1fr; gap: 64px; }
    .why-grid, .tech-groups { grid-template-columns: repeat(3, 1fr); }
    .projects-grid { grid-template-columns: repeat(6, 1fr); }
    .projects-grid .project-card { grid-column: span 2; }
    .projects-grid .project-card:nth-child(-n+2) { grid-column: span 3; }
    .projects-grid .project-card:nth-child(n+3) .project-title { font-size: 20px; }
    .gallery { grid-template-columns: repeat(3, 1fr); }
    .gallery-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
    .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr 1.3fr; gap: 48px; }
    .other-services { grid-template-columns: repeat(var(--cols, 2), 1fr); }
}

/* Timeline horizontale sur grand écran */
@media (min-width: 1080px) {
    .main-nav { display: block; }
    .header-cta { display: inline-flex; }
    .nav-toggle, .mobile-nav { display: none; }

    .timeline { grid-template-columns: repeat(6, 1fr); gap: 20px; }
    .timeline-progress { left: 26px; right: 26px; top: 25px; bottom: auto; width: auto; height: 2px; }
    .timeline-progress::after { transform-origin: left; transform: scaleX(var(--progress, 0)); }
    .timeline-step { grid-template-columns: 1fr; gap: 24px; padding-bottom: 0; }
    .timeline-body { padding-right: 8px; }

    .section .container > .pipeline { grid-template-columns: repeat(7, auto); align-items: center; justify-content: center; }
    .section .container > .pipeline .pipeline-step { flex-direction: column; text-align: center; padding: 26px 20px; min-width: 200px; }
    .section .container > .pipeline .pipeline-step:hover { transform: translateY(-6px); }
    .section .container > .pipeline .pipeline-link { width: 48px; height: 2px; margin: 0; }
    .section .container > .pipeline .pipeline-link i { width: 12px; height: 2px; top: 0; animation-name: flowX; }
    .data-band .container > .pipeline { display: grid; grid-template-columns: 1fr; }
    .data-band .container > .pipeline .pipeline-step { flex-direction: row; text-align: left; min-width: 0; }
    .data-band .container > .pipeline .pipeline-link { width: 2px; height: 28px; margin-left: 43px; }
    .data-band .container > .pipeline .pipeline-link i { width: 2px; height: 10px; animation-name: flowY; }
}
@keyframes flowX { from { left: -12px; } to { left: 100%; } }

@media (min-width: 1440px) {
    :root { --container: 1320px; }
}

/* Mobile : animations allégées */
@media (max-width: 599px) {
    .hv-card { animation-duration: 9s; }
    .hv-node-3 { display: none; }
    .hero-canvas { opacity: .35; }
    .glow { filter: blur(60px); }
}

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

/* ---------- En-tête sur hero sombre (page Data) ---------- */
.logo-on-dark { display: none; }
.has-dark-hero:not(.nav-open) .site-header:not(.is-scrolled) .logo-default { display: none; }
.has-dark-hero:not(.nav-open) .site-header:not(.is-scrolled) .logo-on-dark { display: block; }
.has-dark-hero .site-header:not(.is-scrolled) .main-nav a { color: rgba(255, 255, 255, .72); }
.has-dark-hero .site-header:not(.is-scrolled) .main-nav a:hover,
.has-dark-hero .site-header:not(.is-scrolled) .main-nav a.is-active { color: #fff; background: rgba(255, 255, 255, .08); }
.has-dark-hero:not(.nav-open) .site-header:not(.is-scrolled) .nav-toggle { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }
.has-dark-hero:not(.nav-open) .site-header:not(.is-scrolled) .nav-toggle span { background: #fff; }
.has-dark-hero .site-header:not(.is-scrolled) .brand-text { color: #fff; }

/* ---------- Mentions légales ---------- */
.legal-table { display: grid; margin: 1.2em 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.legal-table div { display: grid; gap: 2px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.legal-table div:last-child { border-bottom: 0; }
.legal-table dt { font-size: 13px; color: var(--muted); }
.legal-table dd { margin: 0; color: var(--ink); font-weight: 500; font-size: 16px; }
@media (min-width: 600px) { .legal-table div { grid-template-columns: 240px 1fr; gap: 16px; align-items: baseline; } }
.footer-legal { font-size: 12.5px; color: rgba(255, 255, 255, .42); margin-top: 6px; }

/* ---------- Document client (devis / facture en ligne) ---------- */
.page-hero--doc { padding-bottom: 40px; }
.doc-public { display: grid; gap: 24px; align-items: start; }
.doc-public-side { display: grid; gap: 16px; }
.doc-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #525659; }
.doc-frame iframe { display: block; width: 100%; height: 80vh; min-height: 560px; border: 0; }
.doc-facts { display: grid; gap: 12px; margin: 0 0 20px; }
.doc-facts div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.doc-facts dt { color: var(--muted); font-size: 14px; }
.doc-facts dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; word-break: break-all; }
.doc-total { font-family: var(--font-head); font-size: 22px; }
.doc-status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; background: var(--soft); }
.doc-status--success { background: #edfbf3; color: #0b7a3b; }
.doc-status--danger { background: #fff1f1; color: #b4232a; }
.doc-status--warning { background: #fff8e8; color: #8a5c00; }
.doc-status--info { background: var(--primary-soft); color: var(--primary); }
.doc-alert { display: flex; gap: 12px; align-items: center; padding: 16px 20px; margin-bottom: 16px; border-radius: var(--radius); font-weight: 500; }
.doc-alert--success { background: #edfbf3; color: #0b7a3b; border: 1px solid #c4f0d6; }
.accept-card .field { margin-bottom: 14px; }
.accept-card .checkbox { margin-bottom: 18px; }
.text-success { color: #12a150; }
@media (min-width: 960px) { .doc-public { grid-template-columns: minmax(0, 1fr) 360px; } .doc-public-side { position: sticky; top: calc(var(--header-h) + 20px); } }
@media (max-width: 700px) { .doc-frame iframe { height: 70vh; min-height: 420px; } }
.doc-recap { display: none; }
.doc-lines { display: grid; margin-bottom: 16px; }
.doc-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.doc-lines li strong { display: block; color: var(--ink); font-weight: 600; }
.doc-lines li small { color: var(--muted); }
.doc-lines .num { white-space: nowrap; font-weight: 600; color: var(--ink); }
.doc-line-section { font-weight: 700; color: var(--primary) !important; }
.doc-facts--totals { margin: 0 0 8px; }
.page-document .small { font-size: 13px; }
@media (max-width: 899px) { .doc-frame { display: none; } .doc-recap { display: block; } }
