/* Pages du compte — Godslife Academy (politique de confidentialité, suppression du compte). Mobile d'abord ; thème clair/sombre selon l'appareil. */
:root {
  --navy: #002252; --blue: #0a4da3; --gold: #f4b226;
  --bg: #f3f6fb; --card: #ffffff; --text: #14213d; --muted: #5b6b85; --line: #d9e1ee;
  --primary: #0a4da3; --primary-text: #ffffff;
  --danger: #c62828; --danger-bg: #fdecea; --success: #1b8a4b; --success-bg: #e6f5ec; --warning-bg: #fff4d9; --info-bg: #e8f0fc;
  --shadow: 0 1px 2px rgba(0, 34, 82, .06), 0 8px 24px rgba(0, 34, 82, .06);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071425; --card: #0e2036; --text: #eaf1fb; --muted: #9db0cc; --line: #23405f; --primary: #5b9cf5; --primary-text: #04122a;
    --danger: #ff8a80; --danger-bg: #3b1a1a; --success: #6ad697; --success-bg: #12301f; --warning-bg: #3a2c0c; --info-bg: #11304f; --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 .6rem; }
h2 { font-size: 1.15rem; line-height: 1.3; margin: 1.6rem 0 .5rem; }
h3 { font-size: 1rem; margin: 1rem 0 .3rem; }
p { margin: 0 0 .8rem; }
ul, ol { margin: 0 0 .9rem; padding-left: 1.3rem; }
li { margin-bottom: .3rem; }
a { color: var(--primary); }
small, .muted { color: var(--muted); }

.top { background: linear-gradient(135deg, var(--navy), var(--blue)); padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
.brand { display: flex; align-items: center; gap: 10px; max-width: 760px; margin: 0 auto; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.brand img { border-radius: 8px; background: #fff; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 18px 16px 30px; flex: 1; }
.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); }
.foot a { color: inherit; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow); }
.hero { border-top: 4px solid var(--gold); }
.eyebrow { color: var(--primary); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .3rem; }
.lead { font-size: 1.05rem; color: var(--muted); }
.links { display: grid; gap: 12px; margin-top: 14px; }
.link-card { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.link-card strong { display: block; color: var(--primary); margin-bottom: 2px; }
.link-card:focus-visible, .btn:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.notice { border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; background: var(--info-bg); }
.notice.warning { background: var(--warning-bg); }
.notice.error { background: var(--danger-bg); color: var(--danger); font-weight: 600; }
.notice.success { background: var(--success-bg); }
.notice[hidden], [hidden] { display: none !important; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 650; width: 34%; }
.scroll { overflow-x: auto; }

form { display: grid; gap: 14px; }
label { font-weight: 650; display: block; margin-bottom: 4px; }
input[type=text], input[type=password], input[type=email], input[type=tel] { width: 100%; padding: 12px 13px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.hint { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.problems { margin: 0; padding-left: 1.2rem; color: var(--danger); font-size: .92rem; }
.problems:empty { display: none; }
.btn { display: inline-block; text-align: center; padding: 13px 18px; border: 0; border-radius: 12px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--primary); color: var(--primary-text); }
.btn.danger { background: var(--danger); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
ol.steps { counter-reset: step; list-style: none; padding: 0; }
ol.steps li { counter-increment: step; position: relative; padding-left: 40px; margin-bottom: .7rem; }
ol.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--primary-text); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
@media (max-width: 560px) {
  table, tbody, tr, th, td { display: block; width: 100%; }
  tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  th, td { border: 0; padding: 2px 4px; }
  th { color: var(--primary); }
}
