/* =====================================================================
   Page /halo/pricing : l'offre bêta de Halo. Se pose par-dessus css/halo.css
   et css/halo-v2.css, dont elle reprend le décor du hero et la carte
   « Gratuit » de la landing (.free_card, sa liste à coches et sa bordure
   lumineuse). Pilotée par js/halo-pricing.js.
   ===================================================================== */

/* ---------- 1. En-tête : le décor et Halo ---------- */

.pricing_hero.section_hero.is-scene {
  min-height: clamp(40rem, 88svh, 54rem);
}

.pricing_hero .hero-scene_halo {
  cursor: default;
}

.pricing_hero-layout {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(4.25rem + 2.5rem + env(safe-area-inset-top)) 0 3rem;
}

.pricing_intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 34rem;
  text-align: center;
  pointer-events: auto;
}

.pricing_lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.125rem;
}

/* Sur ordinateur, le texte tient la gauche et Halo la droite (le décor
   place la tache de lumière à 60 % de la largeur, js/halo-hero-scene.js) */
@media screen and (min-width: 992px) {
  .pricing_hero-layout {
    align-items: center;
    justify-content: flex-start;
    padding-top: 4.25rem;
  }

  .pricing_intro {
    align-items: flex-start;
    text-align: left;
  }
}

/* ---------- 2. L'offre bêta ---------- */

.section_pricing {
  position: relative;
  z-index: 1;
  margin-top: -6rem;
  padding-bottom: 2rem;
}

.pricing_card {
  position: relative;
  padding: 2.25rem 1.5rem;
}

.pricing_card .border-glow-inner {
  height: 100%;
}

.pricing_badge {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: 0.8125rem;
  font-weight: 700;
}

.pricing_name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.pricing_price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.pricing_price strong {
  font-size: clamp(2.5rem, 2.1rem + 1.4vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.pricing_price span {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.pricing_price s {
  text-decoration-thickness: 1.5px;
}

.pricing_card .free_list {
  grid-template-columns: none;
}

.pricing_fine {
  max-width: 28rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.pricing_cta {
  width: 100%;
  margin-top: 0.5rem;
}

/* Le compteur des places : le chiffre, et une case par place,
   allumée quand elle est prise */
.seats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.25rem 1rem;
  border-radius: var(--radius-medium, 1rem);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Tant que la base n'a pas répondu, seul « 25 places en tout » se montre */
.seats:not(.is-live) > :not(.seats_left) {
  display: none;
}

.seats_count {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.seats_count strong {
  font-size: 1.5rem;
  color: var(--color-text);
}

/* Les 25 places sur une ligne : des barres qui s'affinent avec la largeur.
   Sans puce : une <ol> garde sinon ses numéros « 1. 2. 3. » devant chaque case */
.seats_grid {
  display: grid;
  grid-template-columns: repeat(25, minmax(0, 1fr));
  gap: clamp(3px, 0.7vw, 6px);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seats_grid li {
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  list-style: none;
  transition: background 0.4s, box-shadow 0.4s;
}

.seats_grid li.is-taken {
  background: linear-gradient(180deg, #ffc08f, var(--color-accent));
  box-shadow: 0 0 0.625rem rgba(255, 159, 90, 0.4);
}

/* Une place qui vient d'être prise s'allume une fois */
.seats_grid li.is-new {
  animation: seat-in 0.7s var(--ease-out);
}

@keyframes seat-in {
  0% { transform: scale(0.4); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.seats_left {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-accent);
}

.seats.is-full .seats_left {
  color: var(--color-text-muted);
}

/* ---------- 3. Après la bêta, en grisé ---------- */

.pricing_later-title {
  margin: 4rem 0 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.pricing_grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

.pricing_card.is-muted {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  opacity: 0.5;
  filter: grayscale(1);
  user-select: none;
}

.pricing_card.is-muted .free_list li::before {
  background-color: rgba(255, 255, 255, 0.55);
}

@media screen and (min-width: 640px) {
  .pricing_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- 4. FAQ ---------- */

.pricing_page .section_faq {
  margin-top: 2rem;
}

@media (prefers-reduced-motion: reduce) {
  .seats_grid li {
    transition: none;
  }

  .seats_grid li.is-new {
    animation: none;
  }
}

/* ---------- 3. Ce que Halo+ ouvre ----------
   Trois écrans de l'app actuelle dans les téléphones de la landing, de
   face, chacun sur la lueur de sa fonction. */
.plus_show {
  position: relative;
  padding: 5rem 0 1rem;
}

.plus_show-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 38rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.plus_show-header .text-size-large {
  color: rgba(247, 246, 243, 0.68);
}

.plus_show-grid {
  display: grid;
  gap: 3rem;
  justify-items: center;
}

.plus_show-item {
  --glow: 255 159 90;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 20rem;
  margin: 0;
  text-align: center;
  isolation: isolate;
}

.plus_show-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 38%;
  z-index: -1;
  width: min(26rem, 100vw);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--glow) / 0.26), rgb(var(--glow) / 0.08) 50%, transparent 72%);
  pointer-events: none;
}

.plus_show-item .phone_component {
  width: min(15rem, 66vw);
}

/* De face (les téléphones de la landing penchent par défaut) */
.plus_show-item .phone3d.is-still {
  transform: none;
}

.plus_show-item .phone_screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plus_show-item figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(247, 246, 243, 0.66);
}

.plus_show-item figcaption strong {
  font-size: 1.0625rem;
  color: var(--color-text);
}

@media screen and (min-width: 992px) {
  .plus_show-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }

  /* Les deux écrans du bord penchent vers le centre */
  .plus_show-item:first-child .phone3d.is-still {
    transform: perspective(1800px) rotateY(14deg);
  }

  .plus_show-item:last-child .phone3d.is-still {
    transform: perspective(1800px) rotateY(-14deg);
  }
}

/* Les offres d'après la bêta : une section à part, sans le chevauchement
   de l'en-tête */
.section_pricing.is-later {
  margin-top: 0;
  padding-bottom: 3rem;
}

.section_pricing.is-later .pricing_later-title {
  margin-top: 3rem;
}
