
/* =========================
   LAYOUT
========================= */
.page{
  max-width: 1120px;
  margin: 28px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 18px;
  align-items: start;
}

/* si tu as un wrapper .main autour de tes sections, ça crée de l’air automatiquement */
.main{
  display: flex;
  flex-direction: column;
  gap: 18px; /* <--- ESPACEMENT ENTRE SECTIONS */
}

/* fallback si tu n'as pas .main */
.card{ margin-bottom: 18px; }

@media (max-width: 900px){
  .page{ grid-template-columns: 1fr; }
  .side{ display:none; }
  .card{ margin-bottom: 16px; }
}

/* =========================
   CARD
========================= */
.card{
  background: var(--card);
  border: 1px solid rgba(111,67,241,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* petite séparation optionnelle */
.section-sep{
  height: 1px;
  background: rgba(111,67,241,.12);
  margin: 14px 16px;
  border-radius: 999px;
}/* =========================
   HERO / COUVERTURE — CLEAN (override)
   À coller EN FIN de fichier
========================= */

:root{
  --brand: #6F43F1;              /* violet principal */
  --brand-2: #8A6BFF;            /* optionnel */
  --hero-radius: 22px;
  --hero-pad: 16px;
}

/* wrapper */
.hero{
  overflow: hidden;
}

/* zone média */
.hero-media{
  position: relative;
  height: 420px;
  border-radius: 22px;
  overflow: hidden;
}

.hero-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gradient{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.65) 0%,
    rgba(0,0,0,.35) 35%,
    rgba(0,0,0,.15) 55%,
    transparent 75%
  );
  z-index: 1;
}
.hero-content{
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 2;
  max-width: 65%;
  color: #fff;
}

.hero-heading{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-sub{
  font-size: 13px;
  opacity: .9;
  margin-bottom: 12px;
}


/* overlay lisibilité */
.hero-media::after{
  content:"";
  position:absolute;
  inset: var(--hero-pad);
  border-radius: var(--hero-radius);
  background:
    radial-gradient(900px 420px at 28% 32%, rgba(0,0,0,.42), transparent 60%),
    linear-gradient(to top, rgba(0,0,0,.60), rgba(0,0,0,.08) 62%);
  pointer-events:none;
  z-index: 1;
}

/* TOP LEFT (icônes) */
.hero-top-left{
  position:absolute;
  top: calc(var(--hero-pad) + 10px);
  left: calc(var(--hero-pad) + 10px);
  display:flex;
  gap: 10px;
  z-index: 3;
}

/* base pill (chips/btns glass) */
.pill{
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

/* pills “icônes rondes” : même style que like */
.pill-icon{
  width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;

  /* même couleur que le bouton j'aime */
  background: rgba(111,67,241,.92);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 34px rgba(20,18,40,.18);
}

.pill-icon:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(20,18,40,.24);
}

/* si tu as des pills “texte” (chips) */
.pill:not(.pill-icon){
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,.92);
}
.pill:not(.pill-icon):hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 12px 24px rgba(0,0,0,.14);
}

