/* ==========================================================================
   Chalet Victory — base.css
   Design system commun : polices, tokens, reset, typographie, boutons,
   étiquettes, conteneurs, apparitions, header, footer, section contact.
   Valeurs relevées sur le site Framer (voir docs/DESIGN-SYSTEM.md).
   Points de rupture : desktop ≥ 1200 · tablette 810–1199 · mobile ≤ 809
   ========================================================================== */

/* ---------------------------------------------------------------- polices */
/* Plage de graisses 100–900 : le navigateur n'invente jamais de faux gras
   (Framer associe parfois « Museo Sans 900 » à font-weight 400, etc.). */
@font-face { font-family: "Ogg Medium"; src: url("/assets/fonts/ogg-medium.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* Les versions d'essai « Ogg TRIAL Medium » / « Ogg Text TRIAL Light » utilisées sur Framer (sans licence, sans accents)
   sont remplacées par Ogg Medium (même dessin de lettres, accents complets). */
@font-face { font-family: "Museo Sans 300"; src: url("/assets/fonts/museo-sans-300.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Museo Sans 300"; src: url("/assets/fonts/museo-sans-300-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Museo Sans 300 Italic"; src: url("/assets/fonts/museo-sans-300-italic.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Museo Sans 700"; src: url("/assets/fonts/museo-sans-700.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Museo Sans 900"; src: url("/assets/fonts/museo-sans-900.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Museo Sans 900"; src: url("/assets/fonts/museo-sans-900-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Museo Sans 900 Italic"; src: url("/assets/fonts/museo-sans-900-italic.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* Polices de repli calibrées (mêmes métriques que Framer) : limite les sauts de mise en page */
@font-face { font-family: "Ogg Fallback"; src: local("Arial"); ascent-override: 108.03%; descent-override: 43.09%; line-gap-override: 0%; size-adjust: 101.18%; }
@font-face { font-family: "Ogg Text Fallback"; src: local("Arial"); ascent-override: 98.88%; descent-override: 33.94%; line-gap-override: 0%; size-adjust: 101.64%; }
@font-face { font-family: "Museo 300 Fallback"; src: local("Arial"); ascent-override: 91.22%; descent-override: 25.23%; line-gap-override: 0%; size-adjust: 103.04%; }
@font-face { font-family: "Museo 700 Fallback"; src: local("Arial"); ascent-override: 88.6%; descent-override: 24.51%; line-gap-override: 0%; size-adjust: 106.1%; }
@font-face { font-family: "Museo 900 Fallback"; src: local("Arial"); ascent-override: 85.18%; descent-override: 23.56%; line-gap-override: 0%; size-adjust: 110.36%; }

/* ----------------------------------------------------------------- tokens */
:root {
  /* couleurs (tokens Framer) */
  --c-black: #000;            /* texte par défaut des titres et paragraphes */
  --c-ink: #252525;           /* logo du header, liens e-mail/téléphone */
  --c-brown: #432f19;         /* boutons sombres, titres « marque », survols */
  --c-taupe: #807367;         /* « Soft Brown » : footer, badges */
  --c-cream: #fffaec;         /* « Beige » : fonds de section, boutons clairs */
  --c-sand: #ffecb9;          /* accent (texte du bouton Envoyer au survol) */
  --c-grey: #ebebeb;          /* fonds gris clair */
  --c-lavender: #d0d1db;
  --c-white: #fff;
  --c-black-75: rgba(0, 0, 0, .75);
  --c-black-50: rgba(0, 0, 0, .5);
  --c-black-30: rgba(0, 0, 0, .3);
  --c-black-20: rgba(0, 0, 0, .2);
  --c-black-15: rgba(0, 0, 0, .15);
  --c-black-5: rgba(0, 0, 0, .05);
  --c-white-75: rgba(255, 255, 255, .75);
  --c-white-20: rgba(255, 255, 255, .2);
  --c-brown-70: rgba(67, 47, 25, .7);
  --c-brown-5: rgba(66, 46, 25, .05);

  /* polices */
  --f-display: "Ogg Medium", "Ogg Fallback", Georgia, serif;             /* titres (presets Framer) */
  --f-display-trial: "Ogg Medium", "Ogg Fallback", Georgia, serif; /* très grands titres de héros (ex-« Ogg TRIAL Medium » sur Framer) */
  --f-num: "Ogg Medium", "Ogg Fallback", Georgia, serif;  /* chiffres des compteurs (ex-« Ogg Text TRIAL Light ») */
  --f-body: "Museo Sans 300", "Museo 300 Fallback", "Helvetica Neue", Arial, sans-serif;
  --f-body-italic: "Museo Sans 300 Italic", "Museo 300 Fallback", "Helvetica Neue", Arial, sans-serif;
  --f-body-bold: "Museo Sans 700", "Museo 700 Fallback", "Helvetica Neue", Arial, sans-serif;
  --f-body-black: "Museo Sans 900", "Museo 900 Fallback", "Helvetica Neue", Arial, sans-serif;
  --f-body-black-italic: "Museo Sans 900 Italic", "Museo 900 Fallback", "Helvetica Neue", Arial, sans-serif;

  /* mise en page */
  --gutter: 30px;             /* marge latérale standard (Framer : 30 px à toutes les tailles) */
  --header-h: 77px;           /* hauteur de la barre de navigation (+ 1 px de filet) */
  --radius: 5px;
  --radius-lg: 10px;
  --ease-out: cubic-bezier(.19, 1, .22, 1);
  --ease-framer: cubic-bezier(.44, 0, .56, 1);   /* tween Framer par défaut (0,4 s) */
  --ease-spring: cubic-bezier(.3, 1.15, .5, 1);  /* repli du ressort Framer (bounce .2, 0,4 s) */
  --ease-fade: cubic-bezier(.19, 1, .22, 1);     /* repli du ressort du fondu du header */
}
/* Ressort Framer « bounce .2 / 0,4 s » (amortissement 0,8) échantillonné : à utiliser sur 0,5 s */
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --ease-spring: linear(0, .0826, .2572, .4502, .6235, .762, .8633, .932, .9749, .9991, 1.0109, 1.0149, 1.0146, 1.0124, 1.0094, 1.0067, 1.0043, 1.0026, 1.0014, 1.0006, 1.0001, 1, 1);
    /* fondu du header : ressort Framer stiffness 250 / damping 40 (sur-amorti), sur 0,9 s */
    --ease-fade: linear(0, .1697, .4062, .591, .7212, .8106, .8714, .9127, .9408, .9598, .9727, .9815, .9874, .9915, .9942, .9961, .9973, .9982, 1);
  }
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--c-white);
  color: var(--c-black);
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  font-feature-settings: "blwf" on, "cv03" on, "cv04" on, "cv09" on, "cv11" on; /* réglages OpenType des presets Framer */
  -webkit-font-smoothing: antialiased;   /* comme Framer (body antialiased) */
  -moz-osx-font-smoothing: grayscale;
}
main { display: block; flex: 1 0 auto; width: 100%; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 400; }
img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { margin: 0; padding: 0; border: 0; background: none; cursor: pointer; text-align: inherit; }
strong, b { font-family: var(--f-body-black); font-weight: inherit; }
em, i { font-family: var(--f-body-italic); font-style: normal; }
strong em, em strong, b i, i b { font-family: var(--f-body-black-italic); }
hr { margin: 0; border: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
main:focus { outline: none; }
::selection { background: var(--c-sand); color: var(--c-black); }

/* -------------------------------------------------------------- utilitaires */
.u-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.u-hidden { display: none !important; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--c-black); color: var(--c-white); border-radius: var(--radius); font-size: 14px; }
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------ typographie */
/* Titres Ogg (presets Framer) — interlignage 1.1, pas d'approche */
.t-hero, .t-h1, .t-h2, .t-h3, .t-h4, .t-h5, .t-h6 { font-family: var(--f-display); font-weight: 400; line-height: 1.1em; letter-spacing: 0; }
.t-hero { font-size: 88px; }   /* preset 1t4bmys  88 / 70 / 56 */
.t-h1   { font-size: 64px; }   /* preset 15nxqzv  64 / 51 / 41 */
.t-h2   { font-size: 52px; }   /* preset 1b2sgcw  52 / 42 / 33 */
.t-h3   { font-size: 44px; }   /* preset 1rj8gl9  44 / 35 / 28 (logo) */
.t-h4   { font-size: 36px; }   /* preset 1vb7av3  36 / 29 / 23 */
.t-h5   { font-size: 28px; }   /* preset 18tqmlu  28 / 22 / 18 */
.t-h6   { font-size: 24px; }   /* preset f9h0kh   24 / 19 / 15 */
.t-trial { font-family: var(--f-display-trial); }   /* variante « Ogg TRIAL Medium » */
.t-num { font-family: var(--f-num); font-weight: 400; line-height: 1.1em; }

/* Textes Museo Sans 300 */
.t-lead    { font-family: var(--f-body); font-size: 20px; line-height: 1.1em; }  /* preset dyxpl9  20 / 16 / 13 */
.t-body-lg { font-family: var(--f-body); font-size: 18px; line-height: 1.4em; }  /* preset 1adayns 18 */
.t-body    { font-family: var(--f-body); font-size: 16px; line-height: 1.4em; }  /* preset ey752i  16 */
.t-ui      { font-family: var(--f-body); font-size: 16px; line-height: 1.2em; }  /* preset 1cs3egx 16 (menus, boutons) */
.t-small   { font-family: var(--f-body); font-size: 14px; line-height: 1.2em; }  /* preset pph70e  14 (footer) */
.t-xs      { font-family: var(--f-body); font-size: 12px; line-height: 1.1em; }  /* preset e14kqx  12 */
.t-micro   { font-family: var(--f-body); font-size: 9px;  line-height: 1.5em; }  /* preset q705jw  9 */
.t-label   { font-family: var(--f-body-bold); font-size: 18px; line-height: 1.4em; } /* « Email », « Téléphone » */
.t-caps-label { font-family: var(--f-body-black); font-size: 14px; line-height: 1.2em; } /* « Menu », « Contactez-nous » (footer) */
/* Espacement entre paragraphes successifs (paragraph-spacing Framer) */
.t-body + .t-body, .t-body-lg + .t-body-lg, .t-ui + .t-ui, .t-small + .t-small, .t-lead + .t-lead { margin-top: 20px; }
.t-h2 + .t-h2, .t-h3 + .t-h3, .t-h4 + .t-h4, .t-h5 + .t-h5, .t-h6 + .t-h6 { margin-top: 40px; }   /* presets titres Framer : 40 px (t-hero / t-h1 : 0) */
/* Couleurs de texte */
.c-brown { color: var(--c-brown); }
.c-ink { color: var(--c-ink); }
.c-white { color: var(--c-white); }
.c-cream { color: var(--c-cream); }
.c-muted { color: var(--c-black-75); }
/* Lien texte (preset 70alzr) */
.link { color: var(--c-ink); }   /* Framer : changement de couleur instantané au survol */
.link:hover { color: var(--c-brown); }

@media (max-width: 1199px) {
  .t-hero { font-size: 70px; }
  .t-h1 { font-size: 51px; }
  .t-h2 { font-size: 42px; }
  .t-h3 { font-size: 35px; }
  .t-h4 { font-size: 29px; }
  .t-h5 { font-size: 22px; }
  .t-h6 { font-size: 19px; }
  .t-lead { font-size: 16px; }
}
@media (max-width: 809px) {
  .t-hero { font-size: 56px; }
  .t-h1 { font-size: 41px; }
  .t-h2 { font-size: 33px; }
  .t-h3 { font-size: 28px; }
  .t-h4 { font-size: 23px; }
  .t-h5 { font-size: 18px; }
  .t-h6 { font-size: 15px; }
  .t-lead { font-size: 13px; }
}

/* ------------------------------------------------------ fonds & conteneurs */
.bg-white { background-color: var(--c-white); }
.bg-cream { background-color: var(--c-cream); }
.bg-taupe { background-color: var(--c-taupe); }
.bg-grey  { background-color: var(--c-grey); }
.bg-brown { background-color: var(--c-brown); }
.bg-sand  { background-color: var(--c-sand); }
.wrap { width: 100%; padding-inline: var(--gutter); }
.wrap--max { max-width: 1590px; margin-inline: auto; }
/* décale le contenu de la hauteur du header (header en surimpression, position absolute) */
.pt-header { padding-top: calc(var(--header-h) + 1px); }

/* ---------------------------------------------------------------- boutons */
/* <a class="btn btn--brown" href="…"><span>Libellé</span><span class="btn__icon">{{> icon-arrow}}</span></a> */
.btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: max-content;
  max-width: 100%;
  padding: 16px;
  border-radius: var(--radius);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.2em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .5s var(--ease-spring), color .5s var(--ease-spring);   /* ressort Framer (bounce .2, 0,4 s) */
}
.btn__icon { display: flex; flex: none; align-items: center; width: 22px; overflow: hidden; }
.btn__icon svg { width: 17px; height: 17px; fill: currentColor; }
.btn--block { display: flex; width: 100%; justify-content: space-between; }
.btn--black { background-color: var(--c-black); color: var(--c-white); }
.btn--brown { background-color: var(--c-brown); color: var(--c-white); }
.btn--white { background-color: var(--c-white); color: var(--c-black); }
.btn--beige { background-color: var(--c-cream); color: var(--c-black); }
.btn--black:hover, .btn--brown:hover { background-color: var(--c-cream); color: var(--c-black); }
.btn--white:hover, .btn--beige:hover { background-color: var(--c-brown); color: var(--c-white); }
/* focus clavier : anneau natif du navigateur, comme Framer (outline auto, #005fcc sous Chrome). La règle globale
   « currentColor » tracerait un anneau blanc, invisible, autour des boutons sombres posés sur fond blanc ou crème. */
.btn:focus-visible { outline: revert; outline-offset: 0; }

/* ----------------------------------------------------- étiquettes (badges) */
/* <span class="tag tag--taupe">CONTACT</span> */
.tag {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: max-content;
  padding: 5px 10px;
  border-radius: var(--radius);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.2em;
  white-space: nowrap;
  cursor: pointer; /* Framer : badge = bouton secondaire survolable */
  transition: background-color .5s var(--ease-spring), color .5s var(--ease-spring);
}
.tag--taupe { background-color: var(--c-taupe); color: var(--c-cream); }
.tag--beige { background-color: var(--c-cream); color: var(--c-black); }
.tag--white { background-color: var(--c-white); color: var(--c-black); }
.tag--taupe:hover { background-color: var(--c-brown); }
.tag--beige:hover, .tag--white:hover { background-color: var(--c-brown); color: var(--c-white); }

/* -------------------------------------------------- apparitions au scroll */
/* API [data-reveal] fournie par components.css / components.js (docs/COMPONENTS.md).
   La classe .js est posée dès le <head> (layout.html) pour éviter un flash de contenu. */

/* ================================================================= HEADER */
/* Barre en surimpression (position absolute, ne suit pas le scroll) ;
   disparaît en fondu dès que la page défile, réapparaît en haut de page.
   Thèmes : body[data-header="dark"] (fond blanc, texte noir — défaut)
            body[data-header="white"] (transparent, texte blanc — accueil) */
.hdr {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--c-black);
  background-color: var(--c-white);
  transition: opacity .9s var(--ease-fade), visibility 0s, background-color .25s ease;
}
.hdr.is-faded { opacity: 0; visibility: hidden; transition: opacity .9s var(--ease-fade), visibility 0s .9s, background-color .25s ease; }
.hdr__bar { position: relative; height: var(--header-h); }
.hdr__bar::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 1px; background: var(--c-white); pointer-events: none; }
.hdr__inner { display: flex; align-items: center; justify-content: center; gap: 110px; height: 100%; }
/* Framer (desktop, tablette) : le contenu de la barre est centré au-dessus du filet de 0,77 px (dans les 76,23 px du haut) */
@media (min-width: 810px) { .hdr:not(.is-open):not(.is-mega) .hdr__inner { height: calc(100% - .77px); } }   /* menus ouverts : centré sur 77 px */
.hdr__brand, .hdr__nav, .hdr__actions { display: flex; flex: 1 1 0; min-width: 0; align-items: center; justify-content: center; }
.hdr__logo {
  font-family: var(--f-display);
  font-size: 44px;
  line-height: 1.1em;
  white-space: nowrap;
  color: var(--c-ink);
}
.hdr__logo:hover { color: var(--c-brown); }
.hdr__menu { display: flex; align-items: center; gap: 15px; }
/* Framer : bloc « Chalet » de 63 px (le lien de 69 px déborde, centré) + bloc de 237 px pour les 3 autres liens */
.hdr__item--chalet { display: flex; flex: none; justify-content: center; width: 63px; min-width: 0; }
.hdr__item--chalet + li { margin-left: 4px; }
.hdr__menu > li:last-child { margin-right: 4px; }
.hdr__phone-txt { white-space: pre; }
.hdr__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.2em;
  white-space: nowrap;
  padding: 0 0 1px;
  color: inherit;
}
.hdr__link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: currentColor; transition: width .5s var(--ease-spring); }
.hdr__link:hover::after, .hdr__link[aria-expanded="true"]::after { width: 100%; }
.hdr__caret { position: relative; display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; }
.hdr__caret svg { width: 16px; height: 16px; fill: currentColor; transition: opacity .2s ease; }
.hdr__caret::before { content: ""; position: absolute; left: 3px; top: 7px; width: 10px; height: 1px; border-radius: 10px; background: currentColor; opacity: 0; transition: opacity .2s ease; }
.hdr__trigger[aria-expanded="true"] .hdr__caret svg { opacity: 0; }
.hdr__trigger[aria-expanded="true"] .hdr__caret::before { opacity: 1; }
.hdr__actions { gap: 20px; }
.hdr__phone { height: 45px; padding-top: 0; padding-bottom: 0; }
.hdr__burger { display: none; position: relative; width: 26px; height: 26px; flex: none; color: inherit; }
.hdr__burger span { position: absolute; left: 0; width: 26px; height: 1px; background: currentColor; transition: transform .5s var(--ease-spring), top .5s var(--ease-spring); }
.hdr__burger span:nth-child(1) { top: 7px; }
.hdr__burger span:nth-child(2) { top: 18px; }
.hdr.is-open .hdr__burger span:nth-child(1) { top: 13px; transform: rotate(45deg); }   /* Framer : 13 px et 12,5 px */
.hdr.is-open .hdr__burger span:nth-child(2) { top: 12.5px; transform: rotate(-45deg); }

/* ---------- sélecteur de langue (details/summary : fonctionne sans JS) */
.lang { position: relative; flex: none; }
.lang__btn {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 45px;
  padding: 10px;
  border-radius: var(--radius);
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5em;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.lang__btn::-webkit-details-marker { display: none; }
.lang__btn::marker { content: ""; }
.lang__btn svg { width: 12px; height: 12px; flex: none; transition: transform .2s ease; }
.lang[open] .lang__btn svg { transform: rotate(180deg); }
.lang__menu {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  z-index: 5;
  min-width: 100%;
  padding: 5px;
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-black);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .14), 0 0 0 1px rgba(0, 0, 0, .06);
}
.lang__opt {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 3px;
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.5em;
  white-space: nowrap;
}
.lang__opt:hover { background: var(--c-cream); }
.lang__opt[aria-current="true"]::after { content: ""; width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: currentColor; }

/* ---------- méga-menu « Chalet » (desktop) */
/* Framer : le panneau apparaît d'un coup (300 ms après le survol de « Chalet », tout de suite au clic) ;
   à la fermeture le contenu disparaît aussitôt et le fond du header se replie (ressort bounce .2, 0,4 s). */
.hdr__mega {
  height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: height .5s var(--ease-spring), visibility 0s .5s;
}
.hdr__mega-clip { height: 100%; overflow: hidden; }
.hdr.is-mega .hdr__mega { height: 451px; visibility: visible; transition: none; }
.hdr:not(.is-mega) .mega { visibility: hidden; }
.mega { display: flex; align-items: stretch; gap: 10px; height: 450px; margin-top: 1px; }
.mega__intro { display: flex; flex: none; align-items: center; justify-content: center; width: 28%; padding: 30px 30px 100px 50px; background: var(--c-black-15); }
.mega__intro-in { display: flex; flex-direction: column; align-items: flex-start; gap: 30px; }
.mega__title { font-family: var(--f-display); font-size: 64px; line-height: 1.1em; }
.mega__body { display: flex; flex: 1 1 0; align-items: center; gap: 60px; min-width: 0; padding: 10px 60px 10px 20px; }
.mega__list { display: flex; flex-direction: column; gap: 10px; width: 414px; flex: none; }
.mega__link { display: block; width: 400px; }
/* dépliage au survol : instantané, le déplacement des lignes est animé en JS (FLIP, ressort Framer) */
.mega__grid {
  display: grid;
  grid-template-columns: 140px 221px;
  column-gap: 39px;
  padding: 13.3px 0;
}
.mega__left { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.mega__name { font-family: var(--f-display); font-size: 24px; line-height: 1.1em; white-space: nowrap; }
.mega__fold { display: grid; grid-template-rows: 0fr; }
.mega__fold > span { min-height: 0; overflow: hidden; }
.mega__sub:empty { display: none; }   /* Framer n'affiche pas de sous-titre vide (Intérieurs) */
.mega__sub { display: block; min-height: 13.5px; font-family: var(--f-body); font-size: 9px; line-height: 1.5em; color: var(--c-black-75); }
.mega__more { display: flex; align-items: center; height: 40px; margin-top: 15px; font-family: var(--f-body); font-size: 12px; line-height: 1.1em; }
/* Framer : le soulignement (1 px) fait partie du flux sous le texte → texte centré 0,5 px plus haut */
.mega__more > span { position: relative; padding-bottom: 1px; }
.mega__more > span::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: currentColor; transition: width .5s var(--ease-spring); }
.mega__more:hover > span::after { width: 100%; }
.mega__link:focus-visible .mega__more > span::after { width: 100%; }   /* règle séparée : Safari < 15.4 ignore toute liste contenant :focus-visible */
/* EN : le lien affiche « Discover more » (header sombre) ou « Learn more » (header blanc), comme Framer */
.mega__more-white { display: none; }
[data-header="white"] .mega__more-dark { display: none; }
[data-header="white"] .mega__more-white { display: block; }
.mega__desc { display: block; font-family: var(--f-body); font-size: 12px; line-height: 1.5em; text-align: justify; }
.mega__rule { display: block; height: 1px; background: var(--c-black-20); }
.mega__list.is-flipping .mega__item * { pointer-events: none; }
.mega__item.is-active .mega__grid { padding: 0 0 20px; }
.mega__item.is-active .mega__fold { grid-template-rows: 1fr; }
.mega__media { position: relative; flex: none; width: 300px; height: 225px; }
.mega__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }   /* Framer : changement d'image instantané */
/* images du méga-menu chargées seulement à la 1re approche de « Chalet » (main.js pose .mega-ready) : comme Framer,
   qui ne les rend qu'à l'ouverture ; sinon ces 4 images « lazy » en haut de page partent sur chaque page desktop */
