/* =============================================================================
   RESPONSIVE — Homepage-only responsive rules (index.html)
   ============================================================================= */

/* ===== TABLET (≤ 900px) ===== */
@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }

  /* Section Padding Reductions */
  .welcome-section {
    padding: 60px 0 80px;
  }

  .gallery-section {
    padding: 60px 0 80px;
  }

  .recipe-section {
    padding: 80px 0 100px;
  }

  .contact-section {
    padding: 60px 0 100px;
  }

  /* Recipe Layout */
  .recipe-paper {
    padding: 40px 30px;
    border-radius: 25px;
    margin: 0 15px;
  }

  .recipe-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .recipe-col {
    padding: 0;
  }

  .recipe-col:not(:last-child)::after {
    display: none;
  }

  .baby-banner-parallax {
    height: 600px;
  }

  /* Homepage Contact */
  .contact-redesign-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-new {
    padding: 40px 30px;
  }

  .contact-form-new {
    padding: 40px 30px;
  }

  .sweet-form .form-row-new {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .map-new-style {
    height: 350px;
  }

  .map-integrated {
    border-top: none;
  }

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

/* ===== MOBILE (≤ 768px) ===== */
@media (max-width: 768px) {
  .hero-content {
    padding-top: 40px;
    padding-bottom: 100px;
  }

  .hero h1 .highlight-script {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .hero h1 .hero-script-small {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: -5px;
  }

  .glass-banner-content {
    padding: 30px 20px;
    width: 90%;
  }

  .glass-banner-content h3 {
    font-size: 2.5rem;
  }

  .baby-banner-parallax {
    height: 500px;
  }

  .recipe-paper {
    padding: 30px 20px;
    border-radius: 20px;
    margin: 0 10px;
  }

  .contact-info-new {
    padding: 30px 20px;
  }

  .contact-form-new {
    padding: 30px 20px;
  }

  /* Tribes: Carousel for Mobile */
  .hero-tribes-container {
    flex-direction: row;
    align-items: stretch;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;

    justify-content: flex-start;
    padding-left: 20px;
    padding-right: 20px;
    scroll-behavior: smooth;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    scroll-padding: 20px;
  }

  .hero-tribes-container::-webkit-scrollbar {
    display: none;
  }

  .tribe-card {
    width: 75vw;
    max-width: 320px;
    min-width: 240px;
    margin: 0;
    flex-shrink: 0;
    scroll-snap-align: center;
  }

  /* Gallery: Carousel for Mobile */
  .organic-gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 15px;
    margin: 0;
    padding: 0 20px 20px 20px;
    width: 100vw;
    max-width: none;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;

    scroll-padding-left: 20px;
  }

  .organic-gallery::-webkit-scrollbar {
    display: none;
  }

  .gallery-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 75vw;
    max-width: 300px;
    min-width: 240px;
    margin: 0;
    flex-shrink: 0;
    scroll-snap-align: center;
  }

  .gallery-card.tall,
  .gallery-card.small {
    height: 300px;
  }

  .gallery-text-card {
    height: auto;
    padding: 40px 20px;
    min-height: 200px;
  }
}

/* ===== TABLET & MOBILE TARIFS (≤ 992px) ===== */
@media (max-width: 992px) {
  .intro-grid {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }
  
  .intro-grid > div {
    padding: 25px !important;
  }
  
  .tarif-table-wrapper {
    margin: 0 -20px !important; /* Allow edge-to-edge scroll on mobile */
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    padding-bottom: 5px; /* for scrollbar */
  }
  
  .tarif-table th, .tarif-table td {
    padding: 12px 10px !important;
    white-space: nowrap; /* Prevent messy line-breaks in data */
  }
}

/* ===== SMALL MOBILE (≤ 360px) ===== */
@media (max-width: 360px) {
  .hero .subtitle {
    font-size: 0.95rem;
  }

  .tribe-card {
    padding: 25px 15px;
  }

  .intro-text h2,
  .section-header h2,
  .recipe-header h3 {
    font-size: 1.8rem;
  }

  .glass-banner-content h3 {
    font-size: 2rem;
  }
}
