:root {
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --accent-primary: #00e5ff; /* Cyan plus vif */
    --accent-secondary: #ff9100; 
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --glow-primary: rgba(0, 229, 255, 0.4);
}

* { box-sizing: border-box; }

html { 
    scroll-behavior: smooth; 
    /* CORRECTION : Empêche la barre de nav de cacher le contenu au clic */
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 229, 255, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 145, 0, 0.03), transparent 25%);
    background-attachment: fixed;
}

/* --- UTILS & ANIMATIONS --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

@keyframes shine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-text {
    background: linear-gradient(90deg, #ffffff, var(--accent-primary), #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}
.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.6);
    transform: translateY(-2px);
}
.btn-outline {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-main);
    backdrop-filter: blur(5px);
}
.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(255,255,255,0.1);
}

/* --- HEADER --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 20px 0;
}
.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { font-size: 1.5rem; font-weight: 900; letter-spacing: -1px; display: flex; align-items: center; gap: 5px; }
.logo span { color: var(--accent-primary); text-shadow: 0 0 10px rgba(0, 229, 255, 0.4); }

/* --- HERO --- */
.hero {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: visible;
}
.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(0, 172, 193, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

/* NOUVEAU STYLE POUR L'ACRONYME */
.company-full-name {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-secondary);
    margin-bottom: 20px;
    font-weight: 700;
    opacity: 0.9;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 1;
}
.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 40px;
    font-weight: 400;
    position: relative;
    z-index: 1;
}
.hero-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px; /* Réduit pour laisser place au titre */
    flex-wrap: wrap;
    position: relative; z-index: 1;
}
.tag {
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* --- UI INTERACTIVE DEMO --- */
.ui-mockup-container {
    margin-top: 80px;
    perspective: 2000px;
    position: relative;
    z-index: 2;
}
.ui-mockup {
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 20px;
    box-shadow: 
        0 0 0 1px rgba(255,255,255,0.05),
        0 50px 100px -20px rgba(0,0,0,0.8),
        0 0 50px rgba(0, 172, 193, 0.1); 
    overflow: hidden;
    transform: rotateX(20deg) scale(0.95);
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    transition: transform 0.5s ease-out;
}
.ui-mockup:hover {
    transform: rotateX(5deg) scale(1);
    border-color: var(--accent-primary);
}

.ui-interactive-demo {
    position: relative;
    width: 100%;
    height: 550px;
    background: #111;
    overflow: hidden;
    cursor: crosshair;
    user-select: none;
}

.demo-plan-bg { 
    position: absolute; 
    inset: 0; 
    
    background-image: url("{% static 'website/images/plan-demo.png' %}"); 
    
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6; 
}

.grid-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(circle at center, transparent 0%, #111 120%);
    pointer-events: none;
}

/* Fixtures */
.demo-fixture {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.demo-fixture:hover { transform: translate(-50%, -50%) scale(1.2); z-index: 20; }

.fixture-dot { position: relative; z-index: 2; }
.fixture-icon {
    width: 24px; height: 24px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7); background: #222;
    box-shadow: 0 0 10px rgba(0,0,0,0.5); transition: all 0.3s;
}
.fixture-icon.small { width: 16px; height: 16px; }
.fixture-shape-rect {
    width: 30px; height: 18px; border-radius: 4px;
    border: 2px solid rgba(255,255,255,0.7); background: #222; transition: all 0.3s;
}

.fixture-label {
    position: absolute; top: 120%; left: 50%; transform: translateX(-50%);
    font-size: 11px; font-weight: 600; color: #fff; background: rgba(0,0,0,0.8);
    padding: 4px 8px; border-radius: 6px; white-space: nowrap;
    opacity: 0; transition: opacity 0.2s; pointer-events: none; border: 1px solid #333;
}
.demo-fixture:hover .fixture-label { opacity: 1; }

.demo-fixture.on .fixture-icon, 
.demo-fixture.on .fixture-shape-rect {
    background: #fff; border-color: #fff; 
    box-shadow: 0 0 20px rgba(255,255,255,1), 0 0 40px var(--accent-primary);
}

/* Beams */
.beam-conical {
    position: absolute; top: 50%; left: 50%;
    width: 200px; height: 300px;
    background: radial-gradient(circle at top, rgba(0, 229, 255, 0.5), transparent 70%);
    transform-origin: top center; transform: translate(-50%, 0) rotate(25deg);
    clip-path: polygon(45% 0, 55% 0, 100% 100%, 0% 100%);
    opacity: 0; transition: opacity 0.3s ease; pointer-events: none; z-index: 1; mix-blend-mode: screen;
    filter: blur(5px);
}
.beam-diffuse {
    position: absolute; width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(255, 145, 0, 0.4) 0%, transparent 60%);
    transform: translate(0, 0); border-radius: 50%;
    opacity: 0; transition: opacity 0.3s ease; pointer-events: none; z-index: 1; mix-blend-mode: screen;
    filter: blur(10px);
}
.beam-diffuse.small { width: 120px; height: 120px; background: radial-gradient(circle, rgba(100, 100, 255, 0.4) 0%, transparent 60%); }

