/* ============================================================
   BASE.CSS — Les Trois Gourmets
   Reset, typographie globale, accessibilité de base
   ============================================================ */

/* ── Reset ───────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--color-cream-muted);
  background-color: var(--color-cave);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

ul,
ol {
  list-style: none;
}

/* ── Typographie globale ─────────────────────────────────────── */

h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tighter);
  line-height: var(--leading-tight);
  color: var(--color-cream);
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  color: var(--color-cream);
}

h3, .h3 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  color: var(--color-cream);
}

h4, .h4 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-cream);
}

h5, h6 {
  font-family: var(--font-body);
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  color: var(--color-cream);
}

p {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--color-cream-muted);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-wine);
}

.lead {
  font-family: var(--font-body);
  font-size: var(--text-lead);
  font-weight: var(--weight-light);
  line-height: var(--leading-relaxed);
  color: var(--color-cream-muted);
}

.price {
  font-family: var(--font-display);
  font-size: var(--text-h4);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-normal);
  color: var(--color-wine);
}

strong {
  font-weight: var(--weight-semibold);
  color: var(--color-cream);
}

em {
  font-style: italic;
}

/* ── Skip link ───────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-wine);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  z-index: 200;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  transition: top var(--transition-fast);
  white-space: nowrap;
}
.skip-link:focus {
  top: var(--space-4);
}

/* ── Focus visible ───────────────────────────────────────────── */
:focus-visible {
  outline: var(--border-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) {
  outline: none;
}

/* ── Prefers-reduced-motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Sélection de texte ──────────────────────────────────────── */
::selection {
  background: var(--color-wine);
  color: #fff;
}

/* ── Scrollbar subtile (navigateurs Chromium) ────────────────── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-cave);
}
::-webkit-scrollbar-thumb {
  background: var(--color-cave-surface);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-wine);
}

/* ── Placeholder ─────────────────────────────────────────────── */
::placeholder {
  color: var(--color-cream-subtle);
  opacity: 1;
}
