/* ==========================================================================
   Kuettu Corporation — Design System Complet (Light par défaut & Dark)
   Look & Feel : Tech Corporate / SaaS Enterprise
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens Thème Clair (PAR DÉFAUT)
   -------------------------------------------------------------------------- */
:root {
    --theme: light;
    --bg-color: #f8fafc;
    --bg-rgb: 248, 250, 252;
    --surface-rgb: 255, 255, 255;
    --surface-subtle: #f1f5f9;
    --text-strong: #0f172a;        /* slate-900 */
    --text-body: #334155;          /* slate-700 */
    --text-muted: #64748b;         /* slate-500 */
    --border-rgb: 15, 23, 42;
    --border-color: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.16);
    --card-bg: #ffffff;
    --card-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
    --header-bg: rgba(255, 255, 255, 0.85);
    --header-border: rgba(15, 23, 42, 0.06);
    --nav-pill-bg: rgba(15, 23, 42, 0.03);
    --nav-pill-border: rgba(15, 23, 42, 0.07);
    --nav-link-color: #475569;
    --nav-link-hover: #0f172a;
    --nav-link-active-bg: rgba(15, 23, 42, 0.06);
    
    /* Couleurs de marque */
    --butterfly: 74, 14, 102;      /* #4a0e66 violet officiel du logo papillon */
    --electric: 59, 130, 246;      /* #3b82f6 bleu électrique */
    --violet: 107, 33, 168;        /* #6b21a8 violet profond */
    --cyan: 14, 165, 233;          /* #0ea5e9 cyan */

    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;
}

/* --------------------------------------------------------------------------
   Tokens Thème Sombre (classe .dark sur html)
   -------------------------------------------------------------------------- */
html.dark {
    --theme: dark;
    --bg-color: #07080c;
    --bg-rgb: 7, 8, 12;
    --surface-rgb: 15, 18, 26;
    --surface-subtle: #141823;
    --text-strong: #ffffff;
    --text-body: #cbd5e1;          /* slate-300 */
    --text-muted: #94a3b8;         /* slate-400 */
    --border-rgb: 255, 255, 255;
    --border-color: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.18);
    --card-bg: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
    --card-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
    --header-bg: rgba(7, 8, 12, 0.78);
    --header-border: rgba(255, 255, 255, 0.06);
    --nav-pill-bg: rgba(255, 255, 255, 0.02);
    --nav-pill-border: rgba(255, 255, 255, 0.06);
    --nav-link-color: #94a3b8;
    --nav-link-hover: #ffffff;
    --nav-link-active-bg: rgba(255, 255, 255, 0.07);
}

/* --------------------------------------------------------------------------
   Base & Typographie globale
   -------------------------------------------------------------------------- */
html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 90px;
    background-color: var(--bg-color);
    color: var(--text-body);
}

body {
    overflow-x: hidden;
    background-color: var(--bg-color);
    color: var(--text-body);
    transition: background-color 0.3s ease, color 0.3s ease;
}

[x-cloak] { display: none !important; }
html.menu-open { overflow: hidden; }

::selection {
    background: rgba(107, 33, 168, 0.18);
    color: #4a0e66;
}
html.dark ::selection {
    background: rgba(var(--electric), 0.35);
    color: #ffffff;
}

/* Barre de défilement */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb {
    background: rgba(var(--border-rgb), 0.15);
    border-radius: 10px;
    border: 2px solid var(--bg-color);
}
::-webkit-scrollbar-thumb:hover { background: rgba(var(--border-rgb), 0.28); }

:focus-visible { outline: 2px solid rgb(var(--violet)); outline-offset: 3px; border-radius: 8px; }

