/* ==========================================================================
    DRANOX - MASTER STYLESHEET (VERSION DÉFINITIVE NON COMPRESSÉE ET VÉRIFIÉE)
    ========================================================================== */

:root {
    /* --- COULEURS --- */
    --road-bg: #f0f2f5;
    --road-panel: #ffffff;
    --road-text: #111111;
    --road-accent: #b90000; /* Rouge Sang profond (utilisé pour les lignes et le branding) */
    
    --x-bg: #050505;
    --x-panel: #141414;
    --x-text: #e0e0e0;
    --x-accent: #ff2a2a;    /* Rouge Néon (pour accent X) */
    
    /* NOUVEAU: Teintes neutres et chics pour les bordures et les ombres douces */
    --pro-border: #444444; /* Gris anthracite pour les cadres */
    --pro-shadow: 0 5px 15px rgba(0,0,0,0.15); /* Ombre douce et diffuse */
    --pro-accent: #777777; /* Accent discret */
    
    /* --- POLICES --- */
    --font-title: 'Orbitron', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --font-mono: 'Roboto Mono', monospace; /* Police technique pour les specs */
    --font-script: 'Dancing Script', cursive;
    
    /* --- VARIABLES DYNAMIQUES (Défaut: Road) --- */
    --bg: var(--road-bg);
    --panel: var(--road-panel);
    --text: var(--road-text);
    --accent: var(--road-accent);
    --border: #dddddd;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Thème Division X */
body.theme-x {
    --bg: var(--x-bg);
    --panel: var(--x-panel);
    --text: var(--x-text);
    --accent: var(--x-accent);
    --border: var(--pro-border); /* Utilisation du gris foncé pour les bordures */
    --shadow: 0 0 30px rgba(255, 42, 42, 0.08); /* Ombre très légère */
}

/* --- BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { 
    font-family: var(--font-body); background-color: var(--bg); color: var(--text); 
    overflow-x: hidden; transition: all 0.5s ease;
    
    /* CURSEUR PERSONNALISÉ */
    cursor: url('images/cursor-dranox-losange.png'), auto; 
}
a, button, .car-card, .quick-thumb, .opt-item { 
    cursor: url('images/cursor-dranox-carre.png'), pointer !important; 
}
img, video { display: block; width: 100%; height: auto; object-fit: cover; }

/* ==========================================================================
    CORRECTION SCROLLBAR ET PROGRESS BAR
    ========================================================================== */

/* 1. Masquer la scrollbar par défaut sur tous les navigateurs sauf le PDF */
body::-webkit-scrollbar, 
.config-options-panel::-webkit-scrollbar, 
.options-content-wrapper::-webkit-scrollbar,
.car-grid::-webkit-scrollbar {
    width: 0px !important;
    height: 0px !important; 
    background: transparent;
}
body,
.config-options-panel, 
.options-content-wrapper,
.car-grid {
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

/* 2. Barre de défilement pour le PDF (conservée) */
.pdf-preview-box {
    overflow-y: scroll !important;
}
.pdf-preview-box::-webkit-scrollbar {
    width: 8px;
    background-color: var(--bg);
}
.pdf-preview-box::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 4px;
    border: 1px solid var(--bg);
}

/* 3. Barre de progression de lecture (Modifiée pour glow) */
#scroll-progress-bar {
    position: fixed;
    top: 70px; /* Position ajustée au nouveau header */
    left: 0;
    width: 0%;
    height: 5px; /* Épaisseur augmentée */
    background-color: var(--accent);
    z-index: 2001;
    transition: all 0.5s ease;
    box-shadow: 0 0 10px var(--accent); /* Glow cinématique */
}

/* ==========================================================================
    NAVIGATION (TOP BAR - NOUVEAU LAYOUT DYNAMIQUE)
    ========================================================================== */
.top-red-bar {
    position: fixed; top: 0; left: 0; width: 100%; height: 70px;
    background: linear-gradient(90deg, #0A0A0A 0%, #151515 50%, #0A0A0A 100%); /* Base plus sombre */
    z-index: 2000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.8); 
    border-bottom: 3px solid var(--road-accent); 
    display: flex; align-items: center;
}
body.theme-x .top-red-bar {
     border-bottom-color: var(--x-accent);
}
.nav-container { 
    width: 95%; max-width: 1800px; margin: 0 auto; 
    display: flex; justify-content: space-between; align-items: center; 
}

/* NOUVEAU : Bloc Logo/Titre */
.logo-dranox {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-dranox i {
    color: var(--accent);
    font-size: 2rem;
    transition: color 0.5s;
    /* Rendre le logo visible même s'il est techniquement dans le flux du titre */
    z-index: 10;
}
#dynamic-logo-title {
    font-family: var(--font-title); 
    font-weight: 900; 
    color: white; 
    font-size: 1.5rem; 
    text-shadow: 0 2px 5px rgba(0,0,0,0.5); 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    max-width: 350px;
    
    /* MODIFICATION DEMANDÉE: Titre vif/dégradé */
    background-image: linear-gradient(90deg, #FFFFFF 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none; /* Retirer l'ancienne ombre */
    transition: all 0.5s;
}

/* NOUVEAU : Barre d'information dynamique (Heure/Date/Univers) */
#dynamic-info-bar {
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #AAAAAA;
    gap: 25px;
    margin-right: 20px;
    white-space: nowrap;
}
#dynamic-info-bar span i {
    color: var(--accent);
    margin-right: 5px;
}
#dynamic-info-bar .univers-tag {
    font-weight: bold;
    color: var(--accent);
    text-transform: uppercase;
    transition: color 0.5s;
}

/* --------------------------------------------------------------------------
    NOUVEAU: BOUTONS DE NAVIGATION INTÉGRÉS DANS LE HEADER
    -------------------------------------------------------------------------- */
.header-nav-links {
    display: flex;
    align-items: center;
    height: 70px; /* Prend toute la hauteur de la barre de navigation */
    position: relative;
    z-index: 100;
}

.header-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 25px;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    position: relative;
    background: rgba(255, 255, 255, 0); /* Assure la transparence par défaut */
    border-left: 1px solid rgba(255, 255, 255, 0.1); /* Ligne fine pour séparation */
}
.header-nav-link i {
    margin-right: 8px;
    color: var(--accent);
    transition: color 0.3s;
}

/* Effet de Bouton intégré (légère différence) */
.header-nav-link:hover {
    background: rgba(255, 255, 255, 0.05); /* Arrière-plan légèrement visible au survol */
    color: var(--accent);
    box-shadow: inset 0 -3px 0 0 var(--accent); /* Soulignement dynamique */
}
.header-nav-link:hover i {
    color: white; /* Inverse la couleur de l'icône */
}

