/* ============================================================
   Lockd — Landing page
   ============================================================ */

:root {
  --brand-start: #4A5DF7;
  --brand-end: #38BDF8;
  --brand-mid: #4C6FEF;

  --ink-900: #0B0F1A;
  --ink-800: #131A2A;
  --ink-700: #1D2540;
  --ink-600: #303B5C;
  --ink-500: #545F82;
  --ink-400: #7C87AC;
  --ink-300: #A6AFCB;
  --ink-100: #E9ECF7;
  --ink-050: #F5F6FB;

  --paper: #FFFFFF;
  --paper-tint: #F6F7FC;
  --border: #E4E7F2;

  --success: #17B26A;
  --danger: #F04438;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(19, 26, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(19, 26, 42, 0.10);
  --shadow-lg: 0 24px 64px rgba(19, 26, 42, 0.16);
  --shadow-glow: 0 0 0 1px rgba(255,255,255,0.06), 0 24px 64px rgba(74,93,247, 0.35);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ---- Scroll reveal ---- */
.reveal-rise {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
}
.reveal-rise.is-visible { opacity: 1; transform: translateY(0); }
.reveal-fade {
  opacity: 0;
  transition: opacity .6s cubic-bezier(.22,1,.36,1);
}
.reveal-fade.is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .reveal-rise, .reveal-fade { opacity: 1; transform: none; transition: none; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-800);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink-900);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

img, svg { display: block; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 760px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  color: #fff;
  box-shadow: 0 8px 20px rgba(74,93,247, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(74,93,247, 0.45); }
.btn--light {
  background: #fff;
  color: var(--brand-start);
  box-shadow: var(--shadow-md);
}
.btn--light:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 20px; font-size: 14px; }

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease, top .3s ease;
}
.nav--scrolled {
  top: 0;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand__mark { display: flex; flex-shrink: 0; }
/* Le badge App Store vit dans la barre de nav, à côté du logo, à toutes les
   tailles — le hero ne le montre plus, donc rien ne le remplace ailleurs. */
.nav__store-badge { display: inline-flex; transition: transform .18s ease; }
.nav__store-badge:hover { transform: translateY(-2px); }
.nav__store-badge img { height: 34px; width: auto; display: block; border-radius: 8px; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  color: #fff;
  letter-spacing: -0.01em;
  transition: color .3s ease;
}
.nav--scrolled .brand__name { color: var(--ink-900); }
.brand__name--lg { font-size: 24px; }
.nav__links {
  /* Centré dans la barre, indépendamment de la largeur du logo ou du badge
     de chaque côté — un centrage par marges suivrait leur largeur, pas le
     centre réel de la barre. */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--ink-050);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}
.nav__links a {
  position: relative;
  z-index: 1;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-600);
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--ink-900); }

/* Effet « roulette » : chaque lettre est une fenêtre qui laisse défiler une
   colonne de caractères verticalement avant de s'arrêter sur la bonne. */
.rls-char {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  height: 1.4em;
  line-height: 1.4;
  font: inherit;
}
.rls-char__reel {
  display: flex;
  flex-direction: column;
  align-items: center;
  font: inherit;
  transition: transform .5s cubic-bezier(.2,.85,.3,1);
}
/* Chaque case est plus grande que la lettre elle-même : un accent ou une
   hampe ne déborde jamais sur la case voisine dans la colonne. */
.rls-char__reel span { display: block; height: 1.4em; line-height: 1.4; font: inherit; }
.nav__cursor {
  position: absolute;
  top: 4px;
  left: 0;
  z-index: 0;
  height: calc(100% - 8px);
  width: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: left .3s cubic-bezier(.34,1.56,.64,1), width .3s cubic-bezier(.34,1.56,.64,1), opacity .15s ease;
}
.nav__cta { margin-left: 4px; }

/* Bouton "Se déconnecter" : pastille noire à gauche du menu, affiché
   uniquement quand une session est active (voir js/nav-auth.js). */
