/* Reset et base styles - Updated 2025-01-17 19:41 pour forcer rechargement cache */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  margin: 0;
  overflow-x: hidden;
}

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

/* Header */
.header {
  background: white;
  color: #0389b8;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  width: 144px;
  height: 144px;
  flex-shrink: 0;
  object-fit: contain;
  transition: width 0.3s ease, height 0.3s ease;
}

/* Logo plus petit lors du défilement */
.scrolled .header .logo-img {
  width: 80px;
  height: 80px;
}

/* Ajustement du header lors du défilement */
.scrolled .header {
  padding: 10px 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo-section .tagline {
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.9;
}

.contact-info {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-item {
  text-align: center;
}

.contact-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: #32A5CB;
}

.contact-item p {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0389b8;
}

/* Navigation */
.navigation {
  background-color: #0389b8;
  border-bottom: 3px solid #32A5CB;
  position: fixed;
  top: var(--header-height, 184px); /* Utilise la variable CSS ou valeur par défaut */
  left: 0;
  right: 0;
  z-index: 999;
  width: 100%;
  transition: top 0.3s ease;
}


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

.nav-menu {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
}

.nav-item {
  margin: 0;
}

.nav-link {
  display: block;
  color: white;
  text-decoration: none;
  padding: 15px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

/* Navigation avec padding réduit lors du défilement */
.scrolled .navigation .nav-link {
  padding: 10px 20px;
}

.nav-link:hover,
.nav-link.active {
  background-color: #32A5CB;
  color: #91CDE1;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #91CDE1;
}

/* Main content */
main {
  min-height: calc(100vh - 400px);
  padding: 40px 0;
  margin-top: var(--total-header-nav-height, 203px); /* Utilise la variable CSS ou valeur par défaut */
  transition: margin-top 0.3s ease;
}


/* Chalet Detail Page Styles */
.chalet-detail {
  padding: 10px 0;
  background-color: white;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 30px;
  padding: 15px 0;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.breadcrumb a {
  color: #32A5CB;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #0389b8;
}

.breadcrumb .separator {
  margin: 0 10px;
  color: #002835;
}

.breadcrumb .current {
  color: #002835;
  font-weight: 400;
}

/* Chalet Header */
.chalet-header {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.chalet-header h1 {
  font-size: 2.5rem;
  color: #0389b8;
  margin-bottom: 10px;
  font-weight: 700;
}

.chalet-subtitle {
  font-size: 1.2rem;
  color: #002835;
  margin-bottom: 20px;
  font-style: italic;
}

.chalet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.chalet-meta span {
  background: #f8f9fa;
  color: #0389b8;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 600;
  border: 1px solid #e9ecef;
}

.chalet-meta .price {
  background: #0389b8;
  color: white;
  font-size: 1.1rem;
}

/* Image Gallery */
.image-gallery {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.main-image {
  position: relative;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

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

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 1.5rem;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.nav-btn:hover {
  background: rgba(0,0,0,0.8);
}

.nav-btn.prev {
  left: 20px;
}

.nav-btn.next {
  right: 20px;
}

.image-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
}

.image-thumbnails img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  border: 2px solid transparent;
}

.image-thumbnails img:hover,
.image-thumbnails img.active {
  opacity: 1;
  border-color: #32A5CB;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.description-section {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.description-section h2 {
  color: #0389b8;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.description-section h3 {
  color: #0389b8;
  margin: 30px 0 15px 0;
  font-size: 1.3rem;
}

.description-section p {
  color: #002835;
  line-height: 1.7;
  margin-bottom: 20px;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
}

.amenities-grid li {
  background: #f8f9fa;
  color: #0389b8;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  font-weight: 500;
  position: relative;
  padding-left: 35px;
}

.amenities-grid li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  color: #32A5CB;
  font-weight: bold;
}

/* Reservation Card */
.reservation-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.pricing h3 {
  color: #0389b8;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.price-main {
  font-size: 2rem;
  font-weight: 700;
  color: #32A5CB;
  margin-bottom: 20px;
}

.seasonal-pricing {
  margin-bottom: 30px;
}

.seasonal-pricing h4 {
  color: #0389b8;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.season-item {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #002835;
}

.season-item:last-child {
  border-bottom: none;
}

.booking-form h4 {
  color: #0389b8;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-weight: 600;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e8e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #32A5CB;
}

.btn-primary {
  background: #0389b8;
  color: white;
  padding: 15px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-size: 1.1rem;
  width: 100%;
}

.btn-primary:hover {
  background: #0389b8;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(44, 85, 48, 0.3);
}

/* Room Details */
.room-details {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.room-details h2 {
  color: #0389b8;
  margin-bottom: 25px;
  font-size: 1.8rem;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.room-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e9ecef;
  transition: transform 0.3s ease;
}

.room-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.room-card h4 {
  color: #0389b8;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.room-card p {
  color: #002835;
  line-height: 1.6;
}

/* Activities Section */
.activities-section {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.activities-section h2 {
  color: #0389b8;
  margin-bottom: 25px;
  font-size: 1.8rem;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: transform 0.3s ease;
}

.activity-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.activity-icon {
  font-size: 1.5rem;
}

.activity-item span:last-child {
  color: #0389b8;
  font-weight: 500;
}

/* Policies Section */
.policies-section {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.policies-section h2 {
  color: #0389b8;
  margin-bottom: 25px;
  font-size: 1.8rem;
}

.policies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.policy-item {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  color: #002835;
  line-height: 1.6;
}

.policy-item strong {
  color: #0389b8;
}

/* Contact Section */
.contact-section {
  background: #0389b8;
  padding: 30px;
  border-radius: 15px;
  border: 1px solid #e0e8e0;
  text-align: center;
}

.contact-section h2 {
  color: #002835;
  margin-bottom: 25px;
  font-size: 1.8rem;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-info .contact-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  border: 1px solid #e0e8e0;
  min-width: 200px;
}

.contact-info .contact-item strong {
  color: #0389b8;
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  background: #0389b8;
  color: white;
  padding: 50px 0 20px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h4 {
  color: #91CDE1;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-section p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.footer-contact p {
  margin-bottom: 8px;
}

.footer-links,
.footer-info {
  list-style: none;
}

.footer-links li,
.footer-info li {
  margin-bottom: 8px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #91CDE1;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #32A5CB;
  margin-top: 30px;
  color: #91CDE1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: left;
    gap: 20px;
  }
  
  .logo-section {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .logo-img {
    width: 100px;
    height: 100px;
  }
  
  /* Logo encore plus petit lors du défilement sur mobile */
  .scrolled .header .logo-img {
    width: 60px;
    height: 60px;
  }
  
  .contact-info {
    justify-content: center;
  }
  
  .nav-menu {
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
    flex-wrap: wrap !important;
  }
  
  .nav-item {
    margin: 0 !important;
  }
  
  .nav-link {
    text-align: left !important;
    padding: 15px 20px !important;
    display: block !important;
  }
  
  .logo-section h1 {
    font-size: 2rem;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .reservation-card {
    position: static;
  }
  
  .chalet-meta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .chalet-meta span {
    text-align: center;
  }
  
  .main-image {
    height: 300px;
  }
  
  .nav-btn {
    padding: 10px 15px;
    font-size: 1.2rem;
  }
  
  .nav-btn.prev {
    left: 10px;
  }
  
  .nav-btn.next {
    right: 10px;
  }
  
  .contact-info {
    flex-direction: column;
    align-items: center;
  }
  
  .rooms-grid {
    grid-template-columns: 1fr;
  }
  
  .activities-grid {
    grid-template-columns: 1fr;
  }
  
  .policies-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .chalet-header {
    padding: 20px;
  }
  
  .chalet-header h1 {
    font-size: 2rem;
  }
  
  .image-gallery {
    padding: 20px;
  }
  
  .description-section,
  .reservation-card,
  .room-details,
  .activities-section,
  .policies-section {
    padding: 20px;
  }
  
  .contact-section {
    padding: 20px;
  }
}