/* TRIAGO — feuille de style partagee des pages de contenu (a-propos,
   conditions-utilisation, confidentialite). Accordee au theme de l'app. */

:root {
  --screen: #0C1413;
  --surface: #15201F;
  --border: #263633;
  --t1: #ECF4F2;
  --t2: #94A8A5;
  --t3: #5F7370;
  --accent: #2DD4BF;
  --accent-ink: #08201C;
  --max: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--screen);
  color: var(--t1);
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- En-tete ---- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(12, 20, 19, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--t1);
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px -6px var(--accent);
}
.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.back-link {
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  color: var(--t2);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 11px;
  transition: color 0.15s, border-color 0.15s;
}
.back-link:hover { color: var(--t1); border-color: var(--accent); }

/* ---- Contenu ---- */
main { padding: 40px 0 64px; }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.12;
  margin: 0 0 14px;
}
h2 {
  font-size: clamp(20px, 4vw, 25px);
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 40px 0 12px;
}
h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 26px 0 8px;
}

p, li { color: var(--t2); }
p { margin: 0 0 16px; }

.lead {
  font-size: clamp(17px, 3.4vw, 19px);
  color: var(--t1);
  font-weight: 500;
  margin-bottom: 28px;
}

ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }

strong { color: var(--t1); font-weight: 700; }

code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  color: var(--t1);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
}

a.inline { font-weight: 700; text-decoration: none; }
a.inline:hover { text-decoration: underline; }

.updated {
  font-size: 13px;
  color: var(--t3);
  font-weight: 600;
  margin-bottom: 32px;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }

.cta-row { margin: 36px 0 8px; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  padding: 13px 20px;
  border-radius: 13px;
  box-shadow: 0 12px 26px -12px var(--accent);
}

/* ---- Pied de page ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--t2);
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); }
.footer-meta { font-size: 12.5px; color: var(--t3); }

/* ---- Variante claire selon les preferences systeme ---- */
@media (prefers-color-scheme: light) {
  :root {
    --screen: #F1F5F6;
    --surface: #FFFFFF;
    --border: #E3EAEC;
    --t1: #0F2A2E;
    --t2: #5A6B6E;
    --t3: #94A6A8;
    --accent: #0D9488;
    --accent-ink: #FFFFFF;
  }
  .site-header { background: rgba(241, 245, 246, 0.85); }
}
