/* BT Showdown (demande du 25/10/2026) : section de l'accueil, page du BT Showdown et page des resultats d'un tournoi
   (facon « tracker »). Theme sombre bleu nuit et or ; cartes des tournois comme le carrousel du jeu (image du tournoi,
   etat, nom, horaire). Charge apres style.css. */
:root {
  --sd-fond: #0a0d26;
  --sd-fond-2: #10143a;
  --sd-carte: #151a45;
  --sd-carte-2: #1b2156;
  --sd-ligne: rgba(255, 255, 255, 0.09);
  --sd-texte: #eef0ff;
  --sd-doux: #a9aed6;
  --sd-bleu-clair: #bfebff;
  --sd-a_venir: #3c8ceb;
  --sd-en_cours: #3caa50;
  --sd-resultats: #e18028;
  --sd-termine: #6e7484;
  --sd-argent: #c9d3e6;
  --sd-bronze: #d98d55;
}
.sd-sombre {
  position: relative;
  background:
    radial-gradient(1200px 520px at 85% -10%, rgba(243, 188, 43, 0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(91, 69, 216, 0.28), transparent 60%),
    linear-gradient(180deg, var(--sd-fond-2) 0%, var(--sd-fond) 100%);
  color: var(--sd-texte);
  overflow: hidden;
}
.sd-sombre::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image:
    linear-gradient(60deg, transparent 49.5%, #fff 49.5%, #fff 50.5%, transparent 50.5%),
    linear-gradient(-60deg, transparent 49.5%, #fff 49.5%, #fff 50.5%, transparent 50.5%);
  background-size: 120px 208px;
}
.sd-sombre > .conteneur { position: relative; }
.sd-sombre h1, .sd-sombre h2, .sd-sombre h3 { color: #fff; }
.sd-sombre h1 .or, .sd-sombre h2 .or, .sd-sombre h3 .or { color: var(--or); }
.sd-sombre .chapo { color: var(--sd-doux); }
.sd-sombre a:not(.bouton):not(.sd-carte):not(.sd-resultat) { color: var(--or-clair); }
.sd-page { background: var(--sd-fond); }
.sd-diamant { width: 16px; height: 16px; flex: none; }

/* ------------------------------------------------------------------ en-tete de la section (accueil) */
.sd-intro { display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center; margin-bottom: 30px; }
.sd-logo { width: 150px; filter: drop-shadow(0 12px 28px rgba(243, 188, 43, 0.35)); animation: sd-flotte 6s ease-in-out infinite; }
@keyframes sd-flotte { 50% { transform: translateY(-8px) rotate(-1.5deg); } }
.sd-surtitre {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--titre); font-weight: 800; font-style: italic; font-size: 14px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--or);
}
.sd-surtitre::before { content: ""; width: 28px; height: 3px; background: var(--or); transform: skewX(-20deg); }
.sd-intro h2 { font-size: clamp(44px, 5.2vw, 76px); margin: 6px 0 0; }
.sd-intro .chapo { max-width: 640px; }
.sd-actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-end; }
.sd-actions .bouton-contour, .sd-heros-actions .bouton-contour { --ombre: transparent; }
.sd-faits { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.sd-faits li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--sd-ligne);
  font-family: var(--titre); font-weight: 800; font-style: italic; font-size: 13px; text-transform: uppercase;
  color: #fff;
  transform: skewX(-8deg);
}
.sd-faits li > * { transform: skewX(8deg); }
.sd-faits li strong { color: var(--or); font-weight: 900; }

