/*
 * Site vitrine de Cobbie : styles de la page d'accueil.
 * Couleurs reprises de design/tokens.json (thème Jour, et Soir pour les fonds sombres) et du pack
 * d'identité (vert profond #17604B / #12362D, nuit #141614). Règle 70/20/10 : neutres partout,
 * vert profond pour le bloc « I can't get started », les boutons et le pied de page, couleurs
 * d'énergie en accent, une seule par section.
 */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 700 800;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('fonts/figtree.woff2') format('woff2');
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('fonts/caveat.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #eef1ec;
  --surface: #f8faf6;
  --sunken: #dfe6db;
  --line: #c8d1c4;
  --line-strong: #6f7b72;
  --ink: #15201c;
  --ink-soft: #4b5851;
  --green: #17604b;
  --green-deep: #12362d;
  --night: #141614;
  --on-dark: #eef1ec;
  --on-dark-soft: #c9d3cb;

  --low: #4a68be;
  --low-tint: #dde5f7;
  --low-ink: #243f86;
  --low-ill: #7e98db;
  --mid: #b8720b;
  --mid-tint: #f8e4c0;
  --mid-ink: #6b4208;
  --mid-ill: #e8a93f;
  --good: #1f8f73;
  --good-tint: #d0eee4;
  --good-ink: #17604b;
  --good-ill: #52b896;
  --clay: #db6b4f;
  --clay-ink: #b5472e;

  --display: 'Bricolage Grotesque', 'Avenir Next', system-ui, sans-serif;
  --ui: 'Figtree', system-ui, sans-serif;
  --hand: 'Caveat', cursive;

  --pad: clamp(24px, 5vw, 64px);
  --section: clamp(88px, 12vw, 176px);
  --pebble-radius: 28px 24px 28px 26px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* L'énergie choisie (`data-energy` sur <html>) : les accents des sections qui la suivent. */
  --e-tint: var(--mid-tint);
  --e-mark: var(--mid);
  --e-ill: var(--mid-ill);
  --e-ink: var(--mid-ink);
  --e-on-dark: #f0b35a;
}
[data-energy='low'] {
  --e-tint: var(--low-tint);
  --e-mark: var(--low);
  --e-ill: var(--low-ill);
  --e-ink: var(--low-ink);
  --e-on-dark: #8aa4e8;
}
[data-energy='good'] {
  --e-tint: var(--good-tint);
  --e-mark: var(--good);
  --e-ill: var(--good-ill);
  --e-ink: var(--good-ink);
  --e-on-dark: #55c2a6;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
html {
  /* L'en-tête suit le défilement : une ancre ou un focus ne s'arrête pas dessous. */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.start :focus-visible,
.band--dark :focus-visible,
.site-foot :focus-visible {
  outline-color: var(--on-dark);
}

.wrap {
  width: min(100% - 2 * var(--pad), 1240px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* Typographie */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--kicker, var(--ink-soft));
}
.kicker::before {
  content: '';
  width: 12px;
  height: 11px;
  border-radius: 50% 45% 55% 48%;
  background: var(--dot, var(--mid-ill));
}
.kicker--on-dark {
  --kicker: var(--on-dark-soft);
}

.hero__title,
.h-section,
.h-display,
.h-small {
  font-family: var(--display);
  font-weight: 800;
  text-wrap: balance;
}

.h-section {
  font-size: clamp(2.4rem, 1.3rem + 3.9vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0.45em 0 0.5em;
}

.h-display {
  font-size: clamp(3rem, 1.4rem + 6.4vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.h-small {
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
}

.lead {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.5;
  max-width: 30em;
}

.body {
  max-width: 32em;
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
}
.body + .body {
  margin-top: 1em;
}

.hand {
  font-family: var(--hand);
  font-weight: 600;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.6rem);
  line-height: 1.1;
  color: var(--clay-ink);
  transform: rotate(-4deg);
  transform-origin: left center;
}

.text-link {
  display: inline-block;
  padding-block: 12px;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* Boutons */

.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60px;
  padding: 10px 26px 12px;
  border-radius: 18px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s var(--ease);
}
.store:hover {
  background: var(--green-deep);
}
.store:active {
  transform: scale(0.97);
}
.store__small {
  font-size: 0.8125rem;
  line-height: 1.2;
}
.store__big {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* En-tête */

.site-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}
.site-head.is-fixed {
  position: fixed;
}
/* Le fond de l'en-tête une fois le haut de page quitté : un galet clair, lisible sur toutes les sections. */
.site-head::before {
  content: '';
  position: absolute;
  inset: 6px -18px;
  z-index: -1;
  border-radius: 999px;
  background: rgb(248 250 246 / 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px -20px rgb(21 32 28 / 0.45);
  opacity: 0;
  transition: opacity 0.3s;
}
.site-head.is-stuck::before {
  opacity: 1;
}
.site-head.is-stuck .site-nav__cta {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.site-head.is-stuck .site-nav__cta:hover {
  border-color: var(--green-deep);
  background: var(--green-deep);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.wordmark img {
  width: 36px;
  height: 36px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  display: none;
  padding: 12px 14px;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.site-nav .site-nav__cta {
  display: inline-block;
  margin-left: 8px;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.site-nav .site-nav__cta:hover {
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}
@media (min-width: 760px) {
  .site-nav a {
    display: inline-block;
  }
}

/* Hero */

.hero {
  --dot: var(--e-ill);
  padding-top: clamp(100px, 10vw, 132px);
}

.hero__grid {
  display: grid;
  gap: 24px;
}

.hero__title {
  font-size: clamp(2.875rem, 1rem + 7vw, 7rem);
  line-height: 0.93;
  letter-spacing: -0.035em;
  max-width: 11.5em;
}

.hero__side {
  display: grid;
  gap: 28px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}
.store-note {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: 24px;
    row-gap: 28px;
  }
  .hero__grid > * {
    grid-column: 1 / -1;
  }
  .hero__side {
    grid-column: 7 / -1;
  }
  .hero__checkin {
    grid-column: 1 / 6;
    grid-row: 3;
    align-self: end;
  }
  .hero__side {
    grid-row: 3;
  }
}

/* Sur bureau, le hero remplit le premier écran : le pavage prend la hauteur qui reste et le galet se
   tient en haut du chemin, visible en entier sans défiler, quelle que soit la hauteur de la fenêtre. */
@media (min-width: 960px) {
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    padding-top: clamp(92px, 13svh, 132px);
  }
  .hero__title {
    font-size: min(1rem + 7vw, 7rem, 13.5svh);
  }
  .hero .paving--hero {
    flex: 1 0 auto;
    height: auto;
    min-height: 250px;
    max-height: 600px;
    margin-top: clamp(20px, 3.5svh, 40px);
  }
  .hero .paving__pebble {
    top: 8%;
    bottom: auto;
    width: clamp(210px, 27svh, 280px);
    translate: -50% -16%;
  }
}

/* Mini check-in du hero : l'entrée du parcours, sur mobile aussi (plus compact). */
.hero__checkin {
  padding: 18px 20px 16px;
  border-radius: var(--pebble-radius);
  background: var(--surface);
}
.hero__question {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero__levels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}
.level-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 clamp(13px, 3.4vw, 18px);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s var(--ease);
}
.level-chip:hover {
  transform: translateY(-3px);
}
.level-chip--low {
  background: var(--low-tint);
  color: var(--low-ink);
}
.level-chip--mid {
  background: var(--mid-tint);
  color: var(--mid-ink);
}
.level-chip--good {
  background: var(--good-tint);
  color: var(--good-ink);
}
.level-chip--low .p-dot {
  background: var(--low);
}
.level-chip--mid .p-dot {
  background: var(--mid);
}
.level-chip--good .p-dot {
  background: var(--good);
}
/* Sur mobile, pas de survol pour voir le galet d'une énergie avant de descendre : chaque puce porte le sien. */
.level-chip__pebble {
  display: none;
}
@media (max-width: 959px) {
  .hero__levels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .level-chip {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 6px 4px 10px;
    border-radius: 24px 21px 24px 22px;
  }
  .level-chip .p-dot {
    display: none;
  }
  .level-chip__pebble {
    display: block;
    width: 60px;
  }
}
/* La puce touchée garde la marque du choix. */
[data-chosen][data-energy='low'] .level-chip--low {
  box-shadow: inset 0 0 0 2px var(--low);
}
[data-chosen][data-energy='mid'] .level-chip--mid {
  box-shadow: inset 0 0 0 2px var(--mid);
}
[data-chosen][data-energy='good'] .level-chip--good {
  box-shadow: inset 0 0 0 2px var(--good);
}
.hero__hint {
  margin-top: 12px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
@media (min-width: 960px) {
  .hero__checkin {
    padding: 24px 26px 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .level-chip:hover {
    transform: none;
  }
}

/* Pavage */

.paving {
  position: relative;
  overflow: hidden;
  background: #d2dace;
}
.paving__stones {
  position: absolute;
  inset: -12% 0 auto;
  width: 100%;
  height: 124%;
  object-fit: cover;
  will-change: transform;
}
.paving::before {
  /* Fondu du haut vers le fond de la page, comme le voile clair du header du pack. */
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 34%;
  z-index: 1;
  background: linear-gradient(var(--bg), rgb(238 241 236 / 0));
  pointer-events: none;
}

.paving--hero {
  height: clamp(280px, 34vw, 500px);
  margin-top: clamp(24px, 3vw, 40px);
}
/* Le galet du hero : celui de l'énergie choisie. Survoler une puce du check-in le montre en avance. */
.paving__pebble {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 36%;
  display: none;
  width: clamp(150px, 20vw, 280px);
  translate: -50% 0;
  transform-origin: 50% 88%;
  animation: pop 0.5s var(--ease), breathe 3.8s ease-in-out 0.5s infinite;
}
[data-energy='low'] .paving__pebble--low,
[data-energy='mid'] .paving__pebble--mid,
[data-energy='good'] .paving__pebble--good {
  display: block;
}
.hero:has(.level-chip:hover) .paving__pebble,
.hero:has(.level-chip:focus-visible) .paving__pebble {
  display: none;
}
.hero:has(.level-chip--low:hover) .paving__pebble--low,
.hero:has(.level-chip--low:focus-visible) .paving__pebble--low,
.hero:has(.level-chip--mid:hover) .paving__pebble--mid,
.hero:has(.level-chip--mid:focus-visible) .paving__pebble--mid,
.hero:has(.level-chip--good:hover) .paving__pebble--good,
.hero:has(.level-chip--good:focus-visible) .paving__pebble--good {
  display: block;
}

.paving--final {
  height: clamp(260px, 38vw, 540px);
  margin-top: clamp(40px, 6vw, 72px);
}
.paving__trio {
  position: absolute;
  z-index: 2;
  inset: auto 0 8%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(4px, 4vw, 72px);
}
.paving__trio img {
  width: clamp(96px, 17vw, 240px);
}

/* Bandes arrondies */

.band {
  margin: clamp(24px, 4vw, 56px) clamp(8px, 1.6vw, 24px) 0;
  padding-block: var(--section);
  border-radius: clamp(32px, 4.5vw, 64px);
}
.band--dark {
  background: var(--night);
  color: var(--on-dark);
}
.band--dark .body {
  color: var(--on-dark-soft);
}

/* Les 3 énergies */

.energy {
  --tint: var(--e-tint);
  --mark: var(--e-mark);
  --dot: var(--e-ill);
  --kicker: var(--e-ink);
  background: var(--tint);
  transition: background-color 0.6s var(--ease);
}

.energy__grid {
  display: grid;
  gap: clamp(48px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 960px) {
  .energy__grid {
    grid-template-columns: 5fr 7fr;
  }
}

.picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}
.picker__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 104px;
  padding: 14px 14px 12px;
  border: 2px solid transparent;
  border-radius: var(--pebble-radius);
  background: transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.picker__btn:hover {
  background: rgb(248 250 246 / 0.6);
}
.picker__btn[aria-pressed='true'] {
  background: var(--surface);
  border-color: var(--mark);
}
.picker__pebble {
  width: clamp(64px, 8vw, 92px);
  height: auto;
  transform-origin: 50% 90%;
  transition: transform 0.35s var(--ease), filter 0.35s, opacity 0.35s;
}
.picker__btn[aria-pressed='false'] .picker__pebble {
  filter: saturate(0.5);
  opacity: 0.75;
}
.picker__btn:hover .picker__pebble,
.picker__btn:focus-visible .picker__pebble {
  transform: translateY(-8px) rotate(-4deg);
  filter: none;
  opacity: 1;
}
.picker__word {
  font-weight: 700;
}

.energy__caption {
  margin-top: 24px;
  min-height: 3.2em;
  max-width: 30em;
}

/* Sur mobile, le sélecteur reste collé sous l'en-tête pendant que le téléphone défile : on voit le plan
   changer au moment où l'on choisit. La grille passe en bloc, sinon un élément collant ne sort pas de sa case. */
@media (max-width: 959px) {
  .energy__grid {
    display: block;
  }
  .energy__text {
    display: contents;
  }
  .energy__stage {
    margin-top: 40px;
  }
  .picker {
    position: sticky;
    top: 76px;
    z-index: 4;
    flex-wrap: nowrap;
    gap: 2px;
    width: fit-content;
    margin-inline: auto;
    padding: 5px;
    border-radius: 30px;
    background: var(--surface);
    box-shadow: 0 14px 32px -18px rgb(21 32 28 / 0.4);
  }
  .picker__btn {
    gap: 2px;
    min-width: 92px;
    padding: 8px 10px 6px;
    border-radius: 25px 23px 25px 24px;
  }
  .picker__btn[aria-pressed='true'] {
    background: var(--tint);
  }
  .picker__pebble {
    width: 44px;
  }
}

/* Téléphone */

.phone {
  justify-self: center;
  width: min(350px, 88vw);
  aspect-ratio: 350 / 756;
  padding: 11px;
  border-radius: 52px;
  background: var(--ink);
  box-shadow: 0 40px 80px -40px rgb(21 32 28 / 0.45);
}
.phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 50px 14px 16px;
  border-radius: 42px;
  background: var(--bg);
}
.phone__island {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 98px;
  height: 28px;
  translate: -50% 0;
  border-radius: 20px;
  background: var(--ink);
}

/* Écran Aujourd'hui d'exemple (structure de l'app : D-102, D-104, D-112) */

/* Une seule copie de l'écran : chaque texte a trois variantes, l'énergie choisie décide laquelle se voit. */
[data-energy='low'] [data-v]:not([data-v='low']),
[data-energy='mid'] [data-v]:not([data-v='mid']),
[data-energy='good'] [data-v]:not([data-v='good']),
[data-energy='low'] [data-in]:not([data-in~='low']),
[data-energy='mid'] [data-in]:not([data-in~='mid']),
[data-energy='good'] [data-in]:not([data-in~='good']) {
  display: none;
}

.p-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.p-title {
  flex: 1;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.4375rem;
  letter-spacing: -0.03em;
}
.p-energy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--kicker);
  font-weight: 700;
  font-size: 0.8125rem;
  transition: background-color 0.6s var(--ease);
}
.p-energy [data-v] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.p-plus {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--line);
}
.p-dot {
  display: inline-block;
  flex: none;
  width: 9px;
  height: 8px;
  border-radius: 50% 45% 55% 48%;
  background: currentColor;
}
.p-dot--low,
.p-dot--min {
  background: var(--low);
}
.p-dot--mid,
.p-dot--mini {
  background: var(--mid);
}
.p-dot--good,
.p-dot--full {
  background: var(--good);
}

.p-check {
  flex: none;
  width: 20px;
  height: 19px;
  border: 2px solid var(--line-strong);
  border-radius: 50% 45% 52% 48%;
}
.p-check--big {
  width: 30px;
  height: 28px;
  margin-top: 2px;
}
.p-check--done {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 15px;
  border: 0;
  background: var(--good);
  color: #fff;
}

.p-now {
  margin-top: 10px;
  padding: 10px 14px 12px;
  border-radius: 22px 18px 22px 20px;
  background: var(--surface);
}
.p-now__kicker {
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--clay-ink);
}
.p-now__row {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  margin-top: 6px;
}
.p-now__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.p-now__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.p-stuck {
  padding: 4px 11px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8125rem;
}

.p-block {
  margin-top: 8px;
}
.p-label {
  margin: 0 4px 4px;
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.p-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0;
  list-style: none;
  border-radius: 16px;
  background: var(--line);
  overflow: hidden;
}
.p-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  background: var(--surface);
}
.p-row__text {
  display: grid;
  min-width: 0;
}
.p-row__name,
.p-row__sub {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.p-row__name {
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.3;
}
.p-row__sub {
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--ink-soft);
}
.p-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px 2px 9px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.p-event__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: var(--sunken);
  color: var(--ink-soft);
}
.p-event__time {
  font-weight: 700;
  font-size: 0.8125rem;
}

.p-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.p-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--sunken);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.p-tabs {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 8px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.p-tab {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  font-weight: 700;
  font-size: 0.6875rem;
  color: var(--ink-soft);
}
.p-tab--on {
  color: var(--ink);
}
.p-tab--on::after {
  content: '';
  position: absolute;
  bottom: -7px;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--clay-ink);
}

