/* Pages légales d'une appli (onglets Conditions / Confidentialité). Couleurs de la marque fournies par la page (variables :root). */
:root { color-scheme: light; --surface: #ffffff; --radius: 18px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.65 Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-underline-offset: 3px; }
.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 16px; }

/* Barre du haut */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span { display: flex; flex-direction: column; line-height: 1.2; }
.brand b { font-weight: 800; font-size: 18px; letter-spacing: -0.2px; }
.brand small { color: var(--muted); font-size: 13px; font-weight: 600; }
.lang { font-weight: 700; font-size: 14px; text-decoration: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; color: var(--ink); }
.lang:hover { border-color: var(--primary); color: var(--primary); }

/* Bandeau */
.hero { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 36px 0 40px; }
.eyebrow { margin: 0 0 6px; font-weight: 700; font-size: 13px; letter-spacing: 0.6px; text-transform: uppercase; opacity: 0.85; }
.hero-title { margin: 0; font-weight: 800; font-size: 32px; line-height: 1.2; letter-spacing: -0.6px; }
.hero-sub { margin: 10px 0 0; font-size: 16.5px; opacity: 0.92; max-width: 560px; }

/* Les deux onglets */
main { padding-bottom: 40px; }
.tabbar { position: sticky; top: 64px; z-index: 5; background: var(--bg); padding: 14px 0 6px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px; box-shadow: 0 6px 24px rgba(15, 35, 62, 0.08); }
.tabs [role=tab] { display: block; text-align: center; padding: 12px 10px; border-radius: 999px; font-weight: 700; font-size: 15.5px; white-space: nowrap; color: var(--muted); text-decoration: none; transition: background-color 0.18s ease, color 0.18s ease; }
.tabs [role=tab]:hover { color: var(--ink); }
.tabs [role=tab][aria-selected=true] { background: var(--primary); color: #fff; }
.tabs [role=tab]:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* Document */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 20px; margin-top: 10px; }
.doc-title { font-weight: 800; font-size: 26px; line-height: 1.25; letter-spacing: -0.4px; margin: 0 0 6px; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.intro { font-size: 17px; }
.toc { border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; margin: 20px 0 8px; }
.toc summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.toc ol { margin: 0 0 12px; padding-left: 22px; columns: 2 260px; column-gap: 28px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.toc a { text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--primary); text-decoration: underline; }
.art { padding-top: 8px; scroll-margin-top: 140px; }
.art h2 { font-weight: 800; font-size: 19px; line-height: 1.35; margin: 26px 0 8px; }
.art h2 .n { color: var(--primary); }
.art p, .art li { overflow-wrap: anywhere; }
.art ul { padding-left: 22px; }
.art li { margin: 6px 0; }
.tbl { overflow-x: auto; margin: 10px 0 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { width: 38%; font-weight: 700; }
tr:first-child th, tr:first-child td { border-top: 1px solid var(--line); }
.note { border-left: 3px solid var(--primary); padding: 2px 0 2px 14px; margin: 14px 0; }
.back { margin-top: 26px; font-weight: 700; }
.totop { text-align: center; margin: 22px 0 0; }
.totop a { font-weight: 700; text-decoration: none; }

/* Bas de page */
.foot { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13.5px; padding: 22px 0 30px; }
.foot p { margin: 4px 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px !important; }
.foot-links a { font-weight: 700; font-size: 15px; }

@media (max-width: 600px) {
  .hero { padding: 28px 0 30px; }
  .hero-title { font-size: 26px; }
  .card { padding: 22px 16px 14px; border-radius: 16px; }
  .doc-title { font-size: 22px; }
  .tabs [role=tab] { font-size: 14px; padding: 11px 4px; letter-spacing: -0.1px; }
  th { width: 42%; }
  th, td { padding: 9px 8px; }
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tabs [role=tab] { transition: none; } }
