/* ============================================================
   NDDEV — style.css v2
   Dark premium · animations scroll intenses
   ============================================================ */

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── PRELOADER ───────────────────────────────────────────── */
#preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg, #060609);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 24px;
    transition: opacity .6s ease, visibility .6s ease;
}
#preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }

.pl-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 40px; font-weight: 700;
    letter-spacing: -.04em;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pl-bar {
    width: 200px; height: 1px;
    background: rgba(255,255,255,.1);
    border-radius: 1px; overflow: hidden;
}
.pl-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    border-radius: 1px;
    transition: width .05s linear;
}
.pl-num {
    font-size: 12px; font-weight: 600;
    letter-spacing: .2em; color: rgba(255,255,255,.35);
}

/* ── BARRE PROGRESSION SCROLL ───────────────────────────── */
#scroll-progress {
    position: fixed; top: 0; left: 0;
    height: 2px; width: 0%;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    z-index: 9998;
    transform-origin: left center;
    pointer-events: none;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 8px rgba(79,172,254,.5);
}

/* ── BOUTON RETOUR EN HAUT ──────────────────────────────── */
#back-top {
    position: fixed; bottom: 32px; right: 32px; z-index: 800;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(10,10,16,.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(79,172,254,.3);
    color: var(--blue, #4facfe);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    opacity: 0; pointer-events: none;
    transform: translateY(16px);
    transition: opacity .4s, transform .4s, background .3s, border-color .3s;
}
#back-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
#back-top:hover { background: rgba(79,172,254,.15); border-color: rgba(79,172,254,.7); }

:root {
    --bg:     #060609;
    --bg2:    #0a0a10;
    --bg3:    #0f0f1a;
    --bg4:    #141424;
    --blue:   #4facfe;
    --cyan:   #00f2fe;
    --grad:   linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --white:  #ffffff;
    --off:    rgba(255,255,255,0.88);
    --muted:  rgba(255,255,255,0.45);
    --dim:    rgba(255,255,255,0.15);
    --bord:   rgba(255,255,255,0.07);
    --bord2:  rgba(255,255,255,0.12);
    --fd:     'Space Grotesk', sans-serif;
    --fb:     'Inter', sans-serif;
    --ease:   cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: auto; overflow-x: hidden; }

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--fb);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Grain */
body::after {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none; z-index: 9000;
    opacity: .028;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
}

::selection { background: rgba(79,172,254,.25); color: #fff; }
::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--grad); }

/* Container */
.container { max-width: 1240px; margin: 0 auto; padding: 0 60px; }

/* ── NAVIGATION ──────────────────────────────────────────── */
#nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 900;
    height: 70px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 60px;
    transition: background .4s, border-color .4s, backdrop-filter .4s;
}

#nav.scrolled {
    background: rgba(6,6,9,.8);
    backdrop-filter: blur(20px) saturate(1.6);
    border-bottom: 1px solid var(--bord);
}

