/* base.css : polices, couleurs, remise à zéro, textes.
   Pour changer l'apparence de tout le site, commence par les variables ci-dessous. */

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fredoka-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-latin-wght-normal.woff2") format("woff2");
}

:root {
  --ink: #2A2347;
  --cream: #FFF4E0;
  --peach: #FFE4C2;
  --white: #FFFFFF;
  --orange: #FF8A3D;
  --yellow: #F2B230;
  --mint: #DDF3E4;
  --sky: #D9E8FF;
  --pink: #FFDDE6;
  --sun: #FFE9A8;
  --muted: #4A4468;
  --hover: #8A3A00;
  --line: #6A6290;

  --font-head: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  --col: 1000px;                 /* largeur de la colonne sur ordinateur */
  --pad: clamp(16px, 4vw, 40px); /* marges latérales */
  --radius: 24px;
  --bw: 3px;                     /* épaisseur des contours */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--peach);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

a { color: var(--ink); }
a:hover { color: var(--hover); }
:focus-visible { outline: 3px solid var(--hover); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; }
h1 { font-weight: 700; font-size: clamp(34px, 6vw, 56px); }
h2 { font-weight: 700; font-size: clamp(28px, 4.5vw, 40px); }
h3 { font-weight: 600; font-size: 24px; line-height: 1.2; }
h3 a { text-decoration: none; }
p { margin: 0 0 1em; }

.small { font-size: 16px; }
.muted { color: var(--muted); }
.lead { font-size: 20px; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--yellow); border: var(--bw) solid var(--ink); padding: 10px 16px;
}
.skip:focus { left: 8px; top: 8px; }

/* Texte courant (pages simples et articles) */
.prose { max-width: 40em; }
.prose h2 { margin-top: 1.6em; font-size: clamp(24px, 3.5vw, 32px); }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

/* Repère visuel pour les textes à compléter : cherche "À COMPLÉTER" dans le code */
.todo { background: #FFF1A8; outline: 2px dashed #B8860B; padding: 0 4px; }
