/* =========================
   Features (tabs + stage)
   ========================= */

/* Wrapper qui colle les onglets et la scène dans un seul bloc */
.feat-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  margin-top: 18px;
}

/* Rangée d’onglets */
.feat-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--ghost-bg);
  border-bottom: 1px solid var(--line);
}

/* Onglet = icône au-dessus, label en dessous */
.feat-tab {
  font-family: var(--font-brand);
  position: relative;
  display: grid;
  grid-auto-flow: row;
  place-items: center;
  gap: 6px;
  padding: 12px 8px;
  border: 0;
  background: transparent;
  font-weight: 700;
  color: var(--ghost);
  cursor: pointer;
  overflow: hidden;
}
.feat-tab:hover,
.feat-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.08) inset;
}
.feat-tab.is-active {
  background: #fff; /* léger contraste sur l’actif */
  /* box-shadow: inset 0 0 0 1px var(--line); */
}

/* Icône + label */
.feat-tab-icon {
  font-size: 18px;
  opacity: 0.9;
}
.feat-tab-label {
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
}

/* Barre de progression sous l’onglet actif (animée en JS) */
.feat-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0%;
  background: var(--brand);
  transition: width linear;
}

/* Scène directement attachée aux onglets */
.feat-stage {
  justify-self: center;
  align-content: center;
  background: #fff;
  padding: 16px;
  height: 500px;
}
.feat-stage img {
  /* height: 100%; */
  width: 100%;
}
.feat-stage video {
  height: 100%;
}

/* Responsive */
@media (max-width: 960px) {
  .feat-tabs {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .feat-tabs {
    grid-template-columns: 1fr;
  }
}

.feat-text {
  margin-top: 18px;
  list-style: disc;
  padding-left: 24px;
  color: #374151;
  font-size: 16px;
  line-height: 1.6;
}
.feat-text li {
  margin: 6px 0;
  font-weight: 700;
}

/* ===== Mobile dropdown that keeps the desktop look (full width) ===== */
@media (max-width: 720px) {
  .feat-stage {
    width: 100%;
    justify-items: center;
  }
  .feat-stage video {
    width: 100%;
  }
  .feat-tabs {
    display: block;
    background: var(--ghost-bg);
    border-bottom: 1px solid var(--line);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    overflow: hidden;
  }

  .feat-tab {
    font-family: var(--font-brand);
    display: grid;
    grid-auto-flow: row;
    place-items: center;
    gap: 6px;
    padding: 14px 12px;
    border: 0;
    background: #fff;
    position: relative;

    /* Ajout pour pleine largeur */
    width: 100%;
    box-sizing: border-box;
  }
  .feat-tab:hover {
    box-shadow: none;
  }

  .feat-box:not(.is-open) .feat-tab {
    display: none;
  }
  .feat-box:not(.is-open) .feat-tab.is-active {
    display: grid;
  }

  .feat-box:not(.is-open) .feat-tab.is-active::after {
    content: "";
    position: absolute;
    right: 30px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
    opacity: 0.55;
  }

  .feat-box.is-open .feat-tab + .feat-tab {
    border-top: 1px solid var(--line);
  }
}