/* Accessibilité */
.skip-link {
    position: fixed; left: 1rem; top: -100px; z-index: 200;
    padding: .75rem 1.25rem; border-radius: .75rem;
    background: #0f172a; color: #fff; font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* Champ piège anti-spam */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   États initiaux des animations (GSAP)
   ========================================================================== */
.js [data-reveal],
.js [data-reveal-item],
.js .hero-word > span { opacity: 0; }

.anim-fallback [data-reveal],
.anim-fallback [data-reveal-item],
.anim-fallback .hero-word > span,
.reduced-motion [data-reveal],
.reduced-motion [data-reveal-item],
.reduced-motion .hero-word > span { opacity: 1 !important; transform: none !important; }

/* ==========================================================================
   Préchargeur avec papillon Kuettu
   ========================================================================== */
#preloader {
    position: fixed; inset: 0; z-index: 150;
    display: grid; place-items: center; align-content: center; gap: 1.5rem;
    background: var(--bg-color);
    transition: opacity .6s var(--ease-out), visibility .6s;
}
#preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.no-js #preloader { display: none; }
.preloader-logo .logo-mark {
    width: 64px; height: 64px;
    animation: preloaderPulse 1.4s ease-in-out infinite;
}
.preloader-bar { width: 120px; height: 2px; border-radius: 2px; background: rgba(var(--border-rgb), .08); overflow: hidden; }
.preloader-bar span {
    display: block; height: 100%; width: 40%;
    background: linear-gradient(90deg, #4a0e66, #6b21a8, #3b82f6);
    animation: preloaderBar 1s var(--ease-out) infinite;
}
@keyframes preloaderBar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes preloaderPulse { 50% { transform: scale(.92); } }

/* ==========================================================================
   Fond global : Grille + Halos
   ========================================================================== */
.page-backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.backdrop-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(var(--border-rgb), .03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(var(--border-rgb), .03) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
}
.backdrop-glow { position: absolute; border-radius: 9999px; filter: blur(120px); opacity: .45; }
.backdrop-glow--a {
    width: 720px; height: 520px; left: 50%; top: -280px; transform: translateX(-60%);
    background: radial-gradient(circle, rgba(107, 33, 168, .2), transparent 70%);
}
.backdrop-glow--b {
    width: 520px; height: 420px; right: -160px; top: 120px;
    background: radial-gradient(circle, rgba(59, 130, 246, .15), transparent 70%);
}
html.dark .backdrop-glow--a { background: radial-gradient(circle, rgba(var(--electric), .45), transparent 70%); opacity: .5; }
html.dark .backdrop-glow--b { background: radial-gradient(circle, rgba(var(--violet), .35), transparent 70%); opacity: .5; }

.backdrop-noise {
    position: absolute; inset: 0; opacity: .025; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Logo Papillon Officiel
   ========================================================================== */
.logo-mark {
    display: inline-flex; align-items: center; justify-content: center;
    position: relative;
    transition: transform .3s var(--ease-spring);
    flex-shrink: 0;
}
.logo-mark:hover { transform: scale(1.08); }
.logo-img { display: block; height: 100%; width: 100%; object-fit: contain; }

html:not(.dark) .logo-img--dark { display: none !important; }
html:not(.dark) .logo-img--light { display: block !important; }
html.dark .logo-img--light { display: none !important; }
html.dark .logo-img--dark { display: block !important; }

/* ==========================================================================
   En-tête & Navigation (Navbar)
   ========================================================================== */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background-color .4s var(--ease-out), border-color .4s, backdrop-filter .4s;
}
.site-header.is-scrolled {
    background: var(--header-bg);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-bottom-color: var(--header-border);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
}

.nav-pill {
    padding: 5px; border-radius: 9999px;
    border: 1px solid var(--nav-pill-border);
    background: var(--nav-pill-bg);
}
.nav-link {
    position: relative; display: inline-block;
    padding: .5rem 1rem; border-radius: 9999px;
    font-size: .875rem; font-weight: 500; color: var(--nav-link-color);
    transition: color .25s, background-color .25s;
}
.nav-link:hover { color: var(--nav-link-hover); background: rgba(var(--border-rgb), .04); }
.nav-link.is-active {
    color: var(--text-strong);
    background: var(--nav-link-active-bg);
    font-weight: 600;
}
.nav-link[aria-expanded="true"] [data-lucide], .nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Méga-Menu */
.mega-menu {
    border-radius: 1.25rem;
    background: var(--card-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .15), 0 0 0 1px rgba(15, 23, 42, .04);
}
html.dark .mega-menu {
    background: rgba(15, 18, 26, .94);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.3);
}
.mega-item { display: flex; align-items: center; gap: .85rem; padding: .85rem; border-radius: .9rem; transition: background-color .25s; }
.mega-item:hover { background: rgba(var(--accent, var(--butterfly)), .06); }
.mega-icon {
    display: inline-grid; place-items: center; flex-shrink: 0;
    width: 40px; height: 40px; border-radius: .75rem;
    color: rgb(var(--accent)); background: rgba(var(--accent), .1);
    border: 1px solid rgba(var(--accent), .2);
}

