/*
Theme Name: Foutons le Camp
Theme URI: https://foutonslecamp.fr
Author: FLC
Description: Thème du club de bikepacking Foutons le Camp (design v3, clair/crème). Contenu et couleurs entièrement pilotables depuis l'admin (CPT + ACF + Customizer).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: flc
*/

@font-face {
  font-family: 'Notably Absent';
  src: url('assets/fonts/Notably-Absent.ttf') format('truetype');
  font-display: swap;
}

:root {
  --teal:   #326186;
  --blue:   #A3CBE1;
  --green:  #758E4F;
  --yellow: #F8C462;
  --orange: #D4520C;
  --cream:  #FDFAF5;
  --ink:    #1C2B1A;
  /* Variantes issues du design system (design-page parcours/_ds/…/tokens/colors.css) */
  --teal-600:   #28516f;
  --teal-700:   #1e3f57;
  --green-600:  #61773f;
  --yellow-600: #f0ac2f;
  --orange-600: #b2440a;
  --orange-700: #8f3608;
  --tint-blue:   #e7f1f7;
  --tint-yellow: color-mix(in oklch, var(--yellow) 18%, white);
  --tint-green:  color-mix(in oklch, var(--green)  14%, white);
  --tint-orange: color-mix(in oklch, var(--orange) 12%, white);
  --muted: rgba(28,43,26,0.35);
  --D: 'Notably Absent', 'Fredoka', sans-serif;
  --B: 'Nunito', sans-serif;
  --U: 'Quicksand', sans-serif;
}
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{background:var(--cream);color:var(--ink);font-family:var(--B);overflow-x:hidden;overflow-wrap:break-word;cursor:default}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button{font-family:inherit}

/* ── Garde-fous responsive (anti-débordement / anti-chevauchement) ── */
h1,h2,h3,h4,p,.hero-bigtitle,.cta-big,.pt-title,.tp-title,.tp-word,.tp-name,.trace-name { overflow-wrap:break-word; }
.wild-grid>*,.hero-strip-inner>*,.pf-stats>*,.tp-stats>*,.temo-stack>*,.team-g>*,.rb-grid>*,.faq-cols>*,.fgrid>*,.pp>* { min-width:0; }

/* ─── CURSOR (souris fine uniquement) ─── */
@media (pointer:fine){
  * { cursor: none !important; }
  #cursor {
    width: 18px; height: 18px; border-radius: 50%;
    /* Anneau encre serré entre deux liserés crème. Quel que soit le fond, l'un
       des deux tranche : le pire cas de la palette du site est 3.79:1, là où un
       simple anneau encre disparaît complètement sur le vert et sur l'encre.
       (mix-blend-mode: difference a été essayé et écarté — il tombe à 1.13:1
       sur le vert du footer et 1.67:1 sur l'orange.) */
    border: 2.5px solid var(--ink);
    box-shadow: 0 0 0 2px rgba(253,250,245,0.92), inset 0 0 0 2px rgba(253,250,245,0.92);
    position: fixed; top: 0; left: 0; pointer-events: none;
    /* Au-dessus de tout, y compris la modale du plugin roadbook, qui monte à
       2147483000 — sans quoi le curseur disparaît alors que `cursor: none`
       masque toujours celui du système. */
    z-index: 2147483647;
    transform: translate(-50%,-50%);
    transition: width 0.2s, height 0.2s, border-width 0.2s, opacity 0.15s,
                border-color 0.2s, box-shadow 0.2s;
    will-change: left, top;
  }
  /* Sur un fond sombre, les rôles s'inversent : le crème mène, l'encre borde.
     Posée par main.js, qui échantillonne la couleur sous le curseur. */
  #cursor.on-dark {
    border-color: var(--cream);
    box-shadow: 0 0 0 2px rgba(28,43,26,0.92), inset 0 0 0 2px rgba(28,43,26,0.92);
  }
  #cursor.big { width: 42px; height: 42px; border-width: 3.5px; }
  /* Souris sortie de la fenêtre : on ne laisse pas un rond orphelin sur le bord. */
  #cursor.out { opacity: 0; }
}
@media (pointer:coarse){ #cursor{ display:none; } }

/* ─── NAV ─── */
#nav {
  position: sticky; top: 0; z-index: 200;
  height: 80px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: var(--yellow);
  border-bottom: 3px solid var(--ink);
}
.nav-logo { font-family: var(--D); font-size: 22px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.nav-logo-img { display: block; height: 54px; width: auto; }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  font-family: var(--B); font-size: 13px; font-weight: 800;
  padding: 7px 18px; border-radius: 9999px; border: 2.5px solid transparent;
  background: none; color: var(--ink);
  transition: all 0.15s;
}
.nav-link:hover { border-color: var(--ink); transform: rotate(-2deg); }
.nav-link.active { background: var(--ink); color: var(--yellow); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-link--espace {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--B); font-size: 13px; font-weight: 900;
  padding: 8px 18px 8px 14px;
  background: var(--cream); color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: 9999px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}
.nav-link--espace .nav-espace-icon {
  width: 18px; height: 18px; flex: none;
  border-radius: 50%; padding: 1px;
  background: var(--blue); border: 2px solid var(--ink);
  transition: background 0.15s;
}
.nav-link--espace:hover {
  background: var(--teal); color: var(--cream);
  transform: translate(-2px,-2px) rotate(-1deg);
  box-shadow: 5px 5px 0 var(--ink);
}
.nav-link--espace:hover .nav-espace-icon { background: var(--yellow); }
.nav-cta {
  font-family: var(--B); font-size: 13px; font-weight: 900;
  padding: 10px 26px; background: var(--orange); color: var(--cream);
  border: 2.5px solid var(--ink); border-radius: 9999px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover { transform: translate(-2px,-2px) rotate(1deg); box-shadow: 5px 5px 0 var(--ink); }
.nav-burger { display:none; background:none; border:none; font-size:26px; color:var(--ink); }

/* ─── Sous-menus du header : « panneaux de piste » ───
   Un poteau descend du lien, une flèche par destination. Ouverture au survol
   (souris), ou par le bouton flèche (tactile, clavier) qui pose .open. */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-sub-toggle {
  width: 24px; height: 24px; margin-left: -12px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer;
}
.nav-sub-toggle svg { width: 10px; height: 10px; transition: transform 0.2s; }
.has-sub.open > .nav-sub-toggle svg { transform: rotate(180deg); }
.nav-sub-toggle:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 1px; }
/* Ordinateur : la flèche se loge dans la pilule du lien (padding élargi), en
   jaune sur la pilule encre de la page courante, au lieu de chevaucher son bord. */
