/* comparateur2026.css — Comparateur.php (joueur A en bleu à gauche, joueur B en orange à droite) */
.comparateur { --a: var(--bleu); --b: var(--ligne); display: grid; gap: 1rem; }
.comparateur > * { min-width: 0; }
.comparateur__entete { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .75rem; }
.comparateur__types { display: flex; gap: .3rem; }
.comparateur__types a { padding: .35rem .8rem; border: 1px solid var(--trait); border-radius: 999px; font-weight: 600; font-size: .9rem; text-decoration: none; }
.comparateur__types a[aria-current] { background: var(--accent-fond); color: var(--accent-texte); border-color: transparent; }

.comparateur__choix { display: grid; gap: .75rem; align-items: end; padding: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .comparateur__choix { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; } }
.comparateur__choix label { display: grid; gap: .3rem; font-weight: 600; font-size: .85rem; }
.comparateur__choix input { width: 100%; padding: .6rem .75rem; border: 1px solid var(--trait); border-radius: 8px; background: var(--fond); color: var(--texte); font: inherit; font-size: 1rem; }
.comparateur__vs { justify-self: center; font-family: var(--police-titre); font-weight: 800; font-size: 1.4rem; color: var(--texte-2); padding-bottom: .4rem; }
.comparateur__bouton { padding: .65rem 1.2rem; border: 0; border-radius: 8px; background: var(--accent-fond); color: var(--accent-texte); font: inherit; font-weight: 700; cursor: pointer; }
.comparateur__suggestions { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; font-size: .9rem; }
.comparateur__suggestions a { font-weight: 600; }

.duel { padding: 1.25rem 1rem; display: grid; gap: 1rem; }
.duel__haut { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .5rem; }
.duel__joueur { display: grid; justify-items: center; gap: .2rem; text-align: center; color: var(--texte); text-decoration: none; }
.duel__joueur:hover { text-decoration: none; }
.duel__photo { position: relative; display: grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; background: var(--surface-2); border: 4px solid var(--a); }
.duel__joueur--b .duel__photo { border-color: var(--b); }
.duel__photo > img:first-child:not(.duel__logo) { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.duel__logo { position: absolute; right: -6px; bottom: -6px; width: 36px; height: 36px; padding: 3px; border-radius: 50%; background: var(--surface); }
.duel__nom { font-family: var(--police-titre); font-size: clamp(1.2rem, 4vw, 1.8rem); font-weight: 800; text-transform: uppercase; line-height: 1.05; margin-top: .35rem; }
.duel__score { display: grid; grid-template-columns: auto auto auto; align-items: center; justify-items: center; gap: 0 .3rem; }
.duel__chiffre { font-family: var(--police-titre); font-size: clamp(2.4rem, 8vw, 3.6rem); font-weight: 800; color: var(--texte-2); line-height: 1; }
.duel__chiffre.est-gagnant { color: var(--a); }
.duel__chiffre--b.est-gagnant { color: var(--b); }
.duel__tiret { color: var(--texte-2); font-size: 1.6rem; }
.duel__legende { grid-column: 1 / -1; font-size: .72rem; }
.duel__verdict { margin: 0; text-align: center; font-weight: 700; font-size: 1.05rem; }

.duel__categories { list-style: none; margin: 0; padding: 0; display: grid; }
.duel__categories li { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) minmax(7rem, 12rem) minmax(0, 1fr) 4.2rem; align-items: center; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid var(--trait); }
.duel__categories li:last-child { border-bottom: 0; }
.duel__categories li.est-forte .duel__libelle { font-weight: 800; color: var(--texte); }
.duel__libelle { text-align: center; font-size: .85rem; color: var(--texte-2); font-weight: 600; line-height: 1.2; }
.duel__valeur { font-family: var(--police-titre); font-size: 1.35rem; font-weight: 800; color: var(--texte-2); }
.duel__valeur--a { text-align: left; }
.duel__valeur--b { text-align: right; }
.duel__valeur--a.est-gagnant { color: var(--a); }
.duel__valeur--b.est-gagnant { color: var(--b); }
.duel__barre { display: flex; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.duel__barre--a { justify-content: flex-end; }
.duel__barre > span { display: block; height: 100%; border-radius: 999px; background: color-mix(in srgb, var(--a) 75%, transparent); }
.duel__barre--b > span { background: color-mix(in srgb, var(--b) 75%, transparent); }
@media (max-width: 560px) {
    .duel__categories li { grid-template-columns: 3.6rem minmax(0, 1fr) 3.6rem; grid-template-areas: "a lib b" "ba ba bb"; row-gap: .3rem; }
    .duel__valeur--a { grid-area: a; } .duel__valeur--b { grid-area: b; } .duel__libelle { grid-area: lib; }
    .duel__barre--a { grid-area: ba; } .duel__barre--b { grid-area: bb; }
    .duel__categories li { grid-template-areas: "a lib b" "ba ba bb"; }
    .duel__photo { width: 84px; height: 84px; }
}
.duel__note { margin: 0; font-size: .78rem; }

.graphe__entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding-right: 1rem; }
.graphe__stats { display: flex; flex-wrap: wrap; gap: .3rem; }
.graphe__stats button { padding: .3rem .7rem; border: 1px solid var(--trait); border-radius: 999px; background: none; color: var(--texte); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.graphe__stats button[aria-selected="true"] { background: var(--accent-fond); color: var(--accent-texte); border-color: transparent; }
.graphe__legende { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .25rem 1rem .5rem; font-weight: 600; font-size: .9rem; }
.graphe__puce { width: 14px; height: 4px; border-radius: 2px; margin-left: .6rem; }
.graphe__puce:first-child { margin-left: 0; }
.graphe__puce--a { background: var(--a); } .graphe__puce--b { background: var(--b); }
.graphe { overflow-x: auto; padding: 0 1rem 1rem; }
.graphe svg { display: block; max-width: none; }
.graphe__grille { stroke: var(--trait); stroke-width: 1; }
.graphe__axe { fill: var(--texte-2); font-size: 11px; font-family: var(--police-texte); }
.graphe__ligne { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.graphe__ligne--a { stroke: var(--a); } .graphe__ligne--b { stroke: var(--b); }
.graphe__point { stroke: var(--surface); stroke-width: 2; }
.graphe__point--a { fill: var(--a); } .graphe__point--b { fill: var(--b); }

/* Duel des cotes (sur papier) */
.duel__titre { margin: 0; text-align: center; font-family: var(--police-titre); font-size: 1.4rem; font-weight: 800; text-transform: uppercase; }
.duel__score--seul { justify-self: center; }
.duel__groupe { margin: .4rem 0 -.5rem; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--texte-2); border-bottom: 2px solid var(--trait); padding-bottom: .3rem; }