/* Bouton Theme Toggle */
.theme-toggle-btn {
    display: inline-grid; place-items: center;
    width: 38px; height: 38px; border-radius: 50%;
    color: var(--text-body);
    background: var(--nav-pill-bg);
    border: 1px solid var(--border-color);
    transition: all .25s var(--ease-spring);
}
.theme-toggle-btn:hover {
    color: var(--text-strong);
    transform: scale(1.08) rotate(15deg);
    border-color: rgba(var(--butterfly), .3);
    background: rgba(var(--butterfly), .08);
}
.theme-toggle-icon { display: flex; align-items: center; justify-content: center; }

/* Burger */
.burger {
    position: relative; width: 42px; height: 42px; border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--nav-pill-bg);
}
.burger span {
    position: absolute; left: 12px; right: 12px; height: 1.5px;
    background: var(--text-strong); border-radius: 2px;
    transition: transform .4s var(--ease-out), top .4s var(--ease-out);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 24px; }
.burger.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* Menu mobile */
.mobile-menu {
    position: fixed; inset: 0; z-index: 55;
    background: var(--card-bg);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
html.dark .mobile-menu { background: rgba(7, 8, 12, .97); }
.mobile-link-wrap { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); transition-delay: calc(var(--i) * 50ms + 80ms); }
.mobile-link-wrap.is-in { opacity: 1; transform: none; }
.mobile-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem .25rem; border-bottom: 1px solid var(--border-color);
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.75rem; font-weight: 700;
    color: var(--text-strong); letter-spacing: -.02em;
}
.mobile-link svg { opacity: .3; transition: transform .3s, opacity .3s; }
.mobile-link:hover svg, .mobile-link.is-active svg { opacity: 1; transform: translateX(4px); }
.mobile-link.is-active { color: rgb(var(--violet)); }

/* ==========================================================================
   Boutons (élévation, ripple)
   ========================================================================== */
