/* Mathieu Plessis — feuille unique du site (remplace celle du thème parent).
   Direction artistique v4 (consignes C22, C23 ; _assets/mathieuplessis/consignes/C22-da-v4.md), sur fond noir depuis C75, plus sobre depuis C76 :
   une trace verticale traverse la page, des chapitres numérotés construits sur la même grille,
   noir, blanc et #fe5b2a comme 2027.lana.works (C25). Titres en Libre Baskerville, texte en Noto Sans, aucune italique (C14). */

/* Libre Baskerville variable (400 à 700, Google Fonts v24, OFL), hébergée dans le thème ; graisse des titres : --serif-poids (C32) */
@font-face { font-family: "Libre Baskerville"; src: url("../fonts/libre-baskerville-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Baskerville"; src: url("../fonts/libre-baskerville-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/noto-sans.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ===== Jetons ===== */
:root {
  /* noir, blanc et #fe5b2a, valeurs de 2027.lana.works (consigne C25).
     C75 : tout le site sur fond noir. Les bandes claires et sombres prennent le même noir,
     le texte passe en blanc (--ink), le gris et les filets sont ceux des anciennes bandes sombres. */
  color-scheme: dark;
  --fond: #0c0c0c;       /* fond de toutes les pages (C75) */
  --nuit: var(--fond);   /* bandes sombres, pied de page */
  --braise: #fe5b2a;     /* accent rare */
  --braise-texte: var(--braise); /* sur fond noir, l'accent garde sa valeur vive : 6,5:1 sur #0c0c0c (C75) */
  --sable: var(--fond);  /* anciennes bandes claires (C75) */
  --ink: #ffffff;        /* texte principal (C75 : blanc sur noir) */
  --gris: #8b8c8d;       /* texte secondaire : 5,8:1 sur #0c0c0c */
  --blanc: #ffffff;
  --filet: #2f3032;
  --surface: #18191b;    /* champs, survols, vignettes en attente (C75) */
  --erreur: #ff7a6e;     /* messages d'erreur du formulaire : 7,9:1 sur #0c0c0c (C75) */
  --serif: "Libre Baskerville", Baskerville, "Times New Roman", serif;
  --serif-poids: 600;    /* graisse de Libre Baskerville (consigne C32) */
  --sans: "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 6vw, 96px);
  --rail: 64px;          /* marge qui porte la trace */
  --space: clamp(96px, 12vw, 192px); /* C76 : un peu plus d'air entre les chapitres */
  --r: 4px;              /* C76 : angles plus nets, plus éditoriaux */
  --capitales: .16em;    /* C76 : interlettrage des libellés en capitales */
  --tete: 76px;          /* hauteur de l'en-tête */
  --admin: 0px;          /* barre d'administration WordPress */
  --sous: 0px;           /* sommaire de page */
}
.admin-bar { --admin: 32px; }
@media (max-width: 782px) { .admin-bar { --admin: 46px; } }

/* ===== Base ===== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--fond); color: var(--ink); font-family: var(--sans); font-weight: 400; font-size: 1rem; line-height: 1.75; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
em, i, cite, address, figcaption, blockquote, dfn, var { font-style: normal; }
img { display: block; width: 100%; height: auto; }
/* <picture> ajouté pour l'AVIF (C42) : sans boîte propre, l'image garde sa mise en page */
picture.mp-pic { display: contents; }
a { color: inherit; text-decoration: none; }
p, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: var(--serif-poids); line-height: 1.25; }
strong, b { font-weight: 700; }
sup { font-size: .6em; line-height: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { max-width: 1600px; margin-inline: auto; padding-inline: calc(var(--gutter) + var(--rail)) var(--gutter); }
.wrap.plein { padding-inline: var(--gutter); }
.petit { font-size: .875rem; line-height: 1.7; }
.gris { color: var(--gris); }
.btn { display: inline-block; background: var(--ink); color: var(--fond); font-size: .75rem; font-weight: 500; line-height: 1.7; letter-spacing: var(--capitales); text-transform: uppercase; padding: 1em 2.2em; border: 0; border-radius: 0; cursor: pointer; transition: opacity .2s; }
.btn:hover { opacity: .8; }
.lien { font-size: .75rem; font-weight: 500; letter-spacing: var(--capitales); text-transform: uppercase; padding-bottom: 4px; border-bottom: 1px solid currentColor; transition: color .2s; }
.lien:hover { color: var(--braise-texte); }
.saut { position: absolute; left: -9999px; top: 0; z-index: 100; background: #000; color: #fff; padding: 10px 16px; }
.saut:focus { left: 8px; top: 8px; }

/* ===== En-tête ===== */
.tete { position: fixed; inset: var(--admin) 0 auto 0; z-index: 20; background: var(--fond); color: var(--ink); box-shadow: 0 1px 0 var(--filet); transition: background-color .3s, color .3s, box-shadow .3s; }
.accueil .tete:not(.colle), .ouverture-photo .tete:not(.colle) { background: transparent; color: #fff; box-shadow: none; }
.tete-in { max-width: 1600px; margin-inline: auto; padding-inline: var(--gutter); display: flex; gap: clamp(18px, 2.2vw, 30px); align-items: center; height: var(--tete); font-size: .75rem; font-weight: 500; letter-spacing: var(--capitales); text-transform: uppercase; } /* C76 : menu en capitales */
.tete .g { display: flex; gap: clamp(18px, 2.2vw, 30px); margin-left: clamp(8px, 1.4vw, 20px); }
.tete .d { display: flex; gap: clamp(18px, 2.2vw, 30px); align-items: center; justify-content: flex-end; margin-left: auto; }
.tete nav a { padding-block: 4px; border-bottom: 1px solid transparent; }
.tete nav a[aria-current="page"] { border-bottom-color: currentColor; }
.marque { display: block; flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; transition: transform .3s; } /* C76 : photo sans bordure */
.marque img { display: block; width: 100%; height: 100%; }
.marque:hover { transform: scale(1.05); }
.marque:focus-visible { outline-offset: 3px; }
.social { display: flex; gap: 16px; align-items: center; list-style: none; margin: 0; padding: 0; }
.social a { display: block; width: 20px; height: 20px; transition: color .2s, opacity .2s; }
.social svg { display: block; width: 100%; height: 100%; }
.social a:hover { color: var(--braise-texte); }
.tete .social { margin-left: clamp(4px, 1vw, 12px); }
.langues { display: inline-flex; gap: .35em; }
.langues a, .langues .sep { opacity: .6; }
.langues a:hover { opacity: 1; }
.burger { display: none; background: none; border: 0; padding: 8px 0; color: inherit; font: inherit; cursor: pointer; }
.menu { position: fixed; inset: 0; z-index: 19; background: var(--fond); padding: calc(var(--tete) + var(--admin) + 32px) var(--gutter) 40px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu a.grand { font-family: var(--serif); font-weight: var(--serif-poids); font-size: 1.5rem; line-height: 1.9; letter-spacing: .08em; text-transform: uppercase; }
.menu a.grand[aria-current="page"] { color: var(--braise-texte); }
.menu .bas { margin-top: auto; padding-top: 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
body.menu-ouvert { overflow: hidden; }
body.menu-ouvert .tete { background: var(--fond) !important; color: var(--ink) !important; box-shadow: none; }
.interieur main { padding-top: var(--tete); }
.ouverture-photo main { padding-top: 0; } /* C68 : la photo d'ouverture passe sous l'en-tête transparent */

/* ===== La trace ===== */
main { position: relative; counter-reset: chap; }
.trace { position: absolute; z-index: 3; top: 0; bottom: 0; left: max(var(--gutter), calc((100% - 1600px) / 2 + var(--gutter))); width: 2px; margin-left: -.5px; /* C93 : même épaisseur que l'indicateur des galeries, centre inchangé */ background: rgba(128, 128, 128, .38); pointer-events: none; }
.trace i { position: absolute; left: 0; top: 0; width: 2px; height: var(--p, 0px); background: var(--braise); }

/* ===== Chapitres : numéro et titre à gauche, contenu à droite ===== */
.chap { position: relative; padding-block: var(--space); }
.chap.sable { background: var(--sable); }
.chap.nuit { background: var(--nuit); color: #fff; --gris: #8b8c8d; --filet: #2f3032; }
/* sur fond sombre, l'accent garde sa valeur vive */
.chap.nuit, .hero, .voix, .carte, .pied, .accueil .tete:not(.colle), .ouverture-photo .tete:not(.colle) { --braise-texte: var(--braise); }
.grille { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 28px; align-items: start; }
.chap-tete { grid-column: 1 / span 5; position: sticky; top: calc(var(--tete) + var(--admin) + var(--sous) + 48px); }
.chap-corps { grid-column: 7 / span 6; }
.num { position: relative; font-size: .75rem; line-height: 1.5; color: var(--gris); font-variant-numeric: tabular-nums; }
.num b { font-weight: 600; color: var(--braise-texte); margin-right: .7em; }
.num b::before { counter-increment: chap; content: counter(chap, decimal-leading-zero); }
/* le point du chapitre, posé sur la trace ; il s'allume quand le chapitre est atteint */
.num::before { content: ""; position: absolute; left: calc(-1 * var(--rail) - 4px); top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--fond); border: 1px solid rgba(128, 128, 128, .8); z-index: 4; transition: background-color .4s, border-color .4s; }
.single-post .num::before { display: none; } /* C106 : les points de chapitre allaient avec la trace, retirée des récits */
.chap.sable .num::before { background: var(--sable); }
.chap.nuit .num::before { background: var(--nuit); }
.passe > .wrap .num::before, .passe .chap-tete .num::before { background: var(--braise); border-color: var(--braise); }
.chap h2 { font-size: clamp(1.375rem, 2.3vw, 2.125rem); line-height: 1.25; margin-top: 18px; }
.chap-tete .intro { margin-top: 22px; max-width: 24em; }
.chap-tete .lien, .chap-tete .btn { display: inline-block; margin-top: 30px; }
.texte-chap p + p { margin-top: 1.25em; }
.texte-chap .fort, .texte-chap .grand { font-family: var(--serif); font-weight: var(--serif-poids); font-size: clamp(1.125rem, 1.45vw, 1.3125rem); line-height: 1.5; color: var(--ink); }
.chap.nuit .texte-chap .fort { color: #fff; }
.texte-chap { color: var(--gris); }
.texte-chap strong { color: var(--ink); }
.chap.nuit .texte-chap strong { color: #fff; }
figure + .texte-chap { margin-top: clamp(28px, 3.4vw, 48px); }
.chap-image img { border-radius: var(--r); aspect-ratio: 4 / 5; object-fit: cover; }
.legende-photo { margin-top: 10px; font-size: .8125rem; color: var(--gris); }

/* lignes à filet (aux côtés de, contact, aujourd'hui) */
.lignes { border-bottom: 1px solid var(--filet); }
.ligne { display: grid; grid-template-columns: 9rem minmax(0, 1fr); column-gap: 24px; padding-block: 26px; border-top: 1px solid var(--filet); align-items: baseline; }
.ligne .role { font-size: .875rem; color: var(--gris); }
.ligne .nom { font-family: var(--serif); font-weight: var(--serif-poids); font-size: clamp(1.125rem, 1.7vw, 1.5rem); line-height: 1.3; }
.ligne .txt { margin-top: 6px; font-size: .9375rem; color: var(--gris); max-width: 30em; }
.texte-chap + .lignes, .chap-corps > .btn + .lignes { margin-top: clamp(32px, 4vw, 56px); }

/* ===== Ouverture ===== */
.hero { position: relative; z-index: 4; height: 100vh; min-height: 620px; max-height: 1000px; overflow: hidden; background: var(--nuit); color: #fff; }
.hero img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .72) 100%); }
.hero-txt { position: absolute; z-index: 2; inset: auto 0 clamp(40px, 8vh, 84px) 0; max-width: 1600px; margin-inline: auto; padding-inline: var(--gutter); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 28px; align-items: end; }
.hero-txt .bloc { grid-column: 1 / span 7; }
/* capitales espacées, avec mesure (C37, C39) : surtitre de l'ouverture, numéros de chapitre, surtitres de page, pastilles et rôles ; jamais une phrase ni la navigation */
.num, .page-tete .sur, .pastille, .ligne .role { text-transform: uppercase; letter-spacing: .14em; }
.page-tete .sur, .ligne .role { font-size: .75rem; font-weight: 500; }
.pastille { letter-spacing: .1em; white-space: nowrap; }
.hero .sur { font-size: clamp(.75rem, .9vw, .875rem); line-height: 1.5; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { font-size: clamp(1.75rem, 3.8vw, 3.5rem); line-height: 1.14; margin-top: 12px; }
.hero .chapeau { max-width: 30em; margin-top: 22px; color: rgba(255, 255, 255, .88); }
.hero .lien { display: inline-block; margin-top: 26px; }
.hero .legende { grid-column: 9 / span 4; text-align: right; font-size: .8125rem; line-height: 1.6; color: rgba(255, 255, 255, .78); font-variant-numeric: tabular-nums; }
.hero .legende b { display: block; font-weight: 500; color: #fff; }
/* ouverture d'un récit (C68) : même cadre que l'accueil, photo entière centrée, surtitre cliquable, date sous le chapeau */
.hero-recit .sur a:hover { color: var(--braise-texte); }
.hero-recit .hero-txt .bloc { grid-column: 1 / span 8; }
.hero-recit .date { margin-top: 18px; font-size: .875rem; color: rgba(255, 255, 255, .78); }
.recit-debut { height: clamp(48px, 6vw, 88px); }
.hero-recit::before { background: linear-gradient(to bottom, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .8) 100%); } /* plus de texte en bas que sur l'accueil : dégradé plus haut et plus dense */
/* chiffres clés dans l'ouverture (C69) : sous le titre, en blanc sur la photo */
.hero-chiffres { grid-column: 1 / -1; margin-top: clamp(28px, 4vh, 44px); }
.hero-chiffres .wrap { max-width: none; padding-inline: 0; }
.hero-chiffres .chiffres-cles { padding-bottom: 0; }
.hero-chiffres .chiffres-cles li { border-top-color: rgba(255, 255, 255, .35); }
.hero-chiffres .chiffres-cles .l { color: rgba(255, 255, 255, .78); }

/* ===== Jalons : repères datés, dans le prolongement du sol de la photo ===== */
.jalons { position: relative; z-index: 4; background: var(--nuit); color: #fff; padding-block: clamp(40px, 5vw, 72px) clamp(56px, 7vw, 104px); }
.jalons ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.jalons li { position: relative; padding: 26px 28px 0 0; border-top: 1px solid rgba(255, 255, 255, .26); }
.jalons li::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--braise); }
.jalons .quoi { font-size: .875rem; color: #8b8c8d; }
.jalons .date { font-family: var(--serif); font-weight: var(--serif-poids); font-size: clamp(1.125rem, 1.7vw, 1.5rem); line-height: 1.3; margin-top: 6px; font-variant-numeric: lining-nums; }
.jalons .txt { margin-top: 8px; font-size: .9375rem; color: #c3c4c8; max-width: 19em; }

/* ===== Sa voix, en pleine largeur ===== */
.voix { position: relative; height: clamp(460px, 78vh, 820px); overflow: hidden; background: var(--nuit); color: #fff; }
.voix img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.voix::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .18) 62%, rgba(0, 0, 0, .1) 100%); }
.voix .wrap { position: relative; z-index: 4; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(48px, 7vw, 100px); }
.voix blockquote { font-family: var(--serif); font-weight: var(--serif-poids); font-size: clamp(1.625rem, 3.6vw, 3.25rem); line-height: 1.16; max-width: 12em; }
.voix .source { margin-top: 22px; font-size: .875rem; color: rgba(255, 255, 255, .82); }
.voix .source a { border-bottom: 1px solid currentColor; padding-bottom: 2px; margin-left: 1.2em; }
.voix .source a:hover { color: #fff; }

/* ===== Journal : un récit à la une, les autres en lignes ===== */
.journal-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; }
.journal-tete .g { max-width: 34em; }
.journal-tete .g > p.gris { margin-top: 16px; }
.une { margin-top: clamp(40px, 5vw, 72px); align-items: end; }
.une figure { grid-column: 1 / span 7; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.une figure img { aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.4s cubic-bezier(.2, .7, .1, 1); }
.une:hover figure img { transform: scale(1.04); }
.une .txt { grid-column: 9 / span 4; }
.une h3 { font-size: clamp(1.375rem, 2.3vw, 2.125rem); line-height: 1.18; margin-top: 12px; }
.une .extrait { margin-top: 16px; }
.une .lien { display: inline-block; margin-top: 26px; }
.rangs { margin-top: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--filet); }
.rang { display: grid; grid-template-columns: 3.25rem 88px minmax(0, 5fr) minmax(0, 4fr) 7.75rem; column-gap: 24px; align-items: center; padding-block: 14px; border-top: 1px solid var(--filet); font-size: .9375rem; }
.rang .n { color: var(--gris); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rang .vignette { width: 88px; height: 58px; border-radius: 6px; overflow: hidden; background: var(--surface); }
.rang .vignette img { height: 100%; object-fit: cover; }
.rang .t { font-family: var(--serif); font-weight: var(--serif-poids); font-size: clamp(1rem, 1.35vw, 1.1875rem); line-height: 1.3; }
.rang .chiffres, .rang .date { color: var(--gris); font-variant-numeric: tabular-nums; }
.rang .date { text-align: right; }
.rang.avenir .t, .rang.avenir .vignette { opacity: .55; }
.pastille { display: inline-block; font-size: .75rem; line-height: 1.4; padding: 3px 9px; border: 1px solid currentColor; border-radius: 999px; color: var(--braise-texte); }
@media (hover: hover) {
  a.rang { transition: background-color .25s, padding .25s, border-radius .25s; }
  a.rang:hover { background: var(--surface); padding-inline: 14px; border-radius: 8px; }
  a.rang:hover .t { color: var(--braise-texte); }
}
.pagination { display: flex; justify-content: center; gap: 22px; padding-top: clamp(36px, 4.5vw, 64px); font-size: .9375rem; }
.pagination .current { color: var(--braise-texte); }

/* ===== Programme d'une saison ===== */
.objectifs.nuit h2 { font-size: clamp(1.875rem, 4.4vw, 4rem); line-height: 1.05; }
.prog { margin-top: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--filet); }
.prog .l { display: grid; grid-template-columns: 3.25rem minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr) 8rem; column-gap: 24px; align-items: baseline; padding-block: 18px; border-top: 1px solid var(--filet); font-size: .9375rem; }
.prog .n { color: var(--braise-texte); font-variant-numeric: tabular-nums; }
.prog .t { font-family: var(--serif); font-weight: var(--serif-poids); font-size: clamp(1rem, 1.35vw, 1.1875rem); line-height: 1.3; }
.prog .t small { font-family: var(--sans); font-size: .8125rem; color: var(--gris); margin-left: .6em; }
.prog .lieu, .prog .chiffres, .prog .date { color: var(--gris); }
.prog .date { text-align: right; }
.chap-plein > .btn { margin-top: clamp(36px, 4vw, 56px); }
.yt { margin: clamp(48px, 6vw, 88px) 0 0; }
.yt-lance { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; aspect-ratio: 16 / 9; padding: clamp(20px, 3vw, 40px); border-radius: var(--r); background: var(--surface); border: 1px solid var(--filet); color: var(--ink); text-decoration: none; overflow: hidden; }
.yt-lance picture, .yt-lance > img { position: absolute; inset: 0; }
.yt-lance img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.yt-lance:has(img)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0) 55%), rgba(0, 0, 0, .12); }
.yt-lance:hover img, .yt-lance:focus-visible img { transform: scale(1.02); }
.yt-play { z-index: 2; position: absolute; inset: 0; margin: auto; width: clamp(64px, 7vw, 96px); aspect-ratio: 1; border-radius: 50%; background: var(--braise); transition: transform .25s; }
.yt-play::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; transform: translateX(10%); border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent var(--fond); }
.yt-lance:hover .yt-play, .yt-lance:focus-visible .yt-play { transform: scale(1.08); }
.yt-titre { position: relative; z-index: 2; font-family: var(--serif); font-weight: var(--serif-poids); font-size: clamp(1.125rem, 2vw, 1.75rem); line-height: 1.2; }
.yt-note { position: relative; z-index: 2; font-size: .75rem; letter-spacing: var(--capitales); text-transform: uppercase; color: var(--gris); }
@media (max-width: 600px) { .yt-play { width: 52px; } .yt-play::after { border-width: 10px 0 10px 17px; } .yt-note { display: none; } }
.yt iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); background: #000; }

/* ===== Pages intérieures ===== */
.page-tete { padding-block: clamp(56px, 8vw, 120px) clamp(40px, 5vw, 72px); position: relative; }
.page-tete .sur { color: var(--gris); }
.page-tete .sur a:hover { color: var(--braise-texte); }
.page-tete h1 { font-size: clamp(1.75rem, 3.6vw, 3.25rem); line-height: 1.16; max-width: 15em; margin-top: 14px; }
.page-tete .meta { margin-top: 20px; max-width: 36em; }
.sousmenu { position: sticky; top: calc(var(--tete) + var(--admin)); z-index: 10; background: var(--fond); border-block: 1px solid var(--filet); }
.sousmenu .wrap { display: flex; gap: clamp(20px, 3vw, 44px); height: 54px; align-items: center; font-size: .75rem; font-weight: 500; letter-spacing: var(--capitales); text-transform: uppercase; overflow-x: auto; scrollbar-width: none; }
.sousmenu .wrap::-webkit-scrollbar { display: none; }
.sousmenu a { white-space: nowrap; }
.sousmenu a:hover { color: var(--braise-texte); }
.sousmenu ~ .chap, .sousmenu ~ * { --sous: 54px; }
.ancre, .chap[id] { scroll-margin-top: calc(var(--tete) + var(--admin) + var(--sous)); }

/* chiffres clés d'un récit */
.chiffres-cles { list-style: none; margin: 0; padding: 0 0 clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(4, 1fr); }
.chiffres-cles li { position: relative; padding: 18px 28px 0 0; border-top: 1px solid var(--filet); }
.chiffres-cles li::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--braise); }
.chiffres-cles .v { font-family: var(--serif); font-weight: var(--serif-poids); font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.25; font-variant-numeric: lining-nums; }
.chiffres-cles .l { font-size: .875rem; color: var(--gris); margin-top: 4px; }

