/* Chalet Datcha - Styles personnalises */

/* Carrousel livre d'or — defilement continu infini */
.livre-or-carousel-wrapper {
  overflow: hidden;
  width: 100%;
}

.livre-or-track {
  display: flex;
  gap: 2rem;
  animation: livre-or-scroll 30s linear infinite;
  width: max-content;
}

.livre-or-track:hover {
  animation-play-state: paused;
}

.livre-or-item {
  flex-shrink: 0;
  width: 280px;
}

.livre-or-item img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@keyframes livre-or-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (min-width: 640px) {
  .livre-or-item { width: 320px; }
}

@media (min-width: 1024px) {
  .livre-or-item { width: 360px; }
}

/* Polices */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

@font-face {
  font-family: 'Camellia Signature';
  src: url('CamelliaSignature.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Hero slideshow — fondu + zoom */
.hero-slide {
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease-in-out, transform 3.5s ease-out;
}
.hero-slide--active {
  opacity: 1;
  transform: scale(1);
}

:root {
  --color-bois: #8B6F47;
  --color-bois-clair: #A68B5B;
  --color-beige: #F5EFE7;
  --color-beige-fonce: #E8DED0;
  --color-texte: #2C2C2C;
  --color-texte-clair: #6B6B6B;
  --color-neige: #FAFAF8;
  --color-pin: #4A7C59;
  --color-pin-fonce: #3A6347;
  --color-ciel: #7BA7C9;
  --color-feu: #C17A3A;
  --color-accent: #C4A77D;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-texte);
  background-color: var(--color-neige);
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}

/* Hero section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
}

/* Navigation */
.nav-scrolled {
  background-color: rgba(250, 250, 248, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-scrolled a {
  color: var(--color-texte) !important;
}

.nav-scrolled .logo-text {
  color: var(--color-bois) !important;
}

/* Calendrier */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.calendar-day:hover:not(.day-disabled) {
  background-color: var(--color-accent);
  color: white;
}

.calendar-day.day-disabled {
  background-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  text-decoration: line-through;
}

.calendar-day.day-selected {
  background-color: var(--color-pin);
  color: white;
}

.calendar-day.day-in-range {
  background-color: var(--color-pin);
  opacity: 0.6;
  color: white;
}

.calendar-day.day-today {
  font-weight: 700;
  box-shadow: inset 0 0 0 2px var(--color-bois);
}

/* Cards hebergements */
.card-hebergement {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card-hebergement:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* Boutons */
.btn-primary {
  background-color: var(--color-bois);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--color-bois-clair);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-bois);
  padding: 0.75rem 2rem;
  border: 2px solid var(--color-bois);
  border-radius: 0.375rem;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: var(--color-bois);
  color: white;
}

/* Section styles */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
}

/* Galerie photos */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 0.5rem;
  cursor: pointer;
}

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

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

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

/* Pricing table */
.pricing-card {
  border: 1px solid var(--color-beige-fonce);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.pricing-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.pricing-header {
  background: linear-gradient(135deg, var(--color-bois), var(--color-bois-clair));
  color: white;
  padding: 1.5rem;
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: #d4d0c8;
}

footer a {
  color: #e8c88a;
  transition: color 0.3s;
}

footer a:hover {
  color: #ffffff;
}

footer h3, footer h4 {
  color: #ffffff;
}

/* WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 50;
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Admin styles */
.admin-sidebar {
  width: 250px;
  background: var(--color-texte);
  min-height: 100vh;
}

.admin-nav-item {
  padding: 0.75rem 1.25rem;
  color: var(--color-beige);
  display: block;
  transition: background 0.2s;
}

.admin-nav-item:hover,
.admin-nav-item.active {
  background: rgba(255,255,255,0.1);
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
    background-attachment: scroll;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calendar-day {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
