/* ==========================================================================
   Congrès régional Spéléo & Canyon 2027 — CDS73
   Direction : « Descente ». Un site sombre, comme sous terre, ponctué
   d'intermèdes clairs couleur calcaire. Deux accents aux rôles distincts :
   le rouge Savoie pour agir (s'inscrire), la lueur de frontale pour le temps
   et la lumière (compte à rebours, jauge de profondeur, survols).
   ========================================================================== */

/* Polices hébergées sur le site (pas d'appel à Google Fonts : conformité RGPD).
   Licence SIL Open Font License, voir assets/fonts/. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 200; font-display: swap; src: url("../fonts/montserrat-latin-200-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/montserrat-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Sous terre */
  --gouffre: #0c1011;        /* fond principal */
  --roche: #151b1d;          /* surfaces sombres */
  --roche-2: #1d2427;
  --filet-s: rgba(232, 230, 223, 0.14);
  --os: #eeece6;             /* texte sur sombre */
  --os-2: rgba(238, 236, 230, 0.66);
  --os-3: rgba(238, 236, 230, 0.42);

  /* Surface */
  --calcaire: #e4e3dd;       /* intermèdes clairs */
  --calcaire-2: #d8d7cf;
  --filet-c: rgba(18, 24, 26, 0.16);
  --encre: #12181a;          /* texte sur clair */
  --encre-2: rgba(18, 24, 26, 0.68);

  /* Accents */
  --rouge: #c21f2e;          /* agir */
  --rouge-vif: #d9303f;
  --lueur: #eeb45c;          /* lumière, temps */

  --f-titre: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --f-texte: "Open Sans", "Helvetica Neue", Arial, sans-serif;

  --gout: clamp(18px, 4.2vw, 56px);
  --max: 1320px;
  --entete: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--entete) + 24px); }
body {
  margin: 0;
  background: var(--gouffre);
  color: var(--os);
  font-family: var(--f-texte);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-titre); font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
strong { font-weight: 600; }
::selection { background: var(--lueur); color: var(--gouffre); }
:focus-visible { outline: 2px solid var(--lueur); outline-offset: 4px; }

.cadre { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gout); }

/* Grain : texture légère sur les zones sombres */
.grain { position: relative; isolation: isolate; }
.grain::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typographie utilitaire ---------- */
.eyebrow {
  font-family: var(--f-titre); font-weight: 600; font-size: .7rem;
  letter-spacing: .32em; text-transform: uppercase; color: var(--os-2);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.clair .eyebrow { color: var(--encre-2); }
.display {
  font-size: clamp(2.3rem, 1.2rem + 4.6vw, 5.4rem); font-weight: 800; letter-spacing: -.04em; line-height: .98;
}
.display .fin { font-weight: 200; letter-spacing: -.03em; }
.titre { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem); font-weight: 700; letter-spacing: -.035em; }
.titre .fin { font-weight: 200; }
.sous-titre { font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); font-weight: 600; letter-spacing: -.02em; }
.enonce {
  font-family: var(--f-titre); font-weight: 300; letter-spacing: -.02em;
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.35rem); line-height: 1.28; max-width: 26ch;
}
.enonce em { font-style: normal; color: var(--lueur); }
.clair .enonce em { color: var(--rouge); }
.chapo { font-size: 1.18rem; line-height: 1.6; color: var(--os-2); max-width: 54ch; }
.clair .chapo { color: var(--encre-2); }
.texte { max-width: 62ch; color: var(--os-2); }
.texte strong { color: var(--os); }
.clair .texte { color: var(--encre-2); }
.clair .texte strong { color: var(--encre); }
.texte > * + * { margin-top: 1.1em; }
.a-venir {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-titre); font-size: .68rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--lueur);
}
.a-venir::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.clair .a-venir { color: #9a5f14; }
.clair .a-venir::before { box-shadow: none; }

/* ---------- Liens & boutons ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: var(--h); padding: 0 28px; border-radius: 999px;
  font-family: var(--f-titre); font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), gap .35s var(--ease);
}
.btn:hover { gap: 20px; }
.btn-rouge { background: var(--rouge); color: #fff; }
.btn-rouge:hover { background: var(--rouge-vif); }
.btn-ligne { border-color: var(--filet-s); color: var(--os); background: rgba(12,16,17,.2); }
.btn-ligne:hover { border-color: var(--os); }
.clair .btn-ligne { border-color: var(--filet-c); color: var(--encre); background: transparent; }
.clair .btn-ligne:hover { border-color: var(--encre); }
.btn svg { width: 16px; height: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.lien {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--f-titre); font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 1px solid currentColor;
  transition: gap .35s var(--ease), color .35s var(--ease);
}
.lien:hover { gap: 16px; color: var(--lueur); }
.clair .lien:hover { color: var(--rouge); }
.fleche { display: inline-block; width: 18px; height: 10px; }

/* ==========================================================================
   En-tête
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.plein {
  background: rgba(12, 16, 17, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--filet-s);
}
.entete { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--entete); }
.marque { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--os); }
/* Logo en écusson : grand en haut de page, il se réduit dès qu'on fait défiler */
.marque { --logo-box: 54px; --logo-echelle: 2.2; }
.marque-logo { position: relative; width: var(--logo-box); height: var(--logo-box); flex-shrink: 0; }
.marque-logo img, .marque-logo svg {
  width: 100%; height: 100%; object-fit: contain; display: block;
  transform-origin: 0 0; transform: translateY(2px) scale(var(--logo-echelle));
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .55));
  transition: transform .5s var(--ease), filter .5s var(--ease);
}
.marque-texte { display: grid; line-height: 1.15; white-space: nowrap; overflow: hidden;
  max-width: 0; opacity: 0; transition: max-width .5s var(--ease), opacity .4s var(--ease); }
