/* ============================================================
   Digital Crossing — Feuille de style principale
   Design : moderne, visionnaire, dark premium + accents néon
   ============================================================ */

:root {
    --bg: #070a14;
    --bg-2: #0b1020;
    --surface: #0f1528;
    --surface-2: #141b33;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #eef1f8;
    --muted: #99a2bd;
    --muted-2: #6b7493;
    --cyan: #22d3ee;
    --violet: #a855f7;
    --blue: #3b82f6;
    --grad: linear-gradient(110deg, #22d3ee 0%, #6366f1 50%, #a855f7 100%);
    --grad-soft: linear-gradient(110deg, rgba(34,211,238,.16), rgba(168,85,247,.16));
    --radius: 18px;
    --radius-lg: 28px;
    --maxw: 1180px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --display: 'Space Grotesk', var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Fond ambient global */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(900px 500px at 15% -5%, rgba(34, 211, 238, .12), transparent 60%),
        radial-gradient(800px 500px at 95% 10%, rgba(168, 85, 247, .12), transparent 55%);
    z-index: -2;
    pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typographie utilitaire ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--display);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 18px;
}
/* Symbole de marque (rempli de la couleur du texte) devant chaque sur-titre */
.eyebrow::before {
    content: "";
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: currentColor;
    -webkit-mask: url(../img/logo-icon.png) center / contain no-repeat;
    mask: url(../img/logo-icon.png) center / contain no-repeat;
}

/* ----- Symbole de marque réutilisable (masque + remplissage libre) ----- */
.dc-symbol {
    -webkit-mask: url(../img/logo-icon.png) center / contain no-repeat;
    mask: url(../img/logo-icon.png) center / contain no-repeat;
    background: var(--grad);
    pointer-events: none;
}
.dc-symbol--watermark {
    position: absolute;
    z-index: 0;
    opacity: .055;
}
/* Hero : grand symbole dégradé à droite */
.hero__symbol { width: 580px; height: 580px; right: -90px; top: 50%; transform: translateY(-50%); opacity: .07; }
/* Expertise : symbole cyan, bas-droite */
.expertise__symbol { width: 440px; height: 440px; right: -70px; bottom: -70px; background: var(--cyan); opacity: .05; }
/* Produit : symbole violet dans la carte */
.product__symbol { width: 360px; height: 360px; right: 10px; bottom: -50px; background: var(--violet); opacity: .07; }
/* Contact : grand symbole dégradé centré */
.contact__symbol { width: 640px; height: 640px; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .06; }
/* Footer : symbole estompé, coin droit */
.footer__symbol { width: 300px; height: 300px; right: -40px; top: -60px; background: var(--muted); opacity: .04; }

/* Le contenu doit rester au-dessus des filigranes */
.hero__inner, .expertise__grid, .product__content, .contact__inner { position: relative; z-index: 2; }
.footer { position: relative; overflow: hidden; }
.footer__inner, .footer__bottom { position: relative; z-index: 2; }
.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.section__title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.8rem, 3.6vw, 2.9rem);
    line-height: 1.12;
    letter-spacing: -.02em;
}
.section__lead {
    color: var(--muted);
    font-size: 1.08rem;
    margin-top: 20px;
    max-width: 46ch;
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--display);
    font-weight: 600;
    font-size: .98rem;
    padding: 15px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
    background: var(--grad);
    color: #05070f;
    box-shadow: 0 10px 30px -8px rgba(99, 102, 241, .55);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -10px rgba(99, 102, 241, .7); }
.btn--ghost {
    background: rgba(255, 255, 255, .03);
    border-color: var(--border-strong);
    color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .07); transform: translateY(-3px); }
