/* Page d'accueil (body.home) — responsive mobile uniquement, desktop inchangé */

@media (max-width: 767px) {
  /* Sections éditoriales : retrait latéral + espacement vertical */
  body.home .layout-section {
    padding-top: clamp(1.25rem, 5vw, 2rem);
    padding-bottom: clamp(1.25rem, 5vw, 2rem);
  }

  body.home .layout-section.px-4,
  body.home .featured-events-section.px-4,
  body.home .archived-events-section.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* À la une */
  body.home .featured-events-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  body.home .featured-events-section > h2 {
    font-size: clamp(1.15rem, 5vw, 1.5rem);
    margin-bottom: 1.25rem;
  }

  /* Pas de hauteur viewport forcée sur mobile */
  body.home .featured-events-section[data-featured-min-height]:not([data-featured-min-height="auto"]),
  body.home main > section.px-4.py-16.md\:px-8:has(> section.mb-12 > .featured-event-item),
  body.home main > section.featured-events-section:has(.featured-event-item) {
    min-height: 0 !important;
    display: block !important;
    justify-content: flex-start !important;
  }

  body.home .featured-events-section[data-featured-min-height]:not([data-featured-min-height="auto"]) > .mb-12,
  body.home main > section.px-4.py-16.md\:px-8:has(> section.mb-12 > .featured-event-item) > section.mb-12 {
    margin-bottom: 0;
  }

  body.home .featured-events-section .featured-event-item.featured-event-item--split {
    margin-bottom: 2.5rem !important;
  }

  body.home .featured-events-section .featured-event-item.featured-event-item--split:last-child {
    margin-bottom: 0 !important;
  }

  body.home .featured-events-section .featured-event-item .featured-event-shape {
    padding-left: clamp(1rem, 4vw, 1.5rem) !important;
    padding-right: clamp(1rem, 4vw, 1.5rem) !important;
    padding-top: 2rem !important;
    padding-bottom: 1.75rem !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  body.home .featured-events-section .featured-event-item .featured-event-left-stack,
  body.home .featured-events-section .featured-event-item .featured-event-left-stack.featured-event-left-stack--center {
    width: 100%;
    min-width: 0;
  }

  body.home .featured-events-section .featured-event-item .featured-event-left-meta {
    width: 100%;
  }

  body.home .featured-events-section .featured-event-item .featured-event-left-actions,
  body.home .featured-events-section .featured-event-item .featured-event-link-group {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    justify-content: flex-start !important;
  }

  body.home .featured-events-section .featured-event-item h2.featured-event-text {
    font-size: clamp(1.35rem, 7vw, 2rem) !important;
    line-height: 1.15 !important;
    max-width: 100% !important;
    padding: 1.5rem 1rem !important;
  }

  body.home .featured-events-section .featured-event-item .featured-event-btn,
  body.home .featured-events-section .featured-event-item a.featured-event-btn,
  body.home .featured-events-section .featured-event-item a.action-download.event-featured-pdf {
    min-height: 44px;
  }

  /* Archives */
  body.home .archived-events-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  body.home .archived-events-section .archived-event-item {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  body.home .archived-events-section .archived-event-text.copy {
    text-align: left !important;
  }

  body.home .archived-events-section .archived-event-actions-stack {
    width: 100%;
  }

  body.home .archived-events-section .archived-event-btn,
  body.home .archived-events-section a.action-download.download-action-button {
    min-height: 44px;
  }
}
