:root {
    --black: #0A0A0A; --black-soft: #121212; --black-lacquer: #1A1A1A;
    --cream: #F5F3EF; --cream-dim: #DCD8CE; --gold: #C9A961; --gold-bright: #E8C87F;
    --line: rgba(201, 169, 97, 0.15); --line-white: rgba(245, 243, 239, 0.08);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { background-color: var(--black); color: var(--cream); font-family: 'Inter', sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
  h1, h2, h3, .serif { font-family: 'Cormorant Garamond', serif; }
  a { color: inherit; text-decoration: none; }
  
  .wrap { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
  .section { padding: 80px 0; border-top: 1px solid var(--line-white); }
  
  /* Hero Section */
  .page-hero { position: relative; padding-top: 150px; padding-bottom: 40px; text-align: center; overflow: hidden; }
  .page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,10,0.8), var(--black));  z-index: -1; opacity: 0.6; }
  .eyebrow { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: 15px; display: flex; align-items: center; justify-content: center; gap: 15px; }
  .eyebrow::before, .eyebrow::after { content: ''; width: 30px; height: 1px; background: var(--gold); }
  .page-title { font-size: clamp(38px, 5vw, 58px); margin-bottom: 20px; color: var(--cream); line-height: 1.1; }
  
  /* SEO Intro */
  .seo-intro { text-align: center; max-width: 900px; margin: 0 auto; padding: 0 0 40px 0; }
  .seo-intro p { margin-bottom: 15px; color: var(--cream-dim); font-size: 15px; line-height: 1.7; }
  .seo-intro strong { color: var(--cream); font-weight: 500; }

  /* Interactive Builder Form */
  .builder-container { background: var(--black-lacquer); border: 1px solid var(--gold); border-radius: 4px; box-shadow: 0 20px 50px rgba(0,0,0,0.6); padding: 50px; margin-top: 20px; }
  @media(max-width: 768px) { .builder-container { padding: 30px 20px; } }
  
  .step-title { font-family: 'Inter', sans-serif; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-white); padding-bottom: 10px; margin-top: 40px; }
  .step-title:first-child { margin-top: 0; }
  .step-title span { background: var(--gold); color: var(--black); width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: bold; font-size: 12px; }

  /* Radio Cards pour Formules */
  .formula-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 20px; }
  .formula-card { background: var(--black-soft); border: 1px solid var(--line); padding: 25px; border-radius: 4px; cursor: pointer; transition: all 0.3s; text-align: center; position: relative; }
  .formula-card input { display: none; }
  .formula-card:hover { border-color: var(--gold); }
  .formula-card input:checked + div { color: var(--gold); }
  .formula-card.selected { border-color: var(--gold); background: rgba(201,169,97,0.05); box-shadow: 0 0 15px rgba(201,169,97,0.2); }
  .formula-name { font-family: 'Cormorant Garamond', serif; font-size: 24px; margin-bottom: 5px; color: var(--cream); transition: color 0.3s; }
  .formula-time { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 15px; }
  .formula-desc { font-size: 13px; color: var(--cream-dim); line-height: 1.5; }
  .formula-price { font-size: 20px; color: var(--gold-bright); margin-top: 15px; font-weight: 300; }

  /* Tags pour Monuments */
  .monuments-wrapper { margin-bottom: 20px; }
  .monument-category { margin-bottom: 25px; }
  .monument-category h3 { font-size: 13px; color: var(--cream); margin-bottom: 15px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
  .tags-group { display: flex; flex-wrap: wrap; gap: 10px; }
  
  .monument-tag label { cursor: pointer; display: inline-block; }
  .monument-tag input { display: none; }
  .monument-tag span { display: inline-block; border: 1px solid var(--line); padding: 10px 18px; border-radius: 30px; color: var(--cream-dim); font-size: 13px; transition: all 0.3s; background: var(--black-soft); user-select: none; }
  .monument-tag input:checked + span { background: var(--gold); color: var(--black); border-color: var(--gold); font-weight: 600; }
  .monument-tag input:disabled + span { opacity: 0.3; cursor: not-allowed; }

  /* Input Autre */
  .other-input-group { margin-top: 15px; display: none; animation: fadeIn 0.3s ease; }
  .other-input-group.active { display: block; }
  .form-input { width: 100%; background: var(--black-soft); border: 1px solid var(--line); color: var(--cream); padding: 15px; font-size: 14px; font-family: 'Inter', sans-serif; border-radius: 2px; transition: border-color 0.3s; }
  .form-input:focus { outline: none; border-color: var(--gold); }

  /* Véhicules & Options */
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
  @media(max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
  .form-group label { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--cream-dim); margin-bottom: 8px; }
  
  .vehicle-options { display: flex; gap: 15px; margin-bottom: 25px; }
  @media(max-width: 600px) { .vehicle-options { flex-direction: column; } }
  .vehicle-card { flex: 1; border: 1px solid var(--line); border-radius: 4px; padding: 15px; text-align: center; cursor: pointer; transition: all 0.3s; background: var(--black-soft); overflow: hidden; }
  .vehicle-card:hover { border-color: var(--gold); }
  .vehicle-card.selected { border-color: var(--gold); background: rgba(201,169,97,0.1); box-shadow: 0 0 15px rgba(201,169,97,0.2); }
  .vehicle-card.disabled { filter: grayscale(1); opacity: 0.5; pointer-events: none; border-color: #333; }
  .vehicle-card img { width: 100%; height: 95px; object-fit: contain; margin-bottom: 10px; border-radius: 2px; opacity: 0.6; transition: opacity 0.3s, transform 0.3s; transform: scale(1.3); transform-origin: center bottom; }
  .vehicle-card.selected img { opacity: 1; transform: scale(1.45); }
  .vehicle-title { font-weight: 700; color: var(--gold); font-size: 14px; margin-bottom: 2px; font-family: 'Cormorant Garamond', serif; letter-spacing: 1px;}
  .vehicle-model { font-size: 11px; color: var(--cream); margin-bottom: 6px; font-weight: 500; }
  .vehicle-cap { font-size: 10px; color: var(--cream-dim); line-height: 1.4; border-top: 1px solid var(--line); padding-top: 6px; }

  .checkbox-group { margin-bottom: 20px; padding-top: 10px; }
  .checkbox-label { display: flex; align-items: center; gap: 10px; color: var(--gold); font-size: 13px; font-weight: 600; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; }
  .checkbox-label input[type="checkbox"] { accent-color: var(--gold); width: 18px; height: 18px; }
  .dynamic-field { display: none; margin-top: 15px; animation: fadeIn 0.4s ease; }
  .dynamic-field.active { display: grid; }

  /* Alertes et Résumé */
  .alert-zone { color: #ff4d4d; font-size: 11px; font-weight: 500; display: inline-block; margin-top: 6px; text-transform: none; letter-spacing: 0; font-style: italic; line-height: 1.4; }
  .info-overtime { background: rgba(201, 169, 97, 0.05); border: 1px dashed var(--gold); padding: 15px; border-radius: 4px; color: var(--cream-dim); font-size: 13px; text-align: center; margin-bottom: 20px; }
  .info-overtime strong { color: var(--gold); }

  .booking-summary { background: var(--black-soft); border-top: 1px solid var(--line-white); padding: 30px; margin-top: 20px; border-radius: 4px; text-align: center; }
  .counter-display { font-size: 18px; color: var(--gold); margin-bottom: 20px; font-weight: 500; }
  .counter-display span { font-size: 13px; color: var(--cream-dim); display: block; margin-top: 5px; text-transform: uppercase; letter-spacing: 1px; }
  
  .btn-submit-tour { display: inline-flex; align-items: center; justify-content: center; background: var(--gold); color: var(--black); padding: 18px 40px; border-radius: 2px; font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; transition: all 0.4s ease; cursor: pointer; border: 1px solid var(--gold); width: 100%; max-width: 500px; }
  .btn-submit-tour:hover { background: transparent; color: var(--gold); box-shadow: 0 0 30px rgba(201, 169, 97, 0.2); }

  @keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

  input[type="date"]::-webkit-calendar-picker-indicator, input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(1); cursor: pointer; }
  .pac-container { z-index: 100000 !important; font-family: 'Inter', sans-serif; background-color: #fff; border: 1px solid var(--gold); }
  /* FAQ Styles */
  .faq-box { max-width: 800px; margin: 0 auto; border: 1px solid var(--line-white); border-radius: 4px; }
  .faq-item { border-bottom: 1px solid var(--line-white); }
  .faq-item:last-child { border-bottom: none; }
  .faq-question { padding: 25px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; color: var(--gold); font-size: 16px; font-weight: 500; background: var(--black-soft); transition: background 0.3s; }
  .faq-question:hover { background: var(--black-lacquer); }
  .faq-answer { padding: 0 25px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; background: var(--black-soft); color: var(--cream-dim); font-size: 15px; line-height: 1.7; }
  .faq-item.active .faq-answer { padding: 0 25px 25px; max-height: 500px; }
  .faq-icon { font-size: 24px; transition: transform 0.4s; font-weight: 300; }
  .faq-item.active .faq-icon { transform: rotate(45deg); }
  /* Style du bloc vidéo */
.video-hero-section {
    position: relative;
    padding: 100px 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.7); /* Voile noir pour faire ressortir le texte */
    z-index: 0;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (iPad, iPhone, Samsung)
   ========================================================================== */

/* Classes pour la section Itinéraire Sur-Mesure (remplace les styles inline) */
.custom-itinerary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.custom-images-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.custom-images-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line-white);
}

.custom-images-grid .img-offset {
  transform: translateY(30px);
}

/* --- TABLETTE (iPad Pro, iPad Air - max 992px) --- */
@media (max-width: 992px) {
  .section { padding: 60px 0; }
  
  /* Bascule la section sur-mesure sur 1 colonne */
  .custom-itinerary-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* Ajustement de la liste d'avantages */
  .custom-itinerary-grid ul {
    grid-template-columns: 1fr !important;
    margin-bottom: 20px !important;
  }
  
  /* On annule le décalage (offset) de l'image sur tablette pour éviter les débordements */
  .custom-images-grid .img-offset {
    transform: translateY(0);
  }
}

/* --- MOBILE (iPhone, Samsung - max 768px) --- */
@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  .section { padding: 50px 0; }

  /* Force l'affichage côte à côte (format carré) des véhicules au lieu d'une liste verticale */
  .vehicle-options { 
    display: grid !important; 
    grid-template-columns: 1fr 1fr; 
    gap: 10px; 
  }
  .vehicle-card { 
    padding: 15px 5px; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Aligne le contenu vers le haut pour éviter l'écrasement */
    margin-bottom: 0;
  }
  .vehicle-card img { 
    height: 55px; /* Hauteur fixe et sécurisée pour le mobile */
    object-fit: contain;
    transform: none !important; /* DÉSACTIVE TOTALEMENT LE ZOOM DE BASE SUR MOBILE */
    margin-bottom: 12px; 
  }
  .vehicle-card.selected img {
    transform: none !important; /* DÉSACTIVE TOTALEMENT LE ZOOM AU CLIC SUR MOBILE */
  }
  .vehicle-title, .vehicle-model, .vehicle-cap { 
    position: relative; 
    z-index: 10; /* Force le texte à rester par-dessus l'image */
  }
  .vehicle-title { 
    font-size: 12px; 
  }
  .vehicle-cap { font-size: 10px; }
  
  /* Optimisation de la section Hero / Vidéo */
  .page-hero { padding-top: 100px; padding-bottom: 20px; }
  .seo-intro p { font-size: 14px; text-align: justify; hyphens: auto; }
  
  /* Builder interactif - Ajustement des boutons et formulaires */
  .btn-submit-tour { width: 100%; padding: 15px 20px; font-size: 12px; }
  .booking-summary { padding: 20px 15px; }
  
  /* Ajustement des images de la section sur-mesure pour petit écran */
  .custom-images-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .custom-images-grid img {
    height: 200px; /* Moins haut sur mobile pour rester dans le viewport */
  }
  
  /* Typographie globale mobile */
  h2.serif { font-size: 32px !important; }
  .step-title { font-size: 12px; flex-wrap: wrap; line-height: 1.4; }
  
  /* FAQ plus compacte */
  .faq-question { padding: 15px; font-size: 14px; }
  .faq-answer { font-size: 14px; }
  .faq-item.active .faq-answer { padding: 0 15px 15px; }
}

