/* ==========================================================================
   Accueil (/ et /en/)
   Valeurs relevées dans le CSS Framer de la page (.framer-OabrP …) et vérifiées
   sur le miroir (tools/geocmp.py) à 1440 / 1024 / 390.
   ⚠️ Sur l'accueil, Framer bascule en tablette à 800 px (et non 810) :
      desktop ≥ 1200 · tablette 800–1199 · mobile ≤ 799.
   Les presets de texte (.t-h4, .t-lead, .t-body, accordéon) gardent leurs
   propres seuils 810 / 1199, comme chez Framer.
   La structure flex reprend celle de Framer (colonnes en %, flex 1 0 0) :
   la mise en page reste fluide entre les points de rupture.
   ========================================================================== */

/* Textes riches Framer : un mot trop long passe à la ligne au lieu de déborder */
.home-hero__title, .home-intro__h2, .home-intro__text, .home-spaces__title, .home-spaces__text,
.home-card__title, .home-card__text, .home-services__title, .home-services__text,
.home-exp__title, .home-exp__text, .home-blog__title, .home-post__title, .home-post__excerpt {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ------------------------------------------------------------------- hero */
/* framer-q2myvr (100vh) : vidéo plein cadre + « Cover » (voile noir 20 %) qui porte le titre */
.home-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}
.home-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.home-hero__cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, .2);
}
/* framer-18s0u4m : colonne max 1650 px, titre centré verticalement */
.home-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 1650px;
  height: 100%;
}
/* framer-1p24nht : max 900 px, 30 px à gauche (et rien à droite, comme Framer) */
.home-hero__titlewrap { display: flex; width: 100%; max-width: 900px; padding-left: 30px; }
.home-hero__title.t-hero {
  flex: 1 1 0;
  min-width: 0;
  font-family: var(--f-display-trial);
  font-size: 120px;
  line-height: 1.1em;
  color: var(--c-white);
}

/* --------------------------------------------- bandeaux d'étiquette (Widget) */
/* framer-1kgze3d / 8nifim / s8cvsy / mvj895 : 90 px, étiquette collée en bas (5 px) */
.home-widget {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 90px;
  padding: 0 30px;
  overflow: hidden;
}
.home-widget--taupe { background-color: var(--c-taupe); }
.home-widget--cream { background-color: var(--c-cream); }
.home-widget__inner { display: flex; flex: 1 1 0; align-items: center; min-width: 0; max-width: 1590px; padding-bottom: 5px; }

/* --------------------------------------------------------- Le Chalet (bloc) */
/* framer-wohcjm : Intro, Statistiques, Espaces séparés de 10 px */
.home-chalet { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; scroll-margin-top: 75px; }

/* Intro (framer-1n974ox) */
.home-intro { display: flex; flex-direction: column; align-items: center; width: 100%; padding: 50px 30px 100px; }
.home-intro__row { display: flex; align-items: flex-start; justify-content: center; gap: 50px; width: 100%; max-width: 1590px; }
.home-intro__title { flex: none; width: 30%; }
.home-intro__h2 { font-family: var(--f-display); font-size: 64px; line-height: 1.1em; color: var(--c-brown); }
/* framer-t36yy9 : filet gauche 1 px noir 15 % dessiné par-dessus (data-border Framer) */
.home-intro__content {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  width: 65%;
  padding: 10px 0 10px 30px;
  box-shadow: inset 1px 0 0 var(--c-black-15);
  overflow: hidden;
}
.home-intro__text { width: 100%; font-size: 24px; line-height: 1.5em; color: var(--c-black); }

/* Statistiques (framer-zkqcya) — fond noir 5 % */
.home-stats { display: flex; flex-direction: column; align-items: center; width: 100%; padding: 100px 30px; background-color: var(--c-black-5); }
.home-stats__inner { display: flex; align-items: center; justify-content: center; gap: 50px; width: 100%; max-width: 1590px; overflow: hidden; }
.home-stats__spacer { flex: none; width: 30%; min-height: 141px; }
.home-stats__container { flex: none; width: 65%; }
.home-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(50px, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 30px 120px;
  width: 100%;
  padding: 10px 0 10px 30px;
  box-shadow: inset 1px 0 0 var(--c-black-20);
  overflow: hidden;
}
.home-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-width: 0; align-self: start; }
.home-stat__value {
  font-family: var(--f-num);
  font-size: 72px;
  line-height: 1;
  letter-spacing: -.8px;
  white-space: nowrap;
  color: var(--c-brown);
}
/* Framer : 2e ligne de texte vide sous le libellé (gap 5 px) */
.home-stat__label { width: 100%; padding-bottom: 5px; }

