/* zorbike.com : une carte routiere, un roadbook, les bornes d'un col. */

@font-face { font-family: "Sofia XC"; src: url("/fonts/sofia-xc.woff2") format("woff2"); font-weight: 1 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Sofia"; src: url("/fonts/sofia.woff2") format("woff2"); font-weight: 1 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/fonts/spectral-i.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "DSEG7"; src: url("/fonts/dseg7.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: block; }

:root {
  --paper: #f3ecd8;
  --paper-2: #fbf7ea;
  --paper-3: #e7dec4;
  --ink: #17150f;
  --ink-2: #4a4536;
  --contour: #c9ba90;
  --yellow: #f7c600;
  --yellow-2: #f9e08a;
  --pois: #d2232a;
  --lcd: #c3cbb1;
  --lcd-ink: #1a2117;
  --display: "Sofia XC", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Sofia", "Trebuchet MS", Verdana, sans-serif;
  --serif: "Spectral", Georgia, serif;
  --strip-h: 50px;
  --gut: clamp(16px, 4vw, 56px);
  --grain: url("/img/grain.svg");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--strip-h) + 16px); }
body {
  margin: 0;
  background: var(--paper) var(--grain);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--text);
  font-variant-numeric: lining-nums;
}
img, svg { max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure, table { margin: 0; }
ol, ul { padding: 0; }

em, .lieu { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.05em; }
strong { font-weight: 750; }
a { color: inherit; text-decoration: none; border-bottom: 1.5px solid var(--ink); background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 100% / 100% .42em; }
a:hover { background-size: 100% 100%; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--ink); }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saut { position: absolute; left: 8px; top: -80px; z-index: 100; background: var(--ink); color: var(--paper-2); padding: 10px 14px; border: 0; font-weight: 700; }
.saut:focus { top: 8px; }

@media (min-width: 1100px) { body { font-size: 1.125rem; } }

/* ---------- la bande de carte pliee (en-tete) ---------- */
.strip {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: stretch;
  height: var(--strip-h);
  background: var(--paper-2) var(--grain);
  border-bottom: 2.5px solid var(--ink);
}
.strip a { border: 0; background: none; }
.strip .mark {
  display: flex; align-items: center;
  padding: 0 clamp(10px, 2.2vw, 26px) 2px;
  background: var(--yellow);
  border-right: 2.5px solid var(--ink);
  font: 900 clamp(1.65rem, 4.6vw, 2.15rem)/1 var(--display);
  letter-spacing: -.005em;
}
.strip nav { display: flex; flex: 1 1 auto; min-width: 0; }
.strip nav a {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
  padding: 0 4px 0 7px;
  font: 650 .875rem/1 var(--display);
  white-space: nowrap;
  /* le pli de la carte : une ombre d'un cote, un filet clair de l'autre */
  background: linear-gradient(90deg, rgba(23, 21, 15, .13), rgba(23, 21, 15, 0) 9px), linear-gradient(90deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .8)) no-repeat 0 0 / 1px 100%;
}
.strip nav a:first-child { background: none; }
.strip nav b, .dossard {
  display: inline-grid; place-items: center;
  min-width: 1.5em; height: 1.32em; padding: .08em .3em 0;
  font: 900 1rem/1 var(--display);
  color: var(--ink);
  background:
    radial-gradient(circle at 3px 3px, var(--ink) 0 1px, transparent 1.4px),
    radial-gradient(circle at calc(100% - 3px) 3px, var(--ink) 0 1px, transparent 1.4px),
    radial-gradient(circle at 3px calc(100% - 3px), var(--ink) 0 1px, transparent 1.4px),
    radial-gradient(circle at calc(100% - 3px) calc(100% - 3px), var(--ink) 0 1px, transparent 1.4px),
    #fff;
  border: 1.5px solid var(--ink);
  box-shadow: 1.5px 2px 0 rgba(23, 21, 15, .28);
}
.strip nav a:hover b, .strip nav a:focus-visible b, .strip nav a[aria-current] b {
  background:
    radial-gradient(circle at 3px 3px, var(--ink) 0 1px, transparent 1.4px),
    radial-gradient(circle at calc(100% - 3px) 3px, var(--ink) 0 1px, transparent 1.4px),
    radial-gradient(circle at 3px calc(100% - 3px), var(--ink) 0 1px, transparent 1.4px),
    radial-gradient(circle at calc(100% - 3px) calc(100% - 3px), var(--ink) 0 1px, transparent 1.4px),
    var(--yellow);
}
.strip nav a:focus-visible { outline-offset: -4px; }
.strip nav a[aria-current] span { border-bottom: 2px solid var(--ink); }
@media (min-width: 720px) {
  :root { --strip-h: 54px; }
  .strip nav a { flex: 0 1 auto; flex-direction: row; align-items: center; gap: 9px; padding: 0 clamp(12px, 2vw, 30px) 0 clamp(12px, 1.8vw, 24px); font-size: 1.3rem; font-weight: 700; }
  .strip nav b { font-size: 1.25rem; }
}