/* ------------------------------------------------------------------ carrousel des tournois (comme dans le jeu) */
.sd-carrousel { position: relative; }
.sd-fenetre {
  position: relative;
  overflow: hidden;
  padding: 26px 0 34px;
  touch-action: pan-y;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.sd-fenetre.glisse { cursor: grabbing; }
.sd-piste { display: flex; gap: 22px; transition: transform 0.45s cubic-bezier(0.22, 0.8, 0.25, 1); will-change: transform; }
.sd-fenetre.glisse .sd-piste { transition: none; }
.sd-carte {
  --c: var(--sd-a_venir);
  position: relative;
  flex: 0 0 300px;
  aspect-ratio: 400 / 520;
  border-radius: 16px;
  overflow: hidden;
  background: var(--sd-carte);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
  color: #fff;
  text-decoration: none;
  transform: scale(0.86);
  filter: brightness(0.5) saturate(0.85);
  transition: transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.sd-carte-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.sd-carte::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.sd-carte.choisie { transform: scale(1); filter: none; box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55); }
.sd-carte.choisie::after { border-color: var(--or); box-shadow: inset 0 0 0 1px rgba(255, 224, 138, 0.5), 0 0 34px rgba(243, 188, 43, 0.45); }
.sd-carte.choisie:hover { transform: scale(1.025); }
.sd-carte:hover, .sd-carte:focus { color: #fff; }
.sd-carte:focus-visible { outline: 3px solid var(--or); outline-offset: 4px; }
.sd-carte[data-etat="en_cours"] { --c: var(--sd-en_cours); }
.sd-carte[data-etat="resultats"] { --c: var(--sd-resultats); }
.sd-carte[data-etat="termine"] { --c: var(--sd-termine); }
.sd-badges { position: absolute; top: 14px; right: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.sd-badge {
  --c: var(--sd-a_venir);
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px;
  background: var(--c);
  font-family: var(--titre); font-weight: 900; font-style: italic; font-size: 13px; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.sd-carte .sd-badge { --c: inherit; }
.sd-badge[data-etat="en_cours"] { --c: var(--sd-en_cours); }
.sd-badge[data-etat="resultats"] { --c: var(--sd-resultats); }
.sd-badge[data-etat="termine"] { --c: var(--sd-termine); }
.sd-badge.discret { background: rgba(10, 13, 38, 0.72); }
.sd-point { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: sd-pulse 1.4s ease-in-out infinite; }
@keyframes sd-pulse { 50% { opacity: 0.25; transform: scale(0.7); } }
.sd-carte-bas { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; }
.sd-carte-jour { font-family: var(--titre); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 13px; letter-spacing: 0.08em; color: var(--sd-bleu-clair); }
.sd-carte h3 { font-size: 25px; line-height: 1.05; text-transform: uppercase; margin: 6px 0 8px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.sd-carte-horaire { font-weight: 700; color: var(--or); font-size: 16px; }
.sd-carte-info { color: var(--sd-bleu-clair); font-size: 15px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-compte {
  display: inline-flex; gap: 8px; align-items: baseline;
  margin-top: 10px; padding: 6px 12px;
  background: rgba(0, 0, 0, 0.5);
  border-left: 3px solid var(--c);
  font-size: 14px; color: #fff;
}
.sd-compte:empty { display: none; }
.sd-compte strong { font-family: var(--titre); font-style: italic; font-weight: 900; font-size: 17px; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; }
.sd-fleches { display: flex; justify-content: center; align-items: center; gap: 22px; }
.sd-fleches[hidden] { display: none; }
.sd-fleches .fleche {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 50px; border: 0;
  background: var(--or); color: var(--nuit);
  cursor: pointer;
  transform: skewX(-8deg);
  box-shadow: -4px 4px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.sd-fleches .fleche > span { display: flex; transform: skewX(8deg); }
.sd-fleches .fleche svg { width: 22px; height: 22px; }
.sd-fleches .fleche:hover:not(:disabled) { transform: skewX(-8deg) translate(2px, -2px); }
.sd-fleches .fleche:disabled { opacity: 0.3; cursor: default; }
.sd-points-nav { display: flex; gap: 10px; }
.sd-points-nav button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.25); cursor: pointer; transition: background 0.2s, transform 0.2s; }
.sd-points-nav button.actif { background: var(--or); transform: scale(1.35); }
.sd-aide { text-align: center; color: var(--sd-doux); font-size: 15px; margin: 18px 0 0; }
.sd-message { text-align: center; color: var(--sd-doux); padding: 70px 0; font-size: 17px; }

/* ------------------------------------------------------------------ page du BT Showdown */
.sd-heros, .sd-tournoi-entete { position: relative; overflow: hidden; }
.sd-heros { padding: 150px 0 90px; text-align: center; }
.sd-heros-fond { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0.32; filter: blur(2px) saturate(1.1); transform: scale(1.04); }
.sd-heros-fond::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 13, 38, 0.55), var(--sd-fond) 92%); }
.sd-heros .conteneur { position: relative; z-index: 1; }
.sd-heros .fil { color: rgba(255, 255, 255, 0.55); }
.sd-heros-logo { width: min(300px, 62vw); margin: 0 auto 8px; filter: drop-shadow(0 18px 40px rgba(243, 188, 43, 0.4)); animation: sd-flotte 6s ease-in-out infinite; }
.sd-heros h1 { font-size: clamp(56px, 8vw, 118px); }
.sd-heros .chapo { margin: 18px auto 0; color: rgba(255, 255, 255, 0.82); font-size: 21px; max-width: 780px; }
.sd-heros .sd-faits { justify-content: center; }
.sd-heros-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 36px; }
.sd-direct {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 30px; padding: 12px 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--sd-ligne);
  font-size: 16px; color: #fff;
}
.sd-direct:empty { display: none; }
.sd-direct strong { font-family: var(--titre); font-style: italic; font-weight: 900; font-size: 22px; color: var(--or); font-variant-numeric: tabular-nums; }
.sd-direct .sd-point { background: var(--sd-en_cours); }

