/*
 * Get First Try · site vitrine
 * Couleurs, rayons et typographie : design/tokens.json (thème clair).
 * Aucune ressource tierce : polices auto-hébergées (SIL OFL, voir assets/fonts/OFL-*.txt).
 */

/* ---------- Polices ---------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-tight-700.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-600.woff2') format('woff2');
}

/* ---------- Jetons (design/tokens.json › color.light, radius, shadow) ---------- */

:root {
  color-scheme: light;

  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-muted: #eef1f5;
  --ink: #0e1726;
  --ink-reading: #1e2838;
  --text-secondary: #3b4556;
  --text-muted: #5b6577;
  --line: #e3e6eb;
  --line-soft: #eef1f5;
  --line-strong: #dce1e8;
  --control: #c5ccd6;
  --primary: #2457d6;
  --primary-pressed: #1c46ae;
  --primary-soft: #e9effc;
  --on-primary: #ffffff;
  --gold: #f2b42c;
  --gold-soft: #fdf3d7;
  --gold-ink: #6b4a00;
  --trap-ink: #8a4e06;
  --trap-text: #2b2112;
  --trap-soft: #fbf1e3;
  --inverse-surface: #0e1726;
  --inverse-text: #ffffff;
  --inverse-muted: #c9d1dd;

  --cert-cissp-strong: #0b6663;
  --cert-cissp-tint: #e4f3f2;
  --cert-ccsp-base: #bf5e17;
  --cert-ccsp-strong: #9a4a0f;
  --cert-ccsp-tint: #fbefe6;
  --cert-cism-strong: #5a3fa3;
  --cert-cism-tint: #efebf9;
  --cert-aaism-strong: #942b49;
  --cert-aaism-tint: #faeaef;
  --cert-iso-strong: #255a91;
  --cert-iso-tint: #e7eff8;
  --cert-cobit-strong: #4a6417;
  --cert-cobit-tint: #eef3e3;
  --cert-togaf-strong: #7c5025;
  --cert-togaf-tint: #f5ede4;

  --radius-m: 12px;
  --radius-button: 14px;
  --radius-option: 16px;
  --radius-card: 20px;
  --radius-hero: 24px;
  --radius-sheet: 28px;
  --radius-pill: 999px;

  --font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --section-pad: clamp(56px, 7vw, 96px);
  --max: 1200px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

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

a {
  color: var(--primary);
}
a:hover {
  color: var(--primary-pressed);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.on-dark a:focus-visible,
.on-dark:focus-visible {
  outline-color: var(--gold);
}

h1,
h2,
h3 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--inverse-text);
  border-radius: var(--radius-m);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
  color: var(--inverse-text);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- En-tête ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover {
  color: var(--ink);
}
.brand img {
  width: 36px;
  height: 36px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-nav {
  flex: 1 1 auto;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
}
.site-nav a:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: flex;
  background: var(--surface-muted);
  border-radius: var(--radius-m);
  padding: 3px;
  gap: 2px;
}
.lang-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 40px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
}
.lang-switch a:hover {
  color: var(--ink);
}
.lang-switch a[aria-current] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(14, 23, 38, 0.12);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--control);
  border-radius: var(--radius-m);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.btn-outline:hover {
  color: var(--ink);
  border-color: var(--text-muted);
}

.menu-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-m);
  background: transparent;
  color: var(--ink);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.menu-btn:hover {
  background: var(--surface-muted);
}
.menu-btn .icon-close {
  display: none;
}
.menu-btn[aria-expanded='true'] .icon-open {
  display: none;
}
.menu-btn[aria-expanded='true'] .icon-close {
  display: block;
}

/* Les boutons de store de l'en-tête ne tiennent sur une ligne qu'en grand écran ;
   en dessous, le bloc Télécharger et le bouton du héros prennent le relais. */
.site-header .container {
  max-width: 1360px;
}
@media (max-width: 1359px) {
  .header-stores {
    display: none;
  }
}

@media (max-width: 759px) {
  .header-bar {
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 8px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .brand-name {
    font-size: 18px;
  }
  .header-actions {
    gap: 6px;
    flex-wrap: nowrap;
  }
  /* Sans JavaScript : la navigation reste visible, en rangée défilante (maquette 390 px). */
  .site-nav {
    order: 3;
    flex: 1 0 100%;
    margin: 0 calc(-1 * var(--gutter));
    border-top: 1px solid var(--line-soft);
    overflow-x: auto;
  }
  .site-nav ul {
    flex-wrap: nowrap;
    padding: 0 8px;
    gap: 2px;
    white-space: nowrap;
  }
  .site-nav a {
    font-size: 14px;
  }
  /* Avec JavaScript : menu repliable. */
  .js .menu-btn {
    display: flex;
  }
  .js .site-nav {
    display: none;
    overflow: visible;
  }
  .js .site-nav.is-open {
    display: block;
  }
  .js .site-nav.is-open ul {
    flex-direction: column;
    padding: 8px;
  }
  .js .site-nav.is-open a {
    font-size: 16px;
    min-height: 48px;
  }
}

@media (max-width: 359px) {
  .brand-name {
    font-size: 16px;
  }
}

/* ---------- Typo de section ---------- */

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  font-size: 17px;
  line-height: 26px;
  color: var(--text-secondary);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}