/* Bouton Menu/Fermer (Ancien Menu Toggle) */
.menu-toggle-btn {
    background: none;
    /* Amélioration: Bordure plus épaisse */
    border: 3px solid white;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: 0.3s;
    margin-left: 20px;
    z-index: 2002; 
    /* Amélioration: Ombre pro */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}
.menu-toggle-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--accent);
}

/* Masquer le bouton mobile par défaut (version bureau) */
#mobile-menu-toggle {
    display: none;
}


/* NOUVEAU : MENU OVERLAY VOITURES (TAILLE AJUSTÉE À 70VH) */
.main-nav-overlay {
    position: fixed;
    /* Centering it: */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* New size: ~80% of viewport */
    width: 90%; 
    max-width: 1400px; 
    height: 70vh; /* MODIFICATION: Hauteur fixée à 70% de la fenêtre */
    
    background: rgba(0, 0, 0, 0.98); 
    z-index: 1999;
    display: none; 
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 30px;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease-out;
    overflow-y: auto; 
    border-radius: 15px; /* Add a nice border radius */
    border: 3px solid var(--accent); /* Frame it cinematically */
    box-shadow: 0 0 50px rgba(255, 42, 42, 0.5); 
}
.main-nav-content {
    text-align: center;
    max-width: 1200px; /* Contenir le contenu principal */
    width: 100%;
    margin: 0 auto;
}

/* Bandeau Nouveauté (Qui claque) */
#nouveaute-banner {
    display: flex;
    justify-content: flex-end; /* Align content to the right */
    align-items: center;
    width: 100%;
    /* MODIFICATION DEMANDÉE : Image plus grande dans le dropdown */
    max-width: 100%; /* Prend toute la largeur du dropdown */
    height: 400px; /* Hauteur augmentée */
    margin: 40px auto;
    padding: 30px;
    
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    
    position: relative;
    overflow: hidden;
    
    border: 3px solid var(--accent);
    border-radius: 12px;
    text-decoration: none;
    
    /* MODIFICATION: Retrait de l'animation pulseBorder */
    box-shadow: 0 0 25px rgba(255, 42, 42, 0.3);
}
#nouveaute-banner:before {
    content: '';
    position: absolute;
    inset: 0;
    /* Gradient overlay from left (dark) to right (less dark) */
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    z-index: 1;
}

#nouveaute-banner .text-group {
    text-align: right; /* Text aligned to the right */
    color: white;
    position: relative;
    z-index: 2; /* Above the overlay */
    padding-left: 20px;
    padding-right: 0;
    max-width: 400px;
}
#nouveaute-banner .text-group h3 {
    font-family: var(--font-title);
    font-size: 2.5rem; /* Larger font */
    color: var(--x-accent);
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}
#nouveaute-banner .text-group p {
    font-size: 1.2rem;
    font-weight: 500;
}
#nouveaute-banner .cta-btn {
    background: var(--x-accent);
    color: black;
    padding: 15px 30px;
    border-radius: 5px;
    font-family: var(--font-title);
    font-weight: 900;
    transition: 0.3s;
    position: relative;
    z-index: 2;
    margin-left: 30px;
}
#nouveaute-banner .cta-btn:hover {
    background: white;
    transform: scale(1.05);
}


.nav-section-title {
    color: #555;
    font-size: 1rem;
    margin: 40px 0 20px 0;
    border-top: 1px solid #333;
    padding-top: 20px;
    text-transform: uppercase;
}

/* NOUVEAUX STYLES: AFFICHAGE DES VOITURES DANS LE MENU (COLONNES) */
#nav-car-list {
    /* MODIFIÉ: Rendre les sections Road/X côte à côte et prendre toute la largeur */
    display: flex; 
    justify-content: space-between;
    gap: 30px; 
    width: 100%;
    max-width: none; 
    flex-direction: row; 
    margin: 0 auto;
}

.nav-car-column {
    flex: 1;
    min-width: 45%; 
    max-width: none;
    text-align: left;
}

.nav-car-column h2 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 3px solid;
    text-transform: uppercase;
}

.nav-car-column.road h2 {
    color: var(--road-accent);
    border-color: var(--road-accent);
}
.nav-car-column.x h2 {
    color: var(--x-accent);
    border-color: var(--x-accent);
}

.nav-car-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: white;
    transition: all 0.3s;
    background: transparent;
}
.nav-car-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-bottom-color: var(--accent);
    transform: translateX(5px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.nav-car-thumb {
    width: 100px; 
    height: 70px;
    overflow: hidden;
    border-radius: 4px;
    flex-shrink: 0;
    margin-left: 15px; /* Décalage à droite du texte pour la vignette */
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.nav-car-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nav-car-info {
    flex-grow: 1;
    text-align: left;
}
.nav-car-info strong {
    font-family: var(--font-title);
    font-size: 1.1rem;
    display: block;
    color: white;
}
.nav-car-price {
    font-weight: bold;
    font-size: 1rem;
    color: var(--accent);
}
.nav-car-item.x .nav-car-price {
     color: var(--x-accent);
}

/* Styles pour les liens ACCÈS RAPIDE */
.nav-quick-link {
    display: block;
    font-family: var(--font-title);
    font-size: 1.4rem !important; /* MODIFICATION: Taille ajustée */
    color: white;
    text-transform: uppercase;
    padding: 15px 0;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-top: 10px;
    letter-spacing: 1px;
    transition: all 0.3s;
}
.nav-quick-link:hover {
    color: var(--accent);
    letter-spacing: 5px;
    background: rgba(255, 255, 255, 0.05);
}
.nav-quick-link:before {
    /* Retirer l'effet de soulignement large du header-nav-link */
    display: none; 
}


/* --- NOUVEAUX STYLES POUR LE DROPDOWN HEADER --- */

/* Conteneur relatif pour le dropdown */
.menu-voiture-wrapper {
    position: relative;
    height: 100%; /* Prend la hauteur du header-nav-links */
}

/* NOUVEAU: Menu Dropdown (version bureau/large) */
.main-nav-dropdown {
    position: absolute;
    top: 70px; 
    /* MODIFICATION 1: Largeur à 80% et centrage */
    width: 80vw; /* Utilise 80% de la largeur de la fenêtre */
    left: 50%;
    transform: translateX(-50%) translateY(-20px); /* Centrage Horizontal */
    
    max-height: 80vh; 
    
    /* MODIFICATION 3: Fond semi-transparent */
background: #400101;
background: radial-gradient(circle, rgba(64, 1, 1, 1) 0%, rgba(3, 0, 0, 1) 50%, rgba(17, 17, 17, 0.90) 100%);
    z-index: 1990; 
    overflow-y: auto; /* Permet le scroll du contenu */
    
    padding: 30px;
    border-radius: 0 0 8px 8px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);

    /* PROPRIÉTÉS DE TRANSITION (OUVERTURE & FERMETURE FLUIDE) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0.3s ease-out;
}

.main-nav-dropdown.visible-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* Descend à sa position normale */
}

/* Ajustement des éléments internes pour ce format plus étroit */
.main-nav-dropdown .nav-car-content, 
.main-nav-dropdown .nav-section-title {
    max-width: none; 
    margin-left: 0;
    margin-right: 0;
}
.main-nav-dropdown .nav-section-title {
    margin-top: 20px;
    margin-bottom: 15px;
}
/* MODIFIÉ: Ajustement de la bannière pour plus de hauteur dans le dropdown */
.main-nav-dropdown #nouveaute-banner {
    width: 100%;
    height: 300px; /* HAUTEUR RÉDUITE (400px -> 300px) */
    margin: 10px auto 40px auto;
    max-width: 100%; /* Prend toute la largeur du dropdown */
}
.main-nav-dropdown #nouveaute-banner .text-group h3 {
    font-size: 1.5rem;
}

