/* Direction : papier crème, encre brune, terracotta. Apfel Grotezk partout, la graisse change selon l'usage.
   Ce fichier est chargé après le style de chaque page : il redéfinit les couleurs et adoucit les formes. */

/* Apfel Grotezk, Collletttivo (SIL Open Font License, voir fonts/OFL-Apfel-Grotezk.txt)
   Regular 400 : texte courant · Mittel 500 : menu, boutons, étiquettes · Fett 700 : petits titres · Satt 900 : grands titres
   Brukt (en pointillés, comme des mailles) : réservé au titre de Jacquared */
@font-face { font-family: "Apfel Grotezk"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ApfelGrotezk-Regular.woff2") format("woff2"); }
@font-face { font-family: "Apfel Grotezk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ApfelGrotezk-Mittel.woff2") format("woff2"); }
@font-face { font-family: "Apfel Grotezk"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/ApfelGrotezk-Fett.woff2") format("woff2"); }
@font-face { font-family: "Apfel Grotezk"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/ApfelGrotezk-Satt.woff2") format("woff2"); }
@font-face { font-family: "Darumadrop One"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/DarumadropOne-Regular.woff2") format("woff2"); }
@font-face { font-family: "Chicle"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/Chicle-Regular.woff2") format("woff2"); }
@font-face { font-family: "Apfel Grotezk Brukt"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ApfelGrotezk-Brukt.woff2") format("woff2"); }
:root {
  --bg: #f4efe6;
  --panel: #fffaf2;
  --fg: #2b2622;
  --muted: #7c7166;
  --line: #d9cfc1;
  --soft: #e7dccd;
  --rose: #f3d9cd;
  --rose-hover: #ecc7b8;
  --rose-line: #c4502b;
  --accent: #c4502b;
  --creme-fonce: #efe7da;
  --on-accent: #ffffff;
  --font-display: "Apfel Grotezk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Apfel Grotezk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rayon: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1f1a17; --panel: #2a2420; --fg: #f1e8dc; --muted: #ab9e90; --line: #43392f; --soft: #3a322b;
    --rose: #4a2f25; --rose-hover: #5b392c; --rose-line: #e0734d; --accent: #e0734d; --creme-fonce: #332b25;
    --on-accent: #1f1a17;
  }
}
:root[data-theme="dark"] {
  --bg: #1f1a17; --panel: #2a2420; --fg: #f1e8dc; --muted: #ab9e90; --line: #43392f; --soft: #3a322b;
  --rose: #4a2f25; --rose-hover: #5b392c; --rose-line: #e0734d; --accent: #e0734d; --creme-fonce: #332b25;
  --on-accent: #1f1a17;
}

body { font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.012em; }
h1 { line-height: 1.08; }
/* graisses selon l'usage */
h1, h2, h3, .pub .corps h3 { font-family: "Darumadrop One", var(--font-display); font-weight: 400; letter-spacing: 0; }
h1 { font-size: clamp(2.8rem, 8vw, 4.4rem); }
h2 { font-size: clamp(2.1rem, 5vw, 2.8rem); }
h3 { font-size: 1.45rem; }
h1 { line-height: 1.02; }
.etape b, .carte b, strong, b { font-weight: 700; }
.nav a.lien, .btn, button.btn, .etiquette, .bulle, .ligne b, .exp .quand, .meta span { font-weight: 500; }
h1.h1-mailles { font-family: "Apfel Grotezk Brukt", var(--font-display); font-weight: 400; letter-spacing: 0; }
a:not(.btn):not(.lien):not(.marque) { text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.etiquette { font-family: var(--font-body); font-weight: 500; font-size: .78rem; letter-spacing: .1em; color: var(--accent); }

/* navigation */
.nav .marque { font-family: var(--font-display); font-size: 1.15rem; }
.nav a.lien { font-family: var(--font-body); font-weight: 500; border: 0; border-radius: 8px; padding: 5px 11px; }
.nav a.lien:hover { background: var(--rose); border: 0; }

/* panneaux */
.cadre, .pub, .appli .capture {
  border: 1px solid var(--line); border-radius: var(--rayon); box-shadow: none;
}
.cadre { padding: 28px; }
.pub { overflow: hidden; }
.pub .couv { border-bottom: 1px solid var(--line); background: var(--creme-fonce); }
.pub .couv img { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; padding: 18px; }
.pub .corps h3 { font-size: 1.2rem; }
.hero .scene { background: var(--rose); border: 0; border-radius: var(--rayon); }
.bulle { border: 1px solid var(--line); border-radius: 10px; font-family: var(--font-body); font-weight: 500; }
.bulle::after { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.appli .capture { padding: 6px; background: var(--panel); }
.appli .capture img { border-radius: 10px; }

/* boutons */
.btn, button.btn {
  font-family: var(--font-body); font-weight: 500; font-size: .97rem; color: var(--on-accent);
  background: var(--accent); border: 1px solid var(--accent); border-radius: 10px; box-shadow: none; padding: 10px 18px;
}
.btn:hover { background: var(--accent); filter: brightness(1.07); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.calme { background: var(--panel); color: var(--fg); border-color: var(--line); box-shadow: none; }
.btn.calme:hover { background: var(--panel); border-color: var(--muted); filter: none; }
.btn[aria-disabled="true"], button.btn:disabled { background: var(--creme-fonce); border: 1px solid var(--line); color: var(--muted); box-shadow: none; filter: none; }

/* listes, étapes, puces */
.puces li::before { width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; box-shadow: none; background: var(--accent); }
.etape { background: var(--creme-fonce); border: 1px solid var(--line); border-radius: 10px; }
.etape b { font-family: var(--font-display); }
.tuto li::before { border: 0; border-radius: 50%; background: var(--rose); color: var(--accent); font-family: var(--font-display); }
.note { color: var(--muted); }
.ligne { border-top: 1px solid var(--line); }
.ligne b { font-family: var(--font-body); font-weight: 500; }
.conseil { background: var(--rose); border: 0; border-radius: 10px; }
.conseil::before { border-radius: 50%; box-shadow: none; width: 8px; height: 8px; margin-top: 9px; }
.meta span { border: 1px solid var(--line); border-radius: 999px; font-weight: 500; padding: 2px 12px; }
.a-completer { border: 1px dashed var(--accent); color: var(--accent); border-radius: 6px; }

/* livre en couverture des cartes */
.livre { width: 64px; height: 88px; border: 0; border-radius: 4px 8px 8px 4px; box-shadow: 4px 6px 0 rgba(43,38,34,.14); }
.livre::before { background: rgba(0,0,0,.18); opacity: 1; width: 2px; }

/* visionneuse du guide */
.scene-livre { background: var(--creme-fonce); border: 1px solid var(--line); border-radius: var(--rayon); }
.feuille img { border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 20px rgba(43,38,34,.12); }
.feuille a.zone:hover, .feuille a.zone:focus-visible { background: rgba(196, 80, 43, .12); outline: 2px solid var(--accent); }
.commandes .indic { font-family: var(--font-display); }

/* CV */
.exp .quand { border: 0; border-radius: 999px; background: var(--rose); color: var(--accent); padding: 1px 12px; font-weight: 500; font-family: var(--font-body); }
.cv-liste li { border-top: 1px solid var(--line); }
.cv-liste .annee { font-family: var(--font-display); }

footer { color: var(--muted); font-size: .88rem; }


/* menu : « anna tabutiaux » en Chicle (police SIL OFL) avec Magouille en pastille */
.nav .marque { font-family: "Darumadrop One", var(--font-display); font-weight: 400; font-size: 1.75rem; letter-spacing: 0; text-transform: lowercase; gap: 10px; line-height: 1; }
.nav .marque img { width: 44px; height: 44px; image-rendering: auto; }
