/* ==========================================================================
   MON SETUP - LOLO26DIR | Design Premium Glassmorphism
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES, RESET & BASE
   ========================================================================== */
:root {
    --primary-color: #8A2BE2;
    --primary-glow: rgba(138, 43, 226, 0.6);
    --primary-light: #b472f8;
    --bg-dark: #07050f;
    --bg-card: rgba(15, 10, 25, 0.45);
    --bg-card-solid: rgba(14, 11, 26, 0.9);
    --text-main: #ffffff;
    --text-muted: #c8c5e6;
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(138, 43, 226, 0.7);
    --gold: #eab308;
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

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

body, html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--text-main);
    font-family: 'Rajdhani', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000; /* Fallback */
}

/* Scrollbar custom */
body::-webkit-scrollbar { width: 8px; }
body::-webkit-scrollbar-track { background: rgba(11, 9, 20, 0.5); }
body::-webkit-scrollbar-thumb {
    background: rgba(138, 43, 226, 0.4);
    border-radius: 10px;
}
body::-webkit-scrollbar-thumb:hover { background: rgba(138, 43, 226, 0.7); }
body { scrollbar-width: thin; scrollbar-color: rgba(138, 43, 226, 0.4) rgba(11, 9, 20, 0.5); }

.hidden {
    display: none !important;
}

/* ==========================================================================
   2. FOND VIDÉO
   ========================================================================== */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        135deg,
        rgba(10, 5, 20, 0.7) 0%,
        rgba(15, 5, 30, 0.4) 50%,
        rgba(10, 5, 20, 0.8) 100%
    );
    z-index: 1;
    pointer-events: none;
    backdrop-filter: blur(3px); /* Ajoute un léger flou au fond pour faire ressortir le verre */
    -webkit-backdrop-filter: blur(3px);
}

/* ==========================================================================
   3. HEADER & FOOTER FIXES
   ========================================================================== */
#header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

#footer-container {
    position: relative;
    width: 100%;
    z-index: 10;
    background: var(--bg-dark);
}

/* ==========================================================================
   4. PAGE DE CHOIX - SPLIT SCREEN PREMIUM
   ========================================================================== */
.choice-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    z-index: 2;
}

.choice-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Séparateur central lumineux */
.choice-side.left-side {
    border-right: 1px solid rgba(138, 43, 226, 0.15);
}

/* Overlay de fond au survol */
.choice-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(138, 43, 226, 0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.choice-side:hover::before {
    opacity: 1;
}

/* Contenu de la carte */
.choice-card {
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-subtle);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 50px 40px;
    text-align: center;
    max-width: 420px;
    width: 100%;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    animation: fadeInUp 0.8s ease backwards;
}

.left-side .choice-card { animation-delay: 0.1s; }
.right-side .choice-card { animation-delay: 0.25s; }

.choice-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.choice-side:hover .choice-card {
    border-color: var(--border-glow);
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 70px rgba(138, 43, 226, 0.25),
                0 0 40px rgba(138, 43, 226, 0.15),
                inset 0 0 20px rgba(138, 43, 226, 0.1);
}

.choice-side:hover .choice-card::before {
    opacity: 1;
}

.choice-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary-light);
    transition: all 0.4s ease;
}

.choice-side:hover .choice-icon {
    background: rgba(138, 43, 226, 0.25);
    border-color: var(--primary-color);
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
    color: #fff;
}

.choice-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.choice-card .choice-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-weight: 500;
}

.choice-price {
    font-size: 2.8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: -1px;
    transition: all 0.4s ease;
    line-height: 1;
    margin-bottom: 20px;
}

.choice-side:hover .choice-price {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

.choice-badge {
    display: inline-block;
    background: rgba(138, 43, 226, 0.12);
    color: #bfa3ff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(138, 43, 226, 0.25);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Bouton "Pourquoi deux setups ?" */
.why-setup-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 28px;
    background: rgba(14, 17, 31, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 11;
    transition: all 0.3s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 1s ease 0.5s backwards;
}

.why-setup-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.4);
    transform: translateX(-50%) translateY(-2px);
}