/* TITRE */
/* Titre en 1 ligne + ellipsis */
.hero-title h1{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Donne plus de place au bloc titre */
.hero-title{
  max-width: 92%;     /* au lieu de 78% */
}

/* sous infos (date / auteur / etc.) */
.hero-sub{
  margin-top: 10px;
  display:flex;
  flex-wrap: wrap;
  align-items:center;
  gap: 10px;
  color: rgba(255,255,255,.90);
  font-size: 13px;
}

/* badge date */
.hero-date{
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* CHIPS bas-gauche */
.hero-chips{
  position:absolute;
  left: calc(var(--hero-pad) + 18px);
  bottom: calc(var(--hero-pad) + 18px);
  z-index: 3;
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip{
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
  cursor:pointer;

  /* look clean semi-glass clair */
  background: rgba(255,255,255,.92);
  color: rgba(18,18,22,.92);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 12px 28px rgba(20,18,40,.12);

  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.chip:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.98);
  box-shadow: 0 16px 36px rgba(20,18,40,.16);
}

/* LIKE bas-droit */
.hero-like{
  position:absolute;
  right: calc(var(--hero-pad) + 18px);
  bottom: calc(var(--hero-pad) + 18px);
  z-index: 3;
  display:flex;
  flex-direction: column;
  align-items:center;
  gap: 8px;
}

/* bouton like = violet brand */
.like-btn{
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(111,67,241,.92);
  color: #fff;

  cursor:pointer;
  font-size: 20px;
  box-shadow: 0 16px 40px rgba(20,18,40,.22);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.like-btn:hover{
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 20px 50px rgba(20,18,40,.28);
  filter: brightness(1.02);
}

.like-count{
  color: rgba(255,255,255,.95);
  font-weight: 900;
  font-size: 13px;
  text-shadow: 0 10px 22px rgba(0,0,0,.35);
}

/* BAR META sous l'image */
.meta-bar{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(111,67,241,.10);
}

.meta-item{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(111,67,241,.12);
  box-shadow: 0 10px 26px rgba(20,18,40,.06);
}

.meta-actions{
  margin-left:auto;
  display:flex;
  gap: 10px;
}

/* boutons ronds de droite => même style que like (violet) */
.icon-btn{
  width: 46px;
  height: 46px;
  display:grid;
  place-items:center;
  border-radius: 14px;
  cursor:pointer;

  background: rgba(111,67,241,.92);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 34px rgba(20,18,40,.18);

  transition: transform .12s ease, box-shadow .12s ease;
}
.icon-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(20,18,40,.24);
}

/* RESPONSIVE */
@media (max-width: 700px){
  :root{ --hero-pad: 12px; }

  .hero-title{
    top: 76px;
    left: calc(var(--hero-pad) + 12px);
    max-width: 88%;
  }

  .hero-chips{
    left: calc(var(--hero-pad) + 12px);
    bottom: calc(var(--hero-pad) + 12px);
  }

  .hero-like{
    right: calc(var(--hero-pad) + 12px);
    bottom: calc(var(--hero-pad) + 12px);
  }

  .meta-bar{
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* ultra petit : on réduit un peu le titre */
@media (max-width: 420px){
  .hero-title h1{
    font-size: clamp(28px, 8vw, 44px);
  }
}


.like-btn{
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.92);
  cursor:pointer;
  font-size: 20px;

  box-shadow: 0 14px 32px rgba(0,0,0,.18);
  transition: transform .15s ease, box-shadow .15s ease;
}

.like-btn:hover{
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}

.like-count{
  color: rgba(255,255,255,.95);
  font-weight: 900;
  font-size: 13px;
  text-shadow: 0 10px 20px rgba(0,0,0,.35);
}

/* Meta bar sous l'image */
.meta-bar{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(111,67,241,.10);
}

.meta-item{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;

  background: rgba(255,255,255,.70);
  border: 1px solid rgba(111,67,241,.12);
  box-shadow: 0 10px 26px rgba(20,18,40,.06);
}

.meta-ico{ opacity:.75; }

.meta-divider{
  width: 1px;
  height: 30px;
  background: rgba(111,67,241,.14);
  border-radius: 999px;
  margin: 0 6px;
}

/* boutons à droite */
.meta-actions{
  margin-left:auto;
  display:flex;
  gap: 10px;
}

.icon-btn{
  width: 44px;
  height: 44px;
  display:grid;
  place-items:center;
  border-radius: 14px;

  background: rgba(255,255,255,.70);
  border: 1px solid rgba(111,67,241,.12);
  box-shadow: 0 10px 26px rgba(20,18,40,.06);

  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}

.icon-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(20,18,40,.10);
}


/* ===== MODALE INGRÉDIENTS ===== */
.modalIngredients{
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.modalIngredients.is-open{
  display: block;
}

/* Overlay */
.modalIngredients-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
}

/* Contenu */
.modalIngredients-content{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(640px, 92%);
  max-height: 85vh;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.modalIngredients-header{
  padding: 22px 26px 14px;
  border-bottom: 1px solid #eee;
}

.modalIngredients-header h2{
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.modalIngredients-sub{
  font-size: 13px;
  color: #777;
}

/* Body */
.modalIngredients-body{
  padding: 22px 26px;
  overflow-y: auto;
}

/* Group */
.ingredients-group{
  margin-bottom: 22px;
}

.ingredients-group-title{
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Table */
.ingredients-table{
  width: 100%;
  border-collapse: collapse;
}

.ingredients-table tr{
  border-bottom: 1px dashed #eee;
}

.ingredients-table td{
  padding: 8px 0;
  font-size: 14px;
}

.ing-name{
  font-weight: 600;
}

.ing-qty,
.ing-unit{
  text-align: right;
  color: #555;
}

/* Close */
.modalIngredients-close{
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}


/* Responsive */
@media (max-width: 600px){
  .hero-media{ padding: 12px; }
  .hero-media::after{ inset: 12px; border-radius: 18px; }
  .hero-top-left{ top: 20px; left: 20px; }
  .hero-title{ left: 20px; top: 76px; max-width: 86%; }
  .hero-chips{ left: 20px; bottom: 20px; }
  .hero-like{ right: 20px; bottom: 20px; }

  .meta-bar{
    flex-wrap: wrap;
    gap: 10px;
  }
  .meta-divider{ display:none; }
}

.chip{
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.chip:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
}

/* Like bubble */
.hero-like{
  position:absolute;
  right: 34px;
  bottom: 34px;
  z-index: 3;
  display:flex;
  flex-direction: column;
  align-items:center;
  gap: 8px;
}
.like-btn{
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.92);
  cursor:pointer;
  font-size: 20px;
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
  transition: transform .15s ease;
}
.like-btn:hover{ transform: translateY(-1px) scale(1.02); }
.like-count{
  color: rgba(255,255,255,.95);
  font-weight: 900;
  text-shadow: 0 10px 20px rgba(0,0,0,.35);
}

@media (max-width: 520px){
  .hero-img{ height: 360px; }
  .hero-title{ top: 72px; left: 22px; }
  .hero-chips{ left: 22px; bottom: 22px; }
  .hero-like{ right: 22px; bottom: 22px; }
  .hero-media::after{ inset: 16px; }
}

/* ===========================
   MODALE ÉTAPES (centrée)
   =========================== */

/* état fermé */
.modalEtapes{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;              /* caché par défaut */
}

/* état ouvert (ajoute .is-open en JS) */
.modalEtapes.is-open{
  display: block;
}

/* overlay */
.modalEtapes-overlay{
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 20, .55);
  backdrop-filter: blur(6px);
}

/* la fenêtre */
.modalEtapes-content{
  position: relative;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 120px);

  /* ✅ plus haut que le centre parfait */
  margin: 70px auto 50px;

  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  overflow: hidden;

  display: flex;
  flex-direction: column;
}

/* mobile : on remonte un peu moins et on utilise plus d’espace */
@media (max-width: 768px){
  .modalEtapes-content{
    width: calc(100vw - 20px);
    margin: 18px auto;
    max-height: calc(100vh - 36px);
    border-radius: 16px;
  }
}
/* ================================
   ÉTAPES — TripCooking (modern)
   Cible ton HTML existant :
   #etapes.card-block.steps-block
   .gsp (global player)
   .steps-list .step-card ...
   ================================ */

/* --- Section container --- */
#etapes.steps-block{
  margin-top: 22px;
}

#etapes.steps-block .block-header{
  margin-bottom: 14px;
}

