/* GDA — pages légales. Même charte que la page de présentation : papier, encre, indigo. */
:root {
  --bg: #F2EEE6; --surface: #E9E3D8; --ink: #111117; --text2: #3B3A43; --muted: #625F6B;
  --accent: #3D48F5; --spot: #FF4B1F; --line: rgba(17, 17, 23, .16); --line2: rgba(17, 17, 23, .85);
  --display: "Anybody", "Arial Narrow", Impact, sans-serif;
  --body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1180px; --gut: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16.5px; line-height: 1.72; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 200; padding: 10px 16px; background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }

.top { position: sticky; top: 0; z-index: 60; background: rgba(242, 238, 230, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand__ic { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.brand .produit { font: 900 1.55rem/1 var(--display); font-stretch: 62%; letter-spacing: .02em; }
.brand .by { font: italic 500 .92rem/1 var(--body); color: var(--muted); margin-left: 2px; }
.brand .nv { height: 24px; width: auto; }
.brand .studio { font: 600 10.5px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.back { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.back:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
@media (max-width: 820px) { .brand .studio, .brand .by, .brand .nv { display: none; } }
@media (max-width: 520px) { .back .long { display: none; } }

.hero { position: relative; padding-block: clamp(52px, 9vh, 96px) clamp(28px, 5vh, 48px); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 600 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text2); }
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--spot); }
.hero h1 { font-family: var(--display); font-weight: 900; font-stretch: 58%; text-transform: uppercase; font-size: clamp(2.8rem, 7.4vw, 5.6rem); line-height: .88; margin-top: 18px; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 22px; font: 500 11.5px/1.5 var(--mono); letter-spacing: .04em; color: var(--muted); }
.meta .print { font: inherit; color: var(--accent); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.intro { margin-top: 18px; max-width: 64ch; color: var(--text2); font-size: clamp(16.5px, 1.6vw, 18.5px); }

.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: 64px; }
.toc { position: sticky; top: 90px; max-height: calc(100vh - 116px); overflow: auto; padding-right: 6px; }
.toc summary { list-style: none; cursor: pointer; font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text2); margin-bottom: 14px; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; }
.toc a { display: flex; gap: 10px; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.4; text-decoration: none; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); border-left-color: var(--accent); }
.toc .n { color: var(--accent); min-width: 1.5em; font-variant-numeric: tabular-nums; font-weight: 700; }

.doc { min-width: 0; max-width: 800px; }
.doc section { margin-bottom: 52px; scroll-margin-top: 90px; }
.doc section > * + * { margin-top: 14px; }
.doc h2 { display: flex; gap: 14px; align-items: baseline; margin-bottom: 18px; font-family: var(--display); font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(1.7rem, 2.8vw, 2.2rem); line-height: .95; }
.doc h2 .n { color: var(--accent); min-width: 1.2em; }
.doc h3 { margin-top: 28px !important; font: 700 17px/1.35 var(--body); }
.doc p, .doc li, .doc dd, .doc td { color: var(--text2); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--accent); }
.doc strong { color: var(--ink); font-weight: 700; }
.doc a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc a:hover { color: var(--ink); }
.bref { margin-bottom: 52px; padding: 26px 28px; border: 2px solid var(--ink); border-radius: 18px; background: var(--surface); box-shadow: 7px 7px 0 var(--accent); }
.bref h2 { display: block; margin-bottom: 0; }
.bref h2 em { font-style: normal; color: var(--accent); }
.bref > * + * { margin-top: 12px; }
.bref ul { padding-left: 20px; }
.bref li { color: var(--text2); }
.bref li + li { margin-top: 8px; }
.note { font-size: 14px; color: var(--muted) !important; }
.tbl { overflow-x: auto; border: 2px solid var(--ink); border-radius: 14px; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; min-width: 640px; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { color: var(--ink); font: 700 12px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; background: var(--surface); }
tbody th { color: var(--ink); font-weight: 700; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
.fiche { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; }
.fiche dt, .fiche dd { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.fiche dt { color: var(--muted); font-size: 14px; background: var(--surface); }
.fiche dd { color: var(--ink); }
.fiche dt:last-of-type, .fiche dd:last-of-type { border-bottom: 0; }
address.bloc { font-style: normal; border-left: 4px solid var(--accent); padding: 4px 0 4px 16px; color: var(--text2); }
address.bloc strong { display: block; color: var(--ink); }
.encadre { padding: 20px 22px; border: 2px solid var(--ink); border-radius: 14px; background: var(--surface); }
.encadre > * + * { margin-top: 10px; }

.docs { padding-bottom: 88px; }
.docs-t { font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text2); margin-bottom: 16px; }
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; list-style: none; }
.docs-grid a { display: block; height: 100%; padding: 18px 20px; border: 2px solid var(--ink); border-radius: 16px; background: var(--bg); text-decoration: none; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.docs-grid a:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); }
.docs-grid a[aria-current="page"] { border-color: var(--accent); box-shadow: 5px 5px 0 var(--accent); }
.docs-grid .k { display: block; font: 600 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.docs-grid .l { display: block; margin-top: 8px; color: var(--ink); font-weight: 700; line-height: 1.35; }

.pied { background: var(--ink); color: #B4B2C2; padding: 44px 0 52px; text-align: center; font-size: 14.5px; }
.pied ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; list-style: none; margin-bottom: 16px; }
.pied a { color: #EDEAF2; text-decoration: none; }
.pied a:hover { color: #7E93FF; }

@media (min-width: 921px) { .toc summary { pointer-events: none; } }
@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; border: 2px solid var(--ink); border-radius: 14px; padding: 18px 20px; }
  .toc summary { display: flex; justify-content: space-between; align-items: center; }
  .toc summary::after { content: "+"; font: 900 20px/1 var(--display); }
  .toc[open] summary::after { content: "−"; }
  .toc:not([open]) summary { margin-bottom: 0; }
}
@media (max-width: 600px) {
  .fiche { grid-template-columns: 1fr; }
  .fiche dt { border-bottom: 0; padding-bottom: 0; }
  .bref { padding: 22px 20px; box-shadow: 5px 5px 0 var(--accent); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
@media print {
  body { background: #fff !important; color: #000; font-size: 11pt; }
  .top, .toc, .docs, .pied, .skip, .meta .print { display: none !important; }
  .layout { display: block; }
  .hero { padding: 0 0 12pt; }
  .doc { max-width: none; }
  .doc p, .doc li, .doc td, .doc dd, .intro, .bref li { color: #000 !important; }
  h1, h2, h3, .doc strong { color: #000 !important; }
  .doc a { color: #000; }
  .bref, .encadre, .tbl, .fiche { border-color: #999; background: none; box-shadow: none; }
  h2, h3 { break-after: avoid; }
}
