/* ==========================================================================
   base.css — Jetons de design, réinitialisation et typographie
   Pub Le Sainte-Élisabeth
   --------------------------------------------------------------------------
   Toutes les couleurs, polices et rayons du site sont définis ici.
   Pour changer une couleur partout sur le site, modifiez-la une seule fois.
   ========================================================================== */

:root {
  color-scheme: dark;   /* barres de défilement et contrôles natifs en thème sombre */
  /* Couleurs de fond (du plus foncé au plus clair) */
  --ink:      #14110e;
  --ink-2:    #1f1a15;
  --ink-3:    #2b241d;

  /* Couleurs de texte */
  --cream:    #f4ead8;
  --cream-2:  #e3d5bb;
  --muted:    #ab9c83;

  /* Couleurs de marque (reprises du logo) */
  --brass:    #d4a24c;   /* doré : boutons, accents */
  --brass-2:  #ecc06c;
  --green:    #2f461f;   /* vert du logo */
  --green-2:  #3d5a29;
  --ribbon:   #dcb48c;   /* beige du ruban du logo */

  /* Couleur événementielle (Halloween) */
  --pumpkin:  #ff7a1a;

  /* Lignes et surfaces translucides */
  --line:     rgba(244, 234, 216, .09);
  --line-2:   rgba(244, 234, 216, .2);
  --glass:    rgba(244, 234, 216, .06);

  /* Typographie */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Formes et espacements */
  --radius:    18px;
  --radius-sm: 12px;
  --wrap:      1180px;
  --gutter:    20px;
  --header-h:  76px;
  --shadow:    0 30px 60px rgba(0, 0, 0, .45);
}

/* --- Réinitialisation ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;   /* pas de grossissement auto en paysage (iPhone) */
  -webkit-tap-highlight-color: transparent;                  /* pas de flash gris au toucher */
}

body {
  overflow-x: clip;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
::selection { background: var(--brass); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }
[hidden] { display: none !important; }

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

/* --- Typographie --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -.01em;
  font-weight: 700;
  text-wrap: balance;          /* titres équilibrés : pas de mot orphelin sur la dernière ligne */
}
p, li, blockquote { text-wrap: pretty; }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--brass);
}

.lead { font-size: 1.12rem; color: var(--cream-2); }
.muted { color: var(--muted); }

/* Accessibilité : masquer visuellement sans masquer aux lecteurs d'écran */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* --- Icônes au trait (remplacent les émojis) ------------------------------ */
.icon { display: inline-block; flex-shrink: 0; vertical-align: -.18em; }

/* --- H1 « mots-clés + slogan » ---------------------------------------------
   Pour le référencement, la petite ligne dorée (ex. « Menu du bar · Bières,
   cocktails et whiskies ») fait partie du H1, suivie du grand slogan.
   Visuellement : identique à l'ancien sur-titre + titre. */
h1 > .eyebrow { display: block; font-family: var(--font-body); font-weight: 700; margin: 0; text-wrap: balance; }
h1 > .h1-main { display: block; margin-top: 12px; }