/* ---------- titres ---------- */
.poster {
  font: 900 clamp(3.6rem, var(--fs, 19vw), var(--fmax, 13.5rem))/var(--lh, .79) var(--display);
  text-transform: uppercase;
  letter-spacing: -.008em;
  margin-left: -.03em;
  padding-top: .06em;
}
h2 { font: 850 clamp(2.5rem, 7vw, 5.2rem)/.86 var(--display); text-transform: uppercase; letter-spacing: -.004em; }
h3 { font: 800 clamp(1.7rem, 3.4vw, 2.4rem)/.95 var(--display); }
.chapo { font-size: clamp(1.1rem, 1.9vw, 1.45rem); line-height: 1.3; max-width: 34em; }
.cart {
  display: inline-block; vertical-align: .08em;
  font: 850 .92em/1 var(--display);
  padding: .16em .38em .1em;
  background: var(--yellow); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 2px;
  white-space: nowrap; letter-spacing: .02em;
}
hr.route { border: 0; height: 12px; margin: 0; background: var(--yellow); border-block: 2.5px solid var(--ink); }

/* ---------- pages interieures ---------- */
.page { padding: 0 var(--gut) clamp(40px, 8vw, 110px); }
.titre {
  position: relative;
  padding: clamp(22px, 5vw, 64px) 0 clamp(20px, 3.4vw, 44px);
  margin: 0 calc(-1 * var(--gut)); padding-inline: var(--gut);
  background: url("/img/courbes.svg") no-repeat right -80px top -120px / max(760px, 62vw) auto;
}
.titre .chapo { margin-top: clamp(12px, 2vw, 26px); }
.bloc { display: grid; gap: clamp(14px, 2.4vw, 30px); padding-top: clamp(16px, 2.6vw, 30px); margin-top: clamp(30px, 5.5vw, 76px); border-top: 2.5px solid var(--ink); position: relative; }
.bloc::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 7px; background: var(--yellow); border-bottom: 2.5px solid var(--ink); }
.bloc > h2 { padding-top: 14px; }
.prose { display: grid; gap: .8em; max-width: 40em; align-content: start; }
@media (min-width: 980px) {
  .bloc.deux { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(30px, 5vw, 80px); align-items: start; }
  .bloc.deux > h2 { position: sticky; top: calc(var(--strip-h) + 18px); }
}

/* tableaux et listes regles */
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums lining-nums; }
caption { text-align: left; caption-side: bottom; padding-top: .6em; color: var(--ink-2); font-size: .95rem; }
th, td { text-align: left; vertical-align: baseline; padding: .62em 1em .5em 0; border-bottom: 1px solid var(--ink); }
th:last-child, td:last-child { padding-right: 0; }
thead th { font: 750 1.2rem/1.1 var(--display); border-bottom: 2.5px solid var(--ink); padding-bottom: .4em; vertical-align: bottom; }
tbody th { font: 800 1.5rem/1 var(--display); white-space: nowrap; }
.n { text-align: right; white-space: nowrap; }
.regle { list-style: none; border-top: 2.5px solid var(--ink); }
.regle > li { padding: .7em 0 .62em; border-bottom: 1px solid var(--ink); }
.regle b { font: 800 1.35rem/1 var(--display); margin-right: .35em; }
ol.regle { counter-reset: pas; }
ol.regle > li { counter-increment: pas; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); align-items: baseline; }
ol.regle > li::before { content: counter(pas); font: 900 1.9rem/1 var(--display); }

