/* Valeurs : DESIGN.md (§2 rôles de couleur, §4 typographie, §5 espacements, rayons, mouvement). Clair uniquement (§2.4). */

@font-face {
  font-family: "Young Serif";
  src: url("fonts/YoungSerif_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/Figtree_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/Figtree_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f5eee1;
  --surface: #fbf7ef;
  --surface-muted: #ebe1ce;
  --ink: #1f1a16;
  --ink-muted: #66594d;
  --line: #dccfb8;
  --line-strong: #92836f;
  --action: #1f1a16;
  --on-action: #fbf7ef;
  --focus: #245b8d;
  --urgent: #be3d28;
  --warning: #7f5208;
  --warning-soft: #f6e7be;

  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --text: "Figtree", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 1.25rem;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-overlay: 0 2px 6px rgba(31, 26, 22, 0.08), 0 12px 28px rgba(31, 26, 22, 0.14);
  --enter: cubic-bezier(0.23, 1, 0.32, 1);
  --fast: 150ms;
  --base: 200ms;
}
@media (min-width: 48rem) {
  :root { --gutter: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --fast: 0ms; --base: 0ms; }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--ink); color: var(--surface); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, dd, li { text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration-thickness: 2px; }
}
a, button { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), 70rem); margin-inline: auto; }
.skip { position: absolute; left: var(--gutter); top: -4rem; padding: 0.75rem 1rem; background: var(--action); color: var(--on-action); border-radius: var(--radius-md); z-index: 10; }
.skip:focus { top: 0.75rem; }

/* Champ à remplir avant publication : visible exprès, jamais caché. */
.todo { background: var(--warning-soft); color: var(--warning); padding: 0 0.25em; border-radius: 4px; font-weight: 600; }

/* En-tête */
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.wordmark { white-space: nowrap; font-family: var(--display); font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.01em; text-decoration: none; }

/* Page entière : le pied de page reste en bas, même sur une page courte. */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; display: grid; }

/* Accueil : le logo, l'accroche, une phrase. Rien d'autre avant le lancement (décision M2). */
.intro { display: grid; place-content: center; justify-items: center; gap: 1.5rem; padding-block: 4rem; text-align: center; }
.intro__logo { width: min(100%, 20rem); }
.intro__logo img { width: 100%; height: auto; }
.intro__tagline {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem); line-height: 1.2; letter-spacing: -0.012em;
  max-width: 20ch;
}
.intro__note { color: var(--ink-muted); }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); background: var(--surface-muted); padding-block: 2.5rem 3rem; font-size: 0.9375rem; }
.site-footer__in { display: grid; gap: 1.25rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; list-style: none; padding: 0; }
.site-footer__links li { display: flex; align-items: center; min-height: 44px; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__note { color: var(--ink-muted); font-size: 0.8125rem; }
a[aria-current="page"] { text-decoration-thickness: 2px; }

/* Pages légales */
.legal { padding-block: 2.5rem 5rem; }
.legal > * { max-width: 44rem; }
.legal h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); line-height: 1.15; letter-spacing: -0.012em; }
.legal__lead { margin-top: 1rem; font-size: 1.1875rem; }
.legal h2 { margin-top: 2.5rem; font-size: 1.0625rem; font-weight: 600; }
.legal p, .legal ul { margin-top: 0.75rem; }
.legal ul { padding-left: 1.25rem; display: grid; gap: 0.375rem; }
.legal__table { width: 100%; margin-top: 0.75rem; border-collapse: collapse; }
.legal__table th, .legal__table td { padding: 0.75rem 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal__table th { width: 38%; padding-right: 1rem; font-weight: 600; }
@media (max-width: 30rem) {
  .legal__table th, .legal__table td { display: block; width: auto; }
  .legal__table td { border-top: 0; padding-top: 0; }
}