/* Au changement d'énergie, seules les tâches bougent : les rendez-vous restent immobiles. */
.is-swapping .p-task,
.is-swapping .p-energy {
  animation: swap 0.55s var(--ease);
}
.is-swapping .p-group .p-task:nth-child(2) {
  animation-delay: 0.04s;
}
.is-swapping .p-group .p-task:nth-child(3) {
  animation-delay: 0.08s;
}
@keyframes swap {
  0% {
    opacity: 0.15;
    transform: translateY(6px) scale(0.98);
  }
}

/* Les deux annotations autour du téléphone */

.energy__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 14px;
}
.callout {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 300px;
  padding: 14px 18px;
  box-shadow: 0 18px 40px -22px rgb(21 32 28 / 0.35);
  border-radius: var(--pebble-radius);
  background: var(--surface);
  font-weight: 700;
  line-height: 1.3;
}
.callout small {
  display: block;
  margin-top: 2px;
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.callout__dot {
  flex: none;
  width: 14px;
  height: 13px;
  border-radius: 50% 45% 55% 48%;
  background: var(--mark);
  transition: background-color 0.6s var(--ease);
}
.callout__icon {
  flex: none;
  color: var(--ink-soft);
}
.callout--size {
  order: 2;
}
.callout--calendar {
  order: 3;
}
@media (min-width: 1280px) {
  /* Les annotations chevauchent le bord du téléphone, à hauteur de ce qu'elles commentent. */
  .energy__stage {
    position: relative;
    display: block;
  }
  .callout {
    position: absolute;
    z-index: 3;
    width: 210px;
    max-width: none;
  }
  .callout--size {
    top: 170px;
    right: calc(50% + 175px - 26px);
    rotate: -3deg;
  }
  .callout--calendar {
    top: 300px;
    left: calc(50% + 175px - 26px);
    rotate: 2deg;
  }
}

.task-stage__size:not([hidden]) {
  animation: fade-up 0.45s var(--ease);
}

/* Une tâche en 3 versions */

.versions {
  padding-block: var(--section);
}
.versions__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .versions__grid {
    grid-template-columns: 6fr 1fr 5fr;
  }
  .versions__text {
    grid-column: 1;
  }
  .task-stage {
    grid-column: 3;
  }
}
.versions {
  --dot: var(--good-ill);
}

