/* SEADS Academy public landing page (direction B, owner 20 Nov, #441): / in French, /en in English.
   Shared tokens come from /seads-tokens.css, linked before this file. No inline styles (the CSP forbids them). */
@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: hsl(var(--ink));
  background: hsl(var(--surface));
  line-height: 1.55;
  font-size: 1.0625rem;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: hsl(var(--brand-text)); }
:focus-visible { outline: 3px solid hsl(var(--accent)); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1264px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
@media (min-width: 1280px) { .wrap { padding: 0 40px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: hsl(var(--surface)); padding: .6em 1em; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--surface)); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: hsl(var(--ink)); font-weight: 700; }
.brand img { width: 36px; height: 36px; }
.brand small { display: block; font-weight: 500; color: hsl(var(--muted)); font-size: .75rem; }
.brand span { white-space: nowrap; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: .95rem; }
.site-nav a { color: hsl(var(--ink)); text-decoration: none; white-space: nowrap; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .hide-sm { display: none; }
@media (min-width: 820px) { .site-nav .hide-sm { display: inline; } }
.signin { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.signin svg { display: none; flex: none; }
.lang-switch { display: inline-flex; border: 1px solid hsl(var(--border)); border-radius: 999px; overflow: hidden; }
.lang-switch a { min-height: 44px; min-width: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 4px 10px; font-size: .85rem; font-weight: 600; color: hsl(var(--muted)); }
.lang-switch a[aria-current="page"] { background: hsl(var(--brand-fill)); color: #fff; }
@media (max-width: 480px) { .brand small { display: none; } .site-nav { gap: 10px; } .brand { font-size: .95rem; } }
@media (max-width: 420px) {
  .brand { font-size: .9rem; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .site-nav { gap: 6px; }
  .signin { width: 44px; justify-content: center; }
  .signin svg { display: block; }
  .signin-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lang-switch a { min-width: 36px; padding: 4px 8px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.4em; border-radius: var(--radius); font-weight: 650; text-decoration: none; font-size: 1rem; border: 2px solid transparent; }
.btn-primary { background: hsl(var(--brand-fill)); color: #fff; }
.btn-primary:hover { background: hsl(var(--brand-fill-hover)); }
.btn-secondary { border-color: currentColor; color: hsl(var(--brand-text)); background: transparent; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.25em 0 .75em; }
.fine { font-size: .875rem; color: hsl(var(--muted)); margin: 0; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(1000px 500px at 85% 10%, hsl(var(--brand-tint)) 0%, transparent 60%), hsl(var(--surface));
  padding: 32px 0 40px; border-bottom: 1px solid hsl(var(--border)); }
@media (min-width: 980px) { .hero { padding: 48px 0 48px; } }
.hero-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1fr 1.15fr; gap: 48px; } }
.pill { display: inline-flex; gap: 8px; align-items: center; background: hsl(var(--brand-tint)); color: hsl(var(--brand-text)); font-weight: 650; font-size: .85rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--success)); display: inline-block; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h1 .hl { background: linear-gradient(transparent 62%, hsl(var(--accent) / .55) 62%); }
.lede { font-size: 1.15rem; color: hsl(var(--muted)); max-width: 34em; }
@media (max-width: 360px) { h1 { font-size: 1.85rem; } }

/* SQL lab and certificate mocks */
.stage { position: relative; padding-bottom: 180px; }
.lab { background: #0D1B2A; color: #EEF2F6; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px -24px rgba(13,27,42,.55); font-size: .9rem; }
.lab-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #12233A; border-bottom: 1px solid #26405C; font-size: .8rem; color: #A9B7C6; }
.lab-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #26405C; flex: none; }
.lab-bar .ds { margin-left: auto; color: #F0C42A; font-weight: 600; }
.lab pre { margin: 0; padding: 14px 16px; font: 500 .85rem/1.6 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.lab .kw { color: #6B9BD2; font-weight: 700; }
.lab .fn { color: #F0C42A; }
.lab .str { color: #E95B32; }
.lab-run { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 16px; border-top: 1px solid #26405C; border-bottom: 1px solid #26405C; font-size: .8rem; color: #A9B7C6; }
.lab-run b { background: #3E72AE; color: #fff; padding: 4px 12px; border-radius: 6px; font-weight: 650; }
.lab-run .okmsg { color: #52B888; }
.lab table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.lab th, .lab td { padding: 7px 16px; text-align: left; border-bottom: 1px solid #1c3150; }
.lab th { color: #A9B7C6; font-weight: 600; }
.lab .n { text-align: right; font-variant-numeric: tabular-nums; }
.cert { background: #fff; color: #222; border: 1px solid #d9e2ec; border-radius: 10px; padding: 16px; box-shadow: 0 18px 40px -18px rgba(13,27,42,.35); overflow: hidden;
  position: absolute; right: -8px; bottom: 0; width: min(300px, 78%); }
.cert::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, #285888 0 70%, #E8B800 70%); }
.cert-head { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: #595959; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.cert-head img { width: 28px; height: 28px; }
.cert-title { font-size: .9rem; font-weight: 700; margin: 10px 0 2px; color: #222; }
.cert-name { font-size: 1.15rem; font-weight: 750; color: #1E4368; margin: 2px 0 8px; letter-spacing: -.01em; }
.cert-course { font-size: .82rem; margin: 0 0 10px; }
.cert-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-top: 1px dashed #d9e2ec; padding-top: 12px; font-size: .8rem; color: #595959; }
.badge-ok { display: inline-flex; align-items: center; gap: 6px; color: #276C4B; font-weight: 650; font-size: .85rem; }
.qr { width: 48px; height: 48px; flex: none; position: relative; border: 4px solid #222; border-radius: 2px;
  background: conic-gradient(from 90deg at 30% 30%, #222 25%, transparent 0) 0 0/16px 16px, linear-gradient(#fff, #fff); }
.qr::after { content: ""; position: absolute; inset: 12px; background: #fff; border: 4px solid #222; }
@media (max-width: 560px) {
  .stage { padding-bottom: 0; }
  .cert { position: relative; right: auto; width: auto; margin: 12px 0 0; }
  .lab td:nth-child(3), .lab th:nth-child(3) { display: none; }
}
@media (max-width: 420px) { .lab th, .lab td { padding: 7px 10px; } }

/* ---------- fact strip ---------- */
.strip { background: hsl(var(--panel)); border-bottom: 1px solid hsl(var(--border)); }
.strip ul { list-style: none; margin: 0; padding: 16px 0; display: grid; gap: 10px 24px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); font-size: .92rem; }
.strip li { display: flex; gap: 10px; align-items: baseline; }
.strip b { color: hsl(var(--brand-text)); white-space: nowrap; min-width: 3.2em; }

/* ---------- sections ---------- */
.block { padding: 40px 0; }
@media (min-width: 980px) { .block { padding: 52px 0; } }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 780; }
.sub { color: hsl(var(--muted)); max-width: 52em; }
.cards { display: grid; gap: 16px; margin-top: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.card { border: 1px solid hsl(var(--border)); border-radius: 12px; padding: 20px; background: hsl(var(--surface)); }
.card h3 { font-size: 1.1rem; margin-bottom: .4em; }
.card p { color: hsl(var(--muted)); font-size: .95rem; margin: 0; }
.tag { display: inline-block; font: 600 .72rem/1 ui-monospace, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; color: hsl(var(--accent-code)); margin-bottom: 10px; }

/* photo band: shorter than the mock-up */
.band { color: #fff; background: #0D1B2A; }
.band-grid { display: grid; grid-template-columns: 1fr; max-width: 1440px; margin: 0 auto; }
.band-grid img { width: 100%; height: 220px; object-fit: cover; object-position: 50% 40%; }
@media (min-width: 900px) { .band-grid { grid-template-columns: 1.2fr 1fr; } .band-grid img { height: 100%; min-height: 0; max-height: 340px; } }
.band-copy { padding: 32px 16px; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 720px) { .band-copy { padding: 36px 40px; } }
.band-copy h2 { color: #fff; }
.band-copy p { color: #C9D4DF; max-width: 34em; margin: 0; }

.org { background: hsl(var(--panel)); }
.org-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.org-grid > * { min-width: 0; }
@media (min-width: 980px) { .org-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.checks { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: "→"; position: absolute; left: 0; color: hsl(var(--brand-text)); font-weight: 800; }
.progress { align-self: start; background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); border-radius: 12px; overflow: hidden; font-size: .88rem; }
@media (min-width: 980px) { .progress { align-self: center; } }
.progress-head { padding: 12px 16px; border-bottom: 1px solid hsl(var(--border)); font-weight: 650; display: flex; justify-content: space-between; gap: 8px; }
.progress-head span { color: hsl(var(--muted)); font-weight: 500; }
.progress table { width: 100%; border-collapse: collapse; }
.progress td, .progress th { padding: 10px 16px; border-bottom: 1px solid hsl(var(--border)); text-align: left; }
.progress th { font-weight: 600; color: hsl(var(--muted)); font-size: .8rem; }
.bar { height: 8px; background: hsl(var(--brand-tint)); border-radius: 4px; overflow: hidden; min-width: 70px; }
.bar i { display: block; height: 100%; background: hsl(var(--brand)); }
.bar .w100 { width: 100%; } .bar .w70 { width: 70%; } .bar .w40 { width: 40%; } .bar .w15 { width: 15%; }
.st-ok { color: hsl(var(--success)); font-weight: 650; }
.st-wip { color: hsl(var(--warning-text)); font-weight: 650; }
@media (max-width: 420px) { .progress td, .progress th { padding: 10px 8px; } .bar { min-width: 44px; } }

.pricing { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 760px) { .pricing { grid-template-columns: 1fr 1fr; gap: 20px; } }
.price { border: 1px solid hsl(var(--border)); border-radius: 12px; padding: 24px; }
.price.main { border: 2px solid hsl(var(--brand)); }
.price h3 { font-size: 1.1rem; }
.price .big { font-size: 1.6rem; font-weight: 800; margin: 4px 0 10px; }
.price ul { padding-left: 1.1em; color: hsl(var(--muted)); }

/* ---------- footer ---------- */
.site-footer { background: #0D1B2A; color: #C9D4DF; padding: 40px 0 28px; font-size: .92rem; }
.site-footer a { color: #EEF2F6; }
.foot-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #A9B7C6; margin-bottom: .8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; margin-bottom: 10px; }
.foot-brand img { width: 32px; height: 32px; }
.foot-legal { border-top: 1px solid #26405C; margin-top: 28px; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; color: #A9B7C6; }

/* Dark mode (seads-test, 20 Nov): /theme.js sets .dark from the system setting and the shared tokens follow.
   The lab, the photo band and the footer are navy in both themes; on the navy page they get an edge. */
.dark { color-scheme: dark; }
.dark .lab { border: 1px solid hsl(var(--border)); box-shadow: none; }
.dark .cert { box-shadow: 0 18px 40px -18px rgba(0,0,0,.7); }
.dark .band, .dark .site-footer { border-top: 1px solid hsl(var(--border)); }
.dark .band { background: hsl(var(--panel)); }
.dark .lang-switch a[aria-current="page"] { color: #fff; }
