/* ==========================================================================
   HÔTEL L'ÉCRIN & SPA - STYLES RESPONSIVES & OPTIMISATIONS CHROMEBOOK
   ========================================================================== */

/* Écrans Larges & Laptops (Chromebooks 1366x768 et 1080p) */
@media (max-width: 1366px) {
  .hero {
    min-height: 75vh;
    padding-top: calc(var(--header-height) + 1.25rem);
  }

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

/* Tablettes & Petits Ordinateurs Portables */
@media (max-width: 1024px) {
  :root {
    --header-height: 76px;
  }

  .nav-menu {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .booking-bar {
    grid-template-columns: 1fr 1fr;
  }

  .booking-bar .btn {
    grid-column: span 2;
  }
}

/* Mobiles & Écrans Tactiles Étroits (< 768px) */
@media (max-width: 768px) {
  .section {
    padding: 3.75rem 0;
  }

  .hero {
    min-height: 80vh;
    padding: calc(var(--header-height) + 2rem) 0 3rem;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .booking-bar-wrapper {
    margin-top: 1.5rem;
  }

  .booking-bar {
    grid-template-columns: 1fr;
  }

  .booking-bar .btn {
    grid-column: 1;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }

  .modal-content {
    padding: 1.75rem 1.25rem;
  }
}

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

  .btn {
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Spécificités Ergonomie Chromebook & Trackpad
   -------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  /* Effets de survol raffinés réservés aux curseurs de précision */
  .room-card:hover .room-price-val {
    color: var(--color-accent-hover);
  }
}

/* Tactile / Chromebook Touchscreen : Zones de touch minimales de 48px */
@media (pointer: coarse) {
  .nav-link,
  .btn,
  .modal-close-btn,
  .filter-tab-btn,
  .faq-trigger {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   Accessibilité : Préférence de Réduction de Mouvement
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .gsap-reveal,
  .gsap-fade {
    opacity: 1 !important;
    transform: none !important;
  }
}
