/* Socle : polices, jetons CMJN, typographie, en-tête, pied, boutons, bulles. Le mouvement vit dans motion.css. */

@font-face {
  font-family: "Bangers";
  src: url("/fonts/bangers-latin.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@property --reg {
  syntax: "<length>";
  inherits: true;
  initial-value: 3px;
}

:root {
  color-scheme: light;
  --ink: #000;
  --paper: #fff;
  --cyan: #00aeef;
  --magenta: #ec008c;
  --yellow: #fff200;
  --line: 4px;
  --line-thin: 3px;
  /* Le système visuel du Worker (edge/src/look.ts) : mêmes rayons, mêmes ombres douces, même tempo (look.test.ts). */
  --r1: 0.5rem;
  --r2: 1rem;
  --r3: 1.5rem;
  --pill: 999px;
  --shadow-1: 0 1px 2px rgb(22 22 26 / 0.06), 0 2px 8px rgb(22 22 26 / 0.08);
  --shadow-2: 0 2px 6px rgb(22 22 26 / 0.06), 0 12px 32px rgb(22 22 26 / 0.12);
  --shadow-3: 0 4px 12px rgb(22 22 26 / 0.08), 0 24px 56px rgb(22 22 26 / 0.18);
  --t: 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  --display: "Bangers", Impact, "Arial Narrow", sans-serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 3vw, 2rem);
  --max: 72rem;
  --out: cubic-bezier(0.2, 0.9, 0.3, 1);
  --slam: linear(0, 0.35 12%, 0.82 24%, 1.08 34%, 1.14 40%, 1.06 52%, 0.98 64%, 1.01 78%, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font: 400 1.0625rem/1.55 var(--text);
  color: var(--ink);
  background: var(--paper);
}

main { overflow-x: clip; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
p, li, figcaption { text-wrap: pretty; }

a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { background: var(--yellow); }

::selection { background: var(--yellow); color: var(--ink); }

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

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  font-weight: 700;
  background: var(--yellow);
  border: var(--line-thin) solid var(--ink);
  border-radius: var(--r1);
}
.skip:focus { top: 1rem; }

/* Décalage de repérage : la plaque noire ne tombe jamais pile sur le cyan et le magenta. */
.print {
  text-shadow:
    calc(var(--reg) * -1) calc(var(--reg) * -0.5) 0 var(--cyan),
    var(--reg) calc(var(--reg) * 0.6) 0 var(--magenta);
}

.display,
.section-title,
.hero-title {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size-adjust: cap-height from-font;
}

/* En-tête */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem var(--gutter);
  background: var(--paper);
  border-bottom: var(--line) solid var(--ink);
}

.logo {
  --reg: 2px;
  font: 400 clamp(1.7rem, 1.2rem + 2vw, 2.4rem) / 1 var(--display);
  letter-spacing: 0.04em;
  text-decoration: none;
}
.logo:hover { background: none; }

.header-nav { display: flex; align-items: center; gap: 1.25rem; }
.header-link { font-weight: 700; }

@media (max-width: 44rem) {
  .header-link { display: none; }
}

/* Boutons : pilule jaune tramée, contour noir, ombre douce qui s'élève au survol. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.55rem 1.5rem 0.45rem;
  font: 400 1.65rem / 1 var(--display);
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
  background: var(--yellow) radial-gradient(circle, rgb(0 0 0 / 0.14) 30%, transparent 33%) 0 0 / 8px 8px;
  border: var(--line-thin) solid var(--ink);
  border-radius: var(--pill);
  box-shadow: var(--shadow-2);
  cursor: pointer;
}
.btn:hover { background-color: var(--yellow); background-position: 4px 4px; translate: 0 -2px; box-shadow: var(--shadow-3); }
.btn:active { translate: 0 1px; box-shadow: var(--shadow-1); }
.btn[aria-disabled="true"] { cursor: progress; }
.btn-small { min-height: 2.75rem; padding-inline: 1.1rem; font-size: 1.3rem; box-shadow: var(--shadow-1); }
.btn-alt { background-color: var(--paper); }
.btn-alt:hover { background-color: var(--paper); }

/* Étoiles d'onomatopée : un seul symbole SVG, rempli selon le contexte. */
.burst,
.kapow,
.prix-burst { display: grid; place-items: center; }

.burst > svg,
.kapow > svg,
.prix-burst > svg {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: var(--burst-fill, var(--yellow));
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linejoin: round;
}

.burst > span,
.kapow > span {
  grid-area: 1 / 1;
  font: 400 var(--burst-size, 2.6rem) / 1 var(--display);
  letter-spacing: 0.04em;
  rotate: -8deg;
}

/* Bulles qui éclatent au clic (décoratives, hors de l'arbre d'accessibilité). */
.pop { cursor: pointer; user-select: none; -webkit-user-select: none; }

.onomato {
  position: absolute;
  z-index: 1;
  padding: 0.35em 0.55em 0.2em;
  font: 400 1.9rem / 1 var(--display);
  letter-spacing: 0.05em;
  background: var(--yellow);
  border: var(--line-thin) solid var(--ink);
  border-radius: 52% 44% 56% 42% / 56% 46% 52% 44%;
  box-shadow: var(--shadow-2);
  rotate: -8deg;
}

/* Trame qui suit le curseur : activée par motion.css et effects.js, jamais sur écran tactile. */
.trame { display: none; }

/* Pied de page */
.site-footer {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  padding: 2.5rem var(--gutter) 3rem;
  color: var(--paper);
  background: var(--ink);
}
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--ink); background: var(--yellow); }
.site-footer :focus-visible { outline-color: var(--yellow); }
.footer-logo { --reg: 2px; font: 400 2rem / 1 var(--display); letter-spacing: 0.04em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 0; list-style: none; }

/* Pages légales */
.legal {
  width: min(100% - 2 * var(--gutter), 44rem);
  margin: clamp(2rem, 6vw, 4rem) auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: var(--line) solid var(--ink);
  border-radius: var(--r3);
  box-shadow: var(--shadow-2);
}
.legal h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 3.8rem); line-height: 1; margin-bottom: 1rem; }
.legal p + p { margin-top: 0.75rem; }
.legal .todo { display: inline-block; padding: 0.2rem 0.6rem; font-weight: 700; background: var(--yellow); border: var(--line-thin) solid var(--ink); border-radius: var(--r1); }