@media (min-width: 681px) {
  .nav-item > .nav-link { padding-right: 34px; }
  .nav-item > .nav-sub-toggle { position: relative; z-index: 1; margin-left: -32px; margin-right: 8px; }
  .nav-item > .nav-link.active + .nav-sub-toggle { color: var(--yellow); }
  .nav-item > .nav-link.active + .nav-sub-toggle:focus-visible { outline-color: var(--yellow); outline-offset: -2px; }
}
.nav-sub {
  display: none; position: absolute; top: 100%; left: -4px; z-index: 5;
  min-width: 260px; padding-bottom: 12px;
}
.has-sub.open > .nav-sub { display: block; }
@media (hover: hover) and (min-width: 681px) {
  .has-sub:hover > .nav-sub { display: block; }
  .has-sub:hover > .nav-sub-toggle svg { transform: rotate(180deg); }
}
.nav-sub-post {
  position: absolute; left: 28px; top: 0; bottom: 0; width: 14px;
  background: var(--teal); border: 2.5px solid var(--ink); border-top: 0; border-radius: 0 0 4px 4px;
}
.nav-sub ul { position: relative; list-style: none; margin: 0; padding: 22px 0 0; display: grid; gap: 8px; justify-items: start; }
.nav-sub li {
  /* Contour encre + ombre décalée autour de la flèche découpée en clip-path. */
  filter: drop-shadow(2px 0 0 var(--ink)) drop-shadow(-2px 0 0 var(--ink)) drop-shadow(0 2px 0 var(--ink)) drop-shadow(0 -2px 0 var(--ink)) drop-shadow(3px 3px 0 var(--ink));
  transform-origin: 35px 50%; transform: rotate(var(--r, 0deg));
  animation: flc-sign-in 0.35s cubic-bezier(.3,1.6,.5,1) backwards;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.nav-sub li:nth-child(odd)  { --r: -2deg; }
.nav-sub li:nth-child(even) { --r: 1.5deg; }
.nav-sign {
  display: flex; align-items: center; gap: 10px;
  min-width: var(--w, 230px); max-width: 360px;
  padding: 9px 36px 9px 16px;
  background: var(--sc, var(--cream)); color: var(--sf, var(--ink));
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
  font-family: var(--B); font-size: 14px; font-weight: 900; line-height: 1.2; white-space: nowrap;
  transition: transform 0.15s;
}
.nav-sign:hover { transform: translateX(6px); }
.nav-sign:focus-visible { outline: none; transform: translateX(6px); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.nav-sign svg { width: 16px; height: 16px; flex: none; }
.nav-sign-mk {
  width: 18px; height: 18px; flex: none; display: grid; place-items: center;
  border: 2px solid currentColor; border-radius: 4px; font-size: 10px; line-height: 1;
}
.nav-sign-km { margin-left: auto; padding-left: 12px; font-family: var(--U); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
@keyframes flc-sign-in { from { transform: rotate(-12deg) translateX(-14px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nav-sub li { animation: none; } .nav-sign, .nav-sub-toggle svg { transition: none; } }
/* Ancres des sections de l'accueil : ne pas finir sous le header collant. */
#esprit, #parcours-teaser, #temo-section, #equipe, #partenaires { scroll-margin-top: var(--nav-h); }

/* Décalage du nav collant sous la barre d'administration WordPress (utilisateur connecté) */
body.admin-bar #nav { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar #nav { top: 46px; } }

/* ─── MARQUEE ─── */
/* Réglages (couleurs, espace, taille, vitesse) : inc/marquee.php, en variables CSS. */
.mq { overflow: hidden; background: var(--mq-bg, var(--teal)); padding: 10px 0; border-bottom: 3px solid var(--ink); white-space: nowrap; }
.mq-track { display: flex; width: max-content; animation: mq 22s linear infinite; }
.mq--droite .mq-track { animation-direction: reverse; }
.mq--pause:hover .mq-track { animation-play-state: paused; }
/* Les mots se suivent à espace régulier. Chaque groupe couvre au moins l'écran
   (main.js y répète les mots au besoin) : sinon une liste courte laisserait un
   trou avant le saut de boucle. Le min-width est le filet sans JavaScript. */
.mq-group { display: flex; align-items: center; flex-shrink: 0; min-width: 100vw; }
@keyframes mq { from{transform:translateX(0)} to{transform:translateX(-50%)} }
/* Séparateur centré entre deux mots : la même moitié d'espace de chaque côté.
   Il ouvre chaque mot, y compris en tête de groupe, donc l'écart reste le même
   à la jonction des groupes. Sans séparateur, l'espace entier précède le mot. */
.mq-item { font-family: var(--D); font-size: var(--mq-size, 17px); color: var(--mq-color, var(--cream)); display: inline-flex; align-items: center; }
.mq-item b { color: var(--mq-sep-color, var(--yellow)); margin: 0 calc(var(--mq-gap, 28px) / 2); }
.mq--sans-sep .mq-item { padding-left: var(--mq-gap, 28px); }

/* ─── PAGES (vraies pages WordPress, plus de SPA) ─── */
.page { display: block; }

/* ─── REVEAL ─── */
.rev { opacity:0; transform:translateY(20px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34,1,0.64,1); }
.rev.on { opacity:1; transform:none; }

/* ═══════════════════════════════════
   HERO — FULL CHAOS
═══════════════════════════════════ */
/* ── HERO IMMERSIF (photo plein écran) ── */
/* Hauteur : suit à peu près la proportion de la photo (≈16:10) sans dépasser
   l'écran réellement visible (svh = barre d'adresse mobile comprise). Le titre
   et les marges se réduisent aussi avec la hauteur, pour les écrans larges et bas. */
#hero {
  position: relative; overflow: hidden;
  min-height: clamp(420px, min(calc(100svh - var(--nav-h) - 40px), 62vw), 960px);
  display: flex; flex-direction: column; justify-content: flex-end;
  border-bottom: 3px solid var(--ink);
}
/* <img> avec srcset (front-page.php) : le navigateur prend la bonne résolution.
   Le cadrage se règle avec le champ « Cadrage de la photo » (--hero-pos). */
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--hero-pos, 50% 40%); background-size: cover; background-position: var(--hero-pos, 50% 40%); background-color: var(--teal); transform-origin: var(--hero-pos, 50% 40%); animation: heroZoom 18s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,43,26,0.5) 0%, rgba(28,43,26,0.12) 38%, rgba(28,43,26,0.55) 74%, rgba(28,43,26,0.92) 100%); }
.hero-inner { position: relative; z-index: 2; flex: 1; display: flex; align-items: flex-end; width: 100%; max-width: 1500px; margin: 0 auto; padding: 0 64px; }
.hero-content { padding: clamp(64px, 12svh, 150px) 0 clamp(24px, 5svh, 48px); max-width: 940px; }
.hero-eyebrow2 { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--yellow); margin: clamp(26px, 4.5svh, 48px) 0 0; } /* sous le titre : la ligne penchée déborde un peu vers le bas */
.hero-eyebrow2::before { content: ''; width: 40px; height: 3px; background: var(--yellow); border-radius: 2px; }
.hero-bigtitle { font-family: var(--D); color: var(--cream); font-size: clamp(44px, min(12vw, 19svh), 230px); line-height: 0.82; text-shadow: 5px 5px 0 rgba(28,43,26,0.45); }
.hero-bigtitle .stroke { display: inline-block; color: transparent; -webkit-text-stroke: 3px var(--yellow); transform: rotate(-3deg); transform-origin: left center; }
.hero-sub2 { color: rgba(253,250,245,0.92); font-size: clamp(16px, 1.5vw, 21px); line-height: 1.6; max-width: 540px; margin: clamp(14px, 2.6svh, 26px) 0 clamp(18px, 3.4svh, 34px); }
.hero-btns2 { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-btns2 .btn-b { color: var(--cream); border-color: var(--cream); }
.hero-btns2 .btn-b:hover { background: var(--cream); color: var(--ink); }
/* bande de stats : les barres sont le fond encre visible dans le `gap`, elles
   restent donc justes en 4 colonnes comme en 2×2 (≤ 1024px). */
.hero-strip { position: relative; z-index: 2; background: var(--ink); border-top: 3px solid var(--ink); }
.hero-strip-inner { max-width: 1500px; margin: 0 auto; display: grid; gap: 3px; background: var(--ink); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-stat2 { background: var(--yellow); container-type: inline-size; padding: clamp(16px, 2vw, 24px) clamp(18px, 2.4vw, 32px); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
/* Même taille de titre dans les 4 cases (plus de taille liée à la largeur de la case)
   et sous-titres calés en bas : ils restent alignés même si un titre passe sur 2 lignes. */
.hero-stat2 .n { font-family: var(--D); font-size: clamp(22px, 2.4vw, 34px); color: var(--ink); line-height: 1.05; overflow-wrap: break-word; text-wrap: balance; }
.hero-stat2 .l { margin-top: auto; font-size: 14px; font-weight: 800; color: rgba(28,43,26,0.7); line-height: 1.3; text-wrap: pretty; }

/* ── Ancien hero split (conservé pour compat, non utilisé) ── */
#hero.legacy {
  min-height: calc(100vh - 88px);
  background: var(--cream);
}
.hero-bg-letter {
  position: absolute; top: -40px; right: -40px;
  font-family: var(--D); font-size: clamp(300px, 45vw, 600px);
  color: rgba(50,97,134,0.06); line-height: 1;
  pointer-events: none; user-select: none;
  z-index: 0;
}
.hero-color-block {
  position: absolute; right: 0; top: 0; bottom: 0; width: 48%;
  background: var(--teal);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}
.hero-color-block::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='2' cy='2' r='1.5' fill='%23A3CBE1' opacity='0.3'/%3E%3C/svg%3E");
  background-size: 16px 16px;
}
.hero-main {
  position: relative; z-index: 2;
  padding: 60px 64px;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  min-height: calc(100vh - 88px);
  align-items: center;
  max-width: 1500px; margin: 0 auto;
}
.hero-words { display: flex; flex-direction: column; }
.hw-eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.hw-eyebrow::before { content:''; width:32px; height:3px; background:var(--orange); border-radius:2px; }

.hw-title { position: relative; margin-bottom: 32px; }
.hw-t1 { font-family: var(--D); font-size: clamp(80px, 12vw, 180px); line-height: 0.88; color: var(--teal); display: block; }
.hw-t2 { font-family: var(--D); font-size: clamp(60px, 9vw, 130px); line-height: 0.88; color: var(--ink); display: block; margin-left: 24px; }
.hw-t3 { font-family: var(--D); font-size: clamp(80px, 12vw, 180px); line-height: 0.88; color: transparent; -webkit-text-stroke: 3px var(--orange); display: block; margin-left: -8px; }
.title-sticker {
  position: absolute; right: 32px; top: 20px;
  background: var(--yellow); padding: 12px 20px;
  border: 2.5px solid var(--ink); border-radius: 50%;
  width: 100px; height: 100px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 11px; font-weight: 900; line-height: 1.3;
  transform: rotate(12deg);
  box-shadow: 3px 3px 0 var(--ink);
  animation: wobble 3s ease-in-out infinite;
}
@keyframes wobble { 0%,100%{transform:rotate(12deg)} 50%{transform:rotate(14deg) scale(1.05)} }

.hw-sub { font-size: 16px; line-height: 1.65; color: rgba(28,43,26,0.6); margin-bottom: 40px; max-width: 400px; }
.hw-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-a {
  display:inline-block;
  font-family: var(--B); font-size: 15px; font-weight: 900;
  padding: 16px 36px; background: var(--orange); color: var(--cream);
  border: 2.5px solid var(--ink); border-radius: 9999px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-a:hover { transform: translate(-3px,-3px) rotate(-1deg); box-shadow: 7px 7px 0 var(--ink); }
.btn-b {
  display:inline-block;
  font-family: var(--B); font-size: 15px; font-weight: 800;
  padding: 16px 32px; background: transparent; color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: 9999px;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.btn-b:hover { background: var(--ink); color: var(--cream); transform: rotate(1deg); }

.hero-right-stats { display: flex; flex-direction: column; gap: 14px; padding: 0; position: relative; width: 100%; max-width: 400px; margin-left: auto; }
.hstat {
  background: var(--cream); border: 2.5px solid var(--ink);
  padding: 18px 24px; border-radius: 16px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hstat:nth-child(1) { transform: rotate(-2deg); margin-right: 24px; }
.hstat:nth-child(2) { transform: rotate(1.5deg); margin-left: 20px; }
.hstat:nth-child(3) { transform: rotate(-1deg); margin-right: 8px; }
.hstat:nth-child(4) { transform: rotate(2.5deg); margin-left: 32px; }
.hstat:hover { transform: rotate(0deg) scale(1.04) !important; margin-left: 0 !important; margin-right: 0 !important; box-shadow: 6px 6px 0 var(--ink); z-index: 2; }
.hstat .big { font-family: var(--D); font-size: 44px; line-height: 1; }
.hstat:nth-child(1) .big { color: var(--teal); }
.hstat:nth-child(2) .big { color: var(--orange); }
.hstat:nth-child(3) .big { color: var(--green); }
.hstat:nth-child(4) .big { color: var(--teal); }
.hstat .label { font-size: 13px; font-weight: 700; color: rgba(28,43,26,0.5); line-height: 1.4; }

/* ═══════════════════════════════════ DIAGONAL SECTIONS ═══════════════════════════════════ */
/* La diagonale est toujours portée par la section du DESSOUS : elle remonte
   sous la précédente de la hauteur de la pente et coupe son propre haut en
   biais. Le triangle laissé libre montre donc la section du dessus (jamais le
   fond de page), et la pente a une hauteur fixe en px : avec des % elle
   dépendait de la hauteur de la section (énorme sur mobile, textes coupés,
   recouvrement de 40px qui ne collait plus → liserés blancs).
   .diag-bottom / .diag-both « donnent » leur pente du bas à la section suivante,
   quel que soit l'ordre des blocs. */
:root { --diag: clamp(24px, 3.6vw, 60px); }
.diag-top, .diag-both, .diag-bottom + section, .diag-both + section {
  clip-path: polygon(0 var(--diag), 100% 0, 100% 100%, 0 100%);
  position: relative; z-index: 1; /* passe au-dessus de la section qu'elle chevauche */
  margin-top: calc(-1 * var(--diag));
  padding-top: calc(64px + var(--diag)) !important;
  border-top: 0 !important;
}

/* ═══════════════════════════════════ ESPRIT : COMMANDEMENTS (stickers) ═══════════════════════════════════ */
#esprit { background: var(--cream); background-image: radial-gradient(rgba(28,43,26,0.09) 1.2px, transparent 1.3px); background-size: 22px 22px; padding: 110px 64px 150px; position: relative; overflow: hidden; z-index: 1; }
/* 4 par ligne (7 = 4 + 3 centrés), 2 par ligne sur tablette, carrousel sur mobile. */
.cmd-grid { --gap: clamp(16px, 1.8vw, 26px); max-width: 1500px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: calc(var(--gap) + 8px) var(--gap); }
.cmd { flex: 0 1 calc((100% - 3 * var(--gap)) / 4); min-width: 0; border: 3px solid var(--ink); border-radius: 24px; box-shadow: 5px 5px 0 var(--ink); padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s; }
.cmd:nth-child(4n+1) { transform: rotate(-2deg); }
.cmd:nth-child(4n+2) { transform: rotate(1.5deg) translateY(8px); }
.cmd:nth-child(4n+3) { transform: rotate(-1deg); }
.cmd:nth-child(4n+4) { transform: rotate(2.2deg) translateY(6px); }
.cmd:hover { transform: rotate(0) scale(1.03); box-shadow: 8px 10px 0 var(--ink); z-index: 2; }
.cmd.c-yellow { background: var(--yellow); color: var(--ink); }
.cmd.c-orange { background: var(--orange); color: var(--cream); }
.cmd.c-teal   { background: var(--teal); color: var(--cream); }
.cmd.c-blue   { background: var(--blue); color: var(--ink); }
.cmd.c-green  { background: var(--green); color: var(--cream); }
.cmd.c-cream  { background: #fff; color: var(--ink); }
.cmd.c-ink    { background: var(--ink); color: var(--cream); }
.cmd-ic { width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--ink); background: var(--cream); color: var(--ink); display: grid; place-items: center; box-shadow: 2px 2px 0 var(--ink); flex: none; }
.cmd-svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cmd-t { font-family: var(--D); font-weight: 400; font-size: clamp(24px, 2vw, 30px); line-height: 1; color: inherit; overflow-wrap: anywhere; }
.cmd-d { font-size: 14.5px; line-height: 1.5; font-weight: 600; opacity: 0.92; }

/* ═══════════════════════════════════ PARCOURS WILD GRID ═══════════════════════════════════ */
#parcours-teaser { background: var(--cream); padding: 100px 64px 120px; position: relative; z-index: 1; }

/* Grille harmonisée : s'adapte automatiquement au nombre de cartes (pas de colonne vide) */
/* Toujours une seule ligne : N cartes = N colonnes égales (défilement sur mobile). */
.wild-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(14px, 1.6vw, 24px); align-items: stretch; max-width: 1500px; margin: 0 auto; }
.wc { container-type: inline-size; border-radius: 24px; position: relative; transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.wc:nth-child(3n+1) { transform: rotate(-1.5deg); }
.wc:nth-child(3n+2) { transform: rotate(1deg); }
.wc:nth-child(3n+3) { transform: rotate(-0.5deg); }
.wc:hover { transform: rotate(0deg) translateY(-8px) scale(1.02); z-index: 10; }
.wc-inner { display: flex; flex-direction: column; height: 100%; border-radius: 24px; overflow: hidden; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); background: #fff; transition: box-shadow 0.25s; }
.wc:hover .wc-inner { box-shadow: 8px 11px 0 var(--ink); }
/* Photo nette en haut (ratio 3:2, bien remplie) */
.wc-photo { position: relative; aspect-ratio: 3 / 2; background-size: cover; background-position: center; background-color: var(--ink); overflow: hidden; }
.wc-photo[style*="url"]::after { display: none; } /* masque la silhouette terrain quand vraie photo */
/* Jusqu'à 3 badges, empilés en haut à gauche (la flèche reste à droite). */
.wc-badges { position: absolute; top: 14px; left: 14px; right: 64px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 6px; z-index: 1; }
.wc-badge { font-size: 10px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 14px; background: var(--cream); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 9999px; box-shadow: 2px 2px 0 var(--ink); transform: rotate(-3deg); }
.wc-badge:nth-child(2) { background: var(--yellow); transform: rotate(2deg); }
.wc-badge:nth-child(3) { background: var(--blue); transform: rotate(-1deg); }
.wc-arrow { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); border: 2.5px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 900; color: var(--ink); box-shadow: 2px 2px 0 var(--ink); transition: transform 0.25s; }
.wc-arrow svg { width: 22px; height: 22px; display: block; }
.wc:hover .wc-arrow { transform: rotate(-12deg) scale(1.12); }
/* Panneau d'info coloré en bas (à la couleur du parcours) */
.wc-info { flex: 1; padding: clamp(14px, 7cqi, 20px) clamp(14px, 7cqi, 22px) clamp(16px, 7cqi, 22px); background: var(--teal); color: var(--cream); border-top: 3px solid var(--ink); }
.wc .wc-info { background: var(--pc, var(--teal)); color: var(--pc-fg, var(--cream)); }
.wc-name { font-family: var(--D); font-size: clamp(22px, 14cqi, 46px); overflow-wrap: anywhere; line-height: 1; color: inherit; }
.wc-route { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: color-mix(in srgb, currentColor 78%, transparent); margin-top: 5px; }
.wc-stats { display: flex; gap: 10px 14px; flex-wrap: wrap; margin-top: 16px; }
.wc-stats span { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, currentColor 70%, transparent); }
.wc-stats strong { display: block; font-family: var(--D); font-weight: 400; font-size: clamp(16px, 8cqi, 22px); line-height: 1; color: inherit; letter-spacing: 0; text-transform: none; margin-bottom: 2px; }

.bg-niveau { background-image: linear-gradient(160deg, var(--pc-dark, #0e2840), var(--pc, #326186)); }
.bg-niveau::after { content:'';position:absolute;bottom:0;left:0;right:0;height:50%;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 160' preserveAspectRatio='none'%3E%3Cpath d='M0,160 L0,90 Q80,45 160,65 Q240,85 300,30 Q360,0 400,15 L400,160Z' fill='%23FDFAF5' opacity='0.16'/%3E%3C/svg%3E") bottom/100% auto no-repeat; }
/* image de fond réelle si fournie */
.wc-bg[style*="url"], .pf-vis-bg[style*="url"] { background-color: var(--ink); }

.pt-footer { margin-top: 48px; display: flex; justify-content: center; }

/* ═══════════════════════════════════ FOND TOPO (accueil) ═══════════════════════════════════ */
/* Lignes de niveau légères derrière le contenu (dessinées par assets/js/trace-topo.js). */
.flc-topo-fond { position: absolute; inset: 0; pointer-events: none; z-index: 0; --topo-ligne: rgba(28,43,26,0.08); --topo-ligne-m: rgba(28,43,26,0.13); }
.flc-topo-fond svg { display: block; }
.flc-topo-fond .topo-bg-lignes path { fill: none; stroke: var(--topo-ligne); stroke-width: 1; stroke-linecap: round; }
.flc-topo-fond .topo-bg-lignes path.is-maitre { stroke: var(--topo-ligne-m); stroke-width: 1.4; }
[data-ton="fonce"] .flc-topo-fond { --topo-ligne: rgba(253,250,245,0.07); --topo-ligne-m: rgba(253,250,245,0.12); }
[data-topo] > :not(.flc-topo-fond) { position: relative; z-index: 1; }

/* ── Fonds des sections de l'accueil (Personnaliser → Fonds des sections) ──
   Couleur choisie = data-sec-bg + --sec-bg. Le ton (clair/foncé) est calculé
   côté PHP d'après la couleur : on bascule alors les textes posés directement
   sur le fond (les cartes gardent leurs propres couleurs). */
[data-sec-bg] { background-color: var(--sec-bg) !important; }
[data-sec-bg][data-ton="clair"] { --sec-t: var(--ink); --sec-acc: var(--teal); --sec-sub: rgba(28,43,26,0.68); }
[data-sec-bg][data-ton="clair"] .faq-q { color: var(--ink); }
[data-sec-bg][data-ton="clair"] :is(.faq-a, .cta-foot) { color: rgba(28,43,26,0.62); }
[data-sec-bg][data-ton="clair"] .faq-item { border-color: rgba(28,43,26,0.15); }
[data-sec-bg][data-ton="fonce"] { --sec-t: var(--cream); --sec-acc: var(--yellow); --sec-sub: rgba(253,250,245,0.74); }
[data-sec-bg][data-ton="fonce"] .faq-q { color: var(--cream); }
[data-sec-bg][data-ton="fonce"] :is(.faq-a, .cta-foot) { color: rgba(253,250,245,0.68); }
[data-sec-bg][data-ton="fonce"] .faq-item { border-color: rgba(253,250,245,0.15); }

/* ═══════════════════════════════════ TEMOIGNAGES STACK ═══════════════════════════════════ */
#temo-section { background: var(--yellow); padding: 100px 64px; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); position: relative; overflow: hidden; z-index: 1; }
.temo-stack { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; position: relative; align-items: start; }
.temo-card { background: var(--cream); border: 2.5px solid var(--ink); border-radius: 20px; padding: 28px; box-shadow: 5px 5px 0 var(--ink); transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s; }
.temo-card:nth-child(1) { transform: rotate(-2deg); z-index: 3; margin-right: -16px; }
.temo-card:nth-child(2) { transform: rotate(1deg); z-index: 4; margin-top: 24px; }
.temo-card:nth-child(3) { transform: rotate(-1.2deg); z-index: 3; margin-left: -16px; margin-top: 8px; }
.temo-card:hover { transform: rotate(0deg) scale(1.04) translateY(-8px) !important; z-index: 10; box-shadow: 8px 8px 0 var(--ink); }
.temo-quote-mark { font-family: var(--D); font-size: 64px; color: var(--teal); line-height: 0.7; margin-bottom: 8px; }
.temo-text { font-size: 15px; line-height: 1.7; font-style: italic; color: var(--ink); margin-bottom: 20px; }
.temo-who { font-weight: 900; font-size: 13px; color: var(--teal); }
.temo-info { font-size: 12px; color: rgba(28,43,26,0.45); margin-top: 2px; }

/* Rangées supplémentaires révélées par « Voir plus » (inc/home-blocks.php). */
/* display:grid de .temo-stack l'emporterait sur [hidden] : on force le masquage. */
.temo-stack[hidden] { display: none; }
.temo-stack + .temo-stack { margin-top: 56px; }
.temo-more { text-align: center; margin-top: 48px; }
.temo-btn { background: transparent; color: var(--ink); border-color: var(--ink); cursor: pointer; }
[data-sec-bg][data-ton="fonce"] .temo-btn { color: var(--cream); border-color: var(--cream); }
@media (max-width: 1024px) { .temo-stack + .temo-stack { margin-top: 16px; } }

/* ═══════════════════════════════════ ÉQUIPE (accueil) ═══════════════════════════════════ */
/* Ces règles avaient disparu lors de la refonte de la page Parcours, alors que
   le bloc « Équipe » de inc/home-blocks.php continuait de rendre ce balisage :
   la section s'affichait donc sans aucune mise en forme. */
.team-s { background: var(--ink); padding: 100px 64px; position: relative; overflow: hidden; }
.team-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; max-width: 1200px; margin: 0 auto; }
.tm { background: var(--cream); border: 3px solid var(--ink); border-radius: 24px; padding: 34px 26px 28px; text-align: center; box-shadow: 6px 6px 0 var(--ink); position: relative; transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.28s; }
.tm:nth-child(3n+1) { transform: rotate(-2deg); }
.tm:nth-child(3n+2) { transform: rotate(1.5deg); }
.tm:nth-child(3n+3) { transform: rotate(-1deg); }
.tm:hover { transform: rotate(0deg) translateY(-10px) scale(1.03); box-shadow: 10px 14px 0 var(--ink); z-index: 2; }
.tm-av { width: 132px; height: 132px; border-radius: 50%; margin: 0 auto 18px; border: 4px solid var(--teal); background-size: cover; background-position: center; background-color: var(--blue); box-shadow: 5px 5px 0 var(--ink); }
.tm:nth-child(3n+2) .tm-av { border-color: var(--orange); }
.tm:nth-child(3n+3) .tm-av { border-color: var(--green); }
.tm-name { font-family: var(--D); font-size: 32px; color: var(--ink); line-height: 1; }
.tm-role { display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream); background: var(--orange); border: 2.5px solid var(--ink); border-radius: 9999px; padding: 6px 16px; margin: 12px 0 16px; transform: rotate(-2deg); box-shadow: 2px 2px 0 var(--ink); }
.tm:nth-child(3n+2) .tm-role { background: var(--teal); transform: rotate(2deg); }
.tm:nth-child(3n+3) .tm-role { background: var(--green); transform: rotate(-1deg); }
.tm-bio { font-size: 13.5px; line-height: 1.65; color: rgba(28,43,26,0.65); }

/* ═══════════════════════════════════ FAQ ═══════════════════════════════════ */
#faq-section { background: var(--teal); padding: 100px 64px; position: relative; z-index: 1; }
.faq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 64px; }
.faq-item { border-bottom: 2px solid rgba(253,250,245,0.15); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-family: var(--B); font-size: 15px; font-weight: 800; color: var(--cream); background: none; border: none; text-align: left; transition: color 0.2s; }
.faq-q:hover { color: var(--yellow); }
.faq-icon { font-size: 22px; opacity: 0.7; transition: transform 0.3s; flex-shrink: 0; margin-left: 12px; }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.4s, padding 0.3s; font-size: 14px; line-height: 1.7; color: rgba(253,250,245,0.6); }
.faq-item.open .faq-a { max-height: 320px; padding-bottom: 20px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ═══════════════════════════════════ CTA FINAL ═══════════════════════════════════ */
#cta-final { background: var(--cream); padding: 120px 64px; text-align: center; position: relative; z-index: 1; border-top: 3px solid var(--ink); overflow: hidden; }
.cta-foot { margin-top: 24px; font-size: 13px; color: rgba(28,43,26,0.4); }
.btn-giant { display: inline-block; font-family: var(--B); font-size: 22px; font-weight: 900; padding: 24px 80px; background: var(--orange); color: var(--cream); border: 3px solid var(--ink); border-radius: 9999px; box-shadow: 6px 6px 0 var(--ink); transition: transform 0.2s, box-shadow 0.2s; animation: btnBounce 2s ease-in-out infinite; }
@keyframes btnBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
.btn-giant:hover { transform: translate(-4px,-4px) rotate(-1deg) !important; box-shadow: 10px 10px 0 var(--ink); animation: none; }

/* ═══════════════════════════════════ FOOTER ═══════════════════════════════════ */
/* Footer « Bivouac » (footer.php) : le même que le bas des mails. Collines verte
   et encre, puis bande encre avec le slogan en jaune. Textes réglés dans le
   module Mails du dashboard. */
/* Remonté de la hauteur des collines : elles se posent sur le fond de la
   dernière section au lieu de laisser une bande crème entre les deux. */
footer.site-footer { position: relative; z-index: 2; margin-top: calc(-1 * clamp(46px, 7vw, 96px)); color: var(--cream); background: transparent; pointer-events: none; }
footer.site-footer .ft-bande { pointer-events: auto; }
.ft-collines { display: block; width: 100%; height: clamp(46px, 7vw, 96px); margin-bottom: -1px; }
.ft-bande { background: var(--ink); padding: clamp(22px, 3vw, 34px) clamp(16px, 5vw, 64px) 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ft-nom { font-family: var(--U); font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: rgba(253,250,245,.7); margin: 0; }
.ft-slogan { font-family: var(--D); font-size: clamp(26px, 3.6vw, 44px); line-height: 1; color: var(--yellow); text-transform: uppercase; margin: 4px 0 0; text-wrap: balance; }
.ft-txt { font-size: 15px; color: rgba(253,250,245,.78); margin: 0; }
.ft-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 12px; }
.ft-liens a { font-weight: 800; font-size: 15px; color: var(--cream); text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: color .15s; }
.ft-liens a:hover { color: var(--yellow); }
.ft-ground { width: 100%; margin-top: clamp(18px, 2.4vw, 28px); padding: 14px 0 18px; border-top: 1px solid rgba(253,250,245,.12); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 22px; font-size: 12.5px; color: rgba(253,250,245,.65); }
.site-footer .legal-links.on-dark a:hover { color: var(--yellow); }

/* ═══════════════════════════════════ PAGE PARCOURS ═══════════════════════════════════ */
.ph { background: var(--teal); padding: 80px 64px 60px; border-bottom: 3px solid var(--ink); position: relative; overflow: hidden; }
.ph::after { content: 'TRACES'; position: absolute; right: -40px; top: -20px; font-family: var(--D); font-size: 200px; color: rgba(253,250,245,0.06); pointer-events: none; line-height: 1; }
.ph h1 { font-family: var(--D); font-size: clamp(64px, 9vw, 130px); color: var(--cream); line-height: 0.92; }
.ph h1 span { color: var(--yellow); display: inline-block; transform: rotate(-1deg); }
.ph p { margin-top: 20px; font-size: 16px; color: rgba(253,250,245,0.65); max-width: 520px; line-height: 1.6; }

/* Cartes de statistiques et pastilles de tags — partagées avec la fiche d'une trace. */
.pf-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
.pf-stat { border: 2.5px solid var(--ink); padding: 16px 20px; border-radius: 16px; background: white; box-shadow: 3px 3px 0 var(--ink); }
.pf-stat .v { font-family: var(--D); font-size: 32px; line-height: 1; }
.pf-stat .v.is-empty { color: var(--muted); }
.pf-stat .k { font-family: var(--U); font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(28,43,26,0.45); margin-top: 4px; }
.pf-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.pf-tag { font-family: var(--U); font-size: 12px; font-weight: 700; padding: 6px 16px; border: 2px solid var(--ink); border-radius: 9999px; transition: all 0.15s; }
.pf-tag:hover { background: var(--ink); color: var(--cream); transform: rotate(-1deg); }
[style*="--pc-accent"] .pf-stat .v:not(.is-empty) { color: var(--pc-accent); }

/* ── Hero ── */
.tp-hero { background: var(--teal); color: var(--cream); padding: 64px 64px 52px; border-bottom: 3px solid var(--ink); position: relative; overflow: hidden; }
.tp-hero::after { content: 'TRACES'; position: absolute; right: -40px; top: -20px; font-family: var(--D); font-size: 200px; color: rgba(253,250,245,0.06); pointer-events: none; line-height: 1; }
.tp-hero-inner { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; align-items: end; }
.tp-title { font-family: var(--D); font-weight: 400; font-size: clamp(56px, 8vw, 112px); line-height: 0.85; }
.tp-title span { color: var(--yellow); display: inline-block; }
.tp-intro { margin-top: 16px; max-width: 520px; font-size: 16px; line-height: 1.6; color: rgba(253,250,245,0.8); }


/* ── Accordéon ── */
/* Une seule ligne, quel que soit le nombre de traces : les panneaux repliés se
   compriment au lieu de passer à la ligne et d'occuper toute la largeur. */
.tp-strip { display: flex; flex-wrap: nowrap; border-bottom: 3px solid var(--ink); }
.tp-panel { position: relative; flex: 1 1 140px; min-width: 0; min-height: 620px; display: flex; flex-direction: column; overflow: hidden; background: var(--pbg); color: var(--pfg); border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.tp-panel:last-child { border-right: none; }
.tp-panel.open { flex: 5 1 560px; }
.tp-panel[hidden] { display: none; }
.tp-panel::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 260px; height: 260px; border-radius: 48% 52% 60% 40% / 50% 45% 55% 50%; background: var(--pblob); pointer-events: none; }
.tp-empty { padding: 64px; font-size: 16px; }

.tp-head { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; gap: 18px; width: 100%; padding: 24px; text-align: left; background: none; border: 0; color: inherit; cursor: pointer; }
/* align-items:flex-start garde les numéros alignés entre eux même quand un badge
   un peu long passe à la ligne dans un panneau replié étroit. */
.tp-head-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px; }
.tp-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tp-badge { font-family: var(--U); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; background: var(--cream); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 9999px; box-shadow: 2px 2px 0 var(--ink); transform: rotate(-3deg); }
.tp-badge:nth-child(2) { background: var(--yellow); transform: rotate(2deg); }
.tp-badge:nth-child(3) { background: var(--blue); transform: rotate(-1deg); }
.tp-num { font-family: var(--B); font-weight: 900; font-size: 28px; margin-left: auto; }
.tp-teaser { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; gap: 14px; }
.tp-word { font-family: var(--D); font-size: clamp(30px, 3.4vw, 88px); line-height: 0.85; }
.tp-hook { font-family: var(--B); font-weight: 800; font-size: 16px; }
.tp-open { font-family: var(--U); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
/* Le teaser se replie au lieu de disparaître : c'est lui qui faisait la moitié
   de l'à-coup en mobile, où il pèse 180px (cf. la media query 1024px) et
   s'évanouissait d'un bloc pendant que le corps se dépliait. Les deux
   mouvements se compensent maintenant sur la même durée.
   `visibility` n'arrive qu'à la fin, pour sortir le texte replié du nom
   accessible du bouton sans l'escamoter avant l'heure. */
.tp-js .tp-teaser {
	overflow: hidden;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.3s ease,
	            max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
	            visibility 0s linear 0s;
}
.tp-js .tp-panel.open .tp-teaser {
	flex: 0 0 auto;
	min-height: 0;
	max-height: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease,
	            max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
	            visibility 0s linear 0.5s;
}
.tp-js .tp-panel.open .tp-head { flex: 0 0 auto; }

.tp-body { display: grid; position: relative; z-index: 1; padding: 0 24px 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; align-items: start; }
/* Replié : la hauteur et le padding bas tombent à zéro plutôt qu'un display:none,
   pour que le dépliage soit animable — c'est ce qui rend l'ouverture douce en
   mobile, où `flex` ne joue plus (cf. la media query 1024px).
   `visibility` reprend le rôle d'accessibilité de display:none : sans elle, les
   deux liens de chaque panneau replié resteraient atteignables au clavier.
   `height: auto` à l'ouverture est indispensable : parcours.js pose une hauteur
   en pixels le temps de l'animation puis la retire, et doit retrouver `auto`. */
.tp-js .tp-body {
	height: 0;
	padding-bottom: 0;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
	            padding-bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1),
	            opacity 0.38s ease,
	            transform 0.38s ease,
	            visibility 0s linear 0.5s;
}
.tp-js .tp-panel.open .tp-body { --tp-pb-fin: 28px; height: auto; padding-bottom: var(--tp-pb-fin); }
/* `deploye` est posée par parcours.js une fois la largeur du panneau acquise
   (immédiatement en mobile, où il n'y a pas de largeur à attendre). Sans cette
   attente, la grille du corps traverse une phase à une colonne pendant
   l'élargissement : la hauteur partait à 1100px avant de retomber à 700px, et
   c'était ce rebond, pas la vitesse, qui rendait l'ouverture désagréable. */
.tp-js .tp-panel.open.deploye .tp-body {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
	            padding-bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1),
	            opacity 0.42s ease 0.1s,
	            transform 0.42s ease 0.1s,
	            visibility 0s linear 0s;
}
/* Sans JS (classe tp-js absente) : les panneaux restent dépliés, en colonne. */
html:not(.tp-js) .tp-strip { display: block; }
html:not(.tp-js) .tp-panel { min-height: 0; border-right: none; }
html:not(.tp-js) .tp-teaser { display: none; }
html:not(.tp-js) .tp-head { flex: 0 0 auto; cursor: default; }
.tp-det { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tp-date { font-family: var(--U); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.tp-name { font-family: var(--D); font-weight: 400; font-size: clamp(56px, 6.5vw, 104px); line-height: 0.85; }
.tp-name span { font-family: var(--B); font-weight: 900; font-size: 0.5em; margin-left: 0.12em; }
.tp-desc { font-size: 16px; line-height: 1.5; max-width: 420px; }
.tp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px; }
.tp-stat { background: white; color: var(--ink); border: 2.5px solid var(--ink); border-radius: 16px; padding: 10px 12px; box-shadow: 3px 3px 0 var(--ink); min-width: 0; }
.tp-stat .v { font-family: var(--B); font-weight: 900; font-size: 22px; line-height: 1.1; color: var(--paccent); }
.tp-stat .v.is-empty { color: var(--muted); }
.tp-stat .sub { font-family: var(--U); font-weight: 700; font-size: 12px; line-height: 1.2; color: rgba(28,43,26,0.55); margin-top: 1px; }
.tp-stat .k { font-family: var(--U); font-weight: 700; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(28,43,26,0.5); margin-top: 2px; }
.tp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-tag { background: white; color: var(--ink); border: 2px solid var(--ink); border-radius: 9999px; padding: 4px 12px; font-family: var(--U); font-weight: 700; font-size: 12px; }
.tp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.tp-cta .btn-b { background: white; color: var(--ink); border-color: var(--ink); }
/* La rotation et l'ombre débordent : on réserve la place pour ne pas les faire rogner par le panneau. */
.tp-photo { margin: 6px 8px 12px 0; width: 100%; max-width: 340px; justify-self: end; align-self: start; aspect-ratio: 4/5; border: 2.5px solid var(--ink); border-radius: 28px; box-shadow: 6px 6px 0 var(--ink); transform: rotate(2.5deg); background-color: var(--ptint); background-size: cover; background-position: center; display: grid; place-items: center; }
.tp-photo span { font-family: var(--B); font-weight: 800; font-size: 18px; color: var(--ink); padding: 24px; text-align: center; }

/* Page Parcours tenue dans l'écran (avec JS), à toutes les tailles : l'en-tête
   se fait compact et le rideau prend exactement la hauteur qui reste sous lui.
   parcours.js mesure cette hauteur (fenêtre − barre de navigation − en-tête)
   et la pose dans --tp-dispo ; à défaut, on retombe sur la fenêtre moins la
   barre. Tout ce qui est grand dans le rideau se règle ensuite sur --tp-h,
   pour que le bas reste visible sans défiler. */
:root { --nav-h: 80px; }
body.admin-bar { --nav-h: 112px; }
@media screen and (max-width: 782px) { body.admin-bar { --nav-h: 126px; } }

.tp-js .tp-hero { padding-top: clamp(16px, 4svh, 64px); padding-bottom: clamp(14px, 3.4svh, 52px); }
.tp-js .tp-hero-inner { gap: clamp(10px, 2.4svh, 32px); }
.tp-js .tp-title { font-size: clamp(40px, min(8vw, 9svh), 112px); }
.tp-js .tp-intro { margin-top: clamp(6px, 1.4svh, 16px); }
/* Écran bas : la phrase d'intro cède sa place au rideau. */
@media (max-height: 760px) { .tp-js .tp-intro { display: none; } }

.tp-js .tp-strip {
	--tp-h: var(--tp-dispo, calc(100svh - var(--nav-h)));
	height: var(--tp-h);
	min-height: 400px;
}

@media (min-width: 1025px) {
	.tp-js .tp-panel { min-height: 0; }
	.tp-js .tp-head { padding: clamp(12px, calc(var(--tp-h) * 0.03), 24px) 24px; gap: clamp(8px, calc(var(--tp-h) * 0.02), 18px); }
	.tp-js .tp-word { font-size: clamp(28px, min(3.4vw, calc(var(--tp-h) * 0.11)), 88px); }
	.tp-js .tp-panel.open .tp-body {
		flex: 1 1 0;
		min-height: 0;
		/* Photo au format 4/5 calée sur la hauteur du rideau, moins l'en-tête
		   du panneau et les marges. */
		grid-template-columns: minmax(0, 1fr) clamp(130px, calc((var(--tp-h) - 150px) * 0.8), 340px);
		grid-template-rows: minmax(0, 1fr);
		align-items: stretch;
		--tp-pb-fin: clamp(12px, calc(var(--tp-h) * 0.035), 28px);
	}
	/* Filet pour les écrans vraiment bas. Sans `overscroll-behavior: contain` :
	   la molette doit pouvoir repartir vers la page. */
	.tp-js .tp-det { min-height: 0; overflow-y: auto; scrollbar-width: thin; gap: clamp(6px, calc(var(--tp-h) * 0.02), 14px); padding: 0 4px 6px 0; }
	.tp-js .tp-name { font-size: clamp(34px, min(6.5vw, calc(var(--tp-h) * 0.13)), 104px); }
	.tp-js .tp-desc { font-size: clamp(13px, calc(var(--tp-h) * 0.024), 16px); line-height: 1.45; }
	.tp-js .tp-stat { padding: clamp(5px, calc(var(--tp-h) * 0.012), 10px) 12px; }
	.tp-js .tp-stat .v { font-size: clamp(17px, calc(var(--tp-h) * 0.03), 22px); }
	.tp-js .tp-photo { align-self: center; max-height: calc(100% - 20px); }
}
/* Écran bas : les étiquettes (reprises sur la fiche complète) laissent la
   place, et les boutons se resserrent, pour que le bas reste visible. */
@media (min-width: 1025px) and (max-height: 760px) {
	.tp-js .tp-tags { display: none; }
	.tp-js .tp-cta .btn-a, .tp-js .tp-cta .btn-b { padding-top: 10px; padding-bottom: 10px; font-size: 15px; }
}

/* ── Bandeau du bas ── */
.tp-ticker { background: var(--teal-700); padding: 56px 0 72px; overflow: hidden; }
.tp-ticker-band { background: var(--yellow); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); padding: 20px 0; transform: rotate(-1.2deg); margin: 0 -20px; box-shadow: 0 6px 0 var(--ink); display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 16px; font-family: var(--D); font-size: 32px; color: var(--teal); }
.tp-ticker-band .sep { color: var(--orange); }
.tp-ticker-band .sep--point { font-family: var(--B); font-weight: 900; }

/* ═══════════════════════════════════ PAGE ROADBOOK ═══════════════════════════════════ */
/* La couleur de difficulté arrive par --dc, posée en style inline sur la carte
   (et sur la section quand on trie par niveau). */

.rb-hero { padding: 72px 64px 34px; }
.rb-eyebrow { font-family: var(--U); font-weight: 700; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(28,43,26,0.55); margin-bottom: 14px; }
.rb-h1 { font-family: var(--D); font-size: clamp(44px, 7.4vw, 110px); line-height: 0.92; color: var(--ink); text-wrap: balance; }
.rb-h1 span { display: block; }
.rb-h1 em { font-style: normal; color: var(--orange); display: inline-block; transform: rotate(-2.5deg); }
.rb-intro { margin-top: 20px; max-width: 52ch; font-size: 17px; line-height: 1.6; color: rgba(28,43,26,0.75); }
.rb-count { display: inline-flex; align-items: center; gap: 9px; margin-top: 24px; font-family: var(--U); font-weight: 700; font-size: 12px; letter-spacing: 0.11em; text-transform: uppercase; background: var(--tint-green); border: 2.5px solid var(--ink); border-radius: 9999px; padding: 8px 16px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-1deg); }
.rb-count b { font-family: var(--B); font-weight: 900; font-size: 15px; letter-spacing: 0; }

