/* ==========================================================================
   FabStep — feuille de style unique du site
   Charte : fond noir, texte blanc, cartes #1F1F1F, un seul vert (#ABFA3D).
   Typo : Inter (texte) + Instrument Serif italique (mots mis en valeur dans les titres).
   Mise en page « bento » : pilules, cartes de données, grands chiffres.
   Aucune ressource externe : les polices sont servies depuis /assets/fonts.
   ========================================================================== */

/* ---------- 1. Polices auto-hébergées (licence SIL OFL 1.1) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}

/* ---------- 2. Variables de la charte ---------- */
:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #686868;       /* gris de la charte : grands textes et décor uniquement (contraste 3,8:1) */
  --muted-aa: #8c8c8c;    /* gris lisible pour les petits textes (contraste AA, y compris sur les cartes) */
  --card: #1f1f1f;
  --line: #2e2e2e;        /* contours fins (FAQ) : décor, pas du texte */
  --green: #abfa3d;
  --screen: #0e1505;      /* fond des écrans de l'app (maquettes Figma) */

  --radius: 24px;
  --radius-lg: 28px;
  --gutter: 16px;
  --max: 1160px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  color-scheme: dark;
}

/* ---------- 3. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

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

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

a {
  color: var(--green);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* Titres à deux voix : Inter + mots en serif italique (balise <em>) */
.display em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

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

.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;
}

/* Planche de pictogrammes SVG (<symbol>), invisible */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--green);
  color: #000;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Trait séparateur en dégradé (comme dans l'app) */
.rule {
  height: 2px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

/* Pastilles d'état (« En direct », « Haute »…) */
.badge {
  display: inline-block;
  letter-spacing: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green);
  color: #000;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.badge--outline {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px #5a5a5a;
}

/* ---------- 4. En-tête : logo, liens et bouton en pilules ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 12px;
  background: linear-gradient(#000 60%, rgba(0, 0, 0, 0));
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.pill {
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.pill:hover,
.nav a[aria-current="page"]:hover {
  background: var(--green);
  color: #000;
}

/* Le logo reste blanc : pas de fond vert derrière lui */
.brand:hover {
  background: #2a2a2a;
}

.pill--outline {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--text);
}

.pill--outline:hover {
  background: var(--green);
  color: #000;
  box-shadow: inset 0 0 0 1.5px var(--green);
}

.brand {
  padding-inline: 18px;
}

.brand img {
  width: 84px;
  height: auto;
}

.nav {
  order: 3;
  width: 100%;
}

.nav ul {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav ul::-webkit-scrollbar {
  display: none;
}

.nav .pill {
  min-height: 38px;
  padding: 6px 14px;
  font-size: 0.875rem;
}

/* Petits téléphones : 4 pilules en grille 2 × 2, toutes visibles */
@media (max-width: 519px) {
  .nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }

  .nav .pill {
    justify-content: center;
    width: 100%;
  }
}

.nav a[aria-current="page"] {
  background: var(--text);
  color: #000;
}

/* ---------- 5. Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #000;
  font: 600 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
}

.btn {
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* Survol et focus clavier : bascule franche */
.btn:not([disabled]):hover,
.btn:not([disabled]):focus-visible {
  text-decoration: none;
  background: var(--text);
  color: #000;
}

.btn--light:not([disabled]):hover,
.btn--light:not([disabled]):focus-visible {
  background: var(--green);
  color: #000;
}

/* Sur le bloc vert, le bouton noir passe au blanc (un vert sur vert serait invisible) */
.btn--dark:not([disabled]):hover,
.btn--dark:not([disabled]):focus-visible {
  background: var(--text);
  color: #000;
}

.btn--light {
  background: var(--text);
}

.btn--dark {
  background: #000;
  color: var(--text);
}

/* Bouton « Bientôt » : désactivé mais lisible */
.btn[disabled] {
  cursor: default;
  filter: none;
}

.btn svg {
  flex: none;
}

/* Badge officiel Apple « Télécharger dans l'App Store » (à activer le jour de la sortie).
   Règles Apple : ne pas modifier, animer ni ajouter d'effet ; marge libre d'au moins 1/4 de sa hauteur. */
.store-badge {
  display: inline-block;
  margin: 13px;
  line-height: 0;
  border-radius: 9px;
}

.store-badge img {
  width: auto;
  height: 52px;
}

/* ---------- 6. Sections ---------- */
.section {
  padding-block: 88px;
}

.section-head {
  max-width: 880px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--card);
  color: var(--green);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.section-title {
  font-size: clamp(2.5rem, 8.5vw, 4.25rem);
}

.section-lead {
  max-width: 34rem;
  margin: 18px auto 0;
  color: var(--muted-aa);
  font-size: 1.125rem;
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip; /* coupe tout débordement dû aux effets 3D, sans créer de zone de défilement */
  padding-block: 40px;
  text-align: center;
}

/* Trame de points discrète, fondue vers les bords */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
}

.hero h1 {
  font-size: clamp(3.25rem, 14vw, 6.5rem);
  line-height: 0.98;
}

.hero h1 em {
  color: var(--green);
}

.hero-sub {
  max-width: 36rem;
  margin: 24px auto 0;
  color: var(--muted-aa);
  font-size: 1.125rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  color: var(--muted-aa);
  font-size: 0.875rem;
}

/* ---------- 7 bis. Scène du hero : cartes alignées de part et d'autre des appareils ---------- */
.hero-stage {
  position: relative;
  display: grid;
  gap: 28px;
  max-width: 1080px;
  margin: 56px auto 0;
  text-align: left;
}

/* Lueur verte discrète sous les appareils */
.hero-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 30%;
  z-index: -1;
  width: 60%;
  height: 70%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(171, 250, 61, 0.12), transparent);
  pointer-events: none;
}

.hero-devices {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  perspective: 1400px;
}

