/* ==========================================================================
   Kalnetz — kalnetz.net
   Design system Apple (voir ARCHITECTURE.md §6). Aucune ressource externe.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --primary: #0071e3;
  --primary-hover: #0066cc;
  --primary-tint: rgba(0, 113, 227, 0.1);
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-light: #fafafc;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --border: #d2d2d7;
  --link: #0066cc;

  --bg-dark: #000000;
  --bg-dark-alt: #1d1d1f;
  --text-dark: #ffffff;
  --text-inverse: #f5f5f7;
  --text-dark-secondary: rgba(245, 245, 247, 0.72);
  --border-dark: rgba(245, 245, 247, 0.12);
  --link-accent: #2997ff;

  --shadow-card: rgba(0, 0, 0, 0.22) 3px 5px 30px 0px;
  --shadow-card-hover: rgba(0, 0, 0, 0.28) 4px 6px 35px 0px;

  --ease: cubic-bezier(0.4, 0, 0.6, 1);
  --dur: 320ms;
  --dur-fast: 120ms;

  --r-sm: 8px;
  --r-md: 11px;
  --r-full: 999px;

  --s-4: 4px;
  --s-8: 8px;
  --s-12: 12px;
  --s-16: 16px;
  --s-20: 20px;
  --s-24: 24px;
  --s-32: 32px;
  --s-48: 48px;
  --s-64: 64px;
  --s-128: 128px;

  --font: -apple-system, "SF Pro Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Cascadia Mono", Consolas, "Andale Mono", "Lucida Console", Monaco, "Courier New", monospace;

  --nav-h: 44px;
  --container: 1024px;
  --gutter: var(--s-24);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + var(--s-16));
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--link);
  text-decoration: underline;
  transition: color var(--dur-fast) ease-in-out;
}

a:hover {
  text-decoration: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

svg {
  display: block;
}

/* Icônes inline : tracé sur currentColor */
.btn__icon,
.card__icon svg,
.extra__icon svg,
.dark-card__title svg,
.check-list__icon svg,
.device__status svg,
.device__tab svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

/* ---------- Utilitaires ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.display {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.2;
}

.h1 {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.2;
}

.caption {
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-secondary);
}

.eyebrow {
  margin-bottom: var(--s-12);
  color: var(--primary);
  font-size: 17px;
  font-weight: 600;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-16);
  z-index: 10001;
  padding: var(--s-8) var(--s-16);
  background: var(--surface);
  color: var(--primary);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}

.skip-link:focus {
  top: calc(var(--nav-h) + var(--s-8));
}

/* ---------- Boutons & pilules ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-8);
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.btn--primary {
  background: var(--primary);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
}

/* Second bouton de téléchargement (Android) : même poids, contour au lieu d'aplat */
.btn--secondary {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary);
}

.btn--secondary:hover {
  background: var(--primary-tint);
  color: var(--primary-hover);
}

.btn--lg {
  min-height: 48px;
  padding: 12px 24px;
}

.btn__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 15px;
  border-radius: var(--r-full);
  font-size: 17px;
  line-height: 1.2;
  white-space: nowrap;
}

.pill--muted {
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: transparent;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: opacity var(--dur-fast) ease-in-out;
}

.nav__brand:hover {
  opacity: 0.7;
}

.nav__mark {
  flex: 0 0 auto;
}

.hero__logo {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto var(--s-24);
}

@media (max-width: 734px) {
  .hero__logo {
    width: 96px;
    height: 96px;
  }
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-32);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
  transition: opacity var(--dur-fast) ease-in-out;
}

.nav__link:hover {
  opacity: 0.7;
}

.nav__link--cta {
  min-height: 24px;
  padding: 0 var(--s-12);
  border-radius: var(--r-full);
  background: var(--primary);
  color: #ffffff;
  transition: background-color var(--dur) var(--ease);
}

.nav__link--cta:hover {
  opacity: 1;
  background: var(--primary-hover);
}

/* Bouton hamburger (mobile) */
.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: var(--r-sm);
}

.nav__toggle-bar {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: var(--r-full);
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}

.nav__toggle-bar:nth-child(1) {
  top: 18px;
}

.nav__toggle-bar:nth-child(2) {
  top: 25px;
}

.nav--open .nav__toggle-bar:nth-child(1) {
  top: 21.5px;
  transform: rotate(45deg);
}

.nav--open .nav__toggle-bar:nth-child(2) {
  top: 21.5px;
  transform: rotate(-45deg);
}

.nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.3);
}

.nav__overlay[hidden] {
  display: none;
}

/* ---------- Sections ---------- */
.section {
  padding: var(--s-64) 0;
}

.section--alt {
  background: var(--surface);
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-dark);
}

.section__head {
  max-width: 720px;
  margin: 0 auto var(--s-48);
  text-align: center;
}

.section__lead {
  margin-top: var(--s-16);
  font-size: 21px;
  line-height: 1.3;
  color: var(--text-secondary);
}

.section--dark .section__lead {
  color: var(--text-dark-secondary);
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--s-64) 0 var(--s-64);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-48);
  align-items: center;
}

.hero__copy {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.hero__lead {
  margin-top: var(--s-20);
  font-size: 21px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-12);
  margin-top: var(--s-32);
}

.hero__note {
  margin-top: var(--s-16);
}

/* Maquette décorative */
.hero__visual {
  display: flex;
  justify-content: center;
}

.device {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  font-size: 15px;
  line-height: 1.4;
}

.device__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-8);
  padding: var(--s-12) var(--s-16);
  border-bottom: 1px solid var(--border);
  background: var(--surface-light);
}

.device__title {
  font-weight: 600;
}

.device__status {
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
  padding: 2px var(--s-8);
  border-radius: var(--r-full);
  background: var(--primary-tint);
  color: var(--primary);
  font-size: 12px;
  line-height: 1.3;
}

.device__status svg {
  width: 12px;
  height: 12px;
}

.device__chat {
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
  padding: var(--s-16);
  min-height: 260px;
}

.device__sys {
  align-self: center;
  padding: 2px var(--s-8);
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-secondary);
}

.bubble {
  position: relative;
  max-width: 82%;
  padding: var(--s-8) var(--s-12);
  border-radius: 11px;
}

.bubble--in {
  align-self: flex-start;
  background: var(--bg);
  color: var(--text);
}

.bubble--out {
  align-self: flex-end;
  background: var(--primary);
  color: #ffffff;
}

.bubble__meta {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.3;
  opacity: 0.8;
  text-align: right;
}

.device__vpn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  align-self: center;
  margin-top: var(--s-8);
  padding: var(--s-4) var(--s-12);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-secondary);
  background: var(--surface);
}

.device__vpn-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--primary);
}

.device__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  background: var(--surface-light);
}

.device__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-8) var(--s-4) var(--s-12);
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-secondary);
}

.device__tab svg {
  width: 22px;
  height: 22px;
}

.device__tab--active {
  color: var(--primary);
}

/* ---------- Cartes fonctionnalités ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-24);
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
  padding: var(--s-32);
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur) var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--s-4);
  border-radius: var(--r-full);
  background: var(--primary-tint);
  color: var(--primary);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__title {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

.card__list {
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
  margin-top: var(--s-4);
  padding-top: var(--s-16);
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.4;
}

.card__list li {
  position: relative;
  padding-left: var(--s-20);
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--primary);
}

.card__note {
  margin-top: var(--s-4);
}

/* Étiquette « 1.0.2 » des nouveautés d'une liste */
.new-tag {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-left: var(--s-4);
  padding: 0 var(--s-8);
  border-radius: var(--r-full);
  background: var(--primary-tint);
  color: var(--primary);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  vertical-align: 1px;
}

/* ---------- Ce qui n'est pas (encore) là ---------- */
.limits {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-16);
}

.limit {
  padding: var(--s-20) var(--s-24);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.limit__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-8);
  margin-bottom: var(--s-8);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.limit__tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 var(--s-8);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
}

.limit p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.4;
}

.limits__note {
  margin-top: var(--s-24);
  text-align: center;
}

/* ---------- Rien ne traîne (éphémères, suppression, partage d'écran, mises à jour) ---------- */
.extras {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-24);
}

.extra {
  display: flex;
  gap: var(--s-16);
  padding: var(--s-24);
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.extra__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: var(--primary-tint);
  color: var(--primary);
}

.extra__icon svg {
  width: 22px;
  height: 22px;
}

.extra__body {
  min-width: 0;
}

.extra__title {
  margin-bottom: var(--s-8);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

.extra__body p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.4;
}

.extra__body .extra__note {
  margin-top: var(--s-12);
  font-size: 12px;
  line-height: 1.3;
}

.opts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-8);
  margin-top: var(--s-16);
}

