/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-dark: #030305;
    --bg-card: #0f0f12;
    --primary: #8b5cf6; /* Violet */
    --secondary: #ec4899; /* Rose/Magenta */
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --gold: #facc15; /* Couleur des étoiles */
    --section-spacing: 100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    width: 100%;
    overflow-x: hidden; /* Empêche le scroll horizontal global */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   2. TYPOGRAPHIE
   ========================================= */
h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.neon-text {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

/* =========================================
   3. UTILS & NAVIGATION
   ========================================= */
.container { max-width: 1100px; margin: 0 auto; padding: 60px 20px; }
.subtitle { text-align: center; color: var(--text-muted); margin-bottom: 40px; font-size: 1.1rem; }
.section-title { text-align: center; }

.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(3, 3, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: -1px; text-transform: uppercase; }

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    transition: 0.3s;
}
.nav-links a:hover { color: white; }

.btn-cta {
    background: white;
    color: black !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 100px 20px 40px 20px;
    gap: 40px;
    overflow: hidden;
}

.hero-content {
    flex: 0 0 auto;
    max-width: 600px;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary);
    border-radius: 50px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero p { max-width: 600px; margin: 0 auto 30px; color: var(--text-muted); font-size: 1.1rem;}

.glow-bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, rgba(3,3,5,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    max-width: 400px;
    z-index: 1;
    opacity: 0.8;
}

.hero-img-raw {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: block;
    object-fit: contain;
}

.desktop-only { display: none; }
@media (min-width: 1100px) {
    .desktop-only { display: flex; }
}

/* BOUTONS HERO */
.cta-group { display: flex; gap: 15px; justify-content: center; }

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(139, 92, 246, 0.6); }

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.btn-secondary:hover { border-color: white; background: rgba(255,255,255,0.05); }

/* =========================================
   5. BENTO GRID & GALERIE
   ========================================= */
.bento-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 250px 250px;
    gap: 20px;
}
.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s;
}
.bento-item:hover { border-color: var(--primary); }

.main-shot { grid-row: 1 / span 2; }
.specs-card { padding: 25px; display: flex; flex-direction: column; justify-content: center;}

.img-cover {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.bento-item:hover .img-cover { transform: scale(1.05); }

.overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px;
}
.overlay-hover {
    position: absolute; inset: 0;
    background: rgba(139, 92, 246, 0.2);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; text-transform: uppercase; letter-spacing: 2px;
}
.bento-item:hover .overlay-hover { opacity: 1; }