.nav-logo {
    font-family: var(--fd);
    font-size: 20px; font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links { display: flex; gap: 36px; list-style: none; }

.nav-links a {
    font-size: 14px; font-weight: 500; color: var(--muted);
    text-decoration: none;
    position: relative;
    transition: color .3s;
}
.nav-links a::after {
    content: ''; position: absolute;
    bottom: -3px; left: 0; right: 100%; height: 1px;
    background: var(--blue);
    transition: right .35s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { right: 0; }

.nav-cta {
    font-family: var(--fd); font-size: 13px; font-weight: 600;
    padding: 9px 22px;
    border: 1px solid rgba(79,172,254,.35); border-radius: 100px;
    color: var(--blue); text-decoration: none;
    position: relative; overflow: hidden;
    transition: color .3s, border-color .3s;
}
.nav-cta::before {
    content: ''; position: absolute; inset: 0;
    background: var(--grad); opacity: 0;
    transition: opacity .3s;
}
.nav-cta:hover::before { opacity: 1; }
.nav-cta:hover { color: #060609; border-color: transparent; }
.nav-cta span { position: relative; z-index: 1; }

.nav-burger {
    display: none; flex-direction: column; gap: 6px;
    background: none; border: none; padding: 6px;
    cursor: pointer;
}
.nav-burger span {
    display: block; width: 22px; height: 1px;
    background: #fff;
    transition: transform .3s, opacity .3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    position: fixed; inset: 0; z-index: 800;
    background: rgba(6,6,9,.97); backdrop-filter: blur(20px);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 32px;
    opacity: 0; pointer-events: none;
    transition: opacity .4s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-nav { display: flex; flex-direction: column; gap: 20px; text-align: center; }
.mobile-nav a {
    font-family: var(--fd); font-size: 36px; font-weight: 700;
    color: #fff; text-decoration: none; letter-spacing: -.03em;
    transition: background .3s; background: transparent;
    -webkit-background-clip: text; background-clip: text;
}
.mobile-nav a:hover { background: var(--grad); -webkit-text-fill-color: transparent; }

/* ── BOUTONS ─────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--fd); font-size: 15px; font-weight: 600;
    padding: 15px 32px; border-radius: 100px;
    background: var(--grad); color: #060609;
    border: none; text-decoration: none;
    position: relative; overflow: hidden;
    transition: box-shadow .3s, transform .3s;
    box-shadow: 0 0 28px rgba(79,172,254,.3);
    white-space: nowrap;
    cursor: pointer;
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    opacity: 0; transition: opacity .4s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(79,172,254,.45); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary > * { position: relative; z-index: 1; }

.btn-outline {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--fd); font-size: 15px; font-weight: 500;
    padding: 14px 32px; border-radius: 100px;
    background: transparent; color: var(--muted);
    border: 1px solid var(--bord2); text-decoration: none;
    transition: all .3s;
    cursor: pointer;
}
.btn-outline:hover { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.04); }

/* ── HERO ───────────────────────────────────────────────── */
#hero {
    position: relative; width: 100vw; height: 100vh; min-height: 640px;
    display: flex; align-items: center;
    overflow: hidden;
}

#hero-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
}

/* Mot décoratif géant */
.hero-deco-word {
    position: absolute;
    right: -2vw; top: 50%;
    transform: translateY(-50%);
    font-family: var(--fd);
    font-size: clamp(160px, 22vw, 320px);
    font-weight: 700;
    letter-spacing: -.06em;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(79,172,254,.08);
    user-select: none;
    pointer-events: none;
    will-change: transform;
}

/* Orbes lumineux */
.hero-orb {
    position: absolute; border-radius: 50%;
    pointer-events: none; filter: blur(100px);
    animation: orbFloat 10s ease-in-out infinite alternate;
}
.hero-orb--1 {
    width: 500px; height: 500px;
    top: -120px; left: -80px;
    background: radial-gradient(circle, rgba(79,172,254,.09), transparent 70%);
    animation-duration: 11s;
}
.hero-orb--2 {
    width: 360px; height: 360px;
    bottom: -60px; right: 10%;
    background: radial-gradient(circle, rgba(0,242,254,.07), transparent 70%);
    animation-duration: 9s; animation-delay: 2s;
}
.hero-orb--3 {
    width: 260px; height: 260px;
    top: 40%; left: 55%;
    background: radial-gradient(circle, rgba(79,172,254,.05), transparent 70%);
    animation-duration: 13s; animation-delay: 4s;
}
@keyframes orbFloat {
    from { transform: scale(1) translate(0,0); }
    to   { transform: scale(1.08) translate(20px, -20px); }
}

/* Contenu hero */
.hero-content {
    position: relative; z-index: 2;
    padding: 0 60px;
    max-width: 900px;
}

/* Badge statut */
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 18px;
    border: 1px solid rgba(34,197,94,.25);
    border-radius: 100px;
    background: rgba(34,197,94,.06);
    font-size: 12px; font-weight: 500; color: rgba(255,255,255,.6);
    margin-bottom: 40px;
    opacity: 0; transform: translateY(16px);
}
.badge-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34,197,94,.7);
    animation: pulse 2.4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* Headline avec clip-mask par ligne */
.hero-headline-wrap { margin-bottom: 28px; overflow: visible; }

