/* =============================================================================================
   Page Vidéos : ce qui lui est propre (les téléphones et les vidéos verticales sont dans
   univers.css, avec la palette Indigo).
   - hero : trois faits courts sous les boutons ;
   - showreel : scènes de la page (fil, mur de vidéos, calendrier), dans le cadre de showreel.css ;
   - « Le principe » : quatre étapes et leurs fragments d'écran ;
   - « Le calcul » : simulateur ;
   - « Faite pour vous si… » : trois situations ;
   - offre : une seule formule, centrée.
   ============================================================================================= */

/* ---- Hero : trois faits courts, puces en point comme les listes du site ---- */
.hero__checks {
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-5);
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--muted);
}
.hero__checks li { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero__checks li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }

/* =============================================================================================
   Showreel : scènes de la page (le cadre, la marque, le mur et la fin viennent de showreel.css)
   ============================================================================================= */
.showreel__note {
  margin: var(--space-3) 0 0;
  text-align: center;
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--muted);
}

/* 2. Fil : le titre à gauche, un téléphone où les vidéos se succèdent */
.svr-feed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9cqw;
  background: var(--bg);
}
.showreel .svr-feed__title { flex: 0 1 34cqw; margin: 0; text-align: left; font-size: 6.6cqw; }
.svr-phone {
  position: relative;
  flex: none;
  height: 88cqh;
  aspect-ratio: 9 / 19;
  border-radius: 3.4cqw;
  background: var(--deep);
  box-shadow: 0 2.4cqw 4.4cqw -2cqw rgba(43, 10, 17, 0.6);
  will-change: transform, opacity;
}
.svr-phone__screen { position: absolute; inset: 0.7cqw; overflow: hidden; border-radius: 2.8cqw; background: var(--deep); }
.svr-feed__track { position: absolute; inset: 0; will-change: transform; }
.svr-feed__track > .vid { position: absolute; left: 0; right: 0; height: 100%; }
.svr-feed__track > .vid:nth-child(2) { top: 100%; }
.svr-feed__track > .vid:nth-child(3) { top: 200%; }
.svr-feed__track > .vid:nth-child(4) { top: 300%; }
.svr-feed .vid__hook { top: 30cqw; }

/* 3. Mur : six colonnes de vignettes verticales */
.svr-wall .sr-wall__grid { width: 112cqw; grid-template-columns: repeat(6, 1fr); }
.svr-wall .sr-tile { background: var(--deep); }

/* 4. Le mois : un calendrier qui se remplit d'une vidéo par jour */
.svr-month { background: var(--paper); }
.svr-month__in {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7cqw;
  padding: 0 7cqw;
  will-change: transform, opacity;
}
.showreel .svr-month__title { flex: 0 1 34cqw; margin: 0; text-align: left; font-size: 5.4cqw; }
.svr-cal {
  flex: none;
  display: grid;
  grid-template-columns: repeat(7, 5.4cqw);
  gap: 0.7cqw;
}
.svr-cal__wd { padding-bottom: 0.4cqw; text-align: center; font-size: 1.25cqw; font-weight: 700; color: var(--muted); }
.svr-cal__day {
  position: relative;
  height: 7.6cqw;
  overflow: hidden;
  border-radius: 0.9cqw;
  background: var(--sunk);
}
.svr-cal__num { position: absolute; z-index: 2; left: 0.55cqw; top: 0.35cqw; font-size: 1.05cqw; font-weight: 700; color: var(--muted); }
.svr-cal__vid {
  position: absolute;
  right: 0.6cqw;
  bottom: 0.6cqw;
  width: 3.1cqw;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 0.5cqw;
  background: var(--p-dark);
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}
.svr-cal__vid::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: 16%;
  height: 10%;
  border-radius: 0.2cqw;
  background: var(--p-on);
}
.svr-cal__vid::after {
  content: "";
  position: absolute;
  right: -30%;
  bottom: 12%;
  width: 84%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--p-b);
}