html.js:not(.mega-ready) .mega__media img { display: none; }
.mega__media img.is-active { opacity: 1; }

/* ---------- panneau mobile / tablette */
/* Framer : ouverture = tween 0,4 s cubic-bezier(.44,0,.56,1) ; fermeture = ressort (bounce .2, 0,4 s),
   le contenu disparaît aussitôt et seul le fond blanc se replie. */
.hdr__panel {
  display: none;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease-spring), visibility 0s .5s;
  visibility: hidden;
}
.hdr__panel-clip { min-height: 0; overflow: hidden; }
.mpanel { padding: 30.2px var(--gutter) 31px; transition: padding .4s var(--ease-framer); }
.hdr:not(.is-open) .mpanel { visibility: hidden; }
.mpanel__list { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; transition: gap .4s var(--ease-framer); }
.mpanel__list > li { display: flex; flex-direction: column; align-items: flex-start; width: 100%; }
/* lien : texte 19,2 px + filet de 1 px (composant Framer) = 20,2 px */
.mpanel__link { display: flex; align-items: center; gap: 10px; height: 20.2px; font-family: var(--f-body); font-size: 16px; line-height: 1.2em; color: inherit; }
.mpanel__toggle { height: 18px; }
.mpanel__toggle svg { width: 16px; height: 16px; fill: currentColor; }
.mpanel__sub {
  display: grid;
  align-self: stretch;
  grid-template-rows: 0fr;
  margin: 0 calc(var(--gutter) * -1);
  visibility: hidden;
  transition: grid-template-rows .4s var(--ease-framer), margin .4s var(--ease-framer), visibility 0s .4s;
}
.mpanel__sub > div { min-height: 0; overflow: hidden; }
.mpanel__sub ul { display: flex; flex-direction: column; justify-content: center; gap: 14px; height: 150px; padding: 0 var(--gutter); background: var(--c-grey); }
.mpanel__sub.is-open { grid-template-rows: 1fr; margin-top: 5px; margin-bottom: -3.3px; visibility: visible; transition: grid-template-rows .4s var(--ease-framer), margin .4s var(--ease-framer), visibility 0s; }
/* sous-menu ouvert : Framer resserre la liste (état « OpenTwice », 540 px) et décale langue + téléphone à 20 px du bord */
.hdr.is-sub .mpanel { padding-top: 21.5px; padding-bottom: 52.4px; }
.hdr.is-sub .mpanel__list { gap: 10px; }
.hdr.is-sub .mpanel__actions { gap: 10px; margin-top: 42.8px; margin-left: -10px; }
.mpanel__actions { display: flex; flex-direction: column; align-items: flex-start; margin-top: 52.2px; transition: margin .4s var(--ease-framer), gap .4s var(--ease-framer); }
.mpanel__actions .lang__btn { height: 41px; }
.mpanel__phone { height: 35px; padding-top: 0; padding-bottom: 0; }

