.ml-main{max-width:1180px;margin:0 auto;padding:16px}
.ml-ariane ol{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0 0 12px;padding:0;font-size:14px}
.ml-ariane li+li::before{content:"›";margin-right:6px;opacity:.6}
.ml-date{opacity:.7;font-size:14px;margin-top:-6px}
.ml-grille{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:32px;align-items:start}
.ml-fiche{border:1px solid currentColor;border-color:rgba(127,127,127,.35);padding:16px}
.ml-fiche img{display:block;margin:0 auto 12px;max-width:100%;height:auto}
.ml-fiche dl{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:0;font-size:14px}
.ml-fiche dt{opacity:.7}.ml-fiche dd{margin:0}
.ml-liste-news{list-style:none;margin:0;padding:0}
.ml-liste-news li{padding:12px 0;border-bottom:1px solid rgba(127,127,127,.25)}
.ml-liste-news h2{font-size:20px;margin:0 0 4px}
.ml-autres{margin-top:32px}
.ml-cartes{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:16px;list-style:none;margin:0 0 24px;padding:0}
.ml-carte a{display:flex;flex-direction:column;gap:4px;text-decoration:none;color:inherit}
.ml-carte img{width:100%;height:auto;aspect-ratio:139/181;object-fit:cover}
.ml-carte-nom{font-weight:700}.ml-carte-txt{font-size:14px;opacity:.8}
.ml-clubs{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;list-style:none;padding:0}
.ml-clubs a{display:grid;grid-template-columns:48px 1fr;column-gap:12px;align-items:center;text-decoration:none;color:inherit;padding:8px;border:1px solid rgba(127,127,127,.25)}
.ml-clubs img{grid-row:span 2}.ml-clubs small{opacity:.7}
.ml-logo{vertical-align:middle;margin-right:10px}
@media(max-width:760px){.ml-grille{grid-template-columns:minmax(0,1fr)}.ml-fiche{order:-1}}

/* ============ Horoscope du foot [ml_horoscope] ============
   Reprend les couleurs, polices, bordures et ombres du thème Mercatoland (variables CSS),
   avec des valeurs de repli si le shortcode est utilisé sous un autre thème. */
