/* ============================================================
   THEME — typographie, couleurs, composants
   Dépend des tokens définis dans grid.css
   ============================================================ */

/* ---- webfonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,700;0,900;1,400&family=Space+Mono:wght@400;700&display=swap');

/* ---- reset minimal ---- */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ---- kicker (label mono en capslock) ---- */
.kicker {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  line-height: var(--lh);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: var(--bl);
}

/* ---- typographie display ---- */
.display-title {
  font-size: clamp(48px, 6.5vw, 96px);
  font-weight: 900;
  line-height: calc(var(--lh) * 4); /* 96px = 4 × leading */
  letter-spacing: -.03em;
  color: var(--ink);
}
.section-title {
  font-size: clamp(32px, 3.5vw, 56px);
  font-weight: 800;
  line-height: calc(var(--lh) * 3); /* 72px */
  letter-spacing: -.02em;
  color: var(--ink);
}
.hero-title {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 900;
  line-height: calc(var(--lh) * 3);
  letter-spacing: -.025em;
}

/* grands numéraux Swiss */
.numeral {
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 900;
  line-height: calc(var(--lh) * 5);
  letter-spacing: -.04em;
  color: var(--ink);
}
.numeral-label {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: var(--lh);
}

/* corps */
.body-lg { font-size: 18px; line-height: calc(var(--lh) * 1.5); /* 36px */ }
.body-md { font-size: 16px; line-height: var(--lh); }
.body-sm { font-size: 14px; line-height: var(--lh); color: var(--ink-soft); }
.mono-sm { font-family: "Space Mono", monospace; font-size: 12px; line-height: var(--lh); }

/* ---- tablette (769–1024px) : marge un peu réduite ---- */
@media (min-width: 769px) and (max-width: 1024px) {
  :root { --margin: 32px; }
}

/* ---- mobile (≤768px) ---- */
@media (max-width: 768px) {
  :root { --margin: 20px; --pad: 48px; }

  /* Empêcher le scroll horizontal */
  html, body { overflow-x: hidden; }

  /* Empilement 1 colonne — override de tous les grid-column inline */
  .band > * { grid-column: 1 / -1 !important; }

  /* Hauteur fixe du flex hero → auto */
  .band [style*="space-between"] { height: auto !important; gap: calc(var(--lh) * 2); }

  /* Typo display — tailles mobiles (multiples du leading conservés) */
  .display-title {
    font-size: clamp(36px, 10vw, 48px);
    line-height: calc(var(--lh) * 2);   /* 48px */
  }
  .hero-title {
    font-size: clamp(32px, 9vw, 44px);
    line-height: calc(var(--lh) * 2);
  }
  .section-title {
    font-size: clamp(24px, 7vw, 36px);
    line-height: calc(var(--lh) * 2);
  }
  .numeral {
    font-size: clamp(36px, 10vw, 48px);
    line-height: 1.05;
    margin-bottom: var(--bl);
  }
  .step-num {
    font-size: clamp(48px, 14vw, 72px);
    line-height: calc(var(--lh) * 3);
  }

  /* CTA — pleine largeur sur mobile */
  .cta-btn, .cta-btn-sec {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: var(--lh);
    margin-left: 0 !important;
  }

  /* Côte à côte des deux CTA sur a-propos → empilés */
  .band [style*="margin-left: 16px"] { margin-left: 0 !important; }
}

/* ========================================================
   HEADER / NAV
   ======================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.site-header .wrap { padding-top: 0; padding-bottom: 0; }
.site-header .grid { row-gap: 0; }
.nav-band {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--lh) * 3); /* 72px */
}
.nav-logo {
  font-family: "Space Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: var(--lh);
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: var(--lh);
  transition: color .15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 20px;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .15s !important;
}
.nav-cta:hover { background: var(--accent) !important; color: var(--paper) !important; }

/* hamburger mobile */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform .2s, opacity .2s;
}
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--ink);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 0 var(--margin); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 0; border-bottom: 1px solid rgba(17,19,21,.08); width: 100%; }
  .nav-links .nav-cta {
    background: transparent !important;
    color: var(--accent) !important;
    padding: 16px 0;
    margin: 0;
    display: block;
    width: 100%;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: none;
  }
  .nav-links .nav-cta:hover { background: transparent !important; color: var(--ink) !important; }
  .nav-burger { display: flex; }
}

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
  border-top: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.site-footer .wrap { padding-top: calc(var(--lh) * 3); padding-bottom: calc(var(--lh) * 3); }
