/* =====================================================
   STEPS — ACCORDÉONS (VERSION DÉFINITIVE)
   ===================================================== */

/* Layout FLEX — aucune synchronisation de hauteur */
.steps-grid {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

/* Carte step */
.step {
  flex: 1 1 0;
  position: relative;
  cursor: pointer;
  height: auto;

  background: radial-gradient(circle at top, #0b1120 0%, #020617 70%);
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem 1.5rem 1.4rem;
}

/* Numéro */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0.6rem;

  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fde68a;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(250, 204, 21, 0.45),
    rgba(250, 204, 21, 0.15)
  );
}

/* Titres & texte */
.step h3 {
  font-size: 1.15rem;
  margin: 0.4rem 0 0.3rem;
}

.step > p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-text-soft);
}

/* Contenu détaillé */
.step-details {
  display: none;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.step-details p + p {
  margin-top: 0.75rem;
}

/* Ouverture */
.step.is-open .step-details {
  display: block;
}

/* Effet hover subtil */
.step:hover {
  border-color: rgba(250, 204, 21, 0.55);
}

/* Sécurité */
.step,
.step-details {
  transition: none !important;
  min-height: unset !important;
  height: auto !important;
}

/* =====================================================
   MOBILE FIX — steps-grid (Accueil / Cybersécurité)
   Problème : sur mobile, les cartes "Étapes" peuvent dépasser et être coupées
   Solution : empiler en colonne + éviter min-width implicite des flex-items
   ===================================================== */
@media (max-width: 980px){
  .steps-grid{
    flex-direction: column;
  }
  .step{
    width: 100%;
    min-width: 0; /* évite le dépassement horizontal */
  }
}
