/**
 * GATARD Pro Pages v1.12.38
 * CMS 9 — Hero responsive final.
 *
 * Objectifs :
 * - centrer réellement "ÉVÉNEMENT / PRIVATISATION" sur tablette/mobile ;
 * - conserver la logique de Nos emplacements ;
 * - donner davantage de hauteur au hero Événement car son texte est plus long ;
 * - éviter l'effet tassé sous le quick menu.
 */

/* =========================================================
   TABLETTE : 768 -> 1199
   ========================================================= */
@media (min-width: 768px) and (max-width: 1199.98px) {

  html body.cms-id-9 #gatard-events
  .gatard-events__hero.gatard-events__hero--locations-style {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: clamp(560px, 70vw, 720px) !important;
    height: auto !important;
    background-position: center center !important;
    background-image:
      linear-gradient(180deg,
        rgba(10,8,5,.78) 0%,
        rgba(10,8,5,.68) 48%,
        rgba(10,8,5,.86) 100%),
      var(--gatard-events-hero-image) !important;
  }

  html body.cms-id-9 #gatard-events
  .gatard-events__hero.gatard-events__hero--locations-style
  > .gatard-events__hero-inner {
    width: calc(100% - 30px) !important;
    max-width: 980px !important;
    min-height: inherit !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    padding:
      clamp(82px, 9vw, 108px)
      0
      clamp(104px, 11vw, 138px) !important;
    text-align: center !important;
  }

  /*
   * Le pin placé avant le texte décalait visuellement le libellé vers la droite.
   * Sur tablette on conserve les deux traits, mais le libellé devient le vrai
   * centre géométrique du hero.
   */
  html body.cms-id-9 #gatard-events
  .gatard-events__hero-inner
  > .gatard-events__eyebrow {
    width: min(100%, 700px) !important;
    max-width: 700px !important;
    display: grid !important;
    grid-template-columns: minmax(38px,1fr) auto minmax(38px,1fr) !important;
    align-items: center !important;
    justify-items: stretch !important;
    column-gap: 13px !important;
    margin: 0 auto 18px !important;
    padding: 0 !important;
    text-align: center !important;
  }

  html body.cms-id-9 #gatard-events
  .gatard-events__hero-inner
  > .gatard-events__eyebrow
  > .gatard-icon {
    display: none !important;
  }

  html body.cms-id-9 #gatard-events
  .gatard-events__hero-inner
  > .gatard-events__eyebrow
  > .gatard-events__eyebrow-line {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 72px !important;
    height: 1.5px !important;
    margin: 0 !important;
    justify-self: stretch !important;
  }

  html body.cms-id-9 #gatard-events
  .gatard-events__hero-inner
  > .gatard-events__eyebrow
  > .gatard-events__eyebrow-line:first-child {
    justify-self: end !important;
  }

  html body.cms-id-9 #gatard-events
  .gatard-events__hero-inner
  > .gatard-events__eyebrow
  > .gatard-events__eyebrow-line:last-child {
    justify-self: start !important;
  }

  html body.cms-id-9 #gatard-events
  .gatard-events__hero-inner
  > .gatard-events__eyebrow
  > strong {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #d9ad67 !important;
    font-family: "Poppins", Arial, Helvetica, sans-serif !important;
    font-size: clamp(10.5px, 1.45vw, 13px) !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    letter-spacing: .14em !important;
    text-align: center !important;
    text-transform: uppercase !important;
    white-space: normal !important;
  }

  html body.cms-id-9 #gatard-events
  .gatard-events__hero--locations-style h1 {
    width: min(100%, 820px) !important;
    max-width: 820px !important;
    margin: 0 auto !important;
    font-size: clamp(42px, 6.1vw, 62px) !important;
    line-height: 1.01 !important;
    text-align: center !important;
  }

  html body.cms-id-9 #gatard-events
  .gatard-events__hero--locations-style h1 > span,
  html body.cms-id-9 #gatard-events
  .gatard-events__hero--locations-style h1 > em {
    text-align: center !important;
  }

  html body.cms-id-9 #gatard-events
  .gatard-events__hero--locations-style
  .gatard-events__hero-inner > p {
    width: min(100%, 720px) !important;
    max-width: 720px !important;
    margin: 20px auto 0 !important;
    font-size: clamp(14px, 1.65vw, 16px) !important;
    line-height: 1.62 !important;
    text-align: center !important;
  }

  html body.cms-id-9 #gatard-events
  .gatard-events__hero-btn {
    width: fit-content !important;
    min-width: 250px !important;
    max-width: 340px !important;
    min-height: 50px !important;
    margin: 24px auto 0 !important;
    padding: 0 20px !important;
  }
}

/* Tablette compacte : le texte long garde une respiration propre. */
@media (min-width: 768px) and (max-width: 899.98px) {
  html body.cms-id-9 #gatard-events
  .gatard-events__hero.gatard-events__hero--locations-style {
    min-height: 600px !important;
  }

  html body.cms-id-9 #gatard-events
  .gatard-events__hero.gatard-events__hero--locations-style
  > .gatard-events__hero-inner {
    max-width: 760px !important;
    padding-top: 88px !important;
    padding-bottom: 118px !important;
  }

  html body.cms-id-9 #gatard-events
  .gatard-events__hero--locations-style
  .gatard-events__hero-inner > p {
    max-width: 650px !important;
    font-size: 14px !important;
    line-height: 1.58 !important;
  }
}

/* =========================================================
   MOBILE : <= 767
   ========================================================= */
