/* ===============================================
   CHARTE GRAPHIQUE LES 3 SOULINS - THEME NATURE
   =============================================== */

:root {
  /* Palette Nature & Lac */
  --forest-green: #2d5016;      /* Vert forêt du Morvan */
  --lake-blue: #4a90a4;         /* Bleu lac de Pannecière */
  --meadow-green: #7ba05b;      /* Vert prairie */
  --sunset-orange: #d17a00;     /* Orange coucher de soleil */
  --golden-yellow: #f4d03f;     /* Jaune doré pissenlit */
  --warm-beige: #f5f5dc;        /* Beige chaud sable */
  --soft-cream: #faf8f1;        /* Crème doux */
  --earth-brown: #8b6f47;       /* Brun terre */
  --light-sage: #a8b8a0;        /* Sauge clair */
  
  /* Gradients */
  --nature-gradient: linear-gradient(135deg, var(--forest-green) 0%, var(--meadow-green) 100%);
  --lake-gradient: linear-gradient(135deg, var(--lake-blue) 0%, var(--forest-green) 100%);
  --sunset-gradient: linear-gradient(135deg, var(--sunset-orange) 0%, var(--golden-yellow) 100%);
  
  /* Ombres douces */
  --shadow-soft: 0 4px 15px rgba(45, 80, 22, 0.15);
  --shadow-card: 0 8px 25px rgba(45, 80, 22, 0.2);
  --shadow-hover: 0 12px 35px rgba(45, 80, 22, 0.25);
}

/* Reset et Base */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--forest-green);
  background: linear-gradient(135deg, var(--soft-cream) 0%, var(--warm-beige) 100%);
  margin: 0;
  padding: 0;
}

/* Responsive utility container: narrow layout on large screens, full width on mobile */
.narrow-container {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Élargir la zone de contenu sur écrans larges pour éviter les troncatures du tableau */
@media (min-width: 992px) {
  .narrow-container { max-width: 980px; }
}
@media (min-width: 1200px) {
  .narrow-container { max-width: 1140px; }
}
@media (min-width: 1400px) {
  .narrow-container { max-width: 1280px; }
}

/* Tablet tweaks */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title { font-size: 2.75rem; }
  .card-body { padding: 1.75rem; }
}