#etapes.steps-block .block-header h2{
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

/* --- Global Steps Player (gsp) --- */
.gsp{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 14px 14px;
  border-radius: 18px;

  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(120, 82, 255, 0.16);
  box-shadow:
    0 10px 30px rgba(20, 18, 40, 0.08),
    0 1px 0 rgba(255,255,255,0.8) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  margin-bottom: 14px;
}

.gsp-left{
  min-width: 220px;
}

.gsp-title{
  font-weight: 800;
  font-size: 14px;
  color: rgba(18,18,22,0.92);
}

.gsp-sub{
  margin-top: 2px;
  font-size: 12px;
  color: rgba(18,18,22,0.62);
}

.gsp-controls{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Buttons */
.gsp-btn{
  appearance: none;
  border: 1px solid rgba(120, 82, 255, 0.20);
  background: rgba(255,255,255,0.78);
  color: rgba(18,18,22,0.9);

  height: 40px;
  padding: 0 12px;
  border-radius: 14px;

  font-weight: 700;
  font-size: 13px;
  line-height: 1;

  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  box-shadow:
    0 8px 20px rgba(20, 18, 40, 0.07),
    0 1px 0 rgba(255,255,255,0.75) inset;
}

.gsp-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.92);
  border-color: rgba(120, 82, 255, 0.30);
}

