/* Sierra, le site. Identité Signal : sol graphite, une seule teinte lime, Archivo pour les titres et le texte,
   Unbounded pour les chiffres. Premier écran mesuré sur la maquette approuvée (2752 × 1536). */

@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

@font-face {
  font-family: "Unbounded";
  src: url("fonts/Unbounded-Variable.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --ground: #16181a;
  --ground-deep: #0e0f10;
  --raised: #1f2225;
  --raised-2: #2a2e32;
  --ink: #f4f5f6;
  --muted: #a7adb3;
  --lime: #c8f04a;
  --lime-deep: #b5dc36;
  --on-lime: #16181a;
  --lunar: #d9dcdf;

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --figure: "Unbounded", "Archivo", system-ui, sans-serif;

  --margin: clamp(20px, 8.07vw, 222px);
  --gap-section: clamp(120px, 14vw, 240px);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --radius-pill: 999px;
  --radius-card: 22px;

  color-scheme: dark;
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

::selection {
  background: var(--lime);
  color: var(--on-lime);
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-pill);
}

.skip:focus {
  top: 16px;
}

/* Boutons : une seule forme, la pilule lime. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms ease;
}

.btn:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background: #d6f56e;
  }
}

.btn-sm {
  height: max(40px, 2.98vw);
  padding: 0 max(20px, 1.4vw);
  font-size: max(16px, 1.25vw);
}

.btn-lg {
  height: max(52px, 3.92vw);
  padding: 0 max(28px, 2.3vw);
  font-size: max(17px, 1.6vw);
}

.btn-ink {
  background: var(--on-lime);
  color: var(--lime);
}

@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover {
    background: #000;
  }
}

.h2 {
  font-family: var(--font);
  font-size: clamp(38px, 2.87vw + 4px, 84px);
  font-weight: 800;
  font-stretch: 86%;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* ———————————————————— Navigation ———————————————————— */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 9.2vw;
  max-height: 140px;
}

/* La maquette tire un filet sous la barre, à la hauteur où commence le portrait. */
.nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 6.1vw;
  height: 1px; /* taste-skill-ignore : filet montré par la maquette */
  background: rgb(244 245 246 / 0.12); /* taste-skill-ignore */
  pointer-events: none;
}

.nav.is-fixed::after {
  top: auto;
  bottom: 0;
}

.nav-logo {
  position: absolute;
  left: 8.07%;
  top: 1.91vw;
  width: max(132px, 12.5vw);
}

.nav-logo svg {
  width: 100%;
  height: auto;
}

.nav-links {
  position: absolute;
  left: 56.4%;
  top: 2.1vw;
  display: flex;
  gap: 1.45vw;
  font-size: max(16px, 1.287vw);
  line-height: 1;
}

.nav-links a {
  text-decoration: none;
  padding: 0.5vw 0;
  transition: color 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    color: var(--lime);
  }
}

.nav-cta {
  position: absolute;
  left: 80.85%;
  top: 1.67vw;
  width: 11.05%;
  height: 2.98vw;
  padding: 0;
  font-size: 1.4vw;
  font-weight: 580;
  font-stretch: 86%;
}

/* ———————————————————— Premier écran ———————————————————— */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 2752 / 1440;
  overflow: hidden;
  background: var(--ground);
}

