/* Site de PumpPump. Sobre et net : deux tons, clair et sombre, entre lesquels la
   page glisse au fil des sections, et une seule couleur d'accent, celle de
   l'app, réservée aux détails. Le contenu reste complet sans JavaScript : les
   états d'avant animation ne s'appliquent qu'avec la classe js, et chaque
   animation s'arrête quand l'utilisateur réduit les animations. */

/* Couleurs déclarées pour pouvoir glisser d'un ton à l'autre. */
@property --bg {
  syntax: '<color>';
  inherits: true;
  initial-value: #fafaf9;
}

@property --fg {
  syntax: '<color>';
  inherits: true;
  initial-value: #0b0b0c;
}

@property --fg-2 {
  syntax: '<color>';
  inherits: true;
  initial-value: #4b4b50;
}

@property --fg-3 {
  syntax: '<color>';
  inherits: true;
  initial-value: #86868b;
}

@property --line {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(11, 11, 12, 0.1);
}

@property --surface {
  syntax: '<color>';
  inherits: true;
  initial-value: #ffffff;
}

@property --accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #4f46e5;
}

:root {
  color-scheme: light;
  --bg: #fafaf9;
  --fg: #0b0b0c;
  --fg-2: #4b4b50;
  --fg-3: #86868b;
  --line: rgba(11, 11, 12, 0.1);
  --surface: #ffffff;
  --accent: #4f46e5;
  --vide: #1e7b34;
  --moyen: #a65400;
  --charge: #c4211b;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 68px;
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1240px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  transition:
    --bg 0.9s var(--ease-in-out),
    --fg 0.9s var(--ease-in-out),
    --fg-2 0.9s var(--ease-in-out),
    --fg-3 0.9s var(--ease-in-out),
    --line 0.9s var(--ease-in-out),
    --surface 0.9s var(--ease-in-out),
    --accent 0.9s var(--ease-in-out);
}

:root[data-tone='dark'] {
  color-scheme: dark;
  --bg: #0a0a0b;
  --fg: #f5f5f4;
  --fg-2: #a3a3a8;
  --fg-3: #6e6e74;
  --line: rgba(255, 255, 255, 0.12);
  --surface: #151517;
  --accent: #9a94ff;
}

/* Base */

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

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

.nowrap {
  white-space: nowrap;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Typographie */

.display {
  font-size: clamp(52px, 9.2vw, 132px);
  line-height: 0.94;
  letter-spacing: -0.052em;
}

.title-1 {
  font-size: clamp(42px, 6.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.048em;
}

.title-2 {
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.042em;
}

.title-3 {
  font-size: clamp(21px, 1.8vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.022em;
}

.lead {
  max-width: 34em;
  color: var(--fg-2);
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.55;
  letter-spacing: -0.012em;
}

.body-muted {
  color: var(--fg-2);
}

.note {
  color: var(--fg-3);
  font-size: 14px;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--fg-3);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}

.center .label::before {
  display: none;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* Titres qui se dévoilent mot à mot */

.split .w {
  display: inline-block;
  margin-bottom: -0.14em;
  padding-bottom: 0.14em;
  overflow: hidden;
  vertical-align: top;
}

.split .w > span {
  display: inline-block;
}

.js .split .w > span {
  transform: translate3d(0, 108%, 0);
  transition: transform 1.15s var(--ease);
  transition-delay: calc(var(--delay, 0ms) + var(--i, 0) * 42ms);
}

.js .split.is-in .w > span {
  transform: none;
}

/* Apparitions */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition:
    opacity 1.2s var(--ease),
    transform 1.2s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.js [data-reveal='fade'] {
  transform: none;
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.js img[data-fade] {
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}

.js img[data-fade].is-ready {
  opacity: 1;
}

/* En-tête */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition:
    transform 0.7s var(--ease),
    background-color 0.4s,
    box-shadow 0.4s;
  view-transition-name: en-tete;
}

.header.is-solid,
.menu-open .header {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
}

.header.is-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 100%;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav {
  display: flex;
  gap: 36px;
  font-size: 14px;
}

.nav a {
  position: relative;
  color: var(--fg-2);
  transition: color 0.3s;
}

.nav a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--fg);
}

.nav a:hover::after,
.nav a[aria-current='page']::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-end {
  display: flex;
  justify-content: flex-end;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-lines {
  position: relative;
  width: 22px;
  height: 8px;
}

.menu-lines::before,
.menu-lines::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: var(--fg);
  transition:
    transform 0.6s var(--ease),
    top 0.6s var(--ease);
}

.menu-lines::before {
  top: 0;
}

.menu-lines::after {
  top: 6.5px;
}

.menu-open .menu-lines::before {
  top: 3.25px;
  transform: rotate(45deg);
}

.menu-open .menu-lines::after {
  top: 3.25px;
  transform: rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  overflow-y: auto;
  background: var(--bg);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease);
}