/* ==========================================================================
   5. MODAL EXPLICATIVE
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 10, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20000;
}

.modal-card {
    background: var(--bg-card-solid);
    padding: 45px;
    border-radius: 20px;
    max-width: 550px;
    width: 90%;
    text-align: center;
    position: relative;
    border: 1px solid var(--border-glow);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
                0 0 30px rgba(138, 43, 226, 0.15);
    animation: fadeInUp 0.3s ease;
}

.modal-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-light);
    font-weight: 800;
}

.modal-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
    background: none;
    border: none;
    font-family: inherit;
}

.close-modal:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   6. VUE DÉTAILLÉE SETUP - GRILLE DE CARTES
   ========================================================================== */
.setup-detail-container {
    min-height: 100vh;
    padding: 100px 5% 60px;
    position: relative;
    z-index: 2;
}

/* Header de la vue détaillée */
.setup-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.5s ease backwards;
}

.setup-detail-header h1 {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.setup-detail-header h1 .purple-text {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
}

.setup-total-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
    background: rgba(138, 43, 226, 0.08);
    border: 1px solid var(--border-subtle);
    padding: 8px 24px;
    border-radius: 12px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: rgba(14, 17, 31, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
}

.back-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
    transform: translateY(-1px);
}

/* Grille des équipements */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    animation: fadeInUp 0.6s ease 0.15s backwards;
}

/* Carte d'équipement */
.equipment-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.equipment-card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.equipment-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(138, 43, 226, 0.2),
                0 0 25px rgba(138, 43, 226, 0.15),
                inset 0 0 15px rgba(138, 43, 226, 0.05);
}

.equipment-card:hover::after {
    opacity: 1;
}

.equipment-card.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.25);
}

.equip-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.equip-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-light);
    background: rgba(138, 43, 226, 0.12);
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.equipment-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.equip-preview-specs {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.equip-preview-specs span {
    display: block;
}

/* Indicateur de clic */
.equip-click-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    font-size: 0.78rem;
    color: rgba(138, 43, 226, 0.6);
    font-weight: 600;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
}

.equipment-card:hover .equip-click-hint {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   7. PANNEAU DE DÉTAILS SLIDE-IN
   ========================================================================== */
.detail-panel {
    position: fixed;
    right: 0;
    top: 0;
    width: 440px;
    height: 100vh;
    padding: 100px 30px 30px;
    background: rgba(10, 8, 20, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--border-glow);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.6);
    z-index: 500;
    overflow-y: auto;
}

.detail-panel.open {
    transform: translateX(0);
}

/* Scrollbar du panneau */
.detail-panel::-webkit-scrollbar { width: 6px; }
.detail-panel::-webkit-scrollbar-track { background: transparent; }
.detail-panel::-webkit-scrollbar-thumb {
    background: rgba(138, 43, 226, 0.3);
    border-radius: 10px;
}

.panel-close {
    position: absolute;
    top: 75px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.panel-close:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: var(--primary-color);
    color: #fff;
}

.panel-icon-large {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.panel-category-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-light);
    background: rgba(138, 43, 226, 0.12);
    padding: 4px 12px;
    border-radius: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.panel-item-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
}

/* Specs grid */
.specs-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: border-color 0.3s ease;
}

.spec-row:hover {
    border-color: var(--border-subtle);
}

.spec-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Anecdote */
.panel-anecdote {
    background: rgba(138, 43, 226, 0.06);
    border-left: 3px solid var(--primary-color);
    padding: 16px 20px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 25px;
}

.panel-anecdote p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
}

/* Navigation du panneau */
.panel-nav {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-btn {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.nav-btn:hover {
    background: rgba(138, 43, 226, 0.15);
    border-color: var(--primary-color);
    color: #fff;
}

/* ==========================================================================
   8. ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   9. RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .choice-container {
        flex-direction: column;
        min-height: auto;
        padding-top: 70px;
        padding-bottom: 80px;
    }

    .choice-side {
        min-height: 45vh;
        padding: 40px 20px;
    }

    .choice-side.left-side {
        border-right: none;
        border-bottom: 1px solid rgba(138, 43, 226, 0.15);
    }

    .choice-card {
        padding: 35px 25px;
    }

    .choice-card h2 {
        font-size: 1.6rem;
    }

    .choice-price {
        font-size: 2rem;
    }

    .why-setup-btn {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin: 30px auto 0;
    }

    .setup-detail-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .setup-detail-header h1 {
        font-size: 1.8rem;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .detail-panel {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .choice-card h2 {
        font-size: 1.4rem;
    }

    .choice-price {
        font-size: 1.8rem;
    }

    .choice-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }

    .setup-detail-container {
        padding: 90px 4% 40px;
    }
}