/* ============================================
   TIERRA DE FUEGO — Responsive (Mobile-first)
   ============================================ */

/* --- Tablet (768px) --- */
@media (max-width: 768px) {

  /* Navigation */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero-title {
    font-size: clamp(2.5rem, 12vw, 4.5rem);
    letter-spacing: 0.05em;
  }

  .hero-tagline {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .hero-badges {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 2rem;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Histoire */
  .histoire-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .stat-number {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .stat-item {
    padding: 1rem;
  }

  /* Menu — passe en vertical */
  .menu-horizontal-wrapper {
    overflow: visible;
  }

  .menu-horizontal-track {
    flex-direction: column;
    gap: 3rem;
  }

  .menu-category-panel {
    min-width: auto;
    padding: 0 var(--container-padding);
  }

  .menu-items-grid {
    grid-template-columns: 1fr;
  }

  .menu-scroll-hint {
    display: none;
  }

  .menu-dots {
    display: none;
  }

  .formule-highlight {
    flex-direction: column;
    align-items: center;
  }

  .formule-card {
    max-width: 100%;
    width: 100%;
  }

  /* Galerie */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }

  .gallery-item.large {
    grid-column: span 2;
    grid-row: span 1;
  }

  /* Avis carousel — empilé */
  .avis-carousel {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .avis-card {
    min-width: auto;
    max-width: 100%;
    width: 100%;
  }

  .avis-rating-summary {
    gap: 1.5rem;
  }

  /* Réservation */
  .form-row {
    grid-template-columns: 1fr;
  }

  .reservation-form-wrapper {
    padding: 1.5rem;
    margin: 0 var(--container-padding);
  }

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

  .contact-map {
    min-height: 250px;
  }
}

/* --- Mobile (375px) --- */
@media (max-width: 480px) {

  :root {
    --section-padding: 3rem;
    --container-padding: 1.25rem;
  }

  .section-title {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .hero {
    min-height: 100svh; /* safe viewport height mobile */
  }

  .hero-title {
    font-size: clamp(2rem, 13vw, 3.5rem);
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    padding: 1rem 1.25rem;
  }

  .stat-number {
    font-size: 2rem;
    min-width: 80px;
  }

  .stat-label {
    margin-top: 0;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .gallery-item.large {
    grid-column: span 1;
  }

  /* Avis */
  .avis-score {
    font-size: 2rem;
  }

  .avis-card-quote {
    font-size: 0.95rem;
  }

  /* Horaires */
  .horaires-table td {
    font-size: 0.8rem;
  }

  .horaires-table td:first-child {
    width: 80px;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* --- Large Desktop (1280px+) --- */
@media (min-width: 1280px) {

  .gallery-grid {
    grid-auto-rows: 340px;
  }

  .avis-card {
    min-width: 380px;
  }
}

/* --- Prefer reduced motion --- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-indicator-line {
    animation: none;
  }

  .hero-title .char {
    opacity: 1;
    transform: none;
  }
}

/* --- Print --- */
@media print {
  .site-header,
  #webgl-container,
  .scroll-progress-bar,
  .loading-overlay,
  .scroll-indicator {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  section {
    min-height: auto;
    page-break-inside: avoid;
  }
}