.sd-etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: sdetape; }
.sd-etape {
  position: relative;
  padding: 30px 26px 28px;
  background: linear-gradient(180deg, var(--sd-carte-2), var(--sd-carte));
  border: 1px solid var(--sd-ligne);
  border-bottom: 4px solid var(--or);
  overflow: hidden;
}
.sd-etape::before {
  counter-increment: sdetape;
  content: "0" counter(sdetape);
  position: absolute; top: 10px; right: 16px;
  font-family: var(--titre); font-weight: 900; font-style: italic; font-size: 64px; line-height: 1;
  color: rgba(255, 255, 255, 0.06);
}
.sd-etape .carte-icone { background: var(--or); color: var(--nuit); }
.sd-etape h3 { font-size: 24px; text-transform: uppercase; margin-bottom: 10px; }
.sd-etape p { color: var(--sd-doux); margin: 0; font-size: 16px; }

.sd-horaire { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: stretch; }
.sd-heure {
  display: flex; flex-direction: column; justify-content: center;
  padding: 34px 34px 30px;
  background: linear-gradient(135deg, rgba(243, 188, 43, 0.18), rgba(243, 188, 43, 0.03));
  border: 1px solid rgba(243, 188, 43, 0.4);
}
.sd-heure span { font-family: var(--titre); font-weight: 800; font-style: italic; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--or); }
.sd-heure strong { font-family: var(--titre); font-weight: 900; font-style: italic; font-size: clamp(48px, 6vw, 84px); line-height: 1; color: #fff; margin: 8px 0; font-variant-numeric: tabular-nums; }
.sd-heure p { margin: 0; color: var(--sd-doux); }
.sd-heure p b { color: #fff; }
.sd-chrono { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sd-chrono li { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; padding: 16px 18px; background: var(--sd-carte); border: 1px solid var(--sd-ligne); }
.sd-chrono b { font-family: var(--titre); font-weight: 900; font-style: italic; font-size: 22px; color: var(--or); font-variant-numeric: tabular-nums; }
.sd-chrono span { color: var(--sd-doux); }
.sd-chrono span strong { color: #fff; }

.sd-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.sd-panneau {
  background: linear-gradient(180deg, var(--sd-carte-2), var(--sd-carte));
  border: 1px solid var(--sd-ligne);
  padding: 30px 30px 26px;
}
.sd-panneau h3 { font-size: 28px; text-transform: uppercase; margin-bottom: 6px; }
.sd-panneau > p { color: var(--sd-doux); margin: 0 0 18px; }
.sd-bareme { width: 100%; border-collapse: collapse; font-size: 16px; }
.sd-bareme td { padding: 10px 6px; border-bottom: 1px solid var(--sd-ligne); vertical-align: middle; }
.sd-bareme td:first-child { width: 34%; font-weight: 600; color: #fff; }
.sd-bareme td:last-child { width: 60px; text-align: right; font-family: var(--titre); font-weight: 900; font-style: italic; font-size: 19px; color: #fff; }
.sd-bareme tr:first-child td:last-child { color: var(--or); }
.sd-barre { position: relative; height: 6px; background: rgba(255, 255, 255, 0.08); }
.sd-barre i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--or-fonce), var(--or)); }
.sd-elim {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 22px;
  background: var(--or); color: var(--nuit);
  box-shadow: -6px 6px 0 rgba(0, 0, 0, 0.35);
}
.sd-elim strong { font-family: var(--titre); font-weight: 900; font-style: italic; font-size: 44px; line-height: 1; }
.sd-elim span { font-weight: 600; font-size: 17px; }
.sd-exemples { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.sd-exemples li { display: flex; justify-content: space-between; gap: 14px; padding: 13px 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--sd-ligne); color: var(--sd-doux); }
.sd-exemples li strong { color: #fff; font-family: var(--titre); font-style: italic; font-weight: 900; white-space: nowrap; }

.sd-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 18px; align-items: end; margin-bottom: 26px; }
.sd-marche {
  --m: var(--sd-argent);
  position: relative;
  text-align: center;
  padding: 26px 16px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--sd-ligne);
  border-top: 4px solid var(--m);
}
.sd-marche.or { --m: var(--or); padding-top: 46px; background: linear-gradient(180deg, rgba(243, 188, 43, 0.2), rgba(243, 188, 43, 0.02)); }
.sd-marche.bronze { --m: var(--sd-bronze); }
.sd-marche .rang { font-family: var(--titre); font-weight: 900; font-style: italic; font-size: 58px; line-height: 1; color: var(--m); }
.sd-marche .rang sup { font-size: 0.45em; }
.sd-marche .gain { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-family: var(--titre); font-weight: 900; font-style: italic; font-size: 28px; color: #fff; }
.sd-marche .gain .sd-diamant { width: 24px; height: 24px; }
.sd-marche p { margin: 4px 0 0; color: var(--sd-doux); font-size: 14px; }
.sd-paliers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sd-palier { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--sd-ligne); }
.sd-palier span { color: var(--sd-doux); font-weight: 600; }
.sd-palier strong { display: inline-flex; align-items: center; gap: 6px; font-family: var(--titre); font-weight: 900; font-style: italic; font-size: 19px; color: #fff; }
.sd-cagnotte { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; margin-top: 28px; color: var(--sd-doux); text-align: center; }
.sd-cagnotte strong { display: inline-flex; align-items: center; gap: 8px; color: var(--or); font-family: var(--titre); font-style: italic; font-weight: 900; font-size: 30px; }
.sd-cagnotte strong .sd-diamant { width: 26px; height: 26px; }

.sd-regles { display: grid; grid-template-columns: 1fr 1fr; gap: 0 46px; }
.sd-regles details { border-bottom: 1px solid var(--sd-ligne); }
.sd-regles summary { cursor: pointer; list-style: none; padding: 19px 0; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; color: #fff; }
.sd-regles summary::-webkit-details-marker { display: none; }
.sd-regles summary::after { content: "+"; color: var(--or); font-size: 24px; line-height: 1; transition: transform 0.2s; }
.sd-regles details[open] summary::after { transform: rotate(45deg); }
.sd-regles details p { margin: -4px 0 20px; color: var(--sd-doux); }

.sd-resultats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sd-resultat {
  display: grid; grid-template-rows: auto 1fr;
  background: var(--sd-carte);
  border: 1px solid var(--sd-ligne);
  color: #fff; text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.sd-resultat:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); border-color: rgba(243, 188, 43, 0.6); color: #fff; }
.sd-resultat-image { position: relative; aspect-ratio: 12 / 5; background: var(--sd-carte-2) center / cover no-repeat; }
.sd-resultat-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(10, 13, 38, 0.95)); }
.sd-resultat-image .sd-badge { position: absolute; top: 12px; right: 12px; z-index: 1; font-size: 12px; }
.sd-resultat-titre { position: absolute; left: 18px; right: 18px; bottom: 12px; z-index: 1; }
.sd-resultat-titre span { font-family: var(--titre); font-weight: 800; font-style: italic; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sd-bleu-clair); }
.sd-resultat-titre h3 { font-size: 22px; text-transform: uppercase; margin-top: 2px; }
.sd-resultat ol { list-style: none; margin: 0; padding: 10px 18px 14px; }
.sd-resultat li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--sd-ligne); }
.sd-resultat li:last-child { border-bottom: 0; }
.sd-resultat li b { font-family: var(--titre); font-style: italic; font-weight: 900; font-size: 18px; }
.sd-resultat li:nth-child(1) b { color: var(--or); }
.sd-resultat li:nth-child(2) b { color: var(--sd-argent); }
.sd-resultat li:nth-child(3) b { color: var(--sd-bronze); }
.sd-resultat li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sd-resultat li em { font-style: normal; color: var(--sd-doux); font-size: 14px; }
.sd-resultat-vide { padding: 16px 18px; color: var(--sd-doux); font-size: 15px; }
.sd-resultat-pied { display: flex; justify-content: space-between; padding: 0 18px 14px; color: var(--sd-doux); font-size: 13px; }
.sd-resultat-pied b { color: var(--or); font-weight: 700; }
.sd-resultat > div { display: flex; flex-direction: column; justify-content: space-between; }
.sd-plus { display: flex; justify-content: center; margin-top: 34px; }
.sd-plus[hidden] { display: none; }