.nav__logout {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--ink-900);
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .15s ease;
}
.nav__logout svg { flex-shrink: 0; }
.nav__logout:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15,17,26,0.3); }
.nav__logout:active:not(:disabled) { transform: translateY(0); }
.nav__logout:disabled { opacity: .65; cursor: not-allowed; }
.nav__logout[hidden] { display: none; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none;
  border-radius: 8px;
}
.nav__burger span {
  display: block; width: 20px; height: 2px;
  background: #fff; margin: 0 auto;
  transition: transform .2s ease, opacity .2s ease, background .3s ease;
}
.nav--scrolled .nav__burger span { background: var(--ink-800); }
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--paper);
}
.nav__mobile a {
  padding: 12px 4px;
  font-weight: 600;
  color: var(--ink-700);
  border-bottom: 1px solid var(--ink-050);
}
.nav__mobile .btn { margin-top: 12px; }
.nav__mobile.open { display: flex; }
.nav__mobile-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 4px;
  font-weight: 600;
  font-size: 15px;
  text-align: left;
  color: var(--ink-700);
  border-bottom: 1px solid var(--ink-050);
  background: none;
  border-radius: 0;
  cursor: pointer;
}
.nav__mobile-logout svg { flex-shrink: 0; }
.nav__mobile-logout:disabled { opacity: .6; cursor: not-allowed; }
.nav__mobile-logout[hidden] { display: none; }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 160px 0 140px;
  background: var(--ink-900);
  color: #fff;
}
.hero__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 720px;
  background:
    radial-gradient(60% 60% at 20% 20%, rgba(74,93,247,0.55), transparent 70%),
    radial-gradient(50% 50% at 85% 15%, rgba(56,189,248,0.35), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #C7D2FE;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.25);
}

.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 22px;
}

.hero__rotating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-300);
  margin: 0 0 20px;
}
.rotating-pill {
  display: inline-flex;
  align-items: center;
  height: 1.7em;
  overflow: hidden;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(56,189,248,0.14);
}
.rotating-pill__word {
  display: inline-block;
  font-weight: 700;
  color: #7DD3FC;
  white-space: nowrap;
  transform: translateY(0);
  opacity: 1;
  transition: transform .32s cubic-bezier(.22,1,.36,1), opacity .32s ease;
}
.rotating-pill__word.is-leaving { transform: translateY(-0.6em); opacity: 0; }
.rotating-pill__word.is-entering { transform: translateY(0.6em); opacity: 0; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .rotating-pill__word { transition: none; }
}

.hero__lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-300);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero__lead strong { color: #fff; }

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-badge {
  display: inline-flex;
  align-self: flex-start;
  transition: transform .18s ease;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 58px; width: auto; display: block; border-radius: 12px; }

.auth-buttons {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  gap: 4px;
  height: 58px;
}
.auth-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .15s ease, opacity .15s ease;
}
.auth-btn:hover { transform: translateY(-1px); }
.auth-btn--primary {
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  color: #fff;
}
.auth-btn--ghost {
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
}

.waitlist-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-400);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-300);
  font-weight: 500;
}
.hero__trust-item svg { color: #6EE7B7; flex-shrink: 0; }

/* ---- App fan (capture Photoroom, fond déjà détouré) ---- */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 440px;
}
.app-fan {
  width: 100%;
  max-width: 560px;
  height: auto;
  filter: drop-shadow(0 24px 64px rgba(0,0,0,0.35));
  /* Agrandi visuellement sans toucher au flux : le texte à côté ne
     bouge pas, l'image déborde juste un peu de sa colonne. */
  transform: scale(1.6);
}

