/* Configuration de l'arrière-plan 3D */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: #040508;
    /* Fond très sombre spatial */
}

:root {
    --black: transparent;
    /* Permet de voir le Canvas en dessous */

    /* GLASSMORPHISM - Les surfaces sont maintenant translucides */
    --surface-1: rgba(11, 14, 20, 0.4);
    --surface-2: rgba(16, 20, 28, 0.5);
    --surface-3: rgba(22, 27, 38, 0.6);
    --surface-4: rgba(28, 34, 51, 0.7);

    --border: rgba(148, 163, 194, 0.15);
    --border-hover: rgba(148, 163, 194, 0.25);
    --border-accent: rgba(100, 180, 255, 0.3);
    --accent: #5eadff;
    --accent-dim: rgba(94, 173, 255, 0.55);
    --accent-glow: rgba(94, 173, 255, 0.15);
    --accent-bright: #8ac8ff;
    --warm: #d4915e;
    --warm-glow: rgba(212, 145, 94, 0.15);
    --green: #5ec992;
    --red: #e5605e;
    --text-1: #e4e8f0;
    --text-2: #8a95ab;
    --font-display: 'Instrument Sans', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--text-1);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ================= NAV ================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.5rem, 4vw, 3.5rem);
    height: 60px;
    background: rgba(6, 8, 12, 0.6);
    backdrop-filter: blur(15px);
    /* Flou du menu */
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-1);
    text-decoration: none;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-2);
    text-decoration: none;
    transition: color 0.25s;
}

.nav-links a:hover {
    color: var(--text-1);
}

.nav-cta {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 1.3rem;
    border: 1px solid var(--border-accent);
    color: var(--accent);
    background: var(--accent-glow);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.25s;
}

.nav-cta:hover {
    background: var(--accent);
    color: #000;
}

/* ================= HERO ================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7rem 2rem 4rem;
    text-align: center;
}

.hero-glow {
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 350px;
    background: radial-gradient(ellipse, rgba(94, 173, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--warm);
    border: 1px solid rgba(212, 145, 94, 0.3);
    padding: 0.4rem 1rem;
    background: var(--warm-glow);
    border-radius: 3px;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(5px);
}

.hero-product {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    color: var(--text-1);
}

.hero-product .x {
    color: var(--accent);
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    color: var(--text-2);
    max-width: 600px;
    margin: 1rem auto 0.5rem;
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-dim);
    letter-spacing: 0.25em;
    margin-bottom: 2.5rem;
}

.hero-chips {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.chip {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--border);
    color: var(--text-2);
    border-radius: 3px;
    background: var(--surface-1);
    backdrop-filter: blur(5px);
}

.chip.lit {
    border-color: var(--border-accent);
    color: var(--accent-dim);
    background: var(--accent-glow);
}

/* BOUTONS */
.hero-ctas {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.btn-primary {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.25s;
}

.btn-primary:hover {
    background: var(--accent-bright);
}

.btn-secondary {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    padding: 0.85rem 1.8rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-2);
    border: 1px solid var(--border-hover);
    border-radius: 4px;
    cursor: pointer;
    transition: 0.25s;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    border-color: var(--accent-dim);
    color: var(--text-1);
}

/* STATS */
.hero-stats {
    display: flex;
    gap: 3.5rem;
    margin-top: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-val {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-2);
    text-transform: uppercase;
}

/* ================= SECTIONS GLOBALES & GLASSMORPHISM ================= */
.sep {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, var(--border-hover) 50%, transparent 95%);
}

section {
    padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 4vw, 3.5rem);
    max-width: 1200px;
    margin: 0 auto;
}