.task-stage {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px);
  border-radius: 44px 38px 46px 40px;
  background: var(--surface);
  text-align: center;
}
.task-stage__pebbles {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: clamp(170px, 20vw, 230px);
}
.task-stage__pebble {
  transform-origin: 50% 90%;
}
.task-stage__pebble:not([hidden]) {
  animation: pop 0.5s var(--ease);
}
.task-stage__pebble--full {
  width: clamp(170px, 20vw, 230px);
}
.task-stage__pebble--mini {
  width: clamp(124px, 14vw, 164px);
}
.task-stage__pebble--min {
  width: clamp(84px, 9.5vw, 110px);
}
.task-stage__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--sunken);
}
.segmented button {
  min-height: 48px;
  padding: 0 clamp(14px, 2.4vw, 24px);
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 700;
  color: var(--ink-soft);
  transition: background-color 0.25s, color 0.25s;
}
.segmented button:hover {
  color: var(--ink);
}
.segmented button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--bg);
}

.task-stage__detail {
  min-height: 10.5em;
}
.task-stage__minutes {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}
.task-stage__minutes span {
  font-size: clamp(4rem, 2.6rem + 4.5vw, 6rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
[data-size-detail='full'] .task-stage__minutes {
  color: var(--good-ink);
}
[data-size-detail='mini'] .task-stage__minutes {
  color: var(--mid-ink);
}
[data-size-detail='min'] .task-stage__minutes {
  color: var(--low-ink);
}
.task-stage__text {
  margin-top: 4px;
  font-size: 1.125rem;
}
.task-stage__fits {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* Routines */

.band--sunken {
  background: var(--sunken);
}
.routines {
  --tint: var(--e-tint);
  --kicker: var(--e-ink);
  --dot: var(--e-ill);
}
.routines__grid {
  display: grid;
  /* Une colonne qui ne s'élargit pas avec son contenu : le téléphone, plus large, déborde autant des deux côtés. */
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.routines__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 16px;
}
@media (max-width: 959px) {
  .routines__text {
    order: -1;
  }
}
.routines__hint {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
@media (min-width: 960px) {
  .routines__grid {
    grid-template-columns: 6fr 1fr 5fr;
  }
  .routines__stage {
    grid-column: 1;
    grid-row: 1;
  }
  .routines__text {
    grid-column: 3;
  }
}

.r-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 14px 4px 6px;
}
.r-card-head .p-now__kicker span {
  color: var(--ink-soft);
}
.r-stop {
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

/* Le chemin : des galets numérotés reliés par un pointillé (D-099). */
.r-steps {
  position: relative;
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 10px 14px;
  list-style: none;
  border-radius: 22px 18px 22px 20px;
  background: var(--surface);
}
/* Le pointillé, un segment par étape : du haut au centre de la case (sauf la première), du centre au bas
   (sauf la dernière), comme `PathSegment` dans l'app. */
.r-step::before,
.r-step::after {
  content: '';
  position: absolute;
  left: 15px;
  border-left: 2px dotted var(--line-strong);
}
.r-step::before {
  top: -2px;
  height: calc(var(--cy) + 2px);
}
.r-step::after {
  top: var(--cy);
  bottom: -2px;
}
.r-step:first-child::before,
.r-step:last-child::after {
  display: none;
}
.r-step {
  --cy: 50%;
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 40px;
}
.r-step.is-current {
  --cy: 21px;
  align-items: start;
  padding-block: 6px;
}
.r-check {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 30px;
  padding: 0;
  border: 2px solid var(--ink-soft);
  border-radius: 50% 45% 52% 48%;
  background: var(--surface);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.8125rem;
  transition: background-color 0.3s, border-color 0.3s, transform 0.35s var(--ease);
}
.r-check::after {
  /* Zone tactile de 44, sans changer le dessin du galet. */
  content: '';
  position: absolute;
  inset: -7px -6px;
}
.r-check--v1 {
  border-radius: 46% 52% 48% 50%;
}
.r-check--v2 {
  border-radius: 52% 48% 45% 50%;
}
.r-check:hover {
  transform: scale(1.08);
}
.is-current .r-check {
  border-width: 2.5px;
  border-color: var(--ink);
  color: var(--ink);
}
.r-check__tick {
  display: none;
}
.is-done .r-check {
  border-color: var(--good);
  background: var(--good);
  color: #fff;
}
.is-done .r-check__rank {
  display: none;
}
.is-done .r-check__tick {
  display: block;
}
.is-done .r-check.is-popping {
  animation: pop 0.45s var(--ease);
}

.r-step__body {
  min-width: 0;
}
.r-step__name {
  font-weight: 700;
  font-size: 0.9375rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.is-done .r-step__name {
  font-weight: 500;
  color: var(--ink-soft);
}
.is-current .r-step__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.r-step:not(.is-done):not(.is-current) .r-step__body {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.r-step__min {
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.is-done .r-step__min,
.is-current .r-step__min,
.r-step__detail {
  display: none;
}
.is-current .r-step__detail {
  display: block;
  animation: fade-up 0.4s var(--ease);
}

.routines__sub {
  margin-top: 36px;
  font-weight: 700;
  font-size: 1rem;
}
.templates {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-width: 30em;
  margin-top: 12px;
  padding: 0;
  list-style: none;
  border-radius: 20px;
  background: var(--line);
  overflow: hidden;
}
.template {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
}
.template__badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 40px;
  border-radius: 50% 45% 55% 48%;
  color: var(--ink);
}
/* Couleurs décor : seulement dans les petits galets d'icône (D-025, D-099). */
.template__badge--0 {
  background: #e9dca6;
}
.template__badge--1 {
  background: #e4c2ca;
  border-radius: 46% 52% 48% 50%;
}
.template__badge--2 {
  background: #c2d4b2;
  border-radius: 52% 48% 45% 50%;
}
.template__text {
  display: grid;
}
.template__name {
  font-weight: 700;
}
.template__steps {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* I can't get started */

.start {
  --dot: var(--e-ill);
  background: var(--green-deep);
  color: var(--on-dark);
}
.start .body {
  color: var(--on-dark-soft);
}
.start__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
@media (min-width: 960px) {
  .start__grid {
    grid-template-columns: 6fr 5fr;
  }
}
.start__note {
  margin-top: 28px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--e-on-dark);
}

.timer {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 28px;
}
.timer__trigger {
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--on-dark);
  color: var(--green-deep);
  font-weight: 700;
  font-size: 1.0625rem;
  transition: transform 0.2s var(--ease);
}
.timer__trigger:hover {
  transform: translateY(-2px);
}
.timer__trigger:active {
  transform: scale(0.97);
}
.timer__ring {
  position: relative;
  width: min(300px, 72vw);
  aspect-ratio: 1;
}
.timer__ring svg {
  width: 100%;
  height: 100%;
  rotate: -90deg;
}
.timer__track,
.timer__arc {
  fill: none;
  stroke-width: 10;
}
.timer__track {
  stroke: rgb(238 241 236 / 0.14);
}
.timer__arc {
  stroke: var(--e-ill);
  stroke-linecap: round;
  stroke-dasharray: 100 100;
  stroke-dashoffset: 0;
}
.timer__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  text-align: center;
}
.timer__clock {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.5rem, 2.6rem + 3vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.timer__phrase {
  max-width: 11em;
  color: var(--on-dark-soft);
  font-size: 0.9375rem;
  transition: opacity 0.4s;
}
.timer__phrase.is-fading {
  opacity: 0;
}
/* Les trois choix de la fin : une ligne de texte, pas des boutons (la démonstration ne se clique pas). */
.timer__choices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 14px;
  padding: 0;
  list-style: none;
  transition: opacity 0.5s;
}
.timer[data-state='running'] .timer__choices {
  /* Les choix n'arrivent qu'à la fin des deux minutes ; ils restent lisibles sans le script. */
  opacity: 0.35;
}
.timer__choice {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--on-dark-soft);
}
.timer__choice + .timer__choice::before {
  content: '';
  width: 6px;
  height: 5px;
  border-radius: 50% 45% 55% 48%;
  background: rgb(238 241 236 / 0.4);
}
.timer__choice--main {
  color: var(--e-on-dark);
}
.timer__pebble {
  position: absolute;
  left: 0;
  top: 46%;
  width: clamp(84px, 10vw, 124px);
}
@media (max-width: 520px) {
  .timer__pebble {
    left: -8px;
    top: 52%;
  }
}

/* Compteur de démarrages */

.counter {
  --dot: var(--clay);
  --kicker: var(--clay-ink);
  padding-block: var(--section);
}
.counter__grid {
  display: grid;
  gap: 32px;
  align-items: end;
}
.counter__number {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.counter__digits {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(7.5rem, 2.5rem + 22vw, 17rem);
  line-height: 0.86;
  letter-spacing: -0.065em;
  font-variant-numeric: tabular-nums;
}
.counter__digits.is-bump {
  animation: bump 0.7s var(--ease);
}
.counter__unit {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink-soft);
}
.counter .hand {
  margin-top: 18px;
  margin-left: 0.4em;
}
.counter__cairn {
  width: clamp(170px, 22vw, 300px);
  justify-self: start;
}
@media (max-width: 959px) {
  /* Sur mobile, le cairn se tient en petit à droite, entre la phrase manuscrite et le titre : le
     chiffre et son cairn font un seul bloc, et le texte suit sans illustration isolée. */
  .counter__grid {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .counter__figure,
  .counter__text {
    grid-column: 1 / -1;
  }
  .counter__figure {
    grid-row: 1;
  }
  .counter__cairn {
    grid-area: 1 / 2;
    align-self: end;
    justify-self: end;
    width: clamp(92px, 26vw, 150px);
    /* Descendu sous la phrase manuscrite, à hauteur du petit titre : aucun texte dessous à cet endroit. */
    margin-bottom: -62px;
  }
}

@media (min-width: 960px) {
  .counter__grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: 24px;
    row-gap: 72px;
  }
  .counter__figure {
    grid-column: 1 / 9;
  }
  .counter__cairn {
    grid-column: 9 / -1;
    justify-self: end;
  }
  .counter__text {
    grid-column: 5 / 12;
  }
}

/* Bilan du soir */

.evening {
  --dot: var(--low-ill);
  --kicker: #8aa4e8;
}
.evening__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
}
@media (min-width: 960px) {
  .evening__grid {
    grid-template-columns: 6fr 1fr 5fr;
    row-gap: 72px;
  }
  .evening__text,
  .evening__calendar {
    grid-column: 1;
  }
  .evening__stage {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
  }
}
.phone--dark {
  background: #000;
  box-shadow: 0 0 0 1px #2a2e2a;
}
/* Le bilan du soir d'exemple, sur le thème Soir de l'app (design/tokens.json, colonne soir). */
.evening__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 14px;
}
.evening__stage .callout--done {
  order: 2;
}
.evening__stage .callout--question {
  order: 3;
}
.callout--dark {
  background: #222c47;
  color: #eef1f8;
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.6);
}
@media (min-width: 1280px) {
  .evening__stage {
    position: relative;
    display: block;
  }
  .evening__stage .callout {
    position: absolute;
    z-index: 3;
    right: calc(50% + 175px - 26px);
    width: 210px;
    max-width: none;
  }
  .evening__stage .callout--done {
    top: 190px;
    rotate: -3deg;
  }
  .evening__stage .callout--question {
    top: 440px;
    rotate: 2deg;
  }
}

