/* DrAIssing — pages d'information (mentions légales, confidentialité, conditions d'utilisation).
   Mêmes couleurs et polices que le site ; thème sombre automatique. */
:root {
  --logo-filter: none;
  --violet: #5A48D8; --violet-deep: #4334C4; --teal: #17B3B0; --teal-deep: #0F8C8A;
  --ink: #1D1A38; --ink-2: #4A4768; --mute: #6F6C8C;
  --bg: #FFFFFF; --bg-tint: #F4F2FC; --bg-tint-2: #EAF7F6; --surface: #FFFFFF; --line: #E4E1F3;
  --focus: #17B3B0; --warn-bg: #FFF4D6; --warn-ink: #7A5200;
  --grad: linear-gradient(112deg, #5A48D8 0%, #4A5FD9 48%, #17B3B0 100%);
  --font-display: "Poppins", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --logo-filter: brightness(1.2) saturate(1.08);
    --violet: #9D90FF; --ink: #F1EFFA; --ink-2: #C7C3E0; --mute: #A5A2C2;
    --bg: #14122A; --bg-tint: #1C1938; --bg-tint-2: #16262B; --surface: #1E1B3A; --line: #322F55;
    --warn-bg: #3A2F12; --warn-ink: #F5D58A;
  }
}
:root[data-theme="dark"] {
  --logo-filter: brightness(1.2) saturate(1.08);
  --violet: #9D90FF; --ink: #F1EFFA; --ink-2: #C7C3E0; --mute: #A5A2C2;
  --bg: #14122A; --bg-tint: #1C1938; --bg-tint-2: #16262B; --surface: #1E1B3A; --line: #322F55;
  --warn-bg: #3A2F12; --warn-ink: #F5D58A;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--violet); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 30; }
.skip:focus { left: 16px; }

/* En-tête */
header.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: auto; filter: var(--logo-filter); }
.brand .mark { height: 36px; }
.brand .wordmark { height: 15px; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 10px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover { color: var(--violet); }
.nav-links .pill-btn { border: 2px solid var(--line); color: var(--ink); font-family: var(--font-display); }
.nav-links .pill-btn:hover { border-color: var(--violet); color: var(--violet); }
.nav-links .lang { display: inline-flex; align-items: center; padding: 8px 6px; transition: transform .15s ease; }
.nav-links .lang:hover { transform: translateY(-1px); }
.flag { display: block; width: 22px; height: auto; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(29, 26, 56, 0.16); }
.foot a.lang-foot { display: inline-flex; align-items: center; gap: 7px; }
.foot a.lang-foot .flag { width: 18px; }
@media (max-width: 520px) { .nav-links .hide-sm { display: none; } }

/* Contenu */
main { padding: clamp(28px, 6vw, 64px) 0 clamp(48px, 8vw, 96px); }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } }
.toc { position: sticky; top: 88px; font-size: 0.92rem; }
.toc h2 { font-family: var(--font-display); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); margin: 0 0 10px; font-weight: 600; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc li a:hover { color: var(--violet); border-left-color: var(--violet); }
@media (max-width: 900px) {
  .toc { position: static; background: var(--bg-tint); border-radius: var(--radius); padding: 16px 18px; }
  .toc ol { border-left: 0; columns: 2 200px; column-gap: 20px; }
  .toc li a { padding: 4px 0; margin: 0; border: 0; }
}
article { max-width: 72ch; min-width: 0; }
.eyebrow { font-family: var(--font-display); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-deep); margin: 0 0 8px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); margin: 0 0 10px; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin: 2.2em 0 0.6em; padding-top: 0.2em; }
h3 { font-size: 1.08rem; margin: 1.6em 0 0.4em; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin: 0.25em 0; }
.updated { color: var(--mute); font-size: 0.95rem; margin-bottom: 1.6em; }
.lead { font-size: 1.1rem; color: var(--ink-2); }
.card { background: var(--bg-tint); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 1.2em; }
.card > :last-child { margin-bottom: 0; }
.card.teal { background: var(--bg-tint-2); }
.card h3 { margin-top: 0; }
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 14px; height: 8px; border-left: 2.5px solid var(--teal-deep); border-bottom: 2.5px solid var(--teal-deep); transform: rotate(-45deg); }
dl.id { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 1.2em; }
dl.id dt { color: var(--mute); }
dl.id dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { dl.id { grid-template-columns: 1fr; gap: 0; } dl.id dd { margin-bottom: 8px; } }
.a-completer { background: var(--warn-bg); color: var(--warn-ink); padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.a-venir { color: var(--mute); font-style: italic; }
small, .small { font-size: 0.9rem; color: var(--mute); }

/* Tableaux (en cartes sur petit écran) */
.table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.95rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.table th { font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mute); }
.table td:first-child { font-weight: 600; color: var(--ink); }
.table td:first-child .small { font-weight: 400; }
.table td p { margin: 0 0 0.4em; }
.table td p:last-child { margin: 0; }
@media (max-width: 720px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { background: var(--bg-tint); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
  .table td { border: 0; padding: 4px 0; }
  .table td[data-l]::before { content: attr(data-l); display: block; font-family: var(--font-display); font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mute); margin-top: 6px; }
}

/* Pied de page */
footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--mute); font-size: 0.92rem; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--violet); }
.foot a[aria-current="page"] { color: var(--ink); font-weight: 600; }
@media print {
  header.top, .toc, footer { display: none; }
  .doc { display: block; }
  body { font-size: 12pt; }
  a { color: inherit; }
}
