/* ==========================================================================
   Chalet Victory — page Expériences (/experiences, /en/experiences)
   Valeurs relevées dans le CSS Framer (framer-html/experiences.html) et mesurées
   sur le miroir hydraté (1440 / 1024 / 390).
   Desktop ≥ 1200 · tablette 810–1199 · mobile ≤ 809
   ========================================================================== */

/* ------------------------------------------------------------------ hero */
/* Framer « Hero » : 100vh, slideshow plein cadre (2 images, 3 s, sans rayon),
   voile noir 40 % + titre centré (preset h1 64 / 51 / 41) */
.xp-hero { position: relative; height: 100vh; overflow: hidden; background: var(--c-black); }
.xp-hero__slides { position: absolute; inset: 0; }
.xp-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 0 50px;
  background-color: rgba(0, 0, 0, .4);
  pointer-events: none;            /* laisse le glisser (data-drag) atteindre le carrousel */
}
.xp-hero__title { width: 100%; color: var(--c-white); text-align: center; overflow-wrap: break-word; }

/* ------------------------------------------------- étiquettes de section */
/* Framer « Widget » : bande de 90 px, badge collé en bas (5 px), conteneur max 1590 centré */
.xp-widget { display: flex; align-items: flex-end; justify-content: center; height: 90px; padding: 0 var(--gutter); overflow: hidden; }
.xp-widget__in { display: flex; align-items: center; width: 100%; max-width: 1590px; padding-bottom: 5px; }

/* ---------------------------------------------------------------- phrase */
.xp-phrase { display: flex; justify-content: center; padding: 50px 30px 100px; }
.xp-phrase__in { width: 100%; max-width: 1590px; }
.xp-phrase__title {
  max-width: 70%;
  font-family: var(--f-display); font-size: 70px; line-height: 1.1em;
  overflow-wrap: break-word;
}

/* -------------------------------------------------------------- à propos */
.xp-about { display: flex; flex-direction: column; align-items: center; gap: 100px; padding: 50px 30px 100px; }
.xp-about__row { display: flex; align-items: flex-start; gap: 50px; width: 100%; max-width: 1590px; height: 400px; }
.xp-about__text {
  display: flex; flex: 1 1 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 50px; min-width: 0;
  overflow: clip;   /* Framer : colonne « Texte » en overflow hidden (bouton rogné si la colonne est trop étroite) */
}
.xp-about__text:focus-within { overflow-clip-margin: 5px; }   /* laisse voir l'anneau de focus du bouton (outline 2px + 3px) */
.xp-about__text .btn { max-width: none; }   /* le bouton garde sa largeur intrinsèque, comme Framer */
.xp-about__p { font-size: 17px; line-height: 2em; }
/* image : boîte au ratio de la photo (≈ 600 × 400) centrée dans la colonne et rognée si la colonne est plus étroite */
.xp-about__media { display: flex; flex: 1 1 0; justify-content: center; min-width: 0; height: 100%; border-radius: 5px; overflow: hidden; }
.xp-about__media img { flex: none; width: min(100%, 599.7px); height: 100%; border-radius: 5px; object-fit: cover; }
.xp-about__row--megeve .xp-about__media img { width: min(100%, 600px); }
.xp-lbl-short { display: none; }

/* ------------------------------------------------------------- activités */
.xp-acts { display: flex; flex-direction: column; align-items: flex-end; gap: 50px; padding: 50px 30px; }
.xp-acts__head { display: flex; align-items: flex-start; justify-content: center; gap: 24px; width: 100%; max-width: 1590px; }
.xp-acts__title { flex: 1 1 0; min-width: 0; max-width: 900px; font-family: var(--f-display); font-size: 55px; line-height: 1.1em; }
.xp-acts__lead { flex: 1 1 0; min-width: 0; max-width: 38%; text-wrap: balance; }
.xp-acts__inner { display: flex; justify-content: center; width: 100%; }