.gsp-btn:active{
  transform: translateY(0px);
  box-shadow:
    0 6px 16px rgba(20, 18, 40, 0.06),
    0 1px 0 rgba(255,255,255,0.7) inset;
}

.gsp-btn:focus{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(120, 82, 255, 0.18),
    0 10px 30px rgba(20, 18, 40, 0.08),
    0 1px 0 rgba(255,255,255,0.8) inset;
}

/* Primary play button */
.gsp-primary{
  background: linear-gradient(135deg, rgba(120, 82, 255, 0.95), rgba(170, 120, 255, 0.92));
  color: #fff;
  border-color: rgba(120, 82, 255, 0.35);
}

.gsp-primary:hover{
  background: linear-gradient(135deg, rgba(120, 82, 255, 1), rgba(170, 120, 255, 1));
}

.gsp-primary:focus{
  box-shadow:
    0 0 0 3px rgba(120, 82, 255, 0.25),
    0 12px 34px rgba(120, 82, 255, 0.18);
}

/* --- Steps list layout --- */
.steps-list{
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

/* Card */
.step-card{
  position: relative;
  padding: 14px 14px;
  border-radius: 18px;

  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(120, 82, 255, 0.14);
  box-shadow: 0 10px 30px rgba(20, 18, 40, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.step-card:hover{
  transform: translateY(-1px);
  border-color: rgba(120, 82, 255, 0.22);
  box-shadow: 0 16px 40px rgba(20, 18, 40, 0.10);
}

.step-card-body{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}

/* Step text */
.step-text{
  color: rgba(18,18,22,0.9);
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
}

.step-text strong{ font-weight: 800; }
.step-text em{ opacity: .9; }

/* Controls on the right */
.step-controls{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 6px;
}

/* Per-step play button */
.sp-play{
  appearance: none;
  border: 1px solid rgba(120, 82, 255, 0.22);
  background: rgba(255,255,255,0.80);
  color: rgba(18,18,22,0.92);

  height: 36px;
  padding: 0 12px;
  border-radius: 14px;

  font-weight: 800;
  font-size: 13px;
  cursor: pointer;

  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  box-shadow:
    0 8px 18px rgba(20, 18, 40, 0.07),
    0 1px 0 rgba(255,255,255,0.75) inset;
}

.sp-play:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.95);
  border-color: rgba(120, 82, 255, 0.34);
}

.sp-play:active{
  transform: translateY(0px);
}

.sp-play:focus{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(120, 82, 255, 0.18),
    0 8px 18px rgba(20, 18, 40, 0.07),
    0 1px 0 rgba(255,255,255,0.75) inset;
}

/* Status */
.sp-status{
  font-size: 12px;
  font-weight: 700;
  color: rgba(18,18,22,0.55);
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(120, 82, 255, 0.08);
  border: 1px solid rgba(120, 82, 255, 0.12);
}

/* Optional: highlight current/playing step
   -> Ajoute/retire ces classes côté JS si tu veux
*/
.step-card.is-playing{
  border-color: rgba(120, 82, 255, 0.45);
  box-shadow:
    0 18px 44px rgba(120, 82, 255, 0.18),
    0 0 0 3px rgba(120, 82, 255, 0.14);
}

.step-card.is-playing .sp-status{
  color: rgba(120, 82, 255, 0.95);
  background: rgba(120, 82, 255, 0.12);
  border-color: rgba(120, 82, 255, 0.22);
}

/* --- Responsive --- */
@media (max-width: 900px){
  .gsp{
    flex-direction: column;
    align-items: stretch;
  }

  .gsp-left{
    min-width: 0;
  }

  .gsp-controls{
    justify-content: flex-start;
  }

  .step-card-body{
    grid-template-columns: 1fr;
  }

  .step-controls{
    justify-content: flex-start;
    padding-left: 0;
    margin-top: 10px;
  }
}

@media (max-width: 480px){
  .gsp-btn{
    height: 38px;
    border-radius: 14px;
  }

  .gsp-primary{
    width: 100%;
    justify-content: center;
  }

  .sp-play{
    height: 38px;
  }
}

/* bouton X */
.modalEtapes-close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.9);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  z-index: 2;
}
.modalEtapes-close:hover{
  background: #fff;
}