.site-header.plein .marque-logo img, .site-header.plein .marque-logo svg,
body.menu-ouvert .marque-logo img, body.menu-ouvert .marque-logo svg { transform: none; filter: none; }
.site-header.plein .marque-texte, body.menu-ouvert .marque-texte { max-width: 280px; opacity: 1; }
.marque-texte b { font-family: var(--f-titre); font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.marque-texte small { font-family: var(--f-titre); font-size: .66rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--os-3); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav-liste { display: flex; align-items: center; gap: 2px; }
.nav-liste > li { position: relative; }
.nav-lien, .nav-ouvrir {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  font-family: var(--f-titre); font-weight: 600; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--os-2); text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: color .3s var(--ease);
}
.nav-lien:hover, .nav-ouvrir:hover, .nav-ouvrir[aria-expanded="true"] { color: var(--os); }
.nav-lien[aria-current="page"], .nav-ouvrir.actif { color: var(--os); }
.nav-lien[aria-current="page"]::after, .nav-ouvrir.actif::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: var(--lueur);
}
.nav-ouvrir svg { width: 9px; height: 9px; transition: transform .3s var(--ease); }
.nav-ouvrir[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-benevoles { color: var(--os); }
.nav-benevoles::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lueur); box-shadow: 0 0 10px var(--lueur); margin-right: 4px; }
.nav-inscription { --h: 42px; padding: 0 22px; margin-left: 10px; font-size: .7rem; }

.sous-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; translate: -50% 0; min-width: 300px;
  padding: 10px; background: var(--roche); border: 1px solid var(--filet-s); border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.sous-menu a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 9px; text-decoration: none; transition: background-color .25s; }
.sous-menu a b { font-family: var(--f-titre); font-weight: 600; font-size: .9rem; letter-spacing: -.01em; color: var(--os); }
.sous-menu a span { font-size: .8rem; color: var(--os-3); line-height: 1.4; }
.sous-menu a:hover, .sous-menu a[aria-current="page"] { background: var(--roche-2); }
.sous-menu a[aria-current="page"] b { color: var(--lueur); }

.btn-menu {
  display: none; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border-radius: 999px;
  background: rgba(12,16,17,.3); border: 1px solid var(--filet-s); color: var(--os); cursor: pointer;
  font-family: var(--f-titre); font-weight: 600; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
}
.btn-menu i { position: relative; width: 16px; height: 8px; }
.btn-menu i::before, .btn-menu i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.btn-menu i::before { top: 0; }
.btn-menu i::after { top: 6.5px; }
.btn-menu[aria-expanded="true"] i::before { top: 3.25px; transform: rotate(45deg); }
.btn-menu[aria-expanded="true"] i::after { top: 3.25px; transform: rotate(-45deg); }
.inscription-mobile { display: none; }

