/* =========================================
   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)
   ========================================= */
/* =========================================
   STYLE RÉSERVATION (MOINS ARRONDIS / PLUS PRO)
   ========================================= */

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

/* Cartes (Moins d'arrondis : 4px) */
.card {
    background: rgba(18, 24, 38, 0.95);
    border: 1px solid rgba(214, 177, 90, 0.2);
    border-radius: 4px; /* Tranchant */
    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; /* Tranchant */
    padding: 14px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: var(--transition);
}

.field input:focus, .field select:focus {
    border-color: var(--gold);
    background: rgba(214, 177, 90, 0.05);
}

/* Bouton Rectangulaire */
.btn { border-radius: 0px !important; }

/* Sidebar Récapitulatif de Mission */
.sidebar-mission {
    border-left: 4px solid var(--gold); /* Accents style dossier militaire */
}

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

.summary-item span:first-child { color: var(--muted); text-transform: uppercase; font-size: 0.7rem; }

.summary-total {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.status-badge {
    font-size: 10px;
    background: rgba(214, 177, 90, 0.1);
    color: var(--gold);
    padding: 5px 10px;
    border: 1px solid var(--gold);
    letter-spacing: 1px;
}

/* Notifications */
.notice {
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--gold);
}

.notice.success { background: rgba(46, 204, 113, 0.15); border-color: #2ecc71; color: #2ecc71; }

/* Mobile */
@media (max-width: 900px) {
    .booking-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}


/* Styles spécifiques au récapitulatif (Sidebar) */
.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-item span:first-child { color: var(--muted); }
.summary-item span:last-child { font-weight: bold; }

.summary-total {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid var(--gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* Alertes & Confirmation */
.notice {
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(214, 177, 90, 0.22);
    background: rgba(214, 177, 90, 0.08);
    margin-top: 20px;
}

.notice.success { 
    border-color: #2ecc71; 
    background: rgba(46, 204, 113, 0.1); 
    color: #2ecc71; 
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .booking-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    nav ul { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
}
/* --- Correction du menu déroulant et des champs --- */

.field input, 
.field select, 
.field textarea {
    background-color: #1a1f2b; /* Un fond gris très foncé pour être lisible */
    border: 1px solid rgba(214, 177, 90, 0.3);
    border-radius: 4px; 
    padding: 14px;
    color: var(--text); /* Texte clair */
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: var(--transition);
    appearance: none; /* Supprime le style natif OS pour mieux contrôler */
    -webkit-appearance: none;
}

/* Force la couleur du texte et du fond dans la liste déroulante (le menu qui s'ouvre) */
.field select option {
    background-color: #121826; /* Couleur de fond de votre site --surface */
    color: var(--text);
    padding: 10px;
}

/* Ajout d'une petite flèche dorée personnalisée pour le select (puisqu'on a fait appearance: none) */
.field {
    position: relative;
}

.field select {
    background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
                      linear-gradient(135deg, var(--gold) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 5px),
                         calc(100% - 15px) calc(1em + 5px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 40px; /* Espace pour la flèche */
}

.field input:focus, 
.field select:focus {
    border-color: var(--gold);
    background-color: #1f2636;
}

/* Style spécifique pour le champ date (pour éviter le blanc sur blanc aussi) */
.field input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1); /* Rend l'icône calendrier blanche pour fond sombre */
    cursor: pointer;
}
/* --- GLOBAL FORM & SELECT FIX --- */
.field select {
    background-color: #1a1f2b !important; /* Fond sombre forcé */
    color: var(--text) !important;
    border: 1px solid rgba(214, 177, 90, 0.3);
    border-radius: 4px; /* Moins arrondi */
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* Fix pour les options du menu déroulant */
.field select option {
    background-color: #121826;
    color: var(--text);
}

/* --- DESIGN E-COMMERCE RÉCAPITULATIF --- */
.summary-card {
    background: var(--surface);
    border: 1px solid rgba(214, 177, 90, 0.3);
    border-radius: 4px; /* Design tranchant */
    padding: 0;
    position: sticky;
    top: 20px;
    overflow: hidden;
}

.summary-header {
    background: rgba(214, 177, 90, 0.1);
    padding: 20px;
    border-bottom: 1px solid rgba(214, 177, 90, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-header h2 {
    font-size: 1.1rem;
    margin: 0;
}

.status-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--gold);
    color: var(--bg);
    padding: 4px 8px;
    font-weight: bold;
    border-radius: 2px;
}

.summary-body {
    padding: 25px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.summary-line .label {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.summary-line .value {
    font-weight: 600;
    color: var(--text);
}

.risk-high {
    color: #ff4d4d !important; /* Rouge pour le risque élevé */
}

.divider {
    height: 1px;
    background: rgba(214, 177, 90, 0.2);
    margin: 20px 0;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
}

.total-label span {
    display: block;
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 0.9rem;
}

.total-label small {
    color: var(--muted);
    font-size: 0.7rem;
}

.total-price {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--gold);
    line-height: 1;
}

.mission-note {
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--gold);
    padding: 15px;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.4;
    margin-bottom: 10px;
}

.btn-full {
    width: 100%;
    border-radius: 0; /* Bouton bien carré en bas de carte */
    padding: 20px;
    font-size: 1rem;
}

/* Correction responsive */
@media (max-width: 900px) {
    .summary-card {
        margin-top: 30px;
        position: static;
    }
}
/* --- FIX SELECT : FINI LE BLANC SUR BLANC --- */
select {
    background-color: #1a1f2b !important;
    color: #ffffff !important;
    border: 1px solid rgba(214, 177, 90, 0.4);
    border-radius: 2px; /* Presque carré */
    padding: 12px;
    width: 100%;
    cursor: pointer;
    outline: none;
}

select option {
    background-color: #121826; /* Fond de la liste */
    color: white;
}

/* --- LE RÉCAPITULATIF (SIDEBAR) --- */
.summary-card {
    background: #161b25;
    border: 1px solid rgba(214, 177, 90, 0.2);
    border-radius: 2px; /* Design tranchant */
    overflow: hidden;
    position: sticky;
    top: 40px;
}

.summary-header {
    background: rgba(214, 177, 90, 0.05);
    padding: 20px;
    border-bottom: 1px solid rgba(214, 177, 90, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-header h2 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    color: var(--gold);
}

.status-badge {
    font-size: 0.6rem;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 3px 8px;
    font-weight: bold;
}

.summary-body {
    padding: 25px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    font-size: 0.85rem;
}

.summary-line .label {
    color: #888;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.summary-line .value {
    font-weight: 500;
    color: #eee;
}

.risk-high {
    color: #ff4d4d !important;
    font-weight: bold;
}

.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 20px 0;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.total-label span {
    display: block;
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 0.8rem;
}

.total-label small {
    color: #666;
    font-size: 0.65rem;
}

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

.mission-note {
    background: rgba(0, 0, 0, 0.2);
    border-left: 2px solid var(--gold);
    padding: 15px;
    font-size: 0.75rem;
    color: #aaa;
    line-height: 1.5;
}

/* On s'assure que les inputs du formulaire principal sont aussi moins arrondis */
input, textarea {
    border-radius: 2px !important;
    background: #1a1f2b !important;
    border: 1px solid rgba(214, 177, 90, 0.2) !important;
    color: white !important;
}