.ml-horoscope{margin:40px 0;color:var(--ink,#111)}
.ml-horoscope .ml-horoscope__tete{margin:0 0 26px}
.ml-horoscope .ml-horoscope__titre{display:inline-block;margin:0;padding:10px 16px 8px;background:var(--ink,#111);color:var(--yellow,#ffe14a);box-shadow:6px 6px 0 var(--red,#ff3d2e);font:400 clamp(30px,4vw,46px)/1.05 var(--f-titre,Impact,"Arial Narrow Bold",sans-serif);text-transform:uppercase;transform:rotate(-1deg)}
.ml-horoscope .ml-horoscope__semaine{display:inline-block;margin:18px 0 0;padding:6px 10px 5px;background:var(--white,#fff);border:var(--border,3px solid #111);box-shadow:var(--sh-sm,3px 3px 0 #111);font:700 13px/1.3 var(--f-mono,ui-monospace,Consolas,monospace);text-transform:uppercase}
.ml-horoscope--sans-titre .ml-horoscope__semaine{margin-top:0}
.ml-horoscope .ml-horoscope__apercu{margin:10px 0 0;color:var(--red,#ff3d2e);font:700 12px/1.3 var(--f-mono,ui-monospace,Consolas,monospace)}
.ml-horoscope .ml-horoscope__grille{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:0;padding:0;list-style:none}
.ml-horoscope .ml-horoscope__signe{display:flex;flex-direction:column;margin:0;padding:0;background:var(--white,#fff);border:var(--border,3px solid #111);box-shadow:var(--sh,6px 6px 0 #111)}
.ml-horoscope .ml-horoscope__signe::before{content:none}
.ml-horoscope__signe--feu{--ml-signe:var(--orange,#ff9f1c)}
.ml-horoscope__signe--terre{--ml-signe:var(--green,#4dea8a)}
.ml-horoscope__signe--air{--ml-signe:var(--cyan,#4fd8ff)}
.ml-horoscope__signe--eau{--ml-signe:var(--violet,#b48cff)}
.ml-horoscope .ml-horoscope__entete{display:flex;align-items:center;gap:12px;padding:12px 14px;background-color:var(--ml-signe);background-image:radial-gradient(rgba(17,17,17,.16) 1.2px,transparent 1.2px);background-size:9px 9px;border-bottom:var(--border,3px solid #111)}
.ml-horoscope .ml-horoscope__symbole{display:grid;flex:none;place-items:center;width:48px;height:48px;background:var(--white,#fff);border:var(--border,3px solid #111);box-shadow:var(--sh-sm,3px 3px 0 #111);font:400 28px/1 "Segoe UI Symbol","Noto Sans Symbols 2","Apple Symbols","DejaVu Sans",sans-serif;transform:rotate(-4deg)}
.ml-horoscope .ml-horoscope__nom{margin:0;font:400 27px/1 var(--f-titre,Impact,"Arial Narrow Bold",sans-serif);text-transform:uppercase}
.ml-horoscope .ml-horoscope__dates{margin:5px 0 0;font:700 11px/1.2 var(--f-mono,ui-monospace,Consolas,monospace);text-transform:uppercase}
.ml-horoscope .ml-horoscope__phrase{flex:1;margin:0;padding:14px 16px 16px;font-size:16px;line-height:1.5}
.ml-horoscope .ml-horoscope__entete{position:relative;padding-right:100px}
.ml-horoscope .ml-horoscope__partage{position:absolute;top:10px;right:10px;display:flex;flex-direction:column;align-items:center;gap:4px;padding:5px 7px 6px;background:var(--white,#fff);color:var(--ink,#111);border:2px solid var(--ink,#111);box-shadow:2px 2px 0 var(--ink,#111);text-decoration:none;transition:transform .1s ease-out,box-shadow .1s ease-out,background .1s ease-out}
.ml-horoscope .ml-horoscope__partage:hover{background:var(--ink,#111);color:var(--white,#fff);box-shadow:3px 3px 0 var(--red,#ff3d2e);transform:translate(-1px,-1px)}
.ml-horoscope .ml-horoscope__partage:active{box-shadow:none;transform:translate(2px,2px)}
.ml-horoscope .ml-horoscope__partage-txt{font:700 9px/1 var(--f-mono,ui-monospace,Consolas,monospace);letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
.ml-horoscope .ml-horoscope__partage:focus-visible{outline:3px solid var(--red,#ff3d2e);outline-offset:2px}
.ml-horoscope .ml-horoscope__signe:target{outline:4px solid var(--red,#ff3d2e);outline-offset:4px}
@media (max-width:767.98px){
  .ml-horoscope .ml-horoscope__grille{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .ml-horoscope .ml-horoscope__signe{box-shadow:var(--sh-sm,3px 3px 0 #111)}
  .ml-horoscope .ml-horoscope__entete{flex-direction:column;align-items:flex-start;gap:8px;padding:10px}
  .ml-horoscope .ml-horoscope__partage{top:8px;right:8px;gap:3px;padding:4px 5px 5px}
  .ml-horoscope .ml-horoscope__partage-txt{font-size:8px;letter-spacing:0}
  .ml-horoscope .ml-horoscope__symbole{width:38px;height:38px;font-size:22px}
  .ml-horoscope .ml-horoscope__nom{font-size:21px}
  .ml-horoscope .ml-horoscope__dates{font-size:10px}
  .ml-horoscope .ml-horoscope__phrase{padding:10px 10px 12px;font-size:14px;line-height:1.45}
}

/* ============ Mercato Match [ml_swipe] ============
   Pile de cartes à swiper. Même principe que l'horoscope : variables du thème, valeurs de repli. */
.ml-swipe{max-width:460px;margin:40px auto;color:var(--ink,#111);text-align:center}
/* La carte qui s'envole sort de l'écran : pas de barre de défilement horizontale pour autant (clip garde le sticky). */
body:has(.ml-swipe){overflow-x:clip}
.ml-swipe .ml-swipe__tete{margin:0 0 30px}
.ml-swipe .ml-swipe__titre{display:inline-block;margin:0 0 20px;padding:10px 16px 8px;background:var(--ink,#111);color:var(--yellow,#ffe14a);box-shadow:6px 6px 0 var(--red,#ff3d2e);font:400 clamp(24px,3.4vw,32px)/1.05 var(--f-titre,Impact,"Arial Narrow Bold",sans-serif);text-transform:uppercase;transform:rotate(-1deg)}
.ml-swipe .ml-swipe__consigne{margin:0;font:700 13px/1.5 var(--f-mono,ui-monospace,Consolas,monospace)}

.ml-swipe .ml-swipe__zone{position:relative;height:455px;margin:0 0 30px}
.ml-swipe .ml-swipe__pile{position:absolute;inset:0}

/* Carte. --rang : 0 pour celle du dessus, 1 et 2 pour celles qui dépassent derrière. */
.ml-swipe .ml-swipe__carte{position:absolute;inset:0;display:flex;flex-direction:column;overflow:hidden;background:var(--white,#fff);border:var(--border,3px solid #111);box-shadow:var(--sh-lg,10px 10px 0 #111);text-align:left;transform:translateY(calc(var(--rang,0) * 12px)) scale(calc(1 - var(--rang,0) * .04));transform-origin:50% 100%;transition:transform .3s ease-out,opacity .3s ease-out;user-select:none;-webkit-user-select:none;touch-action:pan-y;cursor:grab}
.ml-swipe .ml-swipe__carte:not(.is-dessus){box-shadow:var(--sh,6px 6px 0 #111)}
.ml-swipe .ml-swipe__carte.is-dessus{animation:ml-swipe-monte .25s ease-out}
.ml-swipe .ml-swipe__carte.is-tenue{transition:none;cursor:grabbing}
.ml-swipe .ml-swipe__carte.is-partie{opacity:0;transition:transform .35s ease-in,opacity .35s ease-in;pointer-events:none}
@keyframes ml-swipe-monte{from{transform:translateY(12px) scale(.96)}}

.ml-swipe .ml-swipe__visuel{position:relative;display:flex;flex:none;align-items:flex-start;justify-content:center;height:250px;background-color:var(--cyan,#4fd8ff);background-image:radial-gradient(rgba(17,17,17,.18) 1.4px,transparent 1.8px);background-size:10px 10px;border-bottom:var(--border,3px solid #111)}
/* La photo occupe toute la hauteur du visuel : collée en haut de la carte, posée sur le trait du bas. */
.ml-swipe .ml-swipe__visuel>img{display:block;width:auto;max-width:none;height:100%;pointer-events:none}
.ml-swipe .ml-swipe__vm{position:absolute;top:14px;right:14px;padding:6px 10px 5px;background:var(--yellow,#ffe14a);border:var(--border,3px solid #111);box-shadow:var(--sh-sm,3px 3px 0 #111);font:400 22px/1 var(--f-titre,Impact,"Arial Narrow Bold",sans-serif);transform:rotate(4deg)}

/* Tampons « J'y crois » et « Fake » : invisibles au repos, de plus en plus nets pendant le glissement. */
.ml-swipe .ml-swipe__tampon{position:absolute;top:30px;padding:6px 12px 4px;background:var(--white,#fff);border:5px solid currentColor;font:400 38px/1 var(--f-titre,Impact,"Arial Narrow Bold",sans-serif);text-transform:uppercase;opacity:0;pointer-events:none}
.ml-swipe .ml-swipe__tampon--oui{left:18px;color:#0f9d58;transform:rotate(-14deg)}
.ml-swipe .ml-swipe__tampon--non{right:18px;color:var(--red,#ff3d2e);transform:rotate(14deg)}

.ml-swipe .ml-swipe__corps{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:10px;padding:16px 18px 18px}
.ml-swipe .ml-swipe__tag{padding:4px 8px 3px;background:var(--cyan,#4fd8ff);border:2px solid var(--ink,#111);font:700 11px/1.2 var(--f-mono,ui-monospace,Consolas,monospace);text-transform:uppercase}
.ml-swipe .ml-swipe__question{margin:0;font:400 31px/1.05 var(--f-titre,Impact,"Arial Narrow Bold",sans-serif);text-transform:uppercase;text-wrap:balance}
.ml-swipe .ml-swipe__trajet{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:0;font:700 12px/1.3 var(--f-mono,ui-monospace,Consolas,monospace);text-transform:uppercase}
.ml-swipe .ml-swipe__club{display:inline-flex;align-items:center;gap:6px}
.ml-swipe .ml-swipe__club img{width:20px;height:20px;object-fit:contain;pointer-events:none}
.ml-swipe .ml-swipe__trajet strong{padding:2px 6px 1px;background:var(--yellow,#ffe14a);border:2px solid var(--ink,#111)}
.ml-swipe .ml-swipe__lire{margin-top:4px;color:var(--ink,#111);font:700 12px/1 var(--f-mono,ui-monospace,Consolas,monospace);text-transform:uppercase;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.ml-swipe .ml-swipe__lire:hover{background:var(--yellow,#ffe14a)}

/* Tendance après le vote. */
.ml-swipe .ml-swipe__verdict{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:26px 24px;background:var(--white,#fff);border:var(--border,3px solid #111);box-shadow:var(--sh-lg,10px 10px 0 #111);animation:ml-swipe-verdict .22s ease-out;cursor:pointer}
.ml-swipe .ml-swipe__verdict[hidden]{display:none}
@keyframes ml-swipe-verdict{from{opacity:0;transform:scale(.9) rotate(-2deg)}}
.ml-swipe .ml-swipe__verdict p{margin:0}
.ml-swipe .ml-swipe__match{padding:10px 18px 7px;background:var(--red,#ff3d2e);color:var(--white,#fff);border:var(--border,3px solid #111);box-shadow:var(--sh,6px 6px 0 #111);font:400 46px/1 var(--f-titre,Impact,"Arial Narrow Bold",sans-serif);text-transform:uppercase;transform:rotate(-3deg)}
.ml-swipe .is-croit .ml-swipe__match{background:var(--green,#4dea8a);color:var(--ink,#111)}
.ml-swipe .ml-swipe__pc{font:700 15px/1 var(--f-mono,ui-monospace,Consolas,monospace);text-transform:uppercase}
.ml-swipe .ml-swipe__pc strong{display:block;margin-bottom:4px;font:400 84px/1 var(--f-titre,Impact,"Arial Narrow Bold",sans-serif)}
.ml-swipe .ml-swipe__barre{display:flex;width:100%;height:28px;overflow:hidden;background:var(--white,#fff);border:var(--border,3px solid #111);box-shadow:var(--sh-sm,3px 3px 0 #111)}
.ml-swipe .ml-swipe__barre span{display:block;height:100%;transition:width .4s ease-out}
.ml-swipe .ml-swipe__barre-oui{background:var(--green,#4dea8a)}
.ml-swipe .ml-swipe__barre-non{background:var(--red,#ff3d2e)}
.ml-swipe .ml-swipe__legende{display:flex;justify-content:space-between;width:100%;font:700 12px/1 var(--f-mono,ui-monospace,Consolas,monospace);text-transform:uppercase}
.ml-swipe .ml-swipe__sous{font-size:19px;font-weight:800;line-height:1.35}
.ml-swipe .ml-swipe__votes{font:400 11px/1.4 var(--f-mono,ui-monospace,Consolas,monospace);text-transform:uppercase}

.ml-swipe .ml-swipe__fin{position:absolute;inset:0;display:grid;place-items:center;margin:0;padding:30px;background:var(--yellow,#ffe14a);border:var(--border,3px solid #111);box-shadow:var(--sh-lg,10px 10px 0 #111);font-size:19px;font-weight:800;line-height:1.4}
.ml-swipe .ml-swipe__fin[hidden]{display:none}

/* Boutons sous la pile. */
.ml-swipe .ml-swipe__actions{display:flex;justify-content:center;gap:18px}
.ml-swipe .ml-swipe__btn{display:inline-flex;flex:1;align-items:center;justify-content:center;gap:10px;max-width:200px;padding:14px 16px 12px;color:var(--ink,#111);border:var(--border,3px solid #111);border-radius:0;box-shadow:var(--sh,6px 6px 0 #111);font:400 24px/1 var(--f-titre,Impact,"Arial Narrow Bold",sans-serif);text-transform:uppercase;cursor:pointer;transition:transform .1s ease-out,box-shadow .1s ease-out}
.ml-swipe .ml-swipe__btn span{font-family:var(--f-texte,system-ui,sans-serif);font-size:22px;font-weight:900}
.ml-swipe .ml-swipe__btn--non{background:var(--red,#ff3d2e);color:var(--white,#fff)}
.ml-swipe .ml-swipe__btn--oui{background:var(--green,#4dea8a)}
.ml-swipe .ml-swipe__btn:hover:not(:disabled){box-shadow:8px 8px 0 var(--ink,#111);transform:translate(-2px,-2px)}
.ml-swipe .ml-swipe__btn:active:not(:disabled){box-shadow:none;transform:translate(6px,6px)}
.ml-swipe .ml-swipe__btn:focus-visible{outline:3px solid var(--blue,#2f5bff);outline-offset:3px}
.ml-swipe .ml-swipe__btn:disabled{opacity:.45;cursor:default}
.ml-swipe .ml-swipe__compteur{min-height:1.4em;margin:22px 0 0;font:700 12px/1.4 var(--f-mono,ui-monospace,Consolas,monospace);text-transform:uppercase}

@media (max-width:767.98px){
  .ml-swipe .ml-swipe__zone{height:430px}
  .ml-swipe .ml-swipe__visuel{height:220px}
  .ml-swipe .ml-swipe__question{font-size:26px}
  .ml-swipe .ml-swipe__carte,.ml-swipe .ml-swipe__verdict,.ml-swipe .ml-swipe__fin{box-shadow:var(--sh,6px 6px 0 #111)}
  .ml-swipe .ml-swipe__match{font-size:38px}
  .ml-swipe .ml-swipe__pc strong{font-size:68px}
}
/* Colonne étroite (le tiers droit de l'accueil, par exemple) : carte plus compacte. */
.ml-swipe{container-type:inline-size}
@container (max-width:400px){
  .ml-swipe .ml-swipe__zone{height:415px}
  .ml-swipe .ml-swipe__visuel{height:220px}
  .ml-swipe .ml-swipe__question{font-size:26px}
  .ml-swipe .ml-swipe__verdict{gap:10px;padding:20px 18px}
  .ml-swipe .ml-swipe__sous{font-size:17px}
  .ml-swipe .ml-swipe__tampon{font-size:30px}
  .ml-swipe .ml-swipe__match{font-size:38px}
  .ml-swipe .ml-swipe__pc strong{font-size:68px}
  .ml-swipe .ml-swipe__actions{gap:14px}
  .ml-swipe .ml-swipe__btn{padding:12px 10px 10px;font-size:21px}
}
@media (prefers-reduced-motion:reduce){
  .ml-swipe .ml-swipe__carte,.ml-swipe .ml-swipe__carte.is-dessus,.ml-swipe .ml-swipe__verdict{animation:none;transition:opacity .2s}
}
/* ============ Mercato Draft [ml_draft] ============
   Formation, puis un joueur parmi trois à chaque poste. Variables du thème, valeurs de repli. */
.ml-draft{container-type:inline-size;margin:40px 0;color:var(--ink,#111)}
.ml-draft [hidden]{display:none!important}
.ml-draft .ml-draft__titre{display:inline-block;margin:0 0 20px;padding:10px 16px 8px;background:var(--ink,#111);color:var(--yellow,#ffe14a);box-shadow:6px 6px 0 var(--red,#ff3d2e);font:400 clamp(24px,3.4vw,32px)/1.05 var(--f-titre,Impact,"Arial Narrow Bold",sans-serif);text-transform:uppercase;transform:rotate(-1deg)}
.ml-draft .ml-draft__consigne{margin:0 0 22px;font:700 13px/1.5 var(--f-mono,ui-monospace,Consolas,monospace)}

/* Choix de la formation. */
.ml-draft .ml-draft__formations{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:18px}
.ml-draft .ml-draft__formation{display:flex;flex-direction:column;gap:10px;padding:10px;background:var(--white,#fff);color:var(--ink,#111);border:var(--border,3px solid #111);border-radius:0;box-shadow:var(--sh,6px 6px 0 #111);cursor:pointer;transition:transform .1s ease-out,box-shadow .1s ease-out,background .1s ease-out}
.ml-draft .ml-draft__formation:hover{background:var(--yellow,#ffe14a);box-shadow:8px 8px 0 var(--ink,#111);transform:translate(-2px,-2px)}
.ml-draft .ml-draft__formation:active{box-shadow:none;transform:translate(6px,6px)}
.ml-draft .ml-draft__formation:focus-visible{outline:3px solid var(--blue,#2f5bff);outline-offset:3px}
.ml-draft .ml-draft__mini{position:relative;display:block;aspect-ratio:4/5;background:repeating-linear-gradient(180deg,#4dea8a 0 10%,#3fcf7a 10% 20%);border:2px solid var(--ink,#111)}
.ml-draft .ml-draft__mini i{position:absolute;width:12%;aspect-ratio:1;background:var(--ink,#111);border:2px solid var(--white,#fff);transform:translate(-50%,-50%)}
.ml-draft .ml-draft__formation-nom{font:400 26px/1 var(--f-titre,Impact,"Arial Narrow Bold",sans-serif);text-align:center}

/* Bandeau au-dessus du terrain. */
.ml-draft .ml-draft__bandeau{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin:0 0 20px}
.ml-draft .ml-draft__schema{padding:7px 12px 5px;background:var(--ink,#111);color:var(--yellow,#ffe14a);font:400 26px/1 var(--f-titre,Impact,"Arial Narrow Bold",sans-serif)}
.ml-draft .ml-draft__stats{display:flex;flex-wrap:wrap;gap:8px}
.ml-draft .ml-draft__stat{padding:5px 8px 4px;background:var(--white,#fff);border:2px solid var(--ink,#111);font:700 12px/1.2 var(--f-mono,ui-monospace,Consolas,monospace);text-transform:uppercase;white-space:nowrap}
.ml-draft .ml-draft__stat--note{background:var(--yellow,#ffe14a)}
.ml-draft .ml-draft__recommencer{margin-left:auto;padding:6px 10px 5px;background:var(--white,#fff);color:var(--ink,#111);border:2px solid var(--ink,#111);border-radius:0;box-shadow:var(--sh-sm,3px 3px 0 #111);font:700 12px/1.2 var(--f-mono,ui-monospace,Consolas,monospace);text-transform:uppercase;cursor:pointer}
.ml-draft .ml-draft__recommencer:hover{background:var(--ink,#111);color:var(--white,#fff)}
.ml-draft .ml-draft__recommencer.is-alerte{background:var(--red,#ff3d2e);color:var(--white,#fff)}
/* Draft terminée : le bouton passe au rouge et pulse sur place (halo autour de lui, aucun déplacement), jusqu'au survol. */
.ml-draft .ml-draft__recommencer.is-relance{background:var(--red,#ff3d2e);color:var(--white,#fff);box-shadow:none;animation:ml-draft-relance 1.6s ease-out infinite}
.ml-draft .ml-draft__recommencer.is-relance:hover{background:var(--ink,#111);animation:none}
@keyframes ml-draft-relance{
  0%{box-shadow:0 0 0 0 rgba(255,61,46,.7)}
  70%{box-shadow:0 0 0 10px rgba(255,61,46,0)}
  100%{box-shadow:0 0 0 0 rgba(255,61,46,0)}
}
@media (prefers-reduced-motion:reduce){.ml-draft .ml-draft__recommencer.is-relance{animation:none}}
.ml-draft .ml-draft__recommencer:focus-visible{outline:3px solid var(--blue,#2f5bff);outline-offset:2px}

.ml-draft .ml-draft__plateau{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:28px;align-items:start}

/* Terrain : bandes de tonte, lignes blanches, postes placés en % (left/top = centre du poste). */
.ml-draft .ml-draft__terrain{position:relative;container-type:inline-size;aspect-ratio:4/5;background:repeating-linear-gradient(180deg,#4dea8a 0 10%,#3fcf7a 10% 20%);border:var(--border,3px solid #111);box-shadow:var(--sh-lg,10px 10px 0 #111)}
.ml-draft .ml-draft__lignes{position:absolute;inset:3.5%;border:2px solid rgba(255,255,255,.85);pointer-events:none}
.ml-draft .ml-draft__lignes::before{content:"";position:absolute;top:50%;left:50%;width:22%;aspect-ratio:1;border:2px solid rgba(255,255,255,.85);border-radius:50%;transform:translate(-50%,-50%)}
.ml-draft .ml-draft__lignes::after{content:"";position:absolute;top:50%;left:0;right:0;border-top:2px solid rgba(255,255,255,.85)}
.ml-draft .ml-draft__place{position:absolute;z-index:1;display:flex;flex-direction:column;align-items:stretch;width:17cqi;padding:0;color:var(--ink,#111);border-radius:0;transform:translate(-50%,-50%)}
button.ml-draft__place{aspect-ratio:4/5;align-items:center;justify-content:center;background:rgba(255,255,255,.4);border:3px dashed var(--ink,#111);cursor:pointer;transition:background .1s ease-out,transform .1s ease-out}
button.ml-draft__place:hover{background:var(--white,#fff)}
button.ml-draft__place.is-active{z-index:2;background:var(--yellow,#ffe14a);border-style:solid;box-shadow:var(--sh-sm,3px 3px 0 #111);animation:ml-draft-pulse 1.1s ease-in-out infinite alternate}
button.ml-draft__place:focus-visible{outline:3px solid var(--blue,#2f5bff);outline-offset:2px}
@keyframes ml-draft-pulse{to{transform:translate(-50%,-50%) scale(1.07)}}
.ml-draft .ml-draft__place-code{font:400 clamp(14px,5cqi,24px)/1 var(--f-titre,Impact,"Arial Narrow Bold",sans-serif)}
.ml-draft .ml-draft__place.is-prise{background:var(--white,#fff);border:2px solid var(--ink,#111);box-shadow:var(--sh-sm,3px 3px 0 #111);animation:ml-draft-signe .3s ease-out}
@keyframes ml-draft-signe{from{transform:translate(-50%,-50%) scale(1.25) rotate(-6deg)}}
.ml-draft .ml-draft__place-photo{display:block;aspect-ratio:1;overflow:hidden;background:var(--cyan,#4fd8ff);border-bottom:2px solid var(--ink,#111)}
.ml-draft .ml-draft__place-photo img{display:block;width:100%;height:auto;max-width:none}
.ml-draft .ml-draft__place-note{position:absolute;top:-8px;left:-8px;padding:2px 4px 1px;background:var(--yellow,#ffe14a);border:2px solid var(--ink,#111);font:400 clamp(12px,3.6cqi,17px)/1 var(--f-titre,Impact,"Arial Narrow Bold",sans-serif)}
.ml-draft .ml-draft__place-nom{display:block;padding:3px 3px 2px;overflow:hidden;background:var(--ink,#111);color:var(--white,#fff);font:400 clamp(10px,3cqi,14px)/1.1 var(--f-titre,Impact,"Arial Narrow Bold",sans-serif);text-align:center;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}
.ml-draft .ml-draft__place-nom.is-long{font-size:clamp(8px,2.3cqi,11px);letter-spacing:-.01em}

/* Panneau : les trois joueurs proposés, puis le résultat. */
.ml-draft .ml-draft__panneau{min-width:0;outline:none}
.ml-draft .ml-draft__entete{display:flex;align-items:center;gap:10px;margin:0 0 6px}
.ml-draft .ml-draft__code{padding:5px 8px 3px;background:var(--ink,#111);color:var(--yellow,#ffe14a);font:400 20px/1 var(--f-titre,Impact,"Arial Narrow Bold",sans-serif)}
.ml-draft .ml-draft__poste{margin:0;font:400 30px/1.05 var(--f-titre,Impact,"Arial Narrow Bold",sans-serif);text-transform:uppercase}
.ml-draft .ml-draft__aide,.ml-draft .ml-draft__reste,.ml-draft .ml-draft__attente{margin:0 0 16px;font:700 12px/1.5 var(--f-mono,ui-monospace,Consolas,monospace)}
.ml-draft .ml-draft__reste{margin:18px 0 0}
.ml-draft .ml-draft__attente{padding:24px 16px;background:var(--white,#fff);border:var(--border,3px solid #111);text-align:center}
.ml-draft .ml-draft__choix{display:flex;flex-direction:column;gap:16px}
.ml-draft .ml-draft__carte{position:relative;display:grid;grid-template-columns:70px minmax(0,1fr);align-items:center;gap:12px;padding:0 12px 0 0;background:var(--white,#fff);color:var(--ink,#111);border:var(--border,3px solid #111);border-radius:0;box-shadow:var(--sh,6px 6px 0 #111);text-align:left;cursor:pointer;transition:transform .1s ease-out,box-shadow .1s ease-out,background .1s ease-out;animation:ml-draft-carte .25s ease-out backwards}
.ml-draft .ml-draft__carte:nth-child(2){animation-delay:.07s}
.ml-draft .ml-draft__carte:nth-child(3){animation-delay:.14s}
@keyframes ml-draft-carte{from{opacity:0;transform:translateX(16px)}}
.ml-draft .ml-draft__carte:hover:not(:disabled){background:var(--yellow,#ffe14a);box-shadow:8px 8px 0 var(--ink,#111);transform:translate(-2px,-2px)}
.ml-draft .ml-draft__carte:active:not(:disabled){box-shadow:none;transform:translate(6px,6px)}
.ml-draft .ml-draft__carte:focus-visible{outline:3px solid var(--blue,#2f5bff);outline-offset:3px}
.ml-draft .ml-draft__carte:disabled{opacity:.5;cursor:default}
.ml-draft .ml-draft__carte-photo{display:block;align-self:stretch;overflow:hidden;background:var(--cyan,#4fd8ff);border-right:var(--border,3px solid #111)}
.ml-draft .ml-draft__carte-photo img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 0}
.ml-draft .ml-draft__carte-note{position:absolute;top:-10px;left:-10px;padding:4px 6px 2px;background:var(--yellow,#ffe14a);border:var(--border,3px solid #111);font:400 24px/1 var(--f-titre,Impact,"Arial Narrow Bold",sans-serif)}
.ml-draft .ml-draft__carte-corps{display:flex;flex-direction:column;gap:5px;min-width:0;padding:10px 0 10px}
.ml-draft .ml-draft__carte-nom{font:400 22px/1.05 var(--f-titre,Impact,"Arial Narrow Bold",sans-serif);text-transform:uppercase}
.ml-draft .ml-draft__carte-club{display:flex;align-items:center;gap:6px;font:700 12px/1.2 var(--f-mono,ui-monospace,Consolas,monospace);text-transform:uppercase}
.ml-draft .ml-draft__carte-club img{flex:none;width:18px;height:18px;object-fit:contain}
.ml-draft .ml-draft__carte-infos{font:400 11px/1.3 var(--f-mono,ui-monospace,Consolas,monospace);text-transform:uppercase}
.ml-draft .ml-draft__carte-vm{position:absolute;top:-10px;right:-8px;padding:4px 7px 3px;background:var(--ink,#111);color:var(--white,#fff);font:700 11px/1 var(--f-mono,ui-monospace,Consolas,monospace);transform:rotate(3deg)}
.ml-draft .ml-draft__carte-deja{position:absolute;right:10px;bottom:8px;padding:2px 6px;background:var(--red,#ff3d2e);color:var(--white,#fff);font:700 10px/1.2 var(--f-mono,ui-monospace,Consolas,monospace);text-transform:uppercase}

.ml-draft .ml-draft__resultat{display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.ml-draft .ml-draft__resultat p{margin:0}
.ml-draft .ml-draft__fini{padding:8px 14px 6px;background:var(--green,#4dea8a);border:var(--border,3px solid #111);box-shadow:var(--sh,6px 6px 0 #111);font:400 30px/1 var(--f-titre,Impact,"Arial Narrow Bold",sans-serif);text-transform:uppercase;transform:rotate(-2deg)}
.ml-draft .ml-draft__chiffres{display:flex;flex-wrap:wrap;gap:14px}
.ml-draft .ml-draft__gros{display:flex;flex-direction:column;gap:4px;padding:10px 14px 8px;background:var(--white,#fff);border:var(--border,3px solid #111)}
.ml-draft .ml-draft__gros:first-child{background:var(--yellow,#ffe14a)}
.ml-draft .ml-draft__gros strong{font:400 52px/1 var(--f-titre,Impact,"Arial Narrow Bold",sans-serif);font-weight:400;white-space:nowrap}
.ml-draft .ml-draft__gros small{font:700 11px/1 var(--f-mono,ui-monospace,Consolas,monospace);text-transform:uppercase}
.ml-draft .ml-draft__verdict{font-size:19px;font-weight:800;line-height:1.35}
.ml-draft .ml-draft__apercu{display:block;width:min(100%,230px);height:auto;border:var(--border,3px solid #111);box-shadow:var(--sh,6px 6px 0 #111)}
.ml-draft .ml-draft__actions{display:flex;flex-wrap:wrap;gap:12px}
.ml-draft .ml-draft__bouton{display:inline-flex;align-items:center;padding:11px 14px 9px;background:var(--white,#fff);color:var(--ink,#111);border:var(--border,3px solid #111);border-radius:0;box-shadow:var(--sh-sm,3px 3px 0 #111);font:400 19px/1 var(--f-titre,Impact,"Arial Narrow Bold",sans-serif);text-decoration:none;text-transform:uppercase;cursor:pointer;transition:transform .1s ease-out,box-shadow .1s ease-out}
.ml-draft .ml-draft__bouton--partager{background:var(--green,#4dea8a)}
.ml-draft .ml-draft__bouton--x{background:var(--ink,#111);color:var(--white,#fff)}
.ml-draft .ml-draft__bouton:hover{box-shadow:5px 5px 0 var(--ink,#111);transform:translate(-2px,-2px)}
.ml-draft .ml-draft__bouton--x:hover{box-shadow:5px 5px 0 var(--red,#ff3d2e)}
.ml-draft .ml-draft__bouton:active{box-shadow:none;transform:translate(3px,3px)}
.ml-draft .ml-draft__bouton:focus-visible{outline:3px solid var(--blue,#2f5bff);outline-offset:3px}

/* Colonne étroite : le panneau passe au-dessus du terrain, pour voir les choix sans défiler. */
@container (max-width:640px){
  .ml-draft .ml-draft__plateau{grid-template-columns:minmax(0,1fr);gap:26px}
  .ml-draft .ml-draft__panneau{order:-1}
  .ml-draft .ml-draft__formations{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
  .ml-draft .ml-draft__formation-nom{font-size:22px}
  .ml-draft .ml-draft__terrain{box-shadow:var(--sh,6px 6px 0 #111)}
  .ml-draft .ml-draft__recommencer{margin-left:0}
}
@media (prefers-reduced-motion:reduce){
  .ml-draft .ml-draft__carte,.ml-draft .ml-draft__place.is-prise,button.ml-draft__place.is-active{animation:none}
}

/* Mercato Draft : collectif (liens entre voisins, entente des joueurs). */
.ml-draft .ml-draft__cote{display:flex;flex-direction:column;gap:18px;width:100%;max-width:520px;min-width:0}
.ml-draft .ml-draft__liens{position:absolute;inset:0;z-index:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.ml-draft .ml-draft__liens line{fill:none;stroke-linecap:round;vector-effect:non-scaling-stroke}
.ml-draft .ml-draft__liens .is-vide{stroke:rgba(255,255,255,.6);stroke-width:2;stroke-dasharray:3 5}
.ml-draft .ml-draft__liens .is-attente{stroke:var(--yellow,#ffe14a);stroke-width:3;stroke-dasharray:7 5}
.ml-draft .ml-draft__liens .is-club{stroke:var(--yellow,#ffe14a);stroke-width:6}
.ml-draft .ml-draft__liens .is-pays{stroke:var(--white,#fff);stroke-width:4}
.ml-draft .ml-draft__liens .is-champ{stroke:var(--cyan,#4fd8ff);stroke-width:3}
.ml-draft .ml-draft__liens .is-rien{stroke:var(--red,#ff3d2e);stroke-width:3;stroke-dasharray:7 6}
.ml-draft .ml-draft__liens .is-fond{stroke:var(--ink,#111);stroke-dasharray:none}
.ml-draft .ml-draft__liens .is-fond.is-club{stroke-width:10}
.ml-draft .ml-draft__liens .is-fond.is-pays{stroke-width:8}
.ml-draft .ml-draft__liens .is-fond.is-champ{stroke-width:7}
.ml-draft .ml-draft__liens .is-fond.is-rien{stroke-width:6}
.ml-draft .ml-draft__legende{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0;font:700 11px/1.2 var(--f-mono,ui-monospace,Consolas,monospace);text-transform:uppercase}
.ml-draft .ml-draft__legende span{display:inline-flex;align-items:center;gap:8px}
.ml-draft .ml-draft__legende i{display:block;width:30px;height:8px;border:2px solid var(--ink,#111)}
.ml-draft .ml-draft__legende .is-club{background:var(--yellow,#ffe14a)}
.ml-draft .ml-draft__legende .is-pays{height:6px;background:var(--white,#fff)}
.ml-draft .ml-draft__legende .is-champ{height:5px;background:var(--cyan,#4fd8ff)}
.ml-draft .ml-draft__legende .is-rien{height:6px;background:repeating-linear-gradient(90deg,var(--red,#ff3d2e) 0 6px,var(--ink,#111) 6px 10px)}

/* Entente : blanc = isolé (pas de bonus), jaune +5, vert clair +10, vert +13. */
.ml-draft .ml-draft__place-note.is-niv-0{background:var(--white,#fff)}
.ml-draft .ml-draft__place-note.is-niv-2{background:var(--lime,#c6f432)}
.ml-draft .ml-draft__place-note.is-niv-3{background:var(--green,#4dea8a)}
.ml-draft .ml-draft__place-effet{position:absolute;top:-8px;right:-8px;padding:2px 3px 1px;background:var(--ink,#111);font:700 clamp(8px,2.4cqi,11px)/1 var(--f-mono,ui-monospace,Consolas,monospace)}
.ml-draft .ml-draft__place-effet.is-plus{color:var(--green,#4dea8a)}
.ml-draft .ml-draft__place-effet.is-moins{color:#ff7a6e}

.ml-draft .ml-draft__carte-liens{display:flex;align-items:baseline;gap:6px;font:700 11px/1.3 var(--f-mono,ui-monospace,Consolas,monospace)}
.ml-draft .ml-draft__carte-liens b{flex:none;padding:2px 4px 1px;background:var(--yellow,#ffe14a);border:2px solid var(--ink,#111);font-weight:700}
.ml-draft .ml-draft__carte-liens.is-niv-0 b{background:var(--white,#fff)}
.ml-draft .ml-draft__carte-liens.is-niv-2 b{background:var(--lime,#c6f432)}
.ml-draft .ml-draft__carte-liens.is-niv-3 b{background:var(--green,#4dea8a)}
.ml-draft .ml-draft__carte-impact{align-self:flex-start;padding:3px 6px 2px;background:var(--paper,#fff6e0);border:2px solid var(--ink,#111);font:700 11px/1.2 var(--f-mono,ui-monospace,Consolas,monospace);text-transform:uppercase}
.ml-draft .ml-draft__carte-impact.is-plus{background:var(--green,#4dea8a)}
.ml-draft .ml-draft__carte-impact.is-moins{background:#ffb3ab}
.ml-draft .ml-draft__stat--collectif{background:var(--cyan,#4fd8ff)}