/* MODIFICATION 2: Rendre les sections Road/X côte à côte et prendre toute la largeur */
#nav-car-list {
    display: flex; 
    justify-content: space-between;
    gap: 30px; 
    width: 100%;
    max-width: none; 
    flex-direction: row; 
    margin: 0 auto;
}

.nav-car-column {
    flex: 1;
    min-width: 45%; 
    max-width: none;
}

.main-nav-dropdown .nav-car-column h2 {
    font-size: 1.5rem;
    margin-top: 15px;
    margin-bottom: 10px;
}

/* Désactiver l'ancien style overlay pleine page si il reste */
.main-nav-overlay {
    display: none !important; 
}


/* MODIFICATION 3: Styles pour les liens Quick Access FIXÉS */

/* Wrapper pour les liens rapides: DOIT être sticky pour rester en bas du scroll */
#menu-quick-links-fixed-wrapper {
    position: sticky; 
    bottom: -30px; /* Positionnement au bas de l'espace de padding */
    left: 0;
    width: 100%;
    
    /* Le fond doit être opaque pour cacher le contenu qui défile en dessous */
    background: rgba(17, 17, 17, 0.990);
    padding: 20px 0 0 0;
    border-top: 2px solid var(--accent);
    z-index: 200; /* Assurez-vous qu'il est au-dessus des voitures qui scrollent */
}

/* Rendre les liens cote à cote */
#menu-quick-links-dynamic {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 30px; /* Compense le bottom: -30px du wrapper */
}
.nav-quick-link {
    flex: 1; /* Chaque lien prend 50% de la place disponible */
    text-align: center;
}
.main-nav-dropdown .nav-section-title:last-of-type {
    margin-bottom: 0; /* Supprimer la marge sous le titre "ACCÈS RAPIDE" */
}


/* --- BOUTONS GLOBAUX (Retrait des ombres 3D) --- */
.btn-cta { padding: 15px 30px; border: none; border-radius: 4px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.btn-cta.solid { background: var(--accent); color: white; box-shadow: none; }
.btn-cta.solid:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-cta.outline { border: 2px solid var(--text); background: transparent; color: var(--text); box-shadow: none; }
.btn-cta.outline:hover { border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
    MODIFICATION DETAIL.HTML: TITRE VIF
    ========================================================================== */
#page-detail #d-name {
    /* MODIFICATION DEMANDÉE: Titre vif/coloré */
    background-image: linear-gradient(90deg, var(--accent) 0%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0,0,0,1);
    letter-spacing: 5px;
}


/* ==========================================================================
    BARRE LATÉRALE GAUCHE (QUICK NAV - CONFIGURATEUR)
    ========================================================================== */
#quick-nav {
    position: fixed; top: 70px; left: 0; bottom: 0; width: 130px; 
    /* Utilise les variables dynamiques (Road/Clair par défaut) */
    background: var(--panel); 
    color: var(--text);
    border-right: 3px solid var(--accent); 
    box-shadow: 5px 0 15px rgba(0,0,0,0.5); 
    
    z-index: 1500; display: none;
    flex-direction: column; align-items: center; padding: 10px 0; gap: 20px;
    overflow-y: auto; 
}
/* Thème Division X (Sombre) géré par les variables dynamiques (body.theme-x) */

/* Affichage conditionnel */
body#page-configurator #quick-nav { display: flex; }
/* Le padding droit est maintenant géré par la classe step-2-active */
body#page-configurator { 
    padding-left: 130px; 
    padding-right: 0px; 
    padding-top: 70px;
    min-height: 100vh;
    background-color: var(--bg);
} 

/* NOUVEAU: Ajoute le padding droit de 400px UNIQUEMENT lorsque l'étape 2 (Options) est active */
body#page-configurator.step-2-active {
    padding-right: 400px; 
}

/* Styles des boutons ROAD/DIV X dans la barre latérale */
.quick-nav-header { 
    display: flex; 
    justify-content: center; 
    gap: 0;
    width: 100%; 
    padding: 10px 0 20px 0; 
    border-bottom: none; 
    margin-bottom: 20px;
    position: relative; 
    /* Retire l'overflow hidden ici, mais garantit que le séparateur ne dépasse pas. */
    z-index: 20; 
}

/* NOUVEAU: Séparateur cinématique oblique (WOW EFFECT) */
.quick-nav-header:after {
    content: '';
    position: absolute;
    width: 10px; /* ÉPAISSEUR AUGMENTÉE */
    height: 100%; /* FIX: 100% de la hauteur du conteneur (padding inclus) */
    left: 50%;
    top: 0; /* FIX: Top à 0 pour éviter le débordement vertical */
    transform: translateX(-50%) skewX(-10deg); 
    /* La couleur reste un gradient pour la transition visuelle ROAD/X */
    background: linear-gradient(to top, var(--road-accent) 0%, var(--x-accent) 100%);
    z-index: 21; /* Devant les boutons */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); 
}

.univ-switch-btn {
    flex-grow: 1; 
    padding: 20px 5px; /* FIX: Augmentation du padding pour la hauteur */
    font-size: 0.9rem; 
    font-weight: 700;
    text-transform: uppercase;
    
    border: none; 
    border-radius: 0; 
    opacity: 0.8; 
    transition: all 0.3s;
    font-family: var(--font-title); 
    letter-spacing: 1px;
    position: relative;
    z-index: 15; /* Sous le séparateur */
}

/* Dualité Statique des Couleurs */
.univ-switch-btn[data-universe='road'] {
    background-color: var(--road-panel); /* Statiquement clair */
    color: var(--road-text); /* Statiquement foncé */
}
.univ-switch-btn[data-universe='x'] {
    background-color: var(--x-panel); /* Statiquement sombre */
    color: var(--x-text); /* Statiquement clair */
}

