:root {
  --bg: #0d251f;
  --bg1: #12322a;
  --bg2: #091c17;
  --surface: rgba(28, 70, 57, 0.42);
  --border: rgba(243, 238, 226, 0.08);
  --gold: #c9a45c;
  --gold-text: #d4b475;
  --ink: #f3eee2;
  --muted: #a7b8ae;
  --subtle: #8ba096;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg1), var(--bg) 45%, var(--bg2)) fixed;
  color: var(--ink);
  font: 17px/1.65 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--gold-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
.wrap { max-width: 760px; margin: 0 auto; padding: 32px 22px 64px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 11px; }
.brand span { font-family: "Lora", Georgia, "Times New Roman", serif; font-size: 22px; letter-spacing: 0.3px; }
.lang { font-size: 14px; color: var(--muted); }
.lang a, .lang strong { padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; }
.lang strong { color: var(--bg); background: var(--gold); border-color: var(--gold); font-weight: 600; }
h1, h2, h3 { font-family: "Lora", Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.3; }
h1 { font-size: 34px; margin: 0 0 6px; }
h2 { font-size: 22px; margin: 40px 0 10px; color: var(--gold-text); }
h3 { font-size: 18px; margin: 24px 0 6px; }
.meta { color: var(--subtle); font-size: 15px; margin: 0 0 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 22px; margin: 18px 0; }
.card p:first-child { margin-top: 0; } .card p:last-child { margin-bottom: 0; }
ul { padding-left: 22px; } li { margin: 6px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--gold-text); font-weight: 600; }
.toc { columns: 2; column-gap: 28px; font-size: 15px; }
.toc li { break-inside: avoid; }
footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--subtle); font-size: 14px; }
footer a { color: var(--muted); }
/* Accueil */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 22px; }
.hero .logo { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 18px 60px rgba(201, 164, 92, 0.18), 0 6px 24px rgba(0, 0, 0, 0.35); }
.hero h1 { font-size: 46px; margin: 26px 0 4px; letter-spacing: 0.5px; }
.hero .ar { font-family: "Amiri", "Geeza Pro", "Times New Roman", serif; color: var(--gold-text); font-size: 22px; margin: 0 0 18px; }
.hero .tag { color: var(--muted); max-width: 460px; margin: 0 0 26px; }
.soon { display: inline-block; padding: 10px 20px; border-radius: 999px; border: 1px solid rgba(201, 164, 92, 0.45); background: rgba(201, 164, 92, 0.12); color: var(--gold-text); font-weight: 600; }
.soon-en { color: var(--subtle); font-size: 14px; margin-top: 8px; }
.hero nav { margin-top: 40px; font-size: 15px; color: var(--subtle); }
.hero nav a { margin: 0 8px; }
@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  .toc { columns: 1; }
  .hero h1 { font-size: 38px; }
  th, td { padding: 8px 4px; }
}