@media (max-width: 1140px) {
  .btn-menu { display: inline-flex; }
  .entete-droite { display: flex; align-items: center; gap: 8px; }
  .inscription-mobile { display: inline-flex; --h: 42px; padding: 0 18px; font-size: .66rem; }
  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: calc(var(--entete) + env(safe-area-inset-top, 0px) + 16px) var(--gout) calc(40px + env(safe-area-inset-bottom, 0px));
    background: var(--gouffre); overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s linear .35s;
  }
  .nav.ouvert { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
  .nav-liste { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-liste > li { border-bottom: 1px solid var(--filet-s); }
  .nav-lien, .nav-ouvrir {
    width: 100%; height: auto; padding: 18px 0; justify-content: space-between;
    font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; text-transform: none; color: var(--os);
  }
  .nav-lien[aria-current="page"]::after, .nav-ouvrir.actif::after { display: none; }
  .nav-lien[aria-current="page"], .nav-ouvrir.actif { color: var(--lueur); }
  .nav-ouvrir svg { width: 14px; height: 14px; }
  .nav-benevoles { justify-content: flex-start; }
  .nav-benevoles::before { width: 8px; height: 8px; margin-right: 12px; }
  .sous-menu { position: static; translate: none; min-width: 0; padding: 0 0 14px; background: none; border: 0; box-shadow: none; }
  .sous-menu a { padding: 10px 0; }
  .nav-inscription { margin: 28px 0 0; width: 100%; --h: 58px; font-size: .8rem; }
}
@media (max-width: 560px) {
  .marque-texte small { display: none; }
  .marque-texte b .long { display: none; }
}
@media (min-width: 561px) { .marque-texte b .court { display: none; } }
@media (max-width: 440px) { .btn-menu span { display: none; } .btn-menu { padding: 0 13px; } }
body.menu-ouvert { overflow: hidden; }
body.menu-ouvert .site-header { background: var(--gouffre); }

/* ==========================================================================
   Jauge de profondeur (bureau)
   ========================================================================== */
.jauge {
  position: fixed; left: 22px; top: 50%; translate: 0 -50%; z-index: 40; height: min(56vh, 460px);
  display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 12px; pointer-events: none;
  font-family: var(--f-titre); font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--os-2);
  padding: 14px 8px; border-radius: 999px; background: rgba(12,16,17,.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.jauge-rail { position: relative; width: 9px; background:
  repeating-linear-gradient(to bottom, var(--os-3) 0 1px, transparent 1px 10%) center / 9px 100% no-repeat,
  linear-gradient(var(--os-3), var(--os-3)) center / 1px 100% no-repeat; }
.jauge-niveau { position: absolute; left: 50%; top: 0; width: 1px; translate: -50% 0; background: var(--lueur); height: var(--p, 0%); box-shadow: 0 0 10px var(--lueur); }
.jauge-niveau::after { content: ""; position: absolute; bottom: -4px; left: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--lueur); box-shadow: 0 0 14px var(--lueur); }
.jauge-valeur { color: var(--lueur); font-variant-numeric: tabular-nums; writing-mode: vertical-rl; rotate: 180deg; }
.jauge-titre { writing-mode: vertical-rl; rotate: 180deg; }
@media (max-width: 1400px) { .jauge { display: none; } }

/* ==========================================================================
   Hero d'accueil
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(620px, 94svh, 980px);
  display: grid; align-items: end;
  padding-top: calc(var(--entete) + 40px);
}
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; animation: plonge 2.8s var(--ease) both; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 55% 42%, rgba(238,180,92,.10), transparent 70%),
    linear-gradient(180deg, rgba(12,16,17,.6) 0%, rgba(12,16,17,.05) 28%, rgba(12,16,17,.45) 62%, var(--gouffre) 100%),
    linear-gradient(90deg, rgba(12,16,17,.72) 0%, rgba(12,16,17,.1) 55%, rgba(12,16,17,0) 100%);
}
.hero-grille {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end;
  padding-bottom: clamp(28px, 4vw, 48px);
}
.hero h1 {
  font-size: clamp(3.4rem, 1rem + 10.5vw, 11.5rem); font-weight: 800; line-height: .84; letter-spacing: -.055em;
  margin: 0;
}
.hero h1 .l { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .l > span { display: inline-block; animation: monte 1.2s var(--ease) both; }
.hero h1 .l-petit {
  font-size: clamp(.8rem, .7rem + .35vw, 1.05rem); font-weight: 600; letter-spacing: .42em; text-transform: uppercase;
  line-height: 1; color: var(--os); margin-bottom: clamp(18px, 2.2vw, 30px); overflow: visible;
}
.hero h1 .l-petit > span { display: inline-flex; align-items: center; gap: 18px; }
.hero h1 .l-petit > span::before { content: ""; width: clamp(28px, 4vw, 56px); height: 1px; background: var(--lueur); box-shadow: 0 0 10px var(--lueur); }
.hero h1 .l:nth-child(2) > span { animation-delay: .08s; }
.hero h1 .l:nth-child(3) > span { animation-delay: .16s; font-weight: 200; letter-spacing: -.05em; }
.hero h1 .l:nth-child(3) em { font-style: normal; color: var(--lueur); font-weight: 200; }
.hero-meta {
  display: grid; gap: 18px; min-width: 250px; padding: 4px 0 .9rem 28px;
  border-left: 1px solid var(--filet-s);
  animation: apparait 1.2s .5s var(--ease) both;
}
.hero-meta dl { margin: 0; display: grid; gap: 14px; }
.hero-meta dt { font-family: var(--f-titre); font-size: .62rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--os-3); }
.hero-meta dd { margin: 2px 0 0; font-family: var(--f-titre); font-weight: 500; font-size: 1.05rem; letter-spacing: -.01em; }
.hero-bas {
  border-top: 1px solid var(--filet-s);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 48px; align-items: center;
  padding-block: 26px 34px;
  animation: apparait 1.2s .7s var(--ease) both;
}
.hero-acces { color: var(--os-2); font-size: .95rem; max-width: 32ch; }
.compte { display: flex; align-items: baseline; gap: clamp(14px, 2.4vw, 30px); font-family: var(--f-titre); }
.compte div { display: flex; align-items: baseline; gap: 6px; }
.compte b { font-weight: 200; font-size: clamp(2rem, 1.2rem + 2.4vw, 3.3rem); letter-spacing: -.04em; line-height: 1; color: var(--lueur); font-variant-numeric: tabular-nums; }
.compte small { font-size: .62rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--os-3); }
.compte-fini { font-family: var(--f-titre); font-weight: 300; font-size: 1.4rem; color: var(--lueur); }

@media (max-width: 980px) {
  .hero-grille { grid-template-columns: 1fr; }
  .hero-meta { min-width: 0; padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--filet-s); }
  .hero-meta dl { grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 36px; }
  .hero-bas { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .hero { padding-top: calc(var(--entete) + 230px); }
  .hero-photo img { object-position: 50% 0; }
}
@media (max-width: 560px) {
  .hero-meta dl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .marque-texte { display: none; }
}

@keyframes monte { from { transform: translateY(105%); } to { transform: none; } }
@keyframes apparait { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes plonge { from { transform: scale(1.08); } to { transform: none; } }

/* ==========================================================================
   Bandeau des pages intérieures
   ========================================================================== */
.bandeau {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: calc(var(--entete) + clamp(70px, 10vw, 150px));
  padding-bottom: clamp(48px, 6vw, 88px);
}
.bandeau-photo { position: absolute; inset: 0; z-index: -2; }
.bandeau-photo img { width: 100%; height: 100%; object-fit: cover; animation: plonge 2.4s var(--ease) both; }
.bandeau::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,16,17,.72) 0%, rgba(12,16,17,.45) 45%, var(--gouffre) 100%);
}
.bandeau-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .55fr); gap: 32px 64px; align-items: end; }
.bandeau h1 { font-size: clamp(2.8rem, 1rem + 6.4vw, 7.2rem); font-weight: 800; line-height: .9; letter-spacing: -.05em; margin-top: 22px; }
.bandeau h1 .fin { font-weight: 200; display: block; }
.bandeau h1 > span { display: inline-block; animation: apparait 1.1s var(--ease) both; }
.bandeau .chapo { color: var(--os-2); animation: apparait 1.1s .25s var(--ease) both; }
.fil { display: flex; gap: 10px; font-family: var(--f-titre); font-size: .66rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--os-3); margin-bottom: 28px; }
.fil a { text-decoration: none; color: var(--os-2); }
.fil a:hover { color: var(--lueur); }
@media (max-width: 860px) { .bandeau-grille { grid-template-columns: 1fr; } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: clamp(80px, 11vw, 168px); position: relative; }
.section.serre { padding-block: clamp(56px, 7vw, 104px); }
.section + .section:not(.clair):not(.courbes) { padding-top: 0; }
.clair + .section, .courbes + .section { padding-top: clamp(80px, 11vw, 168px) !important; }
.clair { background: var(--calcaire); color: var(--encre); }
.clair + .clair { padding-top: 0; }
.courbes { background: var(--roche) url("../img/courbes-sombre.svg") center / cover no-repeat; }
.clair.courbes { background: var(--calcaire) url("../img/courbes-clair.svg") center / cover no-repeat; }