.hero-line {
    overflow: hidden;
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

.hero-line-inner {
    display: block;
    font-family: var(--fd);
    font-size: clamp(46px, 7vw, 100px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 0.95;
    color: var(--white);
    transform: translateY(100%);
    opacity: 0;
    will-change: transform, opacity;
}

.hero-line--accent .hero-line-inner {
    background: var(--grad);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sous-titre */
.hero-sub {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--muted);
    max-width: 500px;
    line-height: 1.8;
    margin-bottom: 44px;
    opacity: 0; transform: translateY(24px);
    font-weight: 400;
}

/* CTA row */
.hero-cta-row {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    opacity: 0; transform: translateY(24px);
}

.btn-hero { font-size: 16px; padding: 17px 38px; }

/* Stats */
.hero-stats {
    position: absolute;
    bottom: 56px; right: 60px;
    display: flex; align-items: center; gap: 0;
    z-index: 2;
    opacity: 0; transform: translateY(16px);
    background: rgba(10,10,16,.6);
    backdrop-filter: blur(14px);
    border: 1px solid var(--bord2);
    border-radius: 16px;
    padding: 20px 28px;
}

.hero-stat {
    display: flex; flex-direction: column; align-items: center;
    padding: 0 24px;
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child  { padding-right: 0; }

.stat-val {
    font-family: var(--fd);
    font-size: 28px; font-weight: 700;
    letter-spacing: -.03em;
    color: var(--white);
    line-height: 1;
}
.stat-unit {
    font-family: var(--fd);
    font-size: 18px; font-weight: 600;
    color: var(--blue);
    margin-left: 2px;
}
.stat-lbl {
    font-size: 11px; color: var(--muted);
    text-transform: uppercase; letter-spacing: .08em;
    margin-top: 5px;
}
.hero-stat-sep { width: 1px; height: 40px; background: var(--bord2); }

/* Scroll hint */
.hero-scroll-hint {
    position: absolute; bottom: 44px; left: 60px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    z-index: 2; opacity: 0;
}
.scroll-mouse {
    width: 22px; height: 34px;
    border: 1px solid var(--bord2); border-radius: 12px;
    display: flex; justify-content: center; padding-top: 6px;
}
.scroll-wheel {
    width: 3px; height: 7px; border-radius: 2px;
    background: var(--blue);
    animation: wheel 2s ease-in-out infinite;
}
@keyframes wheel { 0%{transform:translateY(0);opacity:1} 80%{transform:translateY(10px);opacity:0} 100%{transform:translateY(0);opacity:0} }
.hero-scroll-hint > span {
    font-size: 10px; letter-spacing: .18em;
    text-transform: uppercase; color: var(--muted);
    writing-mode: vertical-rl;
}

/* ── TICKER ──────────────────────────────────────────────── */
.ticker-strip {
    opacity: 0;
    width: 100%;
    background: var(--bg2);
    border-top: 1px solid var(--bord);
    border-bottom: 1px solid var(--bord);
    padding: 16px 0;
    overflow: hidden;
}
.ticker-track { display: flex; }
.ticker-content {
    display: flex; align-items: center; gap: 28px;
    flex-shrink: 0;
    animation: ticker 28s linear infinite;
    white-space: nowrap;
}
.ticker-content span {
    font-family: var(--fd);
    font-size: 13px; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted);
}
.ticker-content .sep {
    color: var(--blue) !important;
    font-size: 10px !important;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SECTIONS COMMUNES ───────────────────────────────────── */
.section-label {
    display: flex; align-items: center; gap: 10px;
    font-size: 11px; font-weight: 700;
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--blue); margin-bottom: 24px;
}
.label-num {
    font-family: var(--fd);
    font-size: 11px; color: rgba(79,172,254,.5);
}

.section-title {
    font-family: var(--fd);
    font-size: clamp(30px, 4vw, 56px);
    font-weight: 700; letter-spacing: -.03em;
    line-height: 1.06; color: var(--white);
}
.section-title em {
    font-style: normal;
    background: var(--grad);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Clip-mask reveal par ligne (JS) */
.line-mask { overflow: hidden; display: block; }
.line-inner { display: block; transform: translateY(110%); opacity: 0; }

/* ── SERVICES ────────────────────────────────────────────── */
#services { padding: 130px 0 100px; }
#services .container { max-width: 1240px; }

.section-intro {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    align-items: end; margin-bottom: 56px;
}
.section-sub {
    font-size: 16px; color: var(--muted); line-height: 1.8;
    max-width: 380px; margin-top: 16px;
}

.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--bord);
    border: 1px solid var(--bord); border-radius: 20px; overflow: hidden;
    margin-bottom: 52px;
}

.service-card {
    position: relative; background: var(--bg2);
    padding: 44px 36px 52px; overflow: hidden;
    transition: background .4s;
}

/* Barre gradient bas */
.service-card::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 100%;
    height: 2px; background: var(--grad);
    transition: right .55s var(--ease);
}
.service-card:hover::after { right: 0; }