/* ---- Container scroll (carte qui se redresse au défilement) ---- */
.hero { padding: 0; overflow: clip; } /* clip et non hidden : hidden casse le sticky */
.container-scroll__intro { position: relative; padding: 0 24px; }
.container-scroll__header {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}
.container-scroll__header .hero__lead { margin-left: auto; margin-right: auto; max-width: 620px; }
.container-scroll__header .store-badges { justify-content: center; }
.container-scroll {
  position: relative;
  height: 230vh;
}
.container-scroll__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  width: 100%;
}
.hero-split .container-scroll__header { text-align: left; margin: 0; }
.hero-split .hero__lead { margin-left: 0; }
.hero-split .store-badges { justify-content: flex-start; }
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; text-align: center; gap: 0; }
  .hero-split .container-scroll__header { text-align: center; }
  .hero-split .hero__lead { margin-left: auto; }
  .hero-split .store-badges { justify-content: center; }
  /* Le titre + le texte sont plus hauts que le carrousel du téléphone :
     la case fixée à 100vh + centrée + rognée coupait le haut du titre.
     En dessous de 900px, la scène retrouve une hauteur naturelle et laisse
     de la place sous la barre de navigation, fixe et transparente. */
  .container-scroll { height: auto; }
  .container-scroll__stage {
    position: static;
    height: auto;
    overflow: visible;
    display: block;
    padding: 108px 0 40px;
  }
}
.iphone-stage {
  display: flex;
  justify-content: center;
  perspective: 1400px;
  transform-origin: center center;
  perspective-origin: 50% 20%;
}
.iphone {
  --w: 300px; --h: 620px;
  position: relative;
  width: var(--w);
  height: var(--h);
  transform-style: preserve-3d;
  transform-origin: 50% 70%;
  will-change: transform;
  font-family: ui-rounded, "SF Pro Rounded", Inter, system-ui, sans-serif;
  color: #141B3C;
}
.iphone__body {
  position: absolute; inset: 0;
  border-radius: 52px;
  background: linear-gradient(145deg, #5a5f6b, #2b2e35 40%, #1b1d22);
  box-shadow: 0 0 0 2px #74798a inset, 0 40px 80px rgba(0,0,0,.55);
}
.iphone__screen {
  position: absolute; inset: 11px;
  border-radius: 42px;
  background: linear-gradient(180deg, #EFF1FD 0%, #E9F5EE 45%, #FCFAE9 100%);
  transform: translateZ(1px);
}
.iphone__island {
  position: absolute; top: 22px; left: 50%;
  width: 96px; height: 28px; margin-left: -48px;
  border-radius: 20px; background: #000;
  transform: translateZ(2px);
}
.ui-layer {
  position: absolute;
  left: 26px; right: 26px;
  will-change: transform;
}
.ui-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(20,27,60,.06);
  transition: box-shadow .2s;
}
.ui-page {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.ui-page::before {
  content: ""; position: absolute; inset: 11px;
  border-radius: 42px;
  background: linear-gradient(180deg, #EFF1FD 0%, #E9F5EE 45%, #FCFAE9 100%);
  transition: box-shadow .3s;
}
.ui-page[data-i="0"]::before { background: none; }
.iphone.is-lifted .ui-page:not([data-i="0"])::before { box-shadow: 0 30px 50px rgba(5,8,25,.45); }
.ui-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ui-center b { font-size: 15px; }
.ui-center small { font-size: 10px; color: #9AA0A6; max-width: 200px; }
.ui-avatar { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 34px; margin-bottom: 6px; box-shadow: 0 2px 8px rgba(20,27,60,.1); }
.ui-section { font-size: 9px; font-weight: 700; color: #9AA0A6; letter-spacing: .06em; }
.ui-list { padding: 0 12px; }
.ui-list span { display: flex; justify-content: space-between; font-size: 12px; padding: 11px 0; border-bottom: 1px solid #E3E8EE; }
.ui-list span:last-child { border-bottom: 0; }
.ui-list em { font-style: normal; color: #9AA0A6; }
.ui-dots { display: flex; justify-content: center; gap: 5px; }
.ui-dots i { width: 6px; height: 6px; border-radius: 50%; background: #CBD2D9; }
.ui-dots i.on { background: #4A5DF7; }
.ui-sentence { font-size: 22px; font-weight: 700; line-height: 1.2; }
.ui-sentence--sm { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.ui-box { display: inline-grid; place-items: center; width: 48px; height: 36px; border-radius: 10px; border: 1.5px solid #AFC2EE; background: #fff; }
.ui-q { display: block; font-size: 14px; }
.ui-hint { font-size: 10px; color: #9AA0A6; }
.ui-days { display: flex; justify-content: space-between; }
.ui-days i { font-style: normal; width: 30px; height: 30px; border-radius: 9px; background: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.ui-days i.on { background: #4A5DF7; color: #fff; }
.ui-time { padding: 12px; }
.ui-time > b { font-size: 13px; }
.ui-seg { display: flex; gap: 6px; margin: 8px 0; }
.ui-seg span { font-size: 9px; padding: 4px 9px; border-radius: 999px; background: #E7EAEF; color: #9AA0A6; }
.ui-seg span.on { background: #F2F0FE; color: #4A5DF7; border: 1px solid #AFC2EE; }
.ui-wheel { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.ui-wheel small { font-size: 11px; color: #B6BCC3; }
.ui-wheel b { font-size: 17px; padding: 6px; border-radius: 10px; border: 1px solid #E3E8EE; }
.ui-btn { height: 46px; border-radius: 23px; display: grid; place-items: center; font-size: 14px; font-weight: 600; color: #fff; background: linear-gradient(135deg, #4A5DF7, #3E7BD6); }
.ui-btn--off { background: #E7EAEF; color: #9AA0A6; }
.ui-check { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 36px; color: #fff; background: linear-gradient(135deg, #4A5DF7, #3E7BD6); box-shadow: 0 10px 30px rgba(74,93,247,.4); }
.ui-big { font-size: 22px !important; }
.ui-status { top: 24px; display: flex; justify-content: space-between; padding: 0 10px; font-size: 13px; font-weight: 600; }
.ui-status__icons { font-size: 8px; letter-spacing: 1px; }
.ui-flow {
  position: absolute; top: 58px; left: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.ui-title strong { display: block; font-size: 24px; font-weight: 700; line-height: 1.1; }
.ui-title small { font-size: 10px; color: #9AA0A6; }
.ui-sub { font-size: 12px; font-weight: 700; margin-top: 4px; }
.ui-heat { padding: 10px; }
.ui-heat__grid { display: grid; grid-template-columns: 10px repeat(12, 1fr); gap: 3px; align-items: center; }
.ui-heat__grid span { font-size: 7px; color: #9AA0A6; }
.ui-heat__grid i { aspect-ratio: 1; border-radius: 2px; background: #E3E8EE; }
.ui-heat__legend { margin-top: 7px; }
.ui-heat__legend em:not(.k):not(.f) { background: #E3E8EE; }
.ui-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.ui-stats .ui-card { padding: 8px 9px; }
.ui-stats b { display: block; font-size: 17px; line-height: 1.1; }
.ui-stats small { font-size: 8px; color: #9AA0A6; }
.ui-label { font-size: 13px; font-weight: 700; margin-top: 2px; }
.ui-goal { padding: 10px; border: 1px solid #F1D9B5; }
.ui-goal--2 { border-color: #E3E8EE; }
.ui-goal b { display: block; font-size: 12px; margin: 5px 0 2px; }
.ui-goal small { font-size: 9px; color: #9AA0A6; }
.ui-heat__grid i.k, .ui-heat__legend em.k { background: #2E9E6B; }
.ui-heat__grid i.f, .ui-heat__legend em.f { background: #D9544D; }
.ui-heat__legend { font-size: 9px; color: #9AA0A6; display: flex; align-items: center; gap: 4px; }
.ui-heat__legend em { width: 7px; height: 7px; border-radius: 2px; margin-left: 4px; }
.ui-pill { font-size: 9px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #FCEFDD; color: #CE8524; }
.ui-pill--ok { background: #F2F0FE; color: #4A5DF7; }
.ui-tabbar {
  bottom: 22px; left: 40px; right: 40px;
  height: 46px; border-radius: 23px;
  background: rgba(255,255,255,.9);
  display: flex; justify-content: space-around; align-items: center;
  font-size: 16px; color: #9AA0A6;
  box-shadow: 0 4px 14px rgba(20,27,60,.12);
}
.ui-tabbar .on { color: #141B3C; }
.ui-tabbar .plus { font-size: 22px; }
@media (max-width: 900px) {
  /* Le rétrécissement de l'iPhone est un `transform: scale()`, qui ne change
     jamais la place qu'un élément réserve dans la mise en page : sans cette
     hauteur fixe, la grille lui gardait ses 620px pleine taille, entièrement
     vides sous le téléphone visuellement réduit. */
  .iphone-stage { height: 300px; overflow: visible; }
}

/* ============ Strip ============ */
.strip {
  background: var(--ink-050);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.strip__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.strip__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-400);
}
.strip__items {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-600);
}
.strip__items .dot { color: var(--ink-300); }

/* ============ Sections ============ */
.section { padding: 108px 0; }
.section--tint { background: var(--paper-tint); }

.section__head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.kicker {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.section__head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 16px;
}
.section__lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-500);
}

.exemples{
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-500);
}


/* ---- Steps ---- */
.steps__timeline {
  display: none;
}
@media (min-width: 900px) {
  .steps__timeline {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
    padding: 0 4px;
  }
}
.steps__dot {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  transform: scale(0);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.steps__seg {
  flex: 1;
  height: 2px;
  margin: 0 -1px;
  background: rgba(74,93,247,0.22);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.steps__seg--fade { background: linear-gradient(to right, rgba(74,93,247,0.22), transparent); }
.steps__timeline.is-shown .steps__dot:nth-child(1) { transform: scale(1); }
.steps__timeline.is-shown .steps__dot:nth-child(3) { transform: scale(1); transition-delay: .16s; }
.steps__timeline.is-shown .steps__dot:nth-child(5) { transform: scale(1); transition-delay: .32s; }
.steps__timeline.is-shown .steps__dot:nth-child(7) { transform: scale(1); transition-delay: .48s; }
.steps__timeline.is-shown .steps__seg:nth-child(2) { transform: scaleX(1); transition-delay: .1s; }
.steps__timeline.is-shown .steps__seg:nth-child(4) { transform: scaleX(1); transition-delay: .26s; }
.steps__timeline.is-shown .steps__seg:nth-child(6) { transform: scaleX(1); transition-delay: .42s; }
@media (prefers-reduced-motion: reduce) {
  .steps__dot, .steps__seg { transition: none; }
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.step__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 18px;
  line-height: 1.3;
  /* Réserve la hauteur de 2 lignes : les titres qui tiennent sur une
     seule ligne n'avancent pas le paragraphe en dessous, donc les 4
     cartes restent alignées peu importe la longueur du titre. */
  min-height: 2.6em;
  margin-bottom: 10px;
}
.step p { font-size: 14.5px; line-height: 1.6; color: var(--ink-500); }

/* ---- Tilt (cards that lean toward the cursor, with a following glow) ----
   The mousemove handler in main.js only writes CSS variables — the actual
   look (perspective, glow, resting values) lives here, so a card is correct
   before any interaction and even with JS disabled. */
.tilt {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-lift: 0px;
  --glow-x: 50%;
  --glow-y: 50%;
  --glow-opacity: 0;
  position: relative;
  overflow: hidden;
  transform: perspective(700px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--tilt-lift));
  transition: transform .12s ease-out, box-shadow .22s ease, border-color .22s ease;
  will-change: transform;
}
.tilt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--glow-x) var(--glow-y), rgba(74,93,247,0.14), transparent 70%);
  opacity: var(--glow-opacity);
  transition: opacity .22s ease;
  pointer-events: none;
}
.tilt > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .tilt { transform: none; transition: box-shadow .22s ease, border-color .22s ease; }
  .tilt::before { display: none; }
}

/* ---- Goal grid ---- */
.goal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.goal-tile {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
}
.goal-tile__icon {
  display: flex;
  width: 28px;
  height: 28px;
  color: var(--brand-start);
  margin-bottom: 14px;
}
.goal-tile__icon svg { width: 100%; height: 100%; }
.goal-tile h4 { font-size: 15.5px; margin-bottom: 6px; }
.goal-tile p { font-size: 13.5px; line-height: 1.55; color: var(--ink-500); }

/* ---- Why ---- */
.why__grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.why__copy h2 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 8px;
  line-height: 1.15;
}
.why__headline {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-start);
  line-height: 1.4;
  margin-bottom: 12px;
}
.why__list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.why__list li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-600);
  padding-left: 26px;
  position: relative;
}
.why__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
}
.why__list strong { color: var(--ink-900); }

.why__visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stat-card {
  background: var(--ink-900);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 100% 0%, rgba(74,93,247,0.4), transparent 60%);
}
.stat-card--alt {
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
}
.stat-card__value {
  position: relative;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 34px;
  margin-bottom: 6px;
}
.stat-card__label {
  position: relative;
  font-size: 13.5px;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
  max-width: 320px;
}

/* ---- Trust grid ---- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.trust-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.trust-card__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--ink-050);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-start);
  margin-bottom: 16px;
}
.trust-card__icon svg { width: 22px; height: 22px; }
.trust-card h4 { font-size: 15.5px; margin-bottom: 8px; }
.trust-card p { font-size: 13.5px; color: var(--ink-500); line-height: 1.6; }

/* ---- FAQ ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 24px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink-900);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-400);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item__body { padding: 0 0 20px; }
.faq-item__body p { font-size: 14.5px; line-height: 1.65; color: var(--ink-500); }

/* ============ CTA ============ */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  padding: 100px 0;
  text-align: center;
  color: #fff;
}
.cta__glow {
  position: absolute;
  inset: -30% 20% auto 20%;
  height: 480px;
  background: radial-gradient(60% 60% at 50% 30%, rgba(74,93,247,0.55), transparent 70%);
  filter: blur(50px);
}
.cta__inner { position: relative; }
.cta h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 14px;
}
.cta p {
  color: var(--ink-300);
  font-size: 16.5px;
  max-width: 480px;
  margin: 0 auto 34px;
}
/* ---- Contact ---- */
.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ============ Footer ============ */
.footer {
  background: var(--ink-900);
  color: var(--ink-300);
  padding: 64px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer .brand__name { color: #fff; }
.footer__tagline {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-400);
  max-width: 240px;
  line-height: 1.5;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__colTitle {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-400);
  margin-bottom: 4px;
}
.footer__col a {
  font-size: 14px;
  color: var(--ink-300);
  transition: color .15s ease;
}
.footer__col a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 12.5px;
  color: var(--ink-500);
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { min-height: 460px; margin-top: 24px; }
  .why__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .goal-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  /* `.brand` porte `margin-right: auto` pour pousser le pill de nav vers la
     droite en desktop ; sur mobile ce pill n'existe plus, donc cette marge
     rejetait aussi le badge tout contre le burger, loin du logo. On la
     déplace sur le badge lui-même : il reste collé à « Lockd », et c'est
     lui qui repousse le burger. */
  .brand { margin-right: 0; }
  .nav__store-badge { margin-right: auto; }
  .nav__store-badge img { height: 30px; }
  .section { padding: 72px 0; }
  .hero { padding: 96px 0 88px; }
  .steps { grid-template-columns: 1fr; }
  .goal-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; gap: 28px; }
  /* `.store-badge` et `.auth-buttons` s'auto-alignent à gauche
     (`align-self: flex-start`) pour un rangement en ligne ; empilés en
     colonne ici, il leur faut un centrage explicite, sinon ils restent
     collés à gauche sous un texte, lui, centré. */
  .store-badges { flex-direction: column; align-items: center; }
  .store-badge { justify-content: center; align-self: center; }
  .auth-buttons { align-self: center; }
  .float-badge { display: none; }
  .phone-stack { width: 210px; }
  .phone { width: 210px; height: 457px; }
}

/* ============ Zoom dans « Rien ne se perd » (fin de la section Pourquoi) ============ */
.why-portal { position: relative; }
.gp-overlay { position: fixed; inset: 0; z-index: 40; pointer-events: none; visibility: hidden; }
.gp-overlay.is-on { visibility: visible; }
.gp-overlay__art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* Le zoom (et la fixation qu'il exige) est réservé aux écrans où la section
   tient sur une hauteur d'écran — voir glyph-portal.js pour la raison. */
@media (min-width: 901px) {
  .why-portal > #pourquoi { position: sticky; background: #fff; }
}
/* Après l'écran blanc du zoom, « Confiance » arrive sans grand vide au-dessus. */
#confiance { padding-top: 48px; }

/* Marge sous l'iPhone couché, avant la section blanche suivante. */
.hero { padding-bottom: 120px; }

/* ============ Plus jamais abandonner (pile de cartes qui s'éparpille) ============ */
.stack-spread { position: relative; width: 100%; height: 350vh; background: #ececeb; }
.stack-spread__stage { position: sticky; top: 0; height: 100vh; width: 100%; overflow: hidden; }
.stack-spread__copy {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 24px; text-align: center; pointer-events: none;
  opacity: 0; will-change: transform, opacity;
}
.stack-spread__copy h2 {
  margin: 0; color: #141414;
  font-size: 4.5vw; font-weight: 400; line-height: 1; letter-spacing: -0.025em;
}
.stack-spread__copy h2 span { color: var(--brand-start); }
.stack-spread__cards { position: absolute; inset: 0; z-index: 10; }
.stack-spread__card {
  position: absolute; left: 50%; top: 50%;
  overflow: hidden; border-radius: 8px;
  will-change: transform;
}
.stack-spread__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; }
.stack-spread__hint {
  position: absolute; left: 0; right: 0; bottom: 3vh; z-index: 20;
  display: flex; flex-direction: column; align-items: center; gap: .6vh;
  font-size: max(11px, .8vw); font-weight: 500; text-transform: uppercase; letter-spacing: .2em;
  color: #141414; pointer-events: none;
}
.stack-spread__hint svg { animation: ss-bounce 1s infinite; }
@keyframes ss-bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(.8,0,1,1); }
  50% { transform: none; animation-timing-function: cubic-bezier(0,0,.2,1); }
}
@media (max-width: 768px) {
  .stack-spread__copy h2 { font-size: 10vw; }
  .stack-spread__card { border-radius: 4vw; }
  .stack-spread__hint { bottom: 24px; }
}

/* ============ Comment ça marche : cartes qui s'empilent ============ */
.process { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.process__intro { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-self: start; }
.process__intro h2 { margin: 12px 0 20px; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.process__intro h2 span { color: var(--brand-start); }
.process__intro .section__lead { margin: 0; text-align: left; max-width: 46ch; }
.process__stack {
  min-height: 190vh;
  padding: 48px 0;
  display: flex; flex-direction: column; gap: 32px;
  perspective: 1000px;
}
.process-card {
  /* Chaque carte s'arrête un peu plus bas que la précédente : on voit la pile se former. */
  position: sticky;
  top: calc(96px + var(--i) * 10px);
  transform: translateZ(calc(var(--i) * 10px));
  backface-visibility: hidden;
  padding: 32px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 20px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(15,23,42,.08);
}
.process-card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.process-card__head h3 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.process-card__num { font-size: 24px; font-weight: 800; color: var(--brand-start); }
.process-card p { margin: 0; color: var(--ink-500, #5b6478); line-height: 1.6; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .process__intro { position: static; height: auto; padding-bottom: 16px; }
  .process__stack { min-height: 200vh; }
}