/* header */
.modalEtapes-header{
  padding: 22px 22px 14px 22px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.modalEtapes-header h2{
  margin: 0 52px 8px 0; /* laisse la place au X */
  font-size: 26px;
}
.modalEtapes-sub{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(0,0,0,.65);
  font-size: 13px;
}

/* body scrollable */
.modalEtapes-body{
  padding: 16px 22px 18px 22px;
  overflow: auto;
}

/* liste des étapes */
.stepsList{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.stepsItem{
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(245, 245, 255, .55);
}
.stepsIndex{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: rgba(110, 64, 255, .12);
  border: 1px solid rgba(110, 64, 255, .22);
}
.stepsText{
  font-size: 15px;
  line-height: 1.45;
  color: rgba(0,0,0,.85);
}

/* état vide */
.emptyState{
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(0,0,0,.18);
  color: rgba(0,0,0,.7);
  background: rgba(250,250,255,.6);
}

/* footer */
.modalEtapes-footer{
  padding: 14px 22px;
  border-top: 1px solid rgba(0,0,0,.06);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.modalEtapes-footer .option-btn{
  border: 1px solid rgba(110, 64, 255, .20);
  background: rgba(110, 64, 255, .10);
  color: rgba(50, 20, 140, .95);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
}
.modalEtapes-footer .option-btn:hover{
  background: rgba(110, 64, 255, .16);
}

/* (optionnel) animation d’apparition */
.modalEtapes.is-open .modalEtapes-content{
  animation: modalIn .18s ease-out both;
}
@keyframes modalIn{
  from{ transform: translateY(10px); opacity: 0; }
  to{ transform: translateY(0); opacity: 1; }
}

/* =========================
   META BAR
========================= */
.meta-bar{
  display:flex;
  flex-wrap: wrap;
  align-items:center;
  gap: 12px;
  padding: 14px 16px 18px;
  margin-top: 10px;     /* <-- évite l’effet collé au hero */
}

.meta-item{
  display:flex;
  align-items:center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
  background: rgba(111,67,241,.06);
  border: 1px solid rgba(111,67,241,.10);
  border-radius: 999px;
  padding: 10px 12px;
}

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(111,67,241,.10);
  border: 1px solid rgba(111,67,241,.14);
}

.rating{ color: var(--text); font-weight: 950; }

.difficulty{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(111,67,241,.12);
  color: var(--purple);
  border: 1px solid rgba(111,67,241,.16);
  font-weight: 950;
}

.meta-actions{
  margin-left:auto;
  display:flex;
  gap: 10px;
}

.icon-btn{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(111,67,241,.14);
  background: rgba(111,67,241,.06);
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.icon-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(35, 14, 86, .10);
}

/* =========================
   COMPOSER (comment input)
========================= */
.composer{
  padding: 16px;
  margin-top: 12px; /* <-- ESPACE AVANT CETTE SECTION */
}

.composer-row{
  display:flex;
  align-items:center;
  gap: 12px;
}

.composer-input{
  flex:1;
  border-radius: 999px;
  border: 1px solid rgba(111,67,241,.18);
  padding: 14px 16px;
  outline:none;
  background: #fbfaff;
  font-weight: 700;
}

.composer-input:focus{
  border-color: rgba(111,67,241,.35);
  box-shadow: 0 0 0 4px rgba(111,67,241,.12);
}

.send-btn{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border:0;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color:#fff;
  cursor:pointer;
  font-weight: 950;
  transition: transform .15s ease, box-shadow .15s ease;
}
.send-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(111,67,241,.25);
}

/* =========================
   COMMENTS
========================= */
.comments{
  padding: 18px 16px 14px;
  margin-top: 12px; /* <-- ESPACE AVANT */
}

.comments-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 6px 2px 12px;
}

