/* ============================================================
   AtomicMD — « Ambre Garde »
   Night-first, instrument-grade design system.
   Palette + type direction are the product's own; honored exactly.
   ============================================================ */

:root {
  /* ---- Ground & surfaces ---- */
  --bg:        #0e0f11;
  --surface:   #17181b;
  --surface-2: #1b1c20;
  --border:    #2b2c30;

  /* ---- Text ---- */
  --text:  #e9e9e9;
  --muted: #8c8c8c;
  --faible: #5a5a5a;

  /* ---- Accent (the single bold hue) ---- */
  --accent:    #d6a152;
  --on-accent: #17130A;

  /* ---- Clinical semantics — never decorative ---- */
  --ok:     #3DA96F;
  --danger: #E5484D;

  /* ---- Type ---- */
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
             Arial, "Noto Sans", sans-serif;
  --font-serif: Charter, "Charter BT", Georgia, "Times New Roman", "Times", serif;

  /* ---- Rhythm ---- */
  --maxw: 1000px;
  --pad: clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 10vw, 116px);

  /* ---- Radii ---- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
}

/* ============================================================
   Reset / base
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* wide content must never scroll the body sideways */
}

/* Subtle amber ambience anchored top-centre, behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 42% at 50% -6%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    radial-gradient(50% 40% at 92% 4%, color-mix(in srgb, var(--accent) 4%, transparent), transparent 72%);
  pointer-events: none;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration: none;
}

img, svg, canvas { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ============================================================
   Shared micro-elements
   ============================================================ */
.eyebrow,
.kicker,
.card-tag,
.trust-label,
.disclaimer-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(61, 169, 111, 0.6);
}

.status-dot--amber {
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
  animation: pulse-dot 2.4s ease-out infinite;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 34%, transparent); }
  70%  { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot--amber { animation: none; }
}

/* Thin amber underline accent — the product's signature. */
.hl {
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
.hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--accent);
  opacity: 0.75;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 13px 22px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease,
              border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

/* Le bouton d'accent (retour Charles 2026-08-25) : au REPOS un contour ambre sans
   fond ; l'ambre ne se remplit qu'au SURVOL. Jamais un fond plein ni un halo. */
.btn-accent {
  background: transparent;
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.btn-accent:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 85%, transparent);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn-accent:hover { transform: none; }
}