.hero-wave {
  position: absolute;
  left: 0;
  top: 16.6%;
  width: 100%;
  height: 46%;
  z-index: 2;
  color: var(--lime);
  pointer-events: none;
  /* Elle passe devant le halo du portrait et s'efface sur le visage, puis ressort à sa droite. */
  -webkit-mask-image: linear-gradient(90deg, #000 75.5%, transparent 77.5%, transparent 92%, #000 94.5%); /* taste-skill-ignore : masque, pas un remplissage */
  mask-image: linear-gradient(90deg, #000 75.5%, transparent 77.5%, transparent 92%, #000 94.5%); /* taste-skill-ignore */
}

.hero-portrait {
  position: absolute;
  left: 61.12%;
  top: 11.67%;
  width: 38.88%;
  height: 83.62%;
  z-index: 1;
  overflow: hidden;
  /* Le bord gauche du portrait se fond dans le sol : l'onde y passe, le visage reste devant. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%); /* taste-skill-ignore : masque d'image, pas un remplissage */
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%); /* taste-skill-ignore */
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
}

.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-copy > * {
  pointer-events: auto;
}

.hero-title {
  position: absolute;
  left: 8.07%;
  top: 29.72%;
  width: 36%;
  font-size: 10.22vw;
  font-weight: 700;
  font-stretch: 92%;
  line-height: 0.8;
  letter-spacing: -0.03em;
}

.hero-title .line {
  display: block;
}

.hero-lede {
  position: absolute;
  left: 8.07%;
  top: 65.49%;
  width: 36%;
  font-size: 1.886vw;
  line-height: 1.24;
  font-stretch: 89%;
}

.hero-cta {
  position: absolute;
  left: 8.07%;
  top: 80.77%;
  width: 14.24%;
  height: 7.1%;
  margin-top: -0.15vw;
  padding: 0;
  font-size: 1.36vw;
  font-weight: 600;
}

.hero-price {
  position: absolute;
  left: 8.07%;
  top: 88.96%;
  font-size: 1.123vw;
  font-stretch: 95%;
  color: var(--ink);
  white-space: nowrap;
}

/* La carte de rappel : un vrai fragment de l'app, posé sur l'épaule de Sierra. */
.callback {
  position: absolute;
  left: 52%;
  top: 53.61%;
  width: 20.97%;
  height: 31.39%;
  z-index: 4;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  align-content: start;
  gap: 0.5vw;
  padding: 1vw 1.13vw 0.9vw;
  border-radius: 1.1vw;
  background: rgb(56 58 43 / 0.58);
  border: 1px solid rgb(200 240 74 / 0.2); /* taste-skill-ignore : fragment data-ui */
  box-shadow: 0 1.6vw 3vw -1vw rgb(0 0 0 / 0.55); /* taste-skill-ignore : la carte flotte sur le portrait */
}

.callback-title {
  font-size: 1.297vw;
  font-stretch: 86%;
  line-height: 1.22;
  color: var(--ink);
}

.callback-title b {
  font-weight: 700;
}

.callback-now {
  height: 2.85vw;
  margin-top: 0.3vw;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--on-lime);
  font-size: 1.3vw;
  font-weight: 600;
  transition: transform 160ms var(--ease-out);
}

.callback-delays {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.42vw;
}

.callback-delays button {
  height: 2.54vw;
  border-radius: var(--radius-pill);
  border: 0.11vw solid rgb(200 240 74 / 0.78);
  background: rgb(244 245 246 / 0.07);
  color: var(--ink);
  font-size: 1.16vw;
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms ease,
    color 160ms ease;
}

.callback-delays button[aria-pressed="true"] {
  background: rgb(200 240 74 / 0.14);
  border-color: var(--lime);
  color: var(--lime);
}

.callback-now:active,
.callback-delays button:active {
  transform: scale(0.96);
}

.callback-sent {
  align-self: end;
  padding-top: 0.75vw;
  border-top: 1px solid rgb(244 245 246 / 0.12); /* taste-skill-ignore : séparateur interne du fragment data-ui */
  font-size: 1.26vw;
  font-stretch: 84%;
  line-height: 1.25;
  color: var(--ink);
  min-height: 4vw;
}