/* Espaces (framer-2lo4if) : titre + texte, puis 4 cartes (grille 2×2 de 1000 px) */
.home-spaces { display: flex; flex-direction: column; align-items: center; width: 100%; padding: 100px 30px; scroll-margin-top: 96px; }
.home-spaces__container { display: flex; flex-direction: column; align-items: flex-start; gap: 50px; width: 100%; max-width: 1590px; }
/* Framer déclare cette ligne en position: sticky (top 100 px) mais un parent en overflow: hidden la neutralise :
   elle défile normalement sur le site — reproduit tel quel. */
.home-spaces__head { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: center; gap: 24px; width: 100%; }
.home-spaces__title { flex: none; width: 37%; font-family: var(--f-display); font-size: 64px; line-height: 1.1em; color: var(--c-brown); text-wrap: balance; }
.home-spaces__text { flex: 1 1 0; min-width: 0; font-size: 24px; line-height: 1.5em; text-align: left; text-wrap: balance; }
.home-spaces__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(50px, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 50px;
  width: 100%;
  height: 1000px;
  overflow: hidden;
}
/* Carte (composant Framer « Chalet Card ») */
.home-card { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; min-width: 0; align-self: start; }
.home-card__visual { width: 100%; border-radius: var(--radius); overflow: hidden; }
.home-card__media { position: relative; width: 100%; height: 300px; overflow: hidden; }
.home-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-card__content { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; padding-right: 24px; overflow: hidden; }
.home-card__title, .home-card__text { width: 100%; }

/* --------------------------------------------------------------- Services */
/* framer-g4yj1x : fond taupe, titre + texte, puis diaporama et accordéons */
.home-services { display: flex; flex-direction: column; align-items: center; gap: 80px; width: 100%; padding: 50px 30px 100px; background-color: var(--c-taupe); overflow: hidden; }
.home-services__top { display: flex; align-items: flex-start; justify-content: center; gap: 50px; width: 100%; max-width: 1590px; }
.home-services__title { flex: none; width: 40%; font-family: var(--f-display); font-size: 64px; line-height: 1.1em; color: var(--c-cream); }
.home-services__intro { display: flex; flex: 1 1 0; flex-direction: column; align-items: flex-start; gap: 30px; min-width: 0; overflow: hidden; }
.home-services__text { width: 100%; font-size: 24px; line-height: 1.4em; color: var(--c-cream); }
.home-services__btn { width: 40%; }   /* Framer : bouton à 40 % de la colonne, texte centré */
.home-services__body { display: flex; align-items: center; justify-content: center; gap: 50px; width: 100%; max-width: 1590px; }
.home-services__media { flex: none; width: 40%; height: 500px; }
.home-services__acc { display: flex; flex: 1 1 0; flex-direction: column; align-items: flex-start; min-width: 0; padding: 10px 0; border-radius: 6px; overflow: hidden; }
.home-services__acc .acc { width: 100%; gap: 30px; }

/* ------------------------------------------------------------ Expériences */
.home-exp { display: flex; flex-direction: column; align-items: center; width: 100%; padding: 50px 30px 100px; background-color: var(--c-cream); overflow: hidden; }
.home-exp__row { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: flex-start; gap: 50px; width: 100%; max-width: 1590px; overflow: hidden; }
/* image : 40 %, hauteur = colonne de texte (align-self: stretch) */
.home-exp__media { position: relative; flex: none; align-self: stretch; width: 40%; border-radius: var(--radius); overflow: hidden; }
.home-exp__media > .slideshow { position: absolute; inset: 0; }
.home-exp__content { display: flex; flex: 1 1 0; flex-direction: column; align-items: flex-start; gap: 50px; min-width: 0; overflow: hidden; }
.home-exp__title { width: 100%; font-family: var(--f-display); font-size: 64px; line-height: 1.1em; color: var(--c-brown); }
.home-exp__text { width: 100%; font-size: 24px; line-height: 1.5em; color: var(--c-brown); }