/* ---- Chips ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}
.chip-beta { color: var(--text); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  color: var(--accent);
  display: inline-flex;
}
.brand-word {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand-accent { color: var(--accent); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-nav > a:not(.btn) {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease;
  white-space: nowrap;
}
.header-nav > a:not(.btn):hover { color: var(--accent); }
.header-cta { padding: 9px 16px; }
.header-lang {
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.header-lang:hover { color: var(--text); border-color: var(--accent); }
.header-lang b { color: var(--text); font-weight: 700; }

/* Collapse nav links on small screens; keep the CTA. */
@media (max-width: 720px) {
  .header-nav > a:not(.btn) { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-top: clamp(56px, 9vw, 96px);
  padding-bottom: clamp(40px, 6vw, 72px);
  position: relative;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  margin-bottom: 26px;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(2.7rem, 7.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 26px;
}

.hero-lede {
  font-size: clamp(1.06rem, 2.4vw, 1.28rem);
  line-height: 1.55;
  color: var(--text);
  max-width: 41ch;
  margin-bottom: 32px;
}
.hero-lede strong {
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero-lede-note {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94em;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---- ECG signature ---- */
.ecg {
  position: relative;
  width: 100%;
  height: clamp(88px, 13vw, 128px);
  margin-top: clamp(40px, 7vw, 72px);
  color: var(--accent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  /* faint grid, like graph paper on a monitor */
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--accent) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--accent) 5%, transparent) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.ecg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* SVG fallback shown only if canvas/JS is unavailable. */
.ecg-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}
.ecg-canvas + .ecg-fallback { display: none; }

/* ============================================================
   Section scaffolding
   ============================================================ */
.section {
  padding-block: var(--section-y);
  position: relative;
}
.section--alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-head {
  margin-bottom: clamp(32px, 5vw, 52px);
  max-width: 34ch;
}
.kicker {
  color: var(--accent);
  display: inline-block;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 8px;
}
.kicker::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 1.5px;
  background: var(--accent);
}
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* ============================================================
   Le flux (process — genuinely sequential → numbered)
   ============================================================ */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.flow-step {
  background: var(--bg);
  padding: clamp(22px, 2.6vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.section--alt .flow-step { background: var(--surface); }

.flow-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  opacity: 0.9;
}
.flow-name {
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.flow-copy {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 860px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .flow { grid-template-columns: 1fr; }
}

/* ============================================================
   Cards (Québec)
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.section--alt .card { background: var(--bg); }
.card:hover {
  border-color: #3A3A42;
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: border-color 0.18s ease; }
  .card:hover { transform: none; }
}

.card-tag {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.16em;
}
.card-title {
  font-size: 1.22rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.card-copy {
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.58;
}

.code-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.code-pill {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
}

/* ============================================================
   Trust strip
   ============================================================ */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 0 4px;
  border-top: 1px solid var(--border);
  position: relative;
}
.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  margin-bottom: 4px;
}
.trust-label {
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.trust-sub {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.5;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}
@media (max-width: 720px) {
  .trust-strip { grid-template-columns: 1fr; }
}

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  margin-top: clamp(48px, 7vw, 72px);
  background:
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%);
  pointer-events: none;
}
.cta-band-text { position: relative; max-width: 46ch; }
.cta-band-title {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 10px;
  text-wrap: balance;
}
.cta-band-copy {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}
.cta-band .btn { position: relative; flex-shrink: 0; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-block: clamp(40px, 6vw, 64px);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
/* Au bureau, l'avis medical se pose A DROITE de la marque (retour Charles
   2026-08-25) : deux colonnes, les liens dessous sur toute la largeur.
   Sous 880 px, l'empilement d'origine revient. */
@media (min-width: 880px) {
  .footer-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px 56px;
    align-items: start;
  }
  .footer-brand { grid-column: 1; }
  .footer-inner .disclaimer { grid-column: 2; margin: 0; max-width: none; }
  .footer-meta { grid-column: 1 / -1; }
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-word { font-size: 20px; }
.footer-tag {
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
  font-family: var(--font-serif);
}

.disclaimer {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 68ch;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
.disclaimer-label {
  display: block;
  color: var(--accent);
  margin-bottom: 6px;
  font-size: 11px;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-sep { color: var(--border); }
.footer-contact {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer-contact:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
/* Current page in the footer: never removed, discreetly marked. */
.footer-meta a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--border);
}

/* ============================================================
   Bêta page — additive only (shared stylesheet; index untouched)
   ============================================================ */

/* Founder quote under the hero. */
.founder-note {
  margin-top: clamp(28px, 5vw, 44px);
  max-width: 52ch;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.55;
}
.founder-kicker {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

/* Small note under a section (e.g. "à la première connexion…"). */
.fine-note {
  margin-top: clamp(22px, 4vw, 34px);
  max-width: 60ch;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Candidature block: text + action side by side, stacks on mobile. */
.apply {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}
.apply-text { min-width: 0; }
.apply-copy {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 18px;
}
.apply-privacy {
  position: relative;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  padding: 14px 16px 14px 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
}
.apply-privacy-mark {
  position: absolute;
  left: 16px;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
}
.apply-action {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.apply-btn { align-self: flex-start; max-width: 100%; }
.apply-hint {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}
.inline-link {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.inline-link:hover { border-bottom-color: var(--accent); }

@media (max-width: 720px) {
  .apply { grid-template-columns: 1fr; }
}

/* ============================================================
   Header — « Connexion » (la porte de app.atomicmd.ca) — additive.
   Two ghost buttons now live in the header; nav text links collapse
   a bit earlier so nothing wraps, and on small phones only the
   Connexion door remains (the candidature CTA lives in hero/finale
   and in the footer of every page).
   ============================================================ */
@media (max-width: 880px) {
  .header-nav > a:not(.btn) { display: none; }
}
@media (max-width: 720px) {
  .header-nav { gap: 12px; }
}
@media (max-width: 560px) {
  .header-cta--apply { display: none; }
}

/* ============================================================
   Pages informatives — sécurité / confidentialité / conditions.
   Additive only; index/beta untouched. Reuses the section
   scaffolding, cards and trust strips of the shared system.
   ============================================================ */

/* --- Page hero (compact, document-like) --- */
.page-hero {
  padding-top: clamp(44px, 7vw, 80px);
  padding-bottom: clamp(26px, 4vw, 44px);
}
.page-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 5.4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 18px;
}
.page-lede {
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.6;
  max-width: 64ch;
}
.page-lede strong { color: var(--text); font-weight: 650; }
.page-meta {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- Sommaire (in-page anchors) --- */
.toc {
  margin-top: clamp(22px, 4vw, 34px);
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.9rem;
}
.toc-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-right: 4px;
}
.toc a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.toc a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* --- Compact section rhythm for document pages --- */
.section--compact { padding-block: clamp(38px, 5.5vw, 68px); }
.section--compact[id],
.section--compact [id] { scroll-margin-top: 84px; }

/* --- Prose (running text) --- */
.prose { max-width: 70ch; }
.prose p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 14px;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 650; }
.prose ul { margin: 0 0 16px; display: grid; gap: 9px; }
.prose ul:last-child { margin-bottom: 0; }
.prose li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 10px;
  height: 1.5px;
  background: var(--accent);
}
.prose h3 {
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 26px 0 10px;
}
.prose h3:first-child { margin-top: 0; }
.prose a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.prose a:hover { border-bottom-color: var(--accent); }

/* --- Callout (the load-bearing statement of a section) --- */
.callout {
  max-width: 70ch;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
.callout-label {
  display: block;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}
.callout p {
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.6;
  margin: 0;
}

/* --- Data tables (residency, subprocessors, retention) --- */
.table-scroll {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  min-width: 620px;
}
.data-table th {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  color: var(--text);
  line-height: 1.55;
  vertical-align: top;
}
.data-table tbody tr:first-child td { border-top: none; }
.data-table td.mut { color: var(--muted); }
.data-table td .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  background: var(--bg);
  white-space: nowrap;
}
.table-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 70ch;
}

/* --- Questions d'un DSI (Q/R box) --- */
.qa-list { display: grid; gap: 14px; margin-top: 18px; }
.qa-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  padding: 18px 20px;
}
.qa-q {
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
  position: relative;
  padding-left: 18px;
}
.qa-q::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 1.5px;
  background: var(--accent);
}
.qa-a {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.62;
}
.qa-a strong { color: var(--text); font-weight: 650; }

