/* Cycles Duingt — fondations : police, couleurs, remise à zéro, boutons, focus. */
@font-face { font-family: "Encode Sans Expanded"; src: url("fonts/encode-sans-expanded-300.woff2?v=3") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Encode Sans Expanded"; src: url("fonts/encode-sans-expanded-500.woff2?v=3") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Encode Sans Expanded"; src: url("fonts/encode-sans-expanded-700.woff2?v=3") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Encode Sans Expanded"; src: url("fonts/encode-sans-expanded-900.woff2?v=3") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --lac: #0B7A77;
  --profond: #075E5C;
  --blanc: #FFFFFF;
  --encre: #04302F;
  --rouge: #D8231A;
  --gris: #4A6362;
  /* Dérivés du turquoise, sur blanc seulement : profil de la règle, fond des cases, boutons inactifs. */
  --gris-profil: #C3D3D2;
  --lac-pale: #EAF1F0;
  --inactif-bord: #B9C8C7;
  --inactif: #8FA3A2;
  --marge: clamp(20px, 4vw, 56px);
  --entete-h: 64px;
  --haut: calc(36px + var(--entete-h));
  --sol: 40px;
  --infos: 80px;
  --courbe: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (max-width: 1023.98px) {
  /* Le ruban du bas ne colle jamais au bord du geste système : 8 px au moins, la zone sûre sinon. */
  :root { --entete-h: 56px; --sol: 12px; --infos: calc(78px + max(8px, env(safe-area-inset-bottom))); --marge: 16px; }
}
@media (max-width: 1023.98px) and (orientation: landscape) and (max-height: 480px) {
  :root { --entete-h: 48px; --sol: 0px; --infos: calc(52px + env(safe-area-inset-bottom)); }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--lac);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background: var(--lac);
  color: var(--blanc);
  font-family: "Encode Sans Expanded", "Arial", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 1023.98px) { body { font-size: 16px; } }

h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
legend { padding: 0; }
img, svg { display: block; max-width: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
b, strong { font-weight: 900; }
i { font-style: normal; }

.insec { white-space: nowrap; }

/* Unités collées aux chiffres géants : graisse 300, jamais sous 40 px. */
.unite { font-weight: 300; }

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--blanc); outline-offset: 3px; }
.sur-blanc :focus-visible, .sur-blanc:focus-visible, .plaque :focus-visible { outline-color: var(--encre); }

/* Lien d'évitement (C7). */
.evitement {
  position: fixed; z-index: 100; top: calc(var(--demobar-offset, 0px) + 8px); left: max(8px, env(safe-area-inset-left));
  min-height: 44px; padding: 12px 18px; background: var(--blanc); color: var(--encre); font-weight: 700; text-decoration: none;
  transform: translateY(calc(-100% - 60px));
}
.evitement:focus { transform: none; outline: 2px solid var(--encre); outline-offset: -5px; }
main:focus { outline: none; }

/* La borne : bloc blanc à angles droits coiffé d'une calotte rouge, comme une borne kilométrique. */
.borne-action {
  position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 112px; height: 44px; padding: 0 20px; background: var(--blanc); color: var(--encre);
  font-weight: 700; font-size: 15px; line-height: 1; text-decoration: none; white-space: nowrap;
}
/* La calotte coiffe le bloc par-dessus : le mot reste centré sur la ligne des liens. */
.borne-action::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 6px; background: var(--rouge); }
.entete .borne-action:focus-visible, .menu .borne-action:focus-visible { outline-color: var(--blanc); outline-offset: 5px; }

/* Boutons de la page : blanc plein sur turquoise, encre pleine sur blanc. Aucun arrondi. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px;
  border: 2px solid var(--blanc); background: var(--blanc); color: var(--encre); font-weight: 700; font-size: 16px;
  line-height: 1.1; text-decoration: none; border-radius: 0; transition: transform .1s;
}
.btn:active { transform: scale(.97); }
.btn--trait { background: transparent; color: var(--blanc); }
.btn--encre { border-color: var(--encre); background: var(--encre); color: var(--blanc); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
@media (hover: hover) {
  .btn:hover { background: var(--encre); border-color: var(--encre); color: var(--blanc); }
  .btn--encre:hover { background: var(--lac); border-color: var(--lac); }
  .borne-action:hover { background: var(--encre); color: var(--blanc); }
}
.fleche-g, .fleche-d { width: 22px; height: 14px; flex: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
