/* Feuille de style des pages légales (mentions légales, confidentialité).
   Volontairement autonome et courte : ces pages n'ont pas besoin des 6 000
   lignes du portfolio, mais elles en reprennent l'identité. */

@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-VariableFont_opsz_wght.ttf') format('truetype-variations');
  font-weight: 100 1000; font-style: normal; font-display: swap;
}

:root {
  --bg:   #0A0A0A;
  --bg2:  rgba(22,22,27,.74);
  --t1:   #F4F4F5;
  --t2:   #B4B4BC;
  --t3:   #8C8C95;
  --acc:  #FFFFFF;
  --border:  rgba(255,255,255,.09);
  --border2: rgba(255,255,255,.16);
  --font:   'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-d: 'Space Grotesk', var(--font);
  --mono:   'JetBrains Mono', ui-monospace, monospace;
  --r-pill: 9999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--t2);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Fond : même nappe sombre que le portfolio, en plus discret */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(135% 105% at 50% -6%, #171719 0%, #0b0b0d 48%, #060607 100%);
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ── En-tête ── */
header {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  margin-bottom: 56px;
}
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  font-family: var(--font-d); font-size: 19px; font-weight: 700;
  color: var(--t1); text-decoration: none; letter-spacing: -.02em;
}
.back {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 700; letter-spacing: -.01em;
  color: #0A0A0A; background: var(--acc);
  padding: 10px 20px; border-radius: var(--r-pill); text-decoration: none;
  box-shadow: 0 2px 18px rgba(255,255,255,.18);
  transition: gap .2s ease, box-shadow .2s ease, transform .2s ease;
}
.back:hover { gap: 13px; box-shadow: 0 6px 26px rgba(255,255,255,.34); transform: translateY(-2px); }

/* ── Contenu ── */
main { padding-bottom: 90px; }

.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--t3);
  margin-bottom: 14px;
}
h1 {
  font-family: var(--font-d); font-size: clamp(32px, 6vw, 46px); font-weight: 700;
  color: var(--t1); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 18px;
}
.lede { font-size: 17px; color: var(--t2); margin-bottom: 12px; }
.updated { font-family: var(--mono); font-size: 12.5px; color: var(--t3); margin-bottom: 48px; }

h2 {
  font-family: var(--font-d); font-size: 22px; font-weight: 700;
  color: var(--t1); letter-spacing: -.02em; line-height: 1.25;
  margin: 44px 0 14px;
}
h2:first-of-type { margin-top: 0; }
h3 { font-size: 16px; font-weight: 700; color: var(--t1); margin: 22px 0 8px; }

p { font-size: 16px; margin-bottom: 14px; }
p strong, li strong { color: var(--t1); font-weight: 700; }

ul { list-style: none; margin: 0 0 16px; }
li { position: relative; font-size: 16px; padding-left: 20px; margin-bottom: 9px; }
li::before {
  content: ''; position: absolute; left: 2px; top: 11px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--t1);
  box-shadow: 0 0 8px rgba(255,255,255,.6);
}

a { color: var(--t1); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border2); }
a:hover { text-decoration-color: var(--t1); }

code {
  font-family: var(--mono); font-size: .87em;
  background: rgba(255,255,255,.08); border: 1px solid var(--border);
  padding: 2px 7px; border-radius: 6px; color: #cbd0d8;
  overflow-wrap: anywhere;
}

/* Encart mis en avant */
.card {
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.012));
  border: 1px solid var(--border2); border-radius: 14px;
  padding: 22px 24px; margin: 20px 0;
}
.card p:last-child, .card ul:last-child, .card li:last-child { margin-bottom: 0; }

/* Tableau clé / valeur */
.kv { width: 100%; border-collapse: collapse; margin: 16px 0 20px; }
.kv th, .kv td {
  text-align: left; vertical-align: top; padding: 11px 0;
  border-bottom: 1px solid var(--border); font-size: 15.5px;
}
.kv th { width: 190px; color: var(--t3); font-weight: 600; padding-right: 18px; }
.kv td { color: var(--t2); }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: none; }

/* ── Pied ── */
footer { border-top: 1px solid var(--border); padding: 26px 0; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.foot-copy { font-size: 14px; color: var(--t3); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { font-size: 14px; color: var(--t3); text-decoration: none; }
.foot-links a:hover { color: var(--t1); }

@media(max-width:560px) {
  header { margin-bottom: 40px; padding: 18px 0; }
  .kv th { width: auto; display: block; padding-bottom: 2px; border-bottom: none; }
  .kv td { display: block; padding-top: 0; }
  .kv tr { display: block; border-bottom: 1px solid var(--border); padding: 10px 0; }
  .kv th, .kv td { border-bottom: none; }
}

@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } .back { transition: none; } }