/* Glow interne */
.service-card::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 120%, rgba(79,172,254,.07), transparent 65%);
    opacity: 0; transition: opacity .5s;
}
.service-card:hover::before { opacity: 1; }

.sc-num {
    font-family: var(--fd); font-size: 11px; font-weight: 700;
    letter-spacing: .2em; color: rgba(79,172,254,.45);
    margin-bottom: 20px;
}
.sc-icon { width: 44px; height: 44px; color: var(--blue); margin-bottom: 20px;
    transition: transform .4s var(--ease), color .4s; }
.service-card:hover .sc-icon { transform: scale(1.1) translateY(-3px); color: var(--cyan); }

.sc-title {
    font-family: var(--fd); font-size: 18px; font-weight: 600;
    letter-spacing: -.02em; color: var(--white);
    margin-bottom: 10px; line-height: 1.3;
}
.sc-desc { font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 16px; }
.sc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-tags span {
    font-size: 10px; font-weight: 600; letter-spacing: .07em;
    padding: 3px 10px; border-radius: 100px;
    border: 1px solid var(--bord2); color: var(--muted);
}

.sc-arrow {
    position: absolute; bottom: 28px; right: 28px;
    width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid var(--bord2);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: var(--muted);
    transition: all .35s var(--ease);
}
.service-card:hover .sc-arrow {
    background: var(--grad); border-color: transparent;
    color: #060609; transform: rotate(45deg) scale(1.05);
}

.services-cta-row {
    display: flex; align-items: center;
    justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.services-cta-row > p { font-size: 16px; color: var(--muted); max-width: 420px; }

/* ── CHIFFRES CLÉS ───────────────────────────────────────── */
.chiffres-strip {
    background: var(--bg3);
    border-top: 1px solid var(--bord);
    border-bottom: 1px solid var(--bord);
    padding: 64px 60px;
    overflow: hidden;
}
.chiffres-inner {
    max-width: 1000px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 32px;
}
.chiffre-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; text-align: center;
    opacity: 0; transform: translateY(30px);
}
.chiffre-val {
    font-family: var(--fd);
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 700; letter-spacing: -.04em;
    line-height: 1; color: var(--white);
    display: inline;
}
.chiffre-unit {
    font-family: var(--fd);
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 700; color: var(--blue);
    margin-left: 2px;
}
.chiffre-lbl {
    font-size: 13px; color: var(--muted);
    text-transform: uppercase; letter-spacing: .1em;
    font-weight: 500;
}
.chiffre-sep {
    width: 1px; height: 60px;
    background: var(--bord2);
    flex-shrink: 0;
}
@media (max-width: 700px) {
    .chiffres-strip { padding: 48px 24px; }
    .chiffres-inner { justify-content: center; gap: 24px 40px; }
    .chiffre-sep { display: none; }
}

/* ── PROJETS ─────────────────────────────────────────────── */
#projets { padding: 120px 0; overflow: hidden; }

.projets-header {
    margin-bottom: 52px;
    display: grid; grid-template-columns: auto 1fr auto;
    align-items: end; gap: 40px;
}
.projets-sub { font-size: 16px; color: var(--muted); }

.projets-outer { overflow: hidden; }

.projets-track {
    display: flex; gap: 20px;
    padding: 0 60px 24px;
    width: max-content;
    will-change: transform;
}

.projet-card {
    width: 380px; border-radius: 18px;
    overflow: hidden; flex-shrink: 0;
    border: 1px solid var(--bord);
    background: var(--bg3);
    display: flex; flex-direction: column;
    transition: border-color .4s;
}
.projet-card:hover { border-color: rgba(79,172,254,.25); }