.btn {
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .8rem 1.4rem; border-radius: 9999px;
    font-size: .925rem; font-weight: 600; line-height: 1; white-space: nowrap;
    transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s, border-color .25s, color .25s;
    will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-sm { padding: .6rem 1.05rem; font-size: .84rem; }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn .btn-arrow { transition: transform .35s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-primary {
    color: #ffffff !important;
    background: linear-gradient(135deg, #4a0e66 0%, #6b21a8 45%, #2563eb 100%);
    box-shadow: 0 8px 24px -6px rgba(74, 14, 102, 0.4), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(135deg, #581878, #7c3aed 50%, #3b82f6);
    opacity: 0; transition: opacity .35s;
}
.btn-primary:hover {
    box-shadow: 0 14px 32px -8px rgba(74, 14, 102, 0.55), 0 0 0 4px rgba(107, 33, 168, 0.12);
}
.btn-primary:hover::before { opacity: 1; }

.btn-secondary {
    color: var(--text-strong);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.btn-secondary:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.1);
}

.btn-ghost { color: var(--text-body); }
.btn-ghost:hover { color: var(--text-strong); background: rgba(var(--border-rgb), .05); transform: none; }

.ripple {
    position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
    background: rgba(255,255,255,.35); transform: scale(0);
    animation: ripple .65s var(--ease-out) forwards;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

.link-arrow {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .9rem; font-weight: 600; color: var(--text-strong);
    transition: gap .3s var(--ease-out), color .3s;
}
.link-arrow:hover { gap: .65rem; color: rgb(var(--accent, var(--violet))); }

/* ==========================================================================
   Typographie & Accents
   ========================================================================== */
.eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .4rem .85rem .4rem .65rem; border-radius: 9999px;
    font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: #581878; background: rgba(74, 14, 102, .08); border: 1px solid rgba(74, 14, 102, .2);
}
html.dark .eyebrow {
    color: #c084fc; background: rgba(99, 102, 241, .08); border: 1px solid rgba(129, 140, 248, .2);
}
.eyebrow::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: #6b21a8; box-shadow: 0 0 10px #6b21a8;
}

.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: var(--text-strong);
    font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.08; letter-spacing: -.035em;
}
.section-subtitle {
    font-size: 1.075rem; line-height: 1.7; color: var(--text-muted); max-width: 42rem;
}

.text-gradient {
    background: linear-gradient(120deg, #4a0e66 0%, #6b21a8 35%, #2563eb 70%, #0284c7 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: gradientShift 8s ease-in-out infinite;
}
html.dark .text-gradient {
    background: linear-gradient(120deg, #93c5fd 0%, #818cf8 40%, #c084fc 75%, #67e8f9 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes gradientShift { 50% { background-position: 100% center; } }

.tag {
    display: inline-flex; align-items: center; padding: .3rem .7rem; border-radius: 9999px;
    font-size: .72rem; font-weight: 600; color: rgb(var(--accent, var(--violet)));
    background: rgba(var(--accent, var(--violet)), .08); border: 1px solid rgba(var(--accent, var(--violet)), .2);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding-top: clamp(8rem, 16vh, 11rem); padding-bottom: clamp(4rem, 10vh, 7rem); }
.hero-badge {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .35rem .4rem .35rem .4rem; padding-right: 1rem; border-radius: 9999px;
    font-size: .82rem; color: var(--text-body);
    background: var(--card-bg); border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: border-color .3s, background-color .3s;
}
.hero-badge:hover { border-color: rgba(var(--violet), .4); background: rgba(var(--violet), .04); }
.hero-badge-pill {
    padding: .2rem .6rem; border-radius: 9999px; font-size: .7rem; font-weight: 700;
    letter-spacing: .04em; color: #fff;
    background: linear-gradient(135deg, #4a0e66, #2563eb);
}

.hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: var(--text-strong);
    font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1.02; letter-spacing: -.045em;
}
.hero-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-word > span { display: inline-block; will-change: transform; }

.hero-stage { position: relative; margin-top: clamp(3.5rem, 8vw, 6rem); perspective: 1600px; }
.hero-stage-glow {
    position: absolute; left: 10%; right: 10%; top: 10%; height: 70%;
    background: radial-gradient(ellipse at center, rgba(107, 33, 168, .2), rgba(59, 130, 246, .12) 45%, transparent 70%);
    filter: blur(60px); z-index: 0;
}
.hero-frame {
    position: relative; z-index: 1;
    border-radius: 1.5rem; padding: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 40px 90px -25px rgba(15, 23, 42, .14), 0 0 0 1px rgba(15, 23, 42, .04);
    transform-origin: center top;
}
html.dark .hero-frame {
    background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.02));
    box-shadow: 0 50px 100px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.4);
}
.hero-frame-inner {
    border-radius: 1.05rem; overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.floating-chip {
    position: absolute; z-index: 2;
    display: flex; align-items: center; gap: .6rem;
    padding: .65rem .9rem; border-radius: 1rem;
    background: var(--card-bg);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, .12);
    font-size: .8rem; color: var(--text-strong);
    animation: float 6s ease-in-out infinite;
}
.floating-chip .chip-icon {
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: .6rem;
    color: rgb(var(--accent)); background: rgba(var(--accent), .12);
}
@keyframes float { 50% { transform: translateY(-10px); } }

/* Dashboard UI */
.dash { display: grid; grid-template-columns: 200px 1fr; min-height: 420px; font-size: .78rem; }
.dash-side { border-right: 1px solid var(--border-color); padding: 1rem .75rem; background: var(--surface-subtle); }
.dash-nav { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: .6rem; color: var(--text-muted); }
.dash-nav.is-active { color: var(--text-strong); background: rgba(var(--border-rgb), .06); font-weight: 600; }
.dash-main { padding: 1.25rem; display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); grid-auto-rows: min-content; background: var(--card-bg); }
.dash-card { border-radius: .9rem; padding: 1rem; background: var(--surface-subtle); border: 1px solid var(--border-color); }
.dash-label { color: var(--text-muted); font-size: .72rem; }
.dash-value { display: block; margin-top: .35rem; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.35rem; color: var(--text-strong); letter-spacing: -.02em; }
.dash-delta { font-size: .7rem; color: #10b981; font-weight: 600; }
.dash-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin-top: 1rem; }
.dash-bars span { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #4a0e66, #6366f1); transform-origin: bottom; }
.dash-row { display: flex; align-items: center; justify-content: space-between; padding: .55rem 0; border-bottom: 1px dashed var(--border-color); color: var(--text-body); }
.dash-row:last-child { border-bottom: 0; }
.dash-dot { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--c)); box-shadow: 0 0 10px rgb(var(--c)); }

@media (max-width: 767px) {
    .dash { grid-template-columns: 1fr; min-height: 0; }
    .dash-side { display: none; }
    .dash-main { grid-template-columns: 1fr 1fr; padding: .85rem; gap: .65rem; }
    .dash-main > .dash-wide { grid-column: span 2; }
}

