/*
 * Pages lisibles sans JavaScript (pré-rendu de l'accueil, pages légales, pages de contenu du portail).
 * Couleurs reprises des jetons de client/src/styles/index.css ; toutes les règles sont limitées à .pds.
 */
:root {
  --pds-bg: #01030a;
  --pds-panel: #050a14;
  --pds-edge: rgb(160 200 255 / 0.16);
  --pds-fg: #eaf2ff;
  --pds-muted: #b4c3dc;
  --pds-accent: #3ee6ff;
  --pds-fiber: #ffb454;
}

body.pds-body {
  margin: 0;
  background: var(--pds-bg);
  color: var(--pds-fg);
  font-family: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.pds {
  min-height: 100vh;
  background: var(--pds-bg);
  color: var(--pds-fg);
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.pds a { color: var(--pds-accent); text-underline-offset: 3px; }
.pds a:hover { color: #8ff1ff; }
.pds a:focus-visible { outline: 2px solid var(--pds-accent); outline-offset: 2px; border-radius: 4px; }

.pds-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 16px;
  border-bottom: 1px solid var(--pds-edge);
}
.pds-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--pds-fg) !important; font-weight: 650; text-decoration: none; }
.pds-brand img { border-radius: 8px; }
.pds-nav ul, .pds-footer ul, .pds-langs ul, .pds-breadcrumb ol, .pds-related ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pds-nav a { color: var(--pds-muted); text-decoration: none; font-size: 15px; }
.pds-nav a:hover { color: var(--pds-fg); }

.pds-cta {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--pds-accent);
  color: #01030a !important;
  font-weight: 650;
  text-decoration: none;
}
.pds-cta:hover { background: #8ff1ff; }

.pds-main { max-width: 1080px; margin: 0 auto; padding: 32px 16px 48px; }
.pds-article { max-width: 780px; }
.pds-main section { margin-top: 48px; }
/* Titres en Space Grotesk, texte en Inter : mêmes polices que le site React (server/src/prerender/fonts.js) */
.pds-main h1, .pds-main h2, .pds-main h3, .pds-brand, .pds-facts dd {
  font-family: "Space Grotesk Variable", "Space Grotesk", "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
.pds { font-family: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans SC", sans-serif; }
.pds-main h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: 8px 0 16px; letter-spacing: -0.02em; }
.pds-article h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.pds-main h2 { font-size: 1.6rem; line-height: 1.25; margin: 40px 0 12px; }
.pds-main h3 { font-size: 1.2rem; margin: 28px 0 8px; }
.pds-main p, .pds-main li { color: var(--pds-muted); }
.pds-main strong { color: var(--pds-fg); }
.pds-main code { font-family: "JetBrains Mono Variable", ui-monospace, monospace; font-size: 0.9em; background: var(--pds-panel); border: 1px solid var(--pds-edge); border-radius: 4px; padding: 1px 5px; }
.pds-main blockquote { margin: 24px 0; padding: 4px 20px; border-inline-start: 3px solid var(--pds-fiber); font-style: italic; }

.pds-eyebrow { color: var(--pds-fiber) !important; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }
.pds-accent { color: var(--pds-accent); }
.pds-lead { font-size: 1.15rem; color: var(--pds-fg) !important; max-width: 720px; }
.pds-meta { font-size: 14px; color: var(--pds-muted); }

.pds-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 32px 0 0; }
.pds-facts div { display: flex; flex-direction: column; }
.pds-facts dd { order: -1; margin: 0; font-size: 1.6rem; font-weight: 700; color: var(--pds-fg); }
.pds-facts dt { font-size: 14px; color: var(--pds-muted); }

.pds-card, .pds-children > li {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--pds-edge);
  border-radius: 14px;
  background: var(--pds-panel);
}
.pds-children { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.pds-children > li { margin-top: 0; }
.pds-children h2 { font-size: 1.2rem; margin: 0 0 6px; }

.pds-figure, .pds-shot, .pds-card figure { margin: 20px 0; }
.pds img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--pds-edge); }
.pds-brand img { border: 0; }
.pds-figure figcaption, .pds-shot figcaption { font-size: 14px; color: var(--pds-muted); margin-top: 8px; }

.pds-steps { padding-inline-start: 22px; }
.pds-worlds { padding-inline-start: 20px; }
.pds-faq-item h3 { color: var(--pds-fg); }
.pds-final { padding: 24px; border: 1px solid var(--pds-edge); border-radius: 16px; background: var(--pds-panel); }
.pds-final h2 { margin-top: 0; }
.pds-js-note { font-size: 14px; color: var(--pds-muted); margin-top: 32px; }

.pds-breadcrumb { font-size: 14px; margin-bottom: 8px; }
.pds-breadcrumb li:not(:last-child)::after { content: "›"; margin-inline-start: 18px; color: var(--pds-muted); }
[dir="rtl"] .pds-breadcrumb li:not(:last-child)::after { content: "‹"; }
.pds-breadcrumb [aria-current] { color: var(--pds-muted); }
.pds-related { margin-top: 48px; }
.pds-related ul { flex-direction: column; gap: 6px; }

.pds-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 16px 40px;
  border-top: 1px solid var(--pds-edge);
  display: grid;
  gap: 16px;
  font-size: 14px;
  color: var(--pds-muted);
}
.pds-footer p { margin: 0; }
.pds-footer a { color: var(--pds-muted); }
.pds-footer a:hover, .pds-langs a[aria-current] { color: var(--pds-fg); }
.pds-footer-small { font-size: 13px; }

@media (max-width: 640px) {
  .pds { font-size: 16px; }
  .pds-main { padding-top: 24px; }
  .pds-main h2 { font-size: 1.35rem; }
}
