:root {
    --bg-dark: #00151c;
    --bg-light: #053b4d;
    --text-color: #ffffff;
    --primary-orange: #ff6b35;
    --glow-color: #ff9e00;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: radial-gradient(circle at center 30%, var(--bg-light), var(--bg-dark));
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

/* --- NAV (BARRE DU HAUT) --- */
nav { 
    position: fixed; top: 0; left: 0; right: 0; height: 80px; 
    padding: 0 50px; display: flex; justify-content: space-between; align-items: center; 
    z-index: 1000; opacity: 0; background: rgba(0, 21, 28, 0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05); transition: 0.3s;
}
.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: 1px; color: #fff; text-decoration: none; z-index: 1001; }
.logo span { color: var(--primary-orange); }

.nav-links { display: flex; gap: 30px; height: 100%; align-items: center; }
.nav-links a { 
    color: #fff; text-decoration: none; font-size: 0.9rem; font-weight: 500; 
    text-transform: uppercase; transition: all 0.3s; position: relative;
    height: 100%; display: flex; align-items: center; padding: 0 5px;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary-orange); }
.nav-links a::after { 
    content: ''; position: absolute; bottom: 25px; left: 0; width: 0%; height: 2px; 
    background: var(--primary-orange); transition: 0.3s; 
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Burger Menu (Caché sur PC) */
.burger-menu { display: none; }

/* --- HERO & SECTIONS --- */
#hero { 
    height: 100vh; width: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; position: relative;
    margin-top: 0; padding-top: 0;
}
.hero-content { position: relative; z-index: 2; text-align: center; width: 100%; padding: 0 20px; } 
.main-title { font-size: 5rem; margin-bottom: 20px; line-height: 1.1; color: transparent; text-shadow: none; position: relative; font-weight: 800; white-space: nowrap; }
#title-wrapper { display: inline-block; position: relative; color: transparent; }
#target-i { position: relative; display: inline-block; color: transparent; }

.subtitle-hero { font-size: 1.5rem; color: #b0bec5; letter-spacing: 2px; opacity: 0; transform: translateY(20px); }
.scroll-down { margin-top: 80px; opacity: 0; color: var(--primary-orange); font-size: 1.5rem; animation: float 2s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(15px); } }

/* Sections standard : Hauteur mini pour aérer sur PC */
section { min-height: 100vh; padding: 0 10%; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }

/* --- ELEMENTS GRAPHIQUES --- */
.line-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
#guide-line { fill: none; stroke: rgba(255, 255, 255, 0.05); stroke-width: 1px; }
#lit-line { fill: none; stroke: var(--primary-orange); stroke-width: 2px; filter: drop-shadow(0 0 5px var(--primary-orange)); }
.glow-orb { width: 10px; height: 10px; background: #fff; border-radius: 50%; position: absolute; top: 0; left: 0; z-index: 50; transform: translate(-50%, -50%); opacity: 0; box-shadow: 0 0 10px 2px #fff, 0 0 20px 10px var(--primary-orange), 0 0 50px 20px rgba(255, 107, 53, 0.3); pointer-events: none; }

/* Loader */
#loader-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: #000; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.loader-content { position: relative; width: 300px; height: 300px; display: flex; align-items: center; justify-content: center; }
#loader-text { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: 1px; text-transform: uppercase; position: relative; z-index: 2; white-space: nowrap; line-height: 1.1; animation: text-glow 2s ease-in-out infinite alternate; }
#loader-circle { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--primary-orange); border-right-color: var(--primary-orange); animation: spin 1.5s linear infinite; box-shadow: 0 0 20px rgba(255, 107, 53, 0.3); z-index: 1; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.clone-element { position: fixed; z-index: 10000; pointer-events: none; margin: 0 !important; padding: 0 !important; transform-origin: center center; box-sizing: border-box; }

/* Textes & Titres */
.reveal-text { opacity: 0; transform: translateY(50px); filter: blur(5px); transition: all 0.8s ease-out; }
.reveal-text.visible { opacity: 1; transform: translateY(0); filter: blur(0); }
.warm-highlight { color: var(--primary-orange); text-shadow: 0 0 25px rgba(255, 107, 53, 0.5); font-weight: 700; }
.text-block { font-size: 2.2rem; max-width: 650px; margin: 80px 0; font-weight: 600; line-height: 1.4; }
.text-block.left { align-self: flex-start; text-align: left; }
.text-block.right { align-self: flex-end; text-align: right; }
.centered-content { text-align: center; max-width: 800px; margin: 0 auto; }
.centered-content h2 { font-size: 3rem; margin-bottom: 30px; }
.centered-content p { font-size: 1.6rem; color: #b0bec5; }
.section-title { text-align: center; font-size: 3rem; margin-bottom: 80px; text-transform: uppercase; letter-spacing: 2px; }

/* Cards */
.cards-container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.glass-card { background: rgba(255, 255, 255, 0.03); border-top: 1px solid rgba(255,255,255,0.1); padding: 40px; border-radius: 24px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); transition: 0.3s; height: 100%; }
.glass-card:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.05); border-color: var(--primary-orange); }
.glass-card h3 { color: var(--primary-orange); font-size: 1.8rem; margin-bottom: 15px; }
.glass-card p { font-size: 1.1rem; color: #cfd8dc; line-height: 1.6; }

/* Services & Prix */
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; max-width: 1200px; margin: 0 auto; }
.service-item { background: rgba(5, 59, 77, 0.4); border: 1px solid rgba(255, 255, 255, 0.05); padding: 30px; border-radius: 20px; width: 200px; text-align: center; transition: all 0.3s ease; backdrop-filter: blur(5px); }
.service-item:hover { background: var(--primary-orange); transform: scale(1.05); box-shadow: 0 0 30px rgba(255, 107, 53, 0.4); border-color: transparent; }
.service-item:hover i, .service-item:hover h4 { color: #fff; }
.service-item i { font-size: 2.5rem; color: var(--primary-orange); margin-bottom: 20px; transition: 0.3s; }
.service-item h4 { font-size: 1.1rem; font-weight: 600; color: #fff; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding: 20px 0; }
.gallery-item { height: 300px; background-color: #000; border-radius: 15px; overflow: hidden; position: relative; cursor: pointer; transition: 0.3s; border: 1px solid rgba(255,255,255,0.1); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; opacity: 0.7; }
.gallery-item:hover img { transform: scale(1.1); opacity: 1; }
.gallery-item::after { content: 'Voir'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #fff; font-weight: bold; opacity: 0; transition: 0.3s; z-index: 2; background: var(--primary-orange); padding: 10px 20px; border-radius: 20px; }
.gallery-item:hover::after { opacity: 1; }

.calculator-container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.calc-section { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px; padding: 30px; margin-bottom: 30px; transition: 0.3s; }
.calc-section h3 { font-size: 1.5rem; color: #fff; margin-bottom: 25px; display: flex; align-items: center; }
.step-number { background: var(--primary-orange); color: #fff; width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; margin-right: 15px; font-size: 1.1rem; flex-shrink: 0; }
.options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.small-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.option-card { background: rgba(0, 0, 0, 0.3); border: 2px solid transparent; border-radius: 15px; padding: 20px; text-align: center; cursor: pointer; transition: 0.2s all; position: relative; overflow: hidden; }
.option-card:hover { background: rgba(255, 255, 255, 0.05); }
.option-card.selected, .option-card.selected-vehicle { border-color: var(--primary-orange); background: rgba(255, 107, 53, 0.1); box-shadow: 0 0 15px rgba(255, 107, 53, 0.2); }
.option-card.selected::after { content: '✔'; position: absolute; top: 5px; right: 10px; color: var(--primary-orange); font-weight: bold; }
.option-card i { font-size: 2rem; color: #b0bec5; margin-bottom: 10px; transition: 0.3s; }
.option-card.selected i { color: var(--primary-orange); }
.option-card h4 { font-size: 1.1rem; color: #fff; margin-bottom: 5px; }
.tiny-desc { font-size: 0.8rem; color: #78909c; }
.price-tag { font-size: 1.2rem; font-weight: 700; color: var(--primary-orange); margin-top: 5px; }
.features-list { text-align: left; margin-top: 10px; padding-left: 15px; font-size: 0.8rem; color: #cfd8dc; }
.level-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 25px; flex-wrap: wrap; }
.level-btn { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 10px 20px; border-radius: 30px; cursor: pointer; font-family: inherit; font-weight: 600; transition: 0.3s; }
.level-btn:hover { border-color: var(--primary-orange); }
.level-btn.active { background: var(--primary-orange); border-color: var(--primary-orange); color: #fff; }
.pack-alert { text-align: center; margin-top: 15px; font-style: italic; font-size: 0.9rem; transition: 0.3s; }
.vehicle-search-wrapper { position: relative; margin-bottom: 30px; max-width: 500px; margin-left: auto; margin-right: auto; }
#car-input { width: 100%; padding: 15px 20px 15px 50px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.3); color: #fff; font-size: 1.1rem; font-family: 'Poppins', sans-serif; outline: none; transition: 0.3s; }
#car-input:focus { border-color: var(--primary-orange); box-shadow: 0 0 15px rgba(255, 107, 53, 0.3); }
.search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #aaa; font-size: 1.2rem; }
#car-feedback { margin-top: 10px; text-align: center; font-weight: 500; height: 20px; }
.total-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(0, 21, 28, 0.95); border-top: 2px solid var(--primary-orange); padding: 20px 50px; display: flex; justify-content: space-between; align-items: center; backdrop-filter: blur(10px); z-index: 1000; box-shadow: 0 -5px 30px rgba(0,0,0,0.5); animation: slideUp 0.5s ease-out; }
.total-content { font-size: 1.5rem; color: #fff; font-weight: 600; }
.total-price { color: var(--primary-orange); font-size: 2.2rem; margin-left: 15px; font-weight: 800; }
.btn-warm.small { font-size: 1rem; padding: 12px 30px; }

/* Contact Modal */
.contact-card { background: linear-gradient(145deg, #052029, #001014); padding: 80px; border-radius: 40px; text-align: center; border: 1px solid rgba(255, 255, 255, 0.05); max-width: 800px; margin: 0 auto; }
.contact-card h2 { font-size: 3rem; margin-bottom: 15px; color: #fff; }
.btn-warm { display: inline-block; background: var(--primary-orange); color: white; padding: 18px 50px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 1.3rem; box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3); transition: 0.3s; cursor: pointer; }
.btn-warm:hover { transform: scale(1.05); background: #ff5500; box-shadow: 0 10px 50px rgba(255, 107, 53, 0.5); }
.email { margin-top: 40px; color: #607d8b; font-family: monospace; font-size: 1.1rem; }
.modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); animation: fadeIn 0.3s; }
.modal-content { background: linear-gradient(145deg, #052029, #001014); margin: 10% auto; padding: 40px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; width: 90%; max-width: 500px; position: relative; text-align: center; box-shadow: 0 0 50px rgba(255, 107, 53, 0.2); animation: slideDown 0.4s; }
.close-modal { color: #aaa; position: absolute; top: 15px; right: 25px; font-size: 28px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.close-modal:hover { color: var(--primary-orange); }
.modal-icon { font-size: 3rem; color: var(--primary-orange); margin-bottom: 20px; }
.modal-info { margin: 20px 0; font-size: 1.2rem; color: #fff; }
.modal-info i { margin-right: 10px; color: var(--primary-orange); }
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }
@keyframes slideDown { from {transform: translateY(-50px);} to {transform: translateY(0);} }
@keyframes slideUp { from {transform: translateY(100%);} to {transform: translateY(0);} }

/* ------------------------------------------- */
/* --- RESPONSIVE MOBILE OPTIMISÉ --- */
/* ------------------------------------------- */
@media (max-width: 768px) {
    /* 1. Nav réduite et Burger Visible */
    nav { height: 60px; padding: 0 20px; background: rgba(0, 21, 28, 0.98); }
    .logo { font-size: 1.2rem; }
    .burger-menu { display: block !important; font-size: 1.5rem; color: #fff; cursor: pointer; }

    /* 2. Menu Déroulant Mobile */
    .nav-links {
        position: fixed; 
        top: 60px; 
        right: -100%; /* Caché par défaut */
        width: 100%; 
        height: calc(100vh - 60px);
        background: #00151c;
        flex-direction: column; 
        justify-content: flex-start;
        padding-top: 50px;
        transition: 0.3s ease-in-out; 
        border-top: 1px solid rgba(255,255,255,0.1);
        display: flex; /* Force le flex pour que le contenu s'affiche */
    }
    .nav-links.active-menu { right: 0; /* Apparaît quand on clique */ }
    .nav-links a { font-size: 1.4rem; margin: 15px 0; height: auto; display: block; width: 100%; text-align: center; }
    .nav-links a::after { display: none; }

    /* 3. Réduction des espaces (Fini les trous !) */
    /* On enlève le min-height 100vh qui force les grands espaces */
    section { min-height: auto !important; padding: 40px 20px; } 
    #hero { min-height: 100dvh; padding: 0 10px; } /* Sauf le hero qui garde l'écran complet */
    
    /* 4. Textes ajustés */
    #hero h1.main-title { font-size: 2.5rem; margin-bottom: 10px; white-space: normal; line-height: 1.1; }
    .subtitle-hero { font-size: 1rem; padding: 0 10px; }
    .text-block { font-size: 1.2rem; margin: 20px 0; text-align: center !important; }
    .section-title { font-size: 2rem; margin-bottom: 30px; }
    .centered-content h2 { font-size: 1.8rem; }
    .centered-content p { font-size: 1.1rem; }
    
    /* 5. Éléments compacts */
    .cards-container { grid-template-columns: 1fr; gap: 20px; }
    .glass-card { padding: 20px; }
    .glass-card h3 { font-size: 1.4rem; }
    
    /* Grilles sur une colonne */
    .services-grid, .pricing-grid, .options-grid { grid-template-columns: 1fr; gap: 15px; }
    .service-item, .option-card { width: 100%; max-width: 100%; padding: 15px; }
    
    /* Barre Total Mobile */
    .total-bar { flex-direction: column; gap: 10px; padding: 15px; bottom: 0; }
    .total-price { font-size: 1.8rem; margin: 0; }
    .btn-warm.small { width: 100%; text-align: center; }
    
    /* Modal */
    .modal-content { width: 95%; margin: 15% auto; padding: 25px 15px; }
    
    /* Marge haut pour éviter que le contenu passe sous le menu */
    main { padding-top: 70px !important; }
}
