/* Lignes de résultats : fiche équipe (#sec-resultats) et « Mes matchs » de l'espace membre.
   Sorties de itsrugby-fiche-d.css le 22/10 (Félix : alléger Mes matchs, qui chargeait les 270 Ko
   de la fiche pour ces seules règles). Chargée juste après itsrugby-fiche-d.css sur la fiche. */
/* Module logo + nom (.fd-eq), de toutes les fiches refondues : compétition des lignes de résultats. */
.fd-eq { display: inline-flex; align-items: center; gap: 8px; }
.fd-eq-logo { display: inline-flex; flex: none; width: 20px; height: 20px; }
.fd-eq-logo picture { display: contents; }
.fd-eq-logo img { width: 100%; height: 100%; object-fit: contain; }
.fd-eq-nom { font-weight: 700; }
.fd-comp .fd-eq-nom { font-weight: 600; }
/* Résultats de la fiche équipe : mêmes règles que les résultats de la fiche compétition (#sec-matchs). */
/* ══ Résultats & calendrier (fiche compétition refondue) ════════════════
   Logos collés au score ; journées en bandeau clair (plus de grosses barres
   teal) ; chaîne TV en contour, pas en aplat. */
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .its-j-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 44px; padding: 0 14px; border: 0; box-shadow: inset 0 -1px 0 rgba(28, 61, 52, .14); background: #FBF6EE; color: var(--teal); font-size: 14px; font-weight: 800; letter-spacing: 0; text-transform: none; text-align: left; }
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .its-j-toggle.its-j-open { background: var(--white, #fff); box-shadow: inset 3px 0 0 var(--teal), inset 0 -1px 0 rgba(28, 61, 52, .14); }
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .its-j-arrow { font-size: 11px; color: var(--muted); }
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .its-j-group + .its-j-group { margin-top: 0; }
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .fd-mc-eq { display: inline-flex; align-items: center; gap: 8px; }
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .fd-mc-eq .fd-eq-logo { width: 22px; height: 22px; flex: none; }
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .fd-mc-eq .fd-eq-logo img { width: 100%; height: 100%; object-fit: contain; }
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-teams { font-size: 15px; }
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-score { font-size: 18px; }
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-diffuseur { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border: 1px solid rgba(28, 61, 52, .3); background: none; color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: 0; text-transform: none; }
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-venue,
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-meteo { color: var(--muted); }
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-diffuseur:has(> .match-placeholder:only-child) { border: 0; padding: 0; color: var(--border); }
/* Même hauteur que le haut de fiche joueur (Félix 11/10 : « un trou en haut »). */

/* Mobile : le logo ne chevauche plus le nom — plus petit, centré dans la
   photo, et le texte commence sous la photo (Félix 11/10 : « pas lisible »). */

/* Bandeau de journée détaché par une couleur (Félix 11/10) : sauge clair,
   texte teal ; la journée ouverte en sauge, trait teal à gauche. */
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .its-j-toggle { background: var(--sage-lt); box-shadow: inset 0 -1px 0 rgba(28, 61, 52, .14); }
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .its-j-toggle.its-j-open { background: var(--sage); box-shadow: inset 4px 0 0 var(--teal); color: var(--teal); }
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .its-j-toggle.its-j-open .its-j-arrow { color: var(--teal); }
@media (max-width: 680px) {
  :is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-teams { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; column-gap: 10px; row-gap: 6px; align-items: center; width: 100%; text-align: left; font-size: 15px; }
  :is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-teams .team-home,
  :is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-teams .team-away,
  :is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-teams .match-score,
  :is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-teams .match-score-link,
  :is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-teams .fd-mc-eq { display: contents; }
  :is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .fd-mc-eq--dom .fd-eq-logo { grid-column: 1; grid-row: 1; }
  :is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .fd-mc-eq--dom .fd-mc-nom { grid-column: 2; grid-row: 1; }
  :is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-teams .score-home { grid-column: 3; grid-row: 1; justify-self: end; }
  :is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .fd-mc-eq--ext .fd-eq-logo { grid-column: 1; grid-row: 2; }
  :is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .fd-mc-eq--ext .fd-mc-nom { grid-column: 2; grid-row: 2; }
  :is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-teams .score-away { grid-column: 3; grid-row: 2; justify-self: end; }
  :is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-teams .match-score-link { font-size: 0; }
  :is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-teams .score-home,
  :is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-teams .score-away { font-size: 17px; font-variant-numeric: tabular-nums; }
  :is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-teams .match-vs { grid-column: 3; grid-row: 1 / span 2; align-self: center; font-size: 12px; }
  :is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .fd-mc-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 680px) {
  :is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .fd-mc-nom { justify-self: start; text-align: left; font-weight: 800; color: var(--teal); }
  :is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .fd-mc-eq.is-perdant .fd-mc-nom { font-weight: 600; color: var(--muted); }
}
/* Résultats de la fiche équipe : compétition en texte + logo (pas d'aplat
   teal), noms sans soulignement, lettre de résultat en pastille. */
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-competition { display: inline-flex; align-items: center; margin-bottom: 4px; padding: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; }
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-competition a { color: var(--muted); text-decoration: none; }
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-competition .fd-eq-logo { width: 16px; height: 16px; }
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-competition .fd-eq-logo img { width: 100%; height: 100%; object-fit: contain; }
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .fd-mc-nom a { color: inherit; text-decoration: none; }
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .fd-mc-nom a:hover { text-decoration: underline; text-underline-offset: 3px; }
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .fd-mc-eq.is-perdant .fd-mc-nom { color: var(--muted); font-weight: 600; }
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .fd-mc-eq:not(.is-perdant) .fd-mc-nom { font-weight: 800; color: var(--teal); }
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-result-letter { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: 8px; box-sizing: border-box; border: 1px solid; font-size: 12px; font-weight: 800; vertical-align: middle; }
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-result-letter--win { background: var(--teal); border-color: var(--teal); color: var(--vanilla); }
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-result-letter--draw { background: none; border-color: var(--teal); color: var(--teal); }
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-result-letter--loss { background: none; border-color: rgba(28, 61, 52, .3); color: var(--muted); }

/* Le « V » collé au score faisait croire que l'adversaire avait gagné (Félix
   11/10) : plus de lettre ; le résultat du club se lit par un trait à gauche
   de la carte (teal = victoire, sauge = nul, rien = défaite) et le vainqueur en gras. */
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-result-letter { display: none; }
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-card[data-result="win"] { box-shadow: inset 4px 0 0 var(--teal); }
:is(body.its-fiche-d #sec-resultats, .its-mes-matchs) .match-card[data-result="draw"] { box-shadow: inset 4px 0 0 var(--sage); }