.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- Héros ---------- */

.hero {
  padding-top: clamp(40px, 7vw, 96px);
  padding-bottom: clamp(40px, 7vw, 96px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: 56px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.hero-certs {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-button);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(36, 87, 214, 0.28);
}
.btn-primary:hover {
  background: var(--primary-pressed);
  color: var(--on-primary);
}
.btn-primary .icon {
  stroke-width: 2;
}

.link-strong {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.link-strong:hover {
  text-decoration: underline;
}

.hero-note {
  margin: 0;
  font-size: 14px;
  line-height: 21px;
  color: var(--text-muted);
  max-width: 520px;
}

/* Téléphone : écran Cours recréé en HTML et CSS (aucune capture). */

.hero-visual {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.phone {
  width: 320px;
  max-width: 100%;
  background: var(--ink);
  border-radius: 48px;
  padding: 10px;
  box-shadow:
    0 1px 2px rgba(14, 23, 38, 0.04),
    0 30px 60px rgba(14, 23, 38, 0.16);
}

.phone-screen {
  background: var(--bg);
  border-radius: 39px;
  padding: 34px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 620px;
}

.ph-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ph-back {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.ph-back .icon {
  stroke-width: 2;
}
.ph-crumb {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.ph-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.ph-progress {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 3px;
}
.ph-progress span {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
}
.ph-progress .done {
  background: var(--cert-ccsp-base);
}
.ph-progress .current {
  background: var(--ink);
}

.ph-eyebrow {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cert-ccsp-strong);
}
.ph-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ph-text {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-reading);
}

.ph-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-option);
  padding: 4px 12px;
}
.ph-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
}
.ph-row:last-child {
  border-bottom: 0;
}
.ph-row b {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--cert-ccsp-strong);
  width: 60px;
  flex: none;
}
.ph-row span {
  font-size: 12px;
  color: var(--ink-reading);
}

.ph-trap {
  background: var(--trap-soft);
  border-radius: var(--radius-button);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ph-trap-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--trap-ink);
}
.ph-trap-label .icon {
  stroke-width: 2;
}
.ph-trap-text {
  font-size: 12px;
  line-height: 18px;
  color: var(--trap-text);
}

.ph-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: var(--radius-button);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Certifications ---------- */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cert-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
}
.cert-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cert-code {
  min-width: 56px;
  height: 44px;
  padding: 0 8px;
  border-radius: var(--radius-m);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-org {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: right;
}
.cert-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 22px;
  font-weight: 700;
}
.cert-full {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-muted);
}
.cert-ref {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-reading);
}

.c-cissp {
  background: var(--cert-cissp-tint);
  color: var(--cert-cissp-strong);
}
.c-ccsp {
  background: var(--cert-ccsp-tint);
  color: var(--cert-ccsp-strong);
}
.c-cism {
  background: var(--cert-cism-tint);
  color: var(--cert-cism-strong);
}
.c-aaism {
  background: var(--cert-aaism-tint);
  color: var(--cert-aaism-strong);
}
.c-iso {
  background: var(--cert-iso-tint);
  color: var(--cert-iso-strong);
}
.c-cobit {
  background: var(--cert-cobit-tint);
  color: var(--cert-cobit-strong);
}
.c-togaf {
  background: var(--cert-togaf-tint);
  color: var(--cert-togaf-strong);
}

/* ---------- Étapes ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 16px;
}
.steps li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-top: 2px solid var(--ink);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.steps h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
}
.steps p {
  margin: 0;
  font-size: 15px;
  line-height: 23px;
  color: var(--text-secondary);
}

/* ---------- Fonctionnalités ---------- */

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 16px;
}
.feature {
  background: var(--bg);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-m);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature h3 {
  margin: 0;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}
.feature p {
  margin: 0;
  font-size: 15px;
  line-height: 23px;
  color: var(--text-secondary);
}

/* ---------- Tarifs ---------- */

.pricing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 16px;
  align-items: stretch;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-hero);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.plan-featured {
  border: 2px solid var(--primary);
  padding: 27px;
}
.plan-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.plan h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.plan-sub {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}
.price {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}
.price-amount {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.price-unit {
  font-size: 14px;
  color: var(--text-muted);
}
.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  line-height: 22px;
  color: var(--ink-reading);
}
.checklist li {
  display: flex;
  gap: 10px;
}
.checklist .icon {
  color: var(--primary);
  stroke-width: 2;
  margin-top: 1px;
}

