/* Hero Gala Robe Rouge Montréal, proposition C « le cadre »
   Polices : Barlow (déjà chargée par le thème), Montserrat 800 et Cookie (Google Fonts). */

.grm-hero {
  --grm-rouge: #ed2621;
  --grm-fw: min(760px, 56vw);              /* largeur du cadre */
  position: relative;
  overflow: hidden;
  height: clamp(560px, 44vw, 640px);
  color: #ffffff;
  background: #2a0307 url("../images/hero-montreal/fond-salle.jpg?v=2") center 55% / cover no-repeat;
}

/* Jo-Anne et Gina, de chaque côté du cadre (ordinateur) */
.grm-hero__hote {
  position: absolute;
  bottom: 0;
  height: calc(var(--grm-fw) * 0.72);
  width: auto;
  z-index: 1;
  filter: drop-shadow(0 24px 40px rgba(8, 0, 2, 0.6));
}
.grm-hero__hote--gauche {
  /* image 352 x 915 : largeur = hauteur x 0.385 ; on la glisse de 7 % derrière le montant */
  left: calc(50% - var(--grm-fw) / 2 - var(--grm-fw) * 0.72 * 0.385 + var(--grm-fw) * 0.07);
}
.grm-hero__hote--droite {
  left: calc(50% + var(--grm-fw) / 2 - var(--grm-fw) * 0.034);
}
.grm-hero__hotes-mobile { display: none; }

/* Le cadre blanc */
.grm-hero__cadre {
  position: absolute;
  left: 50%;
  bottom: -18px;                            /* la traverse du bas sort sous le hero */
  transform: translateX(-50%);
  z-index: 2;
  width: var(--grm-fw);
  aspect-ratio: 760 / 560;
  box-sizing: border-box;
  border: 9px solid #ffffff;
  padding: 7px;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  box-shadow: 0 30px 60px rgba(8, 0, 2, 0.55);
}

/* Les carreaux */
.grm-hero__carreau {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 7px #ffffff;            /* forme les traverses */
  background: radial-gradient(ellipse at 50% 32%, #b51f29 0%, #7a0d18 60%, #4c0610 100%);
}
.grm-hero__carreau img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}
.grm-hero__nom {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: "Barlow", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(20, 0, 4, 0.8);
}