.pc-visual {
    height: 260px; position: relative;
    display: flex; align-items: center; justify-content: center;
    padding: 28px 28px 0;
    overflow: hidden;
    transition: transform .6s var(--ease);
}
.projet-card:hover .pc-visual { transform: scale(1.03); }

.pc-visual--1 { background: linear-gradient(150deg,#0f0c29,#302b63,#24243e); }
.pc-visual--2 { background: linear-gradient(150deg,#06060f,#10102a,#0a0a20); }
.pc-visual--3 { background: linear-gradient(150deg,#071528,#0d1f3c,#0a1830); }
.pc-visual--4 { background: linear-gradient(150deg,#1a0533,#2d0b5a,#4a0e8f); }

/* Mockup browser */
.pc-mockup-browser {
    width: 100%; border-radius: 10px 10px 0 0;
    overflow: hidden;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-bottom: none;
}
.browser-bar {
    padding: 9px 14px; background: rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.07);
    display: flex; gap: 6px; align-items: center;
}
.browser-bar span {
    display: block; width: 8px; height: 8px; border-radius: 50%;
}
.browser-bar span:nth-child(1){background:#ff5f57}
.browser-bar span:nth-child(2){background:#febc2e}
.browser-bar span:nth-child(3){background:#28c840}
.browser-body { padding: 14px 14px 0; }
.bb-head { height: 8px; background: rgba(79,172,254,.4); border-radius: 4px; margin-bottom: 10px; width: 40%; }
.bb-line { height: 6px; background: rgba(255,255,255,.1); border-radius: 3px; margin-bottom: 7px; }
.bb-line--xl { height: 9px; background: rgba(79,172,254,.25); width: 75%; }
.bb-line--sm { width: 60%; }
.bb-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 12px; }
.bb-block { height: 36px; border-radius: 6px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.bb-block--blue { background: rgba(79,172,254,.12); border-color: rgba(79,172,254,.25); }

/* Shop nav */
.bb-shop-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bb-logo { height: 7px; width: 44px; background: var(--grad); border-radius: 3px; }
.bb-nav-item { height: 6px; width: 26px; background: rgba(255,255,255,.1); border-radius: 3px; }
.bb-shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bb-product { height: 52px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 6px; }
.bb-product--feat { background: rgba(79,172,254,.1); border-color: rgba(79,172,254,.2); }

/* Phone mockup */
.pc-mockup-phone {
    width: 120px; height: 220px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px; padding: 10px;
    position: relative;
}
.ph-notch {
    width: 40px; height: 6px; border-radius: 3px;
    background: rgba(255,255,255,.15);
    margin: 0 auto 10px;
}
.ph-screen { height: calc(100% - 16px); display: flex; flex-direction: column; gap: 10px; }
.ph-header { height: 12px; background: var(--grad); border-radius: 4px; opacity: .6; }
.ph-chart { display: flex; align-items: flex-end; gap: 5px; flex: 1; }
.ph-bar { flex: 1; background: rgba(79,172,254,.22); border-radius: 3px 3px 0 0; }
.ph-bar--hi { background: rgba(79,172,254,.85); }
.ph-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ph-kpi { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 6px; padding: 6px; text-align: center; }
.ph-kpi-val { font-family: var(--fd); font-size: 12px; font-weight: 700; color: #fff; }
.ph-kpi-lbl { font-size: 9px; color: var(--muted); margin-top: 2px; }

/* Brand showcase */
.pc-brand-showcase {
    display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.brand-icon {
    width: 80px; height: 80px;
    background: rgba(79,172,254,.08); border: 1px solid rgba(79,172,254,.2);
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 30px rgba(79,172,254,.2);
}
.brand-icon svg { width: 52px; height: 52px; }
.brand-name {
    font-family: var(--fd); font-size: 16px; font-weight: 700;
    letter-spacing: -.02em; color: var(--white);
}
.brand-palette { display: flex; gap: 10px; }
.pal { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); }

/* Info carte projet */
.pc-info { padding: 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pc-tag {
    font-size: 10px; font-weight: 700; letter-spacing: .15em;
    text-transform: uppercase;
    padding: 3px 10px; border-radius: 100px;
    border: 1px solid rgba(79,172,254,.35); color: var(--blue);
    width: fit-content;
}
.pc-name {
    font-family: var(--fd); font-size: 20px; font-weight: 700;
    letter-spacing: -.025em; color: var(--white);
    margin-top: 4px;
}
.pc-sub { font-size: 13px; color: var(--muted); line-height: 1.6; }
.pc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pc-meta span {
    font-size: 11px; font-weight: 500; padding: 3px 9px;
    border-radius: 100px; border: 1px solid var(--bord2); color: var(--muted);
}
.pc-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--blue);
    text-decoration: none; font-family: var(--fd);
    margin-top: auto; padding-top: 12px;
    opacity: 0; transform: translateY(8px);
    transition: opacity .35s, transform .35s;
}
.projet-card:hover .pc-link { opacity: 1; transform: translateY(0); }

/* ── PROCESS ─────────────────────────────────────────────── */
#process { background: var(--bg2); }

.process-sticky-wrapper {
    display: grid; grid-template-columns: 420px 1fr;
    min-height: 100vh;
    position: relative;
}

/* Panneau gauche (sticky) */
.process-left {
    position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 80px 60px 80px 60px;
    border-right: 1px solid var(--bord);
    background: var(--bg2);
    z-index: 2;
}
.process-left .section-title { font-size: clamp(28px, 3vw, 46px); }
.process-left-sub {
    font-size: 15px; color: var(--muted); line-height: 1.8;
    margin-top: 20px; max-width: 280px;
}

/* Barre progression verticale */
.process-vbar {
    position: absolute; right: -1px; top: 0; bottom: 0;
    width: 2px; background: transparent;
}
.process-vbar-fill {
    width: 100%; background: var(--grad);
    transform-origin: top; transform: scaleY(0);
    will-change: transform;
}

/* Etapes (droite) */
.process-steps {
    padding: 80px 60px;
    display: flex; flex-direction: column;
    gap: 0;
}

.process-step {
    padding: 56px 0;
    border-bottom: 1px solid var(--bord);
    opacity: 0.22;
    transform: translateX(30px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.process-step:last-child { border-bottom: none; }
.process-step.active { opacity: 1; transform: translateX(0); }

.ps-header {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 20px;
}
.ps-num {
    font-family: var(--fd); font-size: 11px; font-weight: 700;
    letter-spacing: .2em; color: rgba(79,172,254,.5);
}
.ps-icon { width: 32px; height: 32px; color: var(--blue); }

.ps-title {
    font-family: var(--fd); font-size: 26px; font-weight: 700;
    letter-spacing: -.02em; color: var(--white);
    margin-bottom: 14px;
}
.ps-desc { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 20px; }
.ps-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.ps-list li {
    font-size: 14px; color: var(--muted);
    display: flex; align-items: center; gap: 10px;
}
.ps-list li::before {
    content: '';
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--blue); flex-shrink: 0;
}
.ps-duration {
    font-size: 12px; font-weight: 600; color: var(--blue);
    letter-spacing: .05em;
}

/* CTA bas process */
.process-bottom {
    padding: 80px 60px;
    display: flex; align-items: center; justify-content: space-between; gap: 40px;
    background: var(--bg3); flex-wrap: wrap;
    border-top: 1px solid var(--bord);
}
.pb-text h3 {
    font-family: var(--fd); font-size: 26px; font-weight: 700;
    letter-spacing: -.025em; margin-bottom: 6px;
}
.pb-text p { font-size: 15px; color: var(--muted); }

/* ── CONTACT ─────────────────────────────────────────────── */
#contact {
    padding: 130px 0;
    position: relative; overflow: hidden;
}
.contact-glow {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(79,172,254,.04), transparent 65%);
    pointer-events: none;
}

.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 90px; align-items: start;
}

.contact-headline {
    font-family: var(--fd);
    font-size: clamp(32px, 3.5vw, 50px);
    font-weight: 700; letter-spacing: -.03em;
    line-height: 1.1; color: var(--white);
    margin: 18px 0 20px;
}
.contact-headline em {
    font-style: normal;
    background: var(--grad);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.contact-sub {
    font-size: 16px; color: var(--muted);
    line-height: 1.8; margin-bottom: 40px; max-width: 360px;
}

.contact-info { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.ci-item {
    display: flex; align-items: center; gap: 14px;
    font-size: 14px; color: var(--muted);
    text-decoration: none;
    transition: color .3s;
}
a.ci-item:hover { color: #fff; }
.ci-icon {
    width: 38px; height: 38px; flex-shrink: 0;
    border: 1px solid var(--bord2); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--blue);
}
.ci-icon svg { width: 16px; height: 16px; }
.ci-icon--live { border-color: rgba(34,197,94,.3); }
.live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34,197,94,.7);
    animation: pulse 2s ease-in-out infinite;
}
.ci-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.ci-val { font-size: 15px; color: var(--white); }

.contact-socials { display: flex; gap: 10px; }
.cs-link {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--bord2);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); text-decoration: none;
    transition: all .3s;
}
.cs-link svg { width: 16px; height: 16px; }
.cs-link:hover { border-color: var(--blue); color: var(--blue); background: rgba(79,172,254,.08); }

/* Formulaire */
.contact-form {
    display: flex; flex-direction: column; gap: 20px;
}
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.cf-field { position: relative; }
.cf-field label {
    display: block; font-size: 11px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 10px;
    transition: color .3s;
}
.cf-field:focus-within label { color: var(--blue); }

.cf-field input,
.cf-field textarea {
    width: 100%;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--bord2); border-radius: 10px;
    padding: 14px 18px; color: var(--white);
    font-family: var(--fb); font-size: 15px;
    outline: none;
    transition: border-color .3s, background .3s, box-shadow .3s;
    -webkit-appearance: none;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: rgba(255,255,255,.2); }
.cf-field input:focus,
.cf-field textarea:focus {
    border-color: rgba(79,172,254,.5);
    background: rgba(79,172,254,.04);
    box-shadow: 0 0 0 3px rgba(79,172,254,.1);
}
.cf-field textarea { resize: none; height: 130px; line-height: 1.6; }

.cf-select-wrap { position: relative; }
.cf-select-wrap select {
    width: 100%;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--bord2); border-radius: 10px;
    padding: 14px 44px 14px 18px; color: rgba(255,255,255,.5);
    font-family: var(--fb); font-size: 15px;
    outline: none; -webkit-appearance: none; appearance: none;
    transition: border-color .3s, background .3s, box-shadow .3s;
    cursor: pointer;
}
.cf-select-wrap select:focus {
    border-color: rgba(79,172,254,.5);
    background: rgba(79,172,254,.04);
    box-shadow: 0 0 0 3px rgba(79,172,254,.1);
    color: var(--white);
}
.cf-select-wrap select option { background: var(--bg3); color: var(--white); }
.cf-select-arrow {
    position: absolute; right: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--muted); pointer-events: none;
    width: 16px; height: 16px;
}

.cf-footer {
    display: flex; align-items: center;
    justify-content: space-between; gap: 20px; flex-wrap: wrap;
    margin-top: 4px;
}
.cf-note {
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; color: var(--muted);
}

/* Success */
.form-success {
    display: none; text-align: center;
    padding: 60px 40px;
    background: rgba(255,255,255,.02);
    border: 1px solid var(--bord2); border-radius: 16px;
}
.form-success.visible { display: block; }
.fs-icon {
    width: 64px; height: 64px; border-radius: 50%;
    border: 1px solid var(--blue); background: rgba(79,172,254,.1);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; color: var(--blue);
    box-shadow: 0 0 24px rgba(79,172,254,.2);
}
.fs-icon svg { width: 26px; height: 26px; }
.form-success h3 {
    font-family: var(--fd); font-size: 22px; font-weight: 700;
    letter-spacing: -.02em; margin-bottom: 10px;
}
.form-success p { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 28px; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer { background: var(--bg2); border-top: 1px solid var(--bord); }

.footer-grid {
    display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 60px; padding: 70px 0 56px;
}
.footer-logo {
    font-family: var(--fd); font-size: 22px; font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; display: inline-block; margin-bottom: 14px;
}
.footer-brand > p {
    font-size: 14px; color: var(--muted); line-height: 1.75;
    max-width: 270px; margin-bottom: 24px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--bord2);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); text-decoration: none;
    transition: all .3s;
}
.footer-socials a:hover { border-color: var(--blue); color: var(--blue); background: rgba(79,172,254,.08); }

.footer-nav h4 {
    font-family: var(--fd); font-size: 11px; font-weight: 700;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 20px;
}
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-nav ul a { font-size: 14px; color: rgba(255,255,255,.4); text-decoration: none; transition: color .3s; }
.footer-nav ul a:hover { color: var(--white); }

.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding: 28px 0; border-top: 1px solid var(--bord);
}
.footer-bottom p { font-size: 13px; color: var(--muted); }

/* ── POLISH FINAL ────────────────────────────────────────── */

/* Effet glow bleu sur hover carte projet */
.projet-card::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 18px;
    box-shadow: inset 0 0 0 1px rgba(79,172,254,0);
    transition: box-shadow .5s var(--ease);
    pointer-events: none;
}
.projet-card:hover::after {
    box-shadow: inset 0 0 0 1px rgba(79,172,254,.3),
                0 20px 60px rgba(79,172,254,.12);
}

