/* =========================================================
   OnYvon — Base / Reset / Typographie globale
   ========================================================= */

@import url("fonts.css");

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  background: var(--c-black);
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--c-text);
  background: var(--c-black);
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

/* Bruit subtil sur fond (améliore la profondeur) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.6;
  mix-blend-mode: overlay;
}

/* Lumières radiales d'arrière-plan */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--grad-hero);
  opacity: 0.9;
}

main { position: relative; z-index: 1; }

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

svg { fill: currentColor; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

ul, ol { list-style: none; }

::selection {
  background: var(--c-gold);
  color: var(--c-black);
}

/* ——— Typographie ——— */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--c-text);
  text-wrap: balance;
}

h1 { font-size: var(--fs-5xl); letter-spacing: var(--ls-tighter); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

p { text-wrap: pretty; }

.serif { font-family: var(--font-serif); font-weight: 400; }
.mono { font-family: var(--font-mono); font-size: 0.9em; }

/* ——— Accessibilité ——— */
:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-4);
  background: var(--c-gold);
  color: var(--c-black);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-sm);
  z-index: var(--z-modal);
  font-weight: 600;
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: var(--s-4); }

/* ——— Layout utilitaires ——— */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-6);
}
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding-block: clamp(var(--s-16), 10vw, var(--s-32));
  position: relative;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--s-5);
}
.section-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--c-gold);
}

.section-title {
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tighter);
  margin-bottom: var(--s-5);
  max-width: 18ch;
}

.section-lead {
  font-size: var(--fs-lg);
  color: var(--c-text-dim);
  max-width: 62ch;
  margin-bottom: var(--s-12);
  line-height: var(--lh-normal);
}

.text-dim { color: var(--c-text-dim); }
.text-mute { color: var(--c-text-mute); }
.text-gold { color: var(--c-gold); }

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

.ai-text {
  background: var(--grad-ai);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

hr.divider {
  border: 0;
  height: 1px;
  background: var(--c-border);
  margin-block: var(--s-12);
}