/* Styles ACTIF */
.univ-switch-btn.active {
    opacity: 1;
    /* FIX: La couleur du texte du bouton actif ROAD est white sur l'accent rouge */
    color: white !important; 
    background: var(--accent) !important;
    box-shadow: 0 0 8px var(--accent); 
    font-weight: 900;
}
/* FIX: Exception pour Div X actif: la couleur de l'accent DIV X est utilisée */
.univ-switch-btn[data-universe='x'].active {
    background: var(--x-accent) !important;
    color: var(--x-panel) !important; /* Texte foncé pour mieux ressortir sur le rouge néon */
}

/* NOUVEAU STYLE: Vignette de Sélection Véhicule (Taille et Rendu Pro) */
.quick-thumb {
    width: 100px; /* Taille augmentée pour un rendu plus pro (100x75) */
    height: 75px; 
    border-radius: 4px; 
    overflow: hidden; 
    cursor: pointer;
    border: 1px solid var(--pro-border); 
    opacity: 0.7; /* Diminue légèrement l'état inactif */
    transition: all 0.3s;
    background: #000; 
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3); /* Ombre pro */
}
.quick-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Amélioration du survol */
.quick-thumb:hover { 
    opacity: 0.9; 
    border-color: var(--accent);
    transform: scale(1.02); /* Mouvement très subtil */
    box-shadow: 0 0 10px rgba(255, 42, 42, 0.3); 
}

/* STYLE ACTIF: Effet "Wow" plus cinématique (Sélectionnée) */
.quick-thumb.active { 
    opacity: 1; 
    border: 2px solid white; /* Bordure blanche fine pour le contraste ultime */
    transform: scale(1.08) translateY(-2px); /* Soulèvement prononcé et élégant */
    /* Glow multi-couche : subtil noir pour la profondeur, puis accent pour la lumière */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5), 0 0 15px var(--accent); 
    z-index: 10;
}
.quick-thumb.active:hover {
    transform: scale(1.08) translateY(-2px); /* Ne change pas de taille au survol si actif */
    border-color: white; /* Maintien le blanc au survol */
}

/* ==========================================================================
    PAGE ACCUEIL (INDEX) - Amélioré
    ========================================================================== */
.hero-header {
    height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; 
    text-align: center; color: white; overflow: hidden;
}
.video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8)); z-index: 1; }
.hero-content { position: relative; z-index: 2; animation: slideUp 1s ease-out; }

.hero-content h1 { font-family: var(--font-title); font-size: 5rem; margin-bottom: 20px; text-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.hero-content p { font-size: 1.5rem; letter-spacing: 5px; margin-bottom: 50px; font-weight: 300; }

.section { padding: 100px 5%; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-family: var(--font-title); font-size: 3rem; margin-bottom: 20px; }
.separator { width: 100px; height: 5px; background: var(--accent); margin: 0 auto; }

.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 40px; }
.car-card { 
    background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; 
    cursor: default; /* Curseur par défaut sur la carte, les liens enfants gèrent l'interactivité */
    display: flex;
    flex-direction: column; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.car-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--accent); 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Thème Division X pour les cartes (FIX) */
#x .car-card {
    background: var(--x-panel); 
    color: var(--x-text); 
    border-color: var(--pro-border); 
}

#x .car-card:hover { 
    border-color: var(--x-accent); 
    box-shadow: 0 5px 15px rgba(255, 42, 42, 0.2); 
    transform: translateY(-3px);
}

#x .car-card-price {
    color: var(--x-accent); 
}

.car-card-img {
    cursor: pointer; 
    height: 250px; 
    overflow: hidden; 
    position: relative; 
}
.car-card-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.5s; 
}
/* MODIFICATION DEMANDÉE : Suppression de l'effet de zoom/opacité au survol */
/* .car-card-img:hover img { transform: scale(1.1); opacity: 0.3; } */

.car-card-info { 
    padding: 25px; 
    cursor: pointer; /* Rendre la zone de texte cliquable */
} 
.car-card-info:hover { 
    background-color: var(--road-bg); /* Empêche le flash de couleur Road/X */
    filter: brightness(0.95); /* Léger effet d'enfoncement */
}

.car-card-title { font-size: 1.5rem; font-weight: 800; font-family: var(--font-title); margin-bottom: 5px; }
.car-card-price { color: var(--accent); font-size: 1.2rem; font-weight: bold; float: right; }


/* ==========================================================================
    NOUVEAUX STYLES : OVERLAY & BADGES - Amélioré
    ========================================================================== */

/* 1. STYLES DE L'OVERLAY QUI APPARAÎT AU SURVOL */
.image-overlay-info {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85); /* Plus opaque pour la lisibilité */
    color: white;
    display: flex;
    flex-direction: column; 
    justify-content: flex-end; 
    align-items: flex-start;
    padding: 30px;
    opacity: 0; 
    transition: opacity 0.3s ease-in-out;
    pointer-events: none; 
    text-align: left;
    z-index: 2; 
}
.car-card-img:hover .image-overlay-info {
    opacity: 1; 
    pointer-events: auto; 
}
.overlay-short-desc {
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 500;
    margin-top: auto; 
    text-align: left;
    width: 100%;
}

/* 2. STYLES DES BADGES (APPARAISSENT ÉGALEMENT AU SURVOL) */
.card-badges-new {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 3; 
    opacity: 0; 
    transition: opacity 0.3s ease-in-out 0.1s;
    pointer-events: none;
}
.car-card-img:hover .card-badges-new {
    opacity: 1; 
    pointer-events: auto;
}
.badge-highlight {
    background: var(--accent);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5); 
}

/* 3. STYLES DES BOUTONS D'ACTION (Amélioré) */
.card-actions-new {
    display: flex;
    gap: 15px; 
    width: 100%;
    margin-top: 20px; 
}
.btn-card-detail, .btn-card-config {
    flex: 1;
    padding: 12px 15px; 
    font-size: 0.95rem;
    border-radius: 6px; 
    font-weight: 800; 
    text-transform: uppercase;
    border: 2px solid;
    transition: all 0.3s;
    box-shadow: none; 
    cursor: pointer;
}

/* Bouton DÉTAILS (Background translucide) */
.btn-card-detail {
    background: rgba(255, 255, 255, 0.15); 
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}
.btn-card-detail:hover {
    color: white;
    border-color: var(--accent);
    background: var(--accent); /* Devient solide rouge au survol */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(185, 0, 0, 0.3);
}

/* Bouton CONFIGURER (Couleur accent) */
.btn-card-config {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.btn-card-config:hover {
    filter: brightness(1.3); 
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 42, 42, 0.2); 
}

/* ==========================================================================
    AJOUTS VISUELS : FOOTER & HERO VIDÉO - Amélioré
    ========================================================================== */

