/* ============================================================================
   ARDÈVE — style « apple.com » + effet verre (18.11.2026).
   Chargé EN DERNIER (après le <style> de l'accueil, après _pagestyle.css sur
   les pages légales), à l'écran seulement.

   RETOUR ARRIÈRE : retirer la ligne
     <link rel="stylesheet" href="/apple-verre.css?v=…" media="screen">
   de index.html (puis relancer generer.mjs) et des pages légales.

   Règles tenues :
   - aucune couleur nouvelle : uniquement les teintes du kit (ardoise #0D1211,
     carte #1A2321, eau #63B0B5, or #C2A167/#E0C79A, neige #F6F2EA, bleu
     source #123F45), parfois avec transparence ;
   - le verre (flou réel) seulement sur ce qui flotte (barre du haut, barre
     basse, légendes posées sur photo, bandeaux) ; les cartes dans le flux
     reçoivent une teinte translucide et un liseré de lumière, sans flou ;
   - pas de verre sur du verre ; contrastes calculés (voir _scripts/contraste.mjs).
   ============================================================================ */
@media screen {

:root{
  --verre-sombre:rgba(13,18,17,.82);      /* ardoise translucide : .82 = plancher pour l'or 11 px
                                             sur une section neige qui passe dessous (4,5:1) */
  --verre-sombre-fort:rgba(13,18,17,.86);
  --verre-carte:rgba(26,35,33,.62);       /* carte #1A2321 translucide */
  --verre-clair:rgba(255,255,255,.72);
  --verre-bord:rgba(255,255,255,.12);
  --verre-lumiere:inset 0 1px 0 rgba(255,255,255,.08);
  --verre-ombre:0 18px 50px rgba(0,0,0,.28);
  --verre-flou:saturate(1.8) blur(20px);
  --verre-r:22px;           /* cartes, cadres */
  --verre-r-grand:30px;     /* grands blocs */
  --pilule:980px;           /* boutons « pilule » façon apple.com */
  --ease-doux:cubic-bezier(.22,.61,.36,1);
}

/* ---------- typographie : grande, serrée en haut, aérée en bas ---------- */
h1{font-size:clamp(46px,9vw,112px);line-height:.98;letter-spacing:-.01em}
h2{font-size:clamp(34px,5.4vw,66px);line-height:1.04;letter-spacing:-.005em;margin-bottom:22px}
h3{font-size:clamp(24px,2.2vw,28px);line-height:1.15}
.hero p.lead{font-size:clamp(18px,1.8vw,22px);line-height:1.5}
section p{font-size:17px;line-height:1.7}
.eyebrow{font-size:12px;font-weight:500}

/* ---------- respiration : sections plein écran, beaucoup d'air ---------- */
section{padding:clamp(88px,11vw,152px) 0}
.hero{min-height:calc(100vh - 70px);min-height:calc(100svh - 70px)}
.hero .inner{padding-bottom:clamp(56px,8vw,96px)}
@media(max-width:900px){.hero .inner{padding-bottom:112px}} /* boutons au-dessus de la barre flottante */

/* ---------- barre du haut : verre ---------- */
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  header{background:var(--verre-sombre);
    -webkit-backdrop-filter:var(--verre-flou);backdrop-filter:var(--verre-flou);
    border-bottom:1px solid var(--verre-bord);box-shadow:0 1px 0 rgba(255,255,255,.04)}
}
nav.links a{opacity:.92}
.langs a{border-radius:var(--pilule);padding:5px 9px}
nav.links a.sejour{border-radius:var(--pilule);padding:7px 14px}
.burger{border-radius:var(--pilule);padding:8px 14px}
@media(max-width:1100px){
  /* menu déplié : panneau sous la barre, coins arrondis en bas */
  nav.links{background:var(--verre-sombre-fort);border-radius:0 0 var(--verre-r) var(--verre-r);
    box-shadow:var(--verre-ombre)}
}

/* ---------- boutons « pilule » (couleurs inchangées) ---------- */
.btn{border-radius:var(--pilule);padding:14px 26px;font-size:15px}
.stickybar .btn{padding:12px 20px}
nav.links a.btn{padding:9px 18px;font-size:14px}
@media (prefers-reduced-motion:no-preference){
  .btn:hover{transform:translateY(-1px) scale(1.01)}
  .btn:active{transform:scale(.97)}
}
#consentement button{border-radius:var(--pilule)}
.langhint{border-radius:var(--verre-r)}

/* ---------- photos en grand, coins doux ---------- */
.frame,.gallery figure,.plan-card,.plan{border-radius:var(--verre-r)}
.gallery{gap:16px;grid-auto-rows:300px}
@media(max-width:900px){.gallery{grid-auto-rows:220px;gap:10px}}