.btn-block {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 52px;
  padding: 8px 16px;
  border-radius: var(--radius-button);
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}
.btn-block:hover {
  color: var(--ink);
  border-color: var(--control);
  background: var(--bg);
}
.btn-block.is-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.btn-block.is-primary:hover {
  background: var(--primary-pressed);
  border-color: var(--primary-pressed);
}

.fine-print {
  margin: 0;
  font-size: 13px;
  line-height: 19px;
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 880px;
  gap: 28px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary .icon {
  color: var(--text-secondary);
  stroke-width: 2;
}
.faq-list details[open] .icon-v {
  display: none;
}
.faq-list details p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 25px;
  color: var(--text-secondary);
}

/* ---------- Téléchargement ---------- */

.download-wrap {
  background: var(--surface);
  padding: 0 var(--gutter) var(--section-pad);
}
.download {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--inverse-surface);
  border-radius: var(--radius-sheet);
  padding: clamp(32px, 6vw, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.download-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 360px;
  min-width: 0;
}
.download-copy img {
  width: 56px;
  height: 56px;
}
.download h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--inverse-text);
}
.download p {
  margin: 0;
  font-size: 17px;
  line-height: 26px;
  color: var(--inverse-muted);
  max-width: 520px;
}
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px;
  border: 1.5px solid var(--inverse-text);
  border-radius: var(--radius-button);
  color: var(--inverse-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.btn-store:hover {
  color: var(--inverse-text);
  background: rgba(255, 255, 255, 0.08);
}
.btn-store:focus-visible {
  outline-color: var(--gold);
}
.store-soon {
  flex-basis: 100%;
  margin: 0;
  font-size: 14px;
  color: var(--inverse-muted);
}

@media (max-width: 420px) {
  .btn-store {
    flex: 1 1 100%;
    justify-content: center;
    white-space: normal;
  }
}

/* ---------- Pied de page ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-inner {
  padding-top: 40px;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand img {
  width: 32px;
  height: 32px;
}
.footer-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.footer-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
}
.footer-legal {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-muted);
  max-width: 920px;
}

/* ---------- Pages de texte (légal, suppression de compte, 404) ---------- */

.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) var(--gutter) var(--section-pad);
}

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.doc-back:hover {
  text-decoration: underline;
}

.legal-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 32px;
  padding: 16px 18px;
  border-radius: var(--radius-option);
  background: var(--trap-soft);
  border: 1px solid #f0d9b5;
  color: var(--trap-text);
  font-size: 15px;
  line-height: 22px;
}
.legal-banner .icon {
  color: var(--trap-ink);
  stroke-width: 2;
  margin-top: 1px;
}
.legal-banner p {
  margin: 0;
}

.doc h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.doc h2 {
  margin: 40px 0 12px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.doc h3 {
  margin: 28px 0 8px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}
.doc p,
.doc li {
  font-size: 16px;
  line-height: 26px;
  color: var(--ink-reading);
}
.doc p {
  margin: 0 0 16px;
}
.doc ul,
.doc ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.doc li + li {
  margin-top: 6px;
}
.doc blockquote {
  margin: 0 0 24px;
  padding: 16px 20px;
  border-left: 4px solid var(--control);
  background: var(--surface);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
}
.doc blockquote p:last-child {
  margin-bottom: 0;
}
.doc code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface-muted);
  padding: 1px 5px;
  border-radius: 4px;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
}
.doc table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 14px;
  line-height: 21px;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-reading);
}
.doc th {
  background: var(--bg);
  font-weight: 600;
  color: var(--ink);
}
.doc tr:last-child td {
  border-bottom: 0;
}

/* Champ à compléter (texte entre accolades des projets juridiques). */
.ph {
  background: var(--gold-soft);
  color: var(--gold-ink);
  border-radius: 4px;
  padding: 0 3px;
  font-weight: 500;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.doc-meta {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-muted);
}
.doc .doc-meta p {
  font-size: 14px;
  line-height: 21px;
  color: var(--text-muted);
}

.steps-doc {
  counter-reset: s;
  list-style: none;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.steps-doc li {
  counter-increment: s;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-option);
  padding: 14px 16px;
  margin: 0 !important;
}
.steps-doc li::before {
  content: counter(s);
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.path {
  font-weight: 600;
  color: var(--ink);
}

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-option);
  padding: 18px 20px;
  margin: 0 0 24px;
}
.doc .callout p:last-child {
  margin-bottom: 0;
}

.error-page {
  text-align: left;
}
.error-code {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
  margin: 0 0 8px;
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  margin-top: 24px;
}

@media print {
  .site-header,
  .site-footer .footer-nav,
  .skip-link,
  .doc-back {
    display: none;
  }
  .ph {
    background: none;
    text-decoration: underline dotted;
  }
}

/* Cible du lien d'évitement : pas de contour sur toute la zone principale. */
main:focus {
  outline: none;
}