/* --- FOOTER GLOBAL --- */
footer {
    background-color: #050505;
    color: #888;
    padding: 60px 0 30px 0;
    border-top: 5px solid var(--accent); 
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand h2 {
    font-family: var(--font-title);
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
}

/* LE BOUTON DISCORD "ATTIRE L'OEIL" */
.discord-pulse-btn {
    background-color: #5865F2;
    color: white;
    font-family: var(--font-title);
    font-weight: bold;
    font-size: 1.1rem;
    padding: 15px 40px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
    box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.7);
    animation: discordPulse 2s infinite; 
    transition: 0.3s;
}

.discord-pulse-btn:hover {
    transform: scale(1.05);
    background-color: #4752c4;
}

.discord-pulse-btn i { font-size: 1.5rem; }

/* Animation de pulsation */
@keyframes discordPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(88, 101, 242, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(88, 101, 242, 0); }
}

.footer-links a { margin-left: 20px; font-size: 0.9rem; }
.footer-links a:hover { color: white; text-decoration: underline; }

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #222;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* --- HERO VIDÉO PLEIN ÉCRAN (INDEX) --- */
#page-home .cinematic-header {
    height: 100vh; 
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#page-home .hero-video-bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    object-fit: cover;
    z-index: 0;
}

#page-home .hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

#page-home .hero-text-box {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 20px;
    background: rgba(0,0,0,0.5); 
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    animation: slideUp 1s ease-out;
}

/* Nouveaux styles pour les boutons du Hero (Point 4) */
.hero-text-box .hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}
.btn-cta.solid { 
    background: var(--accent); 
    color: white; 
    box-shadow: 0 0 0 0 rgba(185, 0, 0, 0.7);
    animation: pulseCta 2s infinite; 
}
.btn-cta.solid:hover {
    transform: translateY(-4px); 
    filter: brightness(1.1); 
    animation: none; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.5); 
}
.btn-cta.outline:hover { 
    border-color: var(--accent); 
    background: var(--accent); 
    color: white; 
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
#page-home .hero-text-box .btn-cta.outline {
    border-color: white;
    color: white;
}
@keyframes pulseCta {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(185, 0, 0, 0.7); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 15px rgba(185, 0, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(185, 0, 0, 0); }
}

/* Mobile responsive pour le footer */
@media (max-width: 768px) {
    .footer-content { flex-direction: column; text-align: center; }
    .discord-pulse-btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
    PAGE 2 : DÉTAIL (CINÉMATIQUE PRO - AMÉLIORÉE)
    ========================================================================== */
#page-detail { padding-top: 0; }

/* 1. HEADER VIDÉO CINÉMATIQUE */
.detail-hero {
    height: 90vh; 
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    margin-bottom: 80px;
    border-bottom: 3px solid var(--accent); 
}

.hero-bg-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
}
.hero-bg-container video, 
.hero-bg-container img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.7; 
    transition: opacity 0.5s;
}

.video-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
    background: radial-gradient(circle at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
}

#d-name {
    font-family: 'Orbitron', sans-serif; 
    font-size: 5rem; text-transform: uppercase;
    text-shadow: 0 10px 30px rgba(0,0,0,1);
    letter-spacing: 5px;
    color: var(--text);
    transition: color 0.5s;
}
#d-tagline {
    font-size: 1.8rem; letter-spacing: 5px; font-weight: 300; text-transform: uppercase;
    text-shadow: 0 5px 15px rgba(0,0,0,1);
    color: var(--accent);
}

.scroll-down-arrow {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    color: white; font-size: 2rem; z-index: 2;
    animation: bounce 2s infinite; 
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-20px) translateX(-50%);}
    60% {transform: translateY(-10px) translateX(-50%);}
}


/* 2. SECTION HISTOIRE / DESCRIPTION / ACHAT */
.detail-container {
    max-width: 1400px; margin: 0 auto; padding: 0 5% 80px 5%;
}

.section-title {
    font-family: var(--font-head); font-size: 2.2rem; margin-bottom: 25px;
    border-left: 5px solid var(--accent); padding-left: 20px;
    text-transform: uppercase;
}
.car-description { font-size: 1.1rem; line-height: 1.8; margin-bottom: 30px; opacity: 0.9; }

/* Le Poème */
.verse-display {
    text-align: center;
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--accent);
    margin: 0 10% 80px 10%;
    padding: 20px 0;
    line-height: 1.4;
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
}

/* Grille Infos/Achat */
.info-grid {
    display: flex; gap: 80px; margin-bottom: 80px; flex-wrap: wrap;
    align-items: flex-start;
}
.info-left { flex: 1.5; min-width: 400px; }
.info-right {
    flex: 1; 
    min-width: 300px;
    display: flex; 
    flex-direction: column;
    align-self: flex-start;
}

