/*
 * GATARD Pro Pages 1.9.42 — accueil mobile, correction page par page.
 * Couche purement visuelle. Ne touche pas au header, menu, slider, footer
 * ni à la protection de stabilité CCM mise en place en 1.9.38.
 */

@media (max-width: 767px) {
  /* Histoire : exactement deux lignes, une ligne par segment du titre. */
  html body.page-index #gatard-home #gatard-home-story-title.gatard-home__section-title {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 16px !important;
    padding: 0 !important;
    font-size: clamp(19px, 6vw, 26px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.045em !important;
    text-align: center !important;
    text-wrap: nowrap !important;
  }

  html body.page-index #gatard-home #gatard-home-story-title > .gatard-home__section-title-main,
  html body.page-index #gatard-home #gatard-home-story-title > strong {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  html body.page-index #gatard-home #gatard-home-story-title > strong {
    margin-top: 3px !important;
  }

  /* Description Histoire : taille de lecture standard sur téléphone. */
  html body.page-index #gatard-home .gatard-home__story-excerpt {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    font-size: 15px !important;
    line-height: 1.58 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
  }

  html body.page-index #gatard-home .gatard-home__story-excerpt p,
  html body.page-index #gatard-home .gatard-home__story-excerpt div {
    font-size: inherit !important;
    line-height: inherit !important;
  }

  /* Événement : contenu au centre du bloc, sans gros vide intérieur. */
  html body.page-index #gatard-home .gatard-home__event-card {
    align-items: stretch !important;
  }

  html body.page-index #gatard-home .gatard-home__event-copy {
    display: flex !important;
    width: 100% !important;
    min-height: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 16px 15px 18px !important;
    text-align: center !important;
  }

  html body.page-index #gatard-home .gatard-home__event-copy .gatard-home__section-eyebrow {
    width: 100% !important;
    margin: 0 auto 7px !important;
    text-align: center !important;
  }

  html body.page-index #gatard-home .gatard-home__event-copy .gatard-home__section-title {
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto 9px !important;
    font-size: clamp(25px, 7.4vw, 32px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.035em !important;
    text-align: center !important;
  }

  html body.page-index #gatard-home .gatard-home__event-copy > p {
    width: 100% !important;
    max-width: 345px !important;
    margin: 0 auto 14px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-align: center !important;
  }

  html body.page-index #gatard-home .gatard-home__event-copy .gatard-home__button {
    align-self: center !important;
    margin: 0 auto !important;
  }

  /* Galerie : titre plus visible, puis lien centré juste en dessous. */
  html body.page-index #gatard-home .gatard-home__gallery-head {
    display: flex !important;
    width: calc(100% - 30px) !important;
    max-width: 520px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    margin: 0 auto 16px !important;
    padding: 0 !important;
    text-align: center !important;
  }

  html body.page-index #gatard-home .gatard-home__gallery-head .gatard-home__block-title--gallery {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: clamp(16px, 4.5vw, 19px) !important;
    line-height: 1.18 !important;
    letter-spacing: .015em !important;
    white-space: normal !important;
    text-align: center !important;
  }

  html body.page-index #gatard-home .gatard-home__gallery-head > a {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    padding: 3px 0 !important;
    font-size: 11.5px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    text-align: center !important;
  }
}

@media (max-width: 359px) {
  html body.page-index #gatard-home #gatard-home-story-title.gatard-home__section-title {
    font-size: clamp(18px, 5.8vw, 21px) !important;
    letter-spacing: -.05em !important;
  }

  html body.page-index #gatard-home .gatard-home__story-excerpt {
    font-size: 14.5px !important;
  }
}