/* Cadre vertical (sous 768 px) */
@container showreel (orientation: portrait) {
  .svr-feed { flex-direction: column; justify-content: flex-start; gap: 5cqh; padding-top: 9cqh; }
  .showreel .svr-feed__title { flex: none; max-width: 84cqw; text-align: center; font-size: 11cqw; }
  .svr-phone { height: 64cqh; border-radius: 6.8cqw; }
  .svr-phone__screen { inset: 1.4cqw; border-radius: 5.6cqw; }

  .svr-wall .sr-wall__grid { width: 160cqw; grid-template-columns: repeat(4, 1fr); }
  .svr-wall .sr-col:nth-child(4) { display: flex; }
  .svr-wall .sr-col:nth-child(n+5) { display: none; }

  .svr-month__in { flex-direction: column; gap: 4cqh; padding: 0 7cqw; }
  .showreel .svr-month__title { flex: none; text-align: center; font-size: 8.2cqw; }
  .svr-cal { grid-template-columns: repeat(7, 10cqw); gap: 1.3cqw; }
  .svr-cal__wd { font-size: 2.6cqw; }
  .svr-cal__day { height: 12.4cqw; border-radius: 1.8cqw; }
  .svr-cal__num { left: 1.1cqw; top: 0.7cqw; font-size: 2.2cqw; }
  .svr-cal__vid { right: 1.2cqw; bottom: 1.2cqw; width: 6cqw; border-radius: 1cqw; }
}

/* =============================================================================================
   Le principe : quatre étapes, du spectateur au client
   ============================================================================================= */
.journey {
  list-style: none;
  margin: var(--space-head) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
.journey__step {
  display: flex;
  flex-direction: column;
  padding: var(--space-3);
  border-radius: var(--radius-card-lg);
  background: var(--bg);
  border: 1px solid var(--line);
}
.journey__visual {
  position: relative;
  height: 248px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--sunk);
}
.journey__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-3) var(--space-3);
}
.journey__num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--acc);
  color: var(--acci);
  font-size: 15px;
  font-weight: 700;
}
.journey__title {
  margin: var(--space-2) 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: 1.1;
  letter-spacing: var(--ls-card);
  word-spacing: 0.06em;
  text-wrap: balance;
}
.journey__text { margin: 0; color: var(--muted); text-wrap: pretty; }

.journey__punch {
  margin: var(--space-head) auto 0;
  max-width: 860px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, calc(1.1cqw + 18px), 36px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  word-spacing: 0.06em;
  color: var(--muted);
  text-wrap: balance;
}
.journey__punch-strong { color: var(--ink); font-weight: 600; }

@container page (max-width: 1099px) {
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container page (max-width: 599px) {
  .journey { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Fragments d'écran (décor des étapes) ---- */

/* 1. Fil « Pour toi » */
.ui-feed { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding-top: 20px; }
.ui-feed__tabs { display: flex; gap: 20px; font-size: 14px; font-weight: 700; color: var(--muted); }
.ui-feed__tabs > span { padding-bottom: 6px; }
.ui-feed__tabs > .is-on { color: var(--ink); border-bottom: 2px solid var(--ink); }
.ui-feed__cards { margin-top: 16px; display: flex; align-items: flex-start; gap: 10px; }
.ui-feed__main { width: 132px; aspect-ratio: 9 / 16; border-radius: 14px; }
.ui-feed__side { position: relative; overflow: hidden; width: 92px; aspect-ratio: 9 / 16; margin-top: 24px; border-radius: 12px; background: #1E1A16; }
.ui-feed__side > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }

/* 2. Vidéo regardée jusqu'au bout */
.ui-watch {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 132px;
  margin-left: -66px;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
}
.ui-watch__time {
  position: absolute;
  z-index: 2;
  left: 7cqw;
  right: 7cqw;
  bottom: 12cqw;
  display: flex;
  align-items: center;
  gap: 3cqw;
}
.ui-watch__mark {
  flex: none;
  padding: 1cqw 3cqw;
  border-radius: 999px;
  background: var(--p-on);
  color: var(--p-ink);
  font-size: 6.4cqw;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.ui-watch__time .vid__progress { position: static; flex: 1; height: 2cqw; }

/* 3. Profil */
.ui-profile { position: absolute; left: 16px; right: 16px; top: 18px; display: flex; flex-direction: column; gap: 14px; }
.ui-profile__head { display: flex; align-items: center; gap: 10px; }
.ui-profile__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #064734;
  color: #E0FFC2;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}
.ui-profile__who { min-width: 0; display: flex; flex-direction: column; font-size: 13px; line-height: 1.25; color: var(--muted); }
.ui-profile__who strong { font-size: 15px; color: var(--ink); }
.ui-profile__follow {
  flex: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--on);
  font-size: 13px;
  font-weight: 700;
}
.ui-profile__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.ui-profile__grid > span {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: 6px;
  background: #1E1A16;
}
.ui-profile__grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 4. Message reçu */
.ui-dm { position: absolute; left: 16px; right: 16px; top: 18px; display: flex; flex-direction: column; gap: 10px; }
.ui-dm__head { align-self: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.ui-dm__in,
.ui-dm__out { margin: 0; max-width: 88%; padding: 10px 14px; font-size: 14px; line-height: 1.4; }
.ui-dm__in { align-self: flex-start; border-radius: 18px 18px 18px 6px; background: var(--paper); color: var(--ink); }
.ui-dm__out { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--dark); color: var(--on); }

/* =============================================================================================
   Le calcul : simulateur (bande sombre)
   ============================================================================================= */
.calc {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--card-pad);
  border-radius: var(--radius-card-lg);
  background: var(--dsurf);
  color: var(--on);
}
.calc__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); }
.calc__name { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.calc__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accd); }