.ev-screen {
  --s-bg: #10172a;
  --s-surface: #182139;
  --s-line: #333f5e;
  --s-ink: #eef1f8;
  --s-soft: #b3bbd3;
  --s-accent: #ee8f73;
  display: flex;
  flex-direction: column;
  padding: 50px 18px 18px;
  background: var(--s-bg);
  color: var(--s-ink);
}
.ev-screen[data-ev='low'] [data-evv]:not([data-evv='low']),
.ev-screen[data-ev='mid'] [data-evv]:not([data-evv='mid']),
.ev-screen[data-ev='good'] [data-evv]:not([data-evv='good']) {
  display: none;
}
.ev-art {
  align-self: center;
  width: 88px;
  margin-bottom: 6px;
}
.ev-date {
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--s-accent);
}
.ev-title {
  margin-top: 2px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.ev-summary {
  margin-top: 6px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--s-soft);
}
.ev-label {
  margin: 18px 0 8px;
  font-weight: 700;
  font-size: 0.8125rem;
}
.ev-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.ev-tile {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 11px 4px 9px;
  border: 2px solid transparent;
  border-radius: 18px 15px 18px 16px;
  background: var(--s-surface);
  color: var(--s-ink);
  font-weight: 700;
  font-size: 0.8125rem;
  transition: background-color 0.3s, border-color 0.3s;
}
.ev-tile img {
  width: 40px;
  transition: opacity 0.3s, transform 0.35s var(--ease);
}
.ev-tile[aria-pressed='false'] img {
  opacity: 0.5;
}
.ev-tile:hover img {
  opacity: 1;
  transform: translateY(-3px);
}
.ev-tile--low[aria-pressed='true'] {
  background: #23325a;
  border-color: #8aa4e8;
}
.ev-tile--mid[aria-pressed='true'] {
  background: #3a2b10;
  border-color: #f0b35a;
}
.ev-tile--good[aria-pressed='true'] {
  background: #12362d;
  border-color: #55c2a6;
}
.ev-field {
  min-height: 70px;
  padding: 9px 12px;
  border: 1.5px solid var(--s-line);
  border-radius: 14px;
  background: var(--s-surface);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--s-ink);
}
.ev-caret {
  display: inline-block;
  width: 1.5px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--s-accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.ev-chips [data-evv] {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ev-chip {
  padding: 4px 11px;
  border: 1.5px solid var(--s-line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--s-soft);
}
.ev-chip--on {
  border-color: var(--s-ink);
  background: var(--s-ink);
  color: var(--s-bg);
}
.ev-screen [data-evv] {
  animation: fade 0.35s;
}
.ev-cta {
  margin-top: auto;
  padding: 13px;
  border-radius: 16px;
  background: var(--s-ink);
  color: var(--s-bg);
  font-weight: 700;
  text-align: center;
}

.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  max-width: 380px;
  margin-top: 24px;
}
.cal__weekday {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--on-dark-soft);
  text-align: center;
}
.cal__day {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 46% 40% 48% 42%;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--night);
}
.cal__day:nth-child(3n) {
  border-radius: 40% 48% 42% 46%;
}
.cal__day--l {
  background: var(--low-ill);
}
.cal__day--m {
  background: var(--mid-ill);
}
.cal__day--g {
  background: var(--good-ill);
}
.cal__day--n {
  border: 1.5px solid #6f7b72;
  color: var(--on-dark-soft);
}
.cal__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--on-dark-soft);
}
.cal__legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cal__key {
  display: inline-block;
  width: 14px;
  height: 13px;
  border-radius: 50% 45% 55% 48%;
}