.rb-controls { position: sticky; top: 0; z-index: 20; background: color-mix(in oklch, var(--cream) 90%, transparent); backdrop-filter: blur(8px); border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); margin-top: 32px; }
.rb-controls-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; padding: 14px 64px; }
.rb-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rb-label { font-family: var(--U); font-weight: 700; font-size: 10px; letter-spacing: 0.17em; text-transform: uppercase; color: rgba(28,43,26,0.55); }
.rb-spacer { flex: 1 1 20px; }
html:not(.rb-js) .rb-controls { display: none; }

.rb-seg { display: inline-flex; border: 2.5px solid var(--ink); border-radius: 9999px; background: white; padding: 3px; box-shadow: 3px 3px 0 var(--ink); }
.rb-seg button { border: 0; background: transparent; cursor: pointer; font-family: var(--U); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); padding: 7px 15px; border-radius: 9999px; transition: background 0.15s, color 0.15s; }
.rb-seg button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

.rb-chip { cursor: pointer; background: white; border: 2.5px solid var(--ink); border-radius: 9999px; padding: 7px 15px; font-family: var(--U); font-weight: 700; font-size: 12px; letter-spacing: 0.05em; color: var(--ink); box-shadow: 2px 2px 0 var(--ink); transition: transform 0.13s, box-shadow 0.13s, background 0.13s; display: inline-flex; align-items: center; gap: 7px; }
.rb-chip:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.rb-chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); box-shadow: 2px 2px 0 var(--green); }
.rb-chip .dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink); flex: none; }
.rb-chip[aria-pressed="true"] .dot { border-color: var(--cream); }

