/* ===== Player YouTube responsive (ratio 16:9), centré & max-width ===== */
.regles-ywrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;         /* centrage horizontal */
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
}
.regles-yframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ===== Bloc single ===== */
.blockgen.regles-single {
  /* aucun fond, on laisse hériter du site */
  margin: 0 0 2rem 0;
}
.regles-title { margin: 1rem 0 1rem; font-size: 1.4rem; }

/* ===== Infos (Durée / Coût / Gain) — sans fond blanc ===== */
.regles-infos {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}
.regles-info {
  display: flex;
  align-items: center;
  gap: 0 0.6rem;
  padding: .75rem .9rem;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(125,125,125,.25);
  flex-wrap: wrap;
}
.regles-info__icon { font-size: 1rem; opacity: .9; }
.regles-info__label {
  font-size: .85rem;
  opacity: .75;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.regles-info__value {
  flex-basis: 100%;
  padding-left: calc(1rem + .6rem);
  font-weight: 600;
}

/* ===== Liste des règles de jeu (timeline sobre) ===== */
.regles-list { margin-top: 1.25rem; }
.regles-steps {
  list-style: none;
  padding: 0; margin: 0;
  counter-reset: regstep;
  position: relative;
}
.regles-step {
  position: relative;
  counter-increment: regstep;
  padding: .9rem .6rem .9rem 3rem;
  border: 0; /* plus de bottom dashed */
}
.regles-step::before {
  content: counter(regstep);
  position: absolute;
  left: 0; top: .9rem;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: .9rem;
  border: 1px solid rgba(125,125,125,.35);
  transition: transform .12s ease, border-color .12s ease;
}
.regles-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px; /* centré sous la pastille (28px -> ~14px) */
  top: calc(.9rem + 28px);
  bottom: -2px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(125,125,125,.35), rgba(125,125,125,.15));
}
.regles-step:hover::before { transform: scale(1.05); }

.regles-step__icon,
.regles-step__index { display: none; } /* on laisse la numérotation au CSS */
.regles-step__text { opacity: .95; }

/* Titre d'étape optionnel (si fourni via ACF) */
.regles-step__title {
  font-weight: 700;
  margin: 0 0 .3rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.regles-step__title i { font-size: .95rem; opacity: .9; }

/* Variantes par type (change la bordure de la pastille) */
.regles-step--attention::before { border-color: rgba(255,149,0,.7); }
.regles-step--optionnel::before { border-color: rgba(123,97,255,.7); }

/* ===== Liste (kstats) — vignette à gauche, texte à droite, sans fond blanc ===== */
.kstats {
  margin: 0 0 2rem 0;
  padding: 0 1rem;
}
.kstats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.kstats-grid-item {
  border: 1px solid rgba(125,125,125,.25);
  border-radius: 12px;
  background: transparent;                     /* no white */
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.kstats-grid-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  border-color: rgba(125,125,125,.35);
}
.kstats-link { color: inherit; text-decoration: none; display: block; }
.kstats-item__content {
  display: grid;
  grid-template-columns: 1fr 2fr; /* vignette 1/3 (gauche) — texte 2/3 (droite) */
  gap: 1rem;
}
.kstats-item__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
}
.kstats-item__thumb img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}
.kstats-thumb__placeholder {
  width: 100%;
  min-height: 140px;
  display: grid;
  place-items: center;
  color: rgba(150,150,150,.9);
  background: transparent;                     /* no white */
  border: 1px dashed rgba(125,125,125,.25);
  border-radius: 10px;
}

.kstats-item__main { min-width: 0; }
.kstats-item__title { margin: 0 0 .4rem; font-size: 1.2rem; }
.kstats-item__excerpt { opacity: .9; }

/* Badges sans fond blanc */
.kstats-grid-item h3{margin-bottom: 0!important;}
.kstats-grid-item .kstats-item__badges{margin-top: 0!important;}

.kstats-item__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .6rem;
}
.kstats-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  padding: .25rem .5rem;
  border-radius: 999px;
  background: transparent;                     /* no white */
  border: 1px solid rgba(125,125,125,.25);
  line-height: 1.2;
}
.kstats-badge--gain { border-color: rgba(111, 111, 111, .6); }
.kstats-badge--cout { border-color: rgba(111, 111, 111, .6); }
.kstats-badge--cout svg {fill: gold;}

/* ===== Responsive ===== */
@media (max-width: 800px) {
  .regles-infos { grid-template-columns: 1fr; }
  .kstats-item__content { grid-template-columns: 1fr; }
}