/* Groupe incliné en 3D (valeurs --tx / --ty posées par main.js, de -0,5 à 0,5) */
.devices-3d {
  position: relative;
  display: flex;
  align-items: flex-end;
  transform-style: preserve-3d;
}

.hero-stage .phone {
  width: min(250px, 58vw);
}

.hero-stage .watch {
  width: min(150px, 34vw);
  margin-left: -34px;
  margin-bottom: -8px;
}

/* Reflet sur l'écran du téléphone qui suit la souris */
.hero-stage .phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(circle at calc(50% + var(--tx, 0) * 140%) calc(30% + var(--ty, 0) * 90%), rgba(255, 255, 255, 0.16), transparent 42%);
  opacity: var(--glare, 0);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.hero-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* colonnes compressibles : jamais de débordement */
  gap: 12px;
}

.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 176px; /* hauteur commune : colonnes parfaitement symétriques */
  padding: 16px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.sc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 8px;
  color: var(--muted-aa);
  font-size: 0.8125rem;
}

.sc-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sc-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.sc-value small {
  color: var(--muted-aa);
  font-size: 0.8125rem;
  letter-spacing: 0;
}

.sc-foot {
  margin-top: auto; /* le pied se cale toujours en bas de la carte */
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #2c2c2c;
  color: var(--muted-aa);
  font-size: 0.75rem;
}

.sc-foot b {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

.sc-goal {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sc-meter {
  height: 6px;
  border-radius: 6px;
  background: #2c2c2c;
  overflow: hidden;
}

.sc-meter i {
  display: block;
  width: 93%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.ecg.ecg--mini {
  width: 100%;
  height: 34px;
  margin-top: 0;
}

.bars.bars--mini {
  height: 40px;
  gap: 4px;
  margin-top: 0;
}

.bars.bars--mini i {
  border-radius: 4px;
}

/* Bandeau de preuves (lignes fines d'une grille à 1 px) */
.hero-proof {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  max-width: 880px;
  margin: 56px auto 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #262626;
  list-style: none;
}

.hero-proof li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 12px;
  background: #0a0a0a;
}

.hero-proof b {
  color: var(--green);
  font-family: var(--serif);
  font-size: 2.5rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}

.hero-proof span {
  color: var(--muted-aa);
  font-size: 0.875rem;
}

/* ---------- 8. Cadre iPhone : liseré titane fin, bord noir continu avec l'écran ---------- */
.phone {
  position: relative;
  container-type: inline-size; /* les cotes internes suivent la largeur du téléphone */
  aspect-ratio: 9 / 19.5;
  border: 2px solid transparent;
  border-radius: 15% / 7%;
  background:
    linear-gradient(#000, #000) padding-box,
    linear-gradient(150deg, #9c9c98, #3a3a38 20%, #1b1b1a 50%, #454542 80%, #8e8e8a) border-box;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
}

/* Boutons latéraux discrets (volume à gauche, marche/arrêt à droite) */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2c2c2b, #6a6a67);
}

.phone::before {
  top: 24%;
  right: -4px;
  height: 11%;
}

.phone::after {
  top: 19%;
  left: -4px;
  height: 7%;
}

.phone-screen {
  position: absolute;
  inset: 3.2cqw;
  overflow: hidden;
  border-radius: 12.5cqw;
  background: #000;
}

.phone-screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dynamic Island */
.phone-screen::before {
  content: "";
  position: absolute;
  top: 2.6cqw;
  left: 50%;
  z-index: 2;
  width: 31%;
  height: 8.2cqw;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #000;
}

/* ---------- 9. Cadre Apple Watch Ultra : titane fin, écran « OLED » fondu dans le noir ---------- */
.watch {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 0.87;
  border: 2px solid transparent;
  border-radius: 24% / 21%;
  background:
    linear-gradient(#000, #000) padding-box,
    linear-gradient(150deg, #a3a39f, #3f3f3d 22%, #1c1c1b 52%, #4a4a47 80%, #92928e) border-box;
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.85);
}

/* Couronne crantée */
.watch::after {
  content: "";
  position: absolute;
  top: 24%;
  right: -4.2%;
  width: 4.2%;
  height: 17%;
  border-radius: 2px 5px 5px 2px;
  background: repeating-linear-gradient(0deg, #232322 0 1.5px, #6b6b67 1.5px 3px);
}

/* Bouton latéral */
.watch::before {
  content: "";
  position: absolute;
  top: 52%;
  right: -2.8%;
  width: 2.8%;
  height: 15%;
  border-radius: 2px 4px 4px 2px;
  background: linear-gradient(90deg, #2c2c2b, #6a6a67);
}

.watch-screen {
  position: absolute;
  top: 6.2cqw;
  bottom: 6.2cqw;
  left: 7cqw;
  right: 7cqw;
  container-type: inline-size;
  overflow: hidden;
  border-radius: 17cqw;
  background: #000;
}

/* ---------- 10. Fonctionnalités : grille « bento » ---------- */
.bento {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--card);
}

.tile h3 {
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.tile p {
  margin-top: 8px;
  color: var(--muted-aa);
  font-size: 1rem;
  line-height: 1.5;
}

/* Zone de visualisation (mini-écran de données, noir sur carte grise) */
.viz {
  margin-top: auto;
  padding: 20px;
  border-radius: 20px;
  background: #000;
}

.viz-num {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: clamp(2.5rem, 9vw, 3.25rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.viz-num small {
  color: var(--muted-aa);
  font-size: 0.875rem;
  letter-spacing: 0;
}

/* Histogramme (pas par heure, 7 jours) */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 90px;
  margin-top: 18px;
}

.bars i {
  flex: 1;
  height: var(--h);
  min-height: 6px;
  border-radius: 6px;
  background: repeating-linear-gradient(135deg, #2c2c2c 0 3px, #161616 3px 6px);
}

.bars i.on {
  background: var(--green);
}

.bars-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted-aa);
  font-size: 0.75rem;
}

/* Hauteurs de barres et longueurs de jauges par classes
   (pas d'attribut style : la politique CSP du site les interdit) */
.h10 {
  --h: 10%;
}

.h20 {
  --h: 20%;
}

.h30 {
  --h: 30%;
}

.h40 {
  --h: 40%;
}

.h50 {
  --h: 50%;
}

.h60 {
  --h: 60%;
}

.h70 {
  --h: 70%;
}

.h80 {
  --h: 80%;
}

.h90 {
  --h: 90%;
}

.h100 {
  --h: 100%;
}

/* Tracé cardiaque */
.ecg {
  width: 100%;
  height: 56px;
  margin-top: 14px;
}

/* Lignes de stats */
.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--card);
}

.stat-row + .stat-row {
  margin-top: 8px;
}

.stat-row .sr-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
}

.stat-row b {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.stat-row b small {
  color: var(--muted-aa);
  font-size: 0.875rem;
  letter-spacing: 0;
}

/* Jauge circulaire */
.gauge {
  position: relative;
  width: 150px;
  margin: 0 auto;
}

.gauge svg {
  width: 100%;
  height: auto;
  transform: rotate(-90deg);
}

.gauge .g-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
}

.gauge .g-center b {
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}


.factors {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
}

.factors li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted-aa);
}

.factors b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
}

