/**
 * Home page — complément desktop + mobile (aligné maquettes mobile).
 */

@media (min-width: 1200px) {
  .section-activites .section-header,
  .section-packs .section-header,
  .section-pistes .section-header,
  .section-galerie .section-header,
  .section-temoignages .section-header,
  .section-faq .section-header {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  .activites-swiper-wrap {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  .section-packs__tso-sync {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ═══ Accueil mobile (body.home + template page-home) ═══ */

@media (max-width: 768px) {
  body.home .section-activites,
  body.home .section-packs,
  body.home .section-pistes,
  body.home .section-why,
  body.home .section-temoignages,
  body.home .section-faq,
  body.page-template-page-home-php .section-activites,
  body.page-template-page-home-php .section-packs,
  body.page-template-page-home-php .section-pistes,
  body.page-template-page-home-php .section-why,
  body.page-template-page-home-php .section-temoignages,
  body.page-template-page-home-php .section-faq {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  body.home .section-galerie,
  body.page-template-page-home-php .section-galerie {
    padding-top: 48px;
    padding-bottom: 56px;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Grille galerie 2×2, sans gouttière, bords écran */
  /* Plein bord sans 100vw (évite scroll horizontal sur mobile / barre de défilement) */
  body.home .section-galerie .gallery-grid,
  body.page-template-page-home-php .section-galerie .gallery-grid {
    width: calc(100% + 40px);
    max-width: none;
    margin-left: -20px;
    margin-right: -20px;
    margin-top: 20px;
    gap: 0;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(128px, 44vw);
  }

  body.home .section-galerie .g-card:nth-child(n),
  body.page-template-page-home-php .section-galerie .g-card:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }

  body.home .section-galerie .g-photo-label,
  body.page-template-page-home-php .section-galerie .g-photo-label {
    bottom: 10px;
    left: 10px;
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
  }

  body.home .section-cta,
  body.page-template-page-home-php .section-cta {
    padding: 72px 24px 96px;
  }

  body.home .cta-inner,
  body.page-template-page-home-php .cta-inner {
    max-width: 100%;
    padding: 0 4px;
  }

  body.home .cta-actions,
  body.page-template-page-home-php .cta-actions {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
    gap: 14px;
  }

  body.home .cta-actions .btn-white,
  body.home .cta-actions .btn-wa,
  body.page-template-page-home-php .cta-actions .btn-white,
  body.page-template-page-home-php .cta-actions .btn-wa {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  body.home .tso-intro,
  body.page-template-page-home-php .tso-intro {
    padding-left: 16px;
    padding-right: 16px;
  }
}
