/* David Betka — variables de charte (cadrage du 6 décembre 2026) */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Karla";
  src: url("../fonts/karla-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Couleurs */
  --c-bg: #111111;            /* fond principal, charbon */
  --c-surface: #1d1d1d;       /* surface secondaire sombre */
  --c-ivory: #f3f0e9;         /* sections de lecture */
  --c-accent: #c9252c;        /* actions et états actifs */
  --c-accent-strong: #a81e24; /* survol du bouton principal */

  --c-on-dark: #f3f0e9;
  --c-on-dark-2: #b9b5af;
  --c-on-light: #171717;
  --c-on-light-2: #57534f;

  --c-line-dark: rgba(243, 240, 233, 0.16);
  --c-line-light: rgba(23, 23, 23, 0.16);

  /* Typographie */
  --f-title: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-text: "Karla", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --fs-body: 1.0625rem;                                   /* 17 px */
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;
  --fs-h1: clamp(2.5rem, 1.2rem + 5.6vw, 5.5rem);          /* 40 → 88 px */
  --fs-h2: clamp(1.75rem, 1.1rem + 2.2vw, 3rem);           /* 28 → 48 px */
  --fs-h3: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  --lh-body: 1.6;

  /* Espacements */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section-y: clamp(3rem, 2rem + 5vw, 6.75rem);           /* 48 → 108 px */
  --gap: clamp(1.25rem, 3vw, 3rem);
  --measure: 64ch;

  /* Formes */
  --radius: 2px;
  --header-h: 4.5rem;
  --tap: 2.75rem;                                          /* 44 px */

  /* Mouvement */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 180ms;
  --t-reveal: 520ms;
}

@media (min-width: 1024px) {
  :root {
    --fs-body: 1.125rem; /* 18 px */
  }
}