/* Profils : activité et scénario, en pastilles (boutons radio). La pastille cochée passe en clair. */
.calc__choix { margin: 0; padding: 0; border: 0; min-width: 0; }
.calc__legend { padding: 0; margin-bottom: var(--space-2); font-size: var(--fs-small); font-weight: 700; color: var(--on2); }
.calc__perso { font-weight: 500; }
.calc__chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.calc__chip { position: relative; display: inline-flex; cursor: pointer; }
.calc__chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.calc__chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--dline);
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.calc__chip:hover span { border-color: var(--on2); }
.calc__chip input:checked + span { border-color: var(--on); background: var(--on); color: var(--dark); }
.calc__chip input:focus-visible + span { outline: 2px solid var(--hld); outline-offset: 3px; }

.calc__field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0 var(--space-4); }
.calc__label { font-weight: 500; line-height: 1.35; }
.calc__value { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Curseur : piste --dline, partie remplie --hld (--p posé par le script), rond clair. */
.calc__range {
  --p: 50%;
  grid-column: 1 / -1;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.calc__range:focus { outline: none; }
.calc__range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--hld) var(--p), var(--dline) var(--p));
}
.calc__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border: 0;
  border-radius: 50%;
  background: var(--on);
  transition: transform 150ms var(--ease-out);
}
.calc__range:active::-webkit-slider-thumb { transform: scale(1.12); }
.calc__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--dsurf), 0 0 0 7px var(--hld); }
.calc__range::-moz-range-track { height: 6px; border-radius: 999px; background: var(--dline); }
.calc__range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--hld); }
.calc__range::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--on); }
.calc__range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--dsurf), 0 0 0 7px var(--hld); }

.calc__funnel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--dline);
}
.calc__step { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-small); line-height: 1.35; color: var(--on2); }
.calc__step strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, calc(0.5cqw + 21px), 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--on);
  font-variant-numeric: tabular-nums;
}
.calc__result {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  border-radius: var(--radius-card);
  background: var(--on);
  color: var(--ink);
}
.calc__result-label { font-size: 15px; font-weight: 700; color: var(--muted); }
.calc__amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-figure);
  line-height: 1;
  letter-spacing: -0.04em;
  word-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.calc__year { font-size: 15px; color: var(--muted); }
.calc__year strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.calc__note { margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--on2); }

/* =============================================================================================
   Faite pour vous si… : trois situations, puis la réponse Nostia en aplat sombre
   ============================================================================================= */
.situations { display: flex; flex-direction: column; gap: var(--space-4); }
.situation {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: var(--space-4);
  padding: var(--card-pad);
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--paper);
}
.situation__num { grid-row: span 2; padding-top: 6px; font-size: var(--fs-small); font-weight: 700; color: var(--muted); }
.situation__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: 1.1;
  letter-spacing: var(--ls-card);
  word-spacing: 0.06em;
  text-wrap: balance;
}
.situation__result { margin: var(--space-3) 0 0; color: var(--muted); text-wrap: pretty; }
.situation__result strong { color: var(--ink); }
.situation--nostia { grid-template-columns: minmax(0, 1fr); border-color: transparent; background: var(--dark); color: var(--on); }
.situation--nostia .situation__num { grid-row: auto; padding: 0 0 var(--space-2); color: var(--hld); }
.situation--nostia .situation__result { color: var(--on2); }

@container page (max-width: 767px) {
  .situation { grid-template-columns: minmax(0, 1fr); }
  .situation__num { grid-row: auto; padding: 0 0 var(--space-2); }
}

/* ---- Offre : une seule formule, centrée ---- */
.formules--seule { grid-template-columns: minmax(0, 560px); justify-content: center; }

/* ---- Mouvement réduit ---- */
@media (prefers-reduced-motion: reduce) {
  .calc__range::-webkit-slider-thumb { transition: none; }
  .calc__chip span { transition: none; }
}