.callback-sent .caret {
  display: inline-block;
  width: 0.08em;
  height: 1em;
  margin-left: 0.05em;
  vertical-align: -0.12em;
  background: var(--lime);
  animation: caret 0.9s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

@media (min-width: 1100px) and (min-aspect-ratio: 1/1) {
  .callback {
    display: block;
    padding: 0;
  }

  .callback > * {
    position: absolute;
    left: 5.37%;
    margin: 0;
  }

  .callback-title {
    top: 6.19%;
    width: 90.1%;
  }

  .callback-title {
    font-weight: 350;
  }

  .callback-title b {
    font-weight: 560;
  }

  .callback-now {
    top: 28.76%;
    width: 89.08%;
    height: 18.58%;
  }

  .callback-delays {
    top: 50.44%;
    width: 89.08%;
    height: 15.49%;
  }

  .callback-delays button {
    height: 100%;
  }

  .callback-sent {
    top: 69.5%;
    width: 90.1%;
    min-height: 0;
    padding-top: 0.9vw;
  }
}

/* ———————————————————— La journée en un signal ———————————————————— */
.journey {
  position: relative;
  background: var(--ground);
}

.journey-stage {
  position: relative;
  min-height: 100svh;
  padding: clamp(16px, 1.1vw, 40px) var(--margin) clamp(32px, 4vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  gap: clamp(20px, 2.5vw, 48px) clamp(24px, 4vw, 80px);
  overflow: hidden;
}

.journey-head {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: 16px;
}

.journey-intro {
  font-size: clamp(18px, 1.5vw, 26px);
  color: var(--ink);
  max-width: 44ch;
}

/* La minuterie de la journée, dans son panneau de télémétrie. */
.journey-clock {
  grid-column: 2;
  grid-row: 1;
  justify-self: stretch;
  align-self: start;
  margin-right: 8%;
  padding: clamp(14px, 1.4vw, 28px) clamp(18px, 1.8vw, 36px);
  border-radius: clamp(16px, 1.2vw, 26px);
  background: #1d1f1b;
  border: 1px solid rgb(200 240 74 / 0.22); /* taste-skill-ignore : panneau de télémétrie montré par la maquette */
  text-align: left;
}

.journey-clock-label {
  font-size: clamp(14px, 1vw, 18px);
  color: var(--muted);
}

.journey-clock-time {
  margin-top: clamp(10px, 1.6vw, 30px);
  text-align: center;
  font-family: var(--figure);
  font-size: clamp(56px, 7vw, 150px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.journey-trace {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0 calc(var(--margin) * -1);
  position: relative;
}

.trace-canvas {
  width: 100%;
  height: clamp(150px, 15vw, 300px);
  color: var(--lime);
  font-family: var(--figure);
}

.moments {
  grid-column: 1 / -1;
  grid-row: 3;
  position: relative;
  list-style: none;
  padding: 0;
  min-height: clamp(190px, 14vw, 300px);
}

.moment {
  position: absolute;
  inset: 0 0 auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px clamp(24px, 4vw, 80px);
  opacity: 0;
  visibility: hidden;
}

.moment-when {
  display: grid;
  gap: 10px;
}

.moment.is-active {
  opacity: 1;
  visibility: visible;
}

.moment-time {
  font-family: var(--figure);
  font-size: clamp(30px, 3.2vw, 60px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.moment-title {
  font-size: clamp(22px, 1.9vw, 34px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 24ch;
}

/* La radio d'équipe : le bandeau de diffusion, puis la phrase de Sierra en grande légende. */
.moment-radio {
  display: grid;
  justify-items: start;
  gap: 14px;
  margin: 0;
}

.radio-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 5px;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--on-lime);
  font-size: 15px;
  line-height: 1;
}

.radio-face {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--on-lime);
  object-fit: cover;
  object-position: 50% 12%;
}

.radio-bar b {
  font-weight: 750;
}

.radio-bar span {
  font-weight: 450;
}

.radio-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  font-style: normal;
  font-weight: 650;
}

.radio-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--on-lime);
}

.moment-radio blockquote {
  margin: 0;
  font-size: clamp(22px, 2.1vw, 36px);
  line-height: 1.2;
  color: var(--lime);
  max-width: 26ch;
  text-wrap: balance;
}

/* ———————————————————— Vitrine ———————————————————— */
.showcase {
  position: relative;
  background: var(--ground-deep);
  margin-top: var(--gap-section);
}

.showcase-pin {
  position: relative;
  min-height: 100svh;
  padding: clamp(40px, 5vw, 96px) 0;
  display: grid;
  align-content: center;
  gap: clamp(28px, 3vw, 56px);
  overflow: hidden;
}

.showcase-heading {
  padding: 0 var(--margin);
}

.showcase-track {
  display: flex;
  gap: 6vw;
  padding: 0 calc(50vw - min(460px, 34vw) / 2);
  width: max-content;
  will-change: transform;
}

.panel {
  flex: none;
  width: min(460px, 34vw);
  display: grid;
  gap: 24px;
  transition: opacity 300ms ease;
}

.panel-ui {
  border-radius: var(--radius-card);
  background: var(--raised);
  padding: 22px;
  min-height: 330px;
  transition:
    background-color 300ms ease,
    transform 400ms var(--ease-out);
}

.panel.is-lit .panel-ui {
  background: #262a24;
  transform: translateY(-6px);
}

.panel-name {
  font-size: clamp(26px, 2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.panel-text p {
  margin-top: 6px;
  font-size: 17px;
  color: var(--muted);
  max-width: 40ch;
}

.panel.is-lit .panel-text p {
  color: var(--ink);
}

/* Fragments d'interface : les vraies conventions de l'app, avec leurs bordures. */
[data-ui] {
  font-size: 16px;
}

.ui-meta {
  font-size: 14px;
  color: var(--muted);
}

.ui-convo {
  display: grid;
  gap: 10px;
}

.ui-bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.4;
}

.ui-bubble.in {
  background: var(--raised-2);
  border-bottom-left-radius: 6px;
}

.ui-bubble.out {
  justify-self: end;
  background: var(--ink);
  color: var(--on-lime);
  border-bottom-right-radius: 6px;
}

.ui-draft-label {
  justify-self: end;
  font-size: 13px;
  color: var(--lime);
}

.ui-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.ui-btn {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--on-lime);
  font-size: 14px;
  font-weight: 600;
}

.ui-btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgb(244 245 246 / 0.25); /* taste-skill-ignore : bouton secondaire du fragment data-ui */
}

