/* ============================================================
   ALOUNIKA — base.css
   Reset léger, règles typographiques globales, layout de section,
   utilitaires. Aucune couleur "en dur" : tout vient de tokens.css.
   ============================================================ */

/* ---- Reset léger ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  min-height: 100dvh;
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-cream);
  background: var(--c-night-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

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

/* ---- Titres : capitales dorées à dégradé ---- */
.title,
h1.title, h2.title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  line-height: 1.05;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* léger éclat doré pour décoller du fond */
  filter: drop-shadow(0 2px 18px rgba(217,169,75,.20));
}

/* En russe, Cinzel n'a pas de glyphes cyrilliques → Playfair Display. */
:lang(ru) .title { font-family: var(--font-display-cyr); }

/* ---- Sous-titres / taglines / citations ---- */
.subtitle, .tagline, .quote {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--c-cream);
}

/* ---- Layout de section : chaque "monde" occupe le viewport ---- */
main { display: block; }

.world {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  isolation: isolate; /* contexte d'empilement propre pour z-index internes */
}

/* Couche fond (fond CSS provisoire → plus tard <video>) */
.world-bg {
  position: absolute;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
}
.world-bg > video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Couche effets (chiffres flottants, constellations, particules) */
.world-fx {
  position: absolute;
  inset: 0;
  z-index: var(--z-bg-fx);
  pointer-events: none;
  overflow: hidden;
}

/* Couche contenu éditorial réel */
.world-content {
  position: relative;
  z-index: var(--z-content);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 12vh, 9rem) clamp(1.25rem, 6vw, 6rem) clamp(3rem, 8vh, 6rem);
}

/* ---- Voile de lisibilité sous les blocs de texte posés sur fond animé ---- */
.veil { position: relative; }
.veil::before {
  content: "";
  position: absolute;
  inset: -1rem -2rem;
  z-index: -1;
  background: var(--veil-text);
  pointer-events: none;
}

/* ---- Utilitaires ---- */
.container { width: min(100%, 1320px); margin-inline: auto; }
.stack > * + * { margin-top: var(--sp-4); }
.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;
}
.text-gold { color: var(--c-gold-400); }
.hidden { display: none !important; }

/* Séparateur : filet doré fin — étoile 4 branches — filet doré fin (discret). */
.star-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--c-gold-400);
  max-width: 26rem;
}
.star-divider::before,
.star-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,169,75,.55) 50%, transparent);
}
.star-divider__mark {
  font-size: .95rem;
  line-height: 1;
  color: var(--c-gold-400);
  filter: drop-shadow(0 0 5px rgba(217,169,75,.45));
}

/* ---- Responsive : le contenu respire moins fort en mobile ---- */
@media (max-width: 640px) {
  .world-content { justify-content: flex-start; padding-top: clamp(6rem, 16vh, 9rem); }
}
