/* Couleurs reprises de l'application (Themes/Colors.xaml) : dégradé de marque bleu → indigo → violet, surfaces unies. */
:root {
  --brand: linear-gradient(90deg, #2563EB 0%, #4F46E5 50%, #9333EA 100%);
  --ink: #0F172A;
  --text: #1F2937;
  --muted: #4B5563;
  --accent: #2563EB;
  --accent-soft: #EFF6FF;
  --line: #E2E8F0;
  --surface: #FFFFFF;
  --page: #F8FAFC;
  --code: #EEF0F3;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: linear-gradient(90deg, #60A5FA 0%, #818CF8 50%, #C084FC 100%);
    --text: #E2E8F0;
    --muted: #94A3B8;
    --accent: #60A5FA;
    --accent-soft: #1E2A44;
    --line: #1E293B;
    --surface: #111827;
    --page: #0B1020;
    --code: #1E293B;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.65 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--page);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Barre du haut : unie, foncée, avec un filet au dégradé de marque */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: var(--ink);
  border-bottom: 3px solid transparent;
  border-image: var(--brand) 1;
}
.bar-inner, .foot-inner, .content { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 19px; letter-spacing: .2px; }
.brand:hover { text-decoration: none; }
.mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(90deg, #2563EB, #9333EA); color: #fff; font-size: 17px;
}
nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav a { color: #CBD5E1; padding: 6px 12px; border-radius: 8px; font-size: 15px; }
nav a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
nav a.lang { font-weight: 600; font-size: 13px; border: 1px solid #334155; }
nav a.cta { background: #2563EB; color: #fff; font-weight: 600; margin-left: 6px; }
nav a.cta:hover { background: #1D4ED8; }

.glow { height: 120px; margin-bottom: -120px; background: linear-gradient(180deg, rgba(129,140,248,.18), rgba(129,140,248,0)); }

/* Contenu */
.content { padding-top: 40px; padding-bottom: 56px; position: relative; }
.content h1 { font-size: 40px; line-height: 1.15; margin: 0 0 8px; color: var(--ink); letter-spacing: -.5px; }
@media (prefers-color-scheme: dark) { .content h1 { color: #fff; } }
.home .content h1 {
  font-size: 56px; letter-spacing: -1px;
  background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.home .content h1 + p { color: var(--muted); font-size: 14px; }
.home .content h1 + p + p { font-size: 19px; max-width: 760px; }
.content h2 {
  font-size: 26px; margin: 48px 0 14px; padding-bottom: 8px; color: var(--text);
  border-bottom: 2px solid var(--line);
}
.content h2::before { content: ""; display: inline-block; width: 6px; height: 22px; margin-right: 10px; vertical-align: -3px; border-radius: 3px; background: var(--brand); }
.content h3 { font-size: 19px; margin: 32px 0 10px; }
.content img {
  max-width: 100%; height: auto; display: block; margin: 20px auto;
  border-radius: 12px; border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
}
.content ul, .content ol { padding-left: 24px; }
.content li { margin: 4px 0; }
.content strong { color: inherit; }
code { font-family: "Cascadia Code", Consolas, monospace; font-size: .88em; background: var(--code); padding: 2px 6px; border-radius: 5px; }
pre { background: var(--code); padding: 14px 16px; border-radius: 10px; overflow-x: auto; }
pre code { padding: 0; background: none; }
blockquote { margin: 16px 0; padding: 10px 16px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; }

table { width: 100%; border-collapse: collapse; margin: 20px 0; background: var(--surface); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
th, td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--accent-soft); font-weight: 600; }
tr:last-child td { border-bottom: none; }
/* Tableau de captures de la page d'accueil (en-têtes vides) */
.home table { border: none; background: none; }
.home table thead { display: none; }
.home table td { border: none; width: 50%; text-align: center; color: var(--muted); font-size: 14px; }
.home table img { margin: 0 auto; }

footer { border-top: 1px solid var(--line); background: var(--surface); }
.foot-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; color: var(--muted); font-size: 14px; }

@media (max-width: 700px) {
  .home .content h1 { font-size: 40px; }
  .content h1 { font-size: 30px; }
  .home table td { display: block; width: 100%; }
}
