/* =========================================
   1. VARIABLES & RESET (BASE TACTIQUE)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary: #6B7A4F;       
    --primary-dark: #4A5735;  
    --secondary: #1A1A1A;     
    --bg-body: #F0F2F0;       
    --bg-white: #FFFFFF;      
    --bg-alt: #E5E8E5;        
    --text-dark: #222222;
    --text-muted: #555555;
    --border-light: #D1D6D1;
    --shadow-soft: 0 5px 20px rgba(0,0,0,0.05);
    --glass-light: rgba(255, 255, 255, 0.95);
}

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

body {
    background-color: var(--bg-body);
    color: var(--text-dark);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6; 
}

/* Ajoute l'espace en bas UNIQUEMENT sur les pages qui ont la barre de prix (ex: Réservation) */
body:has(.sticky-price-bar) {
    padding-bottom: 120px;
}

h1, h2, h3, h4 { font-family: 'Oswald', sans-serif; text-transform: uppercase; color: var(--secondary); letter-spacing: 1px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

body::before {
    content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: url('../img/fond.jpg') no-repeat center center/cover;
    opacity: 0.03; z-index: -1; filter: grayscale(100%) contrast(120%);
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
header {
    background: var(--glass-light);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
    position: sticky; top: 0; z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.navbar {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    position: relative; /* Important pour le menu mobile */
}

.logo img { height: 80px; width: auto; display: block; }

/* Menu Burger (Caché sur PC) */
.menu-toggle {
    display: none;
    font-size: 2rem;
    color: var(--secondary);
    cursor: pointer;
    z-index: 1001;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--secondary); margin-left: 20px;
    font-weight: 700; font-size: 0.9rem; text-transform: uppercase;
}
.nav-links a:hover { color: var(--primary); }

.btn-cta {
    background: var(--primary); color: white !important;
    padding: 10px 25px; border-radius: 4px; font-weight: bold;
    box-shadow: 0 4px 10px rgba(107, 122, 79, 0.3);
    display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer;
}
.btn-cta:hover { transform: translateY(-2px); background: var(--primary-dark); }

/* =========================================
   3. PAGE D'ACCUEIL (MARKETING)
   ========================================= */
.hero {
    height: 80vh; display: flex; align-items: center; justify-content: center;
    text-align: center; color: white; position: relative;
    background: linear-gradient(rgba(26, 26, 26, 0.7), rgba(74, 87, 53, 0.85)), url('../img/fond.jpg') center/cover;
    border-bottom: 5px solid var(--primary);
}
.hero h1 { font-size: 4.5rem; color: white; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); line-height: 1.1; margin-bottom: 20px; }
.hero h1 .hero-subtitle { color: var(--primary); display: block; font-size: 1.5rem; letter-spacing: 5px; background: rgba(0,0,0,0.2); padding: 5px 15px; display: inline-block; margin-bottom: 10px;}
.hero h1 .main-title { display: block; font-size: 5.5rem; }
.hero p { font-size: 1.2rem; color: #e0e0e0; max-width: 600px; margin: 0 auto 30px auto; }

.section { padding: 80px 20px; max-width: 1200px; margin: 0 auto; overflow: hidden; }
.section-alt { background: var(--bg-white); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.section-title { text-align: center; margin-bottom: 50px; font-size: 2.5rem; position: relative; }
.section-title::after { content: ""; display: block; width: 60px; height: 4px; background: var(--primary); margin: 15px auto 0; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.feature-card {
    background: var(--bg-white); padding: 30px; border-radius: 8px;
    text-align: center; border: 1px solid var(--border-light); border-bottom: 4px solid var(--primary);
    transition: 0.3s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.feature-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }

/* Galerie Images */
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(2, 280px); gap: 20px; }
.gallery-item { position: relative; overflow: hidden; border: 4px solid white; box-shadow: var(--shadow-soft); border-radius: 8px;}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; filter: saturate(90%); }
.gallery-item:hover img { transform: scale(1.05); filter: saturate(110%); }
.g-1 { grid-column: 1 / 8; grid-row: 1 / 3; }
.g-2 { grid-column: 8 / -1; grid-row: 1 / 2; }
.g-3 { grid-column: 8 / -1; grid-row: 2 / 3; }

/* Trust Bar */
.trust-bar { background: var(--secondary); color: white; padding: 40px 0; border-bottom: 4px solid var(--primary); }
.trust-grid { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px;}
.trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 15px; font-weight: bold; font-size: 0.9rem; flex: 1; min-width: 200px;}
.trust-item span { font-size: 1.8rem; color: var(--secondary); background: var(--primary); width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin-bottom: 10px; }
.trust-item p { color: #aaa; font-weight: normal; font-size: 0.8rem; }

/* Avis */
.review-card { 
    background: var(--bg-alt); padding: 30px; border-radius: 8px; 
    border: 1px solid var(--border-light); text-align: center; position: relative;
    display: flex; flex-direction: column; justify-content: space-between; 
    height: 100%; box-shadow: var(--shadow-soft);
}
.review-card::before { 
    content: "\201C"; font-family: 'Oswald'; font-size: 5rem; position: absolute; 
    top: -20px; left: 20px; color: var(--primary); opacity: 0.2; line-height: 1;
}
.review-text {
    font-style: italic; margin-bottom: 20px; color: var(--text-dark);
    flex-grow: 1; display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.review-author {
    color: var(--primary); font-weight: bold; font-family: 'Oswald'; 
    text-transform: uppercase; letter-spacing: 1px; 
    border-top: 1px solid #CCC; padding-top: 15px;
}

/* =========================================
   4. FORMULAIRES & RÉSERVATIONS
   ========================================= */
.container {
    max-width: 1000px; margin: 40px auto; background: var(--bg-white);
    padding: 40px; border-radius: 8px; box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
}

.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: bold; color: var(--secondary); font-size: 0.9rem; text-transform: uppercase; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="time"], input[type="number"], select, textarea {
    width: 100%; padding: 12px; background: #FAFAFA; border: 1px solid #CCC;
    color: var(--text-dark); border-radius: 4px; font-size: 1rem; font-family: 'Roboto', sans-serif;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); }

.options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 20px; }
.option-card {
    background: #FAFAFA; padding: 15px; border: 1px solid #DDD; border-radius: 6px;
    cursor: pointer; transition: 0.2s; display: block;
}
.option-card:hover { border-color: var(--primary); background: white; }
.option-card input { margin-right: 10px; accent-color: var(--primary); }
.option-card strong { display: block; color: var(--secondary); margin-bottom: 5px; }
.option-card.disabled-card { opacity: 0.4; cursor: not-allowed; background: #F0F0F0; border-color: #EEE; filter: grayscale(100%); }
.option-card.disabled-card input { cursor: not-allowed; }

.range-container { padding: 30px; background: var(--secondary); border-radius: 8px; text-align: center; color: white; }
.nb-display { font-size: 2.5rem; font-weight: bold; color: var(--primary); display: block; margin-bottom: 10px; font-family: 'Oswald'; }
input[type=range] { width: 100%; cursor: pointer; accent-color: var(--primary); }

.sticky-price-bar {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: var(--secondary); border-top: 4px solid var(--primary);
    padding: 15px 30px; box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    display: flex; justify-content: space-between; align-items: center; z-index: 9999; color: white;
}
.price-display { font-size: 0.9rem; color: #AAA; text-transform: uppercase; }
.price-amount { font-size: 2rem; color: white; font-weight: bold; font-family: 'Oswald'; }
.btn-sticky {
    background: var(--primary); color: white; border: none; padding: 12px 30px; border-radius: 50px;
    font-weight: bold; font-size: 1rem; cursor: pointer; text-transform: uppercase; box-shadow: 0 4px 15px rgba(107, 122, 79, 0.5);
}
.btn-sticky:hover { background: white; color: var(--secondary); }
.hide-submit { display: none; }

/* =========================================
   5. DATES & CRÉNEAUX
   ========================================= */
.date-scroller-wrapper { position: relative; margin-bottom: 20px; }
.date-scroller {
    display: flex; overflow-x: auto; gap: 12px; padding: 10px 5px;
    scrollbar-width: none; -ms-overflow-style: none;
}
.date-scroller::-webkit-scrollbar { display: none; }

.date-card {
    min-width: 80px; background: white; border: 1px solid #DDD; border-radius: 8px;
    padding: 15px 5px; text-align: center; cursor: pointer; transition: all 0.2s ease;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.date-card:hover { border-color: var(--secondary); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.date-card.selected { background: var(--secondary); color: white; border-color: var(--secondary); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.date-day { font-size: 0.85rem; text-transform: uppercase; font-weight: 500; margin-bottom: 5px; }
.date-num { font-size: 1.4rem; font-weight: bold; font-family: 'Oswald', sans-serif; line-height: 1; }
.date-month { font-size: 0.75rem; color: #888; margin-top: 5px; }
.date-card.selected .date-month { color: #CCC; }
.scroll-hint { font-size: 0.8rem; color: #AAA; text-align: right; font-style: italic; margin-bottom: 5px; }

.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-top: 10px; }
.slot-btn {
    background: white; border: 1px solid #CCC; border-radius: 4px;
    padding: 12px 5px; text-align: center; font-size: 1rem; font-weight: 500;
    color: var(--text-dark); cursor: pointer; transition: all 0.2s ease;
}
.slot-btn:hover:not(.disabled):not(.selected):not(.selected-range) { border-color: var(--secondary); background: #EFEFEF; transform: translateY(-2px); }
.slot-btn.selected { background: var(--secondary); color: white; border-color: var(--secondary); box-shadow: 0 4px 10px rgba(0,0,0,0.3); font-weight: bold; }
.slot-btn.selected-range { background: #e8ede3; color: var(--primary); border-color: var(--primary); opacity: 0.8; cursor: not-allowed; }
.slot-btn.disabled { background: #F5F5F5; color: #CCC; border-color: #EEE; cursor: not-allowed; text-decoration: line-through; }

/* =========================================
   6. FOOTER & TABLEAUX
   ========================================= */
footer { background-color: var(--secondary); color: #b0b0b0; margin-top: 50px; position: relative; border-top: 4px solid var(--primary); }
.footer-content { max-width: 1200px; margin: 0 auto; padding: 60px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-brand img { height: 80px !important; width: auto; filter: none !important; margin-bottom: 20px; }
footer h4 { color: white; border-left: 3px solid var(--primary); padding-left: 15px; margin-bottom: 20px; font-size: 1.1rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }
.footer-contact p { margin-bottom: 15px; display: flex; align-items: flex-start; }
.footer-contact i { color: var(--primary); margin-right: 15px; margin-top: 5px; }
.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-btn { width: 40px; height: 40px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; border-radius: 4px; color: white; }
.social-btn:hover { background: var(--primary); transform: translateY(-3px); }
.footer-bottom { background: #111; padding: 20px; text-align: center; font-size: 0.85rem; border-top: 1px solid #333; }

/* =========================================
   7. EFFETS IMMERSIFS (ANIMATIONS)
   ========================================= */
.scanlines {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
    background-size: 100% 4px; z-index: 9999; pointer-events: none; opacity: 0.4;
}

@keyframes pulse-tactical {
    0% { box-shadow: 0 0 0 0 rgba(107, 122, 79, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(107, 122, 79, 0); }
    100% { box-shadow: 0 0 0 0 rgba(107, 122, 79, 0); }
}
.btn-pulse { animation: pulse-tactical 2s infinite; }

.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s ease-out; }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 0.8s ease-out; }
.reveal.active, .reveal-left.active, .reveal-right.active { opacity: 1; transform: translate(0, 0); }

.terminal-text {
    font-family: 'Courier New', Courier, monospace; color: #00FF41; background: rgba(0,0,0,0.7);
    padding: 10px 20px; border-radius: 4px; display: inline-block; border-left: 4px solid var(--primary); line-height: 1.5;
}
.cursor {
    display: inline-block; width: 10px; height: 1.2em; background-color: #00FF41;
    vertical-align: bottom; animation: blink 1s step-end infinite; margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

.glitch-hover { position: relative; display: inline-block; transition: all 0.2s; }
.glitch-hover:hover { color: var(--primary); text-shadow: 2px 0 0 red, -2px 0 0 cyan; }


/* =========================================
   8. RESPONSIVE DESIGN (MOBILES & TABLETTES)
   ========================================= */
@media (max-width: 992px) {
    .gallery-grid { display: flex; flex-direction: column; }
    .gallery-item { height: 300px; }
}

@media (max-width: 768px) {
    /* Menu Burger Fonctionnel */
    .menu-toggle { display: block; }
    
    .nav-links {
        position: absolute;
        top: 100%; /* S'ouvre juste en dessous du header */
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        
        /* Cache le menu par défaut avec un effet déroulant */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    }

    /* Quand on clique sur le burger (via JS) */
    .nav-links.active {
        max-height: 400px; /* Assez grand pour tout le menu */
        padding: 20px 0;
    }

    .nav-links a { margin: 15px 0; width: 80%; text-align: center; }
    .nav-links .btn-cta { justify-content: center; }

    /* Typographie Mobile */
    .hero h1 .main-title { font-size: 3.5rem; }
    .hero h1 .hero-subtitle { font-size: 1.2rem; }
    .section-title { font-size: 2rem; }

    /* Grilles et Espacements */
    .section { padding: 50px 20px; }
    .grid-3 { grid-template-columns: 1fr; gap: 20px; }
    .options-grid { grid-template-columns: 1fr; }
    .container { padding: 25px; margin: 20px auto; }
    
    /* Barre de prix flottante */
    .sticky-price-bar { 
        flex-direction: column; 
        gap: 15px; 
        text-align: center; 
        padding: 15px; 
        align-items: stretch;
    }
    .sticky-price-bar > div { align-items: center !important; }
    .btn-sticky { width: 100%; justify-content: center; }

    /* Formulaires et cartes */
    .review-card::before { font-size: 4rem; top: -10px; }
    .range-container { padding: 20px; }
    
    /* Dossier Soldat : Ajustement de la carte de mission */
    .option-card > div { flex-direction: column; text-align: left !important; gap: 15px;}
    .option-card > div > div:last-child { border-left: none !important; padding-left: 0 !important; border-top: 1px solid #EEE; padding-top: 15px;}
}

@media (max-width: 480px) {
    .hero h1 .main-title { font-size: 2.8rem; }
    .terminal-text { font-size: 0.85rem; padding: 10px; }
    .slots-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    /* ... tes autres règles mobiles existantes ... */

    /* RESPONSIVE POUR LES SECTIONS HERO SECONDAIRES (Contact, etc.) */
    .hero {
        height: auto; /* S'adapte au contenu au lieu d'être bloqué à 80vh */
        min-height: 40vh; /* Garde une taille correcte minimum */
        padding: 80px 20px 40px 20px; /* Ajoute de l'espace en haut et en bas */
    }
    
    .hero h1 {
        font-size: 2.8rem; /* Réduit le titre principal */
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem; /* Réduit le paragraphe */
        padding: 0 10px; /* Évite que le texte touche les bords de l'écran */
    }
}