/* touches */
.touches { display: flex; flex-wrap: wrap; gap: 10px 12px; padding-bottom: 6px; border: 0; margin: 0; padding-inline: 0; min-width: 0; }
.touches legend { padding: 0; margin-bottom: 10px; font: 750 1.2rem/1 var(--display); }
.touche { position: relative; }
.touche input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.touche span, button.touche {
  display: block;
  font: 800 1.35rem/1 var(--display);
  color: var(--ink);
  padding: .62em .78em .5em;
  background: var(--paper-2);
  border: 2px solid var(--ink); border-radius: 4px;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform .09s, box-shadow .09s, background-color .09s;
  white-space: nowrap;
}
button.touche { cursor: pointer; }
.touche:hover span, button.touche:hover { background: #fff; }
.touche input:checked + span, .touche input:active + span, button.touche:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); background: var(--yellow); }
.touche input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- pied : l'echelle de la carte ---------- */
.pied { margin-top: clamp(30px, 6vw, 80px); padding: 22px var(--gut) 30px; border-top: 2.5px solid var(--ink); display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: flex-end; justify-content: space-between; background: var(--paper-2) var(--grain); }
.pied p { font-size: .98rem; }
.pied .mark { font: 900 1.5rem/1 var(--display); border: 0; background: none; margin-right: .3em; }
.echelle { width: 210px; flex: none; }
.echelle i { display: block; height: 9px; border: 1.5px solid var(--ink); background: linear-gradient(90deg, var(--ink) 0 25%, #fff 25% 50%, var(--ink) 50% 75%, #fff 75%); }
.echelle span { display: flex; justify-content: space-between; font: 700 .95rem/1.5 var(--display); margin: 0 -3px; }

/* ---------- l'ascension (accueil) ---------- */
.ride { position: relative; height: calc(100vh + var(--len, 2600px)); height: calc(100svh + var(--len, 2600px)); }
.stage {
  position: sticky; top: var(--strip-h);
  height: calc(100vh - var(--strip-h)); height: calc(100svh - var(--strip-h));
  overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
  padding: 8px var(--gut) 6px;
  background: url("/img/courbes.svg") no-repeat right -120px top -60px / max(900px, 76vw) auto;
}
.tete { position: relative; z-index: 2; display: grid; gap: 8px 16px; grid-template-columns: minmax(0, 1fr); pointer-events: none; }
.tete > * { pointer-events: auto; }
.affiche .poster { --fs: min(23.5vw, 13.5vh); --fmax: 16rem; }
.affiche .chapo { margin-top: 6px; font-size: clamp(1rem, 2vw, 1.35rem); }
.profil { position: relative; flex: 1 1 auto; min-height: 120px; }
.profil svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; touch-action: pan-y; user-select: none; -webkit-user-select: none; }

/* le compteur */
.compteur {
  justify-self: start;
  display: grid; gap: 8px;
  padding: 9px 9px 10px;
  background: #23241f;
  border-radius: 14px 14px 18px 18px;
  box-shadow: inset 0 2px 0 #4a4b43, inset 0 -3px 0 #0c0d0a, 4px 6px 0 rgba(23, 21, 15, .2);
  color: #d9d5c6;
  width: 100%;
}
.lcd {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 2px 12px;
  padding: 8px 10px 6px;
  background: linear-gradient(#b8c0a4, #c9d0b6 55%, #c3cbb1);
  border-radius: 5px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(0, 0, 0, .35);
  color: var(--lcd-ink);
}
.champ { display: grid; justify-items: end; gap: 3px; }
.champ .lab { font: 800 .78rem/1 var(--display); letter-spacing: .05em; text-transform: uppercase; justify-self: start; }
.val { position: relative; display: inline-block; font: 700 clamp(1.7rem, 8.4vw, 2.5rem)/1 "DSEG7", monospace; white-space: pre; letter-spacing: .02em; }
.val::before { content: attr(data-fond); position: absolute; right: 0; top: 0; opacity: .11; }
.essai .val { color: transparent; }
.essai .val::before { opacity: 1; color: var(--lcd-ink); }
.boutons { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.boutons span { font: 800 .8rem/1 var(--display); letter-spacing: .08em; color: #a9a696; }
.bt {
  width: 64px; height: 32px; padding: 0; cursor: pointer;
  background: #3a3b34; border: 0; border-radius: 5px;
  box-shadow: inset 0 1px 0 #63645a, 0 3px 0 #0c0d0a;
  display: grid; place-items: center;
}
.bt::before { content: ""; border: 6px solid transparent; border-left: 9px solid var(--yellow); border-right: 0; }
.bt.arr::before { border-left: 0; border-right: 9px solid var(--yellow); }
.bt:active { transform: translateY(2px); box-shadow: inset 0 1px 0 #63645a, 0 1px 0 #0c0d0a; }
.bt:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* la bande de roadbook : une ligne a la fois */
.roadbook {
  list-style: none; display: grid;
  background: #fffdf4;
  border: 1.5px solid var(--ink);
  box-shadow: 3px 4px 0 rgba(23, 21, 15, .16);
  padding: 9px 12px 8px;
  position: relative;
  max-width: 34rem;
}
.roadbook::before, .roadbook::after { content: ""; position: absolute; top: -9px; width: 46px; height: 17px; background: rgba(247, 198, 0, .72); border-inline: 1px dashed rgba(23, 21, 15, .35); transform: rotate(-4deg); }
.roadbook::before { left: 14px; }
.roadbook::after { right: 18px; transform: rotate(3deg); }
.roadbook li { grid-area: 1 / 1; display: grid; grid-template-columns: 4.1rem minmax(0, 1fr); gap: 0 10px; align-items: baseline; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .28s, transform .28s, visibility 0s .28s; line-height: 1.32; }
.roadbook li.on { opacity: 1; visibility: visible; transform: none; transition: opacity .28s, transform .28s; }
.roadbook .k { font: 850 1.5rem/1 var(--display); white-space: nowrap; border-right: 1.5px solid var(--ink); align-self: stretch; padding-top: .12em; }
.roadbook .lieu { font-size: 1.22em; }

/* le profil dessine */
.g-grille line { stroke: var(--contour); stroke-width: 1; stroke-dasharray: 2 5; }
.g-grille text, .g-km text { font: 700 13px var(--display); fill: var(--ink-2); }
.b0 { fill: var(--paper-2); }
.b1 { fill: var(--yellow-2); }
.b2 { fill: var(--yellow); }
.b3 { fill: var(--ink); }
.g-bandes path { stroke: var(--paper); stroke-width: 1; }
.sol { stroke: var(--ink); stroke-width: 2.5; fill: none; }
.r-halo { fill: none; stroke: var(--paper); stroke-linejoin: round; stroke-linecap: round; }
.r-bord { fill: none; stroke: var(--ink); stroke-linejoin: round; stroke-linecap: round; }
.r-fond { fill: none; stroke: #fff; stroke-linejoin: round; stroke-linecap: round; }
.r-jaune { fill: none; stroke: var(--yellow); stroke-linejoin: round; stroke-linecap: butt; }
.borne .pierre { fill: #fff; stroke: var(--ink); stroke-width: 1.2; }
.borne .calotte { fill: #fff; stroke: var(--ink); stroke-width: 1.2; transition: fill .2s; }
.borne.faite .calotte { fill: var(--yellow); }
.g-fantomes path { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 5 5; opacity: .62; }
.g-lieux line { stroke: var(--ink); stroke-width: 1.2; }
.g-lieux circle { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.g-lieux text { font: italic 500 17px var(--serif); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; }
.g-lieux .alt { font: 750 14px var(--display); }
.legende text { font: 700 13px var(--display); fill: var(--ink); }
.legende rect { stroke: var(--ink); stroke-width: 1.2; }
.legende .schema { font: italic 500 14px var(--serif); fill: var(--ink-2); }
.coureur { cursor: grab; outline: none; touch-action: none; }
.coureur:active { cursor: grabbing; }
.coureur .prise { fill: transparent; }
.coureur:focus-visible .anneau { stroke: var(--ink); stroke-width: 3; stroke-dasharray: 5 4; fill: none; }
.coureur .anneau { fill: none; stroke: none; }
.velo line, .velo path, .velo circle { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.velo .roue { fill: var(--paper-2); stroke-width: 2.2; }
.velo .rayon { stroke-width: .9; }
.velo .cadre { stroke-width: 1.7; }
.velo .selle { stroke-width: 2.6; }
.velo .manivelle { stroke-width: 1.6; }
.velo .jambe { stroke-width: 3; }
.velo .jambe.loin { stroke: var(--ink-2); stroke-width: 2.4; }
.velo .membre { stroke-width: 2.4; }
.velo .corps { stroke-width: 5; }
.velo .maillot { stroke: var(--yellow); stroke-width: 2.4; }
.velo .tete-c { fill: var(--ink); stroke: none; }
.fil { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 3 4; }
.mat { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.fanion { fill: var(--yellow); stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.velo .casquette { stroke-width: 1.8; }
.decor { pointer-events: none; }
.cep { fill: none; stroke: var(--ink-2); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.arbre { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; }
.arbre.loin { fill: var(--paper-3); stroke: var(--ink-2); stroke-width: 1; }
.caillou { fill: #fff; stroke: var(--ink-2); stroke-width: .9; }
.jalon { stroke: var(--yellow); stroke-width: 2.6; }
.jalon.noir { stroke: var(--ink); }
.batisse { fill: #fff; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.naissance .g-bandes, .naissance .g-route, .naissance .decor { animation: balayer 1.3s cubic-bezier(.5, 0, .2, 1) both; }
.naissance .g-lieux, .naissance .g-km, .naissance .coureur, .naissance .mat, .naissance .fanion, .naissance .fil, .naissance .g-grille { animation: paraitre .5s 1.05s both; }
@keyframes balayer { from { clip-path: inset(-60px 100% -60px -60px); } to { clip-path: inset(-60px -60px -60px -60px); } }
@keyframes paraitre { from { opacity: 0; } }

/* au sommet, une fois : les pois du meilleur grimpeur */
@property --pois-r { syntax: "<length>"; inherits: true; initial-value: 0px; }
.affiche .poster { transition: color .45s, -webkit-text-stroke-color .45s, --pois-r .7s cubic-bezier(.3, 1.5, .5, 1); -webkit-text-stroke: .02em transparent; paint-order: stroke fill; }
.au-sommet .affiche .poster {
  --pois-r: .062em;
  color: transparent;
  -webkit-text-stroke-color: var(--ink);
  background:
    radial-gradient(circle at 50% 50%, var(--pois) var(--pois-r), transparent calc(var(--pois-r) + .7px)) 0 0 / .3em .3em,
    radial-gradient(circle at 50% 50%, var(--pois) var(--pois-r), transparent calc(var(--pois-r) + .7px)) .15em .15em / .3em .3em,
    #fff;
  -webkit-background-clip: text; background-clip: text;
}

@media (min-width: 640px) {
  .ride { --len: 3200px; }
  .tete { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .affiche .poster { --fs: min(17vw, 22vh); }
  .tete .compteur { width: auto; grid-row: span 2; margin-top: 6px; }
  .tete .lcd { grid-template-columns: auto auto; column-gap: 22px; padding: 12px 14px 8px; }
  .champ.grand { grid-column: 1 / -1; }
  .champ.grand .val { font-size: 4.4rem; }
  .tete .val { font-size: 2.3rem; }
  .roadbook { margin-top: 4px; }
}
@media (min-width: 980px) and (min-height: 620px) {
  .stage { display: block; padding: 0; }
  .tete { position: absolute; left: var(--gut); right: var(--gut); top: 14px; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(28px, 4.5vw, 84px); }
  .affiche .poster { --fs: min(14.5vw, 27vh); }
  .affiche .chapo { margin-top: 12px; }
  .tete .compteur { grid-row: 1; grid-column: 2; margin-top: 12px; }
  .roadbook { grid-column: 1; width: min(33rem, 40vw); margin-top: 10px; transform: rotate(-1.2deg); }
  .profil { position: absolute; inset: 0; }
  .g-grille text, .g-km text, .legende text { font-size: 15px; }
  .g-lieux text { font-size: 21px; }
  .g-lieux .alt { font-size: 16px; }
}

@media (min-width: 980px) and (min-height: 620px) and (max-height: 820px) {
  .affiche .poster { --fs: min(14.5vw, 21.5vh); }
}
@media (min-width: 1500px) and (min-height: 900px) {
  .champ.grand .val { font-size: 5.6rem; }
  .tete .val { font-size: 2.9rem; }
  .tete .champ .lab { font-size: .9rem; }
  .tete .bt { width: 70px; height: 30px; }
  .roadbook { font-size: 1.15rem; width: min(38rem, 40vw); }
}
@media (max-width: 639px) and (max-height: 700px) {
  .stage { gap: 6px; }
  .affiche .poster { --fs: min(23.5vw, 11vh); }
  .affiche .chapo { margin-top: 3px; }
  .boutons { display: none; }
  .roadbook { font-size: .95rem; padding-block: 7px 6px; }
}

/* la feuille de route (sommaire de l'accueil) */
.sommaire { padding: clamp(34px, 6vw, 84px) var(--gut) 0; }
.sommaire h2 { margin-bottom: clamp(14px, 2vw, 26px); }
.feuille { list-style: none; border-top: 2.5px solid var(--ink); }
.feuille a {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 clamp(12px, 2.4vw, 34px);
  padding: clamp(12px, 1.7vw, 22px) clamp(4px, 1vw, 14px) clamp(9px, 1.4vw, 18px);
  border-bottom: 1.5px solid var(--ink);
  background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 0 / 0 100%;
  transition: background-size .32s cubic-bezier(.3, .7, .2, 1);
}
.feuille a:hover, .feuille a:focus-visible { background-size: 100% 100%; }
.feuille a:focus-visible { outline-offset: -3px; }
.feuille .dossard { font-size: clamp(1.5rem, 3.6vw, 2.9rem); align-self: start; margin-top: .22em; transform: rotate(-3deg); }
.feuille li:nth-child(even) .dossard { transform: rotate(2deg); }
.feuille .t { display: block; font: 900 clamp(2.5rem, 8.6vw, 7.4rem)/.84 var(--display); text-transform: uppercase; letter-spacing: -.006em; }
.feuille .d { display: block; margin-top: .62em; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.3; }
.fleche { width: clamp(30px, 6vw, 86px); height: auto; fill: none; stroke: var(--ink); stroke-width: 5; stroke-linejoin: miter; transition: transform .3s; flex: none; }
.feuille a:hover .fleche, .feuille a:focus-visible .fleche { transform: translateX(8px); }

/* ---------- le Ventoux ---------- */
.aiguillage { display: grid; gap: clamp(18px, 2.6vw, 34px); }
.carte-profil { display: grid; gap: clamp(18px, 2.6vw, 40px); align-items: start; }
.cote { display: grid; gap: clamp(14px, 2vw, 22px); min-width: 0; }
.carte svg { display: block; width: 100%; height: auto; background: var(--paper-2); border: 2.5px solid var(--ink); box-shadow: inset 0 0 0 5px var(--paper-2), inset 0 0 0 6.5px var(--ink); }
.carte figcaption { font-family: var(--serif); font-style: italic; color: var(--ink-2); padding-top: 8px; }
.c-bord { fill: none; stroke: var(--ink); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; cursor: pointer; }
.c-fond { fill: none; stroke: #fff; stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; transition: stroke .25s, stroke-dashoffset 1.6s cubic-bezier(.4, 0, .2, 1); }
.c-fond.choisie { stroke: var(--yellow); }
.c-ville { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.c-point { fill: var(--ink); }
.c-sommet { fill: var(--ink); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.c-nom { font: 850 19px var(--display); fill: var(--ink); letter-spacing: .02em; paint-order: stroke; stroke: var(--paper-2); stroke-width: 5px; stroke-linejoin: round; }
.c-lieu { font: italic 500 17px var(--serif); fill: var(--ink); paint-order: stroke; stroke: var(--paper-2); stroke-width: 5px; stroke-linejoin: round; }
.c-cart rect { fill: var(--yellow); stroke: var(--ink); stroke-width: 1.6; }
.c-cart text { font: 850 14px var(--display); fill: var(--ink); letter-spacing: .03em; }
.c-nord path { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.c-nord text { font: 900 18px var(--display); fill: var(--ink); }
@media (max-width: 699px) {
  .c-nom { font-size: 25px; }
  .c-lieu { font-size: 22px; }
  .c-cart text { font-size: 15px; }
  .c-nord text { font-size: 24px; }
}
@media (min-width: 1000px) {
  .carte-profil { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .cote .fig .cadre { height: clamp(250px, 27vw, 400px); }
}
.fig { position: relative; border-bottom: 0; }
.fig .cadre { position: relative; height: clamp(250px, 46vw, 520px); }
.fig svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.fig figcaption { font-family: var(--serif); font-style: italic; color: var(--ink-2); padding-top: 8px; }
.trace .r-jaune { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tirer 1.5s .15s cubic-bezier(.4, 0, .2, 1) forwards; }
.trace .g-bandes path { transform-box: fill-box; transform-origin: 50% 100%; animation: monter .55s both cubic-bezier(.2, .8, .2, 1); animation-delay: calc(var(--i, 0) * 26ms); }
@keyframes tirer { to { stroke-dashoffset: 0; } }
@keyframes monter { from { transform: scaleY(0); } }
.trois { display: grid; gap: clamp(20px, 3vw, 44px); }
.trois > div { display: grid; gap: .6em; align-content: start; }
.trois h3 .lieu { font-size: 1em; }
.trois h3 { display: flex; flex-wrap: wrap; gap: .4em; align-items: center; font: inherit; }
.trois h3 .lieu { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1; }
@media (min-width: 900px) {
  .trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trois > div + div { border-left: 1px solid var(--ink); padding-left: clamp(18px, 2.2vw, 34px); }
}
.chrono th { font-size: clamp(2rem, 4.6vw, 3.4rem); padding-right: clamp(14px, 3vw, 40px); width: 1%; }
.chrono td { font-size: clamp(1.02rem, 1.6vw, 1.2rem); }
.chrono tr:first-child > * { border-top: 2.5px solid var(--ink); }
tr.choisie > * { background: var(--yellow); }
tr.choisie > :first-child { box-shadow: -10px 0 0 var(--yellow); }
@media (max-width: 699px) {
  .trois-routes .c-route { display: none; }
  .trois-routes { font-family: var(--display); font-weight: 650; font-size: 1.14rem; }
  .trois-routes thead th { font-size: 1rem; }
  .trois-routes tbody th { font-size: 1.32rem; }
  .trois-routes th, .trois-routes td { padding-right: .55em; }
}

/* ---------- itineraires ---------- */
.fiche { display: grid; gap: clamp(12px, 2vw, 22px) clamp(24px, 4vw, 64px); padding: clamp(18px, 3vw, 36px) 0 clamp(26px, 4.5vw, 60px); border-top: 2.5px solid var(--ink); position: relative; }
.fiche::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 7px; background: var(--yellow); border-bottom: 2.5px solid var(--ink); }
.fiche-t { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 clamp(12px, 2vw, 26px); align-items: start; padding-top: 14px; }
.fiche-t .dossard { font-size: clamp(1.7rem, 4vw, 3rem); transform: rotate(-3deg); margin-top: .12em; }
.fiche:nth-of-type(even) .dossard { transform: rotate(2.5deg); }
.fiche-t h2 { font-size: clamp(2.5rem, 7.4vw, 6rem); }
.fiche-t p { grid-column: 2; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.5rem); margin-top: .3em; }
.mini { position: relative; height: clamp(86px, 11vw, 124px); }
.mini svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fiche figcaption { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: .98rem; padding-top: 4px; }
.faits { display: grid; grid-template-columns: auto minmax(0, 1fr); border-top: 2.5px solid var(--ink); margin-top: 12px; }
.faits dt, .faits dd { padding: .5em 0 .4em; border-bottom: 1px solid var(--ink); }
.faits dt { font: 750 1.2rem/1.25 var(--display); padding-right: 1.4em; }
.fiche .savoir { border-left: 7px solid var(--yellow); outline: 0; padding: .1em 0 .1em .8em; box-shadow: -2.5px 0 0 var(--ink); margin-left: 2.5px; }
.fiche .savoir b { font: 800 1.3rem/1 var(--display); margin-right: .3em; }
@media (min-width: 900px) {
  .fiche { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .fiche-t { grid-column: 1 / -1; }
}

/* ---------- atelier ---------- */
.calc { display: grid; gap: clamp(18px, 3vw, 40px); align-items: start; }
.reglages { display: grid; gap: 16px; }
.reglage { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0 12px; }
.reglage label { font: 750 1.3rem/1 var(--display); }
.reglage output { font: 900 2.3rem/.8 var(--display); font-variant-numeric: tabular-nums; }
.reglage output small { font: 650 1.1rem/1 var(--display); margin-left: .25em; }
.reglage input { grid-column: 1 / -1; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: ew-resize; }
input[type="range"]::-webkit-slider-runnable-track { height: 16px; border: 2px solid var(--ink); border-radius: 2px; background: repeating-linear-gradient(90deg, rgba(23, 21, 15, .55) 0 1.5px, transparent 1.5px 10px), #fff; }
input[type="range"]::-moz-range-track { height: 12px; border: 2px solid var(--ink); border-radius: 2px; background: repeating-linear-gradient(90deg, rgba(23, 21, 15, .55) 0 1.5px, transparent 1.5px 10px), #fff; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 38px; margin-top: -13px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 4px; box-shadow: 0 4px 0 var(--ink); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 34px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 4px; box-shadow: 0 4px 0 var(--ink); }
input[type="range"]:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.ecran { display: grid; gap: 12px; }
.ecran .compteur { width: 100%; padding: 12px 12px 14px; }
.ecran .lcd { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; padding: 14px 16px 12px; }
.ecran .champ { justify-items: start; }
.ecran .val { font-size: clamp(2rem, 9vw, 3.3rem); }
.ecran .unite { font: 800 .9rem/1 var(--display); margin-left: .3em; letter-spacing: .03em; }
.transmission { position: relative; width: 100%; aspect-ratio: 820 / 372; max-height: 380px; border-block: 2.5px solid var(--ink); background: var(--paper-2); overflow: hidden; }
.transmission svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dent { fill: var(--ink); }
.plateau-c { fill: var(--paper-2); stroke: var(--ink); stroke-width: 2; }
.bras { stroke: var(--ink); stroke-width: 9; stroke-linecap: round; }
.pedale { fill: var(--yellow); stroke: var(--ink); stroke-width: 2; }
.chaine { fill: none; stroke: var(--ink); stroke-width: 7.5; stroke-linejoin: round; }
.chaine-f { fill: none; stroke: var(--yellow); stroke-width: 3.2; }
.couronne { fill: none; stroke: var(--ink); stroke-width: 12; }
.etoile line { stroke: var(--ink); stroke-width: 10; stroke-linecap: round; }
.bras.loin { stroke: var(--ink-2); }
.bras-h { stroke: var(--paper-2); stroke-width: 16; stroke-linecap: round; }
.cadre-t { fill: none; stroke: var(--paper-3); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.pedale.loin { fill: var(--paper-3); }
.jante { fill: none; stroke: var(--ink); stroke-width: 7; }
.pneu { fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-dasharray: 3 9; }
.rayons line { stroke: var(--ink); stroke-width: 1.3; }
.moyeu { fill: var(--yellow); stroke: var(--ink); stroke-width: 2; }
.sol-t { stroke: var(--ink); stroke-width: 2.5; }
.sol-m { stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 2 38; }
@media (min-width: 900px) {
  .calc { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .calc .transmission { grid-column: 1 / -1; }
}

/* ---------- lexique ---------- */
.cherche { position: sticky; top: var(--strip-h); z-index: 5; margin: 0 calc(-1 * var(--gut)); padding: 10px var(--gut) 12px; background: var(--paper) var(--grain); border-bottom: 2.5px solid var(--ink); display: flex; align-items: baseline; gap: 16px; }
.cherche input { flex: 1 1 auto; min-width: 0; font: 800 clamp(1.7rem, 5vw, 3rem)/1.1 var(--display); color: var(--ink); background: transparent; border: 0; border-bottom: 3px solid var(--ink); border-radius: 0; padding: .1em 0 .02em; }
.cherche input::placeholder { color: var(--ink-2); opacity: 1; }
.cherche input:focus-visible { outline: 0; border-bottom-color: var(--ink); background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 100% / 100% 34%; }
.cherche output { font: 800 1.4rem/1 var(--display); white-space: nowrap; }
.lexique { display: block; }
.mot { display: grid; gap: 2px 30px; padding: .8em 0 .7em; border-bottom: 1px solid var(--ink); }
.mot[hidden] { display: none; }
.mot dt { font: 850 clamp(1.8rem, 4.4vw, 2.7rem)/.95 var(--display); }
.mot dd { max-width: 40em; }
.vide { padding: 1.2em 0; font-size: 1.2rem; }
@media (min-width: 820px) {
  .mot { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); align-items: baseline; }
}

/* ---------- a propos, 404 ---------- */
.rose { display: block; width: clamp(120px, 20vw, 220px); height: auto; }
.apropos { display: grid; gap: clamp(20px, 4vw, 60px); margin-top: clamp(10px, 2vw, 24px); }
.apropos .prose p:first-child { font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.25; }
@media (min-width: 900px) { .apropos { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); align-items: start; } .apropos .rose { justify-self: end; } }
.crevaison { min-height: calc(100vh - var(--strip-h) - 140px); display: grid; align-content: center; gap: clamp(14px, 3vw, 30px); padding: 30px var(--gut) 40px; position: relative; overflow: hidden; }
.crevaison .poster { --fs: 21vw; --fmax: 11.5rem; position: relative; z-index: 1; }
.crevaison p { font-size: clamp(1.15rem, 2.2vw, 1.6rem); position: relative; z-index: 1; }
.crevaison svg { position: absolute; right: max(-60px, -6vw); bottom: 0; width: min(74vw, 620px); height: auto; overflow: visible; }
.plat .pneu-p { fill: none; stroke: var(--ink); stroke-width: 26; stroke-linejoin: round; }
.plat .jante-p { fill: none; stroke: var(--ink); stroke-width: 5; }
.plat .ray line { stroke: var(--ink); stroke-width: 2; }
.plat .valve { stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }
.plat .epine { fill: var(--yellow); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.plat .souffle { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.rose .cercle { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.rose .fin { stroke-width: 1; stroke-dasharray: 2 4; }
.rose .plein { fill: var(--ink); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.rose .creux { fill: #fff; stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.rose .nord { fill: var(--yellow); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.rose .lettre { font: 900 22px var(--display); fill: var(--ink); }

/* les traits qui se tirent quand on y arrive */
.tire { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s cubic-bezier(.4, 0, .2, 1); }
.vu .tire { stroke-dashoffset: 0; }

@media (scripting: none) {
  .ride { height: auto; }
  .stage { position: static; height: auto; overflow: visible; }
  .tete { position: static; }
  .profil, .compteur, .cherche, .calc, .fig, .fiche figure, .aiguillage .touches { display: none; }
  .roadbook li { grid-area: auto; opacity: 1; visibility: visible; transform: none; padding: 4px 0; }
  .roadbook { transform: none; width: auto; }
  .tire { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; transition-delay: 0s !important; }
}
.poster.haut { --lh: .88; }