.ui-call {
  display: grid;
  gap: 8px;
}

.ui-call-name {
  font-size: 22px;
  font-weight: 700;
}

.ui-timer {
  font-family: var(--figure);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.ui-bars {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 64px;
}

.ui-bars i {
  flex: 1;
  height: 30%;
  border-radius: 3px;
  background: var(--lime);
  transform-origin: center;
  animation: bar 1.1s var(--ease-in-out) infinite alternate;
}

.ui-bars i:nth-child(3n) {
  animation-delay: -0.3s;
}

.ui-bars i:nth-child(3n + 1) {
  animation-delay: -0.7s;
}

.ui-bars i:nth-child(4n) {
  animation-duration: 0.8s;
}

@keyframes bar {
  from {
    transform: scaleY(0.4);
  }
  to {
    transform: scaleY(2.6);
  }
}

.ui-note {
  font-size: 14px;
  color: var(--muted);
}

.ui-meeting {
  display: grid;
  gap: 14px;
}

.ui-meeting-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
}

.ui-meeting-timer {
  font-family: var(--figure);
  font-size: 28px;
  font-weight: 700;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.ui-coverage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
}

.ring-track {
  fill: none;
  stroke: var(--raised-2);
  stroke-width: 6;
}

.ring-value {
  fill: none;
  stroke: var(--lime);
  stroke-width: 6;
  stroke-linecap: round;
}

.ui-coverage text {
  fill: var(--lime);
  font-family: var(--figure);
  font-size: 13px;
}

.ui-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0;
  list-style: none;
}

.ui-chips li {
  padding: 6px 4px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #4c5156;
  font-size: 13px;
  text-align: center;
  color: var(--muted);
}

.ui-chips li.on {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--on-lime);
  font-weight: 600;
}

.ui-ask {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.5px solid var(--lime);
  font-size: 15px;
}

.ui-content {
  display: grid;
  gap: 16px;
}

.ui-content-title {
  font-size: 22px;
  font-weight: 800;
}

.ui-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0;
  list-style: none;
  font-size: 13px;
  text-align: center;
  color: var(--muted);
}

.ui-week li::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 8px auto 0;
  border-radius: 50%;
  background: #4c5156;
}

.ui-week li.on {
  color: var(--lime);
}

.ui-week li.on::after {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  background: var(--lime);
}