/* Carreau central : slogan et boutons */
.grm-hero__centre {
  grid-column: 2;
  grid-row: 1 / span 2;
  background: var(--grm-rouge);
  box-shadow: 0 0 0 7px #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
  box-sizing: border-box;
}
.grm-hero__titre {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 1.75vw, 26px);
  line-height: 1.15;
  color: #ffffff;
}
.grm-hero__script {
  margin: 6px 0 0;
  font-family: "Cookie", cursive;
  font-size: clamp(32px, 2.6vw, 40px);
  line-height: 1.05;
  color: #ffffff;
}
.grm-hero__boutons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
  width: 100%;
  max-width: 230px;
}
.grm-hero__btn {
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-family: "Barlow", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.grm-hero__btn--plein { background: #ffffff; color: var(--grm-rouge); }
.grm-hero__btn--plein:hover, .grm-hero__btn--plein:focus-visible { background: #000000; color: #ffffff; }
.grm-hero__btn--contour { border: 2px solid #ffffff; color: #ffffff; }
.grm-hero__btn--contour:hover, .grm-hero__btn--contour:focus-visible { background: #ffffff; color: var(--grm-rouge); }

/* Tablette et cellulaire */
@media (max-width: 900px) {
  .grm-hero { height: auto; padding-bottom: 40px; }
  .grm-hero__hote { display: none; }
  .grm-hero__hotes-mobile {
    display: block;
    width: 78%;
    max-width: 360px;
    height: auto;
    margin: 28px auto 0;
  }
  .grm-hero__cadre {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: auto;
    aspect-ratio: auto;
    margin: -40px 16px 0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .grm-hero__carreau { aspect-ratio: 1 / 1; }
  .grm-hero__centre { grid-column: 1 / -1; grid-row: auto; order: -1; }
  .grm-hero__titre br, .grm-hero__script br { display: none; }
}

/* Intégration au thème designed_by_tonik : ses règles « div.site_container h1 / p / a » sont plus
   spécifiques que celles de la maquette, on les reprend ici sous .grm-hero. */
div.site_container .grm-hero .grm-hero__titre {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 1.75vw, 26px);
  line-height: 1.15;
  text-transform: none;
  color: #ffffff;
}
div.site_container .grm-hero .grm-hero__script {
  clear: none;
  margin: 6px 0 0;
  font-size: clamp(32px, 2.6vw, 40px);
  line-height: 1.05;
}
div.site_container .grm-hero .grm-hero__btn--plein { color: var(--grm-rouge); }
div.site_container .grm-hero .grm-hero__btn--plein:hover,
div.site_container .grm-hero .grm-hero__btn--plein:focus-visible { color: #ffffff; }
div.site_container .grm-hero .grm-hero__btn--contour { color: #ffffff; }
div.site_container .grm-hero .grm-hero__btn--contour:hover,
div.site_container .grm-hero .grm-hero__btn--contour:focus-visible { color: var(--grm-rouge); }
@media (max-width: 1100px) and (min-width: 901px) {
  div.site_container .grm-hero .grm-hero__btn { letter-spacing: 1px; font-size: 12px; padding: 0 10px; }
}

/* Grands écrans (plus de 1440 px) : tout le hero grandit à partir de son rendu à 1440 px (1 unité = 1 px à 1440),
   selon la plus petite des deux échelles : la largeur de l'écran, ou la hauteur visible sous l'en-tête (106 px + 10 px
   de marge), pour que le hero et les prénoms du bas restent visibles sans défiler. */
@media (min-width: 1441px) {
  .grm-hero {
    --u: min(calc(100vw / 1440), calc((100vh - 116px) / 634));
    height: calc(634 * var(--u));
    --grm-fw: calc(760 * var(--u));
  }
  .grm-hero__cadre { bottom: calc(-18 * var(--u)); border-width: calc(9 * var(--u)); padding: calc(7 * var(--u)); gap: calc(14 * var(--u));
    box-shadow: 0 calc(30 * var(--u)) calc(60 * var(--u)) rgba(8, 0, 2, 0.55); }
  /* un peu plus que la moitié de l'écart : évite un filet blanc mal arrondi au milieu des traverses */
  .grm-hero__carreau, .grm-hero__centre { box-shadow: 0 0 0 calc(7.5 * var(--u)) #ffffff; }
  .grm-hero__centre { padding: calc(24 * var(--u)) calc(20 * var(--u)); }
  .grm-hero__nom { left: calc(12 * var(--u)); bottom: calc(10 * var(--u)); font-size: calc(14 * var(--u)); }
  .grm-hero__boutons { gap: calc(10 * var(--u)); margin-top: calc(22 * var(--u)); max-width: calc(230 * var(--u)); }
  div.site_container .grm-hero .grm-hero__titre { font-size: calc(25.2 * var(--u)); }
  div.site_container .grm-hero .grm-hero__script { font-size: calc(37.4 * var(--u)); margin-top: calc(6 * var(--u)); }
  div.site_container .grm-hero .grm-hero__btn { min-height: calc(44 * var(--u)); padding: 0 calc(16 * var(--u)); font-size: calc(13 * var(--u)); letter-spacing: calc(2 * var(--u)); }
  .grm-hero__btn--contour { border-width: calc(2 * var(--u)); }
}

/* « un souffle de vie à la fois » en italique (la police Cookie n'a pas d'italique : le navigateur l'incline) */
div.site_container .grm-hero .grm-hero__script { font-style: italic; }