.rb-groups { padding: 44px 64px 24px; display: flex; flex-direction: column; gap: 54px; }
.rb-sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.rb-sec-head h2 { font-family: var(--D); font-size: clamp(30px, 4.6vw, 52px); line-height: 1; color: var(--ink); }
.rb-rule { flex: 1; height: 2.5px; background: var(--ink); opacity: 0.22; border-radius: 2px; }
.rb-sec-n { font-family: var(--U); font-weight: 700; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(28,43,26,0.55); white-space: nowrap; }
.rb-sec--diff .rb-sec-head h2::before { content: ''; display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--dc, var(--green)); margin-right: 12px; }

.rb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 26px; }
.rb-card { display: flex; flex-direction: column; text-align: left; width: 100%; font-family: var(--B); color: var(--ink); text-decoration: none; background: white; border: 2.5px solid var(--ink); border-radius: 20px; overflow: hidden; padding: 0; cursor: pointer; box-shadow: 6px 6px 0 var(--ink); transition: transform 0.16s, box-shadow 0.16s; }
.rb-card:hover { transform: translate(-3px,-3px); box-shadow: 10px 10px 0 var(--ink); }
.rb-card[hidden] { display: none; }

.rb-thumb { display: block; position: relative; aspect-ratio: 16/10; max-width: 100%; border-bottom: 2.5px solid var(--ink); background: linear-gradient(145deg, var(--dc, var(--green)), var(--ink)); }
.rb-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); display: block; }
.rb-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,43,26,0.42), transparent 58%); }
.rb-badges { position: absolute; left: 12px; right: 12px; bottom: 11px; z-index: 2; display: flex; flex-wrap: wrap; gap: 7px; }
.rb-badge { font-family: var(--U); font-weight: 700; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 11px; border-radius: 9999px; border: 2px solid var(--ink); background: white; box-shadow: 2px 2px 0 var(--ink); }
.rb-badge--diff { color: white; background: var(--dc, var(--green)); text-shadow: 0 1px 0 rgba(0,0,0,0.28); }
.rb-badge--prive { background: var(--yellow); }
.rb-year-tag { position: absolute; top: 11px; right: 11px; z-index: 2; font-weight: 900; font-size: 13px; background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 9999px; padding: 4px 12px; box-shadow: 2px 2px 0 var(--ink); transform: rotate(2deg); font-variant-numeric: tabular-nums; }