.factors b::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* Carte « aplat vert » */
.tile--green {
  background: var(--green);
  color: #000;
}

.tile--green p {
  color: #1b2a07;
}

.tile--green .streak {
  margin-top: auto;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(6rem, 24vw, 8.5rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
}

.tile--green .streak-label {
  margin-top: 10px;
  font-weight: 600;
}

.tile--green .streak-dots {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}

.tile--green .streak-dots i {
  flex: 1;
  height: 10px;
  border-radius: 5px;
  background: #000;
}

.tile--green .streak-dots i.off {
  background: rgba(0, 0, 0, 0.18);
}

/* Mini-widgets iOS */
.widgets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.widget {
  display: grid;
  place-content: center;
  width: 84px;
  aspect-ratio: 1;
  border-radius: 20px;
  background: #000;
  text-align: center;
}

.widget b {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.1;
}

.widget span {
  color: var(--muted-aa);
  font-size: 0.6875rem;
}

.widget--lock,
.widget--lock:hover {
  background: #000;
}

.widget--lock {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  aspect-ratio: auto;
  padding: 10px 16px;
  border-radius: 999px;
  align-self: center;
}

/* ---------- 11. Section Apple Watch ---------- */
.watch-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(70vw, 240px);
  gap: 24px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 8px var(--gutter) 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  list-style: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: #333 transparent;
}

.watch-gallery:focus-visible {
  outline-offset: -2px;
}

.watch-gallery li {
  scroll-snap-align: start;
}

.watch-gallery figure {
  margin: 0;
}

.watch-gallery .watch {
  width: 88%;
  margin-inline: auto;
}

.watch-gallery figcaption {
  margin-top: 22px;
  text-align: center;
}

.watch-gallery figcaption strong {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--card);
  font-size: 0.9375rem;
  font-weight: 500;
}

.watch-gallery figcaption span {
  display: block;
  margin-top: 10px;
  color: var(--muted-aa);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.scroll-hint {
  margin-top: 4px;
  color: var(--muted-aa);
  font-size: 0.875rem;
  text-align: center;
}

/* ---------- 12. Confidentialité : le « 0 » géant ---------- */
.zero-panel {
  display: grid;
  gap: 28px;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--card);
}

.zero {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(11rem, 52vw, 22rem);
  line-height: 0.75;
  color: var(--green);
  letter-spacing: -0.04em;
}

.zero-caption {
  margin-top: 8px;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.zero-caption em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.2em;
}

.pledges {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-self: center;
}

.pledge {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #000;
}

.pledge svg {
  grid-row: span 2;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  color: var(--green);
}

.pledge h3 {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.pledge p {
  color: var(--muted-aa);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.pledges-link {
  margin-top: 24px;
  text-align: center;
}

/* ---------- 13. Bloc d'appel vert ---------- */
#telecharger {
  margin-bottom: 88px;
}

.cta-block {
  position: relative;
  overflow: hidden;
  padding: 72px 24px;
  border-radius: var(--radius-lg);
  background: var(--green);
  color: #000;
  text-align: center;
}

/* Anneaux concentriques décoratifs dans les coins */
.cta-block::before,
.cta-block::after {
  content: "";
  position: absolute;
  width: 360px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 14px, rgba(0, 0, 0, 0.11) 14px 16px);
  pointer-events: none;
}

.cta-block::before {
  left: -170px;
  bottom: -190px;
}

.cta-block::after {
  right: -170px;
  top: -190px;
}

.cta-block > * {
  position: relative;
  z-index: 1;
}

.cta-block h2 {
  font-size: clamp(2.5rem, 9vw, 4.25rem);
}

.cta-block p {
  max-width: 30rem;
  margin: 16px auto 0;
  color: #1b2a07;
  font-size: 1.125rem;
}

.cta-block .btn {
  margin-top: 30px;
}

/* ---------- 14. Pages de texte (confidentialité, assistance, mentions) ---------- */
.page {
  padding-block: 40px 96px;
}

.prose {
  max-width: 760px;
}

.prose h1 {
  font-size: clamp(2.75rem, 10vw, 4.5rem);
}

.prose .updated {
  display: inline-block;
  margin-top: 18px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--card);
  color: var(--muted-aa);
  font-size: 0.875rem;
}

.prose .intro {
  margin-top: 28px;
  font-size: 1.1875rem;
}