/* ------------------------------------------------------------------ sections claires de la page du BT Showdown
   (demande du 25/10 : fonds alternes blanc / gris / bleu nuit comme le reste du site) */
.sd-clair .sd-etape, .sd-clair .sd-chrono li, .sd-clair .sd-exemples li {
  background: var(--blanc);
  border-color: var(--bord);
  box-shadow: 0 14px 34px rgba(21, 23, 58, 0.06);
}
.sd-clair .sd-etape { border-bottom-color: var(--or); }
.sd-clair .sd-etape::before { color: rgba(21, 23, 58, 0.07); }
.sd-clair .sd-etape p, .sd-clair .sd-chrono span, .sd-clair .sd-exemples li, .sd-clair .sd-panneau > p { color: var(--doux); }
.sd-clair .sd-heure {
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(243, 188, 43, 0.22), transparent 70%),
    linear-gradient(135deg, var(--nuit-2), var(--nuit));
  border: 0;
  box-shadow: -8px 8px 0 var(--or);
}
.sd-clair .sd-chrono b { color: var(--or-fonce); }
.sd-clair .sd-chrono span strong, .sd-clair .sd-exemples li strong { color: var(--texte); }
.sd-clair .sd-panneau { background: var(--fond); border-color: var(--bord); }
.sd-clair .sd-bareme td { border-bottom-color: var(--bord); }
.sd-clair .sd-bareme td:first-child, .sd-clair .sd-bareme td:last-child { color: var(--texte); }
.sd-clair .sd-bareme tr:first-child td:last-child { color: var(--or-fonce); }
.sd-clair .sd-barre { background: rgba(21, 23, 58, 0.08); }
.sd-clair .sd-elim { box-shadow: -6px 6px 0 #8a83b8; }
.sd-clair .sd-resultat { box-shadow: 0 16px 36px rgba(21, 23, 58, 0.16); border-color: transparent; }
.sd-clair .sd-message { color: var(--doux); }
.sd-clair .sd-plus .bouton-contour { color: var(--nuit); border-color: var(--nuit); }
.sd-clair .sd-plus .bouton-contour:hover { color: var(--nuit); background: rgba(18, 21, 56, 0.06); }
.sd-clair .sd-regles details { border-bottom-color: var(--bord); }
.sd-clair .sd-regles summary { color: var(--texte); }
.sd-clair .sd-regles summary::after { color: var(--violet); }
.sd-clair .sd-regles details p { color: var(--doux); }

/* ------------------------------------------------------------------ page d'un tournoi (classement, facon tracker) */
.sd-tournoi-entete { padding: 150px 0 44px; }
.sd-tournoi-entete .sd-heros-fond { opacity: 0.6; filter: none; transform: none; }
.sd-tournoi-entete .sd-heros-fond::after { background: linear-gradient(180deg, rgba(10, 13, 38, 0.3) 0%, rgba(10, 13, 38, 0.65) 55%, var(--sd-fond) 100%); }
.sd-tournoi-entete .conteneur { position: relative; z-index: 1; }
.sd-tournoi-titre { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sd-tournoi-titre .sd-surtitre { margin-bottom: 8px; }
.sd-tournoi-titre h1 { font-size: clamp(40px, 5vw, 72px); color: #fff; }
.sd-tournoi-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 16px; color: rgba(255, 255, 255, 0.85); font-size: 16px; }
.sd-tournoi-meta strong { color: var(--or); }
.sd-chiffres { display: flex; flex-wrap: wrap; gap: 12px; }
.sd-chiffre { min-width: 124px; padding: 12px 18px; background: rgba(10, 13, 38, 0.62); border: 1px solid var(--sd-ligne); backdrop-filter: blur(6px); }
.sd-chiffre span { display: block; font-family: var(--titre); font-weight: 800; font-style: italic; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sd-doux); }
.sd-chiffre strong { display: inline-flex; align-items: center; gap: 6px; font-family: var(--titre); font-weight: 900; font-style: italic; font-size: 26px; color: #fff; }

.sd-tracker { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; padding: 10px 0 100px; }
.sd-tracker[hidden], .sd-attente[hidden] { display: none; }
.sd-tableau-zone { background: var(--sd-carte); border: 1px solid var(--sd-ligne); min-width: 0; }
.sd-tableau-haut { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 26px 26px 18px; }
.sd-tableau-haut h2 { font-size: clamp(26px, 2.6vw, 38px); }
.sd-tableau-haut p { margin: 6px 0 0; color: var(--sd-doux); font-size: 15px; }
.sd-recherche label { display: block; font-family: var(--titre); font-weight: 800; font-style: italic; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sd-doux); margin-bottom: 6px; }
.sd-recherche input {
  width: 250px; height: 42px; padding: 0 14px;
  background: rgba(255, 255, 255, 0.06); color: #fff;
  border: 1px solid var(--sd-ligne); outline: none;
  font: inherit; font-size: 15px;
}
.sd-recherche input::placeholder { color: rgba(255, 255, 255, 0.4); }
.sd-recherche input:focus { border-color: var(--or); }
.sd-defile { overflow-x: auto; }
.sd-classement { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 760px; }
.sd-classement th {
  padding: 12px 14px; text-align: right;
  font-family: var(--titre); font-weight: 800; font-style: italic; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--sd-doux); background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--sd-ligne);
  white-space: nowrap;
}
.sd-classement th:nth-child(1), .sd-classement th:nth-child(2) { text-align: left; }
.sd-classement td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--sd-ligne); font-variant-numeric: tabular-nums; color: var(--sd-texte); }
.sd-classement td:nth-child(1), .sd-classement td:nth-child(2) { text-align: left; }
.sd-classement tbody tr { cursor: pointer; transition: background 0.15s; }
.sd-classement tbody tr:hover { background: rgba(255, 255, 255, 0.045); }
.sd-classement tbody tr.choisie { background: rgba(243, 188, 43, 0.11); box-shadow: inset 4px 0 0 var(--or); }
.sd-classement tbody tr:focus-visible { outline: 2px solid var(--or); outline-offset: -2px; }
.sd-rang {
  display: inline-grid; place-items: center;
  min-width: 42px; height: 34px; padding: 0 8px;
  font-family: var(--titre); font-weight: 900; font-style: italic; font-size: 18px;
  color: #fff;
  transform: skewX(-8deg);
}
.sd-rang > span { transform: skewX(8deg); }
.sd-rang.r1 { background: linear-gradient(135deg, #ffe08a, var(--or) 55%, var(--or-fonce)); color: var(--nuit); }
.sd-rang.r2 { background: linear-gradient(135deg, #f3f6fc, var(--sd-argent)); color: var(--nuit); }
.sd-rang.r3 { background: linear-gradient(135deg, #f2b88c, var(--sd-bronze)); color: var(--nuit); }
.sd-nom { font-weight: 700; color: #fff; }
.sd-classement td.points { font-family: var(--titre); font-weight: 900; font-style: italic; font-size: 18px; color: #fff; }
.sd-gain { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--sd-bleu-clair); white-space: nowrap; }
.sd-gain.aucun { color: rgba(255, 255, 255, 0.3); font-weight: 500; }
.sd-pages { display: flex; justify-content: flex-end; align-items: center; gap: 6px; padding: 14px 20px; }
.sd-pages button {
  min-width: 38px; height: 34px; padding: 0 12px;
  background: transparent; color: var(--sd-doux);
  border: 0; border-bottom: 2px solid transparent;
  font-family: var(--titre); font-weight: 800; font-style: italic; font-size: 14px;
  cursor: pointer;
}
.sd-pages button:hover:not(:disabled) { color: #fff; }
.sd-pages button.actif { color: #fff; border-bottom-color: var(--or); }
.sd-pages button:disabled { opacity: 0.35; cursor: default; }
.sd-vide { padding: 50px 26px; text-align: center; color: var(--sd-doux); }

.sd-fiche { position: sticky; top: 104px; background: var(--sd-carte); border: 1px solid var(--sd-ligne); }
.sd-fiche-haut { padding: 22px 22px 18px; background: linear-gradient(180deg, rgba(243, 188, 43, 0.15), transparent); border-bottom: 1px solid var(--sd-ligne); }
.sd-fiche-rang { display: flex; align-items: baseline; gap: 10px; font-family: var(--titre); font-weight: 800; font-style: italic; color: var(--sd-doux); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.sd-fiche-rang strong { font-size: 44px; font-weight: 900; color: var(--or); letter-spacing: 0; line-height: 1; }
.sd-fiche-nom { font-family: var(--titre); font-weight: 900; font-style: italic; font-size: 30px; color: #fff; margin-top: 6px; word-break: break-word; line-height: 1.05; }
.sd-fiche-gain { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 12px; background: rgba(191, 235, 255, 0.1); color: var(--sd-bleu-clair); font-weight: 700; font-size: 15px; }
.sd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--sd-ligne); border-bottom: 1px solid var(--sd-ligne); }
.sd-stat { background: var(--sd-carte); padding: 13px 15px; }
.sd-stat span { display: block; font-family: var(--titre); font-weight: 800; font-style: italic; font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--sd-doux); }
.sd-stat strong { font-family: var(--titre); font-weight: 900; font-style: italic; font-size: 24px; color: #fff; font-variant-numeric: tabular-nums; }
.sd-stat.grand strong { font-size: 32px; color: var(--or); }
.sd-fiche h4 { margin: 0; padding: 16px 18px 4px; font-family: var(--titre); font-weight: 800; font-style: italic; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sd-doux); }
.sd-parties { list-style: none; margin: 0; padding: 10px 12px 14px; max-height: 470px; overflow-y: auto; display: grid; gap: 8px; }
.sd-partie { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 11px 14px; background: rgba(255, 255, 255, 0.04); border-left: 3px solid rgba(255, 255, 255, 0.15); }
.sd-partie.top1 { border-left-color: var(--or); background: rgba(243, 188, 43, 0.09); }
.sd-partie.top10 { border-left-color: var(--sd-bleu-clair); }
.sd-partie b { font-family: var(--titre); font-weight: 900; font-style: italic; font-size: 19px; color: #fff; }
.sd-partie b sup { font-size: 0.6em; }
.sd-partie small { display: block; color: var(--sd-doux); font-size: 13px; }
.sd-partie .droite { text-align: right; font-weight: 700; color: #fff; }
.sd-partie .droite strong { font-family: var(--titre); font-style: italic; font-weight: 900; color: var(--or); }
.sd-fiche-vide { padding: 30px 22px; color: var(--sd-doux); }
.sd-attente { padding: 70px 30px; text-align: center; }
.sd-attente h2 { font-size: clamp(30px, 3.4vw, 46px); }
.sd-attente p { color: var(--sd-doux); max-width: 640px; margin: 14px auto 0; }
.sd-attente .sd-direct { margin-top: 26px; }
.sd-attente .heros-actions, .sd-attente .sd-heros-actions { margin-top: 30px; }

@media (max-width: 1080px) {
  .sd-intro { grid-template-columns: 1fr; }
  .sd-actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .sd-etapes { grid-template-columns: 1fr 1fr; }
  .sd-deux, .sd-regles, .sd-horaire { grid-template-columns: 1fr; }
  .sd-paliers, .sd-resultats { grid-template-columns: 1fr 1fr; }
  .sd-tracker { grid-template-columns: minmax(0, 1fr); }
  .sd-fiche { position: static; }
}
@media (max-width: 640px) {
  .sd-carte { flex-basis: 236px; }
  .sd-actions, .sd-heros-actions { width: 100%; }
  .sd-actions .bouton, .sd-heros-actions .bouton { width: 100%; min-width: 0; padding: 0 18px; font-size: 14px; }
  .sd-carte h3 { font-size: 21px; }
  .sd-etapes, .sd-resultats, .sd-paliers { grid-template-columns: 1fr; }
  .sd-podium { gap: 8px; }
  .sd-marche { padding-left: 4px; padding-right: 4px; }
  .sd-marche .rang { font-size: 40px; }
  .sd-marche .gain { font-size: 17px; gap: 4px; white-space: nowrap; }
  .sd-marche .gain .sd-diamant { width: 16px; height: 16px; }
  .sd-direct { flex-wrap: wrap; justify-content: center; text-align: center; gap: 4px 12px; }
  .sd-recherche, .sd-recherche input { width: 100%; }
  .sd-tableau-haut { padding: 20px 16px 14px; }
  .sd-heros { padding: 130px 0 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .sd-piste { transition: none; }
}
