/* ==========================================================================
   Scorazone — pages simples (contact, CGU, confidentialité, suppression de
   compte, mentions légales).

   Chargé APRÈS home.css, qui porte déjà les polices auto-hébergées, les
   jetons de couleur des deux thèmes, l'en-tête et le pied de page : ces pages
   ont exactement la même allure que l'accueil, sans le scrollytelling.
   ========================================================================== */

:root {
  --card: #FAF7F3;
  --card-line: rgba(20, 16, 13, 0.08);
  --body-ink: rgba(20, 16, 13, 0.82);
  --tint: rgba(232, 70, 11, 0.07);
}
:root[data-theme="dark"] {
  --card: #110E0B;
  --card-line: rgba(245, 239, 232, 0.08);
  --body-ink: rgba(245, 239, 232, 0.8);
  --tint: rgba(255, 122, 61, 0.09);
}

/* Lueur orange en haut de page, rappel de celle qui entoure le téléphone. */
body.simple { position: relative; }
body.simple::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 0; right: 0; top: 0; height: 560px;
  background: radial-gradient(ellipse min(560px, 70vw) 320px at 50% 0, rgba(255, 122, 61, calc(var(--glow-strength) * .55)), rgba(232, 70, 11, 0) 100%);
}

.back-link {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); transition: border-color .2s, color .2s;
}
.back-link:hover { border-color: var(--orange); color: var(--orange); }
.back-link svg { width: 15px; height: 15px; }

/* ── Mise en page ─────────────────────────────────────────────────────── */
.doc {
  max-width: 880px; margin: 0 auto;
  padding: 116px clamp(16px, 4vw, 32px) 96px;
}

.doc-tabs {
  position: relative;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: -6px -10px 14px; padding: 6px 10px 18px;
}
.doc-tabs::-webkit-scrollbar { display: none; }
.doc-tabs a {
  flex: none; font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); transition: color .2s, border-color .2s;
}
.doc-tabs a:hover { color: var(--ink); border-color: var(--muted); }
.doc-tabs a[aria-current="page"] {
  color: #fff; border-color: transparent; background: var(--flame);
  box-shadow: 0 6px 14px rgba(232, 70, 11, .26);
}

.legal-lang-note {
  display: flex; gap: 10px; align-items: center; margin: 0 0 20px; padding: 12px 16px;
  border-radius: 14px; background: var(--tint); font-size: 14px; font-weight: 600; color: var(--ink);
}
.legal-lang-note[hidden] { display: none; }
.legal-lang-note svg { flex: none; width: 18px; height: 18px; color: var(--orange); }

.doc-card {
  background: var(--card); border: 1px solid var(--card-line); border-radius: 28px;
  padding: clamp(24px, 5vw, 56px);
}

.doc-head { margin-bottom: 34px; }
.doc-head h1, .page-title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(40px, 6.4vw, 76px); line-height: .96; letter-spacing: .005em;
  margin: 0; overflow-wrap: anywhere;
}
.doc-head .doc-date { margin: 18px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }

.doc-card section { padding-top: 26px; margin-top: 26px; border-top: 1px solid var(--card-line); }
.doc-card section:first-of-type { margin-top: 0; }
.doc-card h2 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(22px, 2.6vw, 28px); line-height: 1.05; letter-spacing: .01em; margin: 0 0 14px;
}
.doc-card h3 { font-size: 17px; font-weight: 800; margin: 22px 0 8px; }
.doc-card p, .doc-card li { color: var(--body-ink); font-size: 16px; line-height: 1.68; }
.doc-card p { margin: 0 0 12px; }
.doc-card ul, .doc-card ol { margin: 0 0 12px; padding-left: 1.2em; }
.doc-card li { margin: 0 0 8px; }
.doc-card li::marker { color: var(--orange); }
.doc-card strong { color: var(--ink); }
.doc-card a, .mail { color: var(--orange); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.doc-card a:hover { text-decoration-color: transparent; }

.table-scroll { overflow-x: auto; margin: 6px 0 16px; border: 1px solid var(--card-line); border-radius: 16px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.doc-table th {
  text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding: 12px 16px; background: var(--tint);
}
.doc-table td { padding: 12px 16px; border-top: 1px solid var(--card-line); vertical-align: top; color: var(--body-ink); line-height: 1.5; }
.doc-table td:first-child { color: var(--ink); font-weight: 700; }

.doc-note {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px 18px;
  border-radius: 16px; background: var(--tint); font-size: 14px; line-height: 1.55; color: var(--body-ink);
}
.doc-note svg { flex: none; width: 19px; height: 19px; margin-top: 1px; color: var(--orange); }

/* ── Contact ──────────────────────────────────────────────────────────── */
.contact-hero { margin-bottom: 30px; }
.contact-hero .page-title { margin: 18px 0 16px; }
.contact-hero p { margin: 0; max-width: 34em; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); }

/* Le bloc de l'adresse reste sombre dans les deux thèmes, comme le bloc de
   score de l'app (règle Arena du mode jour). */
.mail-card {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(26px, 5vw, 48px);
  background: var(--score-dark); color: #F5EFE8;
  box-shadow: 0 24px 60px rgba(232, 70, 11, calc(var(--glow-strength) * .35));
}
.mail-card::after {
  content: ""; position: absolute; right: -120px; top: -140px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 122, 61, .45), rgba(232, 70, 11, 0)); pointer-events: none;
}
.mail-label { position: relative; z-index: 1; margin: 0 0 10px; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #FF9A6B; }
.mail-address {
  position: relative; z-index: 1; display: block; margin: 0;
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(30px, 6vw, 64px); line-height: 1; letter-spacing: .01em; overflow-wrap: anywhere;
}
.mail-address .at { background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .08em; }
.mail-hint { position: relative; z-index: 1; margin: 16px 0 0; font-size: 14px; color: rgba(245, 239, 232, .66); max-width: 36em; }

.subjects { margin: 28px 0 0; }
.subjects h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 24px; margin: 0 0 14px; }
.subject-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.subject-chips li { font-weight: 700; font-size: 14px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }

.contact-side { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.contact-side > a, .contact-side > div {
  display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 22px;
  background: var(--card); border: 1px solid var(--card-line); transition: border-color .2s, transform .2s;
}
.contact-side > a:hover { border-color: var(--orange); transform: translateY(-2px); }
.contact-side svg { width: 24px; height: 24px; color: var(--orange); }
.contact-side b { display: block; font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.contact-side span span { display: block; font-size: 14px; line-height: 1.5; color: var(--muted); }

@media (max-width: 899px) {
  .doc { padding-top: 96px; }
  .contact-side { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .back-link span { display: none; }
  .back-link { padding: 8px 10px; }
}
