/* ═══════════════════════════════════════════════════════════════
   AGOGE — Pages légales (Charte V4.1 Warm Night)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #0a0a0c;
  --surface: #111114;
  --card: #161619;
  --elevated: #1c1c21;
  --hover: #252529;

  --text: #f1f5f9;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --muted-2: #475569;

  --orange: #f97316;
  --orange-2: #ea580c;
  --orange-rgb: 249, 115, 22;

  --emerald: #22c55e;
  --rose: #fb7185;
  --amber: #fbbf24;

  --border: rgba(255,255,255,.06);
  --border-2: rgba(255,255,255,.1);

  --grad-ember: linear-gradient(135deg, #fbbf24 0%, #f97316 50%, #dc2626 100%);
  --grad-orange: linear-gradient(135deg, #f97316, #ea580c);

  --ease: cubic-bezier(.22, 1, .36, 1);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --gutter: clamp(16px, 4vw, 32px);
  --max-w: 760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-2);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a {
  color: var(--orange);
  text-decoration: none;
  transition: opacity .2s var(--ease);
}
a:hover { opacity: .85; }
img, svg { display: block; max-width: 100%; height: auto; }

/* ───────── Nav ───────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 var(--gutter);
  background: rgba(10, 10, 12, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.nav-logo:hover { opacity: 1; }
.nav-logo-mark { width: 28px; height: 28px; }
.nav-logo-text {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 2px;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: var(--r-md);
  background: var(--grad-orange);
  color: #fff !important;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: -.005em;
  box-shadow: 0 4px 16px rgba(var(--orange-rgb), .25);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .2s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(var(--orange-rgb), .35);
  filter: brightness(1.05);
  opacity: 1;
}

/* ───────── Article (legal) ───────── */
.article.legal {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 110px var(--gutter) 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .78rem;
  color: var(--muted-2);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--muted-2); }
.breadcrumb a:hover { color: var(--orange); opacity: 1; }
.breadcrumb span[aria-current="page"] { color: var(--text-2); }

.article-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  opacity: .85;
  margin-bottom: 14px;
}

.article.legal h1 {
  font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -.025em;
  margin-bottom: 22px;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.meta-sep { color: var(--muted-2); }

/* ───────── Lead ───────── */
.lead {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 40px;
  padding: 22px 24px;
  background: var(--card);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

/* ───────── TOC ───────── */
.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  margin-bottom: 48px;
}
.toc-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.toc ol {
  list-style: none;
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
  position: relative;
  padding: 6px 0 6px 28px;
  font-size: .9rem;
}
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 7px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--muted-2);
  letter-spacing: 1px;
}
.toc a {
  color: var(--text-2);
  display: block;
  transition: color .15s var(--ease), padding-left .2s var(--ease);
}
.toc a:hover {
  color: var(--orange);
  opacity: 1;
  padding-left: 4px;
}

/* ───────── Headings ───────── */
.article.legal h2 {
  font-weight: 800;
  font-size: clamp(1.3rem, 3vw, 1.55rem);
  color: var(--text);
  line-height: 1.3;
  margin: 56px 0 16px;
  letter-spacing: -.015em;
  scroll-margin-top: 88px;
}
.article.legal h3 {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.35;
  margin: 28px 0 10px;
}

.article.legal p {
  margin-bottom: 16px;
  font-size: .95rem;
  line-height: 1.75;
  color: var(--text-2);
}
.article.legal strong { color: var(--text); font-weight: 700; }
.article.legal em { font-style: italic; color: var(--muted); }

/* ───────── Bullet lists ───────── */
.bullet-list {
  list-style: none;
  margin: 16px 0 24px;
  padding: 0;
}
.bullet-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: .94rem;
  line-height: 1.65;
}
.bullet-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* ───────── Info block (siège, hébergeur, etc.) ───────── */
.info-block {
  margin: 14px 0 22px;
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: .92rem;
  line-height: 1.6;
}
.info-block p {
  margin-bottom: 4px;
  color: var(--text-2);
}
.info-block p:last-child { margin-bottom: 0; }
.info-block strong { color: var(--text); }

/* ───────── Tables (finalités, sous-traitants) ───────── */
.finalites-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 26px;
  font-size: .88rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.finalites-table thead { background: var(--elevated); }
.finalites-table th,
.finalites-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
}
.finalites-table th {
  color: var(--text);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.finalites-table tbody tr:last-child td { border-bottom: none; }
.finalites-table td:first-child {
  color: var(--text-2);
  font-weight: 600;
}
.finalites-table strong { color: var(--text); }

/* ───────── Footer ───────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 36px var(--gutter) 28px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}
.footer-brand {
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 2.5px;
  color: var(--text);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
  font-size: .84rem;
}
.footer-nav a {
  color: var(--muted);
  transition: color .2s var(--ease);
}
.footer-nav a:hover { color: var(--orange); opacity: 1; }
.footer-meta {
  font-size: .78rem;
  color: var(--muted-2);
}

/* ───────── Reduce motion ───────── */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