/* =========================================================
   --- CUSTOM SELECT (Contre le bug d'affichage iOS/Android) --- 
   ========================================================= */
.cs-wrapper { position: relative; width: 100%; }
.cs-native-select { position: absolute; inset: 0; opacity: 0; pointer-events: none; }

.cs-trigger {
  width: 100%; 
  background: var(--black-soft); 
  border: 1px solid var(--line); 
  color: var(--cream);
  padding: 15px 40px 15px 15px; 
  font-size: 16px; /* 16px obligatoire contre le zoom iOS */
  font-family: 'Inter', sans-serif; 
  border-radius: 2px;
  cursor: pointer; 
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  transition: border-color 0.3s; 
  user-select: none; 
  min-height: 48px;
}
.cs-trigger.placeholder { color: var(--cream-dim); }
.cs-trigger:after {
  content: ''; 
  width: 8px; 
  height: 8px; 
  border-right: 2px solid var(--gold); 
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg); 
  transition: transform 0.3s; 
  flex-shrink: 0; 
  margin-left: 10px;
}

.cs-wrapper.open .cs-trigger { border-color: var(--gold); }
.cs-wrapper.open .cs-trigger:after { transform: rotate(-135deg); }

.cs-panel {
  position: absolute; 
  top: calc(100% + 6px); 
  left: 0; 
  right: 0; 
  max-height: 260px; 
  overflow-y: auto;
  background: var(--black-lacquer); 
  border: 1px solid var(--gold); 
  border-radius: 4px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6); 
  z-index: 500; 
  display: none;
}
.cs-wrapper.open .cs-panel { display: block; }

.cs-option { padding: 13px 15px; font-size: 14px; color: var(--cream-dim); cursor: pointer; }
.cs-option:hover, .cs-option.active { background: rgba(201,169,97,0.12); color: var(--gold-bright); }

@media(max-width: 768px) { 
  .cs-trigger { padding: 12px 40px 12px 15px; } 
}

/* --- CORRECTION DU DÉBORDEMENT DES CHAMPS SUR MOBILE (BOX SIZING) --- */
.form-group input, 
.form-group select, 
.form-group textarea, 
.form-input {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
}