.site-footer .grid { row-gap: calc(var(--lh) * 2); }
.footer-brand { font-family: "Space Mono", monospace; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.footer-brand span { color: #fff; }
.footer-tagline { margin-top: var(--bl); font-size: 14px; color: rgba(255,255,255,.6); line-height: var(--lh); }
.footer-col-title { font-family: "Space Mono", monospace; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: calc(var(--lh)); }
.footer-links { display: flex; flex-direction: column; gap: var(--bl); }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.75); transition: color .15s; }
.footer-links a:hover { color: var(--paper); }
.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: calc(var(--lh));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--lh);
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.45); line-height: var(--lh); }

/* ========================================================
   COMPOSANTS COMMUNS
   ======================================================== */

/* divider rule */
.rule {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--ink);
  margin: 0;
}
.rule-soft {
  grid-column: 1 / -1;
  height: 1px;
  background: rgba(17,19,21,.12);
}

/* CTA block */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--paper);
  padding: 16px 28px;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  transition: background .15s;
  margin-top: calc(var(--lh) * 2);
}
.cta-btn:hover { background: var(--ink); }
.cta-btn-sec {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  padding: 15px 28px;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  transition: background .15s, color .15s;
  margin-top: calc(var(--lh) * 2);
}
.cta-btn-sec:hover { background: var(--ink); color: var(--paper); }

/* card domaine */
.domain-card {
  border-top: 2px solid var(--ink);
  padding-top: var(--lh);
  padding-bottom: calc(var(--lh) * 3);
}
.domain-card .domain-num {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .14em;
  margin-bottom: var(--bl);
}
.domain-card h3 {
  font-size: 22px;
  font-weight: 800;
  line-height: calc(var(--lh) * 1.5);
  letter-spacing: -.01em;
  margin-bottom: var(--lh);
}
.domain-card p { font-size: 15px; line-height: var(--lh); color: var(--ink-soft); }

/* étape processus */
.step-num {
  font-size: clamp(72px, 8vw, 120px);
  font-weight: 900;
  line-height: calc(var(--lh) * 5);
  letter-spacing: -.04em;
  color: var(--accent);
}
.step-title {
  font-size: 20px;
  font-weight: 800;
  line-height: calc(var(--lh) * 1.5);
  letter-spacing: -.01em;
  margin-bottom: var(--bl);
}
.step-body { font-size: 15px; line-height: var(--lh); color: var(--ink-soft); }

/* témoignage */
.testimonial {
  border-top: 1px solid var(--ink);
  padding-top: var(--lh);
  padding-bottom: calc(var(--lh) * 2);
}
.testimonial blockquote {
  font-size: 17px;
  line-height: calc(var(--lh) * 1.5);
  font-style: italic;
  color: var(--ink);
  margin-bottom: var(--lh);
}
.testimonial cite {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-style: normal;
}

/* FAQ */
.faq-item { border-top: 1px solid rgba(17,19,21,.15); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--lh) 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  line-height: var(--lh);
  list-style: none;
  gap: var(--lh);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: "Space Mono", monospace;
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body {
  font-size: 15px;
  line-height: var(--lh);
  color: var(--ink-soft);
  padding-bottom: calc(var(--lh) * 1.5);
}

/* tag / badge */
.tag {
  display: inline-block;
  border: 1px solid var(--ink);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 10px;
  line-height: var(--lh);
}
.tag-accent { border-color: var(--accent); color: var(--accent); }

/* stat box */
.stat-box {
  border-top: 2px solid var(--accent);
  padding-top: var(--lh);
}

/* folio */
.folio {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: var(--lh);
}

/* surfaces */
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-ink .kicker { color: rgba(255,255,255,.85); }
.bg-ink .cta-btn { background: var(--paper) !important; color: var(--ink) !important; }
.bg-ink .cta-btn:hover { background: rgba(255,255,255,.88) !important; }
.bg-ink .section-title { color: var(--paper); }
.bg-ink .body-lg, .bg-ink .body-md { color: rgba(255,255,255,.8); }
.bg-ink .rule { background: rgba(255,255,255,.15); }

.bg-soft { background: #f5f4f2; }

/* image proportions alignées sur le leading */
.img-xl { height: calc(var(--lh) * 20); /* 480px */ }
.img-lg { height: calc(var(--lh) * 15); /* 360px */ }
.img-md { height: calc(var(--lh) * 10); /* 240px */ }
.img-sq { height: calc(var(--lh) * 20); aspect-ratio: 1; }

@media (max-width: 768px) {
  .img-xl { height: calc(var(--lh) * 14); }
  .img-lg { height: calc(var(--lh) * 10); }
}