/* Grille éditoriale : étiquette à gauche, contenu à droite */
.bloc { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px clamp(32px, 5vw, 96px); }
.bloc + .bloc { margin-top: clamp(64px, 8vw, 120px); }
.bloc-etiquette { position: relative; }
.bloc-etiquette .eyebrow { position: sticky; top: calc(var(--entete) + 32px); }
.bloc-corps > * + * { margin-top: 28px; }
@media (max-width: 860px) { .bloc { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

.deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(32px, 5vw, 80px); }
.trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(28px, 4vw, 56px); }
@media (max-width: 860px) { .deux, .trois { grid-template-columns: 1fr; } }
.quatre { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px clamp(24px, 3vw, 44px); }
@media (max-width: 960px) { .quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .quatre { grid-template-columns: 1fr; } }

/* Colonne de texte avec filet supérieur */
.colonne { border-top: 1px solid var(--filet-s); padding-top: 22px; display: grid; gap: 14px; align-content: start; }
.clair .colonne { border-top-color: var(--filet-c); }
.colonne h3 { font-size: 1.25rem; letter-spacing: -.02em; font-weight: 700; }
.colonne p { color: var(--os-2); }
.clair .colonne p { color: var(--encre-2); }
.colonne .num { font-family: var(--f-titre); font-weight: 200; font-size: 2.6rem; line-height: 1; letter-spacing: -.04em; color: var(--lueur); }
.clair .colonne .num { color: var(--rouge); }

/* Liste à puces fines */
.puces { display: grid; gap: 0; }
.puces li { display: grid; grid-template-columns: 26px 1fr; padding: 16px 0; border-bottom: 1px solid var(--filet-s); color: var(--os-2); }
.puces li:first-child { border-top: 1px solid var(--filet-s); }
.puces li::before { content: ""; width: 12px; height: 1px; background: var(--lueur); margin-top: .85em; }
.puces li strong { color: var(--os); }
.clair .puces li { border-color: var(--filet-c); color: var(--encre-2); }
.clair .puces li::before { background: var(--rouge); }
.clair .puces li strong { color: var(--encre); }

/* Note : remarque discrète */
.note { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; padding: 22px 0; border-top: 1px solid var(--filet-s); border-bottom: 1px solid var(--filet-s); }
.note > .eyebrow { grid-row: span 2; padding-top: 4px; color: var(--lueur); }
.note > .eyebrow::before { display: none; }
.note p { color: var(--os-2); max-width: 60ch; }
.note h3 { font-size: 1.1rem; }
.clair .note { border-color: var(--filet-c); }
.clair .note > .eyebrow { color: var(--rouge); }
.clair .note p { color: var(--encre-2); }
@media (max-width: 560px) { .note { grid-template-columns: 1fr; } .note > .eyebrow { grid-row: auto; } }

/* ==========================================================================
   Accueil : index des temps forts
   ========================================================================== */
.index { border-top: 1px solid var(--filet-s); }
.index-ligne {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1fr) 48px; gap: 24px; align-items: center;
  padding: clamp(26px, 3.2vw, 44px) 0; border-bottom: 1px solid var(--filet-s);
  text-decoration: none; color: var(--os);
}
.index-ligne::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--img) center / cover no-repeat;
  clip-path: inset(50% 0 50% 0); transition: clip-path .7s var(--ease);
  filter: brightness(.45) saturate(.9);
}
.index-ligne:hover::before, .index-ligne:focus-visible::before { clip-path: inset(0 0 0 0); }
.index-quand { font-family: var(--f-titre); font-size: .66rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--lueur); padding-left: 4px; }
.index-titre { font-size: clamp(1.8rem, 1rem + 3vw, 3.6rem); font-weight: 700; letter-spacing: -.045em; line-height: 1; transition: transform .6s var(--ease); }
.index-ligne:hover .index-titre { transform: translateX(14px); }
.index-desc { color: var(--os-2); font-size: .98rem; max-width: 40ch; }
.index-fleche { justify-self: end; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--filet-s); display: grid; place-items: center; transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s; }
.index-fleche svg { width: 16px; height: 16px; }
.index-ligne:hover .index-fleche { background: var(--lueur); border-color: var(--lueur); color: var(--gouffre); }
@media (max-width: 900px) {
  .index-ligne { grid-template-columns: minmax(0, 1fr) 44px; gap: 10px 16px; }
  .index-quand { grid-column: 1 / -1; padding-left: 0; }
  .index-desc { grid-column: 1; }
  .index-fleche { grid-row: 2 / span 2; grid-column: 2; align-self: center; width: 44px; height: 44px; }
}

/* Intermède photo + texte */
.diptyque { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 640px; }
.diptyque-photo { position: relative; overflow: hidden; background: var(--roche); margin: 0; }
.diptyque-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.diptyque:hover .diptyque-photo img { transform: scale(1.04); }
.diptyque-photo figcaption { position: absolute; left: 24px; bottom: 20px; font-family: var(--f-titre); font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.diptyque-texte { padding: clamp(56px, 8vw, 128px) var(--gout); display: grid; align-content: center; gap: 30px; max-width: 700px; }
@media (max-width: 900px) {
  .diptyque { grid-template-columns: 1fr; min-height: 0; }
  .diptyque-photo { aspect-ratio: 4 / 5; max-height: 80vh; }
}

/* Deux jours */
.jours-apercu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--filet-s); }
.jour-apercu { padding: 40px 40px 8px 0; display: grid; gap: 22px; align-content: start; }
.jour-apercu + .jour-apercu { padding-left: 40px; border-left: 1px solid var(--filet-s); }
.jour-apercu .grand { font-family: var(--f-titre); font-weight: 200; font-size: clamp(5rem, 3rem + 7vw, 10rem); line-height: .8; letter-spacing: -.07em; color: var(--os); }
.jour-apercu .grand small { font-size: .16em; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--lueur); margin-left: 18px; vertical-align: top; position: relative; top: .6em; }
.jour-apercu ul { display: grid; gap: 0; }
.jour-apercu li { padding: 12px 0; border-bottom: 1px solid var(--filet-s); font-family: var(--f-titre); font-weight: 500; letter-spacing: -.01em; display: flex; justify-content: space-between; gap: 16px; }
.jour-apercu li span { font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--os-3); white-space: nowrap; padding-top: 4px; }
@media (max-width: 760px) {
  .jours-apercu { grid-template-columns: 1fr; }
  .jour-apercu, .jour-apercu + .jour-apercu { padding: 32px 0 8px; border-left: 0; }
  .jour-apercu + .jour-apercu { border-top: 1px solid var(--filet-s); }
}