.rb-body { display: flex; flex-direction: column; gap: 9px; flex: 1; padding: 17px 19px 19px; }
.rb-title { font-family: var(--D); font-size: 24px; line-height: 1.12; text-wrap: balance; }
.rb-route { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--U); font-weight: 600; font-size: 13px; color: var(--teal-700); }
.rb-desc { font-size: 14.5px; line-height: 1.55; color: rgba(28,43,26,0.7); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rb-foot { margin-top: auto; padding-top: 13px; border-top: 2px dashed rgba(28,43,26,0.2); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rb-lock { font-family: var(--U); font-weight: 700; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(28,43,26,0.55); }
.rb-open { font-family: var(--U); font-weight: 700; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-700); }
.rb-card:hover .rb-open { color: var(--orange); }

.rb-empty { margin: 0 64px 48px; border: 2.5px dashed var(--ink); border-radius: 20px; padding: 42px 26px; text-align: center; background: var(--tint-yellow); font-family: var(--U); font-weight: 600; font-size: 15px; }

/* Vue détail : le rendu vient du plugin, on l'accorde au thème sans y toucher. */
.rb-detail { padding: 40px 64px 64px; }
.rb-back { display: inline-block; margin-bottom: 28px; font-family: var(--U); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); text-decoration: none; border: 2.5px solid var(--ink); border-radius: 9999px; padding: 8px 18px; background: white; box-shadow: 3px 3px 0 var(--ink); transition: transform 0.15s, box-shadow 0.15s; }
.rb-back:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.rb-detail h1, .rb-detail h2, .rb-detail h3 { font-family: var(--D); color: var(--ink); }


