/* =====================================================================
   Entre Ciel et Buëch — feuille de style
   Le site est un vol : décollage (haut) → atterrissage (bas).
   Mobile d'abord ; tout en aplats ; deux palettes (Prairie / Restit).
   ===================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../polices/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

/* ---------- couleurs : Prairie (par défaut) ---------- */
:root,
[data-palette="prairie"] {
  --marque: #1F8F55;      /* logo, grands titres */
  --encre: #173B2A;       /* texte */
  --fond: #FBFAF1;
  --fond-voile: rgba(251, 250, 241, .9);
  --creme: #FFF3D2;       /* « Ce qu'on fait » */
  --clair: #D7EBC4;       /* « Où on vole » */
  --ciel-1: #E3F0C6; --ciel-2: #E9F1C8; --ciel-3: #EEF1CB;
  --ciel-4: #F4F2CD; --ciel-5: #F9F2D0; --ciel-6: #FFF3D2;
  --loin: #BCDDA4;
  --mi: #7DC283;
  --pres: #45A56A;
  --vallee: #2A8653;
  --profond: #1F7A4A;     /* « Le club », pied de page */
  --sur-profond: #FBFAF1;
  --riviere: #E6F4CF;
  --soleil: #F5C93A;      /* genêt : soleil, boutons */
  --trait: rgba(23, 59, 42, .2);
}

/* ---------- couleurs : Restit ---------- */
[data-palette="restit"] {
  --marque: #5A2A8C;
  --encre: #2E1846;
  --fond: #FBF6EF;
  --fond-voile: rgba(251, 246, 239, .9);
  --creme: #F8DCE0;
  --clair: #E4DAF5;
  --ciel-1: #D6C8F0; --ciel-2: #DDCCED; --ciel-3: #E4D0EA;
  --ciel-4: #EAD4E6; --ciel-5: #F1D8E3; --ciel-6: #F8DCE0;
  --loin: #B79FDD;
  --mi: #8D69C8;
  --pres: #6A43AD;
  --vallee: #55308F;
  --profond: #46216F;
  --sur-profond: #FBF6EF;
  --riviere: #F3C6D0;
  --soleil: #F5C93A;
  --trait: rgba(46, 24, 70, .2);
}