/* Features */
.detail-features-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.feature-tag { background: rgba(128,128,128,0.1); padding: 10px 20px; border-radius: 30px; font-weight: bold; border: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.feature-tag i { color: var(--accent); }

/* Galerie */
.gallery-title { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 5px; }
.gallery-subtitle { font-size: 0.85rem; color: #777; margin-bottom: 15px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 15px; }
/* Style des miniatures */
.gallery-thumb { width: 100%; height: 90px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; transition: 0.3s; background: #222; }
.gallery-thumb:hover { border-color: var(--accent); transform: scale(1.02); }

/* Style bouton vidéo (MODIFIÉ POUR LA NOUVELLE MINIATURE RP) */
.gallery-thumb.video-thumb { 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    background-color: var(--accent); color: white; font-size: 0.8rem; font-weight: bold; 
    background-size: cover; background-position: center;
}
.gallery-thumb.video-thumb:hover { background-color: #ff3333; }

/* Bloc Achat (CORRIGÉ ET AMÉLIORÉ) */
.buy-card {
    background: var(--panel); 
    border: 1px solid var(--pro-border); 
    padding: 40px; 
    border-radius: 15px; 
    box-shadow: var(--pro-shadow); 
    text-align: center; 
    position: fix; 
    top: 100px;
    margin-bottom: 40px;
    overflow: hidden;
    transition: all 0.5s ease;
    align-self: flex-start;
}

/* Styles Spécifiques Buy Card (Retrait des ombres agressives) */
body.theme-x .buy-card { 
    border-color: var(--pro-border); 
    box-shadow: var(--pro-shadow); 
}
body.theme-x .full-btn { box-shadow: none; } 

.full-btn { 
    width: 100%; padding: 20px; font-size: 1.2rem; font-weight: 900; 
    transition: all 0.1s; transform: translateY(0); position: relative;
    box-shadow: none; 
}
.full-btn:active {
    transform: translateY(1px); 
    box-shadow: none; 
}
.cta-note { font-size: 0.8rem; color: #999; margin-top: 15px; }

/* Distinctions */
.awards-title { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 20px; border-bottom: 3px solid var(--accent); display: inline-block; padding-bottom: 5px; color: var(--text); }
.awards-list { display: flex; flex-direction: column; gap: 15px; margin-bottom: 50px; padding-left: 0; list-style: none; }
.award-item { 
    display: flex; align-items: center; gap: 20px; padding: 15px 25px; border-radius: 8px; 
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 255, 255, 0.05) 5%, transparent 100%);
    border: 1px solid rgba(255, 215, 0, 0.3); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.award-item:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); }
.award-icon { font-size: 2.2rem; color: #FFD700; text-shadow: 0 0 5px rgba(255, 215, 0, 0.7); }


/* --------------------------------------------------------------------------
    FICHE TECHNIQUE (RENDU PLEINE PAGE GARANTI) - DIGITAL BLUEPRINT REVAMP
    -------------------------------------------------------------------------- */
.full-width-specs {
    width: 100vw; 
    margin-left: calc(50% - 50vw); 
    padding: 100px 0; 
    background: var(--x-panel); /* Fond sombre même en mode ROAD */
    border-top: 3px solid var(--accent); 
    border-bottom: 3px solid var(--accent); 
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.6); 
}

/* Conteneur pour limiter la largeur intérieure */
.specs-content-wrapper {
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 5%;
}

.specs-main-title { 
    text-align: center; 
    font-family: var(--font-title); 
    font-size: 3.8rem; 
    margin-bottom: 50px; 
    color: var(--accent); 
    text-transform: uppercase;
    letter-spacing: 8px; 
    padding-bottom: 25px;
    border-bottom: 4px double var(--accent); 
    display: table; 
    margin-left: auto;
    margin-right: auto;
}

.specs-grid-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 70px; 
    margin-top: 50px; 
}

/* Chaque colonne de specs - Effet de contraste accru */
.spec-category-column { 
    background: var(--x-bg); /* Utilise le fond noir/sombre */
    padding: 35px; 
    border-radius: 4px; 
    border: 1px solid var(--pro-border); 
    box-shadow: 0 0 10px rgba(255, 42, 42, 0.1); 
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}
.spec-category-column:hover { 
    border-color: var(--accent); 
    box-shadow: 0 0 20px var(--accent); /* Glow intense */
    transform: translateY(-5px); /* Soulèvement plus prononcé */
} 

/* Effet WOW : Ligne cinématique sur le survol (Utilise le pseudo-élément) */
.spec-category-column:before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
    transform: translateX(-100%);
    transition: transform 0.4s ease-out;
}
.spec-category-column:hover:before {
    transform: translateX(0);
}


.spec-cat-title { 
    font-family: var(--font-title); 
    color: var(--accent); 
    font-size: 1.6rem; 
    margin-bottom: 25px; 
    border-bottom: 3px solid var(--accent); 
    padding-bottom: 12px; 
    display: block; 
    text-transform: uppercase;
    letter-spacing: 2px;
}
.spec-line { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-between; 
    padding: 18px 0; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Lignes blanches très fines */
    font-size: 1.05rem; 
    line-height: 1.4; 
    word-break: normal; 
    color: var(--x-text); /* Texte clair */
}

.spec-line span:first-child { 
    color: #999; /* Label plus clair */
    font-weight: 500; 
    margin-right: 15px; 
    width: 70%; 
}

.spec-line b { 
    font-family: var(--font-mono); 
    color: var(--x-accent); /* Valeur en couleur accent X */
    font-weight: 700;
    text-align: right; 
    width: 25%;
    flex-shrink: 0; 
}


/* ==========================================================================
    PAGE CONFIGURATEUR: LAYOUT CINÉMATIQUE (MODIFIÉ)
    ========================================================================== */

/* Ajustements globaux pour le layout plein écran/fixe */
body#page-configurator { 
    padding-left: 130px; 
    padding-right: 0px; 
    padding-top: 70px;
    min-height: 100vh;
    background-color: var(--bg);
} 

/* NOUVEAU: Ajoute le padding droit de 400px UNIQUEMENT lorsque l'étape 2 (Options) est active */
body#page-configurator.step-2-active {
    padding-right: 400px; 
}

/* Conteneur principal */
.config-container { 
    max-width: none; 
    /* FIX SCROLL : Réduction du padding vertical pour éviter le scroll du body */
    padding: 10px 5% 20px 5%; 
}
/* Étape 2 (config-split) doit ignorer le padding du container */
.config-container #step-2 {
    margin-left: -5%; 
    margin-right: -5%; 
}

/* ÉTAPE 1, 3, 4 : Centrage du contenu restant */
#step-1, #step-3, #step-4 {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.final-layout-form {
    max-width: 800px; 
}

/* Etape 1 : Sélecteur d'Univers Cinématique (WOW EFFECT) */
.universe-selector {
    display: flex;
    justify-content: center;
    gap: 0; 
    margin-bottom: 50px;
    max-width: 600px; 
    margin-left: auto;
    margin-right: auto;
    border: 2px solid var(--pro-border); 
    border-radius: 6px;
    overflow: hidden; 
    position: relative; 
    box-shadow: var(--pro-shadow);
}
.universe-selector:before {
    content: '';
    position: absolute;
    width: 16px; /* FIX: Épaisseur augmentée */
    height: 100%;
    left: 50%;
    top: 0;
    transform: skewX(-10deg) translateX(-8px); /* FIX: Centrage parfait (moitié de 16px) */
    background: linear-gradient(to bottom, var(--road-accent) 0%, var(--x-accent) 100%);
    z-index: 10;
}
.universe-selector .univ-btn {
    flex: 1;
    padding: 18px 30px;
    font-size: 1.4rem;
    font-family: var(--font-title);
    letter-spacing: 3px;
    border: none; 
    border-radius: 0;
    opacity: 0.8;
    transition: all 0.3s;
    position: relative;
    z-index: 5;
}
.universe-selector .univ-btn:hover {
    opacity: 1;
}
/* Style spécifique pour Road (Gauche) */
.universe-selector .univ-btn[onclick*='road'] {
    background-color: var(--road-panel);
    color: var(--road-text);
}
.universe-selector .univ-btn[onclick*='road'].active {
    background-color: var(--road-accent);
    color: white;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}
/* Style spécifique pour Div X (Droite) */
.universe-selector .univ-btn[onclick*='x'] {
    background-color: var(--x-panel);
    color: var(--x-text);
}
.universe-selector .univ-btn[onclick*='x'].active {
    background-color: var(--x-accent); /* FIX: Couleur Division X active */
    color: var(--x-panel); 
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}


/* --- EFFET DE SURVOL SUR LES CARTES VÉHICULE À L'ÉTAPE 1 --- */
.car-card { cursor: pointer; }
.car-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); }
.car-card-img { cursor: pointer; }


/* Etape 2 : Layout - Aperçu + Options */
.config-split { display: block; padding: 0; }