/* composant « Season Activities » : onglets (30 %) + bannière crème */
.xp-seasons { display: flex; align-items: flex-start; width: 100%; max-width: 1590px; }
.xp-seasons__tabs { display: flex; flex: none; flex-direction: column; width: 30%; }
.xp-seasons__tab {
  display: flex; align-items: center; width: 100%;
  padding: 30px 0 30px 100px;
  box-shadow: inset 0 -1px 0 var(--c-black-15);     /* filet bas dessiné dans la boîte (data-border Framer) */
  font-family: var(--f-body); font-size: 25px; line-height: 50px; letter-spacing: .08em;
  white-space: nowrap; color: var(--c-black-75);
  transition: --cv-on var(--dur-ui) var(--ease-ui), border-radius var(--dur-ui) var(--ease-ui);
}
.xp-seasons__tab.is-active,
.xp-seasons__tab:first-child { border-radius: 5px 0 0 5px; }   /* Framer (desktop) : le 1er onglet garde ses coins arrondis, même inactif */
.xp-seasons__banner {
  --cv-on: 1;
  display: flex; flex: 1 1 0; flex-direction: column; align-items: center; gap: 10px;
  min-width: 0; padding: 50px;
  border-radius: 5px;
  /* fond crème ; interpolé depuis rgba(0,0,0,0) comme Framer (voir .filter__btn--fill) */
  background-color: rgb(calc(255 * var(--cv-on)) calc(250 * var(--cv-on)) calc(236 * var(--cv-on)) / var(--cv-on));
  transition: --cv-on var(--dur-ui) var(--ease-ui), border-radius var(--dur-ui) var(--ease-ui);
}
.xp-seasons:not([data-filter-current]) .xp-seasons__banner,
.xp-seasons[data-filter-current="hiver"] .xp-seasons__banner { border-top-left-radius: 0; }
/* desktop : état « mix » (variante Framer « Desktop » : souris sortie des onglets / du bandeau, data-filter-leave) = pas de fond */
.xp-seasons[data-filter-current="mix"] .xp-seasons__banner { --cv-on: 0; }

/* carte d'activité : desktop = image 300 px + panneau révélé au survol (collé en bas) */
/* seule l'image est arrondie (Framer) : le panneau garde ses coins bas carrés ; le rayon de la carte ne sert qu'à l'anneau de focus */
.xp-act { position: relative; width: 100%; height: 300px; border-radius: 5px; outline-offset: 2px; cursor: pointer; }   /* curseur main : comme la variante Framer « Default » (survol) */
.xp-act__media { position: absolute; inset: 0; border-radius: 5px; overflow: hidden; }
.xp-act__media img { width: 100%; height: 100%; object-fit: cover; }
.xp-act__panel {
  position: absolute; right: 0; bottom: 0; left: 0;
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px 50px;
  border-radius: 5px 5px 0 0;
  background-color: rgba(255, 255, 255, .75);
}
.xp-act__title {
  box-shadow: inset 0 -1px 0 #222;
  font-family: var(--f-display); font-size: 25px; line-height: 50px; letter-spacing: .08em;
  color: var(--c-black-75); overflow-wrap: break-word;
}
.xp-act__desc { display: flex; align-items: center; justify-content: space-between; }
.xp-act__body { display: flex; flex: none; flex-direction: column; align-items: flex-start; gap: 10px; width: 80%; }
.xp-act__tag {
  display: flex; padding: 0 5px;
  box-shadow: inset 0 0 0 1px var(--c-black-15);
  font-size: 11px; line-height: 22px; letter-spacing: .08em; white-space: nowrap; color: var(--c-black-75);
}
.xp-act__text { max-width: 90%; font-size: 15px; line-height: 30px; letter-spacing: .08em; color: var(--c-black-75); overflow-wrap: break-word; }

/* ------------------------------------------------------------------ blog */
.xp-bloghead { display: flex; justify-content: center; padding: 50px 48px; }
.xp-bloghead__in { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; max-width: 1280px; }
.xp-bloghead__title { width: 100%; max-width: 900px; font-family: var(--f-display-trial); font-size: 64px; line-height: 1.1em; text-align: center; }
.xp-bloghead__lead { width: 100%; max-width: 620px; text-align: center; text-wrap: balance; }

.xp-blog { display: flex; justify-content: center; padding: 0 48px 100px; }
.xp-blog__grid {
  display: grid; grid-template-columns: repeat(2, minmax(50px, 1fr)); grid-auto-rows: minmax(0, 1fr);
  gap: 48px; width: 100%; max-width: 1280px; padding-bottom: 96px;
}
.xp-blog__item { align-self: start; min-width: 0; }
/* carte « Blog Cards » : 500 px de haut, l'image prend la hauteur laissée par le texte */
.xp-card { display: flex; flex-direction: column; height: 500px; }
.xp-card__visual { flex: 1 1 0; min-height: 0; border-radius: 5px; overflow: hidden; }
.xp-card__media { height: 100%; border-radius: 5px; overflow: hidden; }
.xp-card__media img { width: 100%; height: 100%; object-fit: cover; }
.xp-card__content { display: flex; flex: none; flex-direction: column; gap: 16px; padding-top: 24px; }
.xp-card__text { display: flex; flex-direction: column; gap: 16px; }
.xp-card__date, .xp-card__title, .xp-card__excerpt { margin: 0; }
.xp-card__title { text-wrap: balance; }   /* même nombre de lignes, sans mot isolé en fin de titre (« Mont- / Blanc ») */

