/* Spark · style 3.0 : noir pur, aura orange du bas, Inter + un mot en serif italique. */
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --black: #000000;
  --text: #FFFFFF;
  --text-soft: rgba(255, 255, 255, 0.72);
  --text-faint: rgba(255, 255, 255, 0.45);
  --stroke: rgba(255, 255, 255, 0.14);
  --cream: #FFECAC;
  --orange: #EB4A00;
  --red: #920000;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--black); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--black);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
.serif {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  letter-spacing: -0.01em;
}

/* Barre du haut */
.top {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1100px; margin: 0 auto; padding: 20px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { display: flex; align-items: center; gap: 8px; }
.top nav a, .lang button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px; text-decoration: none; color: var(--text-soft); font: 600 15px/1 "Inter", sans-serif;
}
.top nav a:hover { color: var(--cream); }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--stroke); }
.lang button { min-height: 38px; padding: 0 12px; border: 0; background: transparent; cursor: pointer; font-weight: 700; font-size: 13px; }
.lang button[aria-pressed="true"] { background: var(--cream); color: var(--black); }

/* Une langue à la fois */
html[lang="fr"] [data-lang="en"], html[lang="en"] [data-lang="fr"] { display: none !important; }

/* Cadre en verre givré */
.frosted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--stroke);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