/* Focus visible pour l'accessibilité */
:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Souligner gradient sur liens footer hover */
.footer-nav ul a {
    position: relative;
}
.footer-nav ul a::after {
    content: '';
    position: absolute; bottom: -2px; left: 0; right: 100%;
    height: 1px; background: var(--grad);
    transition: right .3s var(--ease);
}
.footer-nav ul a:hover::after { right: 0; }

/* Section process : numéro flottant en arrière-plan */
.process-step { position: relative; overflow: hidden; }
.process-step::before {
    content: attr(data-step);
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    font-family: var(--fd);
    font-size: 140px; font-weight: 700;
    letter-spacing: -.06em; line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(79,172,254,.06);
    pointer-events: none; user-select: none;
    transition: -webkit-text-stroke .5s;
}
.process-step.active::before {
    -webkit-text-stroke: 1px rgba(79,172,254,.12);
}

/* Trait lumineux sur le haut de chaque section */
#services::before,
#projets::before,
#contact::before {
    content: '';
    display: block; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79,172,254,.15), transparent);
}

/* Animation douce d'entrée sur les éléments form au focus */
.cf-field input, .cf-field textarea, .cf-select-wrap select {
    caret-color: var(--blue);
}

/* Effet de brillance sur le btn-primary */
.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%; left: -75%;
    width: 50%; height: 200%;
    background: rgba(255,255,255,.18);
    transform: skewX(-20deg) translateX(0);
    transition: left .6s var(--ease);
}
.btn-primary:hover::after {
    left: 125%;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
    .process-sticky-wrapper { grid-template-columns: 1fr; }
    .process-left { position: relative; height: auto; padding: 80px 40px 40px; border-right: none; border-bottom: 1px solid var(--bord); }
    .process-vbar { display: none; }
    .process-steps { padding: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1/-1; }
    .section-intro { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 900px) {
    .container { padding: 0 32px; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 56px; }
    .projets-header { grid-template-columns: 1fr; gap: 16px; }
    .hero-stats { position: relative; bottom: auto; right: auto; margin: 40px 0 0; }
    .hero-content { padding: 0 32px; }
}

@media (max-width: 700px) {
    #nav { padding: 0 24px; }
    .nav-links, .nav-cta { display: none; }
    .nav-burger { display: flex; }
    .container { padding: 0 24px; }
    .services-grid { grid-template-columns: 1fr; }
    .hero-content { padding: 0 24px; }
    .hero-stats { display: none; }
    .cf-row { grid-template-columns: 1fr; }
    .cf-footer { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 40px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .hero-scroll-hint { display: none; }
    .process-steps { padding: 24px; }
    .process-bottom { padding: 48px 24px; flex-direction: column; align-items: flex-start; }
    .projets-track { padding: 0 24px 20px; }
    .projet-card { width: 300px; }
    .pc-visual { height: 210px; }
    .services-cta-row { flex-direction: column; align-items: flex-start; }
    #services { padding: 80px 0 70px; }
    #projets, #contact { padding: 80px 0; }
    #process .process-left { padding: 60px 24px 32px; }
}
