/* =========================================================================
   base.css — reset, jetons de design (couleurs, typo, espacements), primitives
   ========================================================================= */

:root {
  /* — Couleurs : nuit profonde + or champagne — */
  --ink-950: #05070E;
  --ink-900: #070A12;
  --ink-850: #0A0E1B;
  --ink-800: #0D1322;
  --ink-700: #131B30;
  --ink-600: #1B2440;
  --line:    rgba(233, 214, 168, .14);
  --line-2:  rgba(255, 255, 255, .07);

  --gold-200: #F8ECCE;
  --gold-300: #F0DCA9;
  --gold-400: #E2C176;
  --gold-500: #C9A24D;
  --gold-600: #A87F2C;

  --paper:      #F7F2E7;
  --paper-2:    #EFE7D6;
  --paper-ink:  #2B2519;
  --paper-mute: #6B6151;

  --text:      #EAECF4;
  --text-soft: #C3C8D8;
  --muted:     #8F97AE;

  --grad-gold: linear-gradient(115deg, var(--gold-300) 0%, var(--gold-500) 45%, var(--gold-200) 100%);
  --grad-halo: radial-gradient(60% 60% at 50% 0%, rgba(226,193,118,.18), transparent 70%);

  /* — Typographie — */
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-xs: .78rem;
  --fs-sm: .9rem;
  --fs-md: 1.02rem;
  --fs-lg: clamp(1.06rem, .98rem + .38vw, 1.22rem);
  --fs-h3: clamp(1.22rem, 1.1rem + .6vw, 1.5rem);
  --fs-h2: clamp(1.95rem, 1.4rem + 2.1vw, 3.2rem);
  --fs-h1: clamp(2.3rem, 1.5rem + 2.8vw, 4rem);

  /* — Rythme & formes — */
  --sp-1: .5rem;  --sp-2: .875rem; --sp-3: 1.25rem; --sp-4: 2rem;
  --sp-5: 3rem;   --sp-6: 4.5rem;  --sp-7: 7rem;
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --container: 1200px;
  --nav-h: 72px;

  --shadow-sm: 0 2px 10px rgba(0,0,0,.28);
  --shadow:    0 18px 50px -18px rgba(0,0,0,.65);
  --shadow-lg: 0 50px 110px -35px rgba(0,0,0,.85);
  --glow-gold: 0 0 0 1px rgba(226,193,118,.28), 0 18px 60px -20px rgba(201,162,77,.55);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 300;
  line-height: 1.72;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.012em;
  margin: 0 0 var(--sp-2);
  color: #fff;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }

p  { margin: 0 0 var(--sp-2); color: var(--text-soft); }
em { font-style: italic; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: 4px;
}

img, svg { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

/* Utilitaires ---------------------------------------------------------- */
.text-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.link-gold {
  color: var(--gold-300);
  border-bottom: 1px solid rgba(226,193,118,.35);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.link-gold:hover { color: var(--gold-200); border-color: var(--gold-300); }

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin: 0 0 var(--sp-2);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px; height: 1px;
  margin-right: .7em;
  vertical-align: middle;
  background: linear-gradient(90deg, transparent, var(--gold-500));
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: .75rem 1.25rem;
  background: var(--gold-400);
  color: var(--ink-900);
  font-weight: 500;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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