.sidebar-link .s-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}

/* ── TABLEAU RÉCAPITULATIF ── */
.tech-table-wrap {
  overflow-x: auto; margin: 28px 0 36px; border: 1px solid var(--border); border-radius: 6px;
}

.tech-table {
  width: 100%; border-collapse: collapse; font-size: 0.8rem; min-width: 560px;
}

.tech-table th, .tech-table td {
  padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top;
}

.tech-table tr:last-child td {
  border-bottom: none;
}

.tech-table th {
  font-size: 0.62rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); background: var(--surface);
}

.tech-table td {
  color: var(--muted); line-height: 1.6;
}

/* ── BADGES DE NIVEAU (mêmes couleurs que index.html) ── */
.difficulty-badge {
  font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px; font-weight: 500;
  display: inline-block;
}

.badge-facile {
  color: #177e3d; border: 1px solid #177e3d;
}

.badge-moyen {
  color: var(--accent-text); border: 1px solid var(--accent-text);
}

.badge-difficile {
  color: #b35304; border: 1px solid #b35304;
}

.badge-expert {
  color: var(--error); border: 1px solid var(--error);
}

.badge-diabolique {
  color: #9734f5; border: 1px solid #9734f5;
}

body.dark .badge-facile {
  color: #4ade80; border-color: #4ade80;
}

body.dark .badge-difficile {
  color: #fb923c; border-color: #fb923c;
}

body.dark .badge-diabolique {
  color: #ac5df7; border-color: #ac5df7;
}

/* ── PREUVE DE VALIDATION (captures du validateur) ── */
.proof-block {
  margin: 28px 0 0; padding: 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
}

.proof-title {
  font-family: 'Playfair Display', serif; font-size: 1.1rem;
  font-weight: 700; color: var(--text); margin: 0 0 10px;
}

.proof-images {
  display: flex; flex-wrap: wrap; gap: 18px;
}

.proof-figure {
  flex: 1 1 320px; min-width: 260px; margin: 0;
}

.proof-figure img {
  width: 100%; height: auto; display: block;
  border-radius: 6px; border: 1px solid var(--border);
  box-shadow: 3px 3px 0 var(--border);
  cursor: zoom-in;
  transition: transform 0.15s, box-shadow 0.15s;
}

.proof-figure img:hover {
  transform: translate(-1px,-1px);
  box-shadow: 4px 4px 0 var(--accent);
}

.proof-figure figcaption {
  font-size: 0.68rem; color: var(--muted); text-align: center;
  margin-top: 8px; letter-spacing: 0.5px;
}

/* ── LIGHTBOX (agrandissement image au clic) ── */
.img-lightbox {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.85);
  align-items: center; justify-content: center;
  padding: 24px; cursor: zoom-out;
}

.img-lightbox.open {
  display: flex;
}

.img-lightbox img {
  max-width: 95vw; max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  cursor: default;
}

.img-lightbox-close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: none; color: #fff;
  font-size: 1.8rem; line-height: 1; cursor: pointer;
  opacity: 0.8; transition: opacity 0.15s;
}

.img-lightbox-close:hover {
  opacity: 1;
}

/* ── CARTES DE NIVEAU ── */
.level-card {
  margin-bottom: 44px; padding-bottom: 32px; border-bottom: 1px solid var(--border); scroll-margin-top: 20px;
}

.level-card:last-of-type {
  border-bottom: none; margin-bottom: 0; padding-bottom: 0;
}

.level-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap;
}

.level-header h2 {
  font-family: 'Playfair Display', serif; font-size: 1.4rem;
  font-weight: 700; color: var(--text); margin: 0;
}

.level-notes {
  font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); margin: 4px 0 16px;
}

.tech-list {
  list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px;
}

.tech-list li {
  padding: 12px 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}

.tech-list .tech-name {
  font-weight: 500; color: var(--text); font-size: 0.85rem;
}

.tech-list .tech-desc {
  color: var(--muted); font-size: 0.78rem; flex-basis: 100%; margin-top: 2px;
}

.tech-list a.tech-link {
  color: var(--accent-text); text-decoration: none; font-size: 0.72rem; letter-spacing: 1px; white-space: nowrap;
}

.tech-list a.tech-link:hover {
  text-decoration: underline;
}

/* CTA jouer */
.cta-play {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px;
  font-family: 'DM Mono', monospace; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase;
  background: var(--accent); color: var(--bg);
  border: none; border-radius: 4px; cursor: pointer;
  box-shadow: 4px 4px 0 #b8952e; text-decoration: none;
  transition: transform 0.1s, box-shadow 0.1s;
}

.cta-play:hover {
  transform: translate(-2px,-2px); box-shadow: 6px 6px 0 #b8952e;
}