/* remplissages utilisés dans les dessins SVG */
.f-marque { fill: var(--marque); }   .t-marque { stroke: var(--marque); }
.f-encre { fill: var(--encre); }     .t-encre { stroke: var(--encre); }
.f-fond { fill: var(--fond); }       .t-fond { stroke: var(--fond); }
.f-blanc { fill: #fff; }
.f-creme { fill: var(--creme); }
.f-clair { fill: var(--clair); }
.f-loin { fill: var(--loin); }
.f-mi { fill: var(--mi); }
.f-pres { fill: var(--pres); }
.f-vallee { fill: var(--vallee); }
.f-profond { fill: var(--profond); }
.f-riviere { fill: var(--riviere); }
.f-soleil { fill: var(--soleil); }
.t-trait { stroke: var(--trait); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  font-variation-settings: "opsz" 14;
  transition: background-color .4s, color .4s;
}
main { display: block; overflow-x: hidden; }
svg { display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h2, h3 { margin: 0; font-weight: 760; }
.masque {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.evitement {
  position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px;
  background: var(--encre); color: var(--fond); border-radius: 10px;
}
.evitement:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--soleil); outline-offset: 3px; border-radius: 6px; }

.contenu { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

h2 {
  font-size: clamp(36px, 10.5vw, 72px);
  line-height: .95;
  font-stretch: 78%;
  font-variation-settings: "opsz" 96;
  letter-spacing: -.01em;
  color: var(--marque);
  margin-bottom: 18px;
  max-width: 12ch;
  text-wrap: balance;
}

/* repère d'altitude en tête de chaque étape du vol */
.alti-marque {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  font-weight: 650; font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.alti-marque::before {
  content: ""; width: 34px; height: 2px; background: currentColor; opacity: .6;
}

/* boutons */
.bouton {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px;
  background: var(--soleil); color: #1d1a0a;
  font-weight: 700; font-size: 18px; text-decoration: none;
  box-shadow: 0 6px 0 -1px rgba(0, 0, 0, .12);
  transition: transform .15s, box-shadow .15s;
}
.bouton:hover { transform: translateY(-2px); box-shadow: 0 8px 0 -1px rgba(0, 0, 0, .12); }
.bouton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bouton-detail { font-weight: 500; opacity: .75; font-variant-numeric: tabular-nums; }
.bouton-pile { display: flex; flex-direction: column; line-height: 1.15; padding: 8px 0; min-width: 0; }
.bouton-pile .bouton-detail { font-size: 15px; overflow-wrap: anywhere; }
.bouton { max-width: 100%; }
@media (max-width: 379px) {
  .bouton { padding: 0 16px; gap: 8px; }
  .bouton-pile .bouton-detail { font-size: 13.5px; }
}
.bouton-second { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 2px var(--encre); }
.bouton-second:hover { box-shadow: inset 0 0 0 2px var(--encre); }

/* =====================================================================
   Bandeau = instrument de vol (altimètre + vario)
   ===================================================================== */
.bandeau {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: grid; grid-template-columns: 52px 1fr auto 44px; align-items: center; gap: 8px;
  height: 60px; padding: 0 10px; padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .3s, box-shadow .3s;
}
.bandeau.plein {
  background: var(--fond-voile);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--trait);
}
.bandeau-embleme { width: 52px; height: 52px; color: var(--marque); opacity: 0; transition: opacity .3s; }
.bandeau.plein .bandeau-embleme { opacity: 1; }
.bandeau-embleme svg { width: 100%; height: 100%; fill: currentColor; }

.instrument {
  justify-self: center;
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--encre); color: var(--fond);
  font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap;
}
.instrument-alti b { font-size: 19px; font-weight: 750; font-stretch: 85%; }
.instrument-alti span { font-size: 13px; opacity: .8; }
.instrument-vario { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; opacity: .85; min-width: 74px; }
@media (max-width: 379px) {
  .instrument { gap: 8px; padding: 6px 12px; }
  .instrument-vario { min-width: 46px; }
  .vario-unite { display: none; }
}
.instrument-vario svg { width: 10px; height: 10px; fill: currentColor; transition: transform .2s; }
.instrument-vario.monte { color: var(--soleil); opacity: 1; }
.instrument-vario.monte svg { transform: rotate(180deg); }
.instrument-vario.pose svg { opacity: 0; }
/* bandeau trop étroit (petit téléphone + grand texte) : on garde l'altitude, le vario s'efface */
.bandeau.serre .instrument-vario { display: none; }

.bouton-couleurs, .bouton-menu {
  height: 44px; border: 0; padding: 0; background: none; color: var(--encre);
  cursor: pointer; font: inherit;
}
.bouton-couleurs { display: inline-flex; align-items: center; gap: 10px; padding: 0 4px; }
.pastille-couleurs {
  width: 28px; height: 28px; border-radius: 50%; overflow: hidden; display: flex;
  box-shadow: 0 0 0 2px var(--fond), 0 0 0 3.5px var(--encre);
  transform: rotate(-45deg);
}
.pastille-couleurs i { flex: 1; }
.pastille-couleurs i:first-child { background: #1F8F55; }
.pastille-couleurs i:last-child { background: #5A2A8C; }
[data-palette="restit"] .pastille-couleurs { transform: rotate(135deg); }
.pastille-couleurs { transition: transform .4s; }
.couleurs-nom { font-size: 13px; font-weight: 650; display: none; }
.bouton-menu { width: 44px; display: grid; place-items: center; }
.bouton-menu-traits { display: grid; gap: 5px; width: 24px; }
.bouton-menu-traits i { display: block; height: 2.5px; border-radius: 2px; background: currentColor; }
.bouton-menu-traits i:last-child { width: 60%; justify-self: end; }
.bouton-menu-traits i { transition: transform .25s, opacity .2s, width .25s; }
.bouton-menu[aria-expanded="true"] .bouton-menu-traits i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.bouton-menu[aria-expanded="true"] .bouton-menu-traits i:nth-child(2) { opacity: 0; }
.bouton-menu[aria-expanded="true"] .bouton-menu-traits i:nth-child(3) { width: 100%; transform: translateY(-7.5px) rotate(-45deg); }

/* annonce du changement de couleurs */
.couleurs-annonce {
  position: fixed; left: 50%; top: 70px; z-index: 40; margin: 0;
  width: max-content; max-width: min(92vw, 420px);
  transform: translate(-50%, -8px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 18px;
  background: var(--encre); color: var(--fond); font-size: 15px; line-height: 1.35; text-align: center;
  text-wrap: balance;
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .5);
  transition: opacity .25s, transform .25s;
}
.couleurs-annonce b { color: var(--soleil); font-weight: 750; }
.couleurs-annonce.visible { opacity: 1; transform: translate(-50%, 0); }

/* plan de vol (menu) */
.plan-de-vol {
  position: fixed; inset: 0; z-index: 25; overflow-y: auto;
  background: var(--profond); color: var(--sur-profond);
  padding: 76px 24px 32px;
  display: flex; flex-direction: column;
}
.plan-logo { width: min(56vw, 30vh, 280px); height: auto; align-self: center; fill: var(--sur-profond); margin: 0 0 22px; flex: none; }
.plan-de-vol[hidden] { display: none; }
.plan-titre { font-size: 15px; opacity: .75; margin: 0 0 20px; }
.plan-de-vol ol { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px dashed rgba(255, 255, 255, .35); }
.plan-de-vol ol { width: 100%; max-width: 520px; align-self: center; }
.plan-titre { width: 100%; max-width: 520px; align-self: center; }
.plan-de-vol li a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 10px 0; text-decoration: none;
}
.plan-de-vol li span { font-size: clamp(28px, 8vw, 44px); font-weight: 760; font-stretch: 80%; line-height: 1; }
.plan-de-vol li b { font-weight: 600; color: var(--soleil); font-variant-numeric: tabular-nums; }
body.menu-ouvert { overflow: hidden; }
body.menu-ouvert .bandeau { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--sur-profond); }
body.menu-ouvert .bouton-menu, body.menu-ouvert .bouton-couleurs { color: var(--sur-profond); }
/* menu ouvert : le petit logo du bandeau s'efface (le grand logo du menu prend le relais) */
body.menu-ouvert .bandeau .bandeau-embleme { opacity: 0; visibility: hidden; }

/* altimètre latéral : seulement sur grand écran (voir plus bas) */
.altimetre { display: none; }

/* =====================================================================
   1. Décollage
   ===================================================================== */
/* Le décollage tient toujours en entier dans l'écran, sans défiler :
   hauteur = écran visible (100svh : barres du navigateur affichées ; la barre Android est hors de la page,
   et si le navigateur dessine dessous, env(safe-area-inset-bottom) la retire).
   Le JS mesure le bloc de texte (--texte-h) ; le logo prend ce qui reste ; le paysage remplit le bas. */
.deco {
  --deco-haut: 68px;          /* place du bandeau */
  --texte-h: 190px;           /* remplacé par la vraie mesure (site.js) */
  --paysage-min: 120px;
  --bas-sur: env(safe-area-inset-bottom, 0px);
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding-top: var(--deco-haut);
  text-align: center;
  background: linear-gradient(to bottom, var(--ciel-1) 0%, var(--ciel-3) 34%, var(--ciel-6) 68%, var(--ciel-6) 100%);
}
.deco-logo {
  position: relative; flex: none; color: var(--marque); margin-top: 6px;
  width: max(150px, min(80vw, 460px, calc(100vh - var(--deco-haut) - var(--texte-h) - var(--paysage-min) - var(--bas-sur) - 14px)));
  width: max(150px, min(80vw, 460px, calc(100svh - var(--deco-haut) - var(--texte-h) - var(--paysage-min) - var(--bas-sur) - 14px)));
}
.logo-hero { width: 100%; height: auto; overflow: visible; }
.logo-hero .a-aile { opacity: 0; }   /* l'aile est redessinée sur le calque .logo-envol */
.logo-envol, .logo-aile { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo-envol { transform-origin: 79% 37%; }
.logo-aile {
  overflow: visible; fill: var(--marque);
  /* détourage couleur du ciel : sépare l'aile du soleil et des arcs quand elle passe devant */
  stroke: var(--ciel-3); stroke-width: 10; stroke-linejoin: round; paint-order: stroke;
}
.deco-texte { position: relative; z-index: 2; padding: 0 20px; display: flex; flex-direction: column; align-items: center; }
.deco-accroche {
  font-size: clamp(19px, 5.2vw, 24px); line-height: 1.25; font-weight: 560;
  max-width: 21em; margin: 14px 0 20px; text-wrap: balance;
}
.vent-direct {
  display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0;
  font-size: 14px; font-weight: 550; font-variant-numeric: tabular-nums;
}
.vent-pastille { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--marque); }
.vent-pastille::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--marque); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .vent-direct.ok .vent-pastille::after { animation: pouls 2.4s infinite; }
}
@keyframes pouls { 0% { opacity: .5; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(3.2); } }
.paysage { width: 100%; flex: 1 0 var(--paysage-min); min-height: var(--paysage-min); }
/* bande sous le paysage, de la hauteur de la barre système si le navigateur dessine dessous */
.deco::after { content: ""; flex: none; align-self: stretch; height: var(--bas-sur); background: var(--profond); }
/* petits écrans (barres du navigateur + barre Android à 3 boutons) : texte un peu plus serré */
@media (max-width: 899px) and (max-height: 700px) {
  .deco { --deco-haut: 60px; --paysage-min: 104px; }
  .deco-accroche { font-size: 17px; margin: 8px 0 14px; }
  .deco .bouton { min-height: 46px; }
  .vent-direct { margin-top: 10px; }
}
.manche { transition: transform 1.2s cubic-bezier(.3, 1.4, .5, 1); }

