/* F25 : onglet 8s-6s. */
.tete-e { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tete-e h1 { font: 800 clamp(24px, 2.4vw, 32px)/1.1 var(--f-titre); }
.choix-e { display: flex; flex-wrap: wrap; gap: 8px; }
.choix-e.bloque { opacity: .55; pointer-events: none; }
.segments-e { display: inline-flex; gap: 2px; padding: 4px; background: var(--plaque); border: 1px solid var(--trait); border-radius: 13px; }
.segments-e button { min-height: 38px; padding: 0 15px; background: transparent; border: 0; border-radius: 9px; color: var(--gris); font: 600 14px/1 var(--f-texte); cursor: pointer; transition: color .15s, background .15s; }
.segments-e button:hover { color: var(--texte); }
.segments-e button[aria-pressed="true"] { background: var(--rouge); color: #fff; }

/* Le choix : l'image du mode, les chiffres, les places. */
.visuel-e { display: grid; align-content: end; gap: 12px; min-height: max(380px, calc(100dvh - var(--haut-entete) - 270px)); padding: clamp(16px, 2.400vw, 28px); background: linear-gradient(to top, rgb(9 14 25 / .97) 35%, rgb(9 14 25 / .45)), var(--image) center / cover, var(--plaque); border: 2px solid var(--trait); border-radius: 18px; }
.tuiles-e { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 8px; }
.tuiles-e > div { display: grid; gap: 3px; padding: 11px 14px; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .1); border-radius: 13px; }
.tuiles-e small { color: var(--gris); font-size: 12px; }
.tuiles-e b { font: 700 16px/1.25 var(--f-titre); }
.cases-e { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; }
.case-e { height: 12px; background: rgb(255 255 255 / .1); border-radius: 99px; transition: background .25s; }
.case-e.pleine { background: var(--rouge-vif); box-shadow: 0 0 10px rgb(232 32 46 / .5); }

.action-e { display: grid; justify-items: center; gap: 10px; margin-top: 16px; text-align: center; }
.lancer-e { display: inline-grid; place-items: center; text-decoration: none; }
.puce-e { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; background: var(--plaque); border: 1px solid var(--trait); border-radius: 12px; color: var(--texte); font: 600 14px/1 var(--f-texte); text-decoration: none; cursor: pointer; transition: border-color .15s; }
.puce-e:hover { border-color: var(--trait-fort); }
.vocal-e { background: #5865f2; border-color: #5865f2; color: #fff; cursor: pointer; }
.vocal-groupe-e { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; }
.lien-vocal-e { color: var(--gris); font-size: 12px; }
.boutons-e { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.attente-e { display: flex; align-items: center; gap: 9px; margin: 0; font: 700 18px/1.2 var(--f-titre); }
.attente-e i { width: 9px; height: 9px; background: var(--rouge-vif); border-radius: 50%; animation: pulse-recherche 1.2s ease-in-out infinite; }
.etat-e { margin: 0; font: 600 16px/1.3 var(--f-titre); }
.etat-e b { color: #ffc93c; }
.resultat-e { font-size: clamp(24px, 2.800vw, 34px); font-weight: 800; }
.resultat-e b.plus-e { color: var(--ok); }
.resultat-e b.moins-e { color: var(--ko); }
.note-e { margin: 0; color: var(--gris); font-size: 14px; }
.rebours-e { color: #ffc93c; }

/* Les deux équipes */
.duel-e { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; padding: clamp(14px, 2vw, 24px); background: linear-gradient(rgb(9 14 25 / .86), rgb(9 14 25 / .92)), var(--image) center / cover, var(--plaque); border: 2px solid var(--trait); border-radius: 18px; }
.vs-e { color: var(--gris); font: 800 18px/1 var(--f-titre); }
.equipe-e { min-width: 0; padding: 14px; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .09); border-radius: 14px; }
.equipe-e h2 { font: 800 19px/1.2 var(--f-titre); }
.equipe-e:first-child h2 { color: #ff6d76; }
.equipe-e:last-child h2 { color: #6db4ff; }
.equipe-e > small { display: block; margin-bottom: 8px; color: var(--gris); font-size: 12px; }
.joueur-e { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 7px 8px; border-radius: 10px; opacity: .6; transition: opacity .2s; }
.joueur-e.pret { opacity: 1; }
.joueur-e.moi { background: rgb(255 255 255 / .07); }
.avatar-e { position: relative; display: grid; place-items: center; flex: none; width: 32px; height: 32px; overflow: hidden; background: var(--plaque-2); border-radius: 50%; font: 700 12px/1 var(--f-titre); }
.avatar-e img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nom-e { flex: 1; min-width: 0; overflow: hidden; font-weight: 600; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.capitaine-e { flex: none; padding: 2px 7px; background: rgb(255 201 60 / .16); border-radius: 6px; color: #ffc93c; font-size: 11px; font-weight: 600; }
.elo-e { flex: none; color: var(--gris); font: 500 13px/1 var(--f-chiffre); }

/* Staff */
.litiges-e { display: grid; gap: 8px; margin-top: 24px; }
.litiges-e h2 { font: 700 18px/1.2 var(--f-titre); }
.litige-e { display: grid; gap: 4px; padding: 14px; background: var(--plaque); border: 1px solid var(--trait); border-radius: 13px; font-size: 14px; }
.litige-e p { margin: 0; }
.litige-e .boutons-e { justify-content: flex-start; margin-top: 6px; }

@media (max-width: 767px) {
  .duel-e { grid-template-columns: minmax(0, 1fr); }
  .vs-e { justify-self: center; }
  .visuel-e { min-height: 300px; }
  .segments-e button { padding: 0 11px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .attente-e i { animation: none; } }

/* Les quatre formats */
.formats-e { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.format-e { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: clamp(220px, 32vh, 340px); padding: 16px; overflow: hidden; background: linear-gradient(to bottom, rgb(9 14 25 / .88) 22%, rgb(9 14 25 / .42) 50%, rgb(9 14 25 / .92) 78%), var(--image) center / cover, var(--plaque); border: 2px solid var(--trait); border-radius: 18px; color: #fff; text-align: left; cursor: pointer; transition: transform .18s, border-color .18s; }
.format-e:hover:not(:disabled) { transform: translateY(-4px); border-color: var(--trait-fort); }
.format-e[aria-pressed="true"] { border-color: var(--rouge); box-shadow: 0 16px 40px rgb(232 32 46 / .25); }
.format-e:disabled { cursor: default; }
.format-e:disabled:not([aria-pressed="true"]) { opacity: .4; }
.titre-format-e { display: grid; gap: 1px; }
.titre-format-e b { font: 800 clamp(30px, 3vw, 42px)/1 var(--f-titre); }
.titre-format-e span { font: 700 16px/1.2 var(--f-titre); }
.titre-format-e small { color: rgb(255 255 255 / .75); font-size: 12px; }
.infos-format-e { display: grid; gap: 3px; font-size: 13px; font-weight: 600; }
.note-e b { color: var(--texte); }

/* La salle d'attente */
.salle-e { display: grid; justify-items: center; gap: 16px; margin-top: 16px; padding: clamp(16px, 2.400vw, 28px); background: var(--plaque); border: 1px solid var(--trait); border-radius: 18px; }
.sieges-e { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 96px)); justify-content: center; gap: 14px 18px; width: 100%; }
.siege-e { display: grid; justify-items: center; gap: 6px; min-width: 0; }
.siege-e small { max-width: 100%; overflow: hidden; color: var(--gris); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.siege-e.pris small { color: var(--texte); font-weight: 600; }
.siege-e .avatar-e, .vide-e { width: 56px; height: 56px; font-size: 18px; }
.vide-e { display: block; border: 2px dashed var(--trait-fort); border-radius: 50%; }
.siege-e.moi .avatar-e { box-shadow: 0 0 0 2px var(--rouge-vif); }

/* Les étapes du match */
.etapes-e { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.etapes-e li { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 6px; background: var(--plaque); border: 1px solid var(--trait); border-radius: 11px; color: var(--gris); font-size: 13px; font-weight: 600; }
.etapes-e i { display: grid; place-items: center; width: 20px; height: 20px; background: rgb(255 255 255 / .09); border-radius: 50%; font: 700 11px/1 var(--f-chiffre); }
.etapes-e .actuelle { border-color: var(--rouge); color: var(--texte); }
.etapes-e .actuelle i { background: var(--rouge); color: #fff; }
.etapes-e .fait { color: var(--ok); }
.etapes-e .fait i { background: rgb(62 207 142 / .2); }

/* Écran de fin */
.fin-e { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 16px; margin-bottom: 14px; padding: 18px; border-radius: 18px; text-align: center; animation: pop-e .3s ease-out; }
.fin-e strong { font: 800 clamp(34px, 5vw, 60px)/1 var(--f-titre); }
.fin-e b { font: 800 clamp(20px, 2.400vw, 30px)/1 var(--f-chiffre); }
.fin-e.victoire { background: rgb(62 207 142 / .13); border: 1px solid rgb(62 207 142 / .4); }
.fin-e.victoire strong { color: var(--ok); }
.fin-e.defaite { background: rgb(232 32 46 / .12); border: 1px solid rgb(232 32 46 / .4); }
.plus-e { color: var(--ok); }
.moins-e { color: var(--ko); }
.elo-e b { font-weight: 700; }
@keyframes pop-e { from { opacity: 0; transform: scale(.94); } }

/* L'annonce « Match trouvé » */
.annonce-e { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 16px; overflow-y: auto; background: rgb(6 10 18 / .86); backdrop-filter: blur(6px); }
.boite-e { display: grid; justify-items: center; gap: 12px; width: min(560px, 100%); padding: clamp(20px, 3vw, 34px); background: var(--plaque, #1b263a); border: 2px solid var(--rouge, #e8202e); border-radius: 20px; color: var(--texte, #fff); text-align: center; box-shadow: 0 30px 80px rgb(232 32 46 / .35); animation: pop-e .25s ease-out; }
.boite-e h2 { font: 800 clamp(30px, 5vw, 46px)/1.05 var(--f-titre); }
.sur-annonce-e { margin: 0; color: var(--gris); font-weight: 600; }
.noms-e { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
.noms-e > div { display: grid; gap: 3px; padding: 10px; background: rgb(255 255 255 / .05); border-radius: 12px; font-size: 14px; }
.noms-e > div > b { color: var(--gris); font-size: 12px; }
.noms-e span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.noms-e .moi { color: #ffc93c; font-weight: 700; }

/* Le classement du format */
.classement-e { margin-top: 28px; }
.classement-e h2 { margin-bottom: 8px; font: 700 20px/1.2 var(--f-titre); }
.joueur-ligne-e, .rang-ligne-e { display: flex; align-items: center; gap: 10px; min-width: 0; }
.joueur-ligne-e a { color: var(--texte); font-weight: 600; text-decoration: none; }
.joueur-ligne-e a:hover { text-decoration: underline; }

@media (max-width: 1100px) { .formats-e { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .format-e { min-height: 170px; gap: 20px; padding: 12px; }
  .sieges-e { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .siege-e .avatar-e, .vide-e { width: 46px; height: 46px; }
  .etapes-e li { flex-direction: column; gap: 3px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .fin-e, .boite-e { animation: none; } }
.classement-e { min-width: 0; }
.classement-e .defile { max-width: 100%; overflow-x: auto; }
@media (max-width: 767px) {
  .classement-e .rang-ligne-e b { display: none; }
  .classement-e .table-classement td, .classement-e .table-classement th { padding-inline: 8px; }
}

/* Pseudo cliquable vers le profil (Match trouvé, salle 8s-6s). */
.lien-profil-e { color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 4px; }
.lien-profil-e:hover, .lien-profil-e:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.noms-e .lien-profil-e.moi { color: #ffc93c; font-weight: 700; }
