/* ==========================================================================
   Base — reset, typographie globale, utilitaires
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--sp-4);
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(var(--fs-2xl), 5vw, var(--fs-3xl)); }
h2 { font-size: clamp(var(--fs-xl), 3.6vw, var(--fs-2xl)); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--gold-deep); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--night); }

button { font-family: inherit; }

::selection { background: var(--gold-soft); color: var(--ink); }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

/* --- Layout ------------------------------------------------------------ */

.container {
  width: min(1160px, 100% - 2 * var(--sp-5));
  margin-inline: auto;
}

.container-wide { width: min(1400px, 100% - 2 * var(--sp-5)); margin-inline: auto; }

.section { padding-block: var(--sp-8); }
.section-alt { background: var(--paper-soft); }
.section-night { background: var(--night); color: #E9E4D8; }
.section-night h2, .section-night h3 { color: #F5F1E6; }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding-block: var(--sp-7); }
}

/* --- Petits utilitaires -------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
}

.lead { font-size: var(--fs-md); color: var(--ink-soft); max-width: 62ch; }

.text-center { text-align: center; }
.text-center .lead { margin-inline: auto; }
.text-center .eyebrow::before { display: none; }

.muted { color: var(--ink-soft); }
.small { font-size: var(--fs-sm); }

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

.divider-ornament {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-3); color: var(--gold);
  margin-block: var(--sp-6);
}
.divider-ornament::before, .divider-ornament::after {
  content: ""; height: 1px; width: min(120px, 20vw); background: var(--border);
}

/* --- Mouvement réduit ----------------------------------------------------- */

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