/* ------------------------------------------------------------------- Blog */
.home-blog { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 1650px; margin: 0 auto; padding: 50px 30px 100px; overflow: hidden; }
.home-blog__container { display: flex; flex-direction: column; align-items: flex-start; gap: 50px; width: 100%; }
.home-blog__top { display: flex; align-items: flex-end; justify-content: flex-start; gap: 24px; width: 100%; max-width: 1590px; }
.home-blog__heading { display: flex; flex: 1 1 0; flex-direction: column; align-items: flex-start; min-width: 0; overflow: hidden; }
.home-blog__title { width: 100%; max-width: 72%; font-family: var(--f-display); font-size: 64px; line-height: 1.1em; color: var(--c-brown); }
.home-blog__items { display: flex; align-items: flex-start; justify-content: center; gap: 51px; width: 100%; max-width: 1590px; }
/* Carte (composant Framer « Blog Cards ») : 500 px de haut, l'image prend la place restante */
.home-post { display: flex; flex: 1 1 0; flex-direction: column; align-items: center; min-width: 0; height: 500px; }
.home-post__visual { display: flex; flex: 1 0 0; width: 100%; min-height: 0; border-radius: var(--radius); overflow: hidden; }
.home-post__media { position: relative; flex: 1 1 0; min-width: 0; height: 100%; border-radius: var(--radius); overflow: hidden; }
.home-post__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-post__content { display: flex; flex: none; flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; padding-top: 24px; }
.home-post--flip .home-post__visual { order: 1; }
.home-post--flip .home-post__content { order: 0; padding: 0 0 24px; }
.home-post__date { white-space: pre; }
.home-post__heading { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; }
.home-post__title, .home-post__excerpt { width: 100%; }
.home-post__title { text-wrap: balance; }   /* même nombre de lignes, sans mot isolé en fin de titre (« Mont- / Blanc ») */

/* ============================================================== TABLETTE */
@media (max-width: 1199px) {
  .home-hero__titlewrap { max-width: none; }
  .home-hero__title.t-hero { font-size: 87px; }

  .home-intro__row { flex-direction: column; justify-content: flex-start; gap: 30px; }
  .home-intro__title, .home-intro__content { width: 100%; }
  .home-intro__h2 { font-size: 56px; }
  .home-intro__text { font-size: 13px; }

  .home-stats__spacer { display: none; }
  .home-stats__container { flex: 1 1 0; width: auto; min-width: 0; }

  .home-spaces { padding: 50px 30px; }
  .home-spaces__container { gap: 30px; }
  .home-spaces__title { width: 54%; font-size: 56px; }
  .home-spaces__text { font-size: 13px; }

  .home-services__title { font-size: 33px; }
  .home-services__btn { width: max-content; }
  .home-services__body { flex-direction: column; justify-content: flex-start; gap: 30px; height: 800px; }
  .home-services__media { order: 1; flex: 500 0 0; width: 100%; height: 1px; }
  .home-services__acc { order: 0; flex: none; width: 100%; }

  .home-exp__title { font-size: 41px; }
  .home-exp__text { font-size: 16px; }

  .home-blog { padding: 0 32px; }
  .home-blog__container { gap: 64px; }
  .home-blog__title { font-size: 41px; }
  .home-blog__items { gap: 32px; }
}