/* légendes posées sur les photos : vrai verre (flou de la photo dessous) */
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .gallery figcaption{left:12px;right:auto;bottom:12px;max-width:calc(100% - 24px);
    padding:8px 14px;border-radius:var(--pilule);font-size:13px;line-height:1.35;
    background:rgba(13,18,17,.68);border:1px solid var(--verre-bord);
    -webkit-backdrop-filter:var(--verre-flou);backdrop-filter:var(--verre-flou)}
}

/* ---------- cartes : teinte translucide + liseré de lumière ---------- */
.card{background:var(--verre-carte);border:1px solid var(--verre-bord);border-radius:var(--verre-r);
  padding:30px;box-shadow:var(--verre-lumiere),var(--verre-ombre);
  transition:transform .4s var(--ease-doux),box-shadow .4s var(--ease-doux)}
@media (prefers-reduced-motion:no-preference){.card:hover{transform:translateY(-2px)}}
.light .card{background:var(--verre-clair);border-color:#E4DCCF;
  box-shadow:inset 0 1px 0 #fff,0 14px 40px rgba(13,18,17,.07)}
.direct{border-radius:var(--verre-r-grand);padding:clamp(30px,5vw,64px);
  box-shadow:var(--verre-lumiere),0 30px 80px rgba(0,0,0,.35)}
.facts .grid div{padding:30px 24px}

/* ---------- barre de réservation mobile : pilule de verre flottante ---------- */
@media(max-width:900px){
  .stickybar{left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));
    border-radius:var(--verre-r);border:1px solid var(--verre-bord);border-top:1px solid var(--verre-bord);
    background:var(--verre-sombre-fort);box-shadow:var(--verre-ombre)}
  @supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
    .stickybar{background:var(--verre-sombre);
      -webkit-backdrop-filter:var(--verre-flou);backdrop-filter:var(--verre-flou)}
  }
  body{padding-bottom:84px}
}

/* ---------- bandeau de consentement : quasi opaque, coins doux ---------- */
#consentement{left:10px;right:10px;bottom:10px;border-radius:var(--verre-r);
  border:1px solid rgba(255,255,255,.18);box-shadow:var(--verre-ombre)}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  #consentement{-webkit-backdrop-filter:var(--verre-flou);backdrop-filter:var(--verre-flou)}
}

/* ---------- animations sobres au défilement (CSS pur) ---------- */
@supports (animation-timeline:view()){
  @media (prefers-reduced-motion:no-preference){
    section h2,section .card,.gallery figure,.trajet li:not(.goutte),.frame{
      animation:av-monte linear both;animation-timeline:view();animation-range:entry 0% entry 32%}
    @keyframes av-monte{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:none}}
    /* la photo d'en-tête recule doucement quand on descend */
    .hero img.bg{animation:av-recul linear both;animation-timeline:scroll(root);animation-range:0 100vh}
    @keyframes av-recul{from{transform:scale(1)}to{transform:scale(1.07)}}
  }
}

/* ---------- pages légales (_pagestyle.css) ---------- */
.box{border-radius:18px;background:var(--verre-carte);box-shadow:var(--verre-lumiere)}
header a.back{border:1px solid var(--verre-bord);border-radius:var(--pilule);padding:7px 14px;opacity:1}