.ui-posts {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.ui-posts li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--raised-2);
  font-size: 14px;
}

.ui-posts span {
  color: var(--muted);
  white-space: nowrap;
}

.ui-seq ol {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.ui-seq li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--raised-2);
  font-size: 14px;
}

.ui-seq li span {
  color: var(--muted);
}

.ui-seq li.done b::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--lime);
}

/* ———————————————————— La tour de chronométrage ———————————————————— */
.pit {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 clamp(24px, 3vw, 56px);
  padding: var(--gap-section) var(--margin) 0;
}

.pit-head {
  grid-column: 1 / span 4;
  align-self: start;
  display: grid;
  gap: 20px;
}

.pit-intro {
  font-size: clamp(18px, 1.4vw, 24px);
  line-height: 1.35;
  max-width: 24ch;
}

.tower {
  grid-column: 5 / span 8;
  display: grid;
  gap: 4px;
  padding: 0;
  list-style: none;
}

.tower-row {
  display: grid;
  grid-template-columns: 2.6em clamp(130px, 13vw, 230px) minmax(0, 1fr);
  align-items: center;
  gap: 0 clamp(14px, 1.6vw, 28px);
  padding: clamp(14px, 1.3vw, 22px) clamp(16px, 1.6vw, 28px);
  border-radius: 14px;
  background: var(--raised);
  transition:
    background-color 240ms ease,
    color 240ms ease;
}

.tower-row.is-on {
  background: var(--lime);
  color: var(--on-lime);
}

.tower-pos {
  font-family: var(--figure);
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.tower-figure {
  font-family: var(--figure);
  font-size: clamp(24px, 2.2vw, 40px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--lime);
  white-space: nowrap;
}

.tower-text {
  display: grid;
  gap: 4px;
}

.tower-name {
  font-size: clamp(17px, 1.3vw, 22px);
  font-weight: 700;
  line-height: 1.2;
}

.tower-line {
  font-size: 16px;
  line-height: 1.4;
  color: var(--muted);
  max-width: 48ch;
}

.tower-row.is-on .tower-pos,
.tower-row.is-on .tower-figure,
.tower-row.is-on .tower-line {
  color: var(--on-lime);
}

/* ———————————————————— L'essai, imprimé comme un billet ———————————————————— */
.trip {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: var(--gap-section);
  padding: clamp(64px, 7vw, 128px) var(--margin);
  background: var(--lime);
  color: var(--on-lime);
}

.trip-copy {
  grid-column: 1 / span 5;
  display: grid;
  align-content: start;
  gap: 24px;
}

.trip-copy p {
  font-size: clamp(18px, 1.4vw, 24px);
  max-width: 30ch;
}

.trip-copy .btn {
  justify-self: start;
  background: var(--on-lime);
  color: var(--lime);
}

.slip {
  grid-column: 7 / span 6;
  justify-self: end;
  width: min(100%, 540px);
  padding: 32px 32px 56px;
  background: var(--ink);
  color: var(--on-lime);
  font-variant-numeric: tabular-nums;
  /* Le bas du reçu est déchiré : des dents de 14 px, découpées par un masque. */
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 28px 100%; /* taste-skill-ignore : masque du bord déchiré */
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 28px 100%; /* taste-skill-ignore */
}

.slip-day {
  margin-top: 28px;
  font-size: 16px;
  font-weight: 800;
}

.slip-day:first-child {
  margin-top: 0;
}

.slip-rows {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 0;
  list-style: none;
}

.slip-rows li {
  display: grid;
  grid-template-columns: auto minmax(16px, 1fr) auto;
  align-items: end;
  gap: 8px;
  font-size: 16px;
}

.slip-rows i {
  height: 4px;
  margin-bottom: 6px;
  background-image: radial-gradient(circle, var(--on-lime) 1.6px, transparent 2px); /* taste-skill-ignore : filet de points du billet */
  background-size: 8px 4px;
  background-repeat: repeat-x;
  opacity: 0.55;
}

.slip-rows b {
  font-weight: 700;
  white-space: nowrap;
}

.slip-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  margin: 28px -32px 0;
  padding: 12px 32px;
  background: var(--on-lime);
  color: var(--ink);
  font-weight: 700;
}