.prose h2 {
  margin-top: 56px;
  margin-bottom: 16px;
  font-size: 1.625rem;
}

.prose h2::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-bottom: 40px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0.6;
}

.prose h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: 14px;
}

.prose ul {
  margin: 0;
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 6px;
}

.prose li::marker {
  color: var(--green);
}

.prose .card {
  margin-top: 20px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
}

.prose address {
  font-style: normal;
}

.kbd-path {
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--card);
  font-weight: 500;
}

/* FAQ en <details> : cartes à contour, signe + / − */
.faq {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

.faq details {
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.faq details[open] {
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px #3c3c3c;
}

.faq summary {
  position: relative;
  padding: 22px 60px 22px 24px;
  font-weight: 500;
  font-size: 1.0625rem;
  list-style: none;
  cursor: pointer;
  border-radius: var(--radius);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 16px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease;
}

.faq summary::after {
  transform: rotate(90deg);
}

.faq details[open] summary::after {
  transform: rotate(0deg);
}

.faq .answer {
  padding: 0 24px 24px;
  color: #d6d6d6;
}

.faq .answer p + p,
.faq .answer p + ol,
.faq .answer ol + p {
  margin-top: 12px;
}

.faq .answer ol {
  margin: 0;
  padding-left: 1.3em;
}

.support-cta {
  margin-top: 56px;
}

.support-cta h2 {
  margin: 0;
}

.support-cta h2::before {
  display: none;
}

.support-cta.cta-block h2 {
  font-size: clamp(2.25rem, 7vw, 3.5rem);
}

.support-cta.cta-block .btn {
  margin-top: 26px;
}

/* ---------- 15. Page 404 ---------- */
.not-found {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding-block: 48px;
  text-align: center;
}

.not-found .big {
  color: var(--green);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(8rem, 40vw, 15rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
}

.not-found .rule {
  width: min(320px, 80%);
  margin: 24px auto;
}

.not-found h1 {
  font-size: clamp(2rem, 7vw, 3rem);
}

.not-found p {
  margin-top: 12px;
  color: var(--muted-aa);
}

.not-found .btn {
  margin-top: 32px;
}

/* ---------- 16. Pied de page : panneau + nom de marque géant ---------- */
.site-footer {
  padding: 0 0 16px;
}

.footer-panel {
  overflow: hidden;
  padding: 32px 24px 0;
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--muted-aa);
  font-size: 0.9375rem;
}

.footer-top {
  display: grid;
  gap: 20px;
}

.footer-top .brand-mini img {
  width: 96px;
  height: auto;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--green);
}

.site-footer .mail {
  color: var(--green);
  text-decoration: underline;
}

/* Logo géant coupé par le bas du panneau (décoratif) */
.footer-wordmark {
  margin: 40px 0 -9%;
}

.footer-wordmark img {
  width: 100%;
  height: auto;
}


/* ---------- 16 bis. Composants ajoutés : cartes du hero, cœur, anneau, galerie iPhone ---------- */
/* Cœur (rouge, comme dans l'app) */
.heart-beat {
  width: 16px;
  height: 16px;
  fill: #ff5a5f;
  transform-box: fill-box;
  transform-origin: center;
}

.hr-now {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hr-now .heart-beat {
  width: 30px;
  height: 30px;
}

/* Anneau d'objectif avec le bonhomme au centre */
.ring {
  position: relative;
  flex: none;
  width: 66px;
  height: 66px;
}

.ring > svg:first-child {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 6;
}

.ring-track {
  stroke: #2a2a2a;
}

.ring-val {
  stroke: var(--green);
  stroke-linecap: round;
  stroke-dasharray: 169.6;
  stroke-dashoffset: 0;
}

/* Tracé cardiaque : ligne de fond + impulsion qui balaie */
.ecg {
  height: auto;
}

.ecg-base {
  stroke: rgba(171, 250, 61, 0.28);
  stroke-width: 2;
}

.ecg-pulse {
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-dasharray: 90 489;
  stroke-dashoffset: 0;
}

/* Jauge de préparation */
.gauge-val {
  stroke: var(--green);
  stroke-dasharray: 263.9;
  stroke-dashoffset: 18.5; /* 93 % */
}

/* Semaine : barres sous l'objectif atténuées + ligne d'objectif en pointillés (comme le Journal) */
.bars--week {
  position: relative;
  height: 110px;
}

.bars--week i {
  border-radius: 10px;
}

.bars i.low {
  background: rgba(171, 250, 61, 0.42);
}

.bars i.empty {
  background: #262626;
}

.goal-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 80%;
  z-index: 1;
  border-top: 2px dashed rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

/* Galerie iPhone (même principe que la galerie montre) */
.section--tight {
  padding-top: 24px;
}

.phone-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(62vw, 230px);
  gap: 22px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 8px var(--gutter) 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  list-style: none;
  scrollbar-color: #333 transparent;
}

.phone-gallery li {
  scroll-snap-align: start;
}

.phone-gallery figure {
  margin: 0;
}

.phone-gallery figcaption,
.watch-gallery figcaption {
  margin-top: 22px;
  text-align: center;
}

.phone-gallery figcaption strong {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--card);
  font-size: 0.9375rem;
  font-weight: 500;
}

.phone-gallery figcaption span {
  display: block;
  margin-top: 10px;
  color: var(--muted-aa);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Bonhomme qui traverse le bloc vert */
.cta-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 60px;
  z-index: 0;
  container-type: inline-size;
  pointer-events: none;
}

.disclaimer {
  margin-top: 24px;
  color: var(--muted-aa);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* En-tête : fond flouté dès qu'on défile */
.site-header {
  transition: background-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.74);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

/* ---------- 16 ter. Marcheur officiel de l'app : composant <fabstep-walker> ----------
   Le bonhomme occupe environ 84 % de la hauteur de son cadre carré.
   Tailles données par classe : la CSP du site interdit les attributs style="". */
fabstep-walker {
  display: block;
}

.walker--hero {
  width: 220px;
  height: 220px;
  margin: -12px auto -4px;
}

.walker--section {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
}

.walker--ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
}