/* ---------- sans JavaScript : ouverture au survol / focus (CSS :has) — Framer n'a pas de repli */
html:not(.js) .hdr:has(.hdr__item--chalet:hover, .hdr__item--chalet:focus-within, .hdr__mega:hover, .hdr__mega:focus-within) .hdr__mega { height: 451px; visibility: visible; transition: none; }
html:not(.js) .hdr:has(.hdr__item--chalet:hover, .hdr__item--chalet:focus-within, .hdr__mega:hover, .hdr__mega:focus-within) .mega { visibility: visible; }
html:not(.js) .mega__item:hover .mega__grid, html:not(.js) .mega__item:focus-within .mega__grid { padding: 0 0 20px; }
html:not(.js) .mega__item:hover .mega__fold, html:not(.js) .mega__item:focus-within .mega__fold { grid-template-rows: 1fr; }
html:not(.js) .mpanel__sub { grid-template-rows: 1fr; margin-top: 5px; margin-bottom: -3.3px; visibility: visible; }

/* ---------- thème blanc (accueil, au-dessus de la vidéo) */
[data-header="white"] .hdr { background-color: transparent; color: var(--c-white); }
[data-header="white"] .hdr__logo { color: var(--c-white); }
[data-header="white"] .hdr__phone { background-color: var(--c-white); color: var(--c-black); }
[data-header="white"] .hdr__phone:hover { background-color: var(--c-brown); color: var(--c-white); }
/* méga-menu ouvert sur le thème blanc : voile brun 70 % */
[data-header="white"] .hdr.is-mega { background: linear-gradient(var(--c-brown-70), var(--c-brown-70)), rgba(255, 255, 255, .99); }
[data-header="white"] .hdr.is-mega .hdr__logo:hover { color: var(--c-white); }
[data-header="white"] .mega__intro .btn { background-color: var(--c-white); color: var(--c-black); }
[data-header="white"] .mega__intro .btn:hover { background-color: var(--c-brown); color: var(--c-white); }
[data-header="white"] .mega__rule { background: var(--c-white-20); }
/* variante « White » du sous-menu Framer : sous-titre blanc 20 %, colonne de texte 225 px, lien « En savoir plus » de 30 px */
[data-header="white"] .mega__sub { color: var(--c-white-20); }
[data-header="white"] .mega__grid { grid-template-columns: 140px 225px; column-gap: 35px; }
[data-header="white"] .mega__more { height: 30px; }