.menu-open .menu {
  clip-path: inset(0 0 0 0);
}

.menu-links {
  display: grid;
  gap: 6px;
}

.menu-links a {
  display: block;
  font: 600 clamp(38px, 11vw, 56px) / 1.1 var(--font-display);
  letter-spacing: -0.045em;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: calc(120ms + var(--i, 0) * 50ms);
}

.menu-links a[aria-current='page'] {
  color: var(--fg-3);
}

.menu-small {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 40px;
  color: var(--fg-2);
  font-size: 15px;
}

.menu-small a {
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  transition-delay: 400ms;
}

.menu-open .menu-links a,
.menu-open .menu-small a {
  opacity: 1;
  transform: none;
}

@media (max-width: 860px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .nav,
  .header-end {
    display: none;
  }

  .menu-button {
    display: grid;
  }
}

@media (min-width: 861px) {
  .menu {
    display: none;
  }
}

/* Boutons et liens */

.btn {
  display: inline-flex;
  height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.35s,
    color 0.35s,
    border-color 0.35s,
    transform 0.6s var(--ease);
}

.btn-primary {
  background: var(--fg);
  color: var(--bg);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--fg) 84%, var(--bg));
}

.btn-ghost {
  border-color: var(--line);
  color: var(--fg);
}

.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--fg) 40%, transparent);
}

.btn[aria-disabled='true'] {
  cursor: default;
}

.btn-small {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.btn .icon {
  width: 17px;
  height: 17px;
  transition: transform 0.6s var(--ease);
}

.btn:hover .icon-arrow,
.link:hover .icon-arrow {
  transform: translateX(4px);
}

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

.center .actions {
  justify-content: center;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  font-weight: 500;
  transition: background-size 0.7s var(--ease);
}

.link:hover {
  background-size: 100% 1px;
}

.link .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.6s var(--ease);
}

.prose a,
.inline-link {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s;
}

.prose a:hover,
.inline-link:hover {
  text-decoration-color: currentColor;
}

.pill {
  display: inline-flex;
  height: 32px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 500;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

/* Téléphone */

.device {
  --w: 300px;
  position: relative;
  width: var(--w);
  padding: calc(var(--w) * 0.034);
  border-radius: calc(var(--w) * 0.175);
  background: #0b0b0c;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 40px 80px -30px rgba(10, 10, 20, 0.35),
    0 80px 140px -60px rgba(10, 10, 20, 0.3);
}

.device::after {
  content: '';
  position: absolute;
  top: calc(var(--w) * 0.066);
  left: 50%;
  z-index: 3;
  width: 30%;
  height: calc(var(--w) * 0.085);
  border-radius: 999px;
  background: #000000;
  transform: translateX(-50%);
}

.device > img,
.screens {
  width: 100%;
  aspect-ratio: 660 / 1434;
  border-radius: calc(var(--w) * 0.142);
  background: #e8e8ea;
  object-fit: cover;
}

/* Sections */

.section {
  position: relative;
  padding-block: clamp(112px, 15vw, 200px);
}

.section-tight {
  padding-block: clamp(80px, 10vw, 140px);
}

.section-head {
  display: grid;
  max-width: 840px;
  gap: 24px;
  margin-bottom: clamp(56px, 7vw, 96px);
}

.section-head.center {
  margin-inline: auto;
  justify-items: center;
  text-align: center;
}

.section-head.center .lead {
  margin-inline: auto;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(56px, 8vw, 128px);
}

.split-layout .section-head {
  margin-bottom: 0;
}

@media (max-width: 920px) {
  .split-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Accueil : ouverture */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(72px, 11vw, 150px));
  overflow: clip;
  text-align: center;
}

