/* Socle commun : polices auto-hébergées, jetons de couleur (thème clair de l'app), en-tête et pied de page. */
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('/fonts/barlow-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('/fonts/barlow-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('/fonts/barlow-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url('/fonts/barlow-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 500; font-display: swap; src: url('/fonts/barlow-condensed-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('/fonts/barlow-condensed-latin-600.woff2') format('woff2'); }

:root {
  --bg: oklch(0.965 0.005 250);
  --surface: oklch(0.995 0.002 250);
  --surface2: oklch(0.945 0.006 250);
  --border: oklch(0.87 0.008 250);
  --text: oklch(0.21 0.014 250);
  --muted: oklch(0.45 0.012 250);
  --ink: oklch(0.17 0.012 250);
  --on-ink: oklch(0.98 0.003 250);
  --red: oklch(0.56 0.21 27);
  --red-text: oklch(0.48 0.19 27);
  --red-soft: oklch(0.94 0.04 27);
  --logo-steel: oklch(0.47 0.015 250);
  --font-ui: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--text); font-family: var(--font-ui); font-size: 17px; line-height: 1.55; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 8px 12px; border-radius: var(--radius-sm); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm); font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; }
.btn--ink { background: var(--ink); color: var(--on-ink); }
.btn--ink:hover { background: oklch(0.28 0.014 250); }
.btn--line { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--line:hover { border-color: var(--muted); }

/* Bandeau et en-tête */
.ribbon { background: var(--ink); color: var(--on-ink); font-size: 14px; text-align: center; padding: 9px var(--gutter); }
.ribbon a { text-decoration: none; }
.ribbon b { color: oklch(0.78 0.13 27); margin-right: 8px; }
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in oklch, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top__in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -0.01em; }
.logo svg { width: 30px; height: 30px; }
.logo__word { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: 0.02em; }
.logo__word b { color: var(--red); font-weight: 600; }
.nav { display: flex; gap: 22px; font-weight: 500; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.top__end { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.top__end .login { font-weight: 600; font-size: 15px; text-decoration: none; }
.top__end .btn { min-height: 42px; font-size: 15px; padding: 0 16px; }
.menu-btn { display: none; margin-left: auto; min-height: 44px; min-width: 44px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font: inherit; font-weight: 600; padding: 0 14px; color: var(--text); }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .js .nav, .js .top__end { display: none; }
  .no-js .menu-btn { display: none; }
  .no-js .top__in { flex-wrap: wrap; padding: 10px 0; gap: 10px 18px; }
  .no-js .top__end { margin-left: 0; }
  .top.is-open { background: var(--surface); }
  .top.is-open .top__in { flex-wrap: wrap; padding-bottom: 16px; }
  .top.is-open .nav { display: flex; flex-direction: column; gap: 14px; width: 100%; order: 3; font-size: 17px; }
  .top.is-open .top__end { display: flex; width: 100%; order: 4; margin-left: 0; justify-content: space-between; }
}

/* Pied de page */
.foot { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.foot__in { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; gap: 20px; }

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