.opt {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: var(--s-4) var(--s-12);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

.opt--on {
  border-color: transparent;
  background: var(--primary-tint);
  color: var(--link);
  font-weight: 600;
}

/* ---------- Étapes ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-24);
  counter-reset: step;
}

.step {
  display: flex;
  gap: var(--s-16);
  padding: var(--s-24);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: var(--primary);
  color: #ffffff;
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
}

.step__title {
  margin-bottom: var(--s-8);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

.step__body p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.4;
}

.step__body code {
  color: var(--text);
}

/* ---------- Confidentialité (section sombre) ---------- */
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-24);
}

.dark-card {
  padding: var(--s-32);
  background: var(--bg-dark-alt);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-md);
  color: var(--text-inverse);
}

.dark-card__title {
  display: flex;
  align-items: center;
  gap: var(--s-12);
  margin-bottom: var(--s-16);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
}

.dark-card__title svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: var(--link-accent);
}

.dark-card p {
  color: var(--text-dark-secondary);
}

.dark-card__note {
  margin-top: var(--s-16);
  font-size: 15px;
  line-height: 1.4;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
}

.check-list__item {
  display: flex;
  gap: var(--s-12);
  color: var(--text-dark-secondary);
  font-size: 15px;
  line-height: 1.4;
}

.check-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: -2px;
  border-radius: var(--r-full);
}

.check-list__icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.check-list__item--yes .check-list__icon {
  background: rgba(41, 151, 255, 0.18);
  color: var(--link-accent);
}

.check-list__item--no .check-list__icon {
  background: rgba(245, 245, 247, 0.1);
  color: var(--text-dark);
}

.check-list__item--no span:last-child {
  color: var(--text-dark);
}

/* Démo « cc » → deux chiffrés différents */
.cipher {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-24);
  align-items: center;
}

/* Colonne de texte : `min-width: 0` pour qu'un mot long ne pousse pas la grille */
.cipher__text {
  min-width: 0;
}

.cipher__demo {
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
  padding: var(--s-20);
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-sm);
}

.cipher__rows {
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
}

.cipher__row {
  display: grid;
  grid-template-columns: 44px 24px 1fr;
  align-items: center;
  gap: var(--s-8);
}

.cipher__plain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border-radius: var(--r-full);
  background: var(--primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.cipher__arrow {
  text-align: center;
  color: var(--text-dark-secondary);
}

.cipher__ct {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: var(--s-4) var(--s-12);
  border-radius: var(--r-sm);
  background: var(--bg-dark-alt);
  color: var(--link-accent);
  font-size: 15px;
}

.cipher__caption {
  color: var(--text-dark-secondary);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-8);
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: var(--s-4) var(--s-12);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-full);
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.3;
}

/* VPN multi-saut : ce que voit chaque maillon (FAI, entrée, sortie, sites). Variables seulement. */
.hops {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-12);
  margin-top: var(--s-20);
  counter-reset: hop;
}

.hop {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
  min-width: 0;
  padding: var(--s-20);
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-sm);
  counter-increment: hop;
}

.hop__name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
}

/* Numéro du maillon, toujours sur sa propre ligne : même rythme dans les quatre colonnes. */
.hop__name::before {
  content: counter(hop);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-bottom: var(--s-8);
  border-radius: var(--r-full);
  background: var(--primary);
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 600;
}

.hop__place {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  color: var(--link-accent);
}

.dark-card .hop__line {
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-dark-secondary);
}

.hop__label {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--link-accent);
}

.hop__label--no {
  color: var(--text-dark);
}

.dark-card code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--text-dark);
}

/* ---------- Télécharger ---------- */
.download {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--s-48) var(--s-24);
  text-align: center;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}

.download__mark {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto var(--s-24);
}

.download__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-12);
  margin-top: var(--s-32);
}

.download__note {
  margin-top: var(--s-16);
}

/* Installation Android + empreinte du certificat de signature */
.download__android {
  max-width: 560px;
  margin: var(--s-32) auto 0;
  padding: var(--s-20) var(--s-24);
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.download__subtitle {
  margin-bottom: var(--s-12);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.download__steps {
  display: grid;
  gap: var(--s-8);
  padding-left: var(--s-20);
  list-style: decimal;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.4;
}

.download__cert {
  margin-top: var(--s-16);
}

.fingerprint {
  display: block;
  min-height: 36px;
  margin-top: var(--s-8);
  padding: var(--s-8) var(--s-12);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-all;
  -webkit-user-select: all;
  user-select: all;
}

/* ---------- Footer ---------- */
.footer {
  padding: var(--s-32) 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  font-weight: 600;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-8) var(--s-24);
}

.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--text-secondary);
  font-size: 12px;
  text-decoration: none;
}