/* ———————————————————— Prix ———————————————————— */
.pricing {
  padding: var(--gap-section) var(--margin) 0;
  display: grid;
  gap: clamp(28px, 3vw, 56px);
}

.plan {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border-radius: 28px;
  overflow: hidden;
  background: var(--raised);
}

.plan-figure {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(28px, 3vw, 56px);
  background: var(--lime);
  color: var(--on-lime);
}

.plan-price {
  font-family: var(--figure);
  font-size: clamp(88px, 10vw, 190px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.plan-unit {
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 600;
}

.plan-figure .btn {
  justify-self: start;
  margin-top: 12px;
}

.plan-terms {
  font-size: 15px;
  max-width: 36ch;
}

.plan-list {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(28px, 3vw, 56px);
  list-style: none;
  font-size: clamp(17px, 1.3vw, 22px);
}

.plan-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: start;
}

.plan-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 0.22em;
  border-radius: 50%;
  background: var(--lime);
  border: 5px solid var(--raised);
}

/* ———————————————————— Questions ———————————————————— */
.faq {
  margin-top: var(--gap-section);
}

.faq-head {
  display: flex;
  align-items: flex-end;
  min-height: clamp(180px, 22svh, 280px);
  padding: 40px var(--margin);
  background: var(--lime);
  color: var(--on-lime);
}