/* ═══════════════════════════════════ PAGE CANDIDATER ═══════════════════════════════════ */
/* ── Page Candidater (maquette « Formulaire Pre-inscription — 1a ») ── */
#page-candidater { background: color-mix(in oklch, var(--yellow) 7%, white); overflow-x: clip; }
.ch { background: var(--orange); padding: 44px 64px 52px; border-bottom: 3px solid var(--ink); display: flex; flex-direction: column; gap: 24px; }
.ch h1 { font-family: var(--D); font-size: clamp(64px, 9vw, 120px); line-height: 0.88; color: #fff; text-transform: uppercase; }
.ch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.ch p { font-size: 19px; line-height: 1.5; color: #fff; max-width: 560px; margin: 0; text-wrap: pretty; }
.ch-nota { font-size: 16px; color: #fff; border: 2px solid rgba(255,255,255,0.5); border-radius: 9999px; padding: 12px 22px; }
.ch-nota strong { font-weight: 800; }
/* Écran de confirmation */
.ch--merci { padding: 80px 64px 104px; gap: 28px; min-height: 60vh; }
.ch .ch-kicker { font-family: var(--U); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); }
.ch .ch-merci { font-size: 21px; max-width: 620px; }
.ch-choisis { display: flex; flex-wrap: wrap; gap: 12px; }
.ch-choisi { display: inline-flex; align-items: baseline; gap: 12px; background: color-mix(in oklch, var(--yellow) 7%, white); border-radius: 9999px; padding: 10px 20px; font-family: var(--U); font-weight: 700; font-size: 14px; color: var(--ink); }
.ch-choisi span { font-family: var(--D); font-size: 26px; }
.ch-modifier { display: inline-flex; margin-top: 16px; font-family: var(--U); font-weight: 600; font-size: 18px; padding: 14px 28px; border-radius: 9999px; background: #fff; color: var(--teal); border: 2px solid var(--teal); transition: transform 0.2s; }
.ch-modifier:hover { transform: scale(1.03); }

/* Blocs numérotés */
.cf-body { padding: 72px 64px; display: flex; flex-direction: column; gap: 64px; max-width: 1280px; margin: 0 auto; }
.cf-sep { height: 2px; background: rgba(28,43,26,0.1); }
.cf-sec { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
.cf-sec-t { display: flex; flex-direction: column; gap: 4px; }
.cf-num { font-family: 'Fredoka', var(--B); font-weight: 700; font-size: 56px; line-height: 1; color: var(--orange); }
.cf-sec-t h2 { font-family: 'Fredoka', var(--B); font-weight: 700; font-size: 28px; line-height: 1.15; color: var(--ink); }
.cf-sec-t p { font-size: 15px; color: rgba(28,43,26,0.6); }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; align-content: start; }
.fg { display: flex; flex-direction: column; gap: 8px; }
.fg.full { grid-column: 1/-1; }
.fg > label, .fg > .fg-titre { font-family: var(--U); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.fg .req { color: var(--orange); }
.fg input, .fg select, .fg textarea { font-family: var(--B); font-size: 16px; padding: 12px 16px; background: #fff; border: 2px solid rgba(28,43,26,0.14); border-radius: 16px; color: var(--ink); outline: none; transition: border-color 0.2s; appearance: none; width: 100%; }
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--teal); }
.fg input::placeholder, .fg textarea::placeholder { color: rgba(28,43,26,0.35); }
.fg select option { background: #fff; }
.fg textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.fg-help { display: block; font-size: 13px; color: rgba(28,43,26,0.55); line-height: 1.4; }

/* Cartes parcours */
.pp { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.pp-o { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 200px; padding: 22px; background: #fff; border: 3px solid rgba(28,43,26,0.12); border-radius: 24px; cursor: pointer; transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), background 0.2s, border-color 0.2s; }
.pp-o:hover { transform: scale(1.03); }
.pp-o input { position: absolute; opacity: 0; pointer-events: none; }
.pp-o:has(input:checked) { background: var(--pp-tint); border-color: var(--pp); }
.pp-o:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.pp--erreur .pp-o { border-color: var(--orange); }
.pp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pp-radio { width: 22px; height: 22px; flex: none; border-radius: 9999px; border: 2px solid var(--pp); background: transparent; transition: background 0.15s; }
.pp-o:has(input:checked) .pp-radio { background: var(--pp); }
.pp-st { font-family: var(--U); font-size: 12px; font-weight: 700; color: var(--pp); text-align: right; }
.pp-n { font-family: var(--D); font-size: 48px; line-height: 1; color: var(--pp); }
.pp-bas { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.pp-d { font-family: var(--U); font-weight: 700; font-size: 16px; color: var(--ink); }
.pp-l { font-size: 14px; color: rgba(28,43,26,0.6); }
.pp-vide { font-size: 16px; color: rgba(28,43,26,0.6); }

/* Choix multiples : Tag du design system */
.pp-checks { display: flex; flex-wrap: wrap; gap: 10px; }
.pp-check { display: inline-flex; align-items: center; font-family: var(--U); font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 9999px; border: 2px solid rgba(28,43,26,0.14); background: #fff; color: rgba(28,43,26,0.65); cursor: pointer; transition: all 0.15s; }
.pp-check:hover { background: rgba(28,43,26,0.04); }
.pp-check input { position: absolute; opacity: 0; pointer-events: none; }
.pp-check:has(input:checked) { border-color: var(--teal); background: var(--tint-blue); color: var(--teal); }
.pp-check:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Barre d'envoi collante */
.cf-bar { position: sticky; bottom: 0; z-index: 30; background: var(--ink); padding: 22px 64px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.cf-bar p { margin: 0; font-size: 16px; color: #fff; }
.cf-bar strong { font-family: var(--U); font-weight: 700; }
.btn-submit { font-family: var(--U); font-weight: 600; font-size: 18px; padding: 16px 30px; background: var(--orange); color: #fff; border: none; border-radius: 9999px; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 2px rgba(0,0,0,0.2); transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), filter 0.2s; }
.btn-submit:hover { transform: scale(1.03); filter: brightness(1.08); }
.cf-espace-intro { font-size: 15px; line-height: 1.55; color: rgba(28,43,26,0.7); max-width: 640px; margin: 0; }
.ch .ch-compte { font-size: 16px; max-width: 620px; background: rgba(255,255,255,0.14); border: 2px solid rgba(255,255,255,0.45); border-radius: 16px; padding: 14px 18px; }
.ch-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.ch-actions .ch-modifier { margin-top: 0; }
.ch-modifier--espace { background: var(--ink); color: #fff; border-color: var(--ink); }
.form-error { background: rgba(212,82,12,0.1); border: 2px solid var(--orange); color: var(--orange); padding: 14px 18px; border-radius: 16px; font-weight: 700; font-size: 14px; }

/* Inscription en 3 étapes (maquette 1b) : colonne d'étapes orange, barre de
   progression, une étape à la fois. Sans JS (.cf-js absent), tout s'affiche à
   la suite, comme avant. */
.cf-form [hidden] { display: none !important; }
.cf-wrap { max-width: 1280px; margin: 0 auto; }
.cf-steps, .cf-progress-wrap { display: none; }
.cf-js .cf-wrap { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); max-width: none; }
.cf-js .cf-steps { display: block; background: var(--orange); border-right: 3px solid var(--ink); padding: 56px 24px; }
.cf-js .cf-body { padding-top: 48px; gap: 40px; max-width: 1000px; margin: 0; }
.cf-js .cf-progress-wrap { display: flex; flex-direction: column; gap: 10px; }
.cf-steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 96px; }
.cf-step-pill { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 9999px; border: 2px solid rgba(255,255,255,0.5); color: #fff; font-family: var(--U); font-weight: 700; font-size: 15px; cursor: pointer; transition: background .2s, color .2s, transform .2s cubic-bezier(0.34,1.56,0.64,1); }
.cf-step-pill:hover { transform: translateX(4px); }
.cf-step-num { font-family: 'Fredoka', var(--B); font-size: 20px; line-height: 1; }
.cf-step-ok { margin-left: auto; display: none; font-size: 11px; letter-spacing: .1em; background: var(--yellow); color: var(--ink); border-radius: 9999px; padding: 3px 8px; }
.cf-step-pill.is-active { background: #fff; border-color: #fff; color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.cf-step-pill.is-active .cf-step-num { color: var(--orange); }
.cf-step-pill.is-done { border-color: #fff; }
.cf-step-pill.is-done .cf-step-ok { display: inline-block; }
.cf-progress-txt { margin: 0; font-family: var(--U); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.cf-progress { height: 8px; border-radius: 9999px; background: rgba(28,43,26,0.1); overflow: hidden; }
.cf-progress span { display: block; height: 100%; width: 33%; background: var(--orange); border-radius: 9999px; transition: width .5s cubic-bezier(0.34,1.56,0.64,1); }
.cf-sec-t h2:focus { outline: none; }
.cf-sec-t h2:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
.cf-intro-parcours { margin: 0; font-size: 16px; line-height: 1.5; background: var(--tint-yellow, #fdf1d8); border: 2px solid var(--ink); border-radius: 16px; padding: 14px 18px; }

/* Titres de groupes (cases, tuiles) : même allure que les libellés. */
.fg-titre { font-family: var(--U); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin: 0; }
.fg--erreur input:not([type=radio]):not([type=checkbox]), .fg--erreur select, .fg--erreur textarea { border-color: var(--orange); }
.fg--erreur .tyre-rond, .fg--erreur .niv, .fg--erreur .pp-check { border-color: var(--orange); }
.cf-facultatif { font-size: 11px; letter-spacing: .08em; background: rgba(28,43,26,0.08); color: rgba(28,43,26,0.6); border-radius: 9999px; padding: 2px 8px; margin-left: 6px; }
.cf-espace { border-top: 2px dashed rgba(28,43,26,0.15); padding-top: 22px; gap: 12px; }

/* Pneus : une jauge, les ronds grossissent avec la largeur. */
.tyre-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; }
.tyre { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.tyre input { position: absolute; opacity: 0; pointer-events: none; }
.tyre-rond { --d: calc(38px + var(--t) * 11px); width: var(--d); height: var(--d); border-radius: 50%; background: #fff; border: calc(5px + var(--t) * 2.5px) solid var(--ink); box-shadow: inset 0 0 0 3px rgba(28,43,26,0.15); transition: transform .2s cubic-bezier(0.34,1.56,0.64,1), background .2s, border-color .2s; }
.tyre:hover .tyre-rond { transform: rotate(-12deg) scale(1.06); }
.tyre-l { font-family: var(--U); font-weight: 700; font-size: 14px; color: rgba(28,43,26,0.7); white-space: nowrap; }
.tyre:has(input:checked) .tyre-rond { background: var(--yellow); transform: scale(1.08); }
.tyre:has(input:checked) .tyre-l { color: var(--ink); }
.tyre:has(input:focus-visible) .tyre-rond { outline: 3px solid var(--blue); outline-offset: 3px; }
.tyre-bulle, .cf-reaction { position: relative; margin: 6px 0 0; max-width: 560px; font-size: 16px; line-height: 1.45; font-weight: 700; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 12px 16px; box-shadow: 4px 4px 0 var(--ink); }
.tyre-bulle::before, .cf-reaction::before { content: ""; position: absolute; top: -11px; left: 26px; width: 16px; height: 16px; background: inherit; border-left: 3px solid var(--ink); border-top: 3px solid var(--ink); transform: rotate(45deg); }
.tyre-bulle.is-ko { background: color-mix(in oklch, var(--orange) calc(8% + var(--ecart, 1) * 7%), white); }
.tyre-bulle.is-ok { background: color-mix(in oklch, var(--green) 18%, white); }
.tyre-bulle.is-shake { animation: tyre-shake calc(.25s + var(--ecart, 1) * .1s) ease-in-out calc(1 + var(--ecart, 1)); }
@keyframes tyre-shake { 25% { transform: translateX(calc(var(--ecart, 1) * -2px)) rotate(-1deg); } 75% { transform: translateX(calc(var(--ecart, 1) * 2px)) rotate(1deg); } }
.cf-reaction { font-weight: 600; font-size: 15px; background: color-mix(in oklch, var(--blue) 22%, white); }
/* 35 mm : seul le choix des pneus reste visible, avec le message d'arrêt. */
.tyre-stop { margin: 10px 0 0; max-width: 560px; font-size: 18px; line-height: 1.45; font-weight: 800; color: var(--ink); background: color-mix(in oklch, var(--orange) 30%, white); border: 3px solid var(--ink); border-radius: 18px; padding: 14px 18px; box-shadow: 4px 4px 0 var(--ink); }
.cf-bloque .fgrid:has(> [data-champ="pneus"]) > :not([data-champ="pneus"]),
.cf-bloque:has(.cf-step:not([hidden]) [data-champ="pneus"]) :is(.form-rgpd, .btn-suivant, .btn-submit) { display: none !important; }

/* Niveau physique : 5 tuiles, de l'escargot au guépard. */
.niv-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.niv { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px 14px; background: #fff; border: 3px solid rgba(28,43,26,0.12); border-radius: 20px; cursor: pointer; transition: transform .2s cubic-bezier(0.34,1.56,0.64,1), background .2s, border-color .2s; }
.niv:hover { transform: translateY(-3px); }
.niv input { position: absolute; opacity: 0; pointer-events: none; }
.niv-jauge { display: flex; gap: 4px; }
.niv-jauge i { width: 10px; height: 10px; border-radius: 50%; background: rgba(28,43,26,0.12); }
.niv-jauge i.on { background: var(--orange); }
.niv-n { font-family: 'Fredoka', var(--B); font-weight: 600; font-size: 18px; line-height: 1.15; color: var(--ink); }
.niv:has(input:checked) { background: var(--tint-yellow, #fdf1d8); border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.niv:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Motivation : compteur jusqu'aux 400 caractères. */
.cf-count { font-family: var(--U); font-size: 13px; font-weight: 700; color: rgba(28,43,26,0.55); font-variant-numeric: tabular-nums; }
.cf-count.is-ok { color: var(--green); }

/* Barre du bas : Retour / Continuer / Je m'inscris. */
.cf-bar-btns { display: flex; gap: 10px; align-items: center; }
.btn-suivant { font-family: var(--U); font-weight: 600; font-size: 18px; padding: 16px 30px; background: var(--orange); color: #fff; border: none; border-radius: 9999px; cursor: pointer; white-space: nowrap; transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), filter 0.2s; }
.btn-suivant:hover { transform: scale(1.03); filter: brightness(1.08); }
.btn-retour { font-family: var(--U); font-weight: 600; font-size: 16px; padding: 14px 22px; background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); border-radius: 9999px; cursor: pointer; white-space: nowrap; }
.btn-retour:hover { border-color: #fff; }
.btn-submit:disabled { opacity: .6; cursor: progress; }

@media (max-width: 900px) {
  .cf-js .cf-wrap { grid-template-columns: 1fr; }
  .cf-js .cf-steps { position: sticky; top: 0; z-index: 20; padding: 10px 16px; border-right: 0; border-bottom: 3px solid var(--ink); }
  .cf-steps ol { flex-direction: row; gap: 8px; position: static; }
  .cf-step-pill { flex: 1; justify-content: center; padding: 8px 10px; font-size: 13px; gap: 6px; }
  .cf-step-pill:hover { transform: none; }
  .cf-step-nom { display: none; }
  .cf-step-pill.is-active .cf-step-nom { display: inline; }
  .cf-step-ok { margin-left: 0; }
  .niv-row { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (max-width: 600px) {
  .cf-bar p { display: none; }
  .cf-bar-btns { width: 100%; justify-content: space-between; }
  .btn-suivant, .btn-submit { flex: 1; padding: 14px 18px; font-size: 16px; }
  .tyre-row { gap: 10px; }
  .tyre-rond { --d: calc(30px + var(--t) * 8px); border-width: calc(4px + var(--t) * 2px); }
}
@media (prefers-reduced-motion: reduce) {
  .tyre-bulle.is-shake { animation: none; }
  .cf-progress span, .tyre-rond, .niv, .cf-step-pill { transition: none; }
}

/* ═══════════════════════════════════ FICHE PARCOURS (single) ═══════════════════════════════════ */
/* Hauteur : ce qui reste de l'écran une fois la barre de nav, les chiffres-clés
   et le bandeau « En bref » placés (--th-dispo, calculé par fiche-parcours.js) :
   on voit de l'entête jusqu'au bandeau dès l'ouverture. Jamais sous le contenu. */
.trace-hero { position: relative; min-height: max(240px, var(--th-dispo, clamp(340px, 30vw, 560px))); display: flex; align-items: flex-end; padding: clamp(20px, 4svh, 48px) 64px; border-bottom: 3px solid var(--ink); overflow: hidden; }
.trace-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.trace-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 45%; }
.trace-hero-ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,43,26,0.92) 0%, rgba(28,43,26,0.3) 60%, rgba(28,43,26,0.15) 100%); }
.trace-hero-inner { position: relative; z-index: 1; color: var(--cream); max-width: 900px; }
.trace-back { display: inline-block; font-size: 13px; font-weight: 800; color: var(--cream); border-bottom: 2px solid var(--yellow); padding-bottom: 2px; margin-bottom: clamp(8px, 1.6svh, 16px); }
.trace-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(8px, 1.6svh, 16px); }
.trace-badge { display: inline-block; font-family: var(--U); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 18px; background: var(--cream); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 9999px; box-shadow: 2px 2px 0 var(--ink); transform: rotate(-2deg); }
.trace-badge:nth-child(2) { background: var(--yellow); transform: rotate(1.5deg); }
.trace-badge:nth-child(3) { background: var(--blue); transform: rotate(-1deg); }
.trace-num { font-family: var(--U); font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--yellow); margin-bottom: 10px; }

.trace-nav { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 0 64px 64px; }
.trace-nav-link { display: flex; flex-direction: column; gap: 4px; border: 2.5px solid var(--ink); border-radius: 20px; background: #fff; padding: 16px 24px; box-shadow: 4px 4px 0 var(--ink); transition: transform 0.2s, box-shadow 0.2s; }
.trace-nav-link:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.trace-nav-link--next { text-align: right; margin-left: auto; }
.trace-nav-link .k { font-family: var(--U); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); }
.trace-nav-link .n { font-family: var(--D); font-size: 28px; line-height: 1; }
.trace-name { font-family: var(--D); font-size: clamp(56px, min(9vw, 11svh), 150px); line-height: 0.88; color: var(--cream); }
.trace-route { font-size: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(253,250,245,0.8); margin-top: 8px; }

.trace-statband { padding: 40px 64px; border-bottom: 3px solid var(--ink); }
.trace-statband .pf-stats { max-width: 1100px; margin: 0 auto; grid-template-columns: repeat(4, 1fr); }

.trace-main { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; padding: 64px; align-items: start; }
.trace-content { font-size: 16px; line-height: 1.85; color: rgba(28,43,26,0.78); }
.trace-content > *:first-child { margin-top: 0; }
.trace-content h2 { font-family: var(--D); font-size: clamp(28px, 3vw, 42px); color: var(--ink); margin: 36px 0 14px; }
.trace-content h3 { font-family: var(--D); font-size: 24px; color: var(--teal); margin: 28px 0 10px; }
.trace-content p { margin-bottom: 18px; }
.trace-content ul, .trace-content ol { margin: 0 0 18px 22px; }
.trace-content li { margin-bottom: 8px; }
.trace-content img { width: 100%; border-radius: 16px; border: 2.5px solid var(--ink); margin: 24px 0; box-shadow: 5px 5px 0 var(--ink); }
.trace-content strong { color: var(--ink); }

.trace-aside { position: sticky; top: 80px; }
.trace-card { border: 2.5px solid var(--ink); border-radius: 20px; padding: 28px; background: white; box-shadow: 6px 6px 0 var(--ink); }
.trace-card h4 { font-family: var(--D); font-size: 24px; margin-bottom: 16px; }
.trace-card .pf-tags { margin: 0 0 20px; }
.trace-card .date-line { font-size: 14px; font-weight: 800; color: var(--teal); margin-bottom: 6px; }
.trace-card .status-line { font-size: 13px; font-weight: 900; margin-bottom: 20px; }
.trace-card .btn-a { display: block; text-align: center; }

.trace-gallery { padding: 0 64px 80px; }
.trace-gallery h2 { font-family: var(--D); font-size: clamp(32px, 4vw, 56px); color: var(--ink); margin-bottom: 28px; }
.trace-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trace-gallery-grid .g { border-radius: 16px; overflow: hidden; border: 2.5px solid var(--ink); aspect-ratio: 4/3; box-shadow: 4px 4px 0 var(--ink); }
.trace-gallery-grid .g img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.trace-gallery-grid .g:hover img { transform: scale(1.06); }

/* ── Fiche parcours construite avec Elementor ── */
.trace-content .elementor img { border: 0; box-shadow: none; border-radius: 0; margin: 0; } /* laisse Elementor gérer ses images */
.trace-content .elementor { width: 100%; }
.trace-infoband { border-top: 3px solid var(--ink); background: var(--teal); color: var(--cream); }
[style*="--pc"] .trace-infoband { background: var(--pc); color: var(--pc-fg); }
.trace-statband .pf-stat { border-radius: 16px; box-shadow: 3px 3px 0 var(--ink); }
.trace-infoband-inner { max-width: 1440px; margin: 0 auto; padding: clamp(12px, 2svh, 26px) 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ib-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.ib-label { font-family: var(--D); font-size: 18px; padding-right: 4px; }
.ib-date { font-weight: 800; }
.ib-status { font-weight: 900; }
.ib-tags { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.trace-infoband .pf-tag { color: currentColor; border-color: currentColor; }
.trace-infoband .btn-a { background: var(--cream); color: var(--ink); flex-shrink: 0; }
.trace-infoband .btn-a:hover { background: #fff; }

/* Description en pleine largeur (centrée pour la lisibilité) */
.trace-body { padding: 56px 64px; }
.trace-body > .trace-content { max-width: 1140px; margin: 0 auto; }
.trace-body .elementor { max-width: 1140px; margin: 0 auto; }

/* ── Sommaire flottant « tampons de bivouac » ──
   Tampons ronds posés de travers sur le bord droit ; la section en cours est
   « tamponnée » (encrée, pleine, redressée). Classe .on posée par
   fiche-parcours.js. Sur mobile : rangée horizontale en bas d'écran. */
#infos, #description, #faq-section, #cta-final { scroll-margin-top: var(--nav-h); }
.fiche-tampons { position: fixed; z-index: 150; right: max(16px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.ft-t { pointer-events: auto; position: relative; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; border: 2.5px solid currentColor; background: var(--cream); text-align: center; font-family: var(--U); font-weight: 700; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.15; transition: transform 0.3s cubic-bezier(.3,1.6,.5,1), background 0.2s, box-shadow 0.2s; }
.ft-t::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 2px dashed currentColor; opacity: 0.7; }
.ft-t b { display: block; font-family: var(--D); font-weight: 400; font-size: 18px; letter-spacing: 0; text-transform: none; }
.ft-infos { color: var(--teal); transform: rotate(-12deg); }
.ft-desc  { color: var(--green); transform: rotate(9deg) translateX(-8px); }
.ft-faq   { color: var(--teal-700); transform: rotate(-5deg) translateX(4px); }
.ft-cta   { color: var(--orange); transform: rotate(14deg) translateX(-4px); }
.ft-t:hover { transform: rotate(0) scale(1.06); }
.ft-t:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.ft-t.on { background: currentColor; transform: rotate(-6deg) scale(1.12); box-shadow: 3px 3px 0 var(--ink); }
.ft-t.on span { color: var(--cream); }
.ft-t.on::before { border-color: var(--cream); opacity: 1; }
@media (max-width: 680px) {
  .fiche-tampons { top: auto; right: 0; left: 0; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); transform: none; flex-direction: row; justify-content: center; gap: 10px; }
  .ft-t { width: 56px; height: 56px; font-size: 8.5px; }
  .ft-t b { font-size: 15px; }
  .ft-desc { transform: rotate(9deg); } .ft-faq { transform: rotate(-5deg); } .ft-cta { transform: rotate(14deg); }
}
@media (prefers-reduced-motion: reduce) { .ft-t { transition: none; } }

/* ═══════════════════════════════════ PARTENAIRES (accueil) ═══════════════════════════════════ */
#partenaires { background: var(--cream); padding: 100px 64px; border-top: 3px solid var(--ink); position: relative; z-index: 1; }
.partners-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(14px, 1.6vw, 24px); max-width: 1500px; margin: 0 auto; }
.partner-card { container-type: inline-size; background: #fff; border: 2.5px solid var(--ink); border-radius: 20px; padding: clamp(14px, 1.8vw, 24px); box-shadow: 5px 5px 0 var(--ink); display: flex; flex-direction: column; transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s; }
.partner-card:hover { transform: translateY(-6px); box-shadow: 8px 10px 0 var(--ink); }
.partner-logo { display: flex; align-items: center; justify-content: center; height: clamp(80px, 40cqi, 120px); border: 2px solid var(--ink); border-radius: 14px; background: var(--cream); margin-bottom: 18px; overflow: hidden; padding: 16px; }
.partner-logo img { max-height: 84px; max-width: 100%; width: auto; object-fit: contain; }
.partner-logo-text { font-family: var(--D); font-size: 28px; color: var(--teal); text-align: center; line-height: 1.1; }
.partner-name { font-family: var(--D); font-size: clamp(18px, 10cqi, 26px); overflow-wrap: anywhere; color: var(--ink); margin-bottom: 8px; }
.partner-desc { font-size: 14px; line-height: 1.65; color: rgba(28,43,26,0.6); flex: 1; }
.partner-link { margin-top: 16px; align-self: flex-start; font-size: 13px; font-weight: 900; letter-spacing: 0.05em; color: var(--orange); border-bottom: 2px solid var(--orange); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s; }
.partner-link:hover { color: var(--ink); border-color: var(--ink); }

/* ═══════════════════════════════════ RESPONSIVE ═══════════════════════════════════ */
@media (max-width: 1024px){
  .hero-main { grid-template-columns: 1fr; gap: 40px; }
  .cf-sec { grid-template-columns: 1fr; gap: 16px; }
  .cf-body { padding-top: 48px; padding-bottom: 48px; gap: 44px; }
  .pp-n { font-size: 40px; }
  .ch { padding-top: 28px; padding-bottom: 28px; }
  .wc { transform: none !important; }
  .hero-strip-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-strip { display: block; }
  .tp-panel, .tp-panel.open { flex: none; min-height: 0; border-right: none; }
  .tp-panel .tp-teaser { min-height: 180px; }
  /* Empilés : le panneau ouvert remplit l'écran sous la barre de navigation,
     et le défilement s'arrête sous elle plutôt que dessous. */
  .tp-panel { scroll-margin-top: var(--nav-h); }
  .tp-js .tp-panel { transition: min-height 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
  .tp-js .tp-panel.open { min-height: calc(100svh - var(--nav-h)); }
  .tp-photo { transform: none; }
  .temo-stack, .team-g { grid-template-columns: 1fr; }
  .temo-card { transform:none !important; margin:0 0 16px !important; }
  .rb-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
  .cmd { flex-basis: calc((100% - var(--gap)) / 2); }
  .faq-cols { grid-template-columns: 1fr; }
  .trace-main { grid-template-columns: 1fr; gap: 40px; }
  .trace-aside { position: static; }
  .trace-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .trace-statband .pf-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px){
  #nav { padding: 0 18px; }
  .nav-links { display: none; position: absolute; top: 100%; left:0; right:0; background: var(--yellow); flex-direction: column; padding: 12px; border-bottom: 3px solid var(--ink); gap: 6px; }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  /* Sous-menus en accordéon dans le burger, ouverts par la flèche. */
  .nav-item { flex-wrap: wrap; }
  .nav-item > .nav-link { flex: 1; }
  .nav-sub-toggle { width: 36px; height: 36px; margin-left: 4px; border: 2.5px solid var(--ink); }
  .nav-sub { position: static; width: 100%; min-width: 0; padding: 4px 0 8px 8px; }
  .nav-sub-post { display: none; }
  .nav-sub ul { padding-top: 6px; }
  .nav-sign { min-width: 0; max-width: calc(100vw - 70px); white-space: normal; }
  .hero-main, .hero-inner, #esprit, #parcours-teaser, #temo-section, #faq-section, #cta-final, #partenaires, .team-s, .ph, .ch, .cf-section, .tp-hero, .rb-hero, .rb-groups, .rb-detail, .rb-controls-in, .trace-hero, .trace-statband, .trace-main, .trace-body, .trace-gallery, .trace-nav, .trace-infoband-inner { padding-left: 22px; padding-right: 22px; }
  .cf-bar { padding: 14px 22px; }
  .cf-body { padding-left: 22px; padding-right: 22px; }
  .rb-empty { margin-left: 22px; margin-right: 22px; }
  .rb-grid { grid-template-columns: 1fr; }
  .trace-gallery-grid { grid-template-columns: 1fr; }
  .trace-nav-link, .trace-nav-link--next { flex: 1 1 100%; text-align: left; margin-left: 0; }
  .tp-hero::after { display: none; }
  .trace-infoband-inner { flex-direction: column; align-items: flex-start; }
  #hero { min-height: clamp(380px, 72svh, 620px); }
  .hero-sub2 { font-size: 15px; line-height: 1.5; }
  .hero-btns2 { gap: 10px; }
  /* Stats en 2 colonnes sur téléphone : bande moins haute, plus de photo visible. */
  .hero-stat2 { padding: 14px 16px; gap: 4px; }
  .hero-stat2 .n { font-size: 22px; }
  .hero-stat2 .l { font-size: 13px; }
  .hero-btns2 .btn-a, .hero-btns2 .btn-b { padding: 12px 20px; font-size: 14px; }
  /* Parcours + partenaires : une seule ligne qui défile (auto-défilement : main.js).
     Bord à bord, avec un bout de la carte suivante visible. */
  .wild-grid, .partners-grid, .cmd-grid {
    display: grid; grid-auto-flow: column; justify-content: start;
    grid-auto-columns: 78%; gap: 16px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 22px;
    margin-inline: -22px; padding: 12px 22px 24px;
    scrollbar-width: none;
  }
  .wild-grid::-webkit-scrollbar, .partners-grid::-webkit-scrollbar, .cmd-grid::-webkit-scrollbar { display: none; }
  .wild-grid > *, .partners-grid > *, .cmd-grid > * { scroll-snap-align: start; }
  .cmd, .cmd:nth-child(n) { transform: none; }
  .hero-color-block { display:none; }
  .fgrid, .pf-stats { grid-template-columns: 1fr; }
  .pp { grid-template-columns: 1fr 1fr; }
  .title-sticker { right: 0; top: -10px; }
  /* Masque les grosses décorations qui pourraient déborder/chevaucher sur mobile */
  .ph::after, .ch::after, .hero-bg-letter { display: none; }
  /* Sections : on resserre un peu la hauteur sur mobile */
  #esprit, #parcours-teaser, #temo-section, #faq-section, #cta-final, .team-s { padding-top: 72px; padding-bottom: 72px; }
  #esprit { padding-bottom: 110px; } /* marge pour la découpe en diagonale */
  /* "Espace participant" : sur mobile on garde l'icône seule (compact, reste visible hors burger) */
  .nav-actions { gap: 8px; }
  .nav-link--espace { padding: 7px; gap: 0; box-shadow: 2px 2px 0 var(--ink); }
  .nav-link--espace span { display: none; }
  .nav-cta { padding: 8px 16px; }
}

@media (max-width: 480px){
  .hero-inner, #esprit, #parcours-teaser, #temo-section, #faq-section, #cta-final, #partenaires, .team-s, .ph, .ch, .cf-section, .tp-hero, .rb-hero, .rb-groups, .rb-detail, .rb-controls-in, .trace-hero, .trace-statband, .trace-main, .trace-body, .trace-gallery, .trace-nav, .trace-infoband-inner { padding-left: 16px; padding-right: 16px; }
  .rb-empty { margin-left: 16px; margin-right: 16px; }
  .trace-statband .pf-stats, .tp-stats { grid-template-columns: 1fr; }
  .tp-ticker-band { font-size: 24px; gap: 10px; }
  .wild-grid, .partners-grid, .cmd-grid { grid-auto-columns: 82%; scroll-padding-inline: 16px; margin-inline: -16px; padding-inline: 16px; }
  .trace-gallery h2 { font-size: clamp(34px, 11vw, 52px); }
  .trace-hero { min-height: max(60vw, 260px); padding-top: 32px; padding-bottom: 32px; }
  .cf-bar { padding: 12px 16px; gap: 12px; }
  .cf-bar p { font-size: 14px; }
  .btn-submit { padding: 12px 20px; font-size: 16px; }
  .cf-body { padding: 40px 16px; }
  .ch--merci { padding: 56px 16px 72px; }
}

/* ═══════════════════ PAGE PARCOURS TENUE DANS L'ÉCRAN — TABLETTE & MOBILE ═══════════════════ */
/* Avec JS, les panneaux restent empilés mais dans la hauteur du rideau
   (--tp-h, cf. plus haut) : les fermés se réduisent à une barre (nom + numéro),
   l'ouvert prend tout le reste et défile à l'intérieur si son contenu déborde.
   Sans panneau ouvert, ils se partagent la hauteur. Sans JS, on garde la
   colonne dépliée des règles précédentes. */
@media (max-width: 1024px) {
  .tp-js .tp-intro { display: none; }
  .tp-js .tp-hero-inner { gap: 12px; }
  /* Une seule ligne de filtres, qui défile de côté : la place va au rideau. */

  .tp-js .tp-strip { display: flex; flex-direction: column; --tp-ferme: clamp(52px, calc(var(--tp-h) * 0.1), 72px); }
  .tp-js .tp-panel,
  .tp-js .tp-panel.open { min-height: 0; flex: 0 0 var(--tp-ferme); transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
  .tp-js .tp-panel.open,
  .tp-js .tp-strip:not(:has(.tp-panel.open)) .tp-panel { flex: 1 1 var(--tp-ferme); }
  .tp-js .tp-panel::after { width: 150px; height: 150px; right: -30px; bottom: -70px; }

  /* Barre du panneau fermé : nom à gauche, numéro à droite. */
  .tp-js .tp-head { flex-direction: row; align-items: center; gap: 10px; padding: 0 16px; min-height: var(--tp-ferme); }
  .tp-js .tp-head-top { order: 1; flex: 1 1 auto; align-items: center; }
  .tp-js .tp-num { font-size: 22px; }
  .tp-js .tp-panel .tp-teaser { min-height: 0; flex: 0 1 auto; justify-content: center; gap: 0; }
  .tp-js .tp-word { font-size: clamp(24px, calc(var(--tp-ferme) * 0.55), 36px); }
  .tp-js .tp-hook, .tp-js .tp-open { display: none; }
  /* Ouvert : le teaser replié ne doit pas garder sa largeur dans la rangée. */
  .tp-js .tp-panel.open .tp-teaser { flex: 0 0 0; width: 0; }

  .tp-js .tp-panel.open .tp-body {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    grid-template-columns: minmax(0, 1fr);
    padding-left: 16px;
    padding-right: 16px;
    --tp-pb-fin: 16px;
  }
  .tp-js .tp-photo { display: none; }
  .tp-js .tp-det { gap: clamp(6px, calc(var(--tp-h) * 0.018), 12px); }
  .tp-js .tp-name { font-size: clamp(36px, calc(var(--tp-h) * 0.1), 72px); }
  .tp-js .tp-desc { font-size: 14px; line-height: 1.45; }
  .tp-js .tp-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tp-js .tp-stat { padding: 6px 10px; }
  .tp-js .tp-stat .v { font-size: 18px; }
  /* Le rideau tient dans l'écran : on garde l'essentiel (étiquettes et badge
     sont repris sur la fiche complète), boutons resserrés. */
  .tp-js .tp-tags, .tp-js .tp-badges { display: none; }
  .tp-js .tp-cta .btn-a, .tp-js .tp-cta .btn-b { padding: 9px 18px; font-size: 14px; }
}

/* ═══════════════════════════════════ MOUVEMENT RÉDUIT ═══════════════════════════════════ */
@media (prefers-reduced-motion: reduce){
  /* Uniquement le mouvement : les rotations décoratives (badges, photo penchée)
     sont des états fixes et font partie du design, on n'y touche pas. */
  .tp-panel, .tp-js .tp-panel, .rb-card, .rb-chip, .rb-back { transition: none; }
  /* Sélecteurs recopiés à l'identique : les règles de l'accordéon sont portées
     par `.tp-js …`, un simple `.tp-body` perdrait en spécificité.
     parcours.js vérifie la même media query et s'abstient alors de poser une
     hauteur en pixels : sans transition, `transitionend` ne partirait jamais et
     la hauteur resterait figée. */
  .tp-js .tp-teaser,
  .tp-js .tp-panel.open .tp-teaser,
  .tp-js .tp-body,
  .tp-js .tp-panel.open.deploye .tp-body { transition: none; }
  .rb-card:hover, .rb-chip:hover, .rb-back:hover { transform: none; }
  .hero-photo { animation: none; }
}

/* Téléphone en paysage : peu de hauteur, on garde titre, boutons et photo. */
@media (max-height: 500px) and (orientation: landscape){
  .hero-sub2 { display: none; }
  .hero-btns2 { margin-top: 16px; }
  #hero { min-height: calc(100svh - var(--nav-h)); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGES LÉGALES
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Liens de pied de page (footer.php) ─── */
.legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 12px; }
.legal-links a { font-family: var(--U); font-weight: 600; color: rgba(28,43,26,0.45); text-decoration: none; }
.legal-links a:hover { color: var(--ink); text-decoration: underline; }
.legal-links.on-dark a { color: rgba(253,250,245,0.5); }
.legal-links.on-dark a:hover { color: var(--cream); }

/* ─── Mention RGPD sous le formulaire de candidature ─── */
.form-rgpd { margin: 0; font-size: 12px; line-height: 1.55; color: rgba(28,43,26,0.45); }
.form-rgpd a { color: var(--teal); }

/* ─── Corps des pages légales (page.php, .page-content) ─── */
/* Le thème n'a aucun style de contenu éditorial : tout part d'ici. */
body.flc-legal .ph::after { display: none; }
body.flc-legal .ph h1 { font-size: clamp(38px, 6vw, 72px); }
.flc-legal .page-content h2 { font-family: var(--D); font-size: 28px; color: var(--teal); margin: 44px 0 14px; line-height: 1.2; }
.flc-legal .page-content h2:first-child { margin-top: 0; }
.flc-legal .page-content h3 { font-family: var(--B); font-weight: 800; font-size: 18px; margin: 28px 0 10px; }
.flc-legal .page-content p { margin: 0 0 16px; }
.flc-legal .page-content ul { margin: 0 0 20px; padding-left: 22px; }
.flc-legal .page-content li { margin-bottom: 8px; }
.flc-legal .page-content a { color: var(--teal); text-decoration: underline; }
.flc-legal .page-content a:hover { color: var(--orange); }
.flc-legal .page-content code { background: var(--tint-blue); padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.flc-legal .page-content em { color: rgba(28,43,26,0.5); font-size: 14px; }
.flc-legal .page-content strong { font-weight: 800; }
.flc-consent-reopen { border: none; cursor: pointer; }

@media (max-width: 768px) {
  .flc-legal .page-content { padding: 40px 22px !important; }
  .flc-legal .page-content h2 { font-size: 24px; margin-top: 36px; }
}

/* ── Couleurs des textes réglées dans l'ACF de l'accueil (flc_color_attrs) ──
   Classes posées seulement quand un champ est rempli ; !important pour passer
   devant les variantes [data-ton] des sections. */
.flc-c-txt { color: var(--c-txt) !important; }
.sec-title.flc-c-txt { --sec-t: var(--c-txt); }
.flc-c-mot span { color: var(--c-mot) !important; }
.flc-c-contour em,
.stroke.flc-c-contour { -webkit-text-stroke-color: var(--c-contour) !important; }

/* ── En-têtes des sections de l'accueil (flc_section_head) ──
   Même gabarit partout : pastille orange, titre en deux parties (pleine puis
   contour), sous-titre optionnel, tout aligné à gauche (le CTA reste centré).
   Les couleurs suivent le ton de la section via --sec-t / --sec-acc / --sec-sub. */
:where(#esprit, #parcours-teaser, #temo-section, #partenaires, #cta-final) { --sec-t: var(--ink); --sec-acc: var(--teal); --sec-sub: rgba(28,43,26,0.68); }
:where(.team-s, #faq-section) { --sec-t: var(--cream); --sec-acc: var(--yellow); --sec-sub: rgba(253,250,245,0.74); }
/* Même cadre de 1500px que les grilles : tous les titres partent du même bord
   gauche que « Notre esprit », quelle que soit la largeur d'écran. */
.sec-head { max-width: 1500px; margin: 0 auto 56px; text-align: left; position: relative; z-index: 1; }
.sec-head--center { text-align: center; }
.sec-label { display: inline-block; margin: 0 0 22px; padding: 8px 14px 7px; border-radius: 999px; background: var(--orange-600); color: var(--cream); font-family: var(--B); font-size: 12px; font-weight: 900; line-height: 1; letter-spacing: 0.25em; text-transform: uppercase; }
.sec-title { font-family: var(--D); font-weight: 400; font-size: clamp(44px, 6.6vw, 100px); line-height: 0.92; color: var(--sec-t); }
/* Partie en contour : légèrement inclinée, pivotée depuis son bord gauche
   (width: fit-content pour tourner autour du texte, pas de toute la ligne). */
.sec-title .sec-o { display: block; width: fit-content; font-style: normal; color: transparent; -webkit-text-stroke: 2px var(--sec-t); transform: rotate(-2deg); transform-origin: left center; }
.sec-head--center .sec-o { margin-left: auto; margin-right: auto; transform-origin: center; }
.sec-title span { color: var(--sec-acc); -webkit-text-stroke: 0; display: inline-block; transform: rotate(-1deg); }
.sec-head--big .sec-title { font-size: clamp(48px, 9vw, 150px); }
.sec-intro { max-width: 52ch; margin: 28px 0 0; font-family: var(--B); font-size: 17px; font-weight: 600; line-height: 1.6; color: var(--sec-sub); }
.sec-head--center .sec-intro { margin-left: auto; margin-right: auto; }
#cta-final .sec-head { margin-bottom: 48px; }
@media (max-width: 680px) {
  .sec-title .sec-o { -webkit-text-stroke-width: 1.5px; }
  .sec-intro { font-size: 16px; }
}

/* Formulaire d'inscription : précision libre sous un choix « Autre » (inc/candidature.php). */
.cf-autre { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.cf-autre-l { font-size: 13px; font-weight: 700; color: rgba(28,43,26,0.65); }