/* ==========================================================================
   Cartes Spotlight
   ========================================================================== */
.spotlight-card {
    --mx: 50%; --my: 50%; --accent: var(--violet);
    position: relative; overflow: hidden; isolation: isolate;
    border-radius: var(--radius-xl);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s var(--ease-out);
}
.spotlight-card::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(520px circle at var(--mx) var(--my), rgba(var(--accent), .1), transparent 42%);
    opacity: 0; transition: opacity .4s;
}
.spotlight-border {
    position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; padding: 1px;
    background: radial-gradient(380px circle at var(--mx) var(--my), rgba(var(--accent), .6), transparent 40%);
    -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;
}
.spotlight-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--accent), .4);
    box-shadow: 0 25px 50px -20px rgba(var(--accent), .25);
}
.spotlight-card:hover::before, .spotlight-card:hover .spotlight-border { opacity: 1; }

.product-visual {
    position: relative; padding: 1.5rem 1.5rem 0; overflow: hidden;
    background: radial-gradient(ellipse 80% 70% at 50% 100%, rgba(var(--accent), .12), transparent 70%);
    border-bottom: 1px solid var(--border-color);
}
.product-visual .mockup { transform: translateY(14px); transition: transform .7s var(--ease-out); }
.product-card:hover .product-visual .mockup { transform: translateY(4px) scale(1.015); }

.product-icon {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: .9rem;
    color: rgb(var(--accent)); background: rgba(var(--accent), .1); border: 1px solid rgba(var(--accent), .22);
}
.check-dot {
    flex-shrink: 0; display: grid; place-items: center; width: 18px; height: 18px;
    margin-top: 1px; border-radius: 50%;
    color: rgb(var(--accent, var(--violet))); background: rgba(var(--accent, var(--violet)), .14);
}

.feature-card { padding: 1.75rem; }
.feature-icon {
    display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: .9rem;
    color: rgb(var(--accent)); background: linear-gradient(135deg, rgba(var(--accent), .15), rgba(var(--accent), .03));
    border: 1px solid rgba(var(--accent), .25);
}

/* ==========================================================================
   Maquettes d'interface
   ========================================================================== */
