/* ===== BASE ===== */
html { scroll-behavior: smooth; }

::selection { background: #6B7C5A; color: white; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F5F0E8; }
::-webkit-scrollbar-thumb { background: #8B8275; border-radius: 3px; }

/* ===== HERO ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%   { opacity: 0; transform: translateY(-6px); }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(6px); }
}

.animate-fade-in        { animation: fadeIn  1s ease forwards; }
.animate-slide-up       { animation: slideUp 1s ease 0.3s both; }
.animate-slide-up-delay { animation: slideUp 1s ease 0.6s both; }
.animate-slide-up-d2    { animation: slideUp 1s ease 0.9s both; }
.animate-scroll-pulse   { animation: scrollPulse 1.8s ease-in-out infinite; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAV ===== */
#navbar { transition: background 0.4s ease, box-shadow 0.4s ease; }
#navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 24px rgba(0,0,0,0.08);
}
#navbar.scrolled .nav-link {
  color: #8B8275;
}
#navbar.scrolled .nav-link:hover {
  color: #2D2D2D;
}
#navbar.scrolled .nav-logo {
  color: #2D2D2D;
}
#navbar.scrolled .nav-reserve {
  border-color: #2D2D2D;
  color: #2D2D2D;
}
#navbar.scrolled .nav-reserve:hover {
  background: #2D2D2D;
  color: white;
}

/* ===== MASONRY GALLERY ===== */
.masonry-grid {
  columns: 1;
  column-gap: 0.875rem;
}
@media (min-width: 640px)  { .masonry-grid { columns: 2; } }
@media (min-width: 1024px) { .masonry-grid { columns: 3; } }

.masonry-item {
  break-inside: avoid;
  margin-bottom: 0.875rem;
  border-radius: 0.875rem;
  overflow: hidden;
  position: relative;
}

.gallery-img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 0.875rem;
}
.masonry-item:hover .gallery-img { transform: scale(1.04); }

/* Gallery overlay hint */
.masonry-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(45,45,45,0);
  transition: background 0.4s ease;
  border-radius: 0.875rem;
  pointer-events: none;
}
.masonry-item:hover::after { background: rgba(45,45,45,0.12); }

/* ===== FEATURE CARDS ===== */
.feature-card {
  background: white;
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid #E8DCC8;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.09);
  border-color: #6B7C5A;
}

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #F5F0E8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7C5A;
  margin-bottom: 1.1rem;
  transition: background 0.3s ease, color 0.3s ease;
}
.feature-card:hover .feature-icon {
  background: #6B7C5A;
  color: white;
}

.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: #2D2D2D;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.feature-card p {
  font-size: 0.8rem;
  color: #8B8275;
  line-height: 1.55;
}

/* ===== LIGHTBOX ===== */
#lightbox { animation: fadeIn 0.2s ease; }
#lightbox img {
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

/* ===== STAT DIVIDER ===== */
.stat-divider { border-top: 1px solid #E8DCC8; }

/* ===== FORMULAIRE DE RÉSERVATION ===== */
.form-legend {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2D2D2D;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #2D2D2D;
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.65rem 0.875rem;
  border: 1.5px solid #E8DCC8;
  border-radius: 0.75rem;
  background: #FDFAF5;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #2D2D2D;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: #6B7C5A;
  box-shadow: 0 0 0 3px rgba(107, 124, 90, 0.14);
}
.form-input.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238B8275'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-error {
  font-size: 0.75rem;
  color: #EF4444;
  margin-top: 0.3rem;
}

/* Cartes radio chambre */
.room-option { position: relative; cursor: pointer; display: block; }
.room-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.room-option-card {
  border: 1.5px solid #E8DCC8;
  border-radius: 0.875rem;
  padding: 0.875rem 1rem;
  background: #FDFAF5;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.room-option:hover .room-option-card {
  border-color: #8B8275;
}
.room-option input:checked + .room-option-card {
  border-color: #6B7C5A;
  background: rgba(107, 124, 90, 0.07);
  box-shadow: 0 0 0 3px rgba(107, 124, 90, 0.12);
}

/* ===== BOOKING PLACEHOLDER ===== */
.booking-placeholder {
  height: 15rem;
  background: #F5F0E8;
  border: 2px dashed #E8DCC8;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8B8275;
  gap: 0.75rem;
}
.booking-placeholder svg { opacity: 0.45; }
.booking-placeholder p  { font-size: 0.85rem; }
.booking-placeholder span { font-size: 0.75rem; opacity: 0.65; }