.specs-card ul { list-style: none; margin-top: 15px; }
.specs-card li { margin-bottom: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.specs-card i { color: var(--primary); width: 20px; text-align: center; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    height: 300px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s;
}
.gallery-item:hover { border-color: var(--primary); }
.gallery-item:hover .img-cover { transform: scale(1.05); }
.gallery-item:hover .overlay-hover { opacity: 1; }

/* =========================================
   6. CONFIGURATEUR (STYLE COMPLET)
   ========================================= */
#configurator { margin-top: 50px; }

.config-panel {
    background: #0a0a0c;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.config-header { margin-bottom: 40px; }
.step-indicator {
    text-align: right; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px;
}
.progress-container {
    width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden;
}
.progress-bar {
    height: 100%; width: 0%; background: #3b82f6; transition: width 0.4s ease;
}
.question-title {
    text-align: center; font-size: 1.8rem; margin-bottom: 40px; color: white;
}

/* Grilles d'options */
.options-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 40px;
}
.option-card { cursor: pointer; position: relative; }
.option-card input[type="radio"], .option-card input[type="checkbox"] { display: none; }

.card-content {
    background: #151518; border: 2px solid rgba(255,255,255,0.05); border-radius: 12px;
    padding: 30px 20px; text-align: center; transition: all 0.2s ease;
    display: flex; flex-direction: column; align-items: center; gap: 15px; height: 100%;
}
.card-content i { font-size: 2rem; color: var(--text-muted); }
.card-content span { font-weight: 600; font-size: 1.1rem; }

.option-card:hover .card-content { background: #1e1e22; }
.option-card input:checked + .card-content {
    border-color: #3b82f6; background: rgba(59, 130, 246, 0.1); box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}
.option-card input:checked + .card-content i { color: #3b82f6; }

/* Groupes de sous-questions */
.question-group {
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 30px;
}
.question-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.question-group h4 {
    font-size: 1.2rem; color: var(--primary); margin-bottom: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}
.question-group .helper-text {
    font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; font-style: italic; display: block; margin-top: -10px;
}

.options-grid-small {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px;
}
.options-grid-small .card-content {
    padding: 15px 10px; min-height: 80px; justify-content: center;
}
.options-grid-small .card-content span { font-size: 0.9rem; }
.options-grid-small .card-content i { font-size: 1.5rem; }

/* Steps Animation */
.step { display: none; animation: fadeEffect 0.5s; }
.step.active { display: block; }
@keyframes fadeEffect { from {opacity: 0; transform: translateY(10px);} to {opacity: 1; transform: translateY(0);} }

/* Inputs du configurateur (étape 4) */
.input-group { display: flex; flex-direction: column; gap: 15px; max-width: 400px; margin: 0 auto 40px auto; }

/* Navigation Buttons */
.nav-btns { display: flex; justify-content: space-between; margin-top: 20px; }
.nav-btns.right-only { justify-content: flex-end; }
.btn-prev, .btn-next {
    padding: 12px 30px; border-radius: 8px; font-weight: 600; cursor: pointer; border: none; transition: 0.3s; font-size: 1rem;
}
.btn-prev { background: transparent; color: var(--text-muted); border: 1px solid rgba(255,255,255,0.1); }
.btn-prev:hover { border-color: white; color: white; }
.btn-next { background: #3b82f6; color: white; }
.btn-next:hover { background: #2563eb; transform: translateY(-2px); }

/* =========================================
   7. ENGINEERING & REVIEWS
   ========================================= */
.engineering-panel {
    display: flex;
    align-items: center; /* Centre le bloc verticalement */
    gap: 40px;
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid var(--border); padding: 40px; border-radius: 16px;
}
.eng-text { flex: 1; }
.eng-text p { color: var(--text-muted); margin-bottom: 20px; }

/* Correction de la liste (Alignement) */
.eng-list { list-style: none; }

.eng-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start; /* Clé pour l'alignement haut */
    gap: 15px;
    color: var(--text-muted);
    line-height: 1.5;
}

.eng-list i {
    color: var(--secondary);
    min-width: 24px;
    margin-top: 5px; /* Aligne l'icône avec la première ligne de texte */
    text-align: center;
}

.eng-list strong {
    color: white;
    margin-right: 5px;
}

.eng-icon { font-size: 4rem; color: rgba(255,255,255,0.05); padding: 20px; }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.review-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
    padding: 25px; transition: transform 0.3s, border-color 0.3s;
}
.review-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.review-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.avatar {
    width: 40px; height: 40px; background: var(--primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: bold; color: white;
}
.user-info h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0; }
.user-info span { font-size: 0.8rem; color: var(--text-muted); }
.stars { color: var(--gold); margin-bottom: 15px; font-size: 0.9rem; }
.review-card p { color: var(--text-muted); font-size: 0.95rem; font-style: italic; }

/* =========================================
   8. FOOTER & CONTACT (DESIGN PREMIUM)
   ========================================= */
footer#contact {
    padding-top: 50px;
    padding-bottom: 50px;
    position: relative;
}

.glass-panel.footer-panel {
    background: linear-gradient(180deg, rgba(25, 25, 30, 0.6) 0%, rgba(10, 10, 12, 0.8) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    padding: 60px 40px;
    text-align: center;
    max-width: 900px;
    margin: 60px auto 0 auto;
    border-radius: 24px;
}

.footer-panel h2 { font-size: 2.5rem; margin-bottom: 10px; }
.footer-panel p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 40px; }

.contact-form {
    max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px;
}

/* Inputs spécifiques au Footer (Côte à côte sur PC) */
.contact-form .input-group {
    display: flex; flex-direction: row; gap: 20px; margin-bottom: 0; width: 100%;
}

.form-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 20px;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    width: 100%;
    transition: all 0.3s ease;
}

textarea.form-input { min-height: 150px; resize: vertical; }

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: white; font-weight: 700; padding: 16px 50px;
    border: none; border-radius: 12px; font-size: 1.1rem;
    cursor: pointer; transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    align-self: center; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-transform: uppercase; letter-spacing: 1px; margin-top: 10px;
}
.submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
}

.legal {
    margin-top: 50px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.legal p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.3); margin: 0; }

/* =========================================
   9. MEDIA QUERIES & MOBILE FIXES
   ========================================= */
@media (max-width: 768px) {
    /* Typographie */
    h1 { font-size: 2.2rem; word-wrap: break-word; }
    h2 { font-size: 1.8rem; }

    /* Layout général */
    .container { padding: 40px 15px; }
    .nav-links { display: none; } /* Cache le menu desktop */

    /* Hero */
    .hero { padding: 80px 15px 40px 15px; }
    .hero-content { width: 100%; padding: 0 5px; }

    /* Boutons Hero empilés */
    .cta-group { flex-direction: column; width: 100%; padding: 0 10px; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; display: block; }

    /* Bento Grid */
    .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .main-shot { grid-row: auto; height: 300px; }

    /* Engineering */
    .engineering-panel { flex-direction: column-reverse; text-align: center; }
    .eng-list { text-align: left; }

    /* Footer Mobile */
    .glass-panel.footer-panel { margin: 40px 10px 0 10px; padding: 40px 20px; width: auto; }
    .contact-form .input-group { flex-direction: column; }
    .submit-btn { width: 100%; }
}