/* ---------- tablette + mobile : burger */
@media (max-width: 1199px) {
  .hdr__inner { justify-content: space-between; gap: 0; padding: 0 var(--gutter); }
  .hdr__brand { flex: none; }
  .hdr__logo { font-size: 19px; }
  /* Framer (tablette) : le filet de 0,77 px est dessiné DANS la barre (76,2 → 77 px), pas dessous */
  .hdr__bar::after { top: calc(100% - 1px); }
  .hdr__nav, .hdr__actions, .hdr__mega { display: none; }
  .hdr__burger { display: block; }
  .hdr__panel { display: grid; }
  .hdr.is-open { background-color: var(--c-white); color: var(--c-black); }
  .hdr__inner { transition: transform .5s var(--ease-spring); }
  .hdr.is-open .hdr__inner { transform: translateY(4.5px); transition: transform .4s var(--ease-framer); }   /* Framer : la barre descend légèrement à l'ouverture */
  .hdr.is-sub .hdr__inner { transform: translateY(7px); }
  .hdr.is-open .hdr__panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .4s var(--ease-framer), visibility 0s; }
  [data-header="white"] .hdr.is-open .hdr__logo { color: var(--c-ink); }
  /* sans JavaScript : le burger ouvre le panneau tant qu'il a le focus (Chrome, Firefox) */
  html:not(.js) .hdr:has(.hdr__burger:focus, .hdr__panel:focus-within) { background-color: var(--c-white); color: var(--c-black); }
  html:not(.js) .hdr:has(.hdr__burger:focus, .hdr__panel:focus-within) .hdr__panel { grid-template-rows: 1fr; visibility: visible; }
  html:not(.js) .hdr:has(.hdr__burger:focus, .hdr__panel:focus-within) .mpanel { visibility: visible; }
}
@media (max-width: 809px) {
  .hdr__logo { font-size: 15px; }
  .hdr__bar::after { top: 100%; }
  /* Framer : sur le thème blanc mobile, la barre fait 349 px centrés (20,5 px de marge) */
  [data-header="white"] .hdr:not(.is-open) .hdr__inner { padding: 0 20.5px; }
}
@media (min-width: 1200px) {
  .hdr__panel { display: none !important; }
}

