/* Ravine Chaude les Bains — tokens, fonts, reset. Palette and type come from the charte graphique. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces--EVu-Yn.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic-dOHmq81.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-300-ZrVH2EM.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400-heQdAz3.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500-AuPgurU.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-600-RV1hfMj.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700-5ePuYxR.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* charte: couleurs principales */
  --teal: #008397;
  --aqua: #69b2ad;
  --green: #a2c037;
  --sun: #e5c21c;
  /* charte: couleurs secondaires */
  --orange: #d9803b;
  --berry: #bd4f63;
  --forest: #004245;
  --mist: #ededed;

  /* working tokens derived from the charte */
  --field: #00768a;            /* teal surface that holds white body-size text (AA) */
  --field-deep: #005a6b;
  --link: #006b7b;             /* teal for text on light grounds (AA) */
  --ground: #f3f8f7;           /* aqua-tinted white */
  --surface: #ffffff;
  --ink: #06393c;
  --ink-soft: #3f6264;         /* AA on ground */
  --line: #d3e2e0;
  --line-soft: #e4eeec;
  --aqua-wash: #e1f0ee;
  --green-wash: #eaf2cf;
  --sun-wash: #fbf1c4;
  --berry-wash: #f7e0e5;
  --berry-ink: #8a2f45;
  --orange-ink: #8f4c12;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 1px 2px rgb(0 66 69 / 0.06), 0 8px 24px -8px rgb(0 66 69 / 0.14);
  --shadow-lift: 0 2px 4px rgb(0 66 69 / 0.08), 0 18px 40px -12px rgb(0 66 69 / 0.28);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --wrap: 76rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; scrollbar-color: var(--aqua) var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--link); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
:target { scroll-margin-top: 6rem; }

::selection { background: var(--sun); color: var(--forest); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
.on-light :focus-visible, main :focus-visible { outline-color: var(--field); }
.field :focus-visible, .field-deep :focus-visible { outline-color: var(--sun); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--aqua); border-radius: 99px; border: 3px solid var(--ground); }
input::placeholder, textarea::placeholder { color: #6d8788; opacity: 1; }
input, textarea, select { caret-color: var(--teal); accent-color: var(--field); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--sun); color: var(--forest);
  padding: 0.6rem 1rem; border-radius: 99px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.tnum { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
