/* === BASE.CSS — Fare Ouverte === */

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

html {
  font-size: var(--size-base);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background-color: var(--accent); color: var(--bg-page); }

body {
  font-family: var(--font-body);
  font-size: var(--size-base);
  font-weight: 400;
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background-color: var(--bg-page);
  padding-top: 72px;
  overflow-x: hidden;
}

/* ── TYPOGRAPHIE — Cormorant Garamond pour titres + Karla pour corps ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-tight);
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

h1 { font-size: var(--size-xl5); letter-spacing: -0.025em; }
h2 { font-size: var(--size-xl4); }
h3 { font-size: var(--size-xl2); letter-spacing: -0.01em; }
h4 { font-size: var(--size-xl); letter-spacing: 0; }

em, i {
  font-style: italic;
}

[lang="tah"] {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: inherit;
}

p {
  font-size: var(--size-base);
  font-weight: 400;
  line-height: var(--lh-normal);
  color: var(--text-secondary);
  margin-bottom: var(--s2);
  max-width: 64ch;
}
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--accent-hover); text-decoration: underline; }

strong { font-weight: 700; color: var(--text-primary); }

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

blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: var(--lh-snug);
  color: var(--text-primary);
}

time { font-size: var(--size-xs); color: var(--text-tertiary); font-weight: 500; letter-spacing: 0.04em; }

/* ── FOCUS VISIBLE ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

/* ── UTILITAIRES ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

/* Animations staggered au load */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s var(--ease-out) both;
  }
  .fade-up:nth-child(1) { animation-delay: 0.1s; }
  .fade-up:nth-child(2) { animation-delay: 0.2s; }
  .fade-up:nth-child(3) { animation-delay: 0.3s; }
  .fade-up:nth-child(4) { animation-delay: 0.4s; }
  .fade-up:nth-child(5) { animation-delay: 0.5s; }

  @keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
}