/* --------------------------------------------------------------------------
    CENTER CINEMATIC VIEW (config-preview) - Inchangé
    -------------------------------------------------------------------------- */
.config-preview { 
    position: relative; 
    top: auto; 
    width: 100%;
    height: calc(100vh - 70px - 30px); 
    min-height: 500px; 
    padding: 20px;
    background: var(--panel);
    border-radius: 0; 
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -30px; 
}
body.theme-x .config-preview {
    border-color: var(--pro-border);
    box-shadow: 0 0 15px rgba(255, 42, 42, 0.2);
}
.preview-layer-container {
    position: relative;
    width: 95%; 
    max-width: 1400px; 
    height: 80%; 
    overflow: hidden;
    border-radius: 8px;
    background-color: #000; 
    display: flex;
    justify-content: center;
    align-items: center;
}
.preview-bg-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8; 
    transition: 0.5s;
}
.preview-car-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; 
    z-index: 10;
    transition: 0.3s ease-in-out;
}


/* --------------------------------------------------------------------------
    RIGHT FIXED SIDEBAR: OPTIONS PANEL
    -------------------------------------------------------------------------- */
.config-options-panel { 
    position: fixed; 
    top: 70px; 
    right: 0; 
    width: 400px; 
    height: calc(100vh - 70px); 
    
    background: var(--panel); 
    border-left: 1px solid var(--pro-border); 
    z-index: 1500; 
    padding: 30px; 
    border-radius: 0; 
    box-shadow: var(--pro-shadow); 
    
    overflow-y: auto; 
}

.options-content-wrapper {
    /* La wrapper doit permettre le défilement si le contenu est trop grand */
    overflow-y: auto;
    /* Hauteur restante après titre et boutons de nav */
    max-height: calc(100vh - 350px); 
    padding-right: 15px; 
    margin-bottom: 20px;
}

/* ANCIENNE NAVIGATION PAR CATÉGORIE (SUPPRIMÉE) */
.tabs-nav-full { display: none; }


/* --------------------------------------------------------------------------
    NOUVEAU: STRUCTURE DE PRÉSENTATION CONTINUE (OPP)
    -------------------------------------------------------------------------- */
/* Titre de catégorie pour la vue en mode continu */
.config-options-panel .category-title-header {
    background-color: var(--accent); 
    color: white;
    padding: 15px 20px;
    margin-top: 25px;
    margin-bottom: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.config-options-panel .category-title-header:first-child {
    margin-top: 0; /* Pas de marge pour la première catégorie */
}

/* Le contenu des catégories doit être affiché en permanence */
.config-options-panel .tab-content {
    display: block !important; 
    padding: 10px 0; 
}

/* --------------------------------------------------------------------------
    AMÉLIORATION DU RENDU DES OPTIONS (Cinematic/Pro Look)
    -------------------------------------------------------------------------- */
.opt-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start;
    padding: 15px; 
    
    /* Changement de style Pro */
    background: var(--bg); 
    border-radius: 8px; 
    border: none; /* Supprime la bordure simple */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Ombre douce */
    margin-bottom: 15px; 
    
    cursor: pointer; 
    transition: all 0.2s ease-in-out; 
    flex-wrap: wrap;
    position: relative;
}
.opt-item:hover { 
    border: 1px solid var(--accent); 
    background: var(--panel); /* Remonte la couleur du panneau au survol */
    transform: translateY(-2px); /* Léger soulèvement */
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
}


/* Masquage de l'input natif et style personnalisé */
.opt-item input[type="checkbox"],
.opt-item input[type="radio"] { 
    position: absolute;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}
.opt-item > div:first-child {
    pointer-events: none;
}

/* Le cercle de couleur devient l'indicateur principal (Légèrement agrandi) */
.color-circle {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0; 
    border: 3px solid var(--pro-border);
    box-shadow: none;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

/* ÉTATS DE SÉLECTION: COULEURS ET OPTIONS */
.opt-item:has(input:checked) {
    border: 2px solid var(--accent); /* Bordure accentuée plus forte */
    background: var(--panel); 
    box-shadow: 0 0 10px rgba(185, 0, 0, 0.4); /* Glow rouge subtil */
    transform: none; 
}
.opt-item input:checked + .color-circle {
    border-color: var(--accent);
    box-shadow: 0 0 5px var(--accent), inset 0 0 5px var(--accent); 
    transform: scale(1.0); /* Maintien de la taille */
}

.opt-item input:checked:after {
    content: '\f00c'; 
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 1.2rem;
    color: var(--accent);
    z-index: 20;
    text-shadow: 0 0 1px var(--panel); 
}

/* Positionnement de l'icône sur le cercle de couleur */
.opt-item input:checked + .color-circle:after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: var(--road-panel); 
    text-shadow: 0 0 3px var(--accent);
}

/* Fix pour Division X (icône de validation sur les options non-couleur) */
body.theme-x .opt-item input:checked:after {
    text-shadow: 0 0 1px var(--x-panel);
}

.opt-title-group {
    display: flex;
    flex-direction: column;
    flex: 1; 
    max-width: 70%;
}

.opt-detail-text {
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal; 
    max-width: 100%; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    height: auto;
}
.opt-item:hover .opt-detail-text {
    color: var(--text);
    white-space: normal;
    max-width: none;
    -webkit-line-clamp: unset; 
}

/* CORRECTION 2: FIXE LA POSITION DU PRIX À DROITE */
.opt-item span:last-child {
    flex-shrink: 0; 
    text-align: right;
    min-width: 100px; 
    margin-left: auto; 
}


/* ÉTAPE 3: FORMULAIRE CLIENT */
.final-layout-form {
    max-width: 800px; 
    margin: 0 auto;
    padding: 40px;
    background: var(--panel);
    border-radius: 10px;
    border: 1px solid var(--pro-border);
    box-shadow: var(--pro-shadow);
}
.form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
/* RESTAURATION COULEURS DYNAMIQUES ICI (ROAD/DIVISION X) */
.final-layout-form input, .final-layout-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    /* Défaut ROAD (Clair) */
    border: 1px solid var(--pro-border);
    background: var(--road-panel); 
    color: var(--road-text);
    font-family: var(--font-mono); 
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: all 0.3s; /* Ajout d'une transition pour le changement de thème */
}

/* Thème Division X (Sombre) */
body.theme-x .final-layout-form input, body.theme-x .final-layout-form textarea {
    background: var(--x-panel); /* Fond sombre */
    color: var(--x-text); /* Texte clair */
}

.final-layout-form input:focus, .final-layout-form textarea:focus {
    /* Effet Glow au Focus */
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    outline: none;
}
.final-layout-form textarea {
    resize: vertical;
    min-height: 100px;
}