.mockup {
    --accent: var(--electric);
    border-radius: 1rem 1rem 0 0; overflow: hidden;
    background: #0f172a; border: 1px solid rgba(255,255,255,.1); border-bottom: 0;
    box-shadow: 0 -10px 40px -20px rgba(var(--accent), .4);
    font-size: .7rem; color: #94a3b8;
}
.mockup-bar { display: flex; align-items: center; gap: 5px; padding: .6rem .8rem; border-bottom: 1px solid rgba(255,255,255,.05); background: rgba(255,255,255,.02); }
.mockup-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.2); }
.mockup-bar span { margin-left: .6rem; font-family: 'JetBrains Mono', monospace; font-size: .65rem; color: #94a3b8; }
.mockup-bar em { margin-left: auto; font-style: normal; font-size: .62rem; color: rgb(var(--accent)); font-weight: 600; }

.mock-line { height: 7px; border-radius: 4px; background: rgba(255,255,255,.1); }
.mock-video { position: relative; aspect-ratio: 16/9; border-radius: .6rem; background: linear-gradient(135deg, rgba(var(--accent), .35), rgba(var(--accent), .05)); display: grid; place-items: center; }
.mock-play { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: rgba(255,255,255,.2); backdrop-filter: blur(6px); }
.mock-progress { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.15); }
.mock-progress span { display: block; height: 100%; border-radius: inherit; background: #fff; }
.mock-row { display: flex; align-items: center; gap: .45rem; padding: .45rem .5rem; border-radius: .45rem; background: rgba(255,255,255,.03); }
.mock-row.is-active { color: #fff; background: rgba(var(--accent), .25); font-weight: 600; }
.mock-check { width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); }
.mock-check.is-done { border-color: rgb(var(--accent)); background: rgb(var(--accent)); }
.mock-kpi { display: flex; align-items: center; justify-content: space-between; padding: .65rem .75rem; border-radius: .6rem; background: rgba(255,255,255,.04); }
.mock-kpi-label { display: block; font-size: .62rem; color: #94a3b8; }
.mock-kpi-value { display: block; margin-top: 2px; font-weight: 700; font-size: .95rem; color: #fff; }

.mock-tile { display: flex; flex-direction: column; gap: .4rem; padding: .6rem; border-radius: .55rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.05); }
.mock-tile.is-active { border-color: rgba(var(--accent), .5); background: rgba(var(--accent), .15); color: #fff; font-weight: 600; }
.mock-tile-dot { width: 16px; height: 16px; border-radius: 5px; background: rgba(var(--accent), .3); }
.mock-receipt { display: flex; flex-direction: column; gap: .4rem; padding: .7rem; border-radius: .6rem; background: rgba(255,255,255,.04); font-family: 'JetBrains Mono', monospace; font-size: .62rem; }
.mock-sep { border-top: 1px dashed rgba(255,255,255,.15); margin: .2rem 0; }
.mock-pay { margin-top: .3rem; padding: .45rem; border-radius: .45rem; text-align: center; font-family: Inter, sans-serif; font-weight: 700; color: #04130d; background: rgb(var(--accent)); }

.mock-map {
    position: relative; height: 150px; overflow: hidden;
    background-color: #0b1016;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 22px 22px;
}
.mock-route { animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.mock-pin { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: rgb(var(--accent)); box-shadow: 0 0 0 4px rgba(var(--accent), .2); }
.mock-pin.is-live::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgb(var(--accent)); animation: ping 1.8s var(--ease-out) infinite; }
@keyframes ping { to { transform: scale(2.6); opacity: 0; } }
.mock-chip { position: absolute; display: flex; align-items: center; gap: .35rem; padding: .3rem .55rem; border-radius: 9999px; font-size: .6rem; color: #e2e8f0; background: rgba(13,16,23,.95); border: 1px solid rgba(var(--accent), .35); }
.mock-stat { padding: .55rem .65rem; border-radius: .55rem; background: rgba(255,255,255,.04); }
.mock-stat span { display: block; font-size: .6rem; color: #94a3b8; }
.mock-stat b { display: block; margin-top: 2px; font-size: .9rem; color: #fff; }

.mock-orbit { position: relative; height: 210px; display: grid; place-items: center; overflow: hidden; }
.mock-orbit-ring { position: absolute; width: 150px; height: 150px; border-radius: 50%; border: 1px dashed rgba(var(--accent), .35); animation: spin 24s linear infinite; }
.mock-orbit-ring--2 { width: 220px; height: 220px; border-style: solid; border-color: rgba(255,255,255,.05); animation-duration: 40s; animation-direction: reverse; }
.mock-orbit-core {
    position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 1rem;
    box-shadow: 0 0 40px rgba(var(--accent), .4);
}
.mock-orbit-node {
    position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px;
    display: grid; place-items: center; border-radius: .7rem;
    color: rgb(var(--c)); background: #0d1017; border: 1px solid rgba(var(--c), .4);
    box-shadow: 0 0 18px -4px rgba(var(--c), .7);
    animation: orbit 16s linear infinite;
    --r: 75px;
}
@keyframes orbit {
    from { transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a))); }
    to   { transform: rotate(calc(var(--a) + 360deg)) translateX(var(--r)) rotate(calc(-1 * var(--a) - 360deg)); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Chiffres Clés (Stats)
   ========================================================================== */
.stats-shell {
    position: relative; padding: clamp(2rem, 5vw, 4rem); border-radius: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}
.stats-shell::after {
    content: ''; position: absolute; left: 50%; top: 0; width: 60%; height: 1px; transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(var(--violet), .8), transparent);
}
.stats-grid {
    border-radius: 1.25rem; overflow: hidden;
    background: var(--border-color);
}
.stat-cell {
    padding: 1.75rem 1.5rem;
    background: var(--card-bg);
    transition: background-color .4s;
}
.stat-cell:hover { background: var(--surface-subtle); }
.stat-value {
    display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
    font-size: clamp(2.1rem, 4vw, 3.25rem); line-height: 1; color: var(--text-strong);
    letter-spacing: -.04em; font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Défilement Infini (Marquee)
   ========================================================================== */
.marquee {
    position: relative; overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 1.25rem; width: max-content; animation: marquee var(--duration, 50s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee--reverse .marquee-track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(calc(-50% - .625rem)); } }

.testimonial-card {
    width: min(380px, 82vw); flex-shrink: 0; padding: 1.75rem; border-radius: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: border-color .3s, transform .4s var(--ease-out);
}
.testimonial-card:hover {
    border-color: rgba(var(--violet), .35); transform: translateY(-3px);
}
.avatar {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    font-size: .8rem; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #4a0e66, #2563eb);
}

.partner-chip {
    display: inline-flex; align-items: center; gap: .7rem; flex-shrink: 0;
    padding: 1rem 1.5rem; border-radius: 1rem;
    font-weight: 600; color: var(--text-body);
    background: var(--card-bg); border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    transition: color .3s, border-color .3s;
}
.partner-chip:hover { color: var(--text-strong); border-color: rgba(var(--violet), .3); }

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-shell {
    --mx: 50%; --my: 50%;
    position: relative; overflow: hidden; isolation: isolate;
    padding: clamp(2.25rem, 6vw, 4.5rem); border-radius: 2rem;
    background:
        radial-gradient(600px circle at var(--mx) var(--my), rgba(107, 33, 168, .12), transparent 45%),
        linear-gradient(135deg, rgba(74, 14, 102, .08), rgba(59, 130, 246, .06) 50%, var(--card-bg));
    border: 1px solid rgba(107, 33, 168, .2);
    box-shadow: var(--card-shadow);
}
html.dark .cta-shell {
    background:
        radial-gradient(600px circle at var(--mx) var(--my), rgba(var(--electric), .16), transparent 45%),
        linear-gradient(135deg, rgba(var(--electric), .12), rgba(var(--violet), .1) 50%, rgba(255,255,255,.02));
    border-color: rgba(129, 140, 248, .22);
}
.cta-beam {
    position: absolute; inset: -50%; z-index: 0;
    background: conic-gradient(from 0deg, transparent 0 70%, rgba(107, 33, 168, .2) 80%, transparent 90%);
    animation: spin 12s linear infinite; opacity: .4;
    mask-image: radial-gradient(circle, transparent 30%, #000 70%);
    -webkit-mask-image: radial-gradient(circle, transparent 30%, #000 70%);
}

/* ==========================================================================
   Pages Internes
   ========================================================================== */
.page-hero { padding-top: clamp(8rem, 18vh, 11rem); padding-bottom: clamp(3rem, 8vh, 5rem); position: relative; }
.page-title {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: var(--text-strong);
    font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.04; letter-spacing: -.045em;
}
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text-strong); }

.timeline { position: relative; }
.timeline::before {
    content: ''; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 1px;
    background: linear-gradient(180deg, #4a0e66, #3b82f6, transparent);
}
.timeline-item { position: relative; padding-left: 2.75rem; padding-bottom: 2.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute; left: 4px; top: 6px; width: 15px; height: 15px; border-radius: 50%;
    background: var(--bg-color); border: 2px solid #6b21a8; box-shadow: 0 0 14px rgba(107, 33, 168, .6);
}

.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-q {
    display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.4rem 0; text-align: left; font-weight: 700; color: var(--text-strong); font-size: 1.05rem;
}
.faq-icon {
    flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid var(--border-color); transition: transform .4s var(--ease-out), background-color .3s;
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); background: rgba(var(--violet), .15); border-color: rgba(var(--violet), .4); }

/* ==========================================================================
   Formulaires
   ========================================================================== */
.field-label { display: block; margin-bottom: .5rem; font-size: .85rem; font-weight: 600; color: var(--text-strong); }
.field-input {
    width: 100%; padding: .9rem 1rem; border-radius: .9rem;
    font-size: .95rem; color: var(--text-strong);
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    transition: border-color .25s, box-shadow .25s;
}
.field-input::placeholder { color: var(--text-muted); }
.field-input:hover { border-color: var(--border-hover) !important; }
.field-input:focus {
    outline: none; border-color: rgb(var(--violet)) !important;
    box-shadow: 0 0 0 4px rgba(var(--violet), .15) !important;
}
.field-input.is-invalid { border-color: rgba(244, 63, 94, .6) !important; box-shadow: 0 0 0 4px rgba(244, 63, 94, .1) !important; }
select.field-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important; background-position: right 1rem center !important; background-size: 16px !important; padding-right: 2.75rem;
}
select.field-input option { background: var(--card-bg); color: var(--text-strong); }
.field-error { margin-top: .4rem; font-size: .8rem; color: #e11d48; font-weight: 500; }

.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span {
    display: inline-flex; padding: .55rem .95rem; border-radius: 9999px; font-size: .82rem;
    color: var(--text-body); border: 1px solid var(--border-color); background: var(--card-bg);
    cursor: pointer; transition: all .25s;
}
.chip-radio span:hover { color: var(--text-strong); border-color: var(--border-hover); }
.chip-radio input:checked + span {
    color: #4a0e66; background: rgba(74, 14, 102, .08); border-color: rgba(74, 14, 102, .5); font-weight: 600;
}
html.dark .chip-radio input:checked + span {
    color: #fff; background: rgba(var(--electric), .15); border-color: rgba(var(--electric), .6);
}

.alert { display: flex; gap: .75rem; padding: 1rem 1.15rem; border-radius: 1rem; font-size: .9rem; }
.alert-success { color: #065f46; background: #ecfdf5; border: 1px solid #a7f3d0; }
html.dark .alert-success { color: #a7f3d0; background: rgba(16, 185, 129, .08); border-color: rgba(16, 185, 129, .3); }
.alert-error { color: #9f1239; background: #fff1f2; border: 1px solid #fecdd3; }
html.dark .alert-error { color: #fecdd3; background: rgba(244, 63, 94, .08); border-color: rgba(244, 63, 94, .3); }

.newsletter-field {
    display: flex; align-items: center; gap: .6rem; padding: .35rem .35rem .35rem 1rem; border-radius: 9999px;
    background: var(--card-bg); border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: border-color .25s, box-shadow .25s;
}
.newsletter-field:focus-within { border-color: rgb(var(--violet)); box-shadow: 0 0 0 4px rgba(var(--violet), .12); }
.newsletter-input { flex: 1; min-width: 0; background: transparent !important; border: 0 !important; padding: .5rem 0 !important; color: var(--text-strong); font-size: .9rem; box-shadow: none !important; }
.newsletter-input::placeholder { color: var(--text-muted); }

.spinner { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }

/* ==========================================================================
   Pied de page (Footer)
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
    overflow: hidden;
}
.footer-glow {
    position: absolute; left: 50%; top: 0; width: 70%; height: 1px; transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(74, 14, 102, .5), rgba(59, 130, 246, .5), transparent);
}
.footer-title {
    font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--text-strong); margin-bottom: 1.1rem;
}
.footer-list { display: grid; gap: .7rem; }
.footer-list a { font-size: .9rem; color: var(--text-muted); transition: color .25s, padding-left .3s var(--ease-out); }
.footer-list a:hover { color: var(--text-strong); padding-left: 4px; }
.footer-wordmark {
    margin: 4rem 0 2rem; text-align: center; user-select: none;
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; letter-spacing: -.06em; line-height: .8;
    font-size: clamp(5rem, 21vw, 19rem);
    background: linear-gradient(180deg, rgba(var(--border-rgb), .08), rgba(var(--border-rgb), 0) 85%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.social-btn {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
    color: var(--text-muted); border: 1px solid var(--border-color);
    background: var(--card-bg);
    transition: color .25s, border-color .25s, transform .35s var(--ease-spring), background-color .25s;
}
.social-btn:hover {
    color: #4a0e66; border-color: rgba(74, 14, 102, .4);
    background: rgba(74, 14, 102, .06); transform: translateY(-3px);
}
html.dark .social-btn:hover {
    color: #fff; border-color: rgba(var(--electric), .5);
    background: rgba(var(--electric), .1);
}

/* ==========================================================================
   Bento Grid Micro-Widgets (Look & Feel Stripe/Vercel)
   ========================================================================== */
.bento-micro-box {
    border-radius: 1rem;
    background: var(--surface-subtle);
    border: 1px solid var(--border-color);
    padding: 1rem;
    transition: all .35s var(--ease-out);
}
.spotlight-card:hover .bento-micro-box {
    border-color: rgba(var(--accent), .3);
    background: rgba(var(--accent), .035);
}
.bento-ide {
    border-radius: 1.1rem;
    overflow: hidden;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px -20px rgba(107, 33, 168, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.beacon-dot {
    position: relative;
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.beacon-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    animation: beaconPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes beaconPulse {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* ==========================================================================
   Contenu Légal
   ========================================================================== */
.prose-legal h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--text-strong); margin: 3rem 0 1rem; letter-spacing: -.02em; }
.prose-legal h3 { font-weight: 700; color: var(--text-strong); margin: 1.75rem 0 .5rem; }
.prose-legal p, .prose-legal li { color: var(--text-body); line-height: 1.8; }
.prose-legal ul { list-style: disc; padding-left: 1.25rem; margin: .75rem 0; }
.prose-legal a { color: #2563eb; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }

/* ==========================================================================
   Mouvement Réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}
