/* Charte « Nuit marocaine » (18/10/2026) — source unique des valeurs du site ET du portail.
   Décrite dans docs/charte-nuit-marocaine.md (contrastes WCAG calculés). Le build copie ce fichier
   tel quel vers portal/static/tokens.css et compare les empreintes : ne jamais modifier la copie.
   Aucun hexadécimal ne doit apparaître ailleurs que dans ce fichier (tools/verifier-design.mjs). */
:root {
  color-scheme: dark;

  /* Fonds */
  --ink-950: #0d0b09;
  --ink-900: #15120e;
  --ink-800: #1d1914;
  --ink-700: #26211a;
  --line: #3a3127;
  --line-strong: #5a4c3c;

  /* Texte sur fond sombre */
  --sand-50: #f3ece0;
  --sand-300: #cbbfaa;
  --sand-500: #9c907c;

  /* Accents */
  --brass-400: #c9a45c;
  --brass-300: #dcc08a;
  --terra-400: #d27a57;
  --mint-400: #5fa384;
  --danger-400: #e8826f;
  --whatsapp: #1f9d55;

  /* Bande claire (une par page au plus) */
  --sand-100: #efe6d6;
  --ink-on-sand: #15120e;
  --sand-600: #6b6252;
  --brass-700: #7a5f2a;
  --terra-700: #8f3f24;

  /* Voiles photo (dégradés linéaires du hero, jamais radiaux) */
  --veil-strong: rgb(13 11 9 / .88);
  --veil-soft: rgb(13 11 9 / .35);
  --veil-none: rgb(13 11 9 / 0);
  --scrim: rgb(13 11 9 / .7);

  /* Typographie : 2 familles (Google Fonts, display=swap) */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-text: "IBM Plex Sans Arabic", system-ui, "Segoe UI", Roboto, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: clamp(2.25rem, 4.5vw, 3.5rem);
  --fs-hero: clamp(2.6rem, 6vw, 4.5rem);
  --lh-tight: 1.12;
  --lh-snug: 1.3;
  --lh-text: 1.65;
  --tracking-eyebrow: .14em;

  /* Espace (échelle 4/8) */
  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 4.5rem;
  --s-10: 6rem;
  --gutter: 1rem;
  --container: 76rem;
  --container-narrow: 46rem;
  --header-h: 4.5rem;
  --utility-h: 2.25rem;
  --tap: 2.75rem;

  /* Formes, ombres, mouvement */
  --r-1: 2px;
  --r-2: 4px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgb(0 0 0 / .4);
  --shadow-2: 0 12px 32px rgb(0 0 0 / .45);
  --t-fast: 150ms;
  --t-base: 200ms;
  --ease: cubic-bezier(.2, .6, .2, 1);
  --focus-ring: 2px solid var(--brass-400);

  /* Zellige à 8 pointes du logo (une fois par page, 4-6 % d'opacité) */
  --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23c9a45c' stroke-width='1'%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='7'/%3E%3C/g%3E%3C/svg%3E");
}

@media (min-width: 48rem) {
  :root { --gutter: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t-base: 0ms; }
}
