/* ============================================================================
   BASE — page « menu imprimé » : papier blanc, balayage rouge en coin,
   typo condensée noire, accents rouges.
   ========================================================================== */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; background: var(--kf-paper); }

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  /* Surtout pas de fond sur body : il peindrait par-dessus le ::before fixe
     (le balayage rouge). Le blanc du papier est porté par html. */
  background: transparent;
}

/* ---- Balayage rouge du coin haut-gauche, comme sur chaque page du menu.
   Absolu (et non fixe) : il appartient au haut de la page et défile avec
   elle — un décor fixe se ferait découper net par chaque section à fond
   opaque pendant le scroll. Il fond vers zéro alpha bien avant son bord
   bas : aucune cassure possible. ---- */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* Hauteur en px (pas en vh) : le fondu est identique sur tous les écrans
     et s'éteint bien avant le bord bas du bloc. */
  height: 1150px;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(135deg,
      #f30d0d 0%,
      #fb1e14 5%,
      rgba(252, 45, 34, 0.72) 10%,
      rgba(253, 95, 78, 0.32) 16%,
      rgba(255, 140, 120, 0.10) 22%,
      rgba(255, 255, 255, 0) 28%);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 400;
  line-height: 1.08;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.2rem, 8vw, 3.5rem);
  margin-bottom: var(--space-8);
}

h2 {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

h3 { font-size: var(--font-size-xl); letter-spacing: 0.03em; }
h4 { font-size: var(--font-size-lg); letter-spacing: 0.03em; }

p { margin-bottom: var(--space-4); }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover { color: var(--kf-red); }

ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--kf-red); color: #fff; }

/* === FORMS === */
input, textarea, select, button { font-family: inherit; font-size: inherit; }

button {
  cursor: pointer;
  background: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
}

input, textarea, select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e3e3e3;
  border-radius: var(--radius-md);
  background-color: #fff;
  color: var(--color-text);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
}

input::placeholder, textarea::placeholder { color: #b8b8b8; }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--kf-red);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(var(--kf-red-rgb), 0.14);
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--kf-red) 50%), linear-gradient(135deg, var(--kf-red) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

select option { background: #fff; color: var(--color-text); }

label {
  display: block;
  font-family: var(--font-family-ui);
  font-weight: 400;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  color: var(--kf-ink);
}

input[type="radio"], input[type="checkbox"] { width: auto; }

/* === UTILITIES === */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--kf-muted); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
