/* =====================================================================
   Page /halo/features : toutes les fonctionnalités de Halo. Se pose
   par-dessus css/halo.css, css/halo-v2.css (les blocs .feature, la section
   multiplateforme, le CTA final) et css/halo-pricing.css (l'en-tête au
   décor). Pilotée par js/halo-features.js.
   ===================================================================== */

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

/* ---------- 2. Le sommaire ----------
   Une rangée de pastilles collée sous la barre, qui défile de côté sur
   téléphone. La pastille de la fonctionnalité à l'écran s'allume. */
.fx_index {
  position: sticky;
  top: 4.75rem;
  z-index: 15;
  margin-top: -3.5rem;
  padding: 0.5rem 0;
  pointer-events: none;
}

.fx_index-list {
  display: flex;
  gap: 0.375rem;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0.375rem;
  overflow-x: auto;
  border-radius: 999px;
  background: rgba(12, 12, 18, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    inset 0 0 0 1px var(--color-border),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0.75rem 2rem -0.75rem rgba(0, 0, 0, 0.6);
  list-style: none;
  scrollbar-width: none;
  pointer-events: auto;
}

.fx_index-list::-webkit-scrollbar {
  display: none;
}

.fx_index-list a {
  display: block;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.fx_index-list a:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
}

.fx_index-list a.is-active {
  color: var(--color-on-accent);
  background: var(--color-accent);
}

@media screen and (max-width: 767px) {
  .fx_index {
    top: 4.25rem;
    margin-top: -2.5rem;
  }
}

/* ---------- 3. Les grandes fonctionnalités ----------
   Les blocs de la landing, avec sous le texte la liste du détail. Les
   ancres passent sous la barre et le sommaire. */
.fx_features {
  padding-top: 3rem;
}

.fx_features .feature,
.section_cross,
.fx_more,
.fx_plans {
  scroll-margin-top: 8rem;
}

.fx_points {
  display: grid;
  gap: 0.625rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
  font-size: 0.9375rem;
  color: rgba(247, 246, 243, 0.82);
}

.fx_points li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

/* La coche, dans une pastille de la couleur de la fonctionnalité */
.fx_points li::before {
  content: '';
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: rgb(var(--glow)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9' fill='none' stroke='%231a0e05' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* ---------- 5. Le reste, en cartes ---------- */

.fx_more-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

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

.fx_grid {
  display: grid;
  gap: 1rem;
}

.fx_card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.75rem 1.5rem;
  overflow: hidden;
}

/* Une lueur de la couleur de la carte, dans le coin haut */
.fx_card::before {
  content: '';
  position: absolute;
  left: -20%;
  top: -60%;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--glow) / 0.16), transparent 70%);
  pointer-events: none;
}

.fx_card > * {
  position: relative;
}

.fx_card p {
  color: var(--color-text-muted);
}

.fx_card-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.375rem;
  border-radius: 0.875rem;
  background: rgb(var(--glow) / 0.14);
  box-shadow: inset 0 0 0 1px rgb(var(--glow) / 0.28);
  color: rgb(var(--glow));
}

.fx_card-icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

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

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

/* ---------- 6. Gratuit ou Halo+ ---------- */

.fx_plans {
  padding: 2rem 0 3rem;
}

.fx_table-wrap {
  padding: 0.5rem 0;
  overflow-x: auto;
}

.fx_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.fx_table th,
.fx_table td {
  padding: 0.875rem 1rem;
  text-align: center;
}

.fx_table tbody tr + tr {
  border-top: 1px solid var(--color-border);
}

.fx_table thead th {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.fx_table thead th:last-child {
  color: var(--color-accent);
}

.fx_table tbody th {
  font-weight: 600;
  text-align: left;
}

.fx_table td {
  width: 6.5rem;
  color: var(--color-text-muted);
}

.fx_yes,
.fx_no {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: middle;
  border-radius: 50%;
}

.fx_yes {
  background: var(--color-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9' fill='none' stroke='%231a0e05' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.fx_no {
  width: 0.875rem;
  height: 2px;
  border-radius: 1px;
  background: var(--color-text-subtle);
}

.fx_plans-note {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.fx_plans-note a {
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

@media screen and (max-width: 479px) {
  .fx_table th,
  .fx_table td {
    padding: 0.75rem 0.625rem;
  }

  .fx_table td {
    width: 4.75rem;
  }
}

/* ---------- 7. CTA final : sans le téléphone de la landing ---------- */

.fx_final .final_component {
  text-align: center;
}

/* ---------- La garde-robe sous « Boutique et collection » ----------
   Quatre vignettes de Halo bébé (img/halo/collection, rendues par l'app),
   chacune sur la lueur de son article, comme la section collection de la
   landing. */
.fx_wardrobe {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.625rem;
  max-width: 26rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.fx_wardrobe li {
  --glow: 255 159 90;
  aspect-ratio: 1;
  border-radius: var(--radius-medium);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(70% 60% at 50% 50%, rgb(var(--glow) / 0.4), rgb(var(--glow) / 0.1) 60%, transparent 80%),
    linear-gradient(180deg, #0f1019 0%, #08080d 100%);
  overflow: hidden;
}

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

@media screen and (max-width: 991px) {
  .fx_wardrobe {
    margin-inline: auto;
  }
}

/* ---------- En-tête : la clairière ----------
   Image 2:1 (foret-clairiere.webp), plus haute que le bandeau de la landing :
   le bandeau grandit pour garder le rayon de lumière qui tombe sur Halo. */
@media screen and (min-width: 992px) {
  .hero2.is-banner.is-forest {
    height: max(36rem, calc(100vw / 2.25));
  }
}
