.mc-defi{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border:1px solid #cddaD0;border-radius:20px;overflow:hidden;background:#fff;margin:0 0 2rem;color:#162a20}
.mc-defi [hidden],.mc-defi[hidden]{display:none!important}
.mc-defi-scene{position:relative;isolation:isolate;min-height:15rem;background:linear-gradient(159deg,#d3e7d7,#a7cdb8);overflow:hidden}
.mc-route{position:absolute;left:0;right:0;top:54%;height:39%;background:#253c35;border-top:4px solid #eaf4e7;border-bottom:4px solid #eaf4e7}
.mc-route::before{content:"";position:absolute;inset:48% 0 auto;height:2px;background:repeating-linear-gradient(90deg,#eef5d9 0 14px,transparent 14px 34px)}
.mc-ligne-arret{position:absolute;left:70%;top:50%;height:50%;width:4px;background:#eef5d9}
.mc-signal{position:absolute;z-index:1;bottom:45%;left:calc(70% - 15px);display:grid;gap:5px;padding:6px;border-radius:10px;background:#182d25;box-shadow:0 8px 14px #15322931}
.mc-signal::after{content:"";position:absolute;left:calc(50% - 2px);top:100%;width:4px;height:1.1rem;background:#182d25}
.mc-signal span{border-radius:50%;width:19px;height:19px;background:#40564c;border:1px solid #718175}
.mc-defi-scene[data-phase=vert] .mc-signal span:nth-child(3){background:#bbf88a;border-color:#bbf88a;box-shadow:0 0 12px #bbf88a86}
.mc-defi-scene:not([data-phase=vert]) .mc-signal span:nth-child(2){background:#ffda6e;border-color:#ffe390;box-shadow:0 0 14px #ffda6e90}
.mc-voiture{position:absolute;top:72%;left:12%;width:14%;min-width:32px;max-width:63px;height:25%;transform:translateY(-50%);border-radius:10px 15px 15px 10px;background:#d0ed79;box-shadow:0 3px 0 #162921}
.mc-voiture i{position:absolute;inset:19% 31% 19% 24%;background:#28463a;border-radius:5px;border-right:3px solid #f1fac8}
.mc-defi-scene[data-phase=jaune] .mc-voiture{left:42%}
.mc-defi-scene[data-phase=arret] .mc-voiture{left:53%}
.mc-defi-contenu{padding:clamp(1.1rem,3vw,1.8rem)}
.mc-defi-contenu :is(h2,p){margin-top:.35rem}
.mc-defi-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem 1rem;margin-top:.7rem}
.mc-defi-retour:empty{display:none}
.mc-defi-retour[data-resultat]{padding:.65rem .8rem;border-radius:.55rem;margin-top:.85rem}
.mc-defi-retour[data-resultat=juste]{background:#e7f3de;border-left:3px solid #567b44}
.mc-defi-retour[data-resultat=incorrect]{background:#fff3d8;border-left:3px solid #ad7229}
@media(max-width:760px){.mc-defi{grid-template-columns:1fr}.mc-defi-scene{min-height:11rem}}
@media(prefers-reduced-motion:no-preference){
  .mc-hero .mc-copy,.mc-hero .mc-hero-visual{animation:mc-apparition 460ms ease-out both}
  .mc-hero .mc-hero-visual{animation-delay:90ms}
  .mc-pick a,.mode-session{transition:box-shadow 170ms ease,transform 170ms ease}
  .mc-pick a:is(:hover,:focus-visible),.mode-session:focus-within{box-shadow:0 9px 18px #19342619;transform:translateY(-2px)}
  .mc-voiture{transition:left 620ms cubic-bezier(.19,.65,.28,1)}
  .mc-defi-retour[data-resultat=juste],#session .correction[data-correct=oui]:not([hidden]){animation:mc-reponse 480ms ease-out both}
  #session .resultat-cadran{animation:mc-apparition 440ms ease-out both}
  #session label:has(input:checked){transition:box-shadow 160ms ease}
  #session label:has(input:checked):focus-within{box-shadow:0 0 0 2px #689b73}
}
@keyframes mc-apparition{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes mc-reponse{from{opacity:.72;transform:translateY(4px);box-shadow:0 0 0 5px #9fc58650}to{opacity:1;transform:translateY(0);box-shadow:0 0 0 0 transparent}}