.full-bg {
    background: var(--surface-1);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.section-desc {
    color: var(--text-2);
    font-size: 0.95rem;
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* GRILLES & CARTES (Avec Glassmorphism) */
.pipeline,
.metrics,
.domain-grid,
.deploy-grid,
.tech-grid,
.accel-grid,
.press-grid {
    display: grid;
    gap: 1px;
    background: var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.pipeline {
    grid-template-columns: repeat(3, 1fr);
}

.metrics {
    grid-template-columns: repeat(5, 1fr);
}

.domain-grid {
    grid-template-columns: repeat(5, 1fr);
}

.deploy-grid {
    grid-template-columns: repeat(3, 1fr);
}

.accel-grid {
    grid-template-columns: repeat(4, 1fr);
}

.pipe-step,
.metric,
.domain-card,
.deploy-card,
.accel-card,
.press-card,
.classified-banner,
.key-msg {
    background: var(--surface-2);
    backdrop-filter: blur(10px);
    /* L'EFFET VERRE MAGIQUE */
    padding: 2rem 1.8rem;
    transition: background 0.3s;
}

/* ================= KEY MESSAGES (Correction SVG et Layout) ================= */

.key-msgs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.key-msg {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--surface-2);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.key-check {
    color: var(--green);
    flex-shrink: 0;
    /* Empêche l'icône de s'écraser si le texte est long */
    margin-top: 0.15rem;
}

/* LA CORRECTION EST ICI : On force la taille du SVG */
.key-check svg {
    width: 20px;
    height: 20px;
}

.key-text {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.5;
}

.key-text strong {
    color: var(--text-1);
}

/* Responsive pour les téléphones */
@media (max-width: 900px) {
    .key-msgs {
        grid-template-columns: 1fr;
    }
}

.pipe-step:hover,
.domain-card:hover,
.deploy-card:hover,
.accel-card:hover {
    background: var(--surface-3);
}

/* TEXTES CARTES */
.pipe-num,
.dtag,
.tag,
.press-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    background: var(--surface-4);
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--text-2);
}

.pipe-title,
.domain-name,
.deploy-title,
.accel-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.domain-name,
.deploy-title,
.accel-name {
    color: var(--text-1);
}

.pipe-desc,
.domain-desc,
.deploy-desc,
.accel-desc {
    font-size: 0.85rem;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* METRICS */
.metric {
    padding: 1.3rem 1rem;
    text-align: center;
}

.metric-val {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

/* DOMAINS (Placeholders pour simplifier) */
.domain-card {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.domain-img-placeholder {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border);
}

.domain-img-placeholder svg {
    width: 40px;
    fill: none;
    stroke: var(--accent-dim);
    stroke-width: 1.5;
}

.domain-body {
    padding: 1.5rem;
    flex: 1;
}

/* CLASSIFIED BANNER */
.classified-banner {
    border-left: 3px solid var(--warm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
}

.classified-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--warm);
}

/* FOOTER */
.footer-cta-wrap {
    background: var(--surface-1);
    backdrop-filter: blur(10px);
    padding: 4.5rem 2rem;
    border-top: 1px solid var(--border);
}

footer {
    background: var(--surface-2);
    backdrop-filter: blur(15px);
    padding: 3.5rem 2rem 1.5rem;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 0.5rem;
}

.footer-logo span {
    color: var(--accent);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-links a {
    font-size: 0.82rem;
    color: var(--text-2);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent);
}

/* MODALS */
.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(6, 8, 12, 0.8);
    backdrop-filter: blur(12px);
    overflow-y: auto;
    padding: 3rem 2rem;
}

.legal-content {
    max-width: 720px;
    margin: 0 auto;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3rem;
    position: relative;
    color: var(--text-2);
}

.legal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-1);
    font-size: 2rem;
    cursor: pointer;
}

.legal-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-1);
}

@media (max-width: 900px) {

    .pipeline,
    .domain-grid {
        grid-template-columns: 1fr;
    }

    .deploy-grid,
    .metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .accel-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .classified-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

}

/* ================= MENU HAMBURGER & MOBILE NAV ================= */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    /* Pour qu'il reste toujours au-dessus */
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-1);
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

.mobile-cta-container {
    display: none;
    /* Caché sur Desktop */
}

/* RESPONSIVE (Tablettes & Mobiles) */
@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .desktop-cta {
        display: none;
        /* On cache le bouton en haut à droite sur mobile */
    }

    /* Le menu glissant pour mobile */
    .nav-links {
        position: fixed;
        top: 60px;
        /* S'arrête juste sous la navbar */
        right: -100%;
        /* Caché en dehors de l'écran à droite par défaut */
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(6, 8, 12, 0.95);
        backdrop-filter: blur(15px);
        /* Garde l'effet verre sur la 3D */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transition: right 0.4s ease-in-out;
    }

    /* Quand le menu est ouvert via Javascript */
    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        /* Liens plus gros pour cliquer facilement avec le doigt */
    }

    .mobile-cta-container {
        display: block;
        margin-top: 1rem;
    }

    /* Animation du Hamburger vers une Croix (X) */
    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}