.demo-fixture.on .beam-conical,
.demo-fixture.on .beam-diffuse { opacity: 1; }

.demo-overlay-hint {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6); border: 1px solid var(--accent-primary);
    backdrop-filter: blur(4px);
    color: var(--accent-primary); padding: 8px 20px; border-radius: 20px; font-size: 0.85rem; font-weight: 500;
    pointer-events: none; animation: pulseHint 2s infinite;
}
@keyframes pulseHint {
    0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 229, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

/* --- BENTO GRID FEATURES --- */
.features-section { padding: 120px 0; position: relative; }
.grid-header { margin-bottom: 70px; }
.section-title { font-size: 2.5rem; margin-bottom: 15px; font-weight: 700; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 24px;
}

.bento-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bento-card::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06), transparent 40%);
    opacity: 0; transition: opacity 0.5s; pointer-events: none;
}
.bento-card:hover::after { opacity: 1; }
.bento-card:hover { 
    border-color: rgba(255,255,255,0.2); 
    transform: translateY(-5px);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
}

.bento-card h3 { font-size: 1.5rem; margin: 0 0 12px 0; color: #fff; }
.bento-card p { color: var(--text-muted); font-size: 1rem; margin: 0; line-height: 1.5; }
.bento-icon { 
    font-size: 2.5rem; margin-bottom: 25px; display: inline-block; 
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.2));
}

.col-span-12 { grid-column: span 12; }
.col-span-8 { grid-column: span 8; }
.col-span-6 { grid-column: span 6; }
.col-span-4 { grid-column: span 4; }

@media (max-width: 900px) {
    .col-span-8, .col-span-6, .col-span-4 { grid-column: span 12; }
    .hero { padding-top: 120px; }
    h1 { font-size: 2.5rem; }
}