.footer__nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer__legal {
  color: var(--text-secondary);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Mobile large et en dessous (≤ 734px) */
@media (max-width: 734px) {
  :root {
    --gutter: var(--s-16);
  }

  .display {
    font-size: 40px;
  }

  .h1 {
    font-size: 28px;
  }

  .section {
    padding: var(--s-32) 0;
  }

  .section__head {
    margin-bottom: var(--s-32);
  }

  .section__lead,
  .hero__lead {
    font-size: 19px;
  }

  .hero {
    padding: var(--s-48) 0 var(--s-32);
  }

  .hero__actions .btn,
  .download__actions .btn {
    width: 100%;
  }

  .hero__actions .pill,
  .download__actions .pill {
    width: 100%;
    justify-content: center;
  }

  .card,
  .dark-card {
    padding: var(--s-24);
  }

  .extra {
    flex-direction: column;
    gap: var(--s-12);
    padding: var(--s-20);
  }

  .download {
    padding: var(--s-32) var(--s-16);
  }

  .download__android {
    padding: var(--s-16);
  }

  /* Navigation mobile : rideau sous la barre */
  .nav__toggle {
    display: block;
  }

  .nav__menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: max-height var(--dur) var(--ease), border-color var(--dur) var(--ease);
  }

  .nav--open .nav__menu {
    max-height: 320px;
    border-bottom-color: rgba(0, 0, 0, 0.08);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-8) var(--gutter) var(--s-16);
  }

  .nav__link {
    width: 100%;
    min-height: 48px;
    font-size: 17px;
    border-bottom: 1px solid var(--border);
  }

  .nav__link--cta {
    margin-top: var(--s-12);
    justify-content: center;
    border-bottom: 0;
    border-radius: var(--r-md);
    min-height: 44px;
  }
}

/* Tablette (≥ 735px) : étapes et confidentialité sur deux colonnes */
@media (min-width: 735px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .extras {
    grid-template-columns: repeat(2, 1fr);
  }

  .extra--wide {
    grid-column: 1 / -1;
  }

  .privacy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .limits {
    grid-template-columns: repeat(2, 1fr);
  }

  .dark-card--wide {
    grid-column: 1 / -1;
  }

  .hops {
    grid-template-columns: repeat(2, 1fr);
  }

  .cipher {
    grid-template-columns: 1.2fr 1fr;
  }

  .footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .footer__legal {
    flex-basis: 100%;
  }
}

/* Desktop (≥ 1068px) : hero en deux colonnes, étapes sur quatre */
@media (min-width: 1068px) {
  .hero {
    padding: var(--s-128) 0 var(--s-64);
  }

  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--s-64);
  }

  .hero__copy {
    text-align: left;
    margin: 0;
  }

  .hero__logo {
    margin-left: 0;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  /* Colonne du hero trop étroite pour deux boutons côte à côte : empilés, même largeur */
  .hero__actions .btn {
    min-width: 280px;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .extras {
    grid-template-columns: repeat(3, 1fr);
  }

  .extra {
    flex-direction: column;
  }

  .extra--wide {
    grid-column: span 2;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .step {
    flex-direction: column;
  }

  .limits {
    grid-template-columns: repeat(3, 1fr);
  }

  .hops {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Sans JavaScript : menu toujours visible ---------- */
.no-js .nav__toggle {
  display: none;
}

@media (max-width: 734px) {
  .no-js .nav__menu {
    position: static;
    max-height: none;
    background: transparent;
    border: 0;
  }

  .no-js .nav__inner {
    height: auto;
    flex-wrap: wrap;
    padding-top: var(--s-8);
  }

  .no-js .nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--s-16);
    padding: 0 0 var(--s-8);
  }

  .no-js .nav__link {
    width: auto;
    min-height: 32px;
    font-size: 15px;
    border-bottom: 0;
  }

  .no-js .nav__link--cta {
    margin-top: 0;
    min-height: 32px;
    padding: 0 var(--s-12);
    border-radius: var(--r-full);
  }
}

/* ---------- Impression ---------- */
@media print {
  .nav,
  .nav__overlay,
  .hero__visual,
  .skip-link {
    display: none;
  }

  .section--dark,
  .dark-card {
    background: #ffffff;
    color: #000000;
  }
}