@media (max-width: 767.98px) {

  html body.cms-id-9 #gatard-events
  .gatard-events__hero.gatard-events__hero--locations-style {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: clamp(520px, 122vw, 600px) !important;
    height: auto !important;
    overflow: hidden !important;
    background-position: 62% center !important;
    background-image:
      linear-gradient(180deg,
        rgba(10,8,5,.82) 0%,
        rgba(10,8,5,.70) 45%,
        rgba(10,8,5,.90) 100%),
      var(--gatard-events-hero-image) !important;
  }

  html body.cms-id-9 #gatard-events
  .gatard-events__hero.gatard-events__hero--locations-style
  > .gatard-events__hero-inner {
    width: calc(100% - 30px) !important;
    max-width: 560px !important;
    min-height: inherit !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    padding:
      clamp(68px, 17vw, 82px)
      0
      clamp(62px, 15vw, 76px) !important;
    text-align: center !important;
  }

  /*
   * Mobile : on enlève le pin et les traits dans l'eyebrow.
   * Le texte occupe 100% de la largeur et son centre correspond exactement
   * au centre du hero, sans illusion de décalage.
   */
  html body.cms-id-9 #gatard-events
  .gatard-events__hero-inner
  > .gatard-events__eyebrow {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 14px !important;
    padding: 0 !important;
    text-align: center !important;
  }

  html body.cms-id-9 #gatard-events
  .gatard-events__hero-inner
  > .gatard-events__eyebrow
  > .gatard-icon,
  html body.cms-id-9 #gatard-events
  .gatard-events__hero-inner
  > .gatard-events__eyebrow
  > .gatard-events__eyebrow-line {
    display: none !important;
  }

  html body.cms-id-9 #gatard-events
  .gatard-events__hero-inner
  > .gatard-events__eyebrow
  > strong {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    color: #d9ad67 !important;
    font-family: "Poppins", Arial, Helvetica, sans-serif !important;
    font-size: clamp(10px, 2.8vw, 11.5px) !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    letter-spacing: .115em !important;
    text-align: center !important;
    text-transform: uppercase !important;
    white-space: normal !important;
  }

  html body.cms-id-9 #gatard-events
  .gatard-events__hero--locations-style h1 {
    width: min(100%, 410px) !important;
    max-width: 410px !important;
    margin: 0 auto !important;
    font-size: clamp(32px, 9.1vw, 40px) !important;
    line-height: 1.02 !important;
    letter-spacing: -.038em !important;
    text-align: center !important;
    text-wrap: balance !important;
  }

  html body.cms-id-9 #gatard-events
  .gatard-events__hero--locations-style h1 > span,
  html body.cms-id-9 #gatard-events
  .gatard-events__hero--locations-style h1 > em {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
  }

  html body.cms-id-9 #gatard-events
  .gatard-events__hero--locations-style
  .gatard-events__hero-inner > p {
    width: min(100%, 390px) !important;
    max-width: 390px !important;
    margin: 16px auto 0 !important;
    padding: 0 !important;
    font-size: clamp(12.25px, 3.25vw, 13.5px) !important;
    line-height: 1.55 !important;
    text-align: center !important;
    text-wrap: pretty !important;
    overflow-wrap: normal !important;
  }

  html body.cms-id-9 #gatard-events
  .gatard-events__hero-btn {
    width: min(100%, 300px) !important;
    max-width: 300px !important;
    min-height: 48px !important;
    margin: 20px auto 0 !important;
    padding: 0 17px !important;
    font-size: 12.5px !important;
  }
}

/* iPhone / petits mobiles */
@media (max-width: 430px) {
  html body.cms-id-9 #gatard-events
  .gatard-events__hero.gatard-events__hero--locations-style {
    min-height: 550px !important;
  }

  html body.cms-id-9 #gatard-events
  .gatard-events__hero.gatard-events__hero--locations-style
  > .gatard-events__hero-inner {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    padding-top: 72px !important;
    padding-bottom: 66px !important;
  }

  html body.cms-id-9 #gatard-events
  .gatard-events__hero--locations-style h1 {
    max-width: 360px !important;
    font-size: clamp(31px, 8.8vw, 37px) !important;
  }

  html body.cms-id-9 #gatard-events
  .gatard-events__hero--locations-style
  .gatard-events__hero-inner > p {
    max-width: 360px !important;
    font-size: 12.25px !important;
    line-height: 1.52 !important;
  }
}

@media (max-width: 380px) {
  html body.cms-id-9 #gatard-events
  .gatard-events__hero.gatard-events__hero--locations-style {
    min-height: 565px !important;
  }

  html body.cms-id-9 #gatard-events
  .gatard-events__hero.gatard-events__hero--locations-style
  > .gatard-events__hero-inner {
    width: calc(100% - 22px) !important;
    max-width: calc(100% - 22px) !important;
    padding-top: 68px !important;
    padding-bottom: 62px !important;
  }

  html body.cms-id-9 #gatard-events
  .gatard-events__hero--locations-style h1 {
    max-width: 330px !important;
    font-size: 30px !important;
  }

  html body.cms-id-9 #gatard-events
  .gatard-events__hero--locations-style
  .gatard-events__hero-inner > p {
    max-width: 335px !important;
    font-size: 11.8px !important;
    line-height: 1.5 !important;
  }

  html body.cms-id-9 #gatard-events
  .gatard-events__hero-btn {
    width: min(100%, 285px) !important;
  }
}