.comments-head h2{
  margin:0;
  font-size: 20px;
  letter-spacing: .2px;
}

.comments-tabs{
  display:flex;
  gap: 8px;
}

.tab{
  border: 1px solid rgba(111,67,241,.14);
  background: rgba(111,67,241,.06);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  cursor:pointer;
  font-weight: 900;
}

.tab.active{
  background: rgba(111,67,241,.14);
  color: var(--purple);
}

.divider{
  height: 1px;
  background: var(--line);
  margin: 10px 0;
}

.comment{
  display:flex;
  gap: 12px;
  padding: 16px 0; /* un peu plus aéré */
}

.comment-body{ flex:1; }

.comment-head{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.name{ color: var(--text); font-weight: 950; }
.time{ opacity:.9; }
.spacer{ margin-left:auto; }

.comment p{
  margin: 8px 0 10px;
  color: var(--text);
  line-height: 1.5;
  font-weight: 650;
}

.comment-foot{
  display:flex;
  gap: 10px;
}

.ghost-btn{
  border: 1px solid rgba(111,67,241,.14);
  background: rgba(111,67,241,.06);
  border-radius: 999px;
  padding: 8px 12px;
  cursor:pointer;
  font-weight: 900;
  color: var(--muted);
  transition: transform .15s ease;
}
.ghost-btn:hover{ transform: translateY(-1px); }

.mini-btn{
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor:pointer;
  font-weight: 900;
}

/* =========================
   AVATARS
========================= */
.avatar{
  width: 46px;
  height: 46px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
}
.avatar-sm{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
}

/* =========================
   SIDEBAR
========================= */
.side{
  position: sticky;
  top: 18px;
  height: fit-content;
}

.side-card{
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(111,67,241,.14);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 14px 10px;
  display:flex;
  flex-direction: column;
  align-items:center;
  gap: 12px;
}

.save-btn{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 0;
  background: rgba(111,67,241,.14);
  cursor:pointer;
  font-size: 18px;
  transition: transform .15s ease;
}
.save-btn:hover{ transform: translateY(-1px); }

.side-stat{
  width: 100%;
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(111,67,241,.08);
  border: 1px solid rgba(111,67,241,.12);
  text-align:center;
}

.kpi{
  font-weight: 950;
  font-size: 18px;
}
.label{
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

/* =========================
   SMALL FIXES (optionnels)
========================= */

/* évite que certains titres/cadres collent */
h1,h2,h3{ margin-block: 0.2em 0.4em; }

/* si tu as des ancres/boutons qui font “collé” */
button,a{ -webkit-tap-highlight-color: transparent; }