/* image à la une et images larges */
.art-une { border-radius: var(--r); overflow: hidden; }
.art-une img { aspect-ratio: 2 / 1; object-fit: cover; }
.bloc-image { margin-block: clamp(40px, 5vw, 72px); }
.bloc-image img { border-radius: var(--r); }
.bloc-image figcaption { margin-top: 10px; font-size: .875rem; color: var(--gris); }

/* vidéos courtes, muettes, côte à côte (C50) : hauteur limitée à 80 % de l'écran, proportions gardées */
.bloc-video { margin-block: clamp(40px, 5vw, 72px); }
.bloc-video .videos { display: flex; gap: 16px; justify-content: center; }
.bloc-video video { display: block; flex: 0 1 auto; min-width: 0; width: auto; height: auto; max-width: 100%; max-height: min(80vh, 760px); border-radius: var(--r); background: var(--sable, #eee); object-fit: cover; }
.bloc-video figcaption { margin-top: 10px; font-size: .875rem; color: var(--gris); text-align: center; }
@media (max-width: 700px) {
  /* sur mobile, côte à côte elles seraient trop petites : elles défilent comme une galerie */
  .bloc-video .videos { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .bloc-video .videos::-webkit-scrollbar { display: none; }
  .bloc-video video { flex: none; width: auto; height: min(68vh, 560px); max-width: none; max-height: none; scroll-snap-align: center; }
}

/* blocs de texte du module : colonne de lecture */
.lnwks-block--text, .lnwks-block--heading, .lnwks-block--list, .lnwks-block--quote, .lnwks-block--button { max-width: calc(44rem + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.lnwks-block--text { font-size: 1rem; line-height: 1.85; margin-block: clamp(28px, 3.4vw, 48px); }
.lnwks-block--text p, .lnwks-block--text ul, .lnwks-block--text ol { margin: 0; }
.lnwks-block--text > * + :is(p, ul, ol, *) { margin-top: 1.25em; } /* :is() : plus spécifique que la remise à zéro des p ci-dessus, sinon les paragraphes se collent */
.lnwks-block--text ul, .lnwks-block--text ol { padding-left: 1.2em; }
.lnwks-block--text a { border-bottom: 1px solid currentColor; }
.lnwks-block--text a:hover { color: var(--braise-texte); }
.lnwks-block--heading { font-size: clamp(1.3125rem, 2vw, 1.75rem); line-height: 1.5; margin-top: clamp(56px, 7vw, 100px); margin-bottom: 0; scroll-margin-top: 150px; }
.lnwks-block--heading + .lnwks-block--text { margin-top: 1.1em; }
.lnwks-block--button { margin-block: clamp(28px, 3.4vw, 48px); }
.lnwks-block--button a { display: inline-block; background: var(--ink); color: var(--fond); font-size: .75rem; font-weight: 500; line-height: 1.7; letter-spacing: var(--capitales); text-transform: uppercase; padding: 1em 2.2em; border-radius: 0; }

/* galerie à faire glisser */
.bloc-galerie { margin-block: clamp(40px, 5vw, 72px); }
.galerie { position: relative; z-index: 4; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding-inline: calc(var(--gutter) + var(--rail)) var(--gutter); scrollbar-width: none; cursor: grab; }
.galerie::-webkit-scrollbar { display: none; }
.galerie.glisse { cursor: grabbing; scroll-snap-type: none; }
/* galerie trop courte pour défiler (C43) : hauteur calculée par le script pour remplir la largeur */
.galerie.courte { cursor: auto; justify-content: center; }
.galerie img { flex: none; width: auto; height: var(--h, clamp(260px, 38vw, 560px)); border-radius: var(--r); scroll-snap-align: center; user-select: none; -webkit-user-drag: none; }
/* C87 : indicateur de défilement à la place de la note ; sur ordinateur, galerie retenue à l'écran et pilotée par le défilement de la page */
.galerie-pied { display: flex; align-items: center; gap: 28px; margin: 18px var(--gutter) 0 calc(var(--gutter) + var(--rail)); }
.galerie-barre { position: relative; flex: 1; height: 2px; background: var(--filet); border-radius: 2px; overflow: hidden; }
/* C91 : passer une galerie pilotée sans la faire défiler en entier */
.galerie-passer { flex: none; display: inline-flex; align-items: center; gap: .7em; padding: 6px 0; border: 0; background: none; color: var(--gris); font: inherit; font-size: .75rem; font-weight: 500; letter-spacing: var(--capitales); text-transform: uppercase; cursor: pointer; transition: color .25s; }
.galerie-passer:hover, .galerie-passer:focus-visible { color: var(--ink); }
.galerie-passer span { color: var(--braise); transition: transform .25s; }
.galerie-passer:hover span { transform: translateY(3px); }
.galerie-passer[hidden] { display: none; }
.galerie-barre[hidden] { display: none; }
.galerie-barre i { position: absolute; inset: 0 auto 0 0; width: 20%; background: var(--braise); border-radius: 2px; }
.bloc-galerie.pilotee { height: var(--pile); }
.bloc-galerie.pilotee .galerie-collant { position: sticky; top: var(--collant-haut); }
.galerie-collant { position: relative; z-index: 4; } /* C90 : le collant fait son propre empilement ; la galerie doit passer devant la trace (C78) */
.bloc-galerie.pilotee .galerie { scroll-snap-type: none; overflow-x: hidden; }
.chap + .bloc-galerie { margin-top: 0; }

/* fiche matériel */
.chap.fiche { margin-top: var(--space); }
.partenaire { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.partenaire .nom { font-family: var(--serif); font-weight: var(--serif-poids); font-size: clamp(1.125rem, 1.7vw, 1.5rem); line-height: 1.3; }
.fiche-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px 40px; }
.fiche-tete h2 { margin-top: 18px; }
.fiche-tete .partenaire { margin-top: 0; }
/* C79 : le vélo en grand, sur toute la largeur du contenu */
.fiche-velo { margin-top: clamp(36px, 4.5vw, 64px); }
.fiche-velo img { width: auto; max-width: 100%; max-height: 86vh; margin-inline: auto; border-radius: var(--r); } /* photo entière, jamais recadrée : la hauteur de l'écran la limite */
/* C79 : tout le matériel visible, en tableau de cases numérotées (plus de panneaux dépliants) */
.fiche-table { margin: clamp(40px, 5vw, 72px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); }
.fiche-table.longue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fiche-table .case { padding-block: 22px 26px; border-top: 1px solid var(--filet); }
.fiche-table dt { display: flex; gap: 1em; align-items: baseline; font-size: .75rem; font-weight: 500; line-height: 1.5; letter-spacing: var(--capitales); text-transform: uppercase; color: var(--gris); }
.fiche-table dt .n { color: var(--braise-texte); font-variant-numeric: tabular-nums; }
.fiche-table dd { margin: 12px 0 0; font-size: .9375rem; line-height: 1.7; color: var(--ink); }
.fiche-table.longue dd { color: var(--gris); max-width: 36em; }
.fiche-table.longue dd strong { color: var(--ink); }
.fiche-table dd p + p { margin-top: .8em; }
.fiche-table dd ul { margin: .6em 0 0; padding-left: 1.2em; }
@media (max-width: 1280px) { .fiche-table { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bascule { border-top: 1px solid var(--filet); }
.bascules .bascule:last-child, .epoques { border-bottom: 1px solid var(--filet); }
.bascule summary { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-block: 20px; cursor: pointer; list-style: none; font-family: var(--serif); font-weight: var(--serif-poids); font-size: clamp(1.125rem, 1.55vw, 1.375rem); line-height: 1.3; }
.bascule summary::-webkit-details-marker { display: none; }
.bascule summary::after { content: "+"; font-family: var(--sans); font-weight: 400; font-size: 1.375rem; line-height: 1; color: var(--gris); }
.bascule[open] summary::after { content: "–"; color: var(--braise-texte); }
.bascule summary:hover { color: var(--braise-texte); }
.bascule .contenu { padding-bottom: 24px; font-size: .9375rem; color: var(--gris); max-width: 38em; }
.bascule .contenu ul { margin: .6em 0 0; padding-left: 1.2em; }
.bascule .contenu p + p { margin-top: .8em; }
.fiche-note { margin-top: 22px; font-size: .9375rem; color: var(--gris); }

/* repères par époque */
.epoque summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
.epoque summary .an { grid-column: 1; font-family: var(--sans); font-size: .875rem; color: var(--gris); font-variant-numeric: tabular-nums; }
.epoque summary .disc { grid-column: 1; font-size: clamp(1.25rem, 1.7vw, 1.5rem); }
.epoque summary::after { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.epoque .contenu { max-width: none; }
.epoque .contenu ul { list-style: none; margin: 0; padding: 0; color: var(--ink); }
.epoque .contenu li { padding-block: 10px; border-top: 1px solid var(--filet); }
.epoque .contenu li:first-child { border-top: 0; padding-top: 0; }
.epoque .contenu figure { margin-top: 22px; max-width: 78%; }
.epoque .contenu figure img { border-radius: var(--r); }
.rupture { position: relative; padding: 24px 0; border-top: 1px solid var(--filet); }
.rupture .an { display: block; font-size: .875rem; color: var(--braise-texte); }
.rupture .disc { font-family: var(--serif); font-weight: var(--serif-poids); font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.3; }

/* récits voisins */
.voisins { padding-block: var(--space); display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.carte { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--nuit); color: #fff; }
.carte img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .1, 1); }
.carte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .3) 42%, rgba(0, 0, 0, 0) 70%); }
.carte:hover img { transform: scale(1.04); }
.carte-txt { position: absolute; z-index: 1; inset: auto 0 0 0; padding: clamp(18px, 2.2vw, 32px); }
.carte .n { font-size: .8125rem; opacity: .85; }
.carte .carte-titre { font-family: var(--serif); font-weight: var(--serif-poids); font-size: clamp(1.125rem, 1.55vw, 1.375rem); line-height: 1.3; margin: 4px 0 0; }
.carte .chiffres { margin-top: 6px; font-size: .875rem; color: #e0e1e3; }

/* formulaire de contact */
.champ { display: block; margin-bottom: 22px; }
.champ > span { display: block; font-size: .875rem; color: var(--gris); margin-bottom: 6px; }
.champ input, .champ select, .champ textarea { display: block; width: 100%; font: inherit; font-size: 1rem; line-height: 1.5; color: var(--ink); background: var(--surface); border: 1px solid var(--filet); border-radius: 6px; padding: 12px 14px; -webkit-appearance: none; appearance: none; }
.champ select { background-image: linear-gradient(45deg, transparent 50%, var(--gris) 50%), linear-gradient(135deg, var(--gris) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.champ textarea { resize: vertical; min-height: 9em; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.champ [aria-invalid="true"] { border-color: var(--erreur); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-etat { min-height: 1.7em; color: var(--erreur); margin-bottom: 10px; }
.form button.btn { border: 0; cursor: pointer; font-family: inherit; font-weight: 500; padding: .8em 1.8em; }
.form button.btn[disabled] { opacity: .6; cursor: default; }
.form-mention { margin-top: 18px; }
.form-fait h3 { font-size: clamp(1.125rem, 1.7vw, 1.5rem); }
.form-fait h3:focus { outline: none; }
.form-fait p { margin-top: 14px; max-width: 26em; }

/* page introuvable */
.vide { padding-bottom: var(--space); }

/* ===== Pied ===== */
.pied { position: relative; z-index: 4; background: var(--nuit); color: #fff; padding-block: clamp(72px, 9vw, 128px) 40px; }
.pied-haut { display: grid; grid-template-columns: 7fr 2fr 2fr; column-gap: 28px; }
.signature { font-family: var(--serif); font-weight: var(--serif-poids); font-size: clamp(1.375rem, 2.3vw, 2.125rem); line-height: 1.22; max-width: 11em; }
.signature span { color: var(--braise-texte); }
.pied ul { list-style: none; margin: 0; padding: 0; font-size: .75rem; font-weight: 500; letter-spacing: var(--capitales); text-transform: uppercase; line-height: 2.8; }
.pied ul a:hover, .pied-bas a:hover { color: var(--braise-texte); }
.pied .pied-social { margin-top: 14px; line-height: 1; }
.pied-bas { margin-top: clamp(64px, 9vw, 130px); display: flex; justify-content: space-between; gap: 24px; color: #8b8c8d; }
.pied-credit { margin: 14px 0 0; font-size: .6875rem; line-height: 1.6; color: #8b8c8d; opacity: .7; } /* C115 : crédit du fond de carte */

/* ===== Mouvement ===== */
@media (prefers-reduced-motion: no-preference) {
  html.js .apparait { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform 1s cubic-bezier(.2, .7, .1, 1); transition-delay: calc(var(--i, 0) * 90ms); }
  html.js .apparait.vu { opacity: 1; transform: none; }
  html.js .mots span { opacity: .2; transition: opacity .3s linear; }
  html.js .mots span.on { opacity: 1; }
}

/* ===== Mobile et tablette ===== */
@media (max-width: 1000px) {
  :root { --rail: 0px; --tete: 64px; }
  body { font-size: .9375rem; }
  .lnwks-block--text { font-size: 1rem; } /* les récits restent à 16 px sur mobile */
  .trace, .num::before { display: none; }
  .tete-in { justify-content: space-between; }
  .marque { width: 44px; height: 44px; }
  .tete .g, .tete .d { display: none; }
  .burger { display: block; font-size: .75rem; font-weight: 500; letter-spacing: var(--capitales); text-transform: uppercase; }
  .hero { height: 100svh; min-height: 560px; }
  /* la photo est remontée : le cycliste reste au-dessus du titre */
  .hero img { inset: -30% 0 auto 0; height: 130%; object-position: 50% 50% !important; }
  .hero-recit img { inset: 0; height: 100%; } /* le décalage ci-dessus ne vaut que pour la photo de l'accueil */
  .hero-txt { display: block; bottom: 28px; }
  .hero .legende { text-align: left; margin-top: 20px; }
  .jalons ol, .chiffres-cles { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .grille { display: block; }
  .chap-tete { position: static; }
  .chap-corps { margin-top: 40px; }
  .journal-tete { display: block; }
  .journal-tete > .lien { display: inline-block; margin-top: 22px; }
  .une .txt { margin-top: 24px; }
  .rang { grid-template-columns: 2.75rem 64px minmax(0, 1fr); column-gap: 12px; row-gap: 0; align-items: start; }
  .rang .vignette { width: 64px; height: 44px; grid-row: 1 / span 2; grid-column: 2; }
  .rang .n { grid-row: 1 / span 2; padding-top: 2px; font-size: .8125rem; }
  .rang .t { grid-column: 3; }
  .rang .chiffres { grid-column: 3; font-size: .875rem; }
  .rang .date { display: none; }
  .prog .l { grid-template-columns: 2.25rem minmax(0, 1fr) auto; column-gap: 10px; row-gap: 2px; padding-block: 16px; }
  .prog .t { grid-column: 2 / span 2; }
  .prog .lieu { grid-column: 2; }
  .prog .chiffres { grid-column: 2 / span 2; }
  .prog .date { grid-column: 3; grid-row: 2; }
  .ligne { grid-template-columns: 1fr; row-gap: 2px; }
  .art-une img { aspect-ratio: 4 / 3; }
  .fiche-table, .fiche-table.longue { grid-template-columns: 1fr; }
  .epoque .contenu figure { max-width: 100%; }
  .voisins { grid-template-columns: 1fr; gap: 12px; }
  .pied-haut { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .signature { grid-column: 1 / -1; }
  .pied-bas { flex-direction: column; gap: 4px; padding-bottom: 8px; }
}

/* ===== Visionneuse (C35) ===== */
.zoomable { cursor: zoom-in; }
.galerie .zoomable { cursor: zoom-in; }
.galerie.glisse .zoomable { cursor: grabbing; }
.zoomable:focus-visible { outline: 2px solid var(--braise); outline-offset: 3px; }
html.visionneuse-ouverte { overflow: hidden; }
.visionneuse { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0c0c0c; color: #fff; overscroll-behavior: contain; }
.visionneuse::backdrop { background: transparent; }
.visionneuse .scene { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 64px clamp(16px, 7vw, 96px) 56px; }
.visionneuse figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.visionneuse img { display: block; max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 4px; user-select: none; -webkit-user-drag: none; }
.visionneuse figcaption { font-size: .875rem; color: #c3c4c8; text-align: center; max-width: 40em; }
.visionneuse figcaption:empty { display: none; }
.visionneuse .compte { position: absolute; top: 22px; left: clamp(16px, 3vw, 32px); margin: 0; font-size: .875rem; color: #c3c4c8; font-variant-numeric: tabular-nums; }
.visionneuse button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; background: rgba(12, 12, 12, .4); color: #fff; cursor: pointer; transition: border-color .2s, color .2s; }
.visionneuse:focus { outline: none; }
/* un seul anneau : le bouton survolé ou atteint au clavier prend la bordure orange, sans contour du navigateur en plus (C36) */
.visionneuse button:focus { outline: none; }
.visionneuse button:hover, .visionneuse button:focus-visible { border-color: var(--braise); color: var(--braise); }
.visionneuse button svg { width: 22px; height: 22px; }
.visionneuse .fermer { top: 12px; right: clamp(12px, 2.5vw, 28px); }
.visionneuse .prec, .visionneuse .suiv { top: 50%; transform: translateY(-50%); }
.visionneuse .prec { left: clamp(8px, 2vw, 28px); }
.visionneuse .suiv { right: clamp(8px, 2vw, 28px); }
.visionneuse.seule .prec, .visionneuse.seule .suiv { display: none; }
/* C112 : zoom et plein écran. La loupe et le plein écran s'alignent à gauche du bouton de fermeture. */
.visionneuse { touch-action: none; }
.visionneuse .loupe { top: 12px; right: calc(clamp(12px, 2.5vw, 28px) + 60px); }
.visionneuse .plein { top: 12px; right: calc(clamp(12px, 2.5vw, 28px) + 120px); }
.visionneuse .plein[hidden] { display: none; }
.visionneuse.zoome .loupe .plus { display: none; }
.visionneuse .plein .sortir, .visionneuse.plein-ecran .plein .entrer { display: none; }
.visionneuse.plein-ecran .plein .sortir { display: inline; }
.visionneuse img { cursor: zoom-in; transform-origin: 50% 50%; will-change: transform; }
.visionneuse.zoome img { cursor: grab; }
.visionneuse.saisie, .visionneuse.saisie img { cursor: grabbing; }
.visionneuse.zoome figcaption { visibility: hidden; }
.visionneuse .cadre { position: absolute; inset: 0; background: #0c0c0c; }
.visionneuse .cadre:fullscreen { width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .visionneuse img.anime { transition: transform .3s ease; }
}
@media (max-width: 1000px) {
  .visionneuse .scene { padding: 64px 12px 40px; }
  .visionneuse .prec, .visionneuse .suiv { top: auto; bottom: 14px; transform: none; width: 44px; height: 44px; }
  .visionneuse .prec { left: auto; right: 72px; }
  .visionneuse .suiv { right: 16px; }
  .visionneuse .scene { padding-bottom: 72px; }
  .visionneuse img { max-height: calc(100dvh - 170px); }
}
@media (prefers-reduced-motion: no-preference) {
  .visionneuse[open] { animation: vis-entree .25s ease-out; }
  @keyframes vis-entree { from { opacity: 0; } to { opacity: 1; } }
}

/* ===== C92 : curseur animé, d'après les indicateurs de Salient (démo « The Other Glasses ») =====
   Galeries : anneau blanc en mode différence, deux chevrons qui s'écartent ; il se resserre quand on appuie.
   Images qui s'agrandissent : disque orange « Voir ». Le contenu du curseur traîne un peu derrière lui (parallaxe). */
.curseur { position: fixed; left: 0; top: 0; z-index: 60; width: 0; height: 0; pointer-events: none; will-change: transform; transform: translate3d(var(--cx, -300px), var(--cy, -300px), 0); }
.curseur > span { position: absolute; left: 0; top: 0; }
.c-anneau { width: 56px; height: 56px; margin: -28px 0 0 -28px; border: 2px solid #fff; border-radius: 50%; opacity: 0; transform: scale(.2); transition: transform .45s ease, opacity .3s ease; }
.c-contenu { transform: translate3d(var(--px, 0px), var(--py, 0px), 0); }
.c-fleche { position: absolute; top: -5px; width: 10px; height: 10px; border: solid #fff; border-width: 0 0 2px 2px; opacity: 0; transition: transform .2s ease, opacity .2s ease; }
.c-fleche.g { left: -46px; transform: translateX(17px) rotate(45deg); }
.c-fleche.d { left: 36px; transform: translateX(-17px) rotate(-135deg); }
.c-rond { position: absolute; left: -47px; top: -47px; width: 94px; height: 94px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--braise); color: var(--fond); font-size: .6875rem; font-weight: 600; letter-spacing: var(--capitales); text-transform: uppercase; opacity: 0; transform: scale(.2); transition: transform .45s ease, opacity .3s ease; }
.c-texte { opacity: 0; transition: opacity .2s ease; }
.curseur.glisser { mix-blend-mode: difference; }
.curseur.glisser .c-anneau { opacity: 1; transform: scale(1); }
.curseur.glisser .c-fleche { opacity: 1; transition: transform .45s ease, opacity .3s ease; }
.curseur.glisser .c-fleche.g { transform: translateX(0) rotate(45deg); }
.curseur.glisser .c-fleche.d { transform: translateX(0) rotate(-135deg); }
.curseur.glisser.presse .c-anneau { transform: scale(.8); transition: transform .25s ease-out, opacity .3s ease; }
.curseur.voir .c-rond { opacity: 1; transform: scale(1); }
.curseur.voir .c-texte { opacity: 1; transition-delay: .08s; }
html.curseur-actif .galerie:not(.courte), html.curseur-actif .galerie:not(.courte) *, html.curseur-actif .zoomable { cursor: none; }

/* ===== C102 : carte du parcours, dessinée par le site à partir du GPX (ni Strava ni Komoot à l'affichage) ===== */
.parcours-carte { grid-column: 6 / -1; margin: 0; }
.carte-trace { position: relative; border-radius: var(--r); background: radial-gradient(circle, rgba(255, 255, 255, .09) 1px, transparent 1.4px) 0 0 / 22px 22px; }
.carte-trace svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.carte-trace path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: var(--sw, 3.5); }
.carte-trace .fantome { stroke: var(--filet); }
.carte-trace .trait { stroke: var(--braise); stroke-dasharray: 1; stroke-dashoffset: var(--reste, 0); }
.etapes { list-style: none; margin: 0; padding: 0; }
.etape { position: absolute; width: 0; height: 0; }
.etape i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--fond); border: 2px solid var(--braise); transition: transform .4s cubic-bezier(.2, .8, .2, 1), background-color .3s, border-color .3s; }
.etape.bout i { left: -7px; top: -7px; width: 14px; height: 14px; background: var(--braise); }
.etape span { position: absolute; white-space: nowrap; font-size: .6875rem; font-weight: 500; line-height: 1.3; letter-spacing: var(--capitales); text-transform: uppercase; color: var(--ink); text-shadow: 0 0 3px var(--fond), 0 0 6px var(--fond), 0 0 10px var(--fond); transition: color .3s, opacity .3s; }
.etape[data-pos="e"] span { left: 14px; top: 0; transform: translateY(-50%); }
.etape[data-pos="w"] span { right: 14px; top: 0; transform: translateY(-50%); }
.etape[data-pos="n"] span { left: 0; bottom: 12px; transform: translateX(-50%); }
.etape[data-pos="s"] span { left: 0; top: 12px; transform: translateX(-50%); }
.parcours-carte.anime .etape:not(.atteint) i { border-color: var(--filet); transform: scale(.7); }
.parcours-carte.anime .etape:not(.atteint) span { color: var(--gris); opacity: .55; }
.echelle { position: absolute; left: 0; bottom: 0; white-space: nowrap; padding-bottom: 6px; border-bottom: 2px solid var(--gris); font-size: .6875rem; letter-spacing: var(--capitales); color: var(--gris); }
.echelle::before, .echelle::after { content: ""; position: absolute; bottom: -2px; width: 2px; height: 8px; background: var(--gris); }
.echelle::before { left: 0; } .echelle::after { right: 0; }
.nord { position: absolute; right: 0; top: 0; font-size: .6875rem; font-weight: 600; letter-spacing: var(--capitales); color: var(--gris); }
.nord::before { content: ""; display: block; width: 0; height: 0; margin: 0 auto 4px; border-style: solid; border-width: 0 4px 7px; border-color: transparent transparent var(--gris); }
.profil { position: relative; margin-top: 28px; height: 120px; }
.profil svg { width: 100%; height: 100%; display: block; }
.profil path { fill: rgba(254, 91, 42, .18); stroke: var(--braise); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.profil .alt { position: absolute; right: 0; top: -22px; font-size: .6875rem; letter-spacing: var(--capitales); color: var(--gris); }
.parcours-carte figcaption { margin-top: 5px; font-size: .625rem; font-weight: 500; letter-spacing: var(--capitales); text-transform: uppercase; color: var(--gris); } /* C115 : légende en capitales, sans crédit ; C116 : 5px, 10px */
.parcours .chap-tete .intro { margin-top: 22px; }
/* C104 : fond de carte à la DA (tools/route-fond.php) : terre en relief ombré très sombre, mer transparente sur la trame,
   frontière en pointillé, villes repères et zones en gris, sous la trace et les étapes */
.carte-fond { position: absolute; inset: 0; pointer-events: none;
  /* bords fondus dans la page : la terre ne s'arrête pas net sur le cadre */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect; }
.carte-fond picture, .carte-fond img { display: block; width: 100%; height: 100%; }
.carte-fond svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.carte-fond .frontiere { fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: calc(var(--sw, 3.5) * .45); stroke-dasharray: calc(var(--sw, 3.5) * 1.4) calc(var(--sw, 3.5) * 1.2); stroke-linecap: butt; }
.reperes, .zones { list-style: none; margin: 0; padding: 0; }
.repere, .zone { position: absolute; }
.repere { width: 0; height: 0; }
.repere i { position: absolute; left: -2.5px; top: -2.5px; width: 5px; height: 5px; border-radius: 50%; background: var(--gris); }
.repere span, .zone { white-space: nowrap; text-transform: uppercase; color: var(--gris); text-shadow: 0 0 3px var(--fond), 0 0 6px var(--fond); }
.repere span { position: absolute; left: 9px; top: 0; transform: translateY(-50%); font-size: .625rem; letter-spacing: var(--capitales); }
.zone { transform: translate(-50%, -50%); font-size: .75rem; font-weight: 500; letter-spacing: .45em; color: rgba(255, 255, 255, .24); }
.avec-fond .echelle, .avec-fond .nord { text-shadow: 0 0 3px var(--fond), 0 0 6px var(--fond); }
@media (max-width: 1000px) {
  .parcours-carte { margin-top: 40px; }
  .etape span { font-size: .625rem; letter-spacing: .1em; }
  .repere span { font-size: .5625rem; letter-spacing: .08em; }
  .zone { font-size: .625rem; letter-spacing: .3em; }
}
@media (max-width: 600px) {
  .reperes { display: none; } /* sur téléphone, les villes repères se mêleraient aux étapes */
}