/* ============================================================
   Print — clean, ink-friendly (in case anyone prints the page)
   ============================================================ */
@media print {
  /* Les jetons de nuit survivaient a l'impression : tout ce qui peint avec
     var(--text) (les <strong>, les cellules de tableau) sortait blanc sur blanc. */
  :root { --text: #111; --muted: #444; --border: #c9cdd3; }
  body { background: #fff; color: #111; }
  body::before, .ecg, .site-header .header-cta { display: none; }
  .section--alt, .card, .cta-band, .disclaimer, .site-footer,
  .founder-note, .apply-privacy,
  .callout, .qa-item, .toc, .table-scroll, .data-table th { background: #fff; }
  .chip { background: #fff; color: #111; }
  .btn-accent { color: #111; border: 1px solid #111; background: #fff; box-shadow: none; }
}

/* ============================================================
   Navigation mobile : le voile (burger) + la barre d'onglets.
   Les deux sont injectés par nav.js ; sans JS, le pied de page
   reste la navigation de secours.
   ============================================================ */
.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 40px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  flex: 0 0 auto;
}
.nav-burger:hover { border-color: var(--accent); color: var(--accent); }
.nav-burger svg { display: block; }

.mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(11, 11, 13, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  display: none;
  flex-direction: column;
  padding: 14px 22px 28px;
  overflow-y: auto;
}
.mobile-sheet.open { display: flex; }
.msheet-top { display: flex; align-items: center; justify-content: space-between; height: 48px; margin-bottom: 8px; }
.msheet-close {
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 40px;
  height: 36px;
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
}
.msheet-nav { display: flex; flex-direction: column; }
.msheet-nav a {
  font-size: 20px;
  font-weight: 600;
  padding: 15px 2px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.msheet-nav a[aria-current="page"] { color: var(--accent); }
.msheet-ctas { display: flex; gap: 10px; margin-top: 22px; }
.msheet-ctas .btn { flex: 1; }
.msheet-lang { margin-top: 18px; text-align: center; }
body.sheet-open { overflow: hidden; }

.tabbar-site {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: rgba(20, 20, 23, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar-site a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 2px 9px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.tabbar-site a svg { display: block; }
.tabbar-site a[aria-current="page"] { color: var(--accent); }

@media (max-width: 880px) {
  .nav-burger { display: inline-flex; }
  .header-cta--apply { display: none; } /* la candidature vit dans le voile */
}
@media (max-width: 720px) {
  .site-header .header-lang { display: none; } /* la langue vit dans le voile */
  body.has-tabbar { padding-bottom: 64px; }
  .tabbar-site { display: flex; }
}
@media print {
  .tabbar-site, .nav-burger, .mobile-sheet { display: none; }
}

/* La marque d'en-tete est l'atome VIVANT (AtomLive, 2026-08-25) : il porte ses
   propres traits, comme dans l'app. */

/* Le CTA candidature d'en-tete est mort (2026-08-25) : le geste vit dans la page. */

/* Atome d'en-tete plus present (retour Charles : trop petit a 26px).
   Le CSS gagne sur les attributs width/height inline des 17 pages. */
.brand-mark svg { width: 32px; height: 32px; }

/* Correctif : le svg { max-width:100% } global + le retrecissement flex
   ecrasaient la LARGEUR de l'atome d'en-tete (4px = juste le noyau, le
   fameux point). Taille verrouillee, plus jamais de compression. */
.brand { flex-shrink: 0; }
.brand-mark { flex: 0 0 auto; }
.brand-mark svg { width: 32px; height: 32px; max-width: none; }
