/* ============================================================
   COMPO ÉQUIPE (js/pages/compo-equipe.js)
   ============================================================
   Le carrousel des matchs reprend celui de Match CO (p-matchs.css,
   .mt-cf-*), la feuille de match un terrain comme l'Effectif. */

.ce { --v: #36d27a; --d: #ff5a63; --n: #f5c451; --co: #4a83ff; }
.ce-cf { margin: 4px 0 18px; }

/* ---------------- La page de garde ---------------- */
.ce-garde {
  position: relative; overflow: hidden; isolation: isolate; margin: 6px 0 10px;
  padding: clamp(28px, 4.4vw, 52px) clamp(14px, 3vw, 40px) clamp(22px, 3vw, 36px);
  border-radius: 30px; border: 1px solid var(--ligne-2); box-shadow: 0 50px 120px -60px rgba(47, 107, 255, .8);
  background:
    linear-gradient(180deg, rgba(7, 16, 44, .84) 0%, rgba(6, 14, 38, .93) 34%, rgba(4, 9, 26, .97) 62%),
    url("/media/marque/stade.webp") center 22% / cover no-repeat, #06122e;
}
/* Deux halos qui dérivent, comme la garde de Vision 26-27. */
.ce-garde-fond { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ce-garde-fond i { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; will-change: transform; }
.ce-garde-fond i:first-child { left: -25%; top: -40%; background: radial-gradient(circle, rgba(127, 179, 224, .22), transparent 62%); animation: ce-derive 22s ease-in-out infinite alternate; }
.ce-garde-fond i:last-child { right: -28%; bottom: -50%; background: radial-gradient(circle, rgba(245, 196, 81, .1), transparent 60%); animation: ce-derive 27s ease-in-out infinite alternate-reverse; }
@keyframes ce-derive { to { transform: translate3d(12%, 8%, 0) scale(1.08); } }
.ce-garde-corps { max-width: 760px; margin: 0 auto; text-align: center; }
.ce-garde-logo { width: clamp(70px, 7vw, 96px); margin: 0 auto 14px; filter: drop-shadow(0 18px 40px rgba(47, 107, 255, .55)); animation: flotte 5s ease-in-out infinite; }
.ce-garde-sur { font-size: 11.5px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--texte-2); }
/* Le haut de la boîte laisse la place à l'accent du É : avec un fond
   découpé sur le texte, ce qui dépasse de la boîte ne se voit pas. */
.ce-garde-t { margin: 0 0 6px; padding-top: .16em; font: 600 clamp(40px, 6.4vw, 84px)/.92 var(--titre); letter-spacing: .01em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff 40%, #a9c4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ce-garde-ss { font-size: clamp(14px, 1.6vw, 19px); font-weight: 300; letter-spacing: .22em; text-transform: uppercase; color: rgba(238, 243, 255, .88); }
.ce-garde-chiffres { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 1px; margin: 22px auto 0; overflow: hidden; border-radius: 18px; border: 1px solid var(--ligne-2); background: var(--ligne-2); }
.ce-garde-chiffres > div { min-width: 112px; padding: 10px 18px 9px; background: rgba(5, 12, 34, .82); }
.ce-garde-chiffres b { display: block; font: 600 30px/1 var(--titre); }
.ce-garde-chiffres span { display: block; margin-top: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--texte-3); }
.ce-garde-chiffres .est-v b { color: #6ff0a6; }
.ce-garde-chiffres .est-d b { color: #ff9aa0; }

.ce-top-t { display: grid; justify-items: center; gap: 4px; margin: clamp(30px, 4vw, 46px) 0 6px; text-align: center; }
.ce-top-t span { display: flex; align-items: center; gap: 14px; font: 600 clamp(17px, 2vw, 22px) var(--titre); letter-spacing: .14em; text-transform: uppercase; color: var(--or); }
.ce-top-t span::before, .ce-top-t span::after { content: ""; width: clamp(28px, 6vw, 90px); height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(245, 196, 81, .7)); }
.ce-top-t span::after { transform: scaleX(-1); }
.ce-top-t small { font-size: 12px; color: var(--texte-3); }

/* Le podium : 4, 2, 1, 3, 5 ; les marches et les photos montent vers le n° 1. */
.ce-podium { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: clamp(8px, 1.2vw, 16px); max-width: 1180px; margin: 0 auto; }
.ce-star { --c: 143, 179, 255; --ph: 188px; --sh: 0px; position: relative; display: flex; flex-direction: column; min-width: 0; cursor: pointer; outline: none; }
.ce-star.est-r1 { --c: 245, 196, 81; --ph: 250px; --sh: 46px; }
.ce-star.est-r2 { --c: 214, 224, 240; --ph: 222px; --sh: 24px; }
.ce-star.est-r3 { --c: 230, 152, 92; --ph: 210px; --sh: 14px; }
.ce-star-photo { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-end; height: var(--ph); margin-bottom: -22px; pointer-events: none; }
.ce-star-photo::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: 8%; height: 70%; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--c), .38), transparent); transition: opacity .4s; opacity: .8; }
.ce-star-photo img { position: relative; height: 100%; max-width: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .55)); transition: transform .5s var(--ressort); }
.ce-star.est-vu .ce-star-photo { animation: ce-monte .9s var(--ressort) both; animation-delay: calc(220ms + var(--d, 0) * 110ms); }
@keyframes ce-monte { from { opacity: 0; transform: translate3d(0, 30px, 0) scale(.94); } }
.ce-star-ini { position: relative; display: grid; place-items: center; width: 64%; aspect-ratio: 1; margin-bottom: 34px; border-radius: 50%; font: 600 clamp(30px, 3.4vw, 46px) var(--titre); color: rgba(var(--c), 1); background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .12), rgba(5, 12, 34, .9)); border: 2px solid rgba(var(--c), .5); }
.ce-star-socle {
  position: relative; overflow: hidden; display: grid; gap: 7px; min-height: calc(258px + var(--sh)); padding: 30px 14px 14px; align-content: start; text-align: center;
  border-radius: 20px 20px 16px 16px; border: 1px solid rgba(var(--c), .3); box-shadow: 0 30px 60px -36px rgba(var(--c), .6), inset 0 1px 0 rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(var(--c), .17), rgba(8, 18, 48, .94) 42%, rgba(5, 11, 30, .97));
  transition: border-color .3s, box-shadow .4s, transform .4s var(--ressort);
}
.ce-star-socle::before { content: ""; position: absolute; left: 18%; right: 18%; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: rgba(var(--c), .9); box-shadow: 0 0 18px rgba(var(--c), .8); }
.ce-star-rang { position: absolute; right: -4px; bottom: -44px; font: 600 150px/1 var(--titre); font-style: normal; color: transparent; -webkit-text-stroke: 1.5px rgba(var(--c), .14); pointer-events: none; }
.ce-star-medaille { justify-self: center; padding: 3px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--c), 1); background: rgba(var(--c), .12); border: 1px solid rgba(var(--c), .3); }
.ce-star-nom { position: relative; min-width: 0; }
.ce-star-nom small { display: block; font-size: 12.5px; color: var(--texte-2); }
.ce-star-nom b { display: block; font: 600 clamp(17px, 1.7vw, 22px)/1.05 var(--titre); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ce-star-poste { position: relative; font-size: 11.5px; color: var(--texte-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ce-star-poste i { display: inline-grid; place-items: center; min-width: 22px; height: 20px; margin-right: 6px; border-radius: 6px; font: 600 11.5px var(--titre); font-style: normal; color: #0b3d1e; background: #fff; }
.ce-star-min { position: relative; margin-top: 2px; }
.ce-star-min b { display: block; font: 600 clamp(36px, 3.6vw, 48px)/1 var(--titre); color: #fff; text-shadow: 0 0 26px rgba(var(--c), .45); }
.ce-star-min span { font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--texte-3); }
.ce-star-stats { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 7px 0; border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.ce-star-stats > div + div { border-left: 1px solid var(--ligne); }
.ce-star-stats b { display: block; font: 600 17px/1.1 var(--titre); }
.ce-star-stats b small { font-size: 11px; color: var(--texte-3); }
.ce-star-stats span { font-size: 10.5px; font-weight: 700; color: var(--texte-3); }
.ce-star-util { position: relative; display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); }
.ce-star-util .ce-jauge { flex: 1; width: auto; }
.ce-star-util b { font-size: 12.5px; letter-spacing: 0; color: var(--texte); }
.ce-star:hover .ce-star-photo img, .ce-star:focus-visible .ce-star-photo img { transform: translate3d(0, -8px, 0) scale(1.03); }
.ce-star:hover .ce-star-photo::before { opacity: 1; }
.ce-star:hover .ce-star-socle, .ce-star:focus-visible .ce-star-socle { border-color: rgba(var(--c), .7); box-shadow: 0 36px 70px -34px rgba(var(--c), .85), inset 0 1px 0 rgba(255, 255, 255, .1); }

/* Les deux portes : Vision Match et Vision Bilan. */
.ce-portes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 1180px; margin: clamp(30px, 4vw, 44px) auto 0; }
.ce-porte {
  position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; isolation: isolate; border-radius: 24px;
  background: linear-gradient(170deg, rgba(10, 24, 60, .85), rgba(4, 9, 26, .9)); border: 1px solid rgba(143, 179, 255, .2);
  transition: transform .4s var(--ressort), border-color .3s, box-shadow .4s, opacity .7s var(--doux);
}
.ce-porte:hover { transform: translate3d(0, -4px, 0); border-color: rgba(143, 179, 255, .5); box-shadow: 0 30px 70px -34px rgba(47, 107, 255, .85); }
.ce-porte.apparait:not(.est-vu) { transform: translate3d(0, 18px, 0); }
.ce-porte-vue { position: relative; overflow: hidden; aspect-ratio: 2.1; container-type: inline-size; }
.ce-porte-vue::after { content: ""; position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(transparent, rgba(4, 9, 26, .6)); pointer-events: none; }
/* Le terrain 3D (le XV du dernier match), dans le sens de la longueur. */
.ce-porte.est-match .ce-porte-vue { background: radial-gradient(70% 90% at 55% 45%, rgba(54, 210, 122, .2), transparent 70%), radial-gradient(60% 60% at 20% 0%, rgba(127, 179, 224, .18), transparent 70%), linear-gradient(160deg, #0b1a44, #040a20); }
.ce-t3d { position: absolute; left: 47%; top: 51%; width: 82%; aspect-ratio: 992 / 587; transform: translate3d(-50%, -50%, 0); transition: transform .7s var(--doux); }
.ce-t3d-fond { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .55)) saturate(1.08); }
.ce-p3d { position: absolute; width: calc(4.7cqw * var(--s)); transform: translate3d(-50%, -100%, 0); transition: transform .45s var(--ressort); }
/* L'ombre au sol, sous les pieds. */
.ce-p3d::after { content: ""; position: absolute; left: 50%; top: 100%; width: 90%; height: 26%; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); }
.ce-p3d span { position: relative; z-index: 1; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: rgba(4, 12, 30, .9); border: 2px solid #fff; box-shadow: 0 6px 12px -4px rgba(0, 0, 0, .7); }
.ce-p3d img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; transform: scale(1.55) translateY(14%); }
.ce-p3d em { font: 600 max(10px, calc(1.9cqw * var(--s))) var(--titre); font-style: normal; }
.ce-p3d b { position: absolute; z-index: 2; left: 50%; bottom: -3px; transform: translateX(-50%); min-width: 15px; padding: 0 3px; border-radius: 5px; font: 600 max(9px, calc(1.45cqw * var(--s)))/1.35 var(--titre); text-align: center; color: #fff; background: var(--bleu); box-shadow: 0 3px 8px -2px rgba(0, 0, 0, .7); }
.ce-porte.est-match:hover .ce-t3d { transform: translate3d(-50%, -50%, 0) scale(1.04); }
.ce-porte.est-match:hover .ce-p3d { transform: translate3d(-50%, calc(-100% - 4px), 0); }
/* En bas à droite : le vide sous la touche, loin des joueurs. */
.ce-porte-dernier { position: absolute; z-index: 1; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 9px; max-width: calc(100% - 24px); padding: 5px 6px 5px 5px; border-radius: 14px; background: rgba(4, 10, 28, .78); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px); }
.ce-porte-dernier img { flex: none; width: 30px; height: 30px; padding: 3px; border-radius: 9px; background: #fff; object-fit: contain; }
.ce-porte-dernier span { min-width: 0; display: grid; }
.ce-porte-dernier b { font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ce-porte-dernier small { font-size: 10.5px; color: var(--texte-3); }
.ce-porte-dernier em { flex: none; padding: 4px 9px; border-radius: 9px; font: 600 15px var(--titre); font-style: normal; background: rgba(255, 255, 255, .08); }
.ce-porte-dernier em.est-v { color: #a9f0c6; background: rgba(54, 210, 122, .18); }
.ce-porte-dernier em.est-d { color: #ffc0c4; background: rgba(255, 90, 99, .18); }

.ce-porte.est-bilan .ce-porte-vue { background: radial-gradient(90% 120% at 0% 0%, rgba(47, 107, 255, .22), transparent 60%), linear-gradient(160deg, #0b1a44, #050b22); }
.ce-mini-bilan { position: absolute; inset: 4cqw 4.5cqw; display: grid; align-content: center; gap: .55cqw; }
.ce-mb-ligne { display: grid; grid-template-columns: 24% repeat(var(--n), minmax(0, 1fr)); gap: .55cqw; align-items: center; }
.ce-mb-ligne span { font-size: max(9px, 1.75cqw); font-weight: 800; color: var(--texte-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ce-mb-ligne em { font-size: max(8px, 1.5cqw); font-weight: 800; font-style: normal; text-align: center; color: var(--texte-3); }
.ce-mb-ligne i { height: 3.1cqw; border-radius: 4px; transition: filter .4s, transform .4s var(--ressort); }
.ce-mb-ligne i.est-tit { background: rgba(74, 131, 255, calc(.18 + var(--p) * .82)); }
.ce-mb-ligne i.est-rempl { background: rgba(245, 196, 81, calc(.2 + var(--p) * .8)); }
.ce-mb-ligne i.est-absent { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 3px, transparent 3px 6px); }
.ce-porte.est-bilan:hover .ce-mb-ligne i { filter: brightness(1.25) saturate(1.15); }
.ce-porte.est-bilan:hover .ce-mb-ligne i.est-tit, .ce-porte.est-bilan:hover .ce-mb-ligne i.est-rempl { transform: scaleY(1.12); }

.ce-porte-txt { display: grid; gap: 4px; padding: 16px 64px 18px 20px; }
.ce-porte-txt b { font: 600 24px/1 var(--titre); text-transform: uppercase; letter-spacing: .04em; }
.ce-porte-txt > span { font-size: 13.5px; line-height: 1.45; color: var(--texte-2); }
.ce-porte-puces { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; }
.ce-porte-puces em { font-style: normal; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; color: var(--texte-2); background: rgba(255, 255, 255, .06); border: 1px solid var(--ligne); }
.ce-porte-puces em.est-v { color: #a9f0c6; background: rgba(54, 210, 122, .14); border-color: rgba(54, 210, 122, .3); }
.ce-porte-puces em.est-d { color: #ffc0c4; background: rgba(255, 90, 99, .14); border-color: rgba(255, 90, 99, .3); }
.ce-porte-fleche { position: absolute; right: 18px; bottom: 20px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(47, 107, 255, .2); border: 1px solid rgba(143, 179, 255, .35); color: #fff; transition: transform .35s var(--ressort), background .25s; }
.ce-porte-fleche svg { width: 18px; height: 18px; }
.ce-porte:hover .ce-porte-fleche { transform: translate3d(4px, 0, 0); background: var(--bleu); }

/* ---------------- Vision Match / Vision Bilan : le retour et la bascule ---------------- */
.ce-haut { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 4px; }
.ce-retour {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px 6px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 750; color: var(--texte-2); background: rgba(255, 255, 255, .06); border: 1px solid var(--ligne);
  transition: color .2s, background .2s, border-color .2s;
}
.ce-retour svg { width: 15px; height: 15px; transition: transform .25s var(--doux); }
.ce-retour:hover { color: #fff; background: rgba(47, 107, 255, .22); border-color: rgba(143, 179, 255, .4); }
.ce-retour:hover svg { transform: translateX(-3px); }
.ce-vues { display: inline-flex; gap: 3px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--ligne); }
.ce-vues a { padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: var(--texte-2); transition: color .2s, background .2s; }
.ce-vues a:hover { color: #fff; }
.ce-vues a.est-actif { color: #fff; background: var(--bleu); box-shadow: 0 8px 20px -10px rgba(47, 107, 255, .9); }

/* ---------------- La feuille du match ---------------- */
.ce-match-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 14px; }
.ce-chiffres { display: flex; flex-wrap: wrap; gap: 1px; overflow: hidden; border-radius: 16px; border: 1px solid var(--ligne); background: var(--ligne); }
.ce-chiffres > div { flex: 1 1 150px; min-width: 150px; padding: 11px 16px; background: rgba(5, 10, 28, .82); }
.ce-chiffres span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--texte-3); }
.ce-chiffres b { display: block; margin-top: 3px; font: 600 28px/1 var(--titre); }
.ce-chiffres small { display: block; margin-top: 4px; font-size: 11.5px; color: var(--texte-3); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ce-feuille { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; align-items: start; margin: 0 0 30px; }
.ce-terrain {
  position: relative; display: grid; gap: 14px; padding: 26px 20px; border-radius: 26px; overflow: hidden;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 9.09%, transparent 9.09% 18.18%), radial-gradient(120% 80% at 50% 0%, #10632f 0%, #0b4a24 55%, #072f17 100%);
  border: 1px solid rgba(132, 230, 160, .18); box-shadow: inset 0 0 120px rgba(0, 0, 0, .5), var(--ombre);
}
.ce-terrain::before { content: ""; position: absolute; inset: 14px; border: 2px solid rgba(255, 255, 255, .15); border-radius: 14px; pointer-events: none; }
.ce-rangee { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 210px)); justify-content: center; gap: 12px; }
.ce-banc { display: grid; gap: 8px; padding: 16px; border-radius: 22px; border: 1px solid var(--ligne); background: var(--surface); }
.ce-banc h3 { margin: 0 0 4px; font: 600 15px var(--titre); text-transform: uppercase; letter-spacing: .08em; color: var(--texte-2); }

.ce-pion {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 10px 7px 7px; border-radius: 14px;
  background: rgba(4, 12, 30, .8); border: 1px solid rgba(255, 255, 255, .08); transition: transform .3s var(--ressort), border-color .2s, background .2s;
}
.ce-pion[data-joueur] { cursor: pointer; }
.ce-pion[data-joueur]:hover { transform: translate3d(0, -2px, 0); background: rgba(14, 30, 72, .95); border-color: rgba(143, 179, 255, .45); }
.ce-pion.est-zero { opacity: .5; }
.ce-pion.est-vide { opacity: .35; }
.ce-av { position: relative; flex: none; width: 42px; height: 42px; border-radius: 12px; overflow: visible; display: grid; place-items: center; background: rgba(255, 255, 255, .07); font: 600 14px var(--titre); color: var(--texte-3); }
.ce-av img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; object-position: 50% 15%; }
.ce-av b { position: absolute; left: -6px; top: -6px; min-width: 20px; height: 20px; padding: 0 4px; display: grid; place-items: center; border-radius: 7px; font: 600 12px var(--titre); color: #0b3d1e; background: #fff; box-shadow: 0 4px 10px -3px rgba(0, 0, 0, .6); }
.ce-pion.est-banc .ce-av b { color: #fff; background: var(--bleu); }
.ce-pion-c { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ce-pion-c > b { font-size: 12.5px; font-weight: 800; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ce-barre { height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.ce-barre i { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: 3px; background: linear-gradient(90deg, #2f6bff, #8fb3ff); }
.ce-pion.est-banc .ce-barre i { background: linear-gradient(90deg, #f5c451, #ffd98a); }
.ce-pion-c small { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--texte-3); }
.ce-pion-c small strong { color: var(--texte); font-weight: 800; }
.ce-pion-c em { font-style: normal; font-weight: 750; }
.ce-pion-c em.est-sortie { color: #ff8d93; }
.ce-pion-c em.est-entree { color: #6ff0a6; }
.ce-carton { width: 8px; height: 11px; border-radius: 2px; background: #f5c451; }
.ce-carton.est-o { background: var(--orange); }
.ce-carton.est-r { background: var(--rouge); }

/* ---------------- Le bloc de matchs et le tableau ---------------- */
.ce-outils { display: grid; gap: 12px; margin: 0 0 16px; }
.ce-puces { display: flex; flex-wrap: wrap; gap: 8px; }
.ce-puce {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--ligne); background: var(--surface);
  opacity: .5; filter: saturate(.4); transition: opacity .2s, filter .2s, border-color .2s;
}
.ce-puce img { width: 26px; height: 26px; padding: 3px; border-radius: 50%; background: #fff; object-fit: contain; }
.ce-puce b { font: 600 14px var(--titre); }
.ce-puce.est-actif { opacity: 1; filter: none; border-color: rgba(143, 179, 255, .5); background: rgba(47, 107, 255, .14); }
.ce-puce.est-actif.est-v { box-shadow: inset 0 -2px 0 var(--v); }
.ce-puce.est-actif.est-d { box-shadow: inset 0 -2px 0 var(--d); }
.ce-puce.est-actif.est-n { box-shadow: inset 0 -2px 0 var(--n); }

.ce-defile { overflow-x: auto; border-radius: 18px; border: 1px solid var(--ligne); background: var(--surface); }
.ce-table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ce-table th { position: sticky; top: 0; padding: 10px 7px; text-align: right; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-3); background: #081230; cursor: pointer; white-space: nowrap; user-select: none; }
.ce-table th:first-child, .ce-table th:nth-child(2) { text-align: left; }
.ce-table th.est-tri { color: var(--texte); }
.ce-table th.est-tri::after { content: " ▾"; color: var(--or); }
.ce-table th.est-tri.est-asc::after { content: " ▴"; }
.ce-table th.ce-th-matchs { cursor: default; text-align: left; }
.ce-table td { padding: 7px 7px; text-align: right; border-top: 1px solid var(--ligne); white-space: nowrap; }
.ce-table td small { color: var(--texte-3); }
.ce-table tbody tr[data-joueur] { cursor: pointer; }
.ce-table tbody tr:hover td { background: rgba(47, 107, 255, .08); }
/* Le nom reste à l'écran quand le tableau défile de côté. */
.ce-td-nom { position: sticky; left: 0; z-index: 1; text-align: left !important; background: #0a1531; }
/* Le flex dans la cellule, jamais sur la cellule : un td en flex sort du
   tableau et décale la ligne. */
.ce-td-nom .ce-cel { display: flex; align-items: center; gap: 10px; }
.ce-table th:first-child { left: 0; z-index: 2; }
.ce-td-nom b { font-weight: 800; }
.ce-av-mini { flex: none; width: 30px; height: 30px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; background: rgba(255, 255, 255, .07); font: 600 11px var(--titre); color: var(--texte-3); }
.ce-av-mini img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.ce-td-poste { text-align: left !important; color: var(--texte-3); }
.ce-td-poste i { display: inline-grid; place-items: center; min-width: 24px; height: 22px; margin-right: 7px; border-radius: 7px; font: 600 12px var(--titre); font-style: normal; color: #0b3d1e; background: #fff; }
.ce-td-min { font-weight: 800; color: var(--texte); }
.ce-pct { color: var(--texte-2); }
.ce-td-util .ce-cel { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.ce-td-util b { min-width: 42px; text-align: right; }
.ce-td-util.est-terrain .ce-jauge i { background: linear-gradient(90deg, #f5c451, #36d27a); }
.ce-jauge { width: 60px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ce-jauge i { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: 4px; background: linear-gradient(90deg, #2f6bff, #36d27a); }
.ce-td-matchs { text-align: left !important; }
.ce-bande { display: grid; grid-template-columns: repeat(var(--n), 12px); gap: 3px; align-items: end; height: 26px; }
.ce-bande i { position: relative; display: block; height: 26px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.ce-bande i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--p, 0) * 100%); border-radius: 4px; }
.ce-bande i.est-tit::after { background: linear-gradient(180deg, #8fb3ff, #2f6bff); }
.ce-bande i.est-rempl::after { background: linear-gradient(180deg, #ffd98a, #f5c451); }
.ce-bande i.est-zero { box-shadow: inset 0 0 0 1px rgba(245, 196, 81, .5); }
.ce-bande i.est-absent { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 3px, transparent 3px 6px); }
.ce-legende { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 4px 0; font-size: 12px; color: var(--texte-3); }
.ce-legende span { display: inline-flex; align-items: center; gap: 7px; }
.ce-legende span.est-tit::before, .ce-legende span.est-rempl::before, .ce-legende span.est-absent::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
.ce-legende .est-tit::before { background: #2f6bff; }
.ce-legende .est-rempl::before { background: #f5c451; }
.ce-legende .est-absent::before { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .25) 0 2px, transparent 2px 4px); }

@media (max-width: 1100px) {
  .ce-feuille { grid-template-columns: 1fr; }
  .ce-banc { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .ce-banc h3 { grid-column: 1 / -1; }
}
/* Le podium devient une liste, du n° 1 au n° 5, la photo à droite. */
@media (max-width: 880px) {
  .ce-podium { grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 560px; }
  .ce-star { order: var(--rang); display: grid; grid-template-columns: minmax(0, 1fr) 122px; }
  .ce-star-photo { grid-column: 2; grid-row: 1; height: 172px; margin: 0; align-self: end; }
  .ce-star-ini { width: 82px; margin: 0 0 22px; font-size: 28px; }
  .ce-star-socle { grid-column: 1 / -1; grid-row: 1; min-height: 0; padding: 16px 128px 14px 16px; text-align: left; }
  .ce-star-socle::before { left: 16px; right: auto; width: 64px; }
  .ce-star-medaille { justify-self: start; }
  .ce-star-rang { font-size: 124px; bottom: -26px; right: 6px; }
  .ce-star-stats > div { text-align: center; }
  .ce-portes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ce-garde { border-radius: 22px; }
  .ce-garde-chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .ce-garde-chiffres > div { min-width: 0; }
  .ce-porte-txt { padding: 14px 60px 16px 16px; }
  .ce-porte-txt b { font-size: 21px; }
  .ce-terrain { padding: 20px 10px; }
  .ce-rangee { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; }
  .ce-pion { flex-direction: column; align-items: center; text-align: center; padding: 8px 4px; gap: 6px; }
  .ce-pion-c small { justify-content: center; flex-wrap: wrap; gap: 4px; }
  .ce-banc .ce-pion { flex-direction: row; text-align: left; }
}
