/* Chassezac Quad : jetons, polices, typographie, boutons */
@font-face { font-family: "Bungee"; src: url("fonts/bungee.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Karla"; src: url("fonts/karla.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Karla"; src: url("fonts/karla-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  /* chêne vert de Païolive, assombri */
  --c950: #111711; --c900: #172017; --c800: #202b1f; --c700: #2c3a2a; --c600: #3d4f3a; --c500: #56694f; --c400: #748a6c; --c300: #9aae92; --c200: #bfcdb9;
  /* gris calcaire, toujours froid */
  --k50: #eef0ee; --k100: #e1e4e1; --k200: #cfd3cf; --k300: #b7bcb8; --k400: #9ba19d; --k600: #5d6461; --k800: #333936;
  --noir: #0c100c; --blanc: #ffffff;
  /* orange des gilets */
  --or: #ff5b14; --or-d: #c43f07; --or-l: #ff8a57;
  --eau: #6aa0a6;
  --f-t: "Bungee", "Arial Black", sans-serif;
  --f-b: "Karla", "Segoe UI", system-ui, sans-serif;
  --gut: clamp(16px, 3.4vw, 64px);
  --hd: 72px;
  --bb: 0px;
  --r: 3px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd) + 16px); scrollbar-gutter: stable; background: var(--c950); }
body { margin: 0; background: var(--c950); color: var(--k100); font: 400 18px/1.55 var(--f-b); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1640px; margin-inline: auto; padding-inline: max(var(--gut), env(safe-area-inset-left)) max(var(--gut), env(safe-area-inset-right)); }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 1px; }
::selection { background: var(--or); color: var(--noir); }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--or); color: var(--noir); font-weight: 800; text-decoration: none; }
.skip:focus { top: calc(var(--demobar-offset, 0px) + 8px); }
main:focus { outline: none; }
[id] { scroll-margin-top: calc(var(--hd) + 16px); }

.ico { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: square; }
.dash li { position: relative; padding-left: 26px; margin-bottom: .4em; }
.dash li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 3px; background: var(--or); }

/* Boutons et liens */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 24px; border: 0; border-radius: var(--r); background: var(--or); color: var(--noir); font: 800 17px/1.1 var(--f-b); text-decoration: none; overflow: hidden; isolation: isolate; transition: background .2s, transform .2s var(--ease); }
.btn::after { content: ""; position: absolute; inset: 0 auto 0 -40%; width: 26%; background: rgba(255, 255, 255, .38); transform: skewX(-18deg) translateX(-120%); z-index: -1; transition: transform .5s var(--ease); }
.btn:hover { background: var(--or-l); }
.btn:hover::after { transform: skewX(-18deg) translateX(620%); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { background: var(--k300); color: var(--k600); cursor: not-allowed; }
.btn[disabled]::after { display: none; }
.btn-s { min-height: 44px; padding: 10px 18px; font-size: 16px; }
.btn-w { width: 100%; }
.btn:focus-visible { outline-color: var(--blanc); box-shadow: 0 0 0 6px var(--noir); }
.lnk { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--or); text-decoration-thickness: 3px; text-underline-offset: 6px; transition: text-underline-offset .2s; }
.lnk:hover { text-underline-offset: 3px; }

/* Bande « gilet » : orange et deux bandes rétroréfléchissantes */
.vest { height: 22px; background: linear-gradient(var(--or) 0 30%, var(--k200) 30% 42%, var(--or) 42% 58%, var(--k200) 58% 70%, var(--or) 70%); }

/* Bouton « Parcourir » (planche et fiches) */
.run { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 18px 8px 14px; border: 2px solid var(--noir); border-radius: var(--r); background: transparent; font-weight: 800; font-size: 16px; color: var(--noir); transition: background .2s, color .2s; }
.run svg { width: 16px; height: 16px; fill: var(--or-d); }
.run .r-stop, .run[aria-pressed="true"] .r-go { display: none; }
.run[aria-pressed="true"] .r-stop { display: block; }
.run:hover, .run[aria-pressed="true"] { background: var(--noir); color: var(--blanc); }
.run:hover svg, .run[aria-pressed="true"] svg { fill: var(--or); }
.run:focus-visible { outline-color: var(--or-d); }

/* Pied de page : une ligne de mentions, une de crédits */
.ft { padding-block: 0 calc(32px + var(--bb)); font-size: 15px; line-height: 1.55; color: var(--c300); }
.ft::before { content: ""; display: block; height: 1px; margin-bottom: 28px; background: var(--c700); }
.ft p { max-width: 58ch; margin: 0 0 8px; }
.ft a { color: var(--k100); text-underline-offset: 4px; text-decoration-color: var(--c500); }
.ft-cr { font-size: 14px; }

@media (max-width: 899px) {
  :root { --bb: calc(64px + env(safe-area-inset-bottom)); }
  body { font-size: 17px; }
}
@media (max-width: 767px) {
  :root { --hd: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