.hero-copy {
  display: grid;
  justify-items: center;
}

.hero h1 {
  max-width: 10.5ch;
  margin-top: 30px;
}

.hero .lead {
  margin-top: 30px;
}

.hero .actions {
  justify-content: center;
  margin-top: 42px;
}

.js .hero-fade {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 1.2s var(--ease),
    transform 1.2s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.js.is-loaded .hero-fade {
  opacity: 1;
  transform: none;
}

.hero-stage {
  --p: 1;
  position: relative;
  display: grid;
  margin-top: clamp(72px, 9vw, 120px);
  padding-bottom: clamp(80px, 10vw, 140px);
  justify-items: center;
  perspective: 1800px;
}

.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  width: min(1100px, 140vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 13%, transparent), transparent 72%);
  opacity: calc(0.35 + var(--p) * 0.65);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-device {
  position: relative;
  transform: translate3d(0, calc((1 - var(--p)) * 48px), 0) rotateX(calc((1 - var(--p)) * 20deg))
    scale(calc(0.9 + var(--p) * 0.1));
  transform-origin: 50% 0;
}

.js .hero-device {
  opacity: 0;
  transition: opacity 1.6s var(--ease) 0.5s;
}

.js.is-loaded .hero-device {
  opacity: 1;
}

.hero-device .device {
  --w: clamp(250px, 25vw, 330px);
}

