/* ============================================================
   Pic'Nic — base : jetons de la charte, échelle d'espacement,
   remise à zéro, utilitaires.
   ============================================================ */

:root {
  /* Palette officielle Pic'Nic (planche logo, octobre 2026) — aucune autre teinte.
     Noir dominant, crème pour le logo et le texte sur noir.
     Vert profond : uniquement sur fonds clairs (7,6:1 sur crème), jamais sur noir. */
  --pn-black: #000000;   /* noir Pic'Nic */
  --pn-cream: #FAF5E9;   /* crème Pic'Nic : logo principal, texte sur noir, fond clair */
  --pn-green: #0F5A3A;   /* vert profond : titres et prix sur fond clair, aplats à texte blanc */
  --pn-white: #FFFFFF;   /* blanc : cartes sur fond crème, texte sur vert */
  --cream-light: var(--pn-cream);

  /* Seules dérivées autorisées : transparences des couleurs officielles */
  --text: var(--pn-black);
  --text-soft: rgba(0, 0, 0, .68);          /* descriptions sur fond clair */
  --line: rgba(0, 0, 0, .1);                /* filets sur fond clair */
  --line-light: rgba(250, 245, 233, .24);   /* filets sur vert ou noir */
  --cream-soft: rgba(250, 245, 233, .78);   /* texte secondaire sur vert ou noir */
  --focus: var(--pn-green);                 /* anneau de focus (crème sur fond sombre) */

  /* Échelle d'espacement unique (4 · 8 · 12 · 16 · 24 · 32 · 48 · 64) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  --radius: 16px;
  --radius-lg: 24px;
  --gutter: var(--s4);
  --container: 1180px;
  --nav-h: 53px;              /* barre des catégories : 44 + 2 × 4 + filet */

  /* Typographie : Archivo, une seule famille — repli Arial Black / Arial */
  --font: "Archivo", Arial, sans-serif;
  --font-title: "Archivo", "Arial Black", Arial, sans-serif;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--cream-light);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream-light);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
h1, h2, h3, h4, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

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

main:focus, #site:focus, [tabindex="-1"]:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 60;
  padding: var(--s3) var(--s4);
  border-radius: 999px;
  background: var(--pn-black);
  color: var(--pn-cream);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: var(--s3); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Trait : rappel des traits du logo (— STREET FOOD —), couleur du texte */
.trait {
  display: inline-block;
  flex: none;
  width: 22px;
  height: 5px;
  border-radius: 99px;
  background: currentColor;
}

@media (min-width: 760px) {
  :root { --gutter: var(--s5); }
}

/* Fonds sombres : focus crème */
.hero, .why, .site-footer, .restaurant__card, .action-bar, .dir, .picnic-intro { --focus: var(--pn-cream); }