/* ==========================================================================
    ÉTAPE 4: APERÇU PDF & ACTIONS (Utilise un layout flex)
    ========================================================================== */
.final-container {
    display: flex;
    gap: 30px;
    padding: 20px 5%;
    max-width: 1800px;
    margin: 0 auto;
}

/* Section Gauche: Aperçu PDF */
.pdf-viewer-section {
    flex: 2; 
    padding: 0;
}

.pdf-viewer-section h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--accent);
}

.pdf-preview-box {
    height: calc(100vh - 200px); 
    overflow-y: scroll; 
    border: 1px solid var(--pro-border); 
    background: var(--road-panel); 
    margin-top: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Section Droite: Actions - Inchangé */
.final-actions-section {
    flex: 1; 
    padding: 0 20px;
}

/* --- Adaptation du Bloc Discord (Correction pour le mode sombre) --- */
.discord-tuto {
    margin: 20px 0;
    padding: 15px;
    border: 1px dashed #5865F2; 
    border-radius: 5px;
    background: var(--road-panel); 
    transition: background-color 0.5s;
    box-shadow: none;
}

body.theme-x .discord-tuto {
    background: var(--x-panel); 
    color: var(--x-text);
}

.discord-tuto h4, .discord-tuto ol, .discord-tuto li {
    color: var(--text); 
}
.discord-tuto h4 {
    color: #5865F2 !important; 
}

.action-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

/* Boutons principaux et secondaires (Retrait des ombres 3D) */
.btn-main { 
    padding: 15px 25px; 
    border: none; 
    border-radius: 4px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    transition: all 0.2s ease-in-out; 
    box-shadow: none; 
    position: relative; 
    cursor: pointer;
}

/* NOUVEAU: Effet de survol interne sur les boutons */
.btn-main.primary {
    /* Base de l'effet glow (Rouge Dranox) */
    --glow-color: var(--accent);
    box-shadow: 0 0 5px rgba(0,0,0,0.5); 
    position: relative;
    overflow: hidden;
}
.btn-main.primary:hover {
    /* Effet de pulsation/glow étendu */
    box-shadow: 
        0 0 10px var(--glow-color), 
        0 0 20px rgba(255, 42, 42, 0.4); 
    transform: translateY(-2px); 
    filter: brightness(1.15); 
}
.btn-main:active {
    transform: translateY(1px); 
    filter: brightness(0.9); 
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2); 
}

.btn-main.primary { 
    background: var(--accent); 
    color: white; 
    border: 1px solid var(--accent);
}

.btn-main.secondary {
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--pro-border); 
}
.btn-main.secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Bouton Discord */
.btn-discord {
    background-color: #5865F2 !important;
    border-color: #5865F2 !important;
    box-shadow: none; 
}

.btn-download-link {
    background: var(--accent);
    color: white;
    text-align: center;
    padding: 15px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    display: flex; 
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.poem-intro {
    font-family: var(--font-script);
    font-size: 1.2rem;
    line-height: 1.5;
    text-align: center;
    margin-top: 25px;
    color: #888;
}

/* ==========================================================================
    MODALES (FIX)
    ========================================================================== */
/* FIX: Définition de la modale de la galerie pour garantir la position fixe et le centrage */
.modal-overlay {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); 
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 99998; /* Un peu moins que la modale RP pour l'ordre */
}

.modal-box {
    background: #FFF;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 90vw;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); 
    position: relative;
    animation: fadeInScale 0.3s ease-out;
    border: 3px solid var(--accent);
    box-sizing: border-box;
}

.modal-gallery {
    background: #000;
    padding: 20px;
    border-color: white;
}
.modal-gallery img {
    max-height: 80vh; 
    width: auto; 
    max-width: 100%;
    display: block;
    margin: 0 auto;
}
.modal-close {
    position: absolute;
    top: 5px;
    right: 15px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 0 5px rgba(0,0,0,0.8);
    z-index: 10;
}


/* MODALE RP CINÉMATIQUE (OVERLAY DE NOTIFICATION) - Inchangée */
.rp-modal-overlay {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); 
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 99999; 
}

.rp-modal-content {
    background: #FFF;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 0 20px rgba(185, 0, 0, 0.5); 
    border: 3px solid #B90000;
    animation: fadeInScale 0.3s ease-out;
}

.modal-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.modal-header h2 {
    color: #1A1A1A;
    font-size: 1.5rem;
    margin: 0 0 0 10px;
    font-family: var(--font-title);
}

.modal-status-icon i {
    color: #B90000; 
    font-size: 2rem;
}

.modal-message {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
}

.modal-countdown {
    color: #B90000;
    font-weight: bold;
    margin-bottom: 10px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================================
    RESPONSIVE/MOBILE STYLES
    ========================================================================== */

@media (max-width: 1200px) {
    /* Rendre le bouton hamburger visible sur mobile */
    #mobile-menu-toggle {
        display: block;
        /* Aligner à droite pour être près du dynamic-info-bar */
        margin-left: auto;
    }
    
    #dynamic-info-bar {
        display: none; /* Cache les infos dynamiques pour libérer de l'espace */
    }
    
    /* Cacher les liens de navigation classiques sur mobile */
    .header-nav-links {
        display: none !important;
    }

    /* Le menu déroulant devient un OVERLAY PLEIN ÉCRAN sur mobile */
    .main-nav-dropdown {
        /* Dimensions Plein Écran (sous la barre de navigation) */
        width: 100vw; 
        height: calc(100vh - 70px);
        top: 70px;
        left: 0;
        max-height: none;

        /* Supprime la transformation de centrage horizontal, utilise transformY pour la transition */
        transform: translateX(0) translateY(100%); 
        
        /* Bords droits pour le mode plein écran */
        border-radius: 0; 
    }
    
    .main-nav-dropdown.visible-dropdown {
        /* Descend juste sous le header (70px) */
        transform: translateX(0) translateY(0); 
    }

    /* Le contenu du menu doit s'adapter */
    #nav-car-list {
        /* Empile les sections Road et X verticalement */
        flex-direction: column;
        gap: 30px;
    }

    /* Ajustement de la bannière pour les écrans plus petits */
    .main-nav-dropdown #nouveaute-banner {
        height: 250px; /* Réduit un peu la hauteur sur mobile */
    }
}

/* Styles pour les écrans très petits (max 768px) */
@media (max-width: 768px) {
    
    .hero-content h1 { font-size: 3rem; }
    .hero-content p { font-size: 1.2rem; letter-spacing: 3px; }
    
    .footer-content { flex-direction: column; text-align: center; }
    .discord-pulse-btn { width: 100%; justify-content: center; }
    
    .nav-container {
        width: 100%;
        padding: 0 10px;
    }
    .logo-dranox {
        gap: 5px;
    }
    #dynamic-logo-title {
        font-size: 1.2rem;
    }
}