/* ---- Base ---- */
        *, *::before, *::after { box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        body { font-family: 'Barlow', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color 0.3s, color 0.3s; }

        /* ---- Scrollbar ---- */
        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: #0E8CEB; border-radius: 3px; }

        /* ---- Dark / Light tokens ---- */
        .dark  body { background-color: #0E1624; color: #E8EDF5; }
        .light body { background-color: #F4F7FC; color: #0D1B2E; }

        /* ---- Gradient text ---- */
        .grad-text { background: linear-gradient(135deg, #0E8CEB 0%, #4FC3FF 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

        /* ---- Grid background ---- */
        .grid-bg { background-image: linear-gradient(rgba(14,140,235,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(14,140,235,0.06) 1px, transparent 1px); background-size: 60px 60px; }
        .light .grid-bg { background-image: linear-gradient(rgba(14,140,235,0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(14,140,235,0.09) 1px, transparent 1px); }

        /* ---- Noise overlay ---- */
        .noise::after { content: ''; position: absolute; inset: 0; 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='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"); pointer-events: none; opacity: 0.4; }

        /* ---- Scan line ---- */
        .scan-line { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(79,195,255,0.4), transparent); animation: scan 6s linear infinite; pointer-events: none; }

        /* ---- Glow orbs ---- */
        .glow-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }

        /* ---- Glass card ---- */
        .dark  .glass { background: rgba(22,36,60,0.75); border: 1px solid rgba(79,195,255,0.16); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
        .light .glass { background: rgba(255,255,255,0.8); border: 1px solid rgba(14,140,235,0.15); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 4px 24px rgba(14,140,235,0.06); }
        .glass { border-radius: 16px; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; position: relative; overflow: hidden; }
        .glass:hover { border-color: rgba(79,195,255,0.32) !important; transform: translateY(-4px); }
        .dark  .glass:hover { box-shadow: 0 0 40px rgba(14,140,235,0.18); }
        .light .glass:hover { box-shadow: 0 8px 32px rgba(14,140,235,0.15); }
        .glass::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(79,195,255,0.5), transparent); opacity: 0; transition: opacity 0.3s; }
        .glass:hover::before { opacity: 1; }
        .glass::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(79,195,255,0.06) 50%, transparent 65%); background-size: 200% 100%; background-position: -200% 0; transition: background-position 0.65s ease; border-radius: inherit; pointer-events: none; z-index: 0; }
        .glass:hover::after { background-position: 220% 0; }
        .glass > * { position: relative; z-index: 1; }

        /* ---- Tag / chip ---- */
        .tag { display: inline-flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 5px 14px; border-radius: 100px; margin-bottom: 18px; }
        .dark  .tag { color: #4FC3FF; background: rgba(79,195,255,0.08); border: 1px solid rgba(79,195,255,0.2); }
        .light .tag { color: #0A6FC7; background: rgba(14,140,235,0.07); border: 1px solid rgba(14,140,235,0.2); }
        .chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 100px; font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; }
        .dark  .chip { background: rgba(79,195,255,0.08); border: 1px solid rgba(79,195,255,0.2); color: #4FC3FF; }
        .light .chip { background: rgba(14,140,235,0.08); border: 1px solid rgba(14,140,235,0.2); color: #0A6FC7; }
        .chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: chip-dot-pulse 2.2s ease-in-out infinite; }
        @keyframes chip-dot-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(79,195,255,0.55); } 50% { box-shadow: 0 0 0 6px rgba(79,195,255,0); } }

        /* ---- Buttons ---- */
        .btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; background: linear-gradient(135deg, #0E8CEB, #4FC3FF); color: #fff; font-family: 'Barlow Condensed', sans-serif; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 8px; border: none; cursor: pointer; transition: 0.25s cubic-bezier(0.4,0,0.2,1); box-shadow: 0 4px 20px rgba(14,140,235,0.35); position: relative; overflow: hidden; text-decoration: none; }
        .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(14,140,235,0.55); }
        .btn-primary::after { content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,0.22), transparent); transform: skewX(-20deg); transition: left 0.55s ease; pointer-events: none; }
        .btn-primary:hover::after { left: 140%; }
        .btn-outline { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: transparent; font-family: 'Barlow Condensed', sans-serif; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 8px; cursor: pointer; transition: 0.25s cubic-bezier(0.4,0,0.2,1); text-decoration: none; }
        .dark  .btn-outline { color: #4FC3FF; border: 1px solid rgba(79,195,255,0.3); }
        .light .btn-outline { color: #0A6FC7; border: 1px solid rgba(14,140,235,0.3); }
        .btn-outline:hover { background: rgba(79,195,255,0.1); border-color: #4FC3FF; }

        /* ---- Navbar ---- */
        #navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s, border-color 0.3s; padding: 12px 0; border-bottom: 1px solid rgba(79,195,255,0.12); }
        .dark  #navbar { background: #0e1624; }
        .light #navbar { background: #f4f7fc; }

        /* ---- Nav links ---- */
        .nav-link { font-size: 0.875rem; font-weight: 500; padding: 8px 14px; border-radius: 7px; transition: 0.2s; text-decoration: none; }
        .dark  .nav-link { color: #8899AA; }
        .dark  .nav-link:hover, .dark  .nav-link.active { color: #E8EDF5; background: rgba(79,195,255,0.07); }
        .light .nav-link { color: #4A6080; }
        .light .nav-link:hover, .light .nav-link.active { color: #0D1B2E; background: rgba(14,140,235,0.07); }
        .nav-link.active { color: #4FC3FF !important; }

        /* ---- Lang buttons ---- */
        .lang-btn { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; padding: 5px 10px; border-radius: 6px; transition: 0.2s; text-decoration: none; font-weight: 600; letter-spacing: 0.06em; }
        .dark  .lang-btn { color: #8899AA; }
        .dark  .lang-btn.active, .dark  .lang-btn:hover { color: #4FC3FF; background: rgba(79,195,255,0.1); }
        .light .lang-btn { color: #4A6080; }
        .light .lang-btn.active, .light .lang-btn:hover { color: #0A6FC7; background: rgba(14,140,235,0.1); }

        /* ---- Theme toggle ---- */
        .theme-toggle { width: 44px; height: 24px; border-radius: 100px; cursor: pointer; position: relative; transition: background 0.3s; border: none; flex-shrink: 0; }
        .dark  .theme-toggle { background: rgba(79,195,255,0.15); border: 1px solid rgba(79,195,255,0.3); }
        .light .theme-toggle { background: rgba(14,140,235,0.15); border: 1px solid rgba(14,140,235,0.3); }
        .theme-toggle-knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg,#0E8CEB,#4FC3FF); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1); }
        .light .theme-toggle-knob { transform: translateX(20px); }

        /* ---- Hamburger ---- */
        .hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; background: none; border: none; }
        .hamburger span { display: block; width: 22px; height: 2px; border-radius: 2px; transition: 0.3s; }
        .dark  .hamburger span { background: #8899AA; }
        .light .hamburger span { background: #4A6080; }
        @media (max-width: 1024px) { .hamburger { display: flex; } .desktop-nav { display: none !important; } }

        /* ---- Mobile menu ---- */
        .mobile-menu { display: none; position: fixed; inset: 0; padding: 96px 24px 28px; border-bottom: 1px solid rgba(79,195,255,0.12); overflow-y: auto; -webkit-overflow-scrolling: touch; }
        .dark  .mobile-menu { background: #0E1624; box-shadow: 0 18px 50px rgba(0,0,0,0.28); }
        .light .mobile-menu { background: #F4F7FC; box-shadow: 0 18px 50px rgba(14,140,235,0.08); }
        .mobile-menu.is-open { display: flex; flex-direction: column; gap: 8px; }
        body.menu-open { overflow: hidden; }

        /* ---- Logo ring ---- */
        .logo-ring { position: absolute; inset: -5px; border-radius: 15px; border: 1.5px solid rgba(79,195,255,0.4); animation: ring-pulse 2.8s ease-in-out infinite; pointer-events: none; }
        @keyframes ring-pulse { 0%,100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 0; transform: scale(1.45); } }

        /* ---- Cursor glow ---- */
        #cursor-glow { position: fixed; width: 380px; height: 380px; border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); background: radial-gradient(circle, rgba(14,140,235,0.07) 0%, transparent 65%); transition: opacity 0.5s; will-change: transform; display: none; }
        @media (min-width: 769px) { #cursor-glow { display: block; } }

        /* ---- Section ---- */
        .section { padding: clamp(64px,9vw,120px) 0; position: relative; }
        .section-title { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(2.2rem,4vw,3.8rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; text-transform: uppercase; }
        .hero-title { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(3.2rem,7vw,6.5rem); font-weight: 900; line-height: 0.95; letter-spacing: -0.02em; text-transform: uppercase; }

        /* ---- Reveal animations ---- */
        .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
        .reveal.visible { opacity: 1; transform: translateY(0); }
        .reveal-d1 { transition-delay: 0.1s; }
        .reveal-d2 { transition-delay: 0.2s; }
        .reveal-d3 { transition-delay: 0.3s; }
        .reveal-d4 { transition-delay: 0.4s; }
        .reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1), transform 0.75s cubic-bezier(0.22,1,0.36,1); }
        .reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1), transform 0.75s cubic-bezier(0.22,1,0.36,1); }
        .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }

        /* ---- Form inputs ---- */
        .form-input { width: 100%; padding: 12px 16px; border-radius: 10px; font-family: 'Barlow', sans-serif; font-size: 0.95rem; outline: none; transition: 0.2s; }
        .dark  .form-input { background: rgba(22,36,60,0.75); border: 1px solid rgba(79,195,255,0.18); color: #E8EDF5; }
        .dark  .form-input::placeholder { color: #8899AA; }
        .dark  .form-input:focus { border-color: rgba(79,195,255,0.5); box-shadow: 0 0 0 3px rgba(79,195,255,0.1); }
        .light .form-input { background: rgba(255,255,255,0.9); border: 1px solid rgba(14,140,235,0.18); color: #0D1B2E; }
        .light .form-input::placeholder { color: #8899AA; }
        .light .form-input:focus { border-color: rgba(14,140,235,0.5); box-shadow: 0 0 0 3px rgba(14,140,235,0.1); }
        .form-input[aria-invalid="true"] { border-color: #f87171 !important; box-shadow: 0 0 0 3px rgba(248,113,113,0.15) !important; }
        .field-error { font-size: 0.8rem; color: #f87171; margin-top: 5px; }
        .form-label { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; display: block; }
        .dark  .form-label { color: #8899AA; }
        .light .form-label { color: #4A6080; }

        /* ---- Form status ---- */
        [data-form-status] { padding: 12px 16px; border-radius: 10px; font-size: 0.9rem; margin-top: 16px; }
        [data-form-status][data-state="success"] { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #4ade80; }
        [data-form-status][data-state="error"]   { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3); color: #f87171; }
        [data-form-status][data-state="info"]    { background: rgba(79,195,255,0.1); border: 1px solid rgba(79,195,255,0.25); color: #4FC3FF; }

        /* ---- Info card accent ---- */
        .info-card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .dark  .info-card-icon { background: rgba(14,140,235,0.12); border: 1px solid rgba(79,195,255,0.2); color: #4FC3FF; }
        .light .info-card-icon { background: rgba(14,140,235,0.08); border: 1px solid rgba(14,140,235,0.2); color: #0A6FC7; }

        /* ---- Sub accent ---- */
        .sub-accent { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 0 2px 2px 0; }

        /* ---- CTA section ---- */
        .dark  .cta-section { background: linear-gradient(135deg, rgba(14,140,235,0.12) 0%, rgba(7,12,21,0) 60%); border-top: 1px solid rgba(79,195,255,0.1); border-bottom: 1px solid rgba(79,195,255,0.1); }
        .light .cta-section { background: linear-gradient(135deg, rgba(14,140,235,0.06) 0%, rgba(244,247,252,0) 60%); border-top: 1px solid rgba(14,140,235,0.12); border-bottom: 1px solid rgba(14,140,235,0.12); }

        /* ---- Separator animated ---- */
        .anim-sep { height: 1px; background: linear-gradient(90deg, transparent, rgba(79,195,255,0.3), transparent); opacity: 0; transform: scaleX(0); transition: opacity 0.8s ease, transform 1s cubic-bezier(0.22,1,0.36,1); }
        .anim-sep.visible { opacity: 1; transform: scaleX(1); }

        /* ---- Footer ---- */
        .dark  footer { background: #0A1220; border-top: 1px solid rgba(79,195,255,0.1); }
        .light footer { background: #E8EDF5; border-top: 1px solid rgba(14,140,235,0.12); }
        .footer-link { font-size: 0.875rem; transition: color 0.2s; text-decoration: none; }
        .dark  .footer-link { color: #8899AA; }
        .dark  .footer-link:hover { color: #4FC3FF; }
        .light .footer-link { color: #4A6080; }
        .light .footer-link:hover { color: #0A6FC7; }
        .social-btn { width: 38px; height: 38px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; transition: 0.2s; text-decoration: none; }
        .dark  .social-btn { background: rgba(79,195,255,0.07); border: 1px solid rgba(79,195,255,0.15); color: #8899AA; }
        .dark  .social-btn:hover { color: #4FC3FF; border-color: rgba(79,195,255,0.35); background: rgba(79,195,255,0.12); }
        .light .social-btn { background: rgba(14,140,235,0.06); border: 1px solid rgba(14,140,235,0.15); color: #4A6080; }
        .light .social-btn:hover { color: #0A6FC7; border-color: rgba(14,140,235,0.35); background: rgba(14,140,235,0.1); }

        /* ---- Responsive ---- */
        @media (max-width: 640px) {
            .hero-title { font-size: clamp(2.6rem,11vw,3.5rem); }
            .section-title { font-size: clamp(1.9rem,8vw,2.8rem); }
            .section { padding: 56px 0; }
            .btn-primary, .btn-outline { font-size: 0.88rem; padding: 11px 20px; }
        }

/* --- Hero Banner Image --- */
.hero-banner-frame {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(79,195,255,0.18);
    background: rgba(10,18,32,0.72);
    box-shadow: 0 18px 50px rgba(6,17,31,0.34);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Overlay thème pour fondre l'image dans le design */
.hero-banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
}
.dark  .hero-banner-overlay {
    background: linear-gradient(
        135deg,
        rgba(14,22,36,0.35) 0%,
        transparent 55%,
        rgba(14,140,235,0.15) 100%
    );
}
.light .hero-banner-overlay {
    background: linear-gradient(
        135deg,
        rgba(244,247,252,0.25) 0%,
        transparent 55%,
        rgba(14,140,235,0.10) 100%
    );
}

/* Décoration coin bas-gauche (repère tech) */
.hero-banner-corner {
    position: absolute;
    bottom: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    border-left: 2px solid rgba(79,195,255,0.5);
    border-bottom: 2px solid rgba(79,195,255,0.5);
    border-radius: 0 0 0 8px;
    z-index: 2;
    pointer-events: none;
}

/* Responsive : image sous le texte sur mobile */
@media (max-width: 1024px) {
    .hero-banner-frame {
        aspect-ratio: 16/7;
        margin-top: 40px;
    }
}
