/* ==========================================
   1. RÉINITIALISATION & VARIABLES GLOBALES
   ========================================== */
:root {
    --bg-dark: #030306;
    --neon-cyan: #00f0ff;
    --neon-pink: #ff007f;
    --neon-purple: #7c3aed;
    --glass-bg: rgba(8, 8, 16, 0.7);
    --glass-border: rgba(255, 255, 255, 0.12);
    --text-main: #ffffff;
    --text-muted: #c4c4e0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==========================================
   2. ARRIÈRE-PLAN 3D (CANVAS STABLE)
   ========================================== */
#lighting-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-color: var(--bg-dark);
}

header, main, footer {
    position: relative;
    z-index: 1;
}

/* ==========================================
   3. NAVIGATION (BARRE EN VERRE DÉPOLI)
   ========================================== */
nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(3, 3, 6, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav ul li a:hover {
    color: var(--text-main);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* ==========================================
   4. SECTION HERO / ACCUEIL (PROTECTION CONTRE LES FLASHS)
   ========================================== */
header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 60px;
}

/* Conteneur effet carte dépolie pour isoler le texte des lumières 3D */
.hero {
    max-width: 850px;
    background: rgba(4, 4, 10, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 45px 35px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.hero h1 {
    font-size: 3.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    /* Ombres renforcées pour détacher le texte de tout effet bloom */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.95), 0 0 30px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* Contrôles du son */
.sound-control {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.btn-upload {
    background: rgba(15, 15, 25, 0.8);
    color: #fff;
    border: 1px solid var(--glass-border);
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-upload:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.4);
}

.btn-sound {
    background: rgba(0, 0, 0, 0.85);
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.btn-sound:hover, .btn-sound.active {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.9);
}

.cta {
    display: inline-block;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple));
    color: #fff;
    padding: 16px 38px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 127, 0.5);
}

/* ==========================================
   5. CONTENU PRINCIPAL & CARTES GLASS
   ========================================== */
main {
    max-width: 1100px;
    margin: auto;
    padding: 60px 20px;
}

section {
    margin-bottom: 90px;
}

section h2 {
    font-size: 2.2rem;
    margin-bottom: 35px;
    font-family: 'Montserrat', sans-serif;
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* Liste des services */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.4);
}

.service h3 {
    color: var(--neon-cyan);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.service p {
    color: var(--text-muted);
}

/* Galerie d'images */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.gallery img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.03);
    border-color: var(--neon-pink);
}

/* Formulaire de contact */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 550px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 35px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.contact-form input, 
.contact-form textarea {
    padding: 16px;
    background: rgba(5, 5, 12, 0.85);
    border: 1px solid var(--glass-border);
    color: #fff;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.contact-form button {
    padding: 16px;
    background: var(--neon-cyan);
    border: none;
    color: #000;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.contact-form button:hover {
    background: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

/* ==========================================
   6. PIED DE PAGE & ADAPTATIONS MOBILES
   ========================================== */
footer {
    text-align: center;
    padding: 35px 20px;
    background: rgba(2, 2, 5, 0.95);
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }
    
    .hero {
        padding: 30px 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .sound-control {
        flex-direction: column;
    }

    .contact-form {
        padding: 22px;
    }
}