/* ---------- accessibilité : transparence réduite, contraste renforcé ---------- */
@media (prefers-reduced-transparency:reduce){
  header,.stickybar,#consentement,.gallery figcaption{
    background:#0D1211!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  .card{background:#1A2321}
  .light .card{background:#fff}
}
@media (prefers-contrast:more){
  header,.stickybar,#consentement,.gallery figcaption{background:#0D1211!important;
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important;border-color:rgba(255,255,255,.5)!important}
  .card{background:#1A2321;border-color:rgba(255,255,255,.4)}
  .light .card{background:#fff;border-color:#55524B}
}

/* ============================================================================
   LIQUID GLASS (18.11.2026, 2e passe) — avec /liquid.js
   - liseré spéculaire (lumière qui accroche le bord), tous navigateurs ;
   - reflet qui suit le pointeur (--lx/--ly posés par liquid.js) ;
   - Chrome/Edge (html.av-liquide) : vraie réfraction des bords par le filtre
     SVG #av-liquide, flou réduit pour qu'on voie l'image se courber.
   La teinte reste au plancher de contraste là où il y a du texte ; seuls les
   bords, sans texte, sont plus transparents pour laisser voir la réfraction.
   ============================================================================ */
header,.stickybar,.card{isolation:isolate}
.card{position:relative}
header::before,.stickybar::before,.card::before,.gallery figcaption::before{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:-1;padding:1px;
  background:linear-gradient(135deg,rgba(255,255,255,.55),rgba(255,255,255,.08) 32%,rgba(255,255,255,.02) 55%,rgba(255,255,255,.28) 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
header::after,.stickybar::after,.card::after{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:-1;
  background:radial-gradient(420px circle at var(--lx,30%) var(--ly,0%),rgba(255,255,255,.10),transparent 60%)}
.light .card::before{background:linear-gradient(135deg,#fff,rgba(255,255,255,.2) 40%,rgba(228,220,207,.6))}
.light .card::after{background:radial-gradient(420px circle at var(--lx,30%) var(--ly,0%),rgba(255,255,255,.7),transparent 60%)}
header,.stickybar{box-shadow:inset 0 1px 0 rgba(255,255,255,.18),inset 0 -1px 0 rgba(255,255,255,.06),0 10px 30px rgba(0,0,0,.18)}

html.av-liquide header{
  background:linear-gradient(180deg,rgba(13,18,17,.5) 0%,rgba(13,18,17,.82) 18%,rgba(13,18,17,.82) 84%,rgba(13,18,17,.58) 100%);
  -webkit-backdrop-filter:url(#av-liquide-y) blur(4px) saturate(1.9) brightness(1.05);
  backdrop-filter:url(#av-liquide-y) blur(4px) saturate(1.9) brightness(1.05)}
@media(max-width:900px){
  html.av-liquide .stickybar{
    background:linear-gradient(180deg,rgba(13,18,17,.55) 0%,rgba(13,18,17,.82) 22%,rgba(13,18,17,.82) 80%,rgba(13,18,17,.6) 100%);
    -webkit-backdrop-filter:url(#av-liquide-y) blur(4px) saturate(1.9) brightness(1.05);
    backdrop-filter:url(#av-liquide-y) blur(4px) saturate(1.9) brightness(1.05)}
}
html.av-liquide .gallery figcaption{
  -webkit-backdrop-filter:url(#av-liquide) blur(6px) saturate(1.9);backdrop-filter:url(#av-liquide) blur(6px) saturate(1.9)}

@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){
  header::after,.stickybar::after,.card::after{display:none}
  html.av-liquide header,html.av-liquide .stickybar,html.av-liquide .gallery figcaption{background:#0D1211!important;
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important}
}

/* ============================================================================
   STRUCTURE « apple.com/fr » (19.11.2026, 3e passe)
   Barre fine, tout centré, sections en tuiles pleine largeur séparées par un
   filet clair, image sous le texte, galerie en grille de tuiles.
   Polices et couleurs du kit inchangées. Fluidité : uniquement transform et
   opacity animés ; la réfraction SVG est retirée des barres (elle était
   recalculée à chaque image du défilement).
   ============================================================================ */

/* ---- barre fine, comme la barre globale d'Apple ---- */
.nav{height:48px;gap:14px}
.brand .brandmark{width:34px}
.brand b{font-size:17px;letter-spacing:4px}
.brand i{display:none}
nav.links{gap:22px}
nav.links a{font-size:12.5px;letter-spacing:.01em;opacity:.9}
nav.links a.sejour{font-size:12px;padding:5px 12px}
nav.links a.btn{padding:6px 14px;font-size:12.5px}
.langs a{font-size:10.5px;padding:4px 8px}
.burger{padding:5px 12px;font-size:15px}
.langhint{top:60px}
html.av-liquide header,html.av-liquide .stickybar{
  background:var(--verre-sombre);
  -webkit-backdrop-filter:var(--verre-flou);backdrop-filter:var(--verre-flou)}
html.av-liquide .gallery figcaption{-webkit-backdrop-filter:var(--verre-flou);backdrop-filter:var(--verre-flou)}
@media(max-width:1100px){
  nav.links{top:48px;gap:0}
  nav.links a{font-size:16px;padding:14px 0}
  nav.links a.sejour,nav.links a.btn{font-size:15px;padding:12px 16px;text-align:center;margin-top:10px}
  .langs a{font-size:12px;padding:8px 13px}
}

/* ---- la page devient une pile de tuiles ---- */
body:has(.hero){background:#F6F2EA}   /* accueil seulement : les pages légales gardent leur fond sombre */
section{background:#0D1211}   /* les sections sombres n'avaient pas de fond propre (elles héritaient du body) */
.hero,.facts,section,footer{margin:0 0 12px}
section{border-bottom:0;padding:clamp(72px,9vw,128px) 0 clamp(72px,9vw,128px)}
footer{margin-bottom:0}

/* ---- en-tête : titre centré en haut, photo pleine largeur dessous ---- */
.hero{min-height:calc(100vh - 48px);min-height:calc(100svh - 48px);align-items:flex-start}
.hero .inner{text-align:center;padding:clamp(48px,7vh,84px) 24px 0}
.hero h1{max-width:none;margin:0 auto}
.hero p.lead{max-width:min(56ch,100%);margin:18px auto 0}
.hero .cta{justify-content:center;margin-top:26px}
/* bouton secondaire posé sur la photo : fond ardoise .62 (4,9:1 sur un pixel blanc) */
.hero .btn.ghost{background:rgba(13,18,17,.62);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-color:rgba(246,242,234,.55)}
.hero .btn.ghost:hover{background:var(--cream);color:var(--ink)}
.hero::after{background:
  linear-gradient(180deg,rgba(13,18,17,.84) 0%,rgba(13,18,17,.7) 26%,rgba(13,18,17,.28) 48%,rgba(13,18,17,0) 66%,rgba(13,18,17,.22) 100%)}
.hero img.bg{object-position:50% 62%}
@media(max-width:900px){
  .hero .inner{padding:40px 20px 0}
  .hero::after{background:
    linear-gradient(180deg,rgba(13,18,17,.86) 0%,rgba(13,18,17,.74) 38%,rgba(13,18,17,.3) 58%,rgba(13,18,17,0) 74%,rgba(13,18,17,.3) 100%)}
}
.eyebrow{justify-content:center}
.eyebrow::before{display:none}

/* ---- chiffres clés : une rangée centrée ---- */
.facts{border-top:0}
.facts .grid div{text-align:center;border-right:0;padding:34px 16px}
.facts b{font-size:clamp(34px,4vw,48px)}

/* ---- sections : texte centré, puis l'image en grand ---- */
section .wrap{text-align:center}
section h2{max-width:24ch;text-wrap:balance;margin-left:auto;margin-right:auto}
section .wrap>p,section .two>div>p,.plan-txt p{max-width:62ch;margin-left:auto;margin-right:auto}
.two,.two.top{grid-template-columns:1fr;gap:44px;justify-items:center;align-items:start}
.two>*{width:100%;max-width:1040px}
.two>div:first-child,.plan-txt{max-width:780px}
.frame{border-radius:28px;border:0}
.frame img,.illu img{width:100%}
/* photos des blocs texte+image : format paysage constant, quel que soit l'original */
.two>.frame,.two>picture.frame,.two>div>.frame{aspect-ratio:3/2}
.two .frame img{height:100%;object-fit:cover;object-position:50% 68%}
.spec{max-width:640px;margin:22px auto 0;text-align:left}
.plan-row{margin-top:64px}
.plan-card{max-width:560px;border-radius:28px}

/* cartes en rangée de trois, centrées */
.cards{grid-template-columns:repeat(3,1fr)!important;gap:12px;margin-top:8px!important;max-width:1040px}
.card{border-radius:28px;padding:34px 26px;text-align:center}
.card .n{display:block}
@media(max-width:900px){.cards{grid-template-columns:1fr!important}}

/* trajet et chrono */
.trajet{text-align:left}
.chrono{max-width:1040px;margin-left:auto;margin-right:auto}

/* ---- galerie : grille de tuiles à deux colonnes ---- */
.gallery{grid-template-columns:1fr 1fr;grid-auto-rows:auto;gap:12px;margin-top:40px}
.gallery figure,.gallery figure:nth-child(1),.gallery figure:nth-child(3){grid-row:auto;aspect-ratio:4/3;border-radius:28px;border:0}
.gallery figure:nth-child(6){grid-column:auto}
.gallery figure:last-child:nth-child(odd){grid-column:1/-1;aspect-ratio:21/9}
@media(max-width:700px){
  .gallery{grid-template-columns:1fr}
  .gallery figure,.gallery figure:nth-child(1),.gallery figure:nth-child(3),.gallery figure:nth-child(6),.gallery figure:last-child:nth-child(odd){aspect-ratio:4/3;grid-column:auto}
}
#galerie .wrap>p{font-size:13px}

/* ---- bloc réservation, lieu, FAQ ---- */
.direct{text-align:center;border-radius:32px}
.direct .two{gap:28px!important}
.loc{max-width:1040px;margin-left:auto;margin-right:auto}
.loc div{border-left:0;padding-left:0;text-align:center}
.faq .wrap{max-width:820px}
.faq details{text-align:left;padding:22px 0}
.faq summary{font-size:18px}
.tablewrap table,.tablewrap{text-align:left}

/* ---- pied de page sobre ---- */
footer{padding:48px 0 72px}
footer .cols{font-size:12.5px}
.legal{font-size:11.5px}

/* ---- fluidité : les images arrivent en se posant, les titres montent ---- */
@supports (animation-timeline:view()){
  @media (prefers-reduced-motion:no-preference){
    .frame img,.gallery img{animation:av-pose linear both;animation-timeline:view();animation-range:entry 0% cover 34%}
    @keyframes av-pose{from{transform:scale(1.12)}to{transform:scale(1)}}
    .frame,.gallery figure{overflow:hidden}
    section .eyebrow,section .wrap>p,.facts .grid div{
      animation:av-monte linear both;animation-timeline:view();animation-range:entry 0% entry 36%}
    /* le texte d'en-tête s'efface quand on descend */
    .hero .inner{animation:av-part linear both;animation-timeline:scroll(root);animation-range:0 70vh}
    @keyframes av-part{to{opacity:0;transform:translateY(-40px)}}
  }
}
/* pages légales : barre fine aussi */
header .wrap{height:48px}
main{text-align:left}
main h1{font-size:clamp(34px,5vw,56px);line-height:1.08}
main h2{font-size:clamp(24px,2.6vw,32px);line-height:1.2;margin-top:40px}

/* ============================================================================
   TRANSITIONS façon page produit Apple (19.11.2026, 4e passe)
   1. Chapitres : texte à gauche qui défile, image épinglée à droite ; le
      paragraphe au centre de l'écran s'allume, les autres restent en retrait.
   2. « Porte à porte » épinglé : les quatre étapes s'allument au défilement,
      la goutte avance sur la ligne.
   3. Galerie horizontale de grandes cartes (glisser / défiler de côté).
   4. Rideau : les chiffres clés recouvrent la photo d'en-tête, qui reste fixe.
   Tout en CSS (animations liées au défilement), transform et opacity
   seulement. Sans prise en charge ou avec « réduire les animations » : la
   page reste complète et lisible, sans épinglage.
   ============================================================================ */

/* ---- 1. chapitres : deux colonnes, média épinglé (ordinateur) ---- */
@media(min-width:901px){
  .two,.two.top{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:clamp(40px,6vw,88px);justify-items:stretch;align-items:start}
  .two>*{max-width:none}
  .two>div:first-child,.plan-txt{max-width:none;text-align:left}
  .two>*:last-child{position:sticky;top:calc(48px + 9vh)}
  .two h2{margin-left:0;max-width:15ch;text-wrap:balance}
  .two .eyebrow{justify-content:flex-start}
  section .two>div>p,.plan-txt p{max-width:none;margin-left:0;margin-right:0;
    font-size:clamp(19px,1.65vw,24px);line-height:1.42;margin-bottom:8vh}
  .two .spec{margin-left:0;max-width:none}
  .two .cards{grid-template-columns:1fr!important;max-width:none}
  .two .card{text-align:left;padding:26px 28px}
  .two>.frame,.two>picture.frame,.two>div>.frame{aspect-ratio:4/5;max-height:calc(100vh - 48px - 18vh)}
  .two .frame img{object-position:50% 50%}
  /* le bloc réservation reste centré, sans épinglage */
  .direct .two{grid-template-columns:1fr!important;justify-items:center}
  .direct .two>*{position:static;text-align:center;max-width:780px}
  .direct .two h2,.direct .two p{margin-left:auto;margin-right:auto}
  .direct .two .eyebrow{justify-content:center}
  .direct .two>div>p{font-size:17px;margin-bottom:14px}
}

/* ---- 3. galerie horizontale ---- */
#galerie .wrap{max-width:none;padding:0}
#galerie .wrap>*:not(.gallery){max-width:1180px;margin-left:auto;margin-right:auto;padding-left:24px;padding-right:24px}
.gallery{display:flex;gap:16px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;
  --bord:max(24px,calc((100vw - 1180px)/2 + 24px));
  scroll-padding-inline:var(--bord);padding:10px var(--bord) 30px;margin:40px 0 0;
  scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.gallery::-webkit-scrollbar{display:none}
.gallery figure,.gallery figure:nth-child(1),.gallery figure:nth-child(3),.gallery figure:nth-child(6),
.gallery figure:last-child:nth-child(odd){flex:0 0 min(80vw,940px);aspect-ratio:16/10;grid-column:auto;grid-row:auto;scroll-snap-align:start}
@media(max-width:700px){
  .gallery figure,.gallery figure:nth-child(1),.gallery figure:nth-child(3),.gallery figure:nth-child(6),
  .gallery figure:last-child:nth-child(odd){flex-basis:84vw;aspect-ratio:4/5}
}

@supports (animation-timeline:view()){
  @media (prefers-reduced-motion:no-preference){

    /* ---- 4. rideau sur l'en-tête ---- */
    .hero{position:sticky;top:48px;z-index:0;margin-bottom:0}
    .facts,section,footer{position:relative;z-index:1}
    section,footer{margin:0;border-top:12px solid #F6F2EA}
    .facts{margin:-28px 0 0;border-radius:28px 28px 0 0}
    .hero picture{animation:av-fond linear both;animation-timeline:scroll(root);animation-range:0 100vh}
    @keyframes av-fond{to{opacity:.3}}

    /* ---- 1. le paragraphe au centre s'allume ---- */
    section .two>div>p,.plan-txt p,.two .card{
      animation:av-focus linear both;animation-timeline:view();animation-range:cover 8% cover 92%}
    @keyframes av-focus{0%{opacity:.3}32%{opacity:1}68%{opacity:1}100%{opacity:.3}}
    .direct .two>div>p{animation:none}

    /* les images hors colonnes grandissent en arrivant */
    section .wrap>.frame,.plan-card{animation:av-grandit linear both;animation-timeline:view();animation-range:entry 5% cover 42%}
    @keyframes av-grandit{from{transform:scale(.84);opacity:.45}to{transform:none;opacity:1}}
    .direct{animation:av-grandit linear both;animation-timeline:view();animation-range:entry 0% cover 36%}

    /* cartes de la galerie : celle du centre est pleine, les voisines en retrait */
    .gallery figure{animation:av-carte linear both;animation-timeline:view(inline);animation-range:cover 0% cover 100%}
    @keyframes av-carte{0%{transform:scale(.93);opacity:.55}30%{transform:none;opacity:1}70%{transform:none;opacity:1}100%{transform:scale(.93);opacity:.55}}
    .gallery img{animation:none}

    /* cartes en rangée : arrivée décalée */
    .cards .card:nth-child(2){animation-delay:0s;animation-range:entry 10% entry 46%}
    .cards .card:nth-child(3){animation-range:entry 20% entry 56%}
    .two .cards .card:nth-child(n){animation-range:cover 8% cover 92%}
  }

  /* ---- 2. « porte à porte » épinglé ---- */
  @media (prefers-reduced-motion:no-preference) and (min-width:901px) and (min-height:600px),
         (prefers-reduced-motion:no-preference) and (max-width:900px) and (min-height:780px){
    .parcours{height:320vh;padding:0;view-timeline:--parcours block}
    .parcours>.wrap{position:sticky;top:48px;height:calc(100vh - 48px);height:calc(100svh - 48px);
      display:flex;flex-direction:column;justify-content:center}
    .parcours .eyebrow,.parcours h2{animation:none}
    .parcours .chrono,.parcours .trajet{width:100%}
    .trajet li:not(.goutte){animation:av-etape linear both;animation-timeline:--parcours}
    .trajet li:nth-child(2){animation-range:contain 0% contain 16%}
    .trajet li:nth-child(3){animation-range:contain 24% contain 40%}
    .trajet li:nth-child(4){animation-range:contain 48% contain 64%}
    .trajet li:nth-child(5){animation-range:contain 72% contain 88%}
    @keyframes av-etape{from{opacity:.22;transform:translateY(14px)}to{opacity:1;transform:none}}
    .trajet::before{animation:av-trait linear both;animation-timeline:--parcours;animation-range:contain 0% contain 90%}
    .chrono span:last-child{animation:av-etape linear both;animation-timeline:--parcours;animation-range:contain 78% contain 94%}
  }
  @media (prefers-reduced-motion:no-preference) and (min-width:901px) and (min-height:600px){
    .trajet::before{transform-origin:0 50%}
    @keyframes av-trait{from{transform:scaleX(0)}to{transform:none}}
    .trajet .goutte{animation:av-goutte linear both;animation-timeline:--parcours;animation-range:contain 0% contain 90%}
    @keyframes av-goutte{from{left:0;opacity:1}to{left:calc(100% - 11px);opacity:1}}
  }
  @media (prefers-reduced-motion:no-preference) and (max-width:900px) and (min-height:780px){
    .trajet::before{transform-origin:50% 0;animation-name:av-trait-v}
    @keyframes av-trait-v{from{transform:scaleY(0)}to{transform:none}}
    .parcours h2{font-size:30px}
    .parcours .chrono{display:none}
    .parcours>.wrap{justify-content:flex-start;padding-top:28px;padding-bottom:96px}
  }
}

/* ============================================================================
   MÉTÉO ET WEBCAMS (19.11.2026) — section #meteo, remplie par /meteo.js
   ============================================================================ */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.meteo{display:grid;grid-template-columns:minmax(260px,1fr) 2.2fr;gap:12px;max-width:1040px;margin:36px auto 0;text-align:left}
.meteo[hidden]{display:none}
.meteo-now,.meteo-jours li,.cam{background:var(--verre-carte);border:1px solid var(--verre-bord);border-radius:28px;
  box-shadow:var(--verre-lumiere)}
.meteo-now{display:flex;align-items:center;gap:20px;padding:28px}
.meteo-ico{width:72px;height:72px;flex:none;color:var(--goldl)}
.meteo-ico.p{width:38px;height:38px;margin:10px auto;color:var(--aqua)}
.meteo-lib{font-size:12px;letter-spacing:1.4px;text-transform:uppercase;color:var(--mut)}
.meteo-t{font-family:"Cormorant Garamond",Garamond,Georgia,serif;font-size:clamp(64px,7vw,92px);line-height:1;color:var(--cream);font-weight:500}
.meteo-txt{font-size:15px;color:var(--mut);margin-top:4px}
.meteo-jours{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.meteo-jours li{padding:20px 10px;text-align:center}
.meteo-j{font-size:13px;font-weight:500;color:var(--cream)}
.meteo-c{font-size:12.5px;color:var(--mut);min-height:2.6em;line-height:1.3}
.meteo-mm{font-size:17px;margin-top:6px;color:var(--cream)}
.meteo-mm span{color:var(--mut)}
section .wrap>p.meteo-credit{font-size:12.5px;margin-top:16px}
.cams-titre{margin-top:56px;font-size:clamp(26px,2.6vw,34px)}
.cams{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;max-width:1040px;margin:22px auto 0}
.cam{display:flex;flex-direction:column;gap:4px;padding:22px 16px;text-decoration:none;color:var(--cream);
  transition:transform .3s var(--ease-doux),background .3s}
.cam b{font-family:"Cormorant Garamond",Garamond,Georgia,serif;font-weight:500;font-size:22px;line-height:1.15}
.cam span.lnum{font-size:13px;color:var(--mut)}
.cam i{font-style:normal;font-size:13px;color:var(--aqua);margin-top:10px}
.cam:hover{background:rgba(26,35,33,.9)}
@media (prefers-reduced-motion:no-preference){.cam:hover{transform:translateY(-3px)}}
@media(max-width:900px){
  .meteo{grid-template-columns:1fr}
  .meteo-jours{grid-template-columns:repeat(5,minmax(104px,1fr));overflow-x:auto;scrollbar-width:none;padding-bottom:4px}
  .meteo-jours::-webkit-scrollbar{display:none}
  .cams{grid-template-columns:1fr 1fr}
  .cam{min-height:44px}
}
@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){
  .meteo-now,.meteo-jours li,.cam{background:#1A2321}
}

/* ============================================================================
   MÉTÉO ET WEBCAMS, 2e version (19.11.2026) — « plus sympa » :
   vraie photo des sommets en fond, cartes en verre, prévisions en lignes avec
   barres de température (façon app Météo), ambiance animée selon le temps.
   Contrastes calculés sur le pire fond (pixel blanc de la photo sous le voile).
   ============================================================================ */
#meteo{position:relative;isolation:isolate;overflow:hidden;background:#0D1211}
#meteo::before{content:"";position:absolute;inset:0;z-index:-2;background:#0D1211 center 30%/cover no-repeat;
  background-image:url('/images/opt/automne-sommets-1400.jpg');
  background-image:image-set(url('/images/opt/automne-sommets-1400.avif') type('image/avif'),url('/images/opt/automne-sommets-1400.jpg') type('image/jpeg'))}
#meteo::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(180deg,rgba(13,18,17,.8) 0%,rgba(13,18,17,.52) 42%,rgba(13,18,17,.74) 100%)}
#meteo .eyebrow{color:var(--goldl)}
#meteo>.wrap{position:relative;isolation:isolate}

/* bloc météo : grande carte « maintenant » + panneau des 5 jours */
.meteo{grid-template-columns:minmax(260px,.82fr) 1.6fr;gap:14px;align-items:stretch}
.meteo-now,.meteo-jours{border:1px solid rgba(255,255,255,.16);border-radius:32px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 24px 60px rgba(0,0,0,.35)}
.meteo-now{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center;padding:34px 24px;
  background:linear-gradient(160deg,rgba(18,63,69,.88),rgba(18,63,69,.8))}
.meteo-ico{width:96px;height:96px;color:var(--goldl);margin-bottom:6px}
.meteo-lib{color:rgba(255,255,255,.78)}
.meteo-t{font-size:clamp(88px,9vw,128px);margin:4px 0 0}
.meteo-txt{font-size:19px;color:var(--cream);margin-top:0}
.meteo-vent{font-size:14px;color:rgba(255,255,255,.78)}
.meteo-jours{display:block;gap:0;background:rgba(26,35,33,.8);padding:8px 26px;text-align:left}
.meteo-jours li{display:grid;grid-template-columns:5.6em 30px minmax(0,1fr) 3.2ch minmax(90px,1.1fr) 3.2ch;align-items:center;gap:14px;
  padding:15px 0;background:none;border:0;border-radius:0;box-shadow:none;border-bottom:1px solid rgba(255,255,255,.1);text-align:left}
.meteo-jours li:last-child{border-bottom:0}
.meteo-j{font-size:16px;font-weight:500}
.meteo-ico.p{width:30px;height:30px;margin:0;color:var(--goldl)}
.meteo-c{min-height:0;font-size:14px;color:rgba(255,255,255,.78)}
.meteo-min{font-size:16px;color:rgba(255,255,255,.72);text-align:right}
.meteo-max{font-size:16px;font-weight:500;color:var(--cream)}
.meteo-barre{position:relative;height:6px;border-radius:6px;background:rgba(255,255,255,.14)}
.meteo-barre span{position:absolute;top:0;bottom:0;border-radius:6px;background:linear-gradient(90deg,#63B0B5,#E0C79A)}
section .wrap>p.meteo-credit{color:rgba(255,255,255,.78)}
.meteo-credit a{color:var(--cream)}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .meteo-now,.meteo-jours,.cam{-webkit-backdrop-filter:saturate(1.7) blur(22px);backdrop-filter:saturate(1.7) blur(22px)}
}

/* webcams : cartes plus expressives, point « en direct », pictogramme caméra */
.cams{gap:14px}
.cam{position:relative;align-items:flex-start;text-align:left;padding:54px 20px 20px;border-radius:26px;
  border:1px solid rgba(255,255,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 18px 44px rgba(0,0,0,.3);
  background:linear-gradient(165deg,rgba(18,63,69,.86),rgba(26,35,33,.84))}
.cam::before{content:"";position:absolute;left:20px;top:18px;width:26px;height:26px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E0C79A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpath d='M15 10.5l5-3v9l-5-3'/%3E%3C/svg%3E") center/contain no-repeat}
.cam::after{content:"";position:absolute;right:20px;top:26px;width:9px;height:9px;border-radius:50%;background:#63B0B5;
  box-shadow:0 0 0 5px rgba(99,176,181,.22)}
.cam b{font-size:26px}
.cam span.lnum{color:rgba(255,255,255,.78);font-size:14px}
.cam i{color:var(--goldl);font-weight:500;margin-top:14px}
.cam:hover{background:linear-gradient(165deg,rgba(18,63,69,.96),rgba(26,35,33,.92))}
@media (prefers-reduced-motion:no-preference){
  .cam::after{animation:cam-direct 2.6s ease-in-out infinite}
  @keyframes cam-direct{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.8)}}
  .cam:hover{transform:translateY(-4px) scale(1.015)}
}

/* ambiance selon le temps : flocons, pluie ou lueur, derrière les cartes */
@media (prefers-reduced-motion:no-preference){
  #meteo[data-temps="snow"]>.wrap::before,#meteo[data-temps="sleet"]>.wrap::before,
  #meteo[data-temps="snow"]>.wrap::after,#meteo[data-temps="sleet"]>.wrap::after{
    content:"";position:absolute;left:-10%;right:-10%;top:-340px;bottom:-140px;z-index:-1;pointer-events:none;
    background-image:radial-gradient(circle,rgba(255,255,255,.85) 0 1.6px,transparent 2.2px),radial-gradient(circle,rgba(255,255,255,.6) 0 1.1px,transparent 1.7px);
    background-size:170px 170px,110px 110px;background-position:20px 30px,70px 90px;
    animation:meteo-neige 11s linear infinite}
  #meteo[data-temps="snow"]>.wrap::after,#meteo[data-temps="sleet"]>.wrap::after{
    background-size:230px 230px,150px 150px;background-position:110px 10px,10px 140px;opacity:.7;animation-duration:17s}
  @keyframes meteo-neige{from{transform:translate3d(0,0,0)}to{transform:translate3d(-40px,340px,0)}}
  #meteo[data-temps="rain"]>.wrap::before,#meteo[data-temps="thunder"]>.wrap::before{
    content:"";position:absolute;left:-10%;right:-10%;top:-240px;bottom:-140px;z-index:-1;pointer-events:none;opacity:.5;
    background-image:linear-gradient(105deg,transparent 0 49.4%,rgba(255,255,255,.55) 49.6% 50.2%,transparent 50.4%);
    background-size:46px 120px;animation:meteo-pluie 1.1s linear infinite}
  @keyframes meteo-pluie{from{transform:translate3d(0,0,0)}to{transform:translate3d(-32px,240px,0)}}
}
#meteo[data-temps="clear"]>.wrap::before,#meteo[data-temps="fair"]>.wrap::before{
  content:"";position:absolute;right:-8%;top:-30%;width:60%;aspect-ratio:1;z-index:-1;pointer-events:none;
  background:radial-gradient(circle,rgba(224,199,154,.34),transparent 62%)}

@media(max-width:900px){
  .meteo{grid-template-columns:1fr}
  .meteo-jours{display:block;overflow:visible;padding:6px 18px}
  .meteo-jours li{grid-template-columns:6.2em 26px 3ch minmax(50px,1fr) 3ch;gap:9px}
  .meteo-j{font-size:15px;white-space:nowrap}
  .meteo-c{display:none}
  /* webcams : rangée à faire glisser */
  .cams{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin-left:-24px;margin-right:-24px;padding:6px 24px 18px;scroll-padding-inline:24px}
  .cams::-webkit-scrollbar{display:none}
  .cam{flex:0 0 62vw;scroll-snap-align:start}
}
@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){
  #meteo::before{display:none}
  .meteo-now{background:#123F45}.meteo-jours{background:#1A2321}.cam{background:#123F45}
  .meteo-now,.meteo-jours,.cam{-webkit-backdrop-filter:none;backdrop-filter:none}
}
}
