/* Nexus Formation — styles communs (cours et suivi).
   Couleurs de la marque Nexus : bleu nuit #0B1F3A et cyan #12B5CB, adoucies pour la lecture. */
:root {
  --bg: #eef7f8;
  --bg-2: #f5f2fb;
  --surface: #ffffff;
  --ink: #0b1f3a;
  --muted: #5b6b82;
  --line: #d9e7eb;
  --brand: #12b5cb;
  --accent: #0b8597;
  --accent-ink: #ffffff;
  --accent-soft: #e0f3f6;
  --warm-bg: #fdefe7;
  --warm-ink: #9a4a2a;
  --good: #1f8a5b;
  --good-soft: #e2f4ea;
  --bad: #c2413a;
  --bad-soft: #fbe7e5;
  --leaf: #43b27f;
  --leaf-off: #d5e6dd;
  --shadow: 0 6px 24px rgba(11, 31, 58, .07);
  --font-display: "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-body: "Lexend", "Segoe UI", system-ui, sans-serif;
  --r: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1f3a; --bg-2: #0e2442; --surface: #12294b; --ink: #e8f1f7; --muted: #9fb0c8; --line: #23416b;
    --accent: #3fd0e2; --accent-ink: #062030; --accent-soft: #143c57;
    --warm-bg: #3a2a28; --warm-ink: #f5b89c; --good: #5fd39a; --good-soft: #15392f; --bad: #ff8f86; --bad-soft: #3d2231;
    --leaf: #5fd39a; --leaf-off: #23416b; --shadow: 0 6px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%) fixed;
  background-color: var(--bg);
  color: var(--ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.7;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.2; text-wrap: balance; margin: 0; }
p { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.wrap {
  max-width: 38rem; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* En-tête avec le logo Nexus */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top .wrap { display: flex; align-items: center; gap: 10px; padding-block: 8px; }
.logo { display: block; height: 34px; width: auto; }
.logo-sombre { display: none; }
@media (prefers-color-scheme: dark) { .logo-clair { display: none; } .logo-sombre { display: block; } }
.homebtn { background: none; border: 0; padding: 0; cursor: pointer; }
.spacer { flex: 1; }
.tools { display: flex; gap: 6px; }
.tools button { font-family: var(--font-body); font-weight: 600; font-size: .85rem; min-width: 40px; height: 38px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }

main { padding-block: 22px 70px; display: flex; flex-direction: column; gap: 20px; }

/* Boutons */
.btn { font-family: var(--font-body); font-size: 1rem; font-weight: 600; border-radius: 16px; padding: 15px 18px; border: 0; cursor: pointer; background: var(--accent); color: var(--accent-ink); text-align: center; text-decoration: none; display: inline-block; }
.btn.ghost { background: var(--surface); color: var(--accent); border: 2px solid var(--accent-soft); }
.btn.small { padding: 10px 14px; font-size: .9rem; border-radius: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btns .btn { flex: 1 1 9rem; }

.card { background: var(--surface); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.small { font-size: .85rem; color: var(--muted); }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.bar { height: 12px; border-radius: 99px; background: var(--accent-soft); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--leaf)); border-radius: 99px; transition: width .6s; }

footer.brand { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; }
footer.brand img { width: 34px; height: 34px; flex: none; }
.ico-sombre { display: none; }
@media (prefers-color-scheme: dark) { .ico-clair { display: none; } .ico-sombre { display: block; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
