/* ==========================================================================
   Chalet Victory — page Espaces (/chalet/espaces, /en/chalet/espaces)
   Héros plein écran « Espaces » · étiquette · Cinéma · Ski Room (accordéon) ·
   Bureau (slideshow) · {{> contact}}.
   Valeurs relevées dans le CSS Framer de la page (classes framer-1azdtty,
   framer-hyudik, framer-jomwc6 / 184rz52 / 1cuz37n et leurs enfants).
   Points de rupture : desktop ≥ 1200 · tablette 810–1199 · mobile ≤ 809
   ========================================================================== */

/* ------------------------------------------------------------------ héros */
/* Framer : main « Hero » 100vh, « Inner » 100vh padding-top 100px, image en fond (cover, centrée) */
.esp-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  height: 100vh;
  padding: 100px 0 0;
  overflow: hidden;
}
.esp-hero__bg { position: absolute; inset: 0; }
.esp-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.esp-hero__title {
  position: relative;
  flex: none;
  width: 100%;
  font-family: var(--f-display-trial);          /* style local Framer : Ogg TRIAL Medium */
  font-size: 230px;                             /* 230 / 150 / 80 */
  line-height: 1.1em;
  letter-spacing: .08em;
  text-align: center;
  color: var(--c-white-75);
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

/* ------------------------------------------------------ étiquette « ESPACES » */
/* Framer « Widget » : 90px de haut, étiquette calée en bas à gauche (5px au-dessus du filet) */
.esp-label {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 90px;
  padding: 0 var(--gutter);
  overflow: hidden;
}
.esp-label__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 0 0;
  min-width: 0;
  max-width: 1590px;
  padding: 0 0 5px;
}

/* --------------------------------------------------- Cinéma / Ski Room / Bureau */
.esp-room {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 var(--gutter);
  overflow: hidden;
}
.esp-room__inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 1590px;
  padding: 20px 0 0;
  overflow: hidden;
}
/* filet haut 1px rgba(0,0,0,.15), dessiné par-dessus la boîte comme le data-border de Framer */
.esp-room__inner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--c-black-15);
  pointer-events: none;
}
.esp-room__text {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 30%;
  overflow: hidden;
}
.esp-room__head {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  overflow: hidden;
}
.esp-room--cinema .esp-room__head { justify-content: center; height: 203px; }   /* Framer : hauteur fixe, contenu centré */
.esp-room--office .esp-room__head { justify-content: center; height: 197px; }
.esp-room--ski .esp-room__head { gap: 20px; }
.esp-room__title, .esp-room__desc { width: 100%; white-space: pre-wrap; overflow-wrap: break-word; }
.esp-room__desc { text-align: left; }
.esp-room__acc { width: 100%; }

/* colonne image : 600px dont 100px de marge basse, image 500px (rayon 5px) */
.esp-room__media {
  display: flex;
  flex: 1 0 0;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  min-width: 0;
  height: 600px;
  padding: 0 0 100px;
  overflow: hidden;
}
.esp-room--ski .esp-room__media { order: -1; }   /* image à gauche (desktop / tablette), texte d'abord dans le DOM */
.esp-room__frame {
  position: relative;
  flex: 1 0 0;
  min-width: 0;
  height: 500px;
  border-radius: var(--radius);
  overflow: hidden;
}
.esp-room__frame > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

/* ---------------------------------------------------------------- tablette */
@media (max-width: 1199px) {
  .esp-hero__title { font-size: 150px; }
  .esp-room__text { gap: 50px; }
  .esp-room--ski .esp-room__text { width: 33%; }
  .esp-room--office .esp-room__text { width: 34%; }
  .esp-room--ski .esp-room__inner { gap: 28px; }
  .esp-room--cinema .esp-room__head { gap: 8px; height: auto; }
  .esp-room--office .esp-room__head { height: auto; }
  /* Framer : titres en style local Ogg TRIAL Medium 62px (au lieu du preset 70px) */
  .esp-room__title { font-family: var(--f-display-trial); font-size: 62px; }
  .esp-room__media { height: auto; padding-bottom: 80px; }
  .esp-room__frame { height: 350px; }
}

/* ------------------------------------------------------------------ mobile */
@media (max-width: 809px) {
  .esp-hero__title { font-size: 80px; }
  .esp-hero__title:lang(fr) { font-size: min(80px, 23.1vw); }   /* « Espaces » (341 px) entier sous 341 px de large (Framer : « Espace / s ») */
  .esp-room__inner { flex-direction: column; justify-content: center; }
  .esp-room__text,
  .esp-room--ski .esp-room__text,
  .esp-room--office .esp-room__text { width: 100%; gap: 30px; }
  .esp-room--ski .esp-room__inner { gap: 20px; }
  .esp-room--cinema .esp-room__head { gap: 10px; }   /* 8px en tablette seulement */
  .esp-room__title { font-family: var(--f-display); font-size: 56px; }   /* preset 1t4bmys mobile */
  .esp-room__media {
    flex: none;
    flex-direction: column;
    width: 100%;
    height: auto;
    padding-bottom: 100px;
  }
  .esp-room__frame { flex: none; width: 100%; height: 260px; }
  /* Ski Room : section de hauteur fixe (660px) ; la colonne image prend la place restante et rogne l'image
     centrée de 260px (comme Framer, y compris quand l'accordéon est ouvert) */
  .esp-room--ski .esp-room__inner { height: 660px; }
  .esp-room--ski .esp-room__media { order: 0; flex: 1 0 0; height: auto; min-height: 0; }
}