/* Confidentialité */

.privacy {
  --dot: var(--good-ill);
  --kicker: var(--good-ink);
  padding-block: var(--section);
}
.privacy__grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 960px) {
  .privacy__grid {
    grid-template-columns: 5fr 1fr 6fr;
  }
  .privacy__head {
    position: sticky;
    top: 104px;
    align-self: start;
  }
  .promises {
    grid-column: 3;
  }
}
.promises {
  padding: 0;
  list-style: none;
}
.promise {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 12px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
.promise:last-child {
  border-bottom: 1px solid var(--line);
}
.promise__num {
  grid-row: 1 / 3;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--good-ink);
}
.promise__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.promise__body {
  margin-top: 6px;
  color: var(--ink-soft);
}

/* Appel final */

.final {
  padding-top: var(--section);
}
.final__head {
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

/* Pied de page */

.site-foot {
  padding-block: 64px 40px;
  background: var(--green-deep);
  color: var(--on-dark);
}
.site-foot__grid {
  display: grid;
  gap: 24px 32px;
}
.wordmark--foot img {
  width: 30px;
  height: 30px;
}
.site-foot__tag {
  color: var(--on-dark-soft);
}
.site-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  padding: 0;
  list-style: none;
}
.site-foot__links a {
  display: inline-block;
  padding: 12px 8px;
  font-weight: 700;
  text-underline-offset: 5px;
}
.site-foot__legal,
.site-foot__rights {
  font-size: 0.875rem;
  color: var(--on-dark-soft);
}
.site-foot__legal {
  max-width: 40em;
  padding-top: 24px;
  border-top: 1px solid rgb(238 241 236 / 0.18);
}
@media (min-width: 760px) {
  .site-foot__grid {
    grid-template-columns: 1fr auto;
  }
  .site-foot__links {
    justify-self: end;
    align-self: start;
  }
  .site-foot__legal {
    grid-column: 1 / -1;
  }
}