.btn--sm { padding: 12px 20px; font-size: .9rem; }
.btn--lg { padding: 18px 34px; font-size: 1.05rem; }

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background .35s, backdrop-filter .35s, border-color .35s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(7, 10, 20, .72);
    backdrop-filter: blur(16px);
    border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 16px; height: 92px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand__mark { width: 34px; height: 34px; color: #fff; }
.brand__text { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.brand__text span { color: var(--cyan); }
/* Logo officiel (gris foncé) rendu en clair sur le fond sombre */
.brand__logo { height: 64px; width: auto; filter: brightness(0) invert(1); opacity: .92; transition: opacity .25s; }
.brand:hover .brand__logo { opacity: 1; }
.brand__logo--footer { height: 40px; opacity: .85; margin-bottom: 4px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
    font-size: .95rem;
    color: var(--muted);
    transition: color .25s;
    position: relative;
}
.nav__links a:not(.nav__cta):hover { color: var(--text); }
.nav__links a:not(.nav__cta)::after {
    content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
    background: var(--grad); transition: width .3s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    color: var(--text);
    transition: background .25s, border-color .25s;
}
.nav__cta:hover { background: rgba(255,255,255,.06); border-color: var(--cyan); }
.nav__linkedin {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 42px; height: 42px; border-radius: 11px;
    border: 1px solid var(--border-strong); color: var(--muted);
    transition: color .25s, border-color .25s, background .25s, transform .25s;
}
.nav__linkedin svg { width: 20px; height: 20px; }
.nav__linkedin:hover { color: #fff; border-color: var(--cyan); background: rgba(34, 211, 238, .1); transform: translateY(-2px); }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .55; }
.hero__glow {
    position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
    width: 900px; height: 600px; z-index: -1;
    background: radial-gradient(circle at center, rgba(99, 102, 241, .22), transparent 60%);
    filter: blur(20px); pointer-events: none;
}
.hero__glow--bottom { top: auto; bottom: -30%; background: radial-gradient(circle at center, rgba(168,85,247,.18), transparent 60%); }
.hero__inner { position: relative; max-width: 880px; }
.hero__title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2rem, 3.8vw, 2.85rem);
    line-height: 1.08;
    letter-spacing: -.03em;
    margin-bottom: 20px;
}
.hero__title .grad { display: inline; }
.hero__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    color: var(--muted);
    max-width: 60ch;
    margin-bottom: 30px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 40px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__value {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { font-size: .9rem; color: var(--muted-2); max-width: 22ch; }
.hero__scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 14px; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; border-radius: 2px; background: var(--cyan); animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 0; top: 8px; } 30% { opacity: 1; } 60% { opacity: 1; } 100% { opacity: 0; top: 22px; } }

/* ---------- Sections génériques ---------- */
.section { padding: 110px 0; position: relative; }
.section__head { max-width: 680px; margin-bottom: 60px; }

/* ---------- Constat / intro ---------- */
.intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.intro__text { color: var(--muted); font-size: 1.15rem; padding-top: 8px; }
.section--intro { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Leviers ---------- */
.levers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.lever {
    position: relative;
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 26px 30px;
    overflow: hidden;
    transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.lever::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s;
}
.lever:hover { transform: translateY(-8px); box-shadow: 0 26px 50px -24px rgba(0,0,0,.7); }
.lever:hover::before { opacity: 1; }
.lever__icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: var(--grad-soft); color: var(--cyan);
    margin-bottom: 22px;
}
.lever__icon svg { width: 26px; height: 26px; }
.lever__title { font-family: var(--display); font-size: 1.18rem; font-weight: 600; margin-bottom: 12px; }
.lever__text { font-size: .95rem; color: var(--muted); }
.lever__index {
    position: absolute; top: 18px; right: 22px;
    font-family: var(--display); font-weight: 700; font-size: 1rem;
    color: var(--muted-2); opacity: .5;
}

/* ---------- Expertise ---------- */
.section--expertise { background: linear-gradient(180deg, transparent, rgba(15,21,40,.5), transparent); position: relative; overflow: hidden; }
.expertise__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.expertise__list { display: grid; gap: 16px; }
.expertise__list li, .product__features li {
    display: flex; align-items: flex-start; gap: 14px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 18px 20px;
    font-weight: 500; transition: border-color .3s, transform .3s;
}
.expertise__list li:hover { border-color: var(--border-strong); transform: translateX(4px); }
.tick {
    flex-shrink: 0; width: 24px; height: 24px; border-radius: 999px;
    background: var(--grad); color: #05070f;
    display: flex; align-items: center; justify-content: center;
}
.tick svg { width: 14px; height: 14px; }