.walker--cta {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 60px;
  translate: 45cqw 0;
}

.walker--mini {
  display: inline-block;
  width: 22px;
  height: 22px;
}

/* ---------- 16 quater. Animations (désactivées si « Réduire les animations ») ---------- */
@media (prefers-reduced-motion: no-preference) {

  /* Cœur au rythme de 93 BPM (60 / 93 ≈ 0,645 s) */
  .heart-beat {
    animation: beat 0.645s ease-in-out infinite;
  }

  /* Tracé cardiaque qui défile */
  .ecg-pulse {
    animation: ecg 2.2s linear infinite;
  }

  /* Bonhomme qui traverse le bloc vert, de gauche à droite */
  .cta-track .walker--cta {
    animation: cross 16s linear infinite;
  }

  /* Anneaux du bloc vert qui « respirent » */
  .cta-block::before,
  .cta-block::after {
    animation: breathe 9s ease-in-out infinite;
  }

  .cta-block::after {
    animation-delay: -4.5s;
  }

  /* Apparition au défilement (uniquement si JavaScript est actif : classe html.js) */
  .js [data-reveal] {
    opacity: 0;
    translate: 0 28px;
    transition:
      opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
      translate 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    translate: 0 0;
  }

  .js [data-reveal].d1 {
    transition-delay: 0.1s;
  }

  .js [data-reveal].d2 {
    transition-delay: 0.2s;
  }

  .js [data-reveal].d3 {
    transition-delay: 0.3s;
  }

  /* Barres qui poussent */
  .bars i {
    transform-origin: bottom;
    transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .js [data-reveal]:not(.is-in) .bars i {
    transform: scaleY(0);
  }

  .bars i:nth-of-type(2) { transition-delay: 0.04s; }
  .bars i:nth-of-type(3) { transition-delay: 0.08s; }
  .bars i:nth-of-type(4) { transition-delay: 0.12s; }
  .bars i:nth-of-type(5) { transition-delay: 0.16s; }
  .bars i:nth-of-type(6) { transition-delay: 0.2s; }
  .bars i:nth-of-type(7) { transition-delay: 0.24s; }
  .bars i:nth-of-type(8) { transition-delay: 0.28s; }
  .bars i:nth-of-type(9) { transition-delay: 0.32s; }
  .bars i:nth-of-type(10) { transition-delay: 0.36s; }
  .bars i:nth-of-type(11) { transition-delay: 0.4s; }
  .bars i:nth-of-type(12) { transition-delay: 0.44s; }

  /* Jauge qui se remplit */
  .gauge-val {
    transition: stroke-dashoffset 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
  }

  .js [data-reveal]:not(.is-in) .gauge-val {
    stroke-dashoffset: 263.9;
  }

  /* Série : les jours s'allument un à un */
  .tile--green .streak-dots i {
    transform-origin: left;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .js [data-reveal]:not(.is-in) .streak-dots i {
    transform: scaleX(0);
  }

  .streak-dots i:nth-child(2) { transition-delay: 0.1s; }
  .streak-dots i:nth-child(3) { transition-delay: 0.2s; }
  .streak-dots i:nth-child(4) { transition-delay: 0.3s; }
  .streak-dots i:nth-child(5) { transition-delay: 0.4s; }
  .streak-dots i:nth-child(6) { transition-delay: 0.5s; }
  .streak-dots i:nth-child(7) { transition-delay: 0.6s; }

  /* Le « 0 » géant glisse en place */
  .zero {
    transition: translate 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s;
  }

  .js [data-reveal]:not(.is-in) .zero {
    translate: 0 30%;
  }

  /* Le logo géant du pied de page monte depuis le bas */
  .footer-wordmark {
    transition: translate 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
  }

  .js [data-reveal]:not(.is-in) .footer-wordmark {
    translate: 0 45%;
  }

  /* Survol : les écrans se soulèvent légèrement */
  @media (hover: hover) {
    .watch-gallery .watch,
    .phone-gallery .phone {
      transition: translate 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .watch-gallery li:hover .watch,
    .phone-gallery li:hover .phone {
      translate: 0 -8px;
    }

    .tile {
      transition: background-color 0.3s ease, opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), translate 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .tile:not(.tile--green):hover {
      background: #242424;
    }
  }
}

@keyframes beat {
  0%, 100% { scale: 1; }
  14% { scale: 1.22; }
  28% { scale: 1; }
  42% { scale: 1.1; }
  60% { scale: 1; }
}

@keyframes ecg {
  from { stroke-dashoffset: 579; }
  to { stroke-dashoffset: 0; }
}

@keyframes ring-fill {
  from { stroke-dashoffset: 169.6; }
  to { stroke-dashoffset: 0; }
}

@keyframes cross {
  from { translate: -60px 0; }
  to { translate: calc(100cqw + 20px) 0; }
}

@keyframes breathe {
  0%, 100% { scale: 1; }
  50% { scale: 1.08; }
}


/* ---------- 16 quinquies. Écrans de montre vivants (reconstruits d'après Figma, 416 × 496 px) ----------
   Toutes les cotes sont en cqw : elles suivent la largeur de l'écran, quelle que soit la taille de la montre. */
.ws {
  position: absolute;
  inset: 0;
  color: #fff;
  font-family: var(--font);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.ws > *,
.ws-group > * {
  position: absolute;
  margin: 0;
  white-space: nowrap;
}

.ws-group {
  inset: 0;
}

.ws-dim {
  opacity: 0.2;
}

.ws-rule,
.ws-rule--top,
.ws-rule--bottom,
.ws-rule--ready {
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(171, 250, 61, 0.9) 50%, transparent);
}

.ws-vrule {
  border-radius: 2px;
  background: #abfa3d;
}

.ws-heart {
  fill: #ff3b30;
}

.ws-btn {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #abfa3d;
}

.ws-btn svg {
  width: 46%;
  height: 46%;
}

.ws-logo {
  display: block;
}

.ws-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ws-ring circle {
  fill: none;
  stroke-width: 6;
}

.ws-ring-track {
  stroke: rgba(171, 250, 61, 0.18);
}

.ws-ring-val {
  stroke: #abfa3d;
  stroke-linecap: round;
  stroke-dasharray: 465;
  stroke-dashoffset: 0;
}

.ws-cd {
  opacity: 0;
}

.ws-pin {
  fill: #a78bfa;
}

.ws-fire {
  fill: #ff9f0a;
}

.ws-moon {
  fill: none;
  stroke: #d1d1d6;
  stroke-width: 2.2;
}

/* Fondu en haut et en bas de la liste qui défile */
.ws-list {
  -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
  mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
}

.ws-list-inner {
  display: block;
}

.ws-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1c1c1e;
  color: #8e8e93;
}

.ws-row b {
  color: #fff;
  font-weight: 400;
}

.ws-time {
  top: 7.332cqw;
  height: 9.856cqw;
  line-height: 9.856cqw;
  font-size: 8.173cqw;
  right: 7.212cqw;
  font-weight: 600;
}

.ws-walker {
  left: 39.183cqw;
  top: 10.096cqw;
  width: 21.635cqw;
  height: 21.635cqw;
}

.ws-steps {
  top: 29.976cqw;
  height: 23.317cqw;
  line-height: 23.317cqw;
  font-size: 19.231cqw;
  left: 0;
  right: 0;
  text-align: center;
  letter-spacing: -0.01em;
}

.ws-steps-label {
  top: 50.337cqw;
  height: 8.654cqw;
  line-height: 8.654cqw;
  font-size: 7.212cqw;
  left: 0;
  right: 0;
  text-align: center;
  color: #8e8e93;
}

.ws-rule {
  left: 7.933cqw;
  top: 62.740cqw;
  width: 84.135cqw;
  height: 0.721cqw;
}

.ws-heart {
  left: 44.952cqw;
  top: 67.885cqw;
  width: 10.096cqw;
  height: 10.337cqw;
}

.ws-bpm {
  top: 77.524cqw;
  height: 21.635cqw;
  line-height: 21.635cqw;
  font-size: 18.029cqw;
  left: 0;
  right: 0;
  text-align: center;
  letter-spacing: -0.01em;
}

.ws-bpm-label {
  top: 98.293cqw;
  height: 8.654cqw;
  line-height: 8.654cqw;
  font-size: 7.212cqw;
  left: 0;
  right: 0;
  text-align: center;
  color: #8e8e93;
}

.ws-logo {
  left: 25.721cqw;
  top: 24.279cqw;
  width: 48.558cqw;
  height: 14.663cqw;
}

.ws-btn {
  left: 33.954cqw;
  top: 43.375cqw;
  width: 31.250cqw;
  height: 31.250cqw;
}

.ws-ready-label {
  top: 82.692cqw;
  height: 11.538cqw;
  line-height: 11.538cqw;
  font-size: 9.615cqw;
  left: 0;
  right: 0;
  text-align: center;
  font-weight: 500;
}

.ws-cd {
  top: 43.375cqw;
  height: 31.250cqw;
  line-height: 31.250cqw;
  font-size: 31.250cqw;
  left: 0;
  right: 0;
  text-align: center;
  color: #abfa3d;
  font-weight: 600;
}

.ws-ring {
  left: 30.349cqw;
  top: 39.769cqw;
  width: 38.462cqw;
  height: 38.462cqw;
}

.ws-w-label {
  top: 23.942cqw;
  height: 8.654cqw;
  line-height: 8.654cqw;
  font-size: 7.212cqw;
  left: 0;
  right: 0;
  text-align: center;
  color: #8e8e93;
}

.ws-chrono {
  top: 32.596cqw;
  height: 23.317cqw;
  line-height: 23.317cqw;
  font-size: 19.231cqw;
  left: 0;
  right: 0;
  text-align: center;
  letter-spacing: -0.01em;
}

.ws-rule--top {
  left: 7.933cqw;
  top: 58.582cqw;
  width: 84.135cqw;
  height: 0.721cqw;
}

.ws-rule--bottom {
  left: 7.933cqw;
  top: 78.918cqw;
  width: 84.135cqw;
  height: 0.721cqw;
}

.ws-vrule {
  left: 50.000cqw;
  top: 58.582cqw;
  width: 0.721cqw;
  height: 21.034cqw;
}

.ws-dist {
  top: 61.779cqw;
  height: 14.663cqw;
  line-height: 14.663cqw;
  font-size: 12.019cqw;
  left: 5.288cqw;
  width: 45.072cqw;
  text-align: center;
}

.ws-kcal {
  top: 61.779cqw;
  height: 14.663cqw;
  line-height: 14.663cqw;
  font-size: 12.019cqw;
  left: 50.361cqw;
  width: 45.072cqw;
  text-align: center;
}

.ws-pin {
  left: 24.736cqw;
  top: 85.889cqw;
  width: 6.178cqw;
  height: 8.822cqw;
}

.ws-fire {
  left: 68.269cqw;
  top: 85.577cqw;
  width: 9.135cqw;
  height: 9.135cqw;
}

.ws-dist-label {
  top: 97.212cqw;
  height: 8.654cqw;
  line-height: 8.654cqw;
  font-size: 7.212cqw;
  left: 2.404cqw;
  width: 50.000cqw;
  text-align: center;
  color: #8e8e93;
}

.ws-kcal-label {
  top: 97.212cqw;
  height: 8.654cqw;
  line-height: 8.654cqw;
  font-size: 7.212cqw;
  left: 47.596cqw;
  width: 50.000cqw;
  text-align: center;
  color: #8e8e93;
}

.ws-r-label {
  top: 23.942cqw;
  height: 8.654cqw;
  line-height: 8.654cqw;
  font-size: 7.212cqw;
  left: 0;
  right: 0;
  text-align: center;
  color: #8e8e93;
}

.ws-score {
  top: 34.760cqw;
  height: 23.317cqw;
  line-height: 23.317cqw;
  font-size: 19.231cqw;
  left: 0;
  right: 0;
  text-align: center;
  letter-spacing: -0.01em;
}

.ws-rule--ready {
  left: 7.933cqw;
  top: 61.683cqw;
  width: 84.135cqw;
  height: 0.721cqw;
}

.ws-level {
  top: 67.188cqw;
  height: 11.538cqw;
  line-height: 11.538cqw;
  font-size: 9.615cqw;
  left: 0;
  right: 0;
  text-align: center;
  color: #abfa3d;
  font-weight: 500;
}

.ws-moon {
  left: 46.394cqw;
  top: 85.457cqw;
  width: 7.212cqw;
  height: 7.212cqw;
}

.ws-sleep {
  top: 96.755cqw;
  height: 8.654cqw;
  line-height: 8.654cqw;
  font-size: 7.212cqw;
  left: 0;
  right: 0;
  text-align: center;
  color: #8e8e93;
  letter-spacing: 0.06em;
}

.ws-today-label {
  top: 22.115cqw;
  height: 8.654cqw;
  line-height: 8.654cqw;
  font-size: 7.212cqw;
  left: 0;
  right: 0;
  text-align: center;
  font-weight: 500;
}

.ws-today {
  top: 32.091cqw;
  height: 20.433cqw;
  line-height: 20.433cqw;
  font-size: 17.308cqw;
  left: 0;
  right: 0;
  text-align: center;
  color: #abfa3d;
  letter-spacing: -0.01em;
}

.ws-list {
  left: 4.627cqw;
  top: 55.048cqw;
  width: 90.745cqw;
  bottom: 0;
  overflow: hidden;
}

.ws-row {
  height: 22.837cqw;
  margin-bottom: 1.803cqw;
  padding: 0 5.288cqw 0 5.769cqw;
  border-radius: 6.731cqw;
  font-size: 7.212cqw;
}

.ws-row b {
  font-size: 10.577cqw;
}

@media (prefers-reduced-motion: no-preference) {
  /* Prêt → appui → 3, 2, 1 → retour (cycle de 6 s) */
  .ws--ready .ws-ready-main {
    animation: ws-ready 6s ease-in-out infinite;
  }

  .ws--ready .ws-btn {
    animation: ws-tap 6s ease-in-out infinite;
  }

  .ws-cd {
    animation: ws-cd 6s ease-out infinite;
  }

  .ws-cd--2 {
    animation-delay: 1.2s;
  }

  .ws-cd--1 {
    animation-delay: 2.4s;
  }

  /* Pause : l'anneau se remplit pendant l'appui long, puis le bouton confirme */
  .ws-ring-val {
    animation: ws-hold 4s ease-in-out infinite;
  }

  .ws--pause .ws-btn {
    animation: ws-confirm 4s ease-in-out infinite;
  }

  /* Historique : la liste défile doucement vers les jours précédents */
  .ws-list-inner {
    animation: ws-scroll 14s ease-in-out infinite;
  }

  /* Préparation : la lune « respire » */
  .ws-moon {
    animation: ws-glow 3.5s ease-in-out infinite;
  }
}

@keyframes ws-ready {
  0%, 38% { opacity: 1; }
  42%, 97% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes ws-tap {
  0%, 28% { scale: 1; }
  32% { scale: 0.9; }
  36%, 100% { scale: 1; }
}

/* Chaque chiffre : apparaît en 42 % du cycle, reste 1 s, disparaît (décalé de 1,2 s pour 2 et 1) */
@keyframes ws-cd {
  0%, 41% { opacity: 0; scale: 1.5; }
  44% { opacity: 1; scale: 1; }
  57% { opacity: 1; scale: 1; }
  60%, 100% { opacity: 0; scale: 0.8; }
}

@keyframes ws-hold {
  0%, 10% { stroke-dashoffset: 465; opacity: 1; }
  55% { stroke-dashoffset: 0; opacity: 1; }
  80% { stroke-dashoffset: 0; opacity: 1; }
  92%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes ws-confirm {
  0%, 54% { scale: 1; }
  60% { scale: 1.1; }
  68%, 100% { scale: 1; }
}

@keyframes ws-scroll {
  0%, 18% { translate: 0 0; }
  48%, 66% { translate: 0 -73.918cqw; }
  96%, 100% { translate: 0 0; }
}

@keyframes ws-glow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ---------- 17. Tablette et plus ---------- */
@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }

  .section {
    padding-block: 120px;
  }

  .hero {
    padding-block: 56px 64px;
  }

  .hero-cta {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }

  .hero-stage .phone {
    width: 270px;
  }

  .hero-stage .watch {
    width: 168px;
  }

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

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

  .tile--wide,
  .tile--full {
    grid-column: span 2;
  }

  .zero-panel {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    padding: 40px;
  }

  .cta-block {
    padding: 96px 40px;
  }

  .footer-panel {
    padding: 40px 40px 0;
  }

  .footer-top {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px 48px;
  }

  .footer-top ul {
    justify-content: center;
  }
}

/* ---------- 18. Ordinateur ---------- */
@media (min-width: 1000px) {
  .site-header {
    padding-block: 16px;
  }

  .nav {
    order: 0;
    width: auto;
  }

  .nav ul {
    overflow: visible;
  }

  .hero {
    padding-block: 72px 80px;
  }

  .walker--hero {
    width: 260px;
    height: 260px;
  }

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

  .tile--full {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    align-items: center;
    gap: 40px;
  }

  .tile--full .viz {
    margin-top: 0;
  }

  .phone-gallery {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-columns: auto;
    gap: 32px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  /* Grand écran : grille 3 × 2 au lieu du défilement horizontal */
  .watch-gallery {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: auto;
    gap: 56px 40px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .watch-gallery .watch {
    width: 230px;
  }

  .scroll-hint {
    display: none;
  }

  .zero-panel {
    padding: 56px;
  }
}


/* ---------- 18 bis. Grand écran : cartes de part et d'autre des appareils, reliées par un trait ---------- */
@media (min-width: 1080px) {
  .hero-stage {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 56px;
    margin-top: 80px;
  }

  .hero-devices {
    order: 0;
  }

  .hero-side {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 250px;
  }

  .hero-side .stat-card {
    height: 188px;
  }

  .hero-side--left {
    justify-self: end;
  }

  .hero-side--right {
    justify-self: start;
  }

  .hero-stage .phone {
    width: 290px;
  }

  .hero-stage .watch {
    width: 176px;
  }

  /* Traits de liaison vers les appareils, terminés par un point */
  .hero-side .stat-card::before,
  .hero-side .stat-card::after {
    content: "";
    position: absolute;
    top: 50%;
    pointer-events: none;
  }

  .hero-side .stat-card::before {
    width: 44px;
    height: 1px;
  }

  .hero-side .stat-card::after {
    width: 5px;
    height: 5px;
    margin-top: -2px;
    border-radius: 50%;
    background: var(--green);
  }

  .hero-side--left .stat-card::before {
    left: 100%;
    background: linear-gradient(90deg, rgba(171, 250, 61, 0.5), rgba(171, 250, 61, 0));
  }

  .hero-side--left .stat-card::after {
    left: calc(100% - 2px);
  }

  .hero-side--right .stat-card::before {
    right: 100%;
    background: linear-gradient(270deg, rgba(171, 250, 61, 0.5), rgba(171, 250, 61, 0));
  }

  .hero-side--right .stat-card::after {
    right: calc(100% - 2px);
  }
}

/* Sous 1080 px : appareils d'abord, puis les 4 cartes en grille 2 × 2 */
@media (max-width: 1079px) {
  .hero-stage {
    gap: 12px;
  }

  .hero-devices {
    order: -1;
    margin-bottom: 28px;
  }
}

@media (max-width: 519px) {
  .stat-card {
    min-height: 0;
    padding: 14px;
  }

  .sc-value {
    font-size: 1.625rem;
  }

  .sc-goal {
    gap: 10px;
  }

  .sc-goal .ring {
    width: 54px;
    height: 54px;
  }

  .sc-goal .walker--ring {
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
  }
}

/* ---------- 18 ter. Animations du hero ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Entrée : les appareils basculent en place, les cartes glissent depuis les côtés */
  /* « backwards » : aucune transformation ne subsiste après l'entrée (sinon débordement horizontal sur mobile) */
  .hero-devices {
    animation: devices-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }

  .hero-side .stat-card {
    animation: card-left 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.5s;
  }

  .hero-side .stat-card:nth-child(2) {
    animation-delay: 0.65s;
  }

  .hero-side--right .stat-card {
    animation-name: card-right;
    animation-delay: 0.58s;
  }

  .hero-side--right .stat-card:nth-child(2) {
    animation-delay: 0.73s;
  }

  .hero-side .stat-card::before {
    transform-origin: left;
    animation: line-draw 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both;
  }

  .hero-side--right .stat-card::before {
    transform-origin: right;
  }

  .hero-stage .ring-val {
    animation: ring-fill 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1s both;
  }

  .hero-stage .sc-meter i {
    transform-origin: left;
    animation: meter-fill 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 1.1s both;
  }

  .hero-stage .bars--mini i {
    animation: bar-grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 1.1s both;
  }

  .hero-stage .bars--mini i:nth-of-type(2) { animation-delay: 1.15s; }
  .hero-stage .bars--mini i:nth-of-type(3) { animation-delay: 1.2s; }
  .hero-stage .bars--mini i:nth-of-type(4) { animation-delay: 1.25s; }
  .hero-stage .bars--mini i:nth-of-type(5) { animation-delay: 1.3s; }
  .hero-stage .bars--mini i:nth-of-type(6) { animation-delay: 1.35s; }
  .hero-stage .bars--mini i:nth-of-type(7) { animation-delay: 1.4s; }

  /* Inclinaison 3D franche à la souris : la montre est plus « proche » que le téléphone */
  .devices-3d {
    transform: rotateY(calc(var(--tx, 0) * 26deg)) rotateX(calc(var(--ty, 0) * -18deg));
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Profondeur de la montre : seulement sur grand écran (sur mobile, pas de souris et risque de débordement) */
  @media (min-width: 1080px) {
    .devices-3d .watch {
      transform: translateZ(90px);
    }
  }

  /* Les cartes suivent très légèrement, en sens inverse (parallaxe) */
  .hero-side {
    transform: translate3d(calc(var(--tx, 0) * -14px), calc(var(--ty, 0) * -10px), 0);
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

/* La perspective est intégrée à l'animation (et non posée sur toute la scène, ce qui ferait déborder les cartes) */
@keyframes devices-in {
  from { transform: perspective(1600px) rotateX(28deg) translateY(70px); }
  to { transform: perspective(1600px) rotateX(0deg) translateY(0); }
}

@keyframes card-left {
  from { opacity: 0; translate: -32px 0; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes card-right {
  from { opacity: 0; translate: 32px 0; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes line-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes meter-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes bar-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* ---------- 19. Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