/* --- TECH SPECS --- */
.specs-section {
    background: rgba(20, 20, 20, 0.5);
    padding: 100px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
}
.spec-item h4 { 
    color: var(--accent-primary); margin-bottom: 20px; font-size: 1.2rem;
    display: flex; align-items: center; gap: 10px;
}
.spec-item h4::before {
    content: ''; display: block; width: 8px; height: 8px; background: var(--accent-primary);
    border-radius: 50%; box-shadow: 0 0 10px var(--accent-primary);
}
.spec-list { list-style: none; padding: 0; color: var(--text-muted); }
.spec-list li { 
    margin-bottom: 12px; padding-left: 20px; position: relative; 
    transition: color 0.2s;
}
.spec-list li::before {
    content: "›"; color: #555; position: absolute; left: 0; font-weight: bold; font-size: 1.2rem; line-height: 1; top: -2px;
}
.spec-list li:hover { color: #fff; }

/* --- OFFER / CONTACT --- */
.offer-section { padding: 120px 0; text-align: center; }
.offer-card {
    background: linear-gradient(180deg, rgba(30,30,30,0.8) 0%, rgba(10,10,10,0.9) 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 60px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.offer-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    box-shadow: 0 0 15px var(--accent-primary);
}

.offer-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 50px 0;
    text-align: left;
    padding: 30px;
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
}
@media (max-width: 600px) { .offer-details { grid-template-columns: 1fr; } }

.offer-col h4 { color: #fff; margin-bottom: 20px; font-size: 1.2rem; font-weight: 700; }
.check-list p { position: relative; padding-left: 30px; margin-bottom: 12px; }
.check-list p::before {
    content: "✓"; color: var(--accent-primary); position: absolute; left: 0; font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* --- FOOTER --- */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: #020202;
}

@media (max-width: 900px) {
    /* --- HEADER & NAV --- */
    nav {
        padding: 15px 0; /* Barre moins haute */
    }
    
    /* On cache le bouton secondaire pour gagner de la place */
    nav .btn-outline {
        display: none;
    }
    
    .logo {
        font-size: 1.2rem; /* Logo un peu plus petit */
    }

    /* --- HERO SECTION --- */
    .hero {
        padding-top: 120px; /* On remonte le contenu (moins de vide en haut) */
        padding-bottom: 60px;
    }

    h1 {
        font-size: 2.2rem; /* Titre plus digeste sur mobile */
        margin-bottom: 15px;
    }

    .subtitle {
        font-size: 1rem;
        padding: 0 15px; /* Marge de sécurité pour le texte */
        line-height: 1.5;
    }

    /* Tags (badges) plus compacts */
    .hero-tags {
        gap: 8px;
    }
    .tag {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    
    .company-full-name {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    /* --- DÉMO INTERACTIVE (Modifications majeures) --- */
    .ui-mockup-container {
        margin-top: 40px;
        padding: 0 10px; /* Marge latérale */
    }

    .ui-mockup {
        /* On retire l'effet 3D incliné qui est illisible sur mobile */
        transform: none !important; 
        border-radius: 12px;
        box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
    }
    
    .ui-mockup:hover {
        transform: none !important; /* Pas de mouvement au hover sur tactile */
    }

    .ui-interactive-demo {
        height: 350px; /* Moins haut pour voir la suite de la page */
    }

    /* Réduction des faisceaux lumineux (sinon ils sont énormes sur un écran de 5 pouces) */
    .beam-conical {
        width: 120px;
        height: 180px;
        filter: blur(3px); /* Moins de flou pour plus de netteté */
    }
    
    .beam-diffuse {
        width: 100px;
        height: 100px;
    }

    /* Icônes plus petites */
    .fixture-icon { width: 18px; height: 18px; }
    .fixture-shape-rect { width: 22px; height: 14px; }
    
    /* Cache les labels "Spot Gauche" etc. qui polluent la vue tactile */
    .fixture-label { display: none; }
    
    /* Indication "Cliquez pour tester" plus visible */
    .demo-overlay-hint {
        bottom: 15px;
        font-size: 0.75rem;
        padding: 6px 15px;
        width: 80%; /* Plus large */
        text-align: center;
    }

    /* --- BENTO GRID & SECTIONS --- */
    .features-section, .specs-section, .offer-section {
        padding: 60px 0; /* Sections moins espacées verticalement */
    }

    .grid-header { margin-bottom: 40px; }
    .section-title { font-size: 1.8rem; }

    .bento-card {
        padding: 25px; /* Moins de padding interne dans les cartes */
        min-height: auto; /* Hauteur automatique */
    }
    
    .bento-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .bento-card h3 { font-size: 1.3rem; }

    /* --- OFFRE & FOOTER --- */
    .offer-card {
        padding: 30px 20px; /* Carte d'offre plus compacte */
    }
    
    .offer-col h4 { margin-top: 20px; } /* Espacement entre les colonnes empilées */
    
    /* Ajustement bouton CTA */
    .btn {
        width: 100%; /* Boutons pleine largeur sur mobile pour faciliter le clic */
        text-align: center;
        max-width: 100%;
        margin-bottom: 10px;
    }
    
    /* Exception pour les boutons nav qui ne doivent pas être pleine largeur */
    nav .btn { width: auto; margin-bottom: 0; }
}

/* Tweak pour très petits écrans (iPhone SE, vieux Android) */
@media (max-width: 380px) {
    h1 { font-size: 1.8rem; }
    .nav-inner { flex-direction: column; gap: 10px; }
    nav { position: absolute; background: rgba(5,5,5,0.95); } /* Menu non fixe si écran trop petit */
}