.callouts {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.callout {
  --half: clamp(125px, 12.5vw, 165px);
  position: absolute;
  top: var(--y);
  display: grid;
  width: 230px;
  gap: 2px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.callout strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.callout span {
  color: var(--fg-2);
  font-size: 14px;
}

.callout::before {
  content: '';
  position: absolute;
  top: 11px;
  width: 56px;
  height: 1px;
  background: var(--fg-3);
  transform: scaleX(0);
  transition: transform 1s var(--ease) 0.2s;
}

.callout::after {
  content: '';
  position: absolute;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fg);
  opacity: 0;
  transition: opacity 0.6s var(--ease) 0.8s;
}

.callout.left {
  right: calc(50% + var(--half) + 76px);
  text-align: right;
}

.callout.left::before {
  right: -72px;
  transform-origin: left;
}

.callout.left::after {
  right: -80px;
}

.callout.right {
  left: calc(50% + var(--half) + 76px);
}

.callout.right::before {
  left: -72px;
  transform-origin: right;
}

.callout.right::after {
  left: -80px;
}

.callout.is-on {
  opacity: 1;
  transform: none;
}

.callout.is-on::before {
  transform: scaleX(1);
}

.callout.is-on::after {
  opacity: 1;
}

@media (max-width: 1080px) {
  .callouts {
    display: none;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
}

.stats > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 10px;
  padding: 36px 28px 0 0;
}

.stats dd {
  margin: 0;
  font: 600 clamp(44px, 5vw, 64px) / 1 var(--font-display);
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.stats dd small {
  margin-left: 4px;
  color: var(--fg-3);
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.stats dt {
  max-width: 15em;
  color: var(--fg-2);
  font-size: 15px;
}

@media (max-width: 860px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 12px;
  }
}

/* Accueil : galerie qui défile de côté */

.gallery {
  position: relative;
  padding-block: clamp(96px, 12vw, 160px);
}

.gallery-pin {
  position: relative;
  display: grid;
  gap: 48px;
}

.gallery-head {
  display: grid;
  max-width: 760px;
  gap: 20px;
}

.gallery-head h2 {
  max-width: 9em;
}

.gallery-viewport {
  overflow-x: auto;
  scroll-padding-inline: var(--gutter);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-viewport::-webkit-scrollbar {
  display: none;
}

.gallery-track {
  display: flex;
  width: max-content;
  gap: clamp(28px, 4vw, 64px);
  margin: 0;
  padding: 0 var(--gutter);
  list-style: none;
}

.gallery-item {
  display: grid;
  margin: 0;
  gap: 22px;
  scroll-snap-align: start;
}

.gallery-item .device {
  --w: min(230px, 62vw);
}

.gallery-item figcaption {
  display: grid;
  gap: 4px;
}

.gallery-item .num {
  color: var(--fg-3);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.gallery-item strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.gallery-item figcaption span:last-child {
  max-width: 17em;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.45;
}

.gallery-progress {
  display: none;
}

/* Sur grand écran, la section reste à l'écran et les écrans glissent de
   côté, le titre en premier panneau. */
.gallery.is-pinned {
  padding-block: 0;
}

.gallery.is-pinned .gallery-pin {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  height: 100svh;
  align-items: center;
  overflow: hidden;
}

.gallery.is-pinned .gallery-head {
  position: absolute;
  top: 50%;
  left: 0;
  width: calc(var(--gutter) + min(32vw, 440px));
  padding-left: var(--gutter);
  transform: translate3d(var(--x, 0px), -50%, 0);
}

.gallery.is-pinned .gallery-viewport {
  overflow: visible;
}

.gallery.is-pinned .gallery-track {
  padding-left: calc(var(--gutter) + min(32vw, 440px) + clamp(48px, 6vw, 96px));
  transform: translate3d(var(--x, 0px), 0, 0);
  will-change: transform;
}

.gallery.is-pinned .gallery-item .device {
  --w: clamp(210px, calc(min(64svh, 660px) * 0.43), 300px);
}

.gallery.is-pinned .gallery-progress {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(28px, 5vh, 48px);
  left: var(--gutter);
  display: block;
  height: 1px;
  background: var(--line);
}

.gallery-progress span {
  display: block;
  height: 100%;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
}

/* Meilleure station : le calcul */

.calc {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 50px 100px -60px rgba(10, 10, 20, 0.25);
}

.calc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.calc-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.calc-meta {
  color: var(--fg-3);
  font-size: 14px;
}

.calc-badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.calc-rows {
  margin: 0;
}

.calc-rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.calc-rows dt {
  color: var(--fg-2);
}

.calc-rows dd {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.calc-rows .calc-total {
  border-bottom: 0;
  padding-top: 26px;
}

.calc-total dt {
  color: var(--fg);
  font-weight: 600;
}

.calc-total dd {
  font: 600 clamp(34px, 3.4vw, 44px) / 1 var(--font-display);
  letter-spacing: -0.04em;
}

.calc-saving {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--vide) 9%, transparent);
  color: var(--vide);
  font-size: 15px;
  font-weight: 500;
}

.calc .note {
  margin-top: 16px;
}

.js .calc [data-step] {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: calc(300ms + var(--s, 0) * 140ms);
}

.js .calc.is-in [data-step] {
  opacity: 1;
  transform: none;
}

/* Sur la route : le trajet se trace au défilement */

.route-track {
  height: 260vh;
}

.route-pin {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  height: 100svh;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.route-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.route-map {
  position: relative;
}

.route-map.wide {
  aspect-ratio: 1000 / 420;
}

.route-map.tall {
  display: none;
  width: min(100%, 420px, calc(46svh * 360 / 440));
  aspect-ratio: 360 / 440;
  margin-inline: auto;
}

.route-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.route-base {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
  stroke-dasharray: 2 8;
  stroke-linecap: round;
}

.route-trail {
  fill: none;
  stroke: var(--fg);
  stroke-width: 2.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-linecap: round;
}

.route-dot {
  position: absolute;
  z-index: 2;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent),
    0 0 30px 8px color-mix(in srgb, var(--accent) 45%, transparent);
}

.route-stop {
  position: absolute;
  width: 0;
  height: 0;
}

.route-stop::before {
  content: '';
  position: absolute;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border: 1.5px solid var(--fg-3);
  border-radius: 50%;
  background: var(--bg);
  transition:
    background-color 0.6s var(--ease),
    border-color 0.6s var(--ease),
    transform 0.6s var(--ease);
}

.route-stop.is-passed::before {
  border-color: var(--fg);
  background: var(--fg);
  transform: scale(1.15);
}

.route-label {
  position: absolute;
  left: 0;
  display: grid;
  width: max-content;
  max-width: 200px;
  gap: 2px;
  opacity: 0.35;
  transform: translateX(-50%);
  transition: opacity 0.7s var(--ease);
}

.route-stop[data-place='top'] .route-label {
  bottom: 18px;
}

.route-stop[data-place='bottom'] .route-label {
  top: 18px;
}

.route-stop[data-place='left'] .route-label {
  right: 20px;
  left: auto;
  top: -12px;
  text-align: right;
  transform: none;
}

.route-stop[data-place='right'] .route-label {
  left: 20px;
  top: -12px;
  transform: none;
}

.route-stop[data-place='under'] .route-label {
  top: 16px;
  left: -6px;
  transform: none;
}

.route-stop[data-place='over'] .route-label {
  bottom: 12px;
  left: 14px;
  transform: none;
}

.route-stop[data-place='over-end'] .route-label {
  right: -6px;
  bottom: 16px;
  left: auto;
  text-align: right;
  transform: none;
}

.route-stop.is-passed .route-label {
  opacity: 1;
}

.route-label strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.route-label span {
  color: var(--fg-2);
  font-size: 13px;
}

.route-options {
  display: grid;
  gap: 12px;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.option strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.option span {
  color: var(--fg-2);
  font-size: 14px;
}

.option-mark {
  display: grid;
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 1px;
  place-items: center;
  border: 1.5px solid var(--fg-3);
  border-radius: 50%;
}

.option.is-selected {
  border-color: color-mix(in srgb, var(--fg) 35%, transparent);
  background: color-mix(in srgb, var(--fg) 5%, transparent);
}

.option.is-selected .option-mark {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.option-mark .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
}

.route-options .note {
  margin-top: 8px;
}

@media (max-width: 920px) {
  .route-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .route-map.wide {
    display: none;
  }

  .route-map.tall {
    display: block;
  }

  .route-options {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .route-options .note {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .option {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .option {
    gap: 10px;
    padding: 12px;
  }

  .option strong {
    font-size: 14px;
  }

  .option span {
    font-size: 12px;
  }

  .option-mark {
    display: none;
  }
}

/* Affluence */

.status-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.status-list li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.status-list strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.status-list p {
  color: var(--fg-2);
}

.status {
  display: inline-flex;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.status.filled.charge {
  background: var(--charge);
  color: #ffffff;
}

.status.filled.moyen {
  background: var(--moyen);
  color: #ffffff;
}

.status.outline.vide {
  border-color: var(--vide);
  color: var(--vide);
}

/* Énoncés en grand, dont les mots s'allument à la lecture */

.statement {
  max-width: 17em;
  font: 600 clamp(36px, 5.6vw, 80px) / 1.04 var(--font-display);
  letter-spacing: -0.045em;
}

.statement.wide {
  max-width: 22em;
}

.js [data-words] .w {
  opacity: 0.18;
  transition: opacity 0.4s var(--ease);
}

.js [data-words] .w.is-lit {
  opacity: 1;
}

.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
  margin-top: clamp(72px, 9vw, 128px);
}

.columns > * {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.columns .num {
  color: var(--fg-3);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.columns h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
}

.columns p {
  color: var(--fg-2);
}

@media (max-width: 860px) {
  .columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Appel final */

.cta {
  display: grid;
  justify-items: center;
  text-align: center;
}

.cta-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  box-shadow:
    0 0 0 1px var(--line),
    0 24px 48px -20px rgba(10, 10, 20, 0.4);
}

.cta h2 {
  max-width: 13em;
  margin-top: 36px;
}

.cta .lead {
  margin-top: 22px;
}

.cta .actions {
  margin-top: 40px;
}

/* Pages intérieures */

.page-hero {
  padding-top: calc(var(--header-h) + clamp(80px, 12vw, 170px));
  padding-bottom: clamp(64px, 8vw, 110px);
}

.page-hero h1 {
  max-width: 13ch;
  margin-top: 28px;
}

.page-hero .lead {
  margin-top: 28px;
}

/* Fonctionnalités : le téléphone fixe, les écrans qui se succèdent */

.story {
  display: grid;
  grid-template-columns: 1px minmax(0, 1fr) auto;
  gap: clamp(40px, 6vw, 96px);
}

.story-rail {
  position: relative;
  background: var(--line);
}

.story-rail span {
  position: sticky;
  top: 0;
  display: block;
  width: 1px;
  height: 100%;
  background: var(--fg);
  transform: scaleY(0);
  transform-origin: top;
}

.story-step {
  display: grid;
  min-height: 88vh;
  align-content: center;
  gap: 22px;
  padding-block: 48px;
}

.js .story-step > * {
  opacity: 0.22;
  transition: opacity 0.7s var(--ease);
}

.js .story-step.is-active > * {
  opacity: 1;
}

.step-num {
  color: var(--fg-3);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.story-step .lead {
  max-width: 28em;
}

.ticks {
  display: grid;
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg-2);
  font-size: 15px;
}

.ticks .icon {
  width: 16px;
  height: 16px;
  color: var(--fg);
  stroke-width: 2;
}

.story-device {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  align-self: start;
  padding-block: 32px;
}

.story-device .device {
  --w: min(320px, calc((100svh - var(--header-h) - 140px) * 0.43));
}

.screens {
  position: relative;
  overflow: hidden;
}

.screens img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(100% 0 0 0);
  transform: scale(1.06);
}

.screens img.is-prev {
  z-index: 1;
  clip-path: inset(0);
  transform: none;
}

.screens img.is-active {
  z-index: 2;
  clip-path: inset(0);
  transform: none;
  transition:
    clip-path 1s var(--ease),
    transform 1.3s var(--ease);
}

.step-device {
  display: none;
}

@media (max-width: 920px) {
  .story {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-rail,
  .story-device {
    display: none;
  }

  .story-step {
    min-height: 0;
    padding-block: 56px;
    border-top: 1px solid var(--line);
  }

  .js .story-step > * {
    opacity: 1;
  }

  .step-device {
    display: block;
    margin-top: 20px;
  }

  .step-device .device {
    --w: min(270px, 72vw);
    margin-inline: auto;
  }
}

/* Grille de détails, en filets fins */

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.bento > * {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(28px, 3vw, 44px);
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bento > *::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, -20%),
    color-mix(in srgb, var(--accent) 9%, transparent),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}

.bento > *:hover::before {
  opacity: 1;
}

.bento .icon {
  width: 22px;
  height: 22px;
  margin-bottom: 18px;
  color: var(--fg-2);
}

.bento h3 {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.bento p {
  color: var(--fg-2);
  font-size: 16px;
}

@media (max-width: 920px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* À propos */

.manifesto {
  display: grid;
  max-width: 21em;
  gap: 0.7em;
  font: 600 clamp(30px, 4.4vw, 60px) / 1.12 var(--font-display);
  letter-spacing: -0.038em;
}

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.compare > div {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 40px 40px 8px 0;
}

.compare > div + div {
  padding-left: 40px;
  border-left: 1px solid var(--line);
}

.compare .num {
  color: var(--fg-3);
  font-size: 13px;
}

.compare h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -0.03em;
}

.compare p {
  color: var(--fg-2);
}

.compare .is-ours .num {
  color: var(--accent);
}

@media (max-width: 760px) {
  .compare {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare > div {
    padding-right: 0;
  }

  .compare > div + div {
    margin-top: 32px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

.rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.rows li {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(0, 2fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.rows strong {
  font-weight: 600;
  letter-spacing: -0.015em;
}

.rows span {
  color: var(--fg-2);
}

@media (max-width: 640px) {
  .rows li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

/* Assistance */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.contact-address {
  margin-top: 12px;
  font: 600 clamp(26px, 3.6vw, 48px) / 1.1 var(--font-display);
  letter-spacing: -0.04em;
  word-break: break-word;
}

.contact .note {
  max-width: 34em;
  margin-top: 16px;
  font-size: 15px;
}

.btn.is-done {
  border-color: var(--fg);
}

@media (max-width: 760px) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
}

.faq-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 48px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--fg-2);
  font-size: 14px;
  cursor: pointer;
  transition:
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s;
}

.chip:hover {
  color: var(--fg);
}

.chip.is-active {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.search {
  position: relative;
  width: min(100%, 320px);
}

.search .icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 17px;
  height: 17px;
  color: var(--fg-3);
  transform: translateY(-50%);
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.3s;
}

.search input::placeholder {
  color: var(--fg-3);
}

.search input:focus {
  border-color: var(--fg);
  outline: none;
}

.faq-group + .faq-group {
  margin-top: 64px;
}

.faq-group > h2 {
  margin-bottom: 8px;
  color: var(--fg-3);
  font: 500 13px/1.4 var(--font);
  letter-spacing: 0.01em;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-group > h2 + .faq-item {
  border-top: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  letter-spacing: -0.02em;
  list-style: none;
  cursor: pointer;
}

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

.toggle {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
}

.toggle::before,
.toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.6s var(--ease);
}

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

.faq-item[open] .toggle::after {
  transform: rotate(0deg);
}

.faq-answer {
  overflow: hidden;
}

.faq-answer p {
  max-width: 44em;
  padding: 0 40px 26px 0;
  color: var(--fg-2);
}

.faq-empty {
  padding: 40px 0;
  color: var(--fg-2);
}

/* Documents légaux */

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 2px;
  background: var(--fg);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

.legal-meta {
  margin-top: 24px;
  color: var(--fg-3);
  font-size: 14px;
}

.legal {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(48px, 7vw, 120px);
  padding-bottom: clamp(112px, 14vw, 180px);
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
  min-width: 0;
}

.toc-title {
  margin-bottom: 14px;
  color: var(--fg-3);
  font-size: 13px;
}

.toc ol {
  position: relative;
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding: 6px 0;
  color: var(--fg-3);
  font-size: 14px;
  line-height: 1.35;
  transition: color 0.3s;
}

.toc a:hover,
.toc a.is-active {
  color: var(--fg);
}

.prose {
  max-width: 700px;
  color: var(--fg-2);
  font-size: 18px;
  line-height: 1.7;
}

.prose h2 {
  margin: 64px 0 16px;
  color: var(--fg);
  font-size: 26px;
  letter-spacing: -0.03em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose ul {
  margin: 0 0 18px;
}

.prose ul {
  padding-left: 20px;
}

.prose li {
  margin-bottom: 10px;
  padding-left: 4px;
}

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

.site-note {
  margin-top: 72px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.site-note h2 {
  margin-top: 40px;
}

@media (max-width: 920px) {
  .legal {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .toc {
    top: var(--header-h);
    z-index: 10;
    margin-inline: calc(var(--gutter) * -1);
    padding: 12px var(--gutter);
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    box-shadow: 0 1px 0 var(--line);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }

  .toc-title {
    display: none;
  }

  .toc ol {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .toc ol::-webkit-scrollbar {
    display: none;
  }

  .toc a {
    white-space: nowrap;
  }
}

/* Page introuvable */

.lost {
  display: grid;
  min-height: 100svh;
  align-content: center;
  padding-top: var(--header-h);
}

.lost .lead {
  margin-top: 24px;
}

.lost .actions {
  margin-top: 40px;
}

/* Pied de page */

.footer {
  padding-top: clamp(80px, 10vw, 128px);
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer-intro p {
  max-width: 18em;
  margin-top: 18px;
  color: var(--fg-2);
  font-size: 15px;
}

.footer h2 {
  margin-bottom: 18px;
  color: var(--fg-3);
  font: 500 13px/1.4 var(--font);
}

.footer ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.footer ul a {
  color: var(--fg-2);
  transition: color 0.3s;
}

.footer ul a:hover {
  color: var(--fg);
}

.footer-mark {
  margin: clamp(40px, 5vw, 64px) 0 0;
  color: var(--fg);
  font: 600 clamp(64px, 18.4vw, 232px) / 0.8 var(--font-display);
  letter-spacing: -0.065em;
  white-space: nowrap;
  opacity: 0.07;
  transform: translateY(18%);
}

.js .footer-mark {
  transform: translateY(60%);
  transition: transform 1.6s var(--ease);
}

.js .footer-mark.is-in {
  transform: translateY(18%);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: clamp(64px, 8vw, 104px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--fg-3);
  font-size: 13px;
}

@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-intro {
    grid-column: 1 / -1;
  }
}

/* Passage d'une page à l'autre */

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: page-out 0.35s var(--ease-in-out) both;
}

::view-transition-new(root) {
  animation: page-in 0.8s var(--ease) both;
}

@keyframes page-out {
  to {
    opacity: 0;
    transform: translateY(-16px);
  }
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

/* Animations réduites */

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  :root {
    transition: none;
  }

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

  .route-track {
    height: auto;
  }

  .route-pin {
    position: static;
    height: auto;
    padding-block: 0 clamp(80px, 10vw, 140px);
  }
}