/* ================================================================ MOBILE */
@media (max-width: 799px) {
  .home-hero__title.t-hero { font-size: 73px; }
  /* Framer coupait les mots trop larges au milieu (« Bienvenu / e » sous 368 px, « Welcom / e » sous 334 px,
     « thoughtfull / y » sous 359 px, « Comblou / x » sous 330 px) : la taille se réduit juste assez sur les petits
     écrans (aucun changement au-delà). */
  .home-hero__title.t-hero:lang(fr) { font-size: min(73px, calc((100vw - 30px) * .213)); }
  .home-hero__title.t-hero:lang(en) { font-size: min(73px, calc((100vw - 30px) * .2365)); }
  .home-spaces__title:lang(en) { font-size: min(56px, calc((100vw - 60px) * .1848)); }
  .home-blog__title { font-size: min(41px, calc((100vw - 60px) * .1489)); }

  .home-intro__h2 { font-family: var(--f-display-trial); font-size: 41px; }

  .home-stats__grid { grid-template-columns: minmax(50px, 1fr); gap: 40px; }

  .home-spaces__container { max-width: 600px; }
  .home-spaces__head { flex-direction: column; }
  .home-spaces__title, .home-spaces__text { flex: none; width: 100%; }
  .home-spaces__grid { grid-template-columns: minmax(50px, 1fr); height: auto; }

  .home-services__top { flex-direction: column; }
  .home-services__title { width: 100%; font-family: var(--f-display-trial); font-size: 41px; }
  .home-services__intro { flex: none; width: 100%; }
  .home-services__body { min-height: 900px; height: auto; }   /* Framer : 900 px fixes ; les 4 volets ouverts rognaient le texte et la photo */
  .home-services__media { flex: none; height: 500px; }

  .home-exp__row { flex-direction: column; }
  .home-exp__media { order: 1; align-self: auto; width: 100%; height: 400px; }
  .home-exp__content { order: 0; flex: none; width: 100%; }
  .home-exp__text { font-size: 13px; }

  .home-blog { padding: 50px 30px; }
  .home-blog__container { gap: 48px; max-width: 600px; }
  .home-blog__top { flex-direction: column; align-items: flex-start; }
  .home-blog__heading { flex: none; width: 100%; overflow: visible; }
  .home-post--flip { display: none; }   /* Framer n'affiche qu'un article sur mobile */
}

/* ============================================ SANS JAVASCRIPT (≤ 1199 px) */
/* Sans JS les 4 panneaux de l'accordéon restent ouverts : la hauteur fixe de Framer
   (800 / 900 px) rognerait le dernier texte et chasserait l'image hors de la section. */
@media (max-width: 1199px) {
  html:not(.js) .home-services__body { height: auto; }
  html:not(.js) .home-services__media { flex: none; height: 500px; }
}

/* ================================== HEADER ET FOOTER : SEUILS DE L'ACCUEIL */
/* Sur l'accueil, Framer bascule aussi le header et le footer à 800 px (base.css : 810).
   Règles propres à cette page (home.css n'est chargé que sur / et /en/), mesurées sur le miroir. */

/* Header mobile (< 800 px), thème blanc : barre de 349 px centrée (logo à 125,5 px à 600 px de large),
   pleine largeur une fois le menu ouvert ; le passage de l'une à l'autre est animé comme chez Framer
   (tween 0,4 s à l'ouverture, ressort à la fermeture). À 390 px : identique à base.css (20,5 px). */
@media (max-width: 799px) {
  [data-header="white"] .hdr__inner {
    max-width: 100%;
    margin-inline: auto;
    transition: transform .5s var(--ease-spring), max-width .5s var(--ease-spring), padding .5s var(--ease-spring);
  }
  [data-header="white"] .hdr:not(.is-open) .hdr__inner { max-width: min(349px, calc(100% - 11px)); padding: 0; }
  [data-header="white"] .hdr.is-open .hdr__inner { transition: transform .4s var(--ease-framer), max-width .4s var(--ease-framer), padding .4s var(--ease-framer); }
}

/* 800–809 px : header et footer en variante tablette (base.css leur applique déjà la variante mobile).
   Les presets de texte (logo 15 px, logo du footer 28 px) gardent leur seuil de 810 px, comme chez Framer. */
@media (min-width: 800px) and (max-width: 809px) {
  .hdr__bar::after { top: calc(100% - 1px); }
  .hdr:not(.is-open):not(.is-mega) .hdr__inner { height: calc(100% - .77px); }
  [data-header="white"] .hdr:not(.is-open) .hdr__inner { padding: 0 var(--gutter); }

  .ftr__logo { width: 281px; white-space: normal; }
  .ftr__about { width: 282px; }
  .ftr__links { flex-direction: row; gap: 20px; }
  .ftr__col { flex: 1 1 0; width: auto; }
}