/* --- le gonflage du logo : le seul grand moment animé --- */
@media (prefers-reduced-motion: no-preference) {
  .logo-hero g { transform-box: fill-box; }
  .a-arcs { transform-origin: 50% 50%; animation: arcs 1s .05s cubic-bezier(.2, .8, .2, 1) both; }
  .a-soleil { transform-origin: 50% 50%; animation: soleil 1.1s .25s cubic-bezier(.2, .8, .2, 1) both; }
  .a-relief { animation: relief 1.3s .45s cubic-bezier(.5, 0, .2, 1) both; }
  .logo-envol { will-change: transform; animation: gonflage 1.4s .9s cubic-bezier(.2, .85, .25, 1) both; }
  .logo-aile { will-change: transform; animation: halo 1.8s .9s ease-out both, flotte 7s 2.6s ease-in-out infinite; }
  .a-nom { animation: monte 1s 1.25s cubic-bezier(.2, .8, .2, 1) both; }
  .a-signature { animation: monte 1s 1.55s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes arcs { from { opacity: 0; transform: rotate(-40deg) scale(.92); } }
@keyframes soleil { from { opacity: 0; transform: translateY(26%); } }
@keyframes relief { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes gonflage {
  0% { opacity: 0; transform: translate(-4%, 14%) rotate(-22deg) scale(.5, .3); }
  35% { opacity: 1; }
  100% { transform: none; }
}
@keyframes halo { 0%, 60% { stroke-width: 46; } 100% { stroke-width: 10; } }
@keyframes flotte { 50% { transform: translateY(-1.6%); } }
@keyframes monte { from { opacity: 0; transform: translateY(18%); } }

/* =====================================================================
   2. Le club
   ===================================================================== */
.club { background: var(--profond); color: var(--sur-profond); padding: 36px 0 120px; }
.club h2 { color: var(--soleil); }
.club-texte p:last-child { max-width: 30em; font-size: 18px; }
.club-grille { display: grid; gap: 36px; }

.licence {
  margin: 0; justify-self: center; width: min(100%, 360px);
  background:
    repeating-linear-gradient(90deg, var(--soleil) 0 22px, var(--marque) 22px 30px) left bottom / 100% 16px no-repeat,
    var(--fond);
  padding-bottom: 16px;
  color: var(--encre);
  border-radius: 18px;
  transform: rotate(-3deg);
  box-shadow: 0 22px 36px -18px rgba(0, 0, 0, .55);
}
.licence-tete { display: flex; align-items: center; gap: 12px; padding: 16px 18px 12px; }
.licence-tete svg { width: 54px; height: 54px; flex: none; fill: var(--marque); }
.licence-nom { margin: 0; font-weight: 760; font-size: 22px; font-stretch: 82%; line-height: 1.05; color: var(--marque); }
.licence-sous { margin: 2px 0 0; font-size: 14px; }
.licence-champs {
  margin: 0; padding: 4px 18px 16px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px;
}
.licence-champs div { border-top: 1.5px dashed var(--trait); padding-top: 6px; }
.licence-large { grid-column: 1 / -1; }
.licence-champs dt { font-size: 12.5px; opacity: .7; }
.licence-champs dd { margin: 0; font-weight: 650; font-size: 16px; line-height: 1.25; font-variant-numeric: tabular-nums; }

/* =====================================================================
   3. Ce qu'on fait (le thermique)
   ===================================================================== */
.ensemble { position: relative; background: var(--creme); padding: 8px 0 96px; }
.nuages { position: absolute; left: 0; right: 0; top: -62px; width: 100%; height: 64px; }
.ensemble-grille { display: grid; gap: 8px; }
.thermique { width: min(70vw, 280px); height: auto; justify-self: center; margin: -12px 0 8px; }
@media (prefers-reduced-motion: no-preference) {
  .spirale { animation: spirale 18s linear infinite; }
}
@keyframes spirale { to { stroke-dashoffset: -110; } }

.activites { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.activites li { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: start; }
.activites svg { width: 52px; height: 52px; grid-row: span 2; }
.activites h3 { font-size: 24px; font-stretch: 85%; line-height: 1.1; color: var(--encre); margin-top: 4px; }
.activites p { margin: 4px 0 0; max-width: 28em; }

/* =====================================================================
   4. Où on vole
   ===================================================================== */
.terrains { position: relative; background: var(--clair); padding: 10px 0 100px; }
.crete { position: absolute; left: 0; right: 0; top: -38px; width: 100%; height: 40px; }
.terrains-intro { font-size: 18px; max-width: 28em; }
.terrains-intro strong { font-weight: 750; color: var(--marque); }
.terrains-grille { display: grid; gap: 34px; margin-top: 18px; }

.rose {
  margin: 0; padding: 20px 16px 18px; border-radius: 26px;
  background: var(--fond);
}
.rose h3 { font-size: 26px; font-stretch: 82%; line-height: 1.05; text-align: center; color: var(--marque); }
.rose-svg { width: 100%; max-width: 380px; height: auto; margin: 6px auto 0; overflow: visible; }
.rose-lettres text { font-size: 17px; font-weight: 750; fill: var(--encre); }
.rose-vitesse { font-size: 12.5px; font-weight: 750; fill: #fff; font-variant-numeric: tabular-nums; }
.rose-vent-tige { stroke: var(--soleil); stroke-width: 9; stroke-linecap: round; }
.rose-vent-pointe { fill: var(--soleil); }
.rose-vent { transition: transform 1.2s cubic-bezier(.3, 1.3, .5, 1); }
.rose-deco circle { fill: var(--fond); stroke: var(--encre); stroke-width: 2.5; }
.rose-deco text { font-size: 13px; font-weight: 650; fill: var(--encre); }
.rose-deco.dans-l-axe circle { fill: var(--marque); stroke: var(--marque); }
.rose-deco.dans-l-axe text { fill: var(--marque); font-weight: 800; }
.rose figcaption { text-align: center; }
.rose-verdict { font-weight: 650; font-size: 18px; line-height: 1.3; margin: 10px auto 8px; max-width: 24em; text-wrap: balance; }
.rose-note { font-size: 13.5px; line-height: 1.4; opacity: .78; max-width: 32em; margin: 0 auto; }

.massif + .massif { margin-top: 26px; }
.massif h3 { font-size: 26px; font-stretch: 82%; line-height: 1.05; color: var(--encre); margin-bottom: 8px; }
.massif h3 span { font-size: 15px; font-weight: 500; font-stretch: 100%; opacity: .75; }
.massif ul { list-style: none; margin: 0; padding: 0; }
.terrain {
  border-top: 1.5px solid var(--trait);
  min-height: 48px; display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 4px;
  padding: 10px 0;
}
.terrain details { width: 100%; }
.terrain summary {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 4px;
  cursor: pointer; list-style: none; min-height: 28px;
}
.terrain summary::-webkit-details-marker { display: none; }
.terrain summary::after {
  content: "+"; margin-left: auto; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--encre); color: var(--fond);
  font-weight: 700; line-height: 1;
}
.terrain details[open] summary::after { content: "–"; }
.terrain-nom { font-weight: 650; }
.terrain-alti { font-variant-numeric: tabular-nums; opacity: .75; font-size: 15px; }
.secteurs { display: inline-flex; gap: 4px; }
.secteurs b {
  font-size: 12.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px;
  background: var(--fond); box-shadow: inset 0 0 0 1.5px var(--trait);
}
.etiquette { font-size: 13px; padding: 2px 8px; border-radius: 999px; background: var(--fond); opacity: .85; }
.terrain.dans-l-axe .terrain-nom { color: var(--marque); }
.terrain.dans-l-axe .terrain-nom::after {
  content: "dans l'axe"; margin-left: 8px; font-size: 12.5px; font-weight: 700; color: #1d1a0a;
  background: var(--soleil); padding: 2px 8px; border-radius: 999px; vertical-align: 1px;
}
.terrain dl { margin: 10px 0 4px 26px; display: grid; gap: 8px; }
.terrain dl div { display: grid; gap: 0; }
.terrain dt { font-size: 13px; font-weight: 700; opacity: .7; }
.terrain dd { margin: 0; max-width: 34em; }
.picto-deco, .picto-attero { display: inline-block; flex: none; width: 16px; height: 16px; }
.picto-deco { background: var(--marque); clip-path: polygon(50% 6%, 100% 94%, 0 94%); }
.picto-attero { border-radius: 50%; border: 4px solid var(--marque); }
.legende { display: flex; gap: 18px; margin: 18px 0 10px; font-size: 14px; opacity: .85; }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.lien-fleche { font-weight: 650; text-underline-offset: 3px; }

/* =====================================================================
   5. Atterrissage
   ===================================================================== */
.attero { position: relative; background: var(--soleil); color: #1d1a0a; padding: 6px 0 90px; }
.attero .alti-marque { color: var(--encre); }
.champ { position: absolute; left: 0; right: 0; top: -34px; width: 100%; height: 36px; }
.attero-grille { display: grid; gap: 10px; }
.cible { width: min(100%, 380px); height: auto; justify-self: center; }
.attero h2 { color: var(--encre); }
.attero-texte > p { font-size: 18px; max-width: 26em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 22px; }
.attero .bouton { background: var(--encre); color: var(--fond); }
.attero .bouton svg { fill: currentColor; stroke: none; }
.attero .bouton-second { background: transparent; color: var(--encre); }
.attero .bouton-second svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; width: 20px; height: 20px; }
.adresse { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.adresse svg { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* =====================================================================
   Pied de page
   ===================================================================== */
.pied { background: var(--profond); color: var(--sur-profond); padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0px)); }
.pied-grille { display: grid; gap: 18px; align-items: center; }
.pied-logo { width: 150px; height: auto; fill: var(--sur-profond); }
.pied p { font-size: 15px; max-width: 34em; }
.pied-sources { opacity: .7; font-size: 13.5px !important; margin: 0; }
.pied-sources a { text-underline-offset: 2px; }
/* bas du pied : mentions légales | réalisation */
.pied-bas {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px;
  margin-top: 26px; padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  font-size: 14px;
}
.pied-bas a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.pied-bas .pied-mentions { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: 3px; }
.pied-bas .pied-mentions:hover { text-decoration-color: currentColor; }
.pied-realisation { opacity: .85; transition: opacity .2s; }
.pied-realisation:hover { opacity: 1; }
.pied-realisation img { display: block; width: auto; height: 22px; }

/* =====================================================================
   Tablette et ordinateur
   ===================================================================== */
@media (min-width: 560px) {
  .couleurs-nom { display: inline; }
}
/* ESSAI du 06/11 : sur téléphone, le nom du mode (« Entre ciel » / « et Buëch ») sous la pastille.
   Pour revenir en arrière : supprimer ce bloc @media. */
@media (max-width: 559px) {
  .bouton-couleurs { flex-direction: column; justify-content: center; gap: 3px; padding: 0 2px; }
  .bouton-couleurs .pastille-couleurs { width: 24px; height: 24px; }
  .couleurs-nom { display: block; font-size: 10.5px; font-weight: 700; line-height: 1; white-space: nowrap; }
}
@media (min-width: 760px) {
  .bandeau { padding-left: 18px; padding-right: 18px; }
  .club { padding: 60px 0 140px; }
  .club-grille { grid-template-columns: 1.15fr .85fr; align-items: center; }
  .ensemble-grille { grid-template-columns: 300px 1fr; column-gap: 48px; }
  .ensemble-tete { grid-column: 1 / -1; }
  .thermique { width: 100%; margin: 0; align-self: start; }
  .ensemble-grille { grid-template-columns: 240px 1fr; }
  .attero-grille { grid-template-columns: 1fr 1fr; align-items: center; column-gap: 40px; }
  .attero-texte { order: -1; }
  .pied-grille { grid-template-columns: 170px 1fr; gap: 32px; }
  .pied-logo { width: 170px; }
}
@media (min-width: 900px) {
  /* décollage en deux colonnes : logo | texte, paysage entier dessous */
  .deco {
    --deco-haut: 72px;
    --paysage-h: clamp(200px, min(25vw, 40svh), 460px);
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto;
    column-gap: 56px; align-items: center; text-align: left;
  }
  .deco-logo {
    grid-column: 1; grid-row: 1; justify-self: end; margin: 0;
    width: max(220px, min(36vw, 460px, calc(100vh - var(--deco-haut) - var(--paysage-h) - var(--bas-sur) - 28px)));
    width: max(220px, min(36vw, 460px, calc(100svh - var(--deco-haut) - var(--paysage-h) - var(--bas-sur) - 28px)));
  }
  .deco::after { grid-column: 1 / -1; grid-row: 3; }
  .deco-texte { grid-column: 2; grid-row: 1; align-items: flex-start; padding: 0; max-width: 480px; }
  .deco-accroche { font-size: clamp(24px, 2.4vw, 34px); margin: 0 0 26px; }
  .paysage { grid-column: 1 / -1; grid-row: 2; flex: none; min-height: 0; height: var(--paysage-h); }
}
@media (min-width: 1100px) {
  /* le plan de vol quitte le menu et s'affiche en permanence sur le côté */
  .bouton-menu { visibility: hidden; }
  .contenu { max-width: min(1120px, calc(100vw - 380px)); }
  .deco { grid-template-columns: 1fr 1fr 180px; }   /* 3ᵉ colonne libre : la place de l'altimètre */
  .altimetre {
    display: block; position: fixed; right: 20px; top: 50%; z-index: 20;
    transform: translateY(-50%);
    width: 158px; padding: 16px 14px 14px; border-radius: 24px;
    background: var(--fond-voile);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 0 0 1px var(--trait), 0 18px 36px -22px rgba(0, 0, 0, .55);
  }
  .altimetre-titre { margin: 0 0 6px; font-size: 13px; font-weight: 600; opacity: .7; text-align: right; }
  .altimetre-piste { position: relative; height: min(50vh, 430px); margin: 30px 0 24px; }
  .altimetre-piste::before {
    content: ""; position: absolute; right: 9px; top: 0; bottom: 0; width: 2px;
    background: repeating-linear-gradient(to bottom, var(--encre) 0 2px, transparent 2px 8px); opacity: .35;
  }
  .altimetre ol { list-style: none; margin: 0; padding: 0; }
  .altimetre li { position: absolute; left: 0; right: 0; transform: translateY(-50%); transition: top .3s; }
  .altimetre a {
    display: flex; align-items: center; justify-content: flex-end; gap: 10px;
    text-decoration: none; color: var(--encre); padding: 3px 0;
  }
  .altimetre a span {
    display: flex; flex-direction: column; align-items: flex-end;
    font-size: 15px; font-weight: 650; line-height: 1.1; font-stretch: 90%;
  }
  .altimetre a b { font-size: 12px; font-weight: 550; opacity: .7; font-variant-numeric: tabular-nums; font-stretch: 100%; }
  .altimetre a::after {
    content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px; border-radius: 50%;
    background: var(--fond); box-shadow: inset 0 0 0 2.5px var(--encre);
    transition: background-color .2s, box-shadow .2s;
  }
  .altimetre a:hover span, .altimetre li.actif a span { color: var(--marque); }
  .altimetre li.actif a::after { background: var(--marque); box-shadow: 0 0 0 4px var(--fond-voile), 0 0 0 5.5px var(--marque); }
  .altimetre-pilote {
    position: absolute; right: -4px; width: 30px; height: 24px; top: 0;
    transform: translateY(-100%); fill: var(--marque); pointer-events: none;
    transition: top .12s linear;
  }
}
@media (min-width: 1000px) {
  .ensemble-grille { grid-template-columns: 300px 1fr; }
  .activites { grid-template-columns: 1fr 1fr; gap: 34px 32px; }
  .terrains-grille { grid-template-columns: 420px 1fr; align-items: start; gap: 48px; }
  .rose { position: sticky; top: 80px; }
}

/* =====================================================================
   Pages simples : mentions légales, page introuvable (404)
   ===================================================================== */
.simple-tete { background: linear-gradient(var(--ciel-1), var(--fond)); padding: 16px 0 4px; }
.simple-tete .contenu { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.simple-logo { display: block; width: 88px; color: var(--marque); }
.logo-masque {
  display: block; width: 100%; aspect-ratio: 1081 / 1067; background: currentColor;
  -webkit-mask: url("../img/entre-ciel-et-buech.svg") center / contain no-repeat;
  mask: url("../img/entre-ciel-et-buech.svg") center / contain no-repeat;
}
.simple-retour { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; text-underline-offset: 3px; }
.simple-retour:hover { color: var(--marque); }
.simple { padding: 24px 0 64px; }
.page-simple { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.simple { flex: 1; }
.page-simple .contenu { max-width: 760px; }
.simple h1 {
  margin: 0 0 18px; color: var(--marque);
  font-size: clamp(42px, 12vw, 80px); line-height: .95; font-weight: 760;
  font-stretch: 78%; font-variation-settings: "opsz" 96; letter-spacing: -.01em;
}
.simple h2 {
  max-width: none; margin: 34px 0 8px;
  font-size: 21px; line-height: 1.2; letter-spacing: 0;
  font-stretch: 90%; font-variation-settings: "opsz" 24;
}
.simple p { max-width: 38em; }
.simple a { text-underline-offset: 3px; }
.simple-chapo { font-size: 19px; }
.simple .bouton { margin-top: 10px; }
.pied-simple { padding-top: 14px; }
.pied-simple .pied-bas { margin-top: 0; border-top: 0; }