.faq-title {
  font-size: clamp(56px, 7vw, 132px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.faq-band {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 24px;
  padding: 56px var(--margin);
}

.faq-band:nth-child(odd) {
  background: var(--raised);
}

.faq-band h3 {
  grid-column: 1 / span 5;
  font-size: clamp(24px, 2.1vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.faq-band p {
  grid-column: 7 / span 6;
  font-size: 18px;
  line-height: 1.55;
  max-width: 60ch;
}

/* ———————————————————— Le mot-bouton ———————————————————— */
.cta-band {
  position: relative;
  display: grid;
  gap: clamp(40px, 6vw, 112px);
  padding: clamp(28px, 4vw, 72px) 0 24px;
  overflow: hidden;
  background: var(--lime);
  color: var(--on-lime);
  text-decoration: none;
  transition:
    background-color 240ms ease,
    color 240ms ease;
}

.cta-note {
  margin: 0 var(--margin);
  max-width: 34ch;
  font-size: clamp(18px, 1.9vw, 34px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.cta-arrow {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.3em;
  vertical-align: -0.1em;
  stroke: currentColor;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 300ms var(--ease-out);
}

.cta-word {
  justify-self: start;
  margin-left: calc(var(--margin) - 0.06em);
  font-size: calc((100vw - var(--margin) * 2) / 3.5);
  font-weight: 900;
  font-stretch: 88%;
  line-height: 0.76;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.cta-band:focus-visible {
  background: var(--on-lime);
  color: var(--lime);
}

@media (hover: hover) and (pointer: fine) {
  .cta-band:hover {
    background: var(--on-lime);
    color: var(--lime);
  }

  .cta-band:hover .cta-arrow {
    transform: translate(6px, -6px);
  }
}

/* Le mot se laisse enfoncer : la bande entière est un bouton. */
.cta-band:active .cta-word {
  transform: scale(0.985);
}

/* ———————————————————— Télécharger l'app ———————————————————— */
.dl {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(32px, 5vw, 100px);
  margin-top: clamp(56px, 6vw, 110px);
  padding: clamp(64px, 7vw, 130px) var(--margin);
  background: var(--ground-deep);
}

.dl-copy {
  display: grid;
  gap: clamp(22px, 2.2vw, 36px);
}

.dl-title {
  font-size: clamp(44px, 5.4vw, 108px);
  font-weight: 900;
  font-stretch: 86%;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.dl-title span {
  display: block;
  color: var(--lime);
}

.dl-lede {
  max-width: 40ch;
  font-size: clamp(18px, 1.5vw, 26px);
  line-height: 1.4;
}

.dl-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 230px;
  padding: 14px 26px 14px 20px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--on-lime);
  text-decoration: none;
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms ease;
}

.store:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .store:not(.is-soon):hover {
    background: var(--lime);
  }
}

.store-icon {
  width: 30px;
  height: 30px;
  fill: currentColor;
  flex: none;
}

.store-text {
  display: grid;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.store-text small {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.store.is-soon {
  cursor: default;
  background: var(--raised-2);
  color: var(--ink);
}

.dl-soon {
  font-size: 16px;
  color: var(--muted);
}

.dl-steps {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
  font-size: 17px;
  line-height: 1.5;
  max-width: 54ch;
}

.dl-steps b {
  color: var(--lime);
  font-weight: 750;
}

.dl-phone {
  justify-self: center;
  width: min(100%, 360px);
  margin: 0;
}

.dl-phone img {
  width: 100%;
  border-radius: 38px;
  border: 8px solid var(--raised);
  background: var(--raised);
}

@media (max-width: 1099px), (max-aspect-ratio: 1/1) {
  .dl {
    grid-template-columns: 1fr;
    padding: 72px 20px;
  }

  .store {
    flex: 1 1 220px;
  }

  .dl-phone {
    width: min(100%, 300px);
  }
}

/* ———————————————————— Pied de page ———————————————————— */
.footer {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(48px, 6vw, 120px) var(--margin) clamp(20px, 2vw, 32px);
  background: var(--ground-deep);
}

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

.footer-invite {
  grid-column: 1 / span 7;
  display: grid;
  gap: 28px;
  justify-items: start;
}

.footer-line {
  font-size: clamp(44px, 5vw, 96px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.footer-links {
  grid-column: 10 / span 3;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 0;
  list-style: none;
  font-size: 17px;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 160ms ease;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-legal {
  grid-row: 2;
  align-self: end;
  margin-top: clamp(64px, 8vw, 140px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ———————————————————— Tablette et téléphone ———————————————————— */
@media (max-width: 1099px), (max-aspect-ratio: 1/1) {
  .nav {
    position: absolute;
    height: 72px;
    max-height: none;
  }

  .nav-logo {
    left: 20px;
    top: 24px;
    width: 120px;
  }

  .nav-links {
    display: none;
  }

  .nav:not(.is-fixed)::after {
    display: none;
  }

  .nav-cta {
    left: auto;
    right: 16px;
    top: 16px;
    width: auto;
    height: 40px;
    padding: 0 18px;
    font-size: 15px;
  }

  .hero {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 20px 1fr 16px;
    grid-template-rows: 96px auto auto auto;
    padding-bottom: 48px;
  }

  .hero-wave {
    position: relative;
    top: auto;
    grid-column: 1 / -1;
    grid-row: 3;
    align-self: start;
    height: 150px;
    margin-top: 0;
    z-index: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-copy {
    position: relative;
    inset: auto;
    grid-column: 2;
    grid-row: 2;
    display: grid;
    gap: 18px;
    z-index: 2;
  }

  .hero-title,
  .hero-lede,
  .hero-cta,
  .hero-price {
    position: static;
    width: auto;
  }

  .hero-title {
    margin-top: 40px;
    font-size: clamp(64px, 19vw, 150px);
    line-height: 0.84;
  }

  .hero-lede {
    font-size: clamp(18px, 4.6vw, 24px);
    max-width: 30ch;
  }

  .hero-cta {
    height: 56px;
    font-size: 18px;
  }

  .hero-price {
    font-size: 15px;
  }

  .hero-portrait {
    position: relative;
    left: auto;
    top: auto;
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: end;
    width: 84%;
    height: auto;
    aspect-ratio: 4 / 5;
    margin-top: 76px;
  }

  .callback {
    position: relative;
    left: auto;
    top: auto;
    grid-column: 2;
    grid-row: 4;
    width: min(100%, 380px);
    height: auto;
    margin-top: -42%;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
  }

  .callback-title {
    font-size: 15px;
  }

  .callback-now {
    height: 46px;
    font-size: 16px;
  }

  .callback-delays {
    gap: 8px;
  }

  .callback-delays button {
    height: 40px;
    font-size: 15px;
  }

  .callback-sent {
    font-size: 15px;
    padding-top: 12px;
    min-height: 58px;
  }

  .journey-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;
    min-height: 100svh;
  }

  .journey-head,
  .journey-clock,
  .journey-trace,
  .moments {
    grid-column: 1;
  }

  .journey-clock {
    grid-row: 2;
    justify-self: start;
  }

  .journey-trace {
    grid-row: 3;
  }

  .moments {
    grid-row: 4;
    min-height: 300px;
  }

  .moment {
    grid-template-columns: 1fr;
  }

  .showcase-pin {
    min-height: auto;
  }

  .showcase-track {
    width: auto;
    padding: 0 20px;
    flex-direction: column;
    gap: 48px;
  }

  .panel {
    width: auto;
  }

  .panel .panel-text p {
    color: var(--ink);
  }

  .pit {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .pit-head,
  .tower {
    grid-column: 1;
  }

  .tower-row {
    grid-template-columns: 2.4em minmax(0, 1fr);
    grid-template-areas:
      "pos figure"
      "pos text";
    align-items: start;
    gap: 8px 12px;
    padding: 16px;
  }

  .tower-pos {
    grid-area: pos;
    padding-top: 0.5em;
  }

  .tower-figure {
    grid-area: figure;
    font-size: 30px;
  }

  .tower-text {
    grid-area: text;
  }

  .trip,
  .faq-band,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .trip-copy,
  .slip,
  .faq-band h3,
  .faq-band p,
  .footer-invite,
  .footer-links {
    grid-column: 1;
  }

  .slip {
    justify-self: stretch;
    width: auto;
    margin-top: 40px;
    padding: 24px 20px 48px;
  }

  .slip-total {
    margin: 24px -20px 0;
    padding: 12px 20px;
  }

  .slip-rows li {
    font-size: 15px;
  }

  .plan {
    grid-template-columns: 1fr;
  }

  .faq-head {
    min-height: 160px;
    padding: 32px 20px;
  }

  .faq-title {
    font-size: 13vw;
  }

  .faq-band {
    gap: 12px;
    padding: 32px 20px;
  }

  .faq-band h3 {
    font-size: 22px;
  }

  .faq-band p {
    font-size: 17px;
  }


  .cta-note {
    font-size: 17px;
    max-width: 24ch;
  }



  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 36px;
    font-size: 15px;
  }

  .footer-line {
    font-size: 11vw;
  }


  .footer-legal {
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* ———————————— États ajoutés par le script ———————————— */
.js .moment {
  opacity: 0;
  visibility: hidden;
}

.js .moment.is-active {
  opacity: 1;
  visibility: visible;
}

html:not(.js) .moments {
  display: grid;
  gap: 32px;
}

html:not(.js) .moment {
  position: static;
}

.cta-letter {
  display: inline-block;
}

@media (max-width: 1099px), (max-aspect-ratio: 1/1) {
  .br-wide {
    display: none;
  }
}

.cta-word {
  overflow: hidden;
  padding: 0 0.02em 0.1em;
  transform-origin: 0% 100%;
  transition: transform 160ms var(--ease-out);
}

/* La barre fixe : le logo et l'action, après le premier écran. */
.nav.is-fixed {
  position: fixed;
  height: 64px;
  max-height: none;
  background: var(--ground);
  animation: bar-in 320ms var(--ease-out);
}

.nav.is-fixed .nav-logo {
  left: var(--margin);
  top: 20px;
  width: 116px;
}

.nav.is-fixed .nav-links {
  top: 24px;
  font-size: 16px;
}

.nav.is-fixed .nav-cta {
  left: auto;
  right: var(--margin);
  top: 11px;
  width: auto;
  height: 42px;
  padding: 0 22px;
  font-size: 16px;
}

.nav.is-fixed {
  transition: transform 260ms var(--ease-out);
}

.nav.is-fixed.is-tucked {
  transform: translateY(-100%);
}

@keyframes bar-in {
  from {
    transform: translateY(-100%);
  }
}

.footer-legal a {
  color: var(--ink);
}