/* Participer : trois entrées */
.entrees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--filet-c); }
.entree { padding: 36px 32px 40px 0; display: grid; gap: 16px; align-content: start; text-decoration: none; color: var(--encre); }
.entree + .entree { padding-left: 32px; border-left: 1px solid var(--filet-c); }
.entree h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); letter-spacing: -.04em; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.entree h3 svg { width: 22px; height: 22px; flex-shrink: 0; transition: transform .45s var(--ease); }
.entree:hover h3 svg { transform: translate(4px, -4px); }
.entree p { color: var(--encre-2); max-width: 36ch; }
.entree.forte h3 { color: var(--rouge); }
@media (max-width: 860px) {
  .entrees { grid-template-columns: 1fr; }
  .entree, .entree + .entree { padding: 28px 0; border-left: 0; }
  .entree + .entree { border-top: 1px solid var(--filet-c); }
}

/* ==========================================================================
   Programme
   ========================================================================== */
.journee { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 5vw, 96px); }
.journee + .journee { margin-top: clamp(72px, 9vw, 140px); }
.journee-tete { position: relative; }
.journee-tete > div { position: sticky; top: calc(var(--entete) + 32px); display: grid; gap: 14px; }
.journee-tete .grand { font-family: var(--f-titre); font-weight: 200; font-size: clamp(6rem, 3rem + 9vw, 12rem); line-height: .78; letter-spacing: -.07em; }
.journee-tete h2 { font-size: 1.6rem; letter-spacing: -.03em; }
.journee-tete p { font-family: var(--f-titre); font-size: .66rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--lueur); }
.creneaux { border-top: 1px solid var(--filet-s); }
.creneau { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--filet-s); }
.creneau-moment { font-family: var(--f-titre); font-size: .66rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--os-3); padding-top: 8px; }
.creneau h3 { font-size: clamp(1.35rem, 1rem + 1vw, 1.8rem); letter-spacing: -.035em; }
.creneau.fort h3 { color: var(--lueur); }
.creneau p { margin-top: 10px; color: var(--os-2); max-width: 56ch; }
.creneau .pied { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
@media (max-width: 860px) {
  .journee { grid-template-columns: 1fr; }
  .journee-tete > div { position: static; }
  .creneau { grid-template-columns: 1fr; gap: 6px; }
}

/* ==========================================================================
   Cavités : fiches topo
   ========================================================================== */
.fiches { display: grid; gap: 20px; }
.fiche {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border: 1px solid var(--filet-s); border-radius: 18px;
  background: var(--roche) url("../img/courbes-sombre.svg") var(--pos, 30% 40%) / 180% no-repeat;
}
.fiche-gauche { padding: clamp(28px, 3.4vw, 48px); display: grid; align-content: space-between; gap: 40px; border-right: 1px solid var(--filet-s); }
.fiche-num { font-family: var(--f-titre); font-weight: 200; font-size: clamp(5rem, 3rem + 5vw, 8.5rem); line-height: .8; letter-spacing: -.07em; }
.fiche-nom { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); letter-spacing: -.04em; }
.fiche-nom small { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--os-3); margin-bottom: 10px; }
.fiche-droite { padding: clamp(28px, 3.4vw, 48px); display: grid; gap: 30px; align-content: start; background: linear-gradient(90deg, rgba(21,27,29,.55), rgba(21,27,29,.92)); }
.mesures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--filet-s); }
.mesures div { padding: 14px 12px 0 0; }
.mesures dt { font-family: var(--f-titre); font-size: .58rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--os-3); }
.mesures dd { margin: 8px 0 0; font-family: var(--f-titre); font-weight: 200; font-size: 1.9rem; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--os-2); }
.mesures dd small { font-size: .45em; font-weight: 500; letter-spacing: 0; margin-left: 3px; }
.fiche-infos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fiche-infos h4 { font-size: .66rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--os-3); margin-bottom: 6px; }
.fiche-infos p { color: var(--os-2); font-size: .95rem; }
.docs { display: flex; flex-wrap: wrap; gap: 10px; }
.doc {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px dashed var(--filet-s); color: var(--os-3); text-decoration: none;
  font-family: var(--f-titre); font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
a.doc { border-style: solid; color: var(--os); }
a.doc:hover { border-color: var(--lueur); color: var(--lueur); }
.doc svg { width: 14px; height: 14px; }
@media (max-width: 900px) {
  .fiche { grid-template-columns: 1fr; }
  .fiche-gauche { border-right: 0; border-bottom: 1px solid var(--filet-s); grid-template-columns: auto 1fr; align-items: end; gap: 24px; }
  .mesures { grid-template-columns: 1fr 1fr; }
  .fiche-infos { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Tableaux
   ========================================================================== */
.tableau { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: 20px 20px 20px 0; border-bottom: 1px solid var(--filet-s); }
th { font-family: var(--f-titre); font-size: .62rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--os-3); border-bottom-color: var(--os-3); padding-top: 0; }
td { color: var(--os-2); }
td strong { font-family: var(--f-titre); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; color: var(--os); }
td.chiffre { font-family: var(--f-titre); font-weight: 300; font-size: 1.15rem; color: var(--os); font-variant-numeric: tabular-nums; white-space: nowrap; }
.clair th { color: var(--encre-2); border-bottom-color: var(--encre-2); }
.clair td { color: var(--encre-2); border-bottom-color: var(--filet-c); }
.clair td strong, .clair td.chiffre { color: var(--encre); }

/* ==========================================================================
   Formulaires
   ========================================================================== */
.form { display: grid; gap: 56px; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 26px; }
.form legend { float: left; width: 100%; padding: 0; font-family: var(--f-titre); font-size: 1.4rem; font-weight: 700; letter-spacing: -.03em; }
.form legend + * { clear: both; }
.form legend small { display: block; margin-top: 6px; font-family: var(--f-texte); font-size: .9rem; font-weight: 400; letter-spacing: 0; color: var(--encre-2); }
.champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 32px; }
@media (max-width: 640px) { .champs { grid-template-columns: 1fr; } }
.champ { display: grid; gap: 8px; align-content: start; }
.champ > label, .champ > .etiquette { font-family: var(--f-titre); font-size: .64rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--encre-2); }
.champ .requis { color: var(--rouge); margin-left: 4px; }
.champ .aide { font-size: .82rem; color: var(--encre-2); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1.12rem; color: var(--encre);
  background: transparent; border: 0; border-bottom: 1px solid rgba(18,24,26,.35); border-radius: 0;
  padding: 10px 0 12px; transition: border-color .3s var(--ease);
  color-scheme: light;
}
.form select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5 6 8l4-3.5' fill='none' stroke='%2312181a' stroke-width='1.4'/%3E%3C/svg%3E") right 2px center / 12px no-repeat; padding-right: 24px; }
.form textarea { min-height: 120px; resize: vertical; border: 1px solid rgba(18,24,26,.35); padding: 14px; border-radius: 10px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--rouge); }
.form input::placeholder, .form textarea::placeholder { color: rgba(18,24,26,.4); }
.form input.maj { text-transform: uppercase; }
.form [aria-invalid="true"] { border-color: var(--rouge); }
.erreur { font-size: .82rem; font-weight: 600; color: var(--rouge); }
.options { display: flex; flex-wrap: wrap; gap: 10px; }
.options label {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; height: 48px; padding: 0 20px;
  border: 1px solid var(--filet-c); border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--encre);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s;
}
.options label:hover { border-color: var(--encre); }
.options input { position: absolute; opacity: 0; pointer-events: none; }
.options label:has(input:checked) { background: var(--encre); border-color: var(--encre); color: var(--calcaire); }
.options label:has(input:focus-visible) { outline: 2px solid var(--rouge); outline-offset: 3px; }
.options label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid currentColor; }
.options label:has(input:checked)::before { background: var(--rouge); border-color: var(--rouge); }
.form-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; padding-top: 8px; }
.form-pied p { font-size: .85rem; color: var(--encre-2); max-width: 48ch; }
.form-pied p a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.message-form { padding: 18px 22px; border-radius: 12px; font-weight: 600; }
.message-ok { background: #cfdccf; color: #1f3d27; }
.message-ko { background: #efcfd1; color: #7d1520; }
.message-info { background: #ecdcc2; color: #6b4410; }
.pot { position: absolute; left: -9999px; }
.form-grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px clamp(40px, 6vw, 110px); align-items: start; }
.form-aside { display: grid; gap: 36px; position: sticky; top: calc(var(--entete) + 32px); }
@media (max-width: 960px) { .form-grille { grid-template-columns: 1fr; } .form-aside { position: static; } }

/* Email copiable */
.btn-mail { justify-self: start; align-self: start; width: fit-content; max-width: 100%; height: auto; min-height: 52px; padding: 10px 24px 10px 20px; gap: 12px;
  text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 500; white-space: normal; text-align: left; }
.btn-mail:hover { gap: 12px; border-color: var(--lueur); color: var(--lueur); }
.clair .btn-mail:hover { border-color: var(--rouge); color: var(--rouge); }
.btn-mail svg { width: 20px; height: 16px; flex-shrink: 0; }
.btn-mail span { overflow-wrap: anywhere; }
.mail { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.mail code { font-family: var(--f-titre); font-weight: 300; font-size: clamp(1.1rem, .9rem + 1vw, 1.6rem); letter-spacing: -.02em; user-select: all; word-break: break-all; }
.copier {
  height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer; background: transparent;
  border: 1px solid var(--filet-s); color: var(--os-2);
  font-family: var(--f-titre); font-size: .6rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.copier:hover { border-color: var(--lueur); color: var(--lueur); }
.clair .copier { border-color: var(--filet-c); color: var(--encre-2); }
.clair .copier:hover { border-color: var(--rouge); color: var(--rouge); }

/* ==========================================================================
   Partenaires
   ========================================================================== */
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--filet-c); border-left: 1px solid var(--filet-c); }
.logo-case { aspect-ratio: 3 / 2; display: grid; place-items: center; border-right: 1px solid var(--filet-c); border-bottom: 1px solid var(--filet-c); color: var(--encre-2); font-family: var(--f-titre); font-size: .6rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; text-align: center; padding: 16px; }
.logo-case img { max-height: 64%; max-width: 70%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .4s, opacity .4s; }
.logo-case:hover img { filter: none; opacity: 1; }
@media (max-width: 760px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   Appel final
   ========================================================================== */
.appel { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(90px, 12vw, 180px); text-align: left; }
.appel-photo { position: absolute; inset: 0; z-index: -2; }
.appel-photo img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.35) saturate(.8); }
.appel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 20% 60%, rgba(12,16,17,.1), rgba(12,16,17,.8)); }
.appel h2 { font-size: clamp(2.6rem, 1rem + 6vw, 7rem); font-weight: 800; letter-spacing: -.055em; line-height: .9; max-width: 13ch; }
.appel h2 .fin { font-weight: 200; }
.appel .actions { margin-top: 44px; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer { border-top: 1px solid var(--filet-s); background: var(--gouffre); }
.pied-haut { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; padding-block: clamp(64px, 8vw, 110px) 56px; }
.pied-haut .enonce { max-width: 18ch; }
.pied-colonnes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.pied-colonnes h2 { font-size: .62rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--os-3); margin-bottom: 16px; }
.pied-colonnes li + li { margin-top: 8px; }
.pied-colonnes a { text-decoration: none; color: var(--os-2); transition: color .3s; }
.pied-colonnes a:hover { color: var(--lueur); }
.pied-marque {
  font-family: var(--f-titre); font-weight: 800; letter-spacing: -.06em; line-height: .8;
  font-size: min(8.2vw, 10.6rem); color: transparent;
  -webkit-text-stroke: 1px rgba(238,236,230,.22);
  white-space: nowrap; overflow: hidden; padding-bottom: .06em; user-select: none;
}
.pied-bas a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.pied-bas a:hover { color: var(--os); }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 22px 30px; border-top: 1px solid var(--filet-s); font-size: .8rem; color: var(--os-3); }
@media (max-width: 900px) { .pied-haut { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pied-colonnes { grid-template-columns: 1fr 1fr; } }

.saut { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--lueur); color: var(--gouffre); padding: 10px 16px; border-radius: 999px; font-family: var(--f-titre); font-weight: 600; }
.saut:focus { top: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Carte d'accès, profil et arrivée (page Venir)
   ========================================================================== */
.carte-acces { margin: 0; display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  border: 1px solid var(--filet-s); border-radius: 18px; overflow: hidden; background: var(--roche); }
.carte-cadre { position: relative; background: #0d1213; display: grid; align-content: center; }
.carte-svg { display: block; width: 100%; height: auto; }
.carte-svg text { font-family: var(--f-titre); paint-order: stroke; stroke: rgba(10, 14, 15, .82); stroke-width: 4px; stroke-linejoin: round; }
.carte-mobile { display: none; }
.c-lac { fill: #14303a; stroke: #2f5562; stroke-width: 1; }
.c-pnr { fill: none; stroke: rgba(141, 184, 155, .45); stroke-width: 1.6; stroke-dasharray: 6 5; }
.c-auto { fill: none; stroke: rgba(238, 236, 230, .38); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.c-alt { fill: none; stroke: rgba(238, 236, 230, .78); stroke-width: 2.2; stroke-dasharray: 1 6; stroke-linecap: round; stroke-linejoin: round; }
.c-conseil-halo { fill: none; stroke: rgba(10, 14, 15, .7); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.c-conseil { fill: none; stroke: var(--lueur); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.c-route-loc { fill: none; stroke: rgba(238, 236, 230, .7); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.c-zoom { fill: none; stroke: var(--lueur); stroke-width: 1.5; stroke-dasharray: 4 4; }
.c-col { fill: var(--os); stroke: rgba(10, 14, 15, .8); stroke-width: 1.5; }
.c-ville { fill: #0d1213; stroke: var(--os); stroke-width: 3; }
.c-village { fill: var(--os); stroke: rgba(10, 14, 15, .8); stroke-width: 1.5; }
.c-halo { fill: rgba(238, 180, 92, .22); }
.c-dest { fill: var(--lueur); stroke: #0d1213; stroke-width: 2.5; }
.c-ville-t { fill: var(--os); font-size: 20px; font-weight: 700; }
.c-dest-t { fill: var(--lueur); font-size: 23px; font-weight: 700; }
.c-col-t { fill: var(--os); font-size: 15px; font-weight: 600; }
.c-petit { fill: rgba(238, 236, 230, .78); font-size: 13.5px; font-weight: 500; }
.c-route { fill: rgba(238, 236, 230, .62); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.c-ambre, .c-ambre-t { fill: var(--lueur); }
.c-ambre-t { font-size: 15px; font-weight: 700; }
.c-eau { fill: #7fb0bf; font-size: 14px; font-style: italic; font-weight: 500; }
.c-pnr-t { fill: rgba(141, 184, 155, .85); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.c-echelle path { fill: none; stroke: var(--os); stroke-width: 2; }
.c-echelle text, .c-nord text { fill: var(--os); font-size: 12px; font-weight: 600; }
.c-nord path { fill: var(--os); }
.c-parking rect { fill: #2f6fb0; stroke: #0d1213; stroke-width: 2; }
.c-parking text { fill: #fff; font-size: 15px; font-weight: 800; stroke: none; }
.carte-panneau { padding: clamp(22px, 2.4vw, 32px); display: grid; gap: 16px; align-content: start; border-left: 1px solid var(--filet-s); }
.depuis li { padding: 10px 0; border-bottom: 1px solid var(--filet-s); }
.depuis li:first-child { border-top: 1px solid var(--filet-s); }
.dep-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dep-tete b { font-family: var(--f-titre); font-weight: 600; font-size: .98rem; }
.dep-chiffres { font-family: var(--f-titre); font-weight: 300; font-size: 1.05rem; color: var(--lueur); white-space: nowrap; font-variant-numeric: tabular-nums; }
.depuis p { color: var(--os-2); font-size: .82rem; line-height: 1.45; margin-top: 1px; }
.depuis li:first-child .dep-tete b { color: var(--lueur); }
.cles { display: grid; gap: 7px; font-size: .8rem; color: var(--os-2); }
.cles li { display: flex; align-items: center; gap: 12px; }
.cle { display: inline-block; flex-shrink: 0; width: 30px; }
.cle-conseil { height: 4px; border-radius: 2px; background: var(--lueur); }
.cle-alt { height: 2px; background: repeating-linear-gradient(90deg, rgba(238,236,230,.8) 0 2px, transparent 2px 7px); }
.cle-auto { height: 6px; border-radius: 3px; background: rgba(238,236,230,.38); }
.cle-col { width: 0; height: 0; margin: 0 7px; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 13px solid var(--os); }
.cle-pnr { height: 0; border-top: 2px dashed rgba(141, 184, 155, .7); }
.carte-source { font-size: .74rem; color: var(--os-3); line-height: 1.5; }
@media (max-width: 1000px) {
  .carte-acces { grid-template-columns: 1fr; }
  .carte-panneau { border-left: 0; border-top: 1px solid var(--filet-s); }
}
@media (max-width: 700px) {
  .carte-bureau { display: none; }
  .carte-mobile { display: block; }
  .carte-mobile .c-petit, .carte-mobile .c-route { font-size: 19px; }
  .carte-mobile .c-ville-t, .carte-mobile .c-dest-t { font-size: 25px; }
  .carte-mobile .c-col-t, .carte-mobile .c-ambre-t { font-size: 20px; }
  .carte-svg text { stroke-width: 5px; }
}

/* Plan d'arrivée : textes plus grands (carte affichée en réduction) */
.carte-cadre-arrivee .c-petit, .carte-cadre-arrivee .c-route { font-size: 20px; }
.carte-cadre-arrivee .c-ville-t, .carte-cadre-arrivee .c-col-t { font-size: 25px; }
.carte-cadre-arrivee .c-dest-t { font-size: 30px; }
.carte-cadre-arrivee .c-echelle text { font-size: 16px; }
.carte-cadre-arrivee .c-parking text { font-size: 19px; }
.carte-cadre-arrivee .c-route-loc { stroke-width: 5; }
.carte-cadre-arrivee .c-conseil { stroke-width: 6; }
.carte-cadre-arrivee .c-conseil-halo { stroke-width: 11; }

/* Profil en long */
.profil { border-radius: 14px; background: var(--gouffre); padding: clamp(10px, 2vw, 22px); }
.profil-svg { display: block; width: 100%; height: auto; }
.profil-mobile { display: none; }
@media (max-width: 700px) { .profil-bureau { display: none; } .profil-mobile { display: block; } .profil-mobile .pr-axe { font-size: 17px; } .profil-mobile .pr-nom-fort, .profil-mobile .pr-nom { font-size: 20px; } }
.profil-svg text { font-family: var(--f-titre); }
.pr-grille { stroke: rgba(238,236,230,.1); }
.pr-axe { fill: rgba(238,236,230,.5); font-size: 13px; font-weight: 500; }
.pr-aire { fill: rgba(238, 180, 92, .14); }
.pr-ligne { fill: none; stroke: var(--lueur); stroke-width: 3; stroke-linejoin: round; }
.pr-repere { stroke: rgba(238,236,230,.18); stroke-dasharray: 3 4; }
.pr-pt { fill: var(--os); }
.pr-pt-fort { fill: var(--lueur); stroke: var(--gouffre); stroke-width: 2; }
.pr-nom { fill: var(--os); font-size: 14px; font-weight: 600; }
.pr-nom-fort { fill: var(--lueur); font-size: 15px; font-weight: 700; }

/* Étapes */
.etapes { counter-reset: e; border-top: 1px solid var(--filet-c); }
.etape { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--filet-c); position: relative; }
.etape-km { font-family: var(--f-titre); font-weight: 300; font-size: 1.35rem; letter-spacing: -.02em; color: var(--encre); font-variant-numeric: tabular-nums; }
.etape h3 { font-size: 1.12rem; letter-spacing: -.02em; }
.etape-alt { font-family: var(--f-titre); font-weight: 500; font-size: .8rem; letter-spacing: .06em; color: var(--encre-2); margin-left: 8px; }
.etape p { color: var(--encre-2); margin-top: 4px; }
.etape-forte .etape-km, .etape-forte h3 { color: var(--rouge); }
@media (max-width: 560px) { .etape { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; } .etape-km { font-size: 1.1rem; } }

/* Arrivée */
.arrivee { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.carte-cadre-arrivee { border-radius: 18px; overflow: hidden; border: 1px solid var(--filet-s); }
.arrivee-texte { display: grid; gap: 26px; }
.puces-num { counter-reset: n; display: grid; gap: 0; border-top: 1px solid var(--filet-s); }
.puces-num li { counter-increment: n; position: relative; padding: 14px 0 14px 42px; border-bottom: 1px solid var(--filet-s); color: var(--os-2); }
.puces-num li::before { content: counter(n); position: absolute; left: 0; top: 12px; font-family: var(--f-titre); font-weight: 200; font-size: 1.6rem; line-height: 1.1; color: var(--lueur); }
.puces-num b { color: var(--os); font-weight: 600; }
@media (max-width: 900px) { .arrivee { grid-template-columns: 1fr; } }

/* Logo du congrès */
.pied-identite { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px clamp(28px, 3vw, 44px); align-items: start; }
.pied-identite-texte { display: grid; gap: 22px; align-content: start; }
.pied-logo { width: clamp(120px, 11vw, 160px); height: auto; opacity: .92; }
@media (max-width: 560px) {
  .pied-identite { grid-template-columns: 1fr; justify-items: start; }
}
@media (max-width: 560px) { .marque { --logo-box: 44px; --logo-echelle: 1.6; } }

.note > .btn-mail { grid-column: 2; margin-top: 8px; }
@media (max-width: 560px) { .note > .btn-mail { grid-column: 1; } }

/* Logos partenaires : cases cliquables */
a.logo-case { text-decoration: none; transition: background-color .3s var(--ease); }
a.logo-case:hover { background: rgba(255,255,255,.55); }
.logo-case { overflow: hidden; }
.logo-case img { width: auto; height: auto; max-width: 72%; max-height: 76px; filter: none; opacity: 1; }
.logo-case img[src$="styx4d.png"], .logo-case img[src$="vieux-campeur.png"] { max-height: 96px; }
@media (max-width: 760px) { .logo-case img { max-height: 56px; } .logo-case img[src$="styx4d.png"], .logo-case img[src$="vieux-campeur.png"] { max-height: 72px; } }
.logo-libre { color: var(--encre-2); }
.logo-libre:hover { color: var(--rouge); }