/* ============================================================== tablette */
@media (max-width: 1199px) {
  .xp-phrase__title { max-width: 100%; }
  .xp-about__row--combloux .xp-about__p { font-size: 16px; }   /* Framer : taille par défaut en tablette (Megève garde 17 px) */

  .xp-acts__title { font-size: 51px; }
  .xp-seasons { flex-direction: column; }
  .xp-seasons__tabs { flex-direction: row; width: 100%; }
  .xp-seasons__tab { flex: 1 1 0; justify-content: center; min-width: 0; padding: 30px 0; font-size: 15px; line-height: 30px; }
  .xp-seasons__tab:first-child { border-radius: 0; }
  .xp-seasons__tab.is-active { border-radius: 5px 5px 0 0; }
  .xp-seasons__banner { flex: none; width: 100%; padding: 50px 10px; }
  /* état initial « mix » (aucun onglet actif) : pas de fond ni de rayon */
  .xp-seasons:not([data-filter-current]) .xp-seasons__banner,
  .xp-seasons[data-filter-current="mix"] .xp-seasons__banner { --cv-on: 0; border-radius: 0; }
  .xp-seasons[data-filter-current="automne"] .xp-seasons__banner { border-top-right-radius: 0; }

  /* cartes : image puis contenu dessous, toujours visible */
  .xp-act { display: flex; flex-direction: column; gap: 10px; height: auto; border-radius: 0; cursor: auto; }
  .xp-act__media { position: relative; inset: auto; flex: none; height: 300px; }
  .xp-act__panel { position: static; padding: 20px 10px; border-radius: 5px; }
  .xp-act__desc { flex-direction: column; align-items: flex-start; gap: 10px; }
  .xp-act__body { width: 100%; }
  .xp-act__text { max-width: none; }

  .xp-bloghead { padding: 50px 32px; }
  .xp-bloghead__title { font-size: 51px; }
  .xp-blog { padding: 0 32px 100px; }
  .xp-blog__grid { gap: 24px; }
}

/* ================================================================ mobile */
@media (max-width: 809px) {
  .xp-phrase__title { font-size: 56px; }
  .xp-phrase__title { font-size: min(56px, calc((100vw - 60px) * .1955)); }   /* « Combloux, » entier sous 345 px (Framer le coupait) */

  .xp-about__row { flex-direction: column; }
  .xp-about__p { font-size: 13px; }
  .xp-about__row--combloux .xp-about__p { font-size: 13px; }
  .xp-about__row--combloux { height: auto; }
  .xp-about__row--combloux .xp-about__text { flex: none; width: 100%; min-height: 312px; }
  .xp-about__row--combloux .xp-about__media { flex: none; width: 100%; height: auto; }
  .xp-about__row--combloux .xp-about__media img { width: 100%; height: auto; aspect-ratio: 1000 / 667; }
  .xp-about__row--megeve { height: 800px; }
  .xp-about__row--megeve .xp-about__text { flex: none; order: 0; width: 100%; }
  .xp-about__row--megeve .xp-about__media { flex: 1 1 0; order: 1; width: 100%; min-height: 0; }
  .xp-about__row--megeve .xp-about__media img { width: 100%; }
  .xp-lbl-long { display: none; }
  .xp-lbl-short { display: inline; }

  .xp-acts { padding: 50px 20px; }
  .xp-acts__head { flex-direction: column; }
  .xp-acts__title { flex: none; max-width: 100%; font-size: 41px; }
  .xp-acts__lead { flex: none; width: 100%; max-width: 100%; }

  .xp-bloghead { padding: 100px 16px 50px; }
  .xp-bloghead__in { max-width: 600px; }
  .xp-bloghead__title { font-size: 41px; }
  .xp-blog { padding: 0 16px 100px; }
  .xp-blog__grid { display: flex; flex-direction: column; align-items: center; gap: 48px; max-width: 600px; }
  .xp-blog__item { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .xp-seasons__tab, .xp-seasons__banner { transition: none; }
}