/* Mouvement */

.breathe {
  transform-origin: 50% 88%;
  animation: breathe 3.8s ease-in-out infinite;
}
.paving__trio img:nth-child(2) {
  animation-delay: -1.3s;
}
.paving__trio img:nth-child(3) {
  animation-delay: -2.5s;
}

.is-pending {
  opacity: 0;
  transform: translateY(22px);
}
.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025, 1.035);
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes pop {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  60% {
    transform: scale(1.06);
  }
}
@keyframes bump {
  0% {
    transform: translateY(0);
  }
  35% {
    transform: translateY(-14%);
    color: var(--clay-ink);
  }
  100% {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .breathe,
  .paving__pebble,
  .counter__digits.is-bump,
  .task-stage__pebble:not([hidden]),
  .is-done .r-check.is-popping,
  .is-current .r-step__detail,
  .ev-caret {
    animation: none;
  }
  .task-stage__size:not([hidden]),
  .is-swapping .p-task,
  .is-swapping .p-energy {
    animation: fade 0.2s;
  }
  .picker__btn:hover .picker__pebble,
  .picker__btn:focus-visible .picker__pebble,
  .r-check:hover,
  .ev-tile:hover img {
    transform: none;
  }
  .is-pending {
    transform: none;
  }
  .is-in {
    transition: opacity 0.2s;
  }
  .paving__stones {
    will-change: auto;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
