/* Guide pages (/logiciel-dlp/, /guides/...): same palette and type as the home page, light theme, no script. */
:root { --bg: #F3F5F9; --surface: #FFFFFF; --surface-2: #EEF2F7; --fg: #0F172A; --fg-muted: #475569; --border: #E2E8F0; --border-strong: #CBD5E1;
  --primary: #1E40AF; --primary-hover: #1E3A8A; --primary-soft: #DBEAFE; --primary-ink: #1E3A8A; --hero-bg: #0F172A; --hero-muted: #CBD5E1; --hero-border: #334155;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 2px 10px rgba(15, 23, 42, 0.05);
  --font-sans: Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", "JetBrains Mono", Consolas, "SF Mono", Menlo, monospace; color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

/* Header */
.site-head { background: var(--hero-bg); color: #F8FAFC; border-bottom: 1px solid var(--hero-border); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.site-head a:focus-visible { outline-color: #93C5FD; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #2563EB, #1E40AF); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 20px; height: 20px; fill: none; stroke: #F8FAFC; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { font-weight: 800; font-size: 1.15rem; }
.brand-tag { font-size: 0.85rem; color: #94A3B8; border-left: 1px solid var(--hero-border); padding-left: 12px; }
.head-links { display: flex; align-items: center; gap: 20px; }
.head-links a { color: var(--hero-muted); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.head-links a:hover { color: #F8FAFC; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--primary); color: #FFFFFF; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-light { background: var(--surface); color: var(--fg); border-color: var(--border-strong); }
.btn-light:hover { border-color: var(--primary); color: var(--primary); }
.head-links .btn-primary { color: #FFFFFF; min-height: 40px; padding: 8px 16px; }
.head-links a { white-space: nowrap; }
.head-links .lang-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 8px; font-size: 0.8rem; letter-spacing: 0.04em; border: 1px solid var(--hero-border); border-radius: 8px; }
.head-links .lang-switch:hover { border-color: var(--hero-muted); }
@media (max-width: 960px) { .brand-tag { display: none; } }
@media (max-width: 720px) { .brand-tag, .head-links .hide-sm { display: none; } }
@media (max-width: 420px) { .head-links { gap: 8px; } .head-links .btn-primary { padding: 8px 12px; font-size: 0.9rem; } }
@media (max-width: 400px) { .site-head .brand-name { display: none; } }

/* Article */
.crumbs { font-size: 0.9rem; color: var(--fg-muted); padding-block: 18px 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--border-strong); }
.article { max-width: 780px; margin-inline: auto; padding-block: clamp(24px, 5vw, 48px) clamp(48px, 8vw, 88px); }
.eyebrow { margin: 0; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); }
h1 { margin: 12px 0 16px; font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
h2 { margin: 48px 0 14px; font-size: clamp(1.45rem, 2.6vw, 1.8rem); line-height: 1.25; letter-spacing: -0.015em; text-wrap: balance; }
h3 { margin: 28px 0 8px; font-size: 1.15rem; line-height: 1.35; }
p, ul, ol { margin: 0 0 16px; }
li { margin-bottom: 8px; }
.lead { font-size: 1.15rem; color: var(--fg-muted); }
.meta { font-size: 0.9rem; color: var(--fg-muted); margin-bottom: 28px; }
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 12px; padding: 20px 24px; margin: 24px 0; box-shadow: var(--shadow); }
.callout > :last-child { margin-bottom: 0; }
.callout-title { font-weight: 800; margin-bottom: 8px; }
.toc { background: var(--surface-2); border-radius: 12px; padding: 18px 24px; margin: 24px 0 8px; }
.toc ol { margin: 0; padding-left: 22px; columns: 2 240px; column-gap: 32px; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
.steps li { margin-bottom: 12px; }
.table-wrap { overflow-x: auto; margin: 20px 0 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; }
caption { text-align: left; padding: 14px 16px 0; font-weight: 700; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--border); }
thead th { background: var(--surface-2); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg-muted); }
tbody th { font-weight: 700; min-width: 150px; }
tbody tr:last-child > * { border-bottom: 0; }
.faq { display: grid; gap: 14px; }
.faq > div { min-width: 0; overflow-wrap: anywhere; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; }
.faq h3 { margin-top: 0; }
.faq p { margin: 0; color: var(--fg-muted); }
.cta { background: var(--hero-bg); color: #F8FAFC; border-radius: 16px; padding: clamp(22px, 4vw, 32px); margin: 32px 0; }
.cta h2 { margin-top: 0; color: #F8FAFC; }
.cta p { color: var(--hero-muted); }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.cta a:focus-visible { outline-color: #93C5FD; }
.sources { font-size: 0.92rem; color: var(--fg-muted); }
.callout.warn { border-left-color: #B45309; }

/* Dashboard captures and other figures */
.figure { margin: 28px 0; }
.figure img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.figure figcaption { margin-top: 10px; font-size: 0.9rem; line-height: 1.55; color: var(--fg-muted); }

/* Commands and logs */
code { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface-2); border-radius: 6px; padding: 0.1em 0.35em; overflow-wrap: anywhere; }
pre { font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.6; background: var(--hero-bg); color: #E2E8F0; border-radius: 12px; padding: 16px 20px; margin: 0 0 20px; overflow-x: auto; }
pre code { background: none; border-radius: 0; padding: 0; font-size: inherit; color: inherit; overflow-wrap: normal; }

/* Printable checklists */
.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px; border: 2px solid var(--border-strong); border-radius: 5px; background: var(--surface); }

/* Key figures */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 20px 0 28px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.kpi-num { margin: 0; font-size: 1.9rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--primary-ink); }
.kpi-text { margin: 6px 0 0; font-size: 0.95rem; line-height: 1.5; }
.kpi-src { margin: 8px 0 0; font-size: 0.82rem; line-height: 1.45; color: var(--fg-muted); }

/* Glossary */
.terms dt { margin-top: 22px; font-weight: 800; }
.terms dd { margin: 4px 0 0; }

/* Related guides and the /guides/ index */
.related { background: var(--surface-2); border-radius: 12px; padding: 18px 24px; margin: 32px 0; }
.related h2 { margin-top: 0; font-size: 1.2rem; }
.related ul { margin: 0; padding-left: 20px; }
.guide-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.guide-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; box-shadow: var(--shadow); margin: 0; }
.guide-card h3 { margin: 0 0 6px; }
.guide-card h3 a { text-decoration: none; }
.guide-card h3 a:hover { text-decoration: underline; }
.guide-card p { margin: 0; color: var(--fg-muted); font-size: 0.97rem; }
.guide-card .kind { display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); }
.site-foot { border-top: 1px solid var(--border); padding-block: 24px; color: var(--fg-muted); font-size: 0.9rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 640px) { table { min-width: 620px; } tbody th { min-width: 130px; } }

/* Printing a guide (the departure checklist in particular): the article only */
@media print {
  .site-head, .site-foot, .crumbs, .toc, .cta, .related, .no-print { display: none !important; }
  body { background: #FFFFFF; font-size: 11pt; line-height: 1.5; }
  .article { max-width: none; padding: 0; }
  a { color: inherit; text-decoration: none; }
  .callout, .faq > div, .table-wrap, .guide-card, .figure img { box-shadow: none; }
  pre { background: #F1F5F9; color: #0F172A; white-space: pre-wrap; }
  h2, h3 { break-after: avoid; }
  li, tr, .faq > div { break-inside: avoid; }
}