/* ---------- Méthode ---------- */
.method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.method__step { position: relative; padding-top: 30px; }
.method__step::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--border);
}
.method__step::after {
    content: ""; position: absolute; top: -4px; left: 0; width: 36px; height: 10px; border-radius: 999px;
    background: var(--grad);
}
.method__num { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--cyan); }
.method__title { font-family: var(--display); font-size: 1.3rem; font-weight: 600; margin: 14px 0 10px; }
.method__text { color: var(--muted); font-size: .96rem; }

/* ---------- Produit Clic Connect ---------- */
.product__card {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center;
    background: linear-gradient(135deg, var(--surface-2), var(--bg-2));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 56px;
    position: relative; overflow: hidden;
}
.product__card::after {
    content: ""; position: absolute; top: -40%; right: -10%; width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(34,211,238,.16), transparent 65%); pointer-events: none;
}
.product__tag {
    display: inline-block; font-family: var(--display); font-size: .75rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--violet); border: 1px solid rgba(168,85,247,.4);
    border-radius: 999px; padding: 6px 14px; margin-bottom: 20px;
}
.product__title { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -.02em; }
.product__subtitle { font-size: 1.15rem; color: var(--text); margin: 12px 0 18px; font-weight: 500; }
.product__text { color: var(--muted); margin-bottom: 26px; }
.product__features { display: grid; gap: 12px; margin-bottom: 30px; }
.product__features li { padding: 14px 18px; font-size: .94rem; }

/* Mockup visuel */
.product__visual { position: relative; z-index: 1; }
.mock {
    background: var(--bg); border: 1px solid var(--border-strong); border-radius: 16px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); overflow: hidden;
}
.mock__bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.mock__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-2); }
.mock__bar span:first-child { background: #ff5f57; } .mock__bar span:nth-child(2){ background:#febc2e;} .mock__bar span:nth-child(3){ background:#28c840;}
.mock__body { padding: 22px; display: grid; gap: 16px; position: relative; }
.mock__row { display: flex; align-items: center; gap: 14px; }
.mock__icon { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); flex-shrink: 0; }
.mock__icon.on { background: var(--grad); }
.mock__line { height: 10px; border-radius: 5px; background: var(--surface-2); }
.mock__line.w90 { width: 90%; } .mock__line.w80 { width: 80%; } .mock__line.w70 { width: 70%; } .mock__line.w60 { width: 60%; }
.mock__row--hot .mock__line { background: linear-gradient(90deg, rgba(34,211,238,.5), rgba(168,85,247,.3)); }
.mock__chip {
    position: absolute; right: 18px; bottom: 14px;
    font-family: var(--display); font-size: .78rem; font-weight: 600;
    background: var(--grad); color: #05070f; padding: 7px 13px; border-radius: 999px;
    animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-7px);} }

/* Section preuve par l'outil : en-tête + grille d'outils */
.section--product { overflow: hidden; }
.section--product .section__head { margin-bottom: 44px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-top: 22px; }
.tool {
    position: relative; display: flex; flex-direction: column;
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden;
    transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.tool::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 3;
    background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; pointer-events: none;
}
.tool:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -24px rgba(0, 0, 0, .7); }
.tool:hover::before { opacity: 1; }

