/* ovaova.fr/questions — même écrin nuit que je-t-aime (accents rose & or).
   Polices système uniquement (CSP: font-src 'self'). Tout est lisible sans JS. */

:root {
  --bg: #050810;
  --card: rgba(255, 255, 255, 0.028);
  --card-border: rgba(255, 255, 255, 0.07);
  --ink: #f3efe8;
  --ink-soft: #d7dce6;
  --muted: #98a1b3;
  --rose: #fb7185;
  --rose-soft: rgba(251, 113, 133, 0.35);
  --gold: #f5c97b;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua",
           "Yu Mincho", "Hiragino Mincho ProN", "Songti SC", "Noto Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --col: 820px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 50% -140px, rgba(251, 113, 133, 0.13), transparent 70%),
    radial-gradient(700px 420px at 85% 8%, rgba(245, 201, 123, 0.05), transparent 70%),
    radial-gradient(1.2px 1.2px at 21% 33%, rgba(255,255,255,0.35), transparent 100%),
    radial-gradient(1px 1px at 67% 12%, rgba(255,255,255,0.28), transparent 100%),
    radial-gradient(1.4px 1.4px at 82% 56%, rgba(255,255,255,0.22), transparent 100%),
    radial-gradient(1px 1px at 39% 74%, rgba(255,255,255,0.25), transparent 100%),
    radial-gradient(1.2px 1.2px at 9% 61%, rgba(255,255,255,0.2), transparent 100%),
    radial-gradient(1px 1px at 54% 45%, rgba(255,255,255,0.18), transparent 100%);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- En-tête ---------- */

header.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px clamp(16px, 4vw, 44px);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: 0.35em;
  font-size: 0.95rem;
  color: var(--ink);
  opacity: 0.92;
}
.wordmark img { display: block; height: 38px; width: auto; }
.wordmark:hover { color: var(--rose); opacity: 1; text-decoration: none; }

nav.lang {
  display: flex;
  gap: 4px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 3px;
}
nav.lang a {
  color: var(--muted);
  font-size: 0.85rem;
  padding: 5px 13px;
  border-radius: 999px;
}
nav.lang a:hover { color: var(--ink); text-decoration: none; }
nav.lang a[aria-current="page"] {
  color: var(--ink);
  background: rgba(251, 113, 133, 0.12);
}

/* ---------- Héros ---------- */

.hero {
  max-width: var(--col);
  margin: clamp(20px, 5vh, 56px) auto 0;
  padding: 0 20px;
  text-align: center;
}

.kicker {
  margin: 0 0 8px;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: linear-gradient(115deg, var(--rose) 20%, var(--gold) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 22px;
}

.hero .lead {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 680px;
  margin: 0 auto 30px;
}

nav.toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
nav.toc a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 7px 14px 7px 9px;
  background: var(--card);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.15s ease;
}
nav.toc a:hover {
  text-decoration: none;
  color: var(--ink);
  border-color: var(--rose-soft);
  background: rgba(251, 113, 133, 0.06);
  transform: translateY(-1px);
}
.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55em;
  height: 1.55em;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 0.85em;
  font-style: normal;
  color: #0b0f1a;
  background: linear-gradient(115deg, var(--rose), var(--gold));
}

/* ---------- Sections et questions ---------- */

main {
  max-width: var(--col);
  margin: clamp(36px, 6vh, 72px) auto 0;
  padding: 0 clamp(14px, 3vw, 24px);
}

section.block { margin: 0 0 clamp(40px, 7vh, 72px); }

section.block h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--card-border);
}
section.block h2 .num { font-size: 0.72em; }

article.qa {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 18px 22px 8px;
  margin: 0 0 12px;
  transition: border-color 0.25s ease;
}
article.qa:hover { border-color: rgba(251, 113, 133, 0.22); }
article.qa:target {
  border-color: var(--rose);
  box-shadow: 0 0 0 1px rgba(251, 113, 133, 0.25);
}

article.qa h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.22rem;
  line-height: 1.35;
  margin: 0 0 10px;
}
article.qa h3 a { color: var(--ink); }
article.qa h3 a::after {
  content: "#";
  margin-inline-start: 0.5em;
  color: var(--rose);
  font-size: 0.8em;
  opacity: 0;
  transition: opacity 0.2s ease;
}
article.qa h3 a:hover { text-decoration: none; color: var(--gold); }
article.qa h3 a:hover::after,
article.qa h3 a:focus-visible::after { opacity: 0.7; }

article.qa p {
  color: var(--ink-soft);
  font-size: 1rem;
  margin: 0 0 12px;
}

/* ---------- Appel et pied de page ---------- */

.cta {
  max-width: 680px;
  margin: clamp(30px, 6vh, 60px) auto 0;
  padding: clamp(26px, 5vw, 40px);
  text-align: center;
  border: 1px solid var(--rose-soft);
  border-radius: 22px;
  background: radial-gradient(420px 200px at 50% 0%, rgba(251, 113, 133, 0.09), transparent 75%);
}
.cta h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.35rem;
  margin: 0 0 22px;
}
a.cta-btn {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0b0f1a;
  background: linear-gradient(115deg, var(--rose), var(--gold));
  border-radius: 999px;
  padding: 12px 30px;
  transition: transform 0.15s ease, box-shadow 0.25s ease;
}
a.cta-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 34px rgba(251, 113, 133, 0.35);
}

footer.bottom {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 46px 20px 34px;
}
footer.bottom nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  max-width: var(--col);
  margin: 0 auto 14px;
}
footer.bottom a { color: var(--muted); }
footer.bottom a:hover { color: var(--rose); }
footer.bottom p { margin: 0; }

/* ---------- Toast ---------- */

#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 16px);
  background: #131a2b;
  color: var(--ink);
  border: 1px solid var(--rose-soft);
  border-radius: 999px;
  padding: 9px 22px;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 90;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Divers ---------- */

@media (max-width: 520px) {
  article.qa { padding: 16px 16px 6px; border-radius: 14px; }
  article.qa h3 { font-size: 1.12rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

::selection { background: rgba(251, 113, 133, 0.35); }
