/* ========================================
   Gîte Ardennes - Style Principal
   ======================================== */

:root {
  --primary: #2d5a27;
  --primary-dark: #1e3d1a;
  --secondary: #8b4513;
  --accent: #d4a574;
  --bg-light: #f5f1eb;
  --bg-cream: #faf8f5;
  --text-dark: #2c2c2c;
  --text-light: #666;
  --white: #fff;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-lg: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.7;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  transition: background 0.3s, transform 0.3s !important;
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.nav-cta::after {
  display: none !important;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: 0.3s;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)),
              url('https://images.unsplash.com/photo-1510798831971-661eb04b3739?w=1920') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 2rem;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(45, 90, 39, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

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

.btn-accent {
  background: var(--accent);
  color: var(--text-dark);
}

.btn-accent:hover {
  background: #c49564;
  transform: translateY(-3px);
}

/* ========================================
   Sections
   ======================================== */
section {
  padding: 5rem 2rem;
}

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   Features / Aperçu
   ======================================== */
.features {
  background: var(--white);
}

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

.feature-card {
  background: var(--bg-cream);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* ========================================
   Gallery
   ======================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

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

.gallery-item::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: var(--white);
  font-weight: 500;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.gallery-item:hover::after {
  transform: translateY(0);
}

/* ========================================
   Tarifs
   ======================================== */
.pricing {
  background: var(--bg-light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border: 3px solid var(--primary);
  transform: scale(1.05);
}

.pricing-card.featured::before {
  content: '★ Populaire';
  position: absolute;
  top: 20px;
  right: -35px;
  background: var(--primary);
  color: var(--white);
  padding: 0.3rem 2.5rem;
  font-size: 0.8rem;
  transform: rotate(45deg);
}

.pricing-card h3 {
  color: var(--secondary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
}

.price span {
  font-size: 1rem;
  color: var(--text-light);
}

.pricing-card ul {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
}

.pricing-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--bg-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-card li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
}

/* ========================================
   Calendrier
   ======================================== */
.calendar-section {
  background: var(--white);
}

.calendar-container {
  max-width: 900px;
  margin: 0 auto;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
}

.calendar-header h3 {
  font-size: 1.5rem;
}

.calendar-nav {
  display: flex;
  gap: 1rem;
}

.calendar-nav button {
  background: rgba(255,255,255,0.2);
  border: none;
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.3s;
}

.calendar-nav button:hover {
  background: rgba(255,255,255,0.3);
}

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

.calendar-day-header {
  text-align: center;
  font-weight: 600;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.calendar-day:hover:not(.disabled):not(.booked) {
  border-color: var(--primary);
}

.calendar-day.empty {
  cursor: default;
}

.calendar-day.available {
  background: #e8f5e9;
  color: var(--primary);
}

.calendar-day.booked {
  background: #ffebee;
  color: #c62828;
  cursor: not-allowed;
}

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

.calendar-day.today {
  border: 2px solid var(--accent);
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.legend-color.available { background: #e8f5e9; }
.legend-color.booked { background: #ffebee; }
.legend-color.selected { background: var(--primary); }

/* ========================================
   Formulaire
   ======================================== */
.form-section {
  background: var(--bg-light);
  margin-top: 3rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

/* ========================================
   Équipements
   ======================================== */
.equipements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

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

.equipement-item span:first-child {
  font-size: 1.5rem;
}

/* ========================================
   Contact
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  background: var(--primary);
  color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
}

.contact-info h3 {
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item span:first-child {
  font-size: 1.5rem;
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Map */
.map-container {
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* ========================================
   Footer
   ======================================== */
footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 3rem 2rem 1.5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}

/* ========================================
   Page Header (pour pages internes)
   ======================================== */
.page-header {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)),
              url('https://images.unsplash.com/photo-1449158743715-0a90ebb6d2d8?w=1920') center/cover;
  padding: 10rem 2rem 4rem;
  text-align: center;
  color: var(--white);
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    box-shadow: var(--shadow);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    padding: 1rem;
    border-bottom: 1px solid var(--bg-light);
  }
  
  .nav-links li:last-child {
    border-bottom: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .calendar-day-header {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
  
  .calendar-day {
    font-size: 0.9rem;
  }
}

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

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

/* ========================================
   Utility
   ======================================== */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
