/* =========================================
   VARIABLES & DESIGN SYSTEM
   ========================================= */
:root {
    --bg: #0B0E14;
    --surface: #121826;
    --gold: #D6B15A;
    --gold-hover: #F1C40F;
    --text: #E6E8EE;
    --muted: #A7AEBD;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

h1, h2, h3, .logo { 
    font-family: 'Cinzel', serif; 
    color: var(--gold); 
    text-transform: uppercase; 
    letter-spacing: 2px; 
}

a { color: inherit; text-decoration: none; transition: var(--transition); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(214, 177, 90, 0.2);
}

nav ul { display: flex; list-style: none; gap: 30px; }
nav a:hover { color: var(--gold); }

/* =========================================
   HERO SECTION (Support Vidéo & Image)
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 0 20px;
    background: url('../assets/hero-global.jpg') center/cover;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(11, 14, 20, 0.45), rgba(11, 14, 20, 0.70));
    z-index: 1;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    z-index: 0;
}

.hero > *:not(.hero-video) {
    position: relative;
    z-index: 2;
}

.hero h1 { font-size: 4rem; margin-bottom: 20px; }

/* =========================================
   BOUTONS
   ========================================= */
.btn {
    padding: 12px 30px;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    transition: var(--transition);
    display: inline-block;
}

.btn-gold { background: var(--gold); color: var(--bg); }

.btn:hover { 
    background: var(--gold); 
    color: var(--bg); 
    box-shadow: 0 0 15px rgba(214, 177, 90, 0.4); 
}

/* =========================================
   GRILLE DESTINATIONS
   ========================================= */
.dest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.dest-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 20px;
    transition: var(--transition);
}

.dest-card:hover { transform: translateY(-10px); border-color: var(--gold); }

.dest-card img { width: 100%; height: 200px; object-fit: cover; margin-bottom: 15px; }

/* =========================================
   QUIZ SECTION
   ========================================= */
.quiz-section { background: var(--surface); padding: 60px 0; margin-top: 50px; }
.quiz-group { margin-bottom: 20px; }
.quiz-group label { display: block; margin-bottom: 10px; color: var(--muted); }

select { 
    width: 100%; 
    padding: 10px; 
    background: var(--bg); 
    color: white; 
    border: 1px solid var(--gold); 
}

/* =========================================
   CHAT WIDGET
   ========================================= */
.chat-toggle {
    position: fixed; bottom: 30px; right: 30px;
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--gold); border: none; font-size: 24px; cursor: pointer; z-index: 1000;
}

.chat-widget {
    position: fixed; bottom: 100px; right: 30px;
    width: 350px; height: 500px; background: var(--surface);
    border: 1px solid var(--gold); display: none; flex-direction: column; z-index: 1000;
}

.chat-widget.active { display: flex; }
.chat-header { background: var(--gold); color: var(--bg); padding: 15px; font-weight: bold; }
.chat-messages { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 10px; }

.message { padding: 10px; border-radius: 5px; max-width: 80%; }
.message.user { align-self: flex-end; background: var(--gold); color: var(--bg); }
.message.bot { align-self: flex-start; background: rgba(255,255,255,0.1); }

.chat-input { padding: 15px; display: flex; border-top: 1px solid rgba(214, 177, 90, 0.2); }
.chat-input input { flex: 1; background: transparent; border: none; color: white; outline: none; }

.chat-send-btn {
    margin-left: 10px;
    padding: 10px 14px;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: var(--bg);
    font-weight: bold;
    cursor: pointer;
}

.quick-replies {
    display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 15px;
    border-top: 1px solid rgba(214, 177, 90, 0.12);
}

.quick-reply {
    font-size: 12px; padding: 8px 10px; border-radius: 999px;
    border: 1px solid rgba(214, 177, 90, 0.35);
    background: rgba(214, 177, 90, 0.08);
    color: var(--text); cursor: pointer;
}

/* =========================================
   PAGE RÉSERVATION (STRUCTURE & FORMULAIRE)
   ========================================= */

/* Grille de mise en page */
.booking-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: start;
}

/* Cartes */
.card {
    background: rgba(18, 24, 38, 0.95);
    border: 1px solid rgba(214, 177, 90, 0.2);
    border-radius: 4px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

/* Champs du formulaire */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.field label { 
    color: var(--gold); 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px;
    font-weight: bold;
}

.field input, .field select, .field textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(214, 177, 90, 0.3);
    border-radius: 4px;
    padding: 14px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: var(--transition);
}

/* Sidebar Récapitulatif */
.sidebar-mission {
    border-left: 4px solid var(--gold);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.price-tag {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--gold);
}

/* =========================================
   RESPONSIVE (MODIFICATIONS ICI)
   ========================================= */
@media (max-width: 900px) {
    /* Force le passage à 1 colonne même si c'est écrit en dur dans le HTML */
    .booking-grid, 
    div[style*="display: grid"] { 
        grid-template-columns: 1fr !important; 
    }
    
    .form-row { 
        grid-template-columns: 1fr !important; 
    }
    
    .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    header { flex-direction: column; gap: 20px; }
    nav ul { gap: 15px; }
    .hero h1 { font-size: 2.2rem; }
    
    /* Assurer que tous les éléments de grille s'empilent */
    .dest-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Fix pour les champs select sur mobile */
select {
    background-color: #1a1f2b !important;
    color: white !important;
}

input, textarea {
    border-radius: 2px !important;
    background: #1a1f2b !important;
    color: white !important;
}