/* Conteneur principal avec texture subtile */
.container {
  position: relative;
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(122, 160, 91, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(74, 144, 164, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Navigation moderne */
.navbar {
  background: var(--nature-gradient) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  padding: 1rem 0;
  border-bottom: 3px solid var(--golden-yellow);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--soft-cream) !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Permettre au menu de passer sur plusieurs lignes sur écrans moyens */
@media (min-width: 992px) {
  .navbar-nav {
    flex-wrap: wrap;
  }
}

.navbar-nav .nav-link {
  color: var(--soft-cream) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: rgba(244, 208, 63, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Héro section avec overlay nature */
.hero-section {
  background: var(--nature-gradient);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,50 Q25,30 50,50 T100,50 L100,100 L0,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: 200px 100px;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--soft-cream);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  font-style: italic;
}

/* Cards avec effet nature */
.card {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: var(--soft-cream);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--sunset-gradient);
}

.card-hover:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.card-img-top {
  object-fit: cover;
  height: 250px;
  transition: transform 0.4s ease;
}

.card:hover .card-img-top {
  transform: scale(1.1);
}

.card-body {
  padding: 2rem;
  background: var(--soft-cream);
}

.card-title {
  color: var(--forest-green);
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  position: relative;
}

.card-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 120px;
  min-width: 40px;
  height: 3px;
  background: var(--sunset-gradient);
  border-radius: 2px;
}

.card-text {
  color: var(--earth-brown);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Boutons nature */
.btn-primary {
  background: var(--sunset-gradient);
  border: none;
  border-radius: 25px;
  padding: 0.8rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(209, 122, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(209, 122, 0, 0.4);
  background: linear-gradient(135deg, var(--golden-yellow) 0%, var(--sunset-orange) 100%);
}

/* Bouton doré pour réservations et disponibilités */
.btn-gold {
  background: linear-gradient(135deg, var(--golden-yellow) 0%, var(--sunset-orange) 100%);
  color: var(--forest-green);
  border: none;
  border-radius: 25px;
  padding: 0.8rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(244, 208, 63, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn-gold:hover::before {
  left: 100%;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(244, 208, 63, 0.6);
  background: linear-gradient(135deg, var(--sunset-orange) 0%, var(--golden-yellow) 100%);
  color: var(--forest-green);
}

/* Bouton vert pour informations touristiques */
.btn-green {
  background: linear-gradient(135deg, var(--meadow-green) 0%, var(--forest-green) 100%);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 0.8rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-green::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-green:hover::before {
  left: 100%;
}

.btn-green:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(45, 80, 22, 0.4);
  background: linear-gradient(135deg, var(--forest-green) 0%, var(--meadow-green) 100%);
  color: #fff;
}

/* Bouton vert (palette nature) */
.btn-forest {
  background: linear-gradient(135deg, var(--meadow-green) 0%, var(--forest-green) 100%);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 0.8rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(45, 80, 22, 0.25);
  position: relative;
  overflow: hidden;
}
.btn-forest::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.btn-forest:hover::before { left: 100%; }
.btn-forest:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(45, 80, 22, 0.35);
  background: linear-gradient(135deg, var(--forest-green) 0%, var(--meadow-green) 100%);
}

/* Sections avec espacement nature */
.section-padding {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--forest-green);
  font-size: 2.5rem;
  font-weight: 300;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--sunset-gradient);
  border-radius: 2px;
}

/* Footer nature */
footer {
  background: var(--nature-gradient);
  color: var(--soft-cream);
  padding: 3rem 0 1rem;
  margin-top: 5rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: -34px;
  left: 0;
  right: 0;
  height: 50px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10"><path d="M0,10 Q25,0 50,5 T100,0 L100,10 Z" fill="%232d5016"/></svg>');
  background-size: 200px 50px;
}

/* Galerie responsive */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  position: relative;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--lake-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 0.2;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Responsive breakpoints */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
}

/* Animations douces */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* États de survol spéciaux */
.card:hover .card-title {
  color: var(--sunset-orange);
  transform: translateX(5px);
  transition: all 0.3s ease;
}

/* Désactiver les effets hover pour les cartes de services dans les formulaires */
.card .card-body .card:hover .card-title,
.needs-validation .card:hover .card-title {
  color: inherit;
  transform: none;
  transition: none;
}

.card .card-body .card:hover,
.needs-validation .card:hover {
  transform: none;
  box-shadow: inherit;
}

/* Effets de profondeur */
.depth-1 { box-shadow: var(--shadow-soft); }
.depth-2 { box-shadow: var(--shadow-card); }
.depth-3 { box-shadow: var(--shadow-hover); }

/* Bouton outline vert pour informations touristiques */
.btn-outline-green {
  background: transparent;
  color: var(--forest-green);
  border: 2px solid var(--meadow-green);
  border-radius: 25px;
  padding: 0.8rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-outline-green:hover {
  background: linear-gradient(135deg, var(--meadow-green) 0%, var(--forest-green) 100%);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(45, 80, 22, 0.3);
}

/* Utilitaires de couleur */
.text-forest { color: var(--forest-green); }
.text-sunset { color: var(--sunset-orange); }
.bg-nature { background: var(--nature-gradient); }
.bg-sunset { background: var(--sunset-gradient); }

/* Tarifs table row colors */
tr.season-basse > td, tr.season-basse > th {
  background-color: #edf3ec; /* vert très clair */
  border-left: 4px solid #7ba05b; /* meadow green */
}
tr.season-moyenne > td, tr.season-moyenne > th {
  background-color: #fff3c4; /* jaune doux */
  border-left: 4px solid #f4d03f; /* golden yellow */
}
tr.season-haute > td, tr.season-haute > th {
  background-color: #fdd9b7; /* orangé léger */
  border-left: 4px solid #d17a00; /* sunset orange */
}
tr.season-chrismas-new-year > td, tr.season-chrismas-new-year > th {
  background-color: #e6f4fa; /* bleu neige léger */
  border-left: 4px solid var(--lake-blue); /* bleu lac pour fêtes */
}
tr.row-forfait-3nuits > td, tr.row-forfait-3nuits > th {
  background-color: #ffe7d6; /* pêche clair */
  font-weight: 600;
  border-left: 4px solid #d17a00;
}
tr.row-forfait-menage > td, tr.row-forfait-menage > th {
  background-color: #fff3c4; /* jaune très pâle */
  font-weight: 600;
  border-left: 4px solid #f4d03f;
}
tr.row-options > td, tr.row-options > th {
  background-color: #fff3c4 !important; /* jaune clair */
  font-weight: 600;
  border-left: 4px solid #f4d03f;
}
tr.row-dogs > td, tr.row-dogs > th {
  background-color: #fff3c4 !important; /* jaune clair */
  font-weight: 600;
  border-left: 4px solid #f4d03f;
}
tr.row-electricity-note > td, tr.row-electricity-note > th {
  background-color: #f770d7 !important; /* bleu ciel très clair - harmonie avec palette nature */
  font-weight: 600;
  border-left: 4px solid var(--lake-blue); /* bleu lac pour l'énergie électrique */
  color: var(--forest-green); /* texte en vert forêt pour contraste harmonieux */
}

/* Form indicators */
.rouge { color: #d00000; }

/* Better horizontal swipe on mobile for wide tables */
.table-responsive {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* Mobile scroll hint */
.scroll-hint {
  color: rgba(0,0,0,0.55);
}

/* Amélioration de l'affichage des iframes de disponibilités sur mobile */
@media (max-width: 768px) {
  .ratio.ratio-21x9 {
    --bs-aspect-ratio: none;
    height: 250px;
  }
  
  .ratio.ratio-21x9 iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

/* ===============================================
   CAROUSEL NAVIGATION AMÉLIORÉE
   =============================================== */

/* Contrôles précédent/suivant */
.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  opacity: 1;
  transition: all 0.3s ease;
  z-index: 5;
}

.carousel-control-prev {
  left: 10px;
  z-index: 10;
}

.carousel-control-next {
  right: 10px;
  z-index: 10;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(45, 80, 22, 0.75);
  border-radius: 50%;
  padding: 20px;
  width: 45px;
  height: 45px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(45, 80, 22, 0.4);
  position: relative;
  z-index: 1000;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(45, 80, 22, 0.6);
}

/* Indicateurs du carousel */
.carousel-indicators {
  bottom: 15px;
  margin-bottom: 0;
  gap: 8px;
  z-index: 5;
  padding: 0.3rem;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(245, 245, 220, 0.6);
  border: 2px solid rgba(244, 208, 63, 0.4);
  opacity: 1;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.carousel-indicators .active {
  background: linear-gradient(135deg, var(--sunset-orange) 0%, var(--golden-yellow) 100%);
  transform: scale(1.3);
  box-shadow: 0 3px 12px rgba(244, 208, 63, 0.4);
}

.carousel-indicators [data-bs-target]:hover {
  background: linear-gradient(135deg, var(--sunset-orange) 0%, var(--golden-yellow) 100%);
  transform: scale(1.2);
}

/* Légendes du carousel */
.carousel-caption, .carousel-indicators {
  background: rgba(45, 80, 22, 0.9);
  border-radius: 25px;
  width: auto;
  max-width: 80%;
}

.carousel-caption {
  padding: 0.3rem 1.5rem;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
}

.carousel-caption h5 {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--soft-cream);
  text-shadow: none;
}

/* ===============================================
   PAGE CGV - PUCES DEVANT LES PARAGRAPHES
   =============================================== */
.cgv-page .card-body p {
  padding-left: 1.8em;
  position: relative;
  margin-bottom: 0.8rem;
}

.cgv-page .card-body p::before {
  content: "•";
  position: absolute;
  left: 0.8em;
  color: var(--forest-green);
  font-weight: bold;
  font-size: 1.3em;
  line-height: 1.6;
}

/* Style pour les listes à puces dans la page CGV */
.cgv-page .card-body ul {
  list-style-type: disc;
  padding-left: 1.8em;
  margin-bottom: 0.8rem;
}

.cgv-page .card-body ul li {
  margin-bottom: 0.5rem;
  color: var(--earth-brown);
  line-height: 1.7;
}