/* Visuel de l'outil */
.tool__media {
    position: relative; aspect-ratio: 16 / 9; overflow: hidden;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
}
.tool__slide {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
    opacity: 0; transition: opacity .7s ease, transform .5s var(--ease);
}
.tool__slide.is-active { opacity: 1; }
.tool:hover .tool__slide.is-active { transform: scale(1.05); }
/* Indicateurs du carrousel */
.tool__dots {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 7px; z-index: 2;
}
.tool__dot {
    width: 7px; height: 7px; border-radius: 999px;
    background: rgba(255, 255, 255, .45); transition: background .3s, width .3s;
}
.tool__dot.is-active { width: 20px; background: #fff; }
.tool__media-ph {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    color: var(--cyan);
    background:
        radial-gradient(circle at 28% 30%, rgba(34, 211, 238, .20), transparent 60%),
        radial-gradient(circle at 72% 72%, rgba(168, 85, 247, .20), transparent 60%),
        linear-gradient(180deg, var(--surface-2), var(--bg-2));
}
.tool__media-ph svg { width: 60px; height: 60px; opacity: .85; }
.tool__badge {
    position: absolute; top: 14px; right: 14px;
    font-family: var(--display); font-size: .7rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase; color: #fff;
    background: rgba(7, 10, 20, .72); backdrop-filter: blur(6px);
    border: 1px solid var(--border-strong); border-radius: 999px;
    padding: 6px 13px; white-space: nowrap;
}

/* Corps de la carte */
.tool__body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 28px; }
.tool__title { font-family: var(--display); font-size: 1.32rem; font-weight: 600; margin-bottom: 8px; }
.tool__subtitle { color: var(--text); font-weight: 500; margin-bottom: 14px; }
.tool__text { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.tool__features { display: grid; gap: 11px; margin-bottom: 24px; }
.tool__features li { display: flex; align-items: flex-start; gap: 12px; font-size: .93rem; color: var(--muted); }
.tool__cta {
    margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--display); font-weight: 600; font-size: .94rem; color: var(--cyan);
}
.tool__cta svg { width: 17px; height: 17px; transition: transform .25s; }
.tool:hover .tool__cta svg { transform: translateX(4px); }

/* ---------- À propos ---------- */
.section--about { border-top: 1px solid var(--border); }
.about__content { max-width: 760px; }
.about__signature { font-family: var(--display); font-weight: 600; margin-top: 24px; color: var(--cyan); }

/* ---------- Contact ---------- */
.section--contact { text-align: center; overflow: hidden; }
.contact__inner { max-width: 680px; margin: 0 auto; }
.contact__title { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.02em; line-height: 1.08; margin-bottom: 18px; }
.contact__text { color: var(--muted); font-size: 1.12rem; margin-bottom: 34px; }
.contact__email { margin-top: 26px; color: var(--muted); }
.contact__email a { color: var(--cyan); border-bottom: 1px solid transparent; transition: border-color .3s; }
.contact__email a:hover { border-color: var(--cyan); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 60px 0 30px; background: var(--bg-2); }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; }
.footer__brand p { color: var(--muted); font-size: .95rem; margin-top: 12px; max-width: 38ch; }
.footer__social { display: flex; gap: 12px; }
.social {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface); border: 1px solid var(--border); color: var(--muted);
    transition: color .3s, border-color .3s, transform .3s, background .3s;
}
.social svg { width: 20px; height: 20px; }
.social:hover { color: var(--text); border-color: var(--cyan); transform: translateY(-3px); background: var(--surface-2); }
.footer__bottom {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding-top: 24px; border-top: 1px solid var(--border);
    color: var(--muted-2); font-size: .86rem;
}

/* ---------- Animations au scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Animation d'entrée (intro / preloader)
   ============================================================ */
html.intro-lock { overflow: hidden; }
html.intro-done .intro { display: none !important; }

.intro {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
    cursor: pointer;
}

/* Deux panneaux qui se fendent à la sortie pour révéler le site */
.intro__panel {
    position: absolute;
    left: 0; right: 0;
    height: 50.5%;
    background: #05070f;
    z-index: 1;
    transition: transform .85s cubic-bezier(.85, 0, .15, 1);
}
.intro__panel--top { top: 0; box-shadow: 0 1px 0 #05070f; }
.intro__panel--bottom { bottom: 0; }
.intro--exit .intro__panel--top { transform: translateY(-100%); }
.intro--exit .intro__panel--bottom { transform: translateY(100%); }

/* Grille animée en fond */
.intro__bggrid {
    position: absolute; inset: -2px; z-index: 2; opacity: 0;
    background-image:
        linear-gradient(rgba(34, 211, 238, .10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, .10) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(circle at center, #000 5%, transparent 68%);
    mask-image: radial-gradient(circle at center, #000 5%, transparent 68%);
    animation: introGridIn 1.1s ease .1s both, introGridDrift 7s linear infinite;
}
@keyframes introGridIn { to { opacity: 1; } }
@keyframes introGridDrift { from { background-position: 0 0, 0 0; } to { background-position: 46px 46px, 46px 46px; } }
.intro--exit .intro__bggrid { opacity: 0; transition: opacity .5s; }

/* Scène centrale */
.intro__stage {
    position: relative; z-index: 3;
    display: flex; flex-direction: column; align-items: center;
}
.intro--exit .intro__stage { animation: introOut .55s ease forwards; }
@keyframes introOut { to { opacity: 0; transform: scale(1.18); filter: blur(7px); } }

/* Logo masqué + dégradé qui circule */
.intro__logo-wrap {
    position: relative;
    width: min(92vw, 1040px);
    aspect-ratio: 2.907;
    height: auto;
    animation: introLogoIn 1.2s cubic-bezier(.18, .9, .2, 1) both;
}
@keyframes introLogoIn {
    0% { opacity: 0; transform: scale(.55) rotate(-7deg); filter: blur(18px); }
    55% { opacity: 1; filter: blur(0); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}
.intro__logo {
    position: absolute; inset: 0;
    -webkit-mask: url(../img/logo-vertical-trim.png) center / contain no-repeat;
    mask: url(../img/logo-vertical-trim.png) center / contain no-repeat;
    background: linear-gradient(115deg, #22d3ee, #6366f1 35%, #a855f7 62%, #22d3ee 100%);
    background-size: 250% 250%;
    animation: introSweep 3s ease-in-out infinite;
}
@keyframes introSweep {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* Balayage lumineux qui traverse le logo (découpé par le masque) */
.intro__logo:not(.intro__logo--ghost)::after {
    content: "";
    position: absolute; left: -10%; right: -10%;
    height: 38%; top: -40%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .9), transparent);
    filter: blur(3px);
    mix-blend-mode: screen;
    animation: introScan 1.7s ease-in-out .5s 2 both;
}
@keyframes introScan {
    0% { transform: translateY(0); opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% { transform: translateY(330%); opacity: 0; }
}
/* Décalage chromatique (glitch) */
.intro__logo--ghost { mix-blend-mode: screen; opacity: 0; }
.intro__logo--r { background: #ff2d55; animation: introGlitchR 2.8s 1.3s 1 both; }
.intro__logo--c { background: #00e5ff; animation: introGlitchC 2.8s 1.3s 1 both; }
@keyframes introGlitchR {
    0%, 6% { opacity: 0; transform: translate(0, 0); }
    8% { opacity: .65; transform: translate(-8px, 3px); }
    12% { opacity: .4; transform: translate(6px, -3px); }
    16% { opacity: .55; transform: translate(-4px, 1px); }
    20%, 70% { opacity: 0; transform: translate(0, 0); }
    74% { opacity: .65; transform: translate(-9px, 2px); }
    79% { opacity: .4; transform: translate(7px, -3px); }
    84% { opacity: .55; transform: translate(-4px, 1px); }
    90%, 100% { opacity: 0; transform: translate(0, 0); }
}
@keyframes introGlitchC {
    0%, 6% { opacity: 0; transform: translate(0, 0); }
    8% { opacity: .65; transform: translate(8px, -3px); }
    12% { opacity: .4; transform: translate(-6px, 3px); }
    16% { opacity: .55; transform: translate(4px, -1px); }
    20%, 70% { opacity: 0; transform: translate(0, 0); }
    74% { opacity: .65; transform: translate(9px, -2px); }
    79% { opacity: .4; transform: translate(-7px, 3px); }
    84% { opacity: .55; transform: translate(4px, -1px); }
    90%, 100% { opacity: 0; transform: translate(0, 0); }
}

/* Trait + accroche */
.intro__tag {
    font-family: var(--display);
    font-size: clamp(1rem, 2.4vw, 1.5rem);
    font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--text);
    margin-top: clamp(6px, 1.4vh, 18px);
    max-width: 92vw;
    text-align: center;
    opacity: 0;
    animation: introTag .9s ease 2.4s both;
}
.intro__line {
    width: 0; height: 2px; margin: clamp(16px, 2.4vh, 26px) 0 0;
    background: var(--grad);
    box-shadow: 0 0 14px rgba(99, 102, 241, .8);
    animation: introLine .8s cubic-bezier(.2, 1, .3, 1) 1.8s forwards;
}
@keyframes introLine { to { width: clamp(180px, 30vw, 320px); } }
@keyframes introTag {
    from { opacity: 0; transform: translateY(10px); letter-spacing: .45em; }
    to { opacity: .85; transform: none; letter-spacing: .24em; }
}

/* Flash à la transition */
.intro__flash {
    position: absolute; inset: 0; z-index: 4; opacity: 0; pointer-events: none;
    background: radial-gradient(circle at center, #d8f3ff, #6366f1 38%, transparent 72%);
}
.intro--exit .intro__flash { animation: introFlash .55s ease forwards; }
@keyframes introFlash { 0% { opacity: 0; } 28% { opacity: .55; } 100% { opacity: 0; } }

/* Indice « passer » */
.intro__skip {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 5;
    font-family: var(--display); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
    color: var(--muted-2); opacity: 0;
    animation: introSkip .6s ease 3.2s forwards;
}
@keyframes introSkip { to { opacity: .55; } }
.intro--exit { pointer-events: none; }
.intro--exit .intro__skip { opacity: 0; transition: opacity .3s; }

/* ---------- En-tête centré et empilé (vue PC) ---------- */
@media (min-width: 721px) {
    html { scroll-padding-top: 130px; }
    .nav__inner {
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px 26px;
        height: auto;
        padding-top: 18px;
        padding-bottom: 16px;
        transition: padding-top .35s var(--ease), padding-bottom .35s var(--ease), gap .35s var(--ease);
    }
    .brand { flex-basis: 100%; justify-content: center; margin: 0; }
    .brand__logo { height: clamp(84px, 12vw, 128px); transition: height .35s var(--ease), opacity .25s; }
    .nav__links { justify-content: center; }
    .hero { padding-top: 224px; padding-bottom: 64px; }
    /* Contenu du hero centré pour s'aligner avec l'en-tête centré */
    .hero__inner { margin-inline: auto; text-align: center; }
    .hero__subtitle { margin-left: auto; margin-right: auto; }
    .hero__cta { justify-content: center; }
    .hero__stats { justify-content: center; }

    /* Rétrécissement au défilement */
    .nav.scrolled .nav__inner { padding-top: 9px; padding-bottom: 8px; gap: 2px 24px; }
    .nav.scrolled .brand__logo { height: 48px; }
    .nav.scrolled .nav__linkedin { width: 36px; height: 36px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .levers { grid-template-columns: repeat(2, 1fr); }
    .method { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .intro__grid, .expertise__grid { grid-template-columns: 1fr; gap: 32px; }
    .product__card { grid-template-columns: 1fr; padding: 40px 30px; }
    .product__visual { order: -1; max-width: 420px; }
}
@media (max-width: 720px) {
    .nav__links {
        position: fixed; inset: 84px 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: rgba(7,10,20,.96); backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--border);
        padding: 12px 24px 24px;
        transform: translateY(-120%); transition: transform .4s var(--ease);
    }
    .nav__links.open { transform: translateY(0); }
    .nav__links a { padding: 16px 0; border-bottom: 1px solid var(--border); }
    .nav__cta { text-align: center; margin-top: 10px; }
    .nav__burger { display: flex; }
    .brand__logo { height: 48px; }
    .hero__symbol { width: 340px; height: 340px; right: -110px; }
    .contact__symbol { width: 380px; height: 380px; }
    .expertise__symbol, .product__symbol, .footer__symbol { width: 260px; height: 260px; }
    .eyebrow::before { width: 17px; height: 17px; }
    .section { padding: 80px 0; }
    .levers { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: 1fr; }
    .hero__stats { gap: 28px; }
    .stat { flex: 1 1 40%; }
    .product__card { padding: 32px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    .intro { display: none !important; }
    html.intro-lock { overflow: auto !important; }
}