/* =================================================== « Bien reçu ! » (layout) */
/* Bloc hérité du gabarit Framer, affiché avant le footer sur toutes les pages
   sauf l'accueil (front matter "hideRecu": true pour le masquer). */
.layout-recu { align-self: center; flex: none; max-width: 100%; padding: 0 var(--gutter); font-family: var(--f-display); font-size: 52px; line-height: 1.1em; text-align: center; white-space: pre; color: var(--c-black); }
@media (max-width: 1199px) { .layout-recu { font-size: 42px; } }
@media (max-width: 809px) { .layout-recu { font-size: 33px; } }

/* ================================================================= FOOTER */
.ftr { flex: none; width: 100%; padding: 100px var(--gutter) 30px; background-color: var(--c-taupe); color: var(--c-white); }
.ftr__inner { display: flex; flex-direction: column; align-items: center; gap: 50px; }
.ftr__main { display: flex; align-items: flex-start; justify-content: center; gap: 20px; width: 100%; }
.ftr__brand { display: flex; flex: none; flex-direction: column; align-items: center; gap: 20px; width: 28%; }
.ftr__logo { font-family: var(--f-display); font-size: 44px; line-height: 1.1em; white-space: nowrap; }
.ftr__about { max-width: 275px; font-size: 14px; line-height: 1.2em; }
.ftr__links { display: flex; flex: 1 1 0; align-items: flex-start; gap: 20px; min-width: 0; }
.ftr__col { display: flex; flex: 1 1 0; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.ftr__heading { font-family: var(--f-body-black); font-size: 14px; line-height: 1.2em; color: var(--c-white-75); }
.ftr__menu { display: grid; grid-template-columns: repeat(2, minmax(50px, 1fr)); grid-template-rows: repeat(5, min-content); grid-auto-flow: column; gap: 10px; width: 100%; }
.ftr__menu a { font-size: 16px; line-height: 1.2em; }
.ftr__contact { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.ftr__contact dt { font-family: var(--f-body-black); font-size: 14px; line-height: 1.2em; color: var(--c-white-75); }
.ftr__contact dd { font-size: 14px; line-height: 1.2em; }
.ftr__rule { width: 100%; height: 1px; background: var(--c-white-20); }
.ftr__copy { width: 100%; font-size: 14px; line-height: 1.2em; text-align: center; color: var(--c-white-75); }
@media (max-width: 1199px) {
  .ftr { padding-top: 80px; }
  .ftr__inner { gap: 40px; }
  .ftr__main { flex-direction: column; gap: 50px; }
  .ftr__brand { width: min-content; }
  .ftr__logo { width: 281px; font-size: 35px; white-space: normal; }
  .ftr__about { width: 282px; max-width: 283px; }
  .ftr__links { flex: none; width: 100%; }
}
@media (max-width: 809px) {
  .ftr__logo { width: auto; font-size: 28px; white-space: nowrap; }
  .ftr__about { width: auto; max-width: 283px; }
  .ftr__links { flex-direction: column; gap: 30px; }
  .ftr__col { flex: none; width: 100%; }
}

/* ======================================================== SECTION CONTACT */
/* {{> contact}}  — variante par défaut (pages intérieures) ;
   front matter "contactHome": true  → variante de l'accueil ;
   front matter "contactShort": true → phrase d'intro courte (/chalet). */
.contact { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; padding: 60px 30px; background-color: var(--c-cream); scroll-margin-top: 50px; }
.contact__container { position: relative; z-index: 1; width: 100%; max-width: 1360px; padding: 0 40px; }
.contact__grid { display: grid; grid-template-columns: repeat(2, minmax(50px, 1fr)); gap: 100px; }
.contact__content { display: flex; flex-direction: column; align-items: flex-start; gap: 40px; min-width: 0; }
.contact__intro { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.contact__head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.contact__title { font-family: var(--f-display); font-size: 44px; line-height: 1.1em; }
.contact__text { font-size: 20px; line-height: 1.1em; }
.contact__info { display: flex; flex-direction: column; gap: 30px; width: 100%; }
.contact__lines { display: grid; grid-template-columns: repeat(2, minmax(50px, 1fr)); gap: 20px 0; padding-bottom: 20px; }
.contact__lines dt { font-family: var(--f-body-bold); font-size: 18px; line-height: 1.4em; }
.contact__lines dd { min-width: 0; font-size: 18px; line-height: 1.4em; overflow-wrap: anywhere; }
.contact__border { height: 1px; background: rgba(208, 209, 219, .1); }
.contact__formwrap { display: flex; align-self: start; width: 100%; min-width: 0; padding: 20px; border-radius: var(--radius); overflow: hidden; }
.contact__card { position: relative; display: flex; flex: 1 1 0; min-width: 0; padding: 24px; border-radius: var(--radius); overflow: hidden; }
.contact__bg { position: absolute; top: 0; left: 0; right: 0; z-index: 0; min-height: 511px; filter: brightness(.7); overflow: hidden; }
.contact__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact__form {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  padding: 20px;
  border-radius: var(--radius);
  background-color: rgba(209, 209, 209, .25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--c-white);
}
.field { display: flex; flex-direction: column; gap: 10px; }
.field__label { font-size: 18px; line-height: 1.4em; color: var(--c-white); white-space: pre; } /* Framer : jamais de retour à la ligne */
.field__input {
  display: block;
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 12px;                   /* Framer : boîte de texte de 16 px à 12 px du bord extérieur (le filet est dessiné par-dessus) */
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(136, 136, 136, .1);
  background: var(--c-black-30);
  color: var(--c-white);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.2em;
  text-overflow: ellipsis;
  outline: none;
  appearance: none;
  transition: box-shadow .2s ease, background-color .2s ease;
}
textarea.field__input { display: flex; height: auto; min-height: 150px; padding: 12px; resize: vertical; white-space: break-spaces; overflow-y: auto; }
/* poignée de redimensionnement dessinée par Framer (SVG 14 px, gris #999) */
textarea.field__input::-webkit-resizer { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='m1.5 8 7-7M9 5.5l-3 3' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat; }
textarea.field__input::-webkit-scrollbar { background: transparent; }
textarea.field__input::-webkit-scrollbar-corner { background: transparent; }
.field__input::placeholder { color: var(--c-white-75); opacity: 1; }
.field__input:focus { box-shadow: inset 0 0 0 1px #09f; outline: none; }   /* (:focus couvre :focus-visible ; pas de liste mixte : Safari < 15.4) */
.field__input:-webkit-autofill { -webkit-text-fill-color: var(--c-white); -webkit-box-shadow: 0 0 0 40px rgba(60, 60, 60, .9) inset; caret-color: var(--c-white); }
.field__input.is-invalid { box-shadow: inset 0 0 0 1px #ff6b5f; }
.contact__submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius);
  background-color: var(--c-cream);
  color: var(--c-black);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.2em;
  transition: background-color .5s var(--ease-spring), color .5s var(--ease-spring);
}
.contact__submit .btn__icon { color: #0f3d3a; transition: color .5s var(--ease-spring); }
.contact__submit:hover { background-color: var(--c-brown); color: var(--c-sand); }
.contact__submit:hover .btn__icon { color: var(--c-sand); }
.contact__submit[disabled] { opacity: .7; cursor: progress; }
.contact__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* variante accueil */
.contact--home { padding: 100px 30px 60px; }
.contact--home .contact__container { max-width: 1590px; padding: 0; }
.contact--home .contact__text { line-height: 1.5em; }

@media (max-width: 1199px) {
  .contact__grid { grid-template-columns: minmax(50px, 1fr); gap: 10px 100px; }
  .contact__title { font-size: 35px; }
  .contact__text { font-size: 16px; }
  .contact--home .contact__text { font-size: 13px; }
}
@media (max-width: 809px) {
  .contact { padding: 60px 0; }
  .contact--home { padding: 100px 30px 60px; }
  .contact__grid { gap: 10px 60px; }
  .contact__intro { gap: 20px; }
  .contact__title { font-size: 28px; }
  .contact__text { font-size: 13px; }
}

/* ================================================================ PAGE 404 */
.nf { display: flex; justify-content: center; padding: 150px var(--gutter); }
.nf__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 50px; width: 100%; }
.nf__title { color: var(--c-brown); }
.nf__content { display: flex; flex-direction: column; gap: 10px; width: 600px; max-width: 100%; }
@media (max-width: 1199px) {
  .nf { padding: 130px var(--gutter); }
  .nf__lead { font-size: 18px; line-height: 1.4em; }
}
@media (max-width: 809px) {
  .nf { padding: 110px 20px; }
  .nf__content { width: 100%; }
}

/* ======================================================= PAGE CONFIRMATION */
/* Le contenu visible est le bloc « Bien reçu! » du gabarit ; ce vide garantit
   qu'il ne passe pas sous le header quand l'écran est court (mobile). */
.confirm-gap { min-height: 42px; }

/* ============================================================ MOUVEMENT RÉDUIT */
/* Les apparitions [data-reveal] sont gérées par components.css ; ici : header, menus, boutons. */
@media (prefers-reduced-motion: reduce) {
  .hdr, .hdr.is-faded, .hdr__mega, .hdr__panel, .hdr__inner, .hdr__burger span, .mpanel, .mpanel__list,
  .mpanel__sub, .mpanel__actions, .hdr__link::after, .mega__more > span::after, .btn, .tag,
  .contact__submit, .contact__submit .btn__icon, .lang__btn svg, .hdr__caret svg, .hdr__caret::before { transition-duration: .01ms !important; transition-delay: 0s !important; }
}
