/* Style de base - Fichier CSS principal */

/* Variables de couleurs de base */
:root {
  --primary-color: #6c757d;
  --secondary-color: #495057;
  --accent-color: #667eea;
  --text-color: #2d3748;
  --background-color: #ffffff;
  --card-bg: #f8f9fa;
  --border-color: #e9ecef;
  --shadow: 0 5px 15px rgba(0,0,0,0.08);
  
  /* Nouvelles couleurs extraites du PHP */
  --blue-primary: #2563eb;
  --blue-light: #3498db;
  --blue-dark: #2980b9;
  --gray-dark: #2c3e50;
  --gray-medium: #34495e;
  --green-primary: #10b981;
  --orange-primary: #f59e0b;
  --purple-primary: #8b5cf6;
  --pink-primary: #ec4899;
  --text-dark: #1f2937;
  --text-gray: #6b7280;
  --white: #ffffff;
  --gradient-blue: linear-gradient(135deg, #dbeafe, #f0f9ff);
  --gradient-green: linear-gradient(135deg, white, #f0fdf4);
  --gradient-orange: linear-gradient(135deg, white, #fffbeb);
  --gradient-purple: linear-gradient(135deg, white, #faf5ff);
  --gradient-pink: linear-gradient(135deg, white, #fdf2f8);
  --gradient-price: linear-gradient(135deg, #f8fafc, #e0f2fe);
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  padding-top: 40px; /* Extrait du PHP */
}

/* Barre de navigation des thèmes - PREMIÈRE LIGNE */
.theme-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--gray-dark);
  color: white;
  z-index: 9999;
  padding: 8px 0;
  border-bottom: 2px solid var(--blue-light);
  display: block;
  font-family: Arial, sans-serif;
}

.theme-navbar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 0 20px;
}

.theme-link {
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  background: var(--gray-medium);
  color: white;
  display: inline-block;
  border: 1px solid var(--gray-dark);
  transition: all 0.3s ease;
}

.theme-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-link.active {
  background: var(--blue-light);
  color: white;
  border-color: var(--blue-dark);
}

/* Bannière noire */
.banniere-noire {
  background: var(--primary-color);
  color: white;
  padding: 12px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

.banniere-noire-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nom-guide {
  font-weight: 600;
}

/* Header et bannière */
.page-header {
  position: relative;
  margin-bottom: 40px;
}

.banniere-container {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.banniere-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banniere-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(108, 117, 125, 0.3), rgba(73, 80, 87, 0.3));
}

.banniere-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
}

.sous-titre {
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 400;
  margin-top: 40px;
  padding: 20px;
  line-height: 1.6;
}

.banniere-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cta-text {
  font-size: 16px;
  font-weight: 500;
}

.cta-arrow {
  font-size: 20px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Sections générales */
.section-bienvenue,
.section-avantages,
.section-fonctionnement {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.titre-section {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 24px;
  text-align: center;
  margin-top: 30px;
  margin-bottom: 20px;
}

/* Liste des étapes */
.liste-etapes {
  background: var(--gradient-blue);
  padding: 30px;
  border-radius: 16px;
  border: 2px solid var(--blue-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 20px;
}

.liste-etapes::before {
  content: '📋';
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  opacity: 0.3;
}

.liste-etapes li {
  margin-bottom: 20px;
  color: var(--text-dark);
  padding: 15px 20px;
  background: white;
  border-radius: 12px;
  border-left: 4px solid var(--blue-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: all 0.3s ease;
  font-weight: 500;
}

.liste-etapes li::after {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
}

.liste-etapes li:nth-child(1)::after { content: '🎯'; }
.liste-etapes li:nth-child(2)::after { content: '📚'; }
.liste-etapes li:nth-child(3)::after { content: '🤝'; }
.liste-etapes li:nth-child(4)::after { content: '🌟'; }

/* Avantages */
.avantages-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.avantage-item {
  background: white;
  padding: 30px;
  border-radius: 16px;
  border: 2px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.avantage-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.avantage-item:nth-child(1)::before { background: var(--blue-primary); }
.avantage-item:nth-child(2)::before { background: var(--green-primary); }
.avantage-item:nth-child(3)::before { background: var(--orange-primary); }
.avantage-item:nth-child(4)::before { background: var(--purple-primary); }

.avantage-item h3 {
  color: var(--text-dark);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  padding-left: 35px;
}

.avantage-item p {
  color: var(--text-gray);
  line-height: 1.7;
  font-size: 15px;
  margin-left: 35px;
}

/* Sections familles */
.section-famille {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin: 12px;
  display: inline-block;
  width: calc(25% - 24px);
  vertical-align: top;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.section-famille:hover {
  border-color: var(--accent-color);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
  transform: translateY(-3px);
}

.titre-famille {
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
}

.description-famille {
  color: var(--text-color);
  font-size: 14px;
  text-align: center;
  line-height: 1.5;
}

/* Carrousel */
.carrousel-container {
  background: var(--primary-color);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.carrousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 16px;
  background: white;
  border-radius: 8px;
}

.slide {
  min-width: 300px;
  height: 400px;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Gestion des images de fond via data-attribute */
.slide[data-background-image] {
  background-image: var(--background-image);
}

.slide-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.slide:hover {
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.slide.selected {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

.slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.slide h4 {
  padding: 16px;
  color: var(--text-color);
  font-size: 18px;
  font-weight: 600;
}

.slide-desc {
  padding: 0 16px 16px;
  color: var(--text-color);
}

.slide-select-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-select-btn:hover {
  background: white;
  transform: scale(1.1);
}

/* Boutons */
button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background: var(--secondary-color);
}

button.active {
  background: var(--accent-color);
}

/* Section prix et facturation */
.section-prix {
  background: var(--gradient-price);
  padding: 40px 20px;
  margin: 40px 0;
  border-radius: 20px;
  border: 2px solid var(--blue-primary);
  position: relative;
  overflow: hidden;
}

.section-prix::before {
  content: '💰';
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  opacity: 0.2;
}

.section-prix .titre-section {
  color: var(--blue-primary);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

.liste-prix {
  max-width: 800px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.liste-prix li {
  margin-bottom: 15px;
  padding: 20px 25px;
  border-radius: 12px;
  position: relative;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 500;
}

.liste-prix li:nth-child(1) {
  background: var(--gradient-blue);
  border-left: 5px solid var(--blue-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.liste-prix li:nth-child(2) {
  background: var(--gradient-green);
  border-left: 5px solid var(--green-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.liste-prix li:nth-child(3) {
  background: var(--gradient-orange);
  border-left: 5px solid var(--orange-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-size: 18px;
  font-weight: 700;
  color: var(--orange-primary);
  text-align: center;
}

.liste-prix li:nth-child(4) {
  background: var(--gradient-purple);
  border-left: 5px solid var(--purple-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-left: 30px;
}

.liste-prix li:nth-child(5) {
  background: var(--gradient-pink);
  border-left: 5px solid var(--pink-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-left: 30px;
}

.liste-prix li strong {
  font-weight: 700;
  font-size: 18px;
}

.liste-prix li:nth-child(1) strong { color: var(--blue-primary); }
.liste-prix li:nth-child(2) strong { color: var(--green-primary); }
.liste-prix li:nth-child(3) strong { color: var(--orange-primary); }
.liste-prix li:nth-child(4) strong { color: var(--purple-primary); }
.liste-prix li:nth-child(5) strong { color: var(--pink-primary); }

/* Sections spécifiques */
.etape-duree {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.etape-duree-content {
  max-width: 1200px;
  margin: 0 auto;
}

.etape-duree h3 {
  color: var(--text-dark);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.etapes-container {
  margin-top: 20px;
}

.etape-ligne-unique {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.etape-groupe {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.etape-groupe h4 {
  color: var(--text-dark);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}

/* Compteur de durée */
.compteur-duree {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: white;
  padding: 15px;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.fleche-gauche,
.fleche-droite {
  background: var(--blue-primary);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fleche-gauche:hover,
.fleche-droite:hover {
  background: var(--blue-dark);
  transform: scale(1.1);
}

.fleche-gauche:disabled,
.fleche-droite:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.valeur-duree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
}

.unite {
  font-size: 14px;
  color: var(--text-gray);
  font-weight: 500;
}

/* Boutons de destination */
.boutons-destination-grid-2x3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.bouton-destination {
  background: white;
  color: var(--text-dark);
  border: 2px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.bouton-destination:hover {
  border-color: var(--blue-primary);
  background: var(--gradient-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.bouton-destination.active {
  background: var(--blue-primary);
  color: white;
  border-color: var(--blue-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Sections destinations et incontournables */
.section-destinations {
  margin: 40px 0;
}

.sections-container {
  margin-top: 20px;
}

#incontournables-container {
  display: none;
}

/* Éléments masqués par défaut */
.modal-panier {
  display: none;
}

.section-demande {
  display: none;
}

.fils-narratifs-valider-button {
  display: none;
}

/* États d'affichage dynamiques */
.modal-panier.visible {
  display: flex;
}

.section-demande.visible {
  display: block;
}

.fils-narratifs-valider-button.visible {
  display: block;
}

/* États des slides */
.slide.selected {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

.slide.selected .slide-select-btn {
  background: var(--blue-primary);
  color: white;
}

/* États des boutons de sélection */
.slide-select-btn.selected {
  background: var(--blue-primary);
  color: white;
}

/* Interactions des slides */
.slide {
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.slide.selected {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

.slide.selected .slide-select-btn {
  background: var(--blue-primary);
  color: white;
}

/* Boutons de sélection */
.slide-select-btn {
  transition: all 0.3s ease;
}

.slide-select-btn:hover {
  transform: scale(1.1);
  background: var(--blue-primary);
  color: white;
}

/* États des boutons de destination */
.bouton-destination {
  transition: all 0.3s ease;
  cursor: pointer;
}

.bouton-destination:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.bouton-destination.active {
  background: var(--blue-primary);
  color: white;
  border-color: var(--blue-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Interactions des flèches */
.fleche-gauche,
.fleche-droite {
  cursor: pointer;
  transition: all 0.3s ease;
}

.fleche-gauche:hover,
.fleche-droite:hover {
  transform: scale(1.1);
  background: var(--blue-dark);
}

.fleche-gauche:disabled,
.fleche-droite:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

/* Interactions des modals */
.modal-overlay {
  cursor: pointer;
}

.modal-content {
  cursor: default;
}

.modal-close {
  cursor: pointer;
}

.modal-selections-close {
  cursor: pointer;
}

.modal-selection-remove {
  cursor: pointer;
}

#message-selection {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-gray);
}

#message-selection h3 {
  color: var(--text-dark);
  margin-bottom: 10px;
}

/* Fils narratifs */
.section-fils-narratifs {
  margin: 40px 0;
}

.fils-narratifs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.fil-narratif-category {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.fil-narratif-category:hover {
  border-color: var(--blue-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.fil-narratif-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background: var(--gradient-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
}

.fil-narratif-icon svg {
  width: 30px;
  height: 30px;
}

.fil-narratif-category-title {
  color: var(--text-dark);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.fil-narratif-category-desc {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.5;
}

.fil-narratif-icon-selectionne {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
}

.fil-narratif-icon-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Section de demande */
.section-demande {
  margin: 40px 0;
  display: none;
}

.demande-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.demande-content {
  padding: 40px;
}

.demande-title {
  color: var(--text-dark);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.demande-subtitle {
  color: var(--text-gray);
  font-size: 16px;
  text-align: center;
  margin-bottom: 30px;
}

.demande-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--gradient-blue);
  border-radius: 12px;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.summary-icon {
  font-size: 20px;
}

.summary-text {
  color: var(--text-dark);
  font-size: 14px;
}

.summary-text strong {
  color: var(--blue-primary);
  font-weight: 600;
}

/* Formulaire de demande */
.formulaire-demande {
  margin-top: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: white;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.bouton-demande {
  width: 100%;
  background: var(--blue-primary);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.bouton-demande:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.bouton-text {
  font-weight: 600;
}

.bouton-subtitle {
  font-size: 12px;
  opacity: 0.8;
  font-weight: 400;
}

.bouton-arrow {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.bouton-demande:hover .bouton-arrow {
  transform: translateX(5px);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 16px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  color: var(--text-dark);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-gray);
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--border-color);
  color: var(--text-dark);
}

.modal-body {
  padding: 24px;
}

/* Modal incontournables */
.modal-incontournables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

/* Interactions des modals */
.modal-incontournable {
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-incontournable:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.modal-incontournable.selected {
  border-color: var(--blue-primary);
  background: var(--gradient-blue);
}

/* Interactions des paniers */
.modal-panier {
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-panier:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* Interactions des sélections */
.modal-selections {
  cursor: default;
}

.modal-selection-item {
  cursor: default;
}

.modal-selection-item:hover {
  background: var(--gradient-blue);
}

/* Interactions des formulaires */
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.bouton-demande {
  cursor: pointer;
  transition: all 0.3s ease;
}

.bouton-demande:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Interactions des fils narratifs */
.fil-narratif-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.fil-narratif-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.fil-narratif-card.selected {
  border-color: var(--blue-primary);
  background: var(--gradient-blue);
}

.fil-narratif-category {
  cursor: pointer;
  transition: all 0.3s ease;
}

.fil-narratif-category:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.modal-incontournable {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
}

.modal-incontournable:hover {
  border-color: var(--blue-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.modal-incontournable.selected {
  border-color: var(--blue-primary);
  background: var(--gradient-blue);
}

.modal-incontournable img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.modal-incontournable .content {
  flex: 1;
}

.modal-incontournable h4 {
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.modal-incontournable p {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.4;
}

/* Panier flottant */
.modal-panier {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--blue-primary);
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
  display: none;
  z-index: 9999;
}

.modal-panier:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.panier-count {
  font-weight: 700;
  font-size: 16px;
  margin-right: 8px;
}

.panier-text {
  font-size: 14px;
  font-weight: 500;
}

/* Liste des sélections */
.modal-selections {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  max-width: 350px;
  max-height: 400px;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9998;
}

.modal-selections.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.modal-selections-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  background: var(--gradient-blue);
}

.modal-selections-header h4 {
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.modal-selections-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-gray);
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-selections-close:hover {
  background: var(--border-color);
  color: var(--text-dark);
}

.modal-selections-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
}

.modal-selection-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: var(--card-bg);
  transition: all 0.3s ease;
}

.modal-selection-item:hover {
  background: var(--gradient-blue);
}

.modal-selection-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}

.modal-selection-item-content {
  flex: 1;
}

.modal-selection-item-content h5 {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 2px 0;
}

.modal-selection-item-content p {
  color: var(--text-gray);
  font-size: 12px;
  margin: 0;
}

.modal-selection-remove {
  background: #ef4444;
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-selection-remove:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.modal-selections-empty {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-gray);
}

.modal-selections-empty h5 {
  color: var(--text-dark);
  margin-bottom: 8px;
}

.modal-selections-empty p {
  font-size: 14px;
  margin: 0;
}

/* Classes pour les éléments vides */
.modal-incontournable-empty {
  grid-column: 1 / -1;
  text-align: center;
}

.modal-empty {
  text-align: center;
  padding: 40px;
  color: var(--text-gray);
  font-size: 16px;
}

/* Éléments manquants du JavaScript */
.highlights-list {
  width: 100%;
}

.carrousel-container {
  margin: 20px 0;
}

.carrousel {
  scroll-behavior: smooth;
}

/* États des éléments dynamiques */
.slide.active {
  transform: scale(1.05);
  border-color: var(--blue-primary);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* Gestion des images de fond */
.slide[data-background-image] {
  background-image: var(--background-image);
}

/* Modal fils narratifs */
.sous-famille-section {
  margin-bottom: 30px;
}

.sous-famille-header {
  margin-bottom: 15px;
}

.sous-famille-header h4 {
  color: var(--text-dark);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-primary);
}

.sous-famille-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.fil-narratif-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.fil-narratif-card:hover {
  border-color: var(--blue-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.fil-narratif-card.selected {
  border-color: var(--blue-primary);
  background: var(--gradient-blue);
}

.fil-narratif-check {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--blue-primary);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fil-narratif-card.selected .fil-narratif-check {
  opacity: 1;
}

.fil-narratif-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 15px;
}

.fil-narratif-title {
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.fils-narratifs-valider-button {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--blue-primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
}

.fils-narratifs-valider-button:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Animations et transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Classes d'animation */
.fade-in {
  animation: fadeIn 0.3s ease-out;
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

.scale-in {
  animation: scaleIn 0.3s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .section-famille {
    width: calc(50% - 24px);
  }
  
  .avantages-container {
    grid-template-columns: 1fr;
  }
  
  .theme-navbar-content {
    gap: 8px;
  }
  
  .theme-link {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .etape-ligne-unique {
    flex-direction: column;
    align-items: center;
  }
  
  .etape-groupe {
    min-width: 100%;
    max-width: 100%;
  }
  
  .boutons-destination-grid-2x3 {
    grid-template-columns: 1fr;
  }
  
  .fils-narratifs-grid {
    grid-template-columns: 1fr;
  }
  
  .demande-summary {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    max-width: 95vw;
    margin: 20px;
  }
  
  .modal-incontournables {
    grid-template-columns: 1fr;
  }
  
  .sous-famille-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .banniere-content {
    padding: 0 15px;
  }
  
  .sous-titre {
    font-size: 16px;
    padding: 15px;
  }
  
  .titre-section {
    font-size: 24px;
  }
  
  .liste-etapes {
    padding: 20px;
  }
  
  .avantage-item {
    padding: 20px;
  }
  
  .demande-content {
    padding: 20px;
  }
  
  .modal-header,
  .modal-body {
    padding: 15px;
  }
} 