/* Espaces adultes, nouvelle DA (Loïc, 10 novembre 2026) :
   parent = piste A « le manège des familles » (cabines bonbon, arc-en-ciel pastel) ;
   enseignant = piste C « les tuiles en relief ». Purement visuel : aucune donnée ni logique touchée. */
:root{--mt-rainbow:linear-gradient(90deg,#9fd6b9,#bba8ea,#f0ad8c,#f0cf6a);--mt-ink:#203b4a}
@keyframes mt-esp-pop{from{opacity:0;transform:translateY(14px) scale(.92)}to{opacity:1;transform:none}}
@keyframes mt-esp-bob{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-6px) rotate(2deg)}}
@keyframes mt-esp-shine{from{background-position:0 0}to{background-position:200% 0}}

@layer meettomo-theme{
/* ---------- Commun : langues en bulles bonbon, choix du rôle, bouton principal cerclé de l'arc ---------- */
:is(body.parent-test,body.teacher-area) .parent-test-header nav a{border-radius:999px!important;border:1px solid #ffffffcf!important;background:linear-gradient(135deg,#ffffffa6,#ffffff4d)!important;box-shadow:inset 0 1px 1px #fff,0 6px 14px -10px #59657966!important;font-weight:800!important;transition:transform .2s cubic-bezier(.34,1.56,.64,1)!important}
:is(body.parent-test,body.teacher-area) .parent-test-header nav a[aria-current],:is(body.parent-test,body.teacher-area) .parent-test-header nav a.is-current{border:2px solid transparent!important;background:linear-gradient(#fffdf8,#fffdf8) padding-box,var(--mt-rainbow) border-box!important}
@media(hover:hover){:is(body.parent-test,body.teacher-area) .parent-test-header nav a:hover{transform:translateY(-2px)!important}}
:is(body.parent-test,body.teacher-area) .mt-roles-list a[aria-current=page]{background:linear-gradient(#fffdf8,#fffdf8) padding-box,var(--mt-rainbow) border-box!important;border:2px solid transparent!important;box-shadow:0 8px 16px -10px #24384a66!important}
:is(body.parent-test,body.teacher-area) .mt-welcome-tomo{animation:mt-esp-bob 3.2s ease-in-out infinite}
:is(body.parent-test,body.teacher-area) main .button.primary{border:2px solid transparent!important;background:linear-gradient(#fffdf8,#fffdf8) padding-box,var(--mt-rainbow) border-box!important;color:var(--mt-ink)!important;font-weight:900!important;box-shadow:0 10px 18px -12px #24384a80!important}
:is(body.parent-test,body.teacher-area) .parent-test-card h2{font-family:"Fraunces Variable","Fraunces",Georgia,serif!important}

/* ---------- Parent : piste A, le manège des familles ---------- */
body.parent-test .parent-trust{display:inline-block!important;padding:10px 16px 10px 14px!important;border-radius:18px!important;background:radial-gradient(70% 60% at 25% 15%,#ffffffd9,#fff0 60%),linear-gradient(180deg,#dff3e8,#a9dcc2)!important;box-shadow:inset 0 -4px 0 #00000010,inset 0 2px 2px #fff,0 10px 16px -12px #24384a66!important;font-weight:850!important}
/* Bandeau des enfants : une cabine bonbon par enfant, à la couleur de son Tomo. */
body.parent-test .mt-family-strip{display:flex!important;gap:12px!important;flex-wrap:wrap!important}
body.parent-test .mt-family-strip a{--lt:#efe7fb;--b:#c9b8f0;--d:#9a84d6;position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-end!important;gap:2px!important;min-width:92px!important;height:84px!important;margin-top:22px!important;padding:0 14px 10px!important;border:0!important;border-radius:24px 24px 18px 18px!important;background:radial-gradient(70% 55% at 30% 18%,#ffffffd9,#fff0 60%),linear-gradient(180deg,var(--lt),var(--b) 62%,var(--d))!important;box-shadow:inset 0 -6px 0 #00000012,inset 0 -8px 10px -4px var(--d),inset 0 3px 2px #fff,0 12px 16px -10px #24384a66!important;color:var(--mt-ink)!important;font:650 19px/1 "Fraunces Variable","Fraunces",Georgia,serif!important;text-decoration:none!important;animation:mt-esp-pop .5s cubic-bezier(.34,1.56,.64,1) both;transition:transform .25s cubic-bezier(.34,1.56,.64,1)!important}
body.parent-test .mt-family-strip a::before{content:""!important;position:absolute!important;top:8px!important;left:14px!important;width:24px!important;height:5px!important;border-radius:5px!important;background:#ffffffe6!important}
body.parent-test .mt-family-strip a:nth-child(2){--lt:#e2edfb;--b:#a9c6ee;--d:#6f97d0;animation-delay:.08s}
body.parent-test .mt-family-strip a:nth-child(3){--lt:#fde7da;--b:#f6bf9f;--d:#dc8e68;animation-delay:.16s}
body.parent-test .mt-family-strip a .mt-strip-tomo{width:58px!important;height:54px!important;margin-top:-30px!important;filter:drop-shadow(0 5px 5px #24384a40)!important}
@media(hover:hover){body.parent-test .mt-family-strip a:hover{transform:translateY(-4px) rotate(-1.5deg)!important}}
body.parent-test .mt-family-strip a:focus-visible{outline:4px solid #438775!important;outline-offset:3px!important}

/* Fiches enfants : bandeau bonbon en tête de carte, Tomo qui se balance dessus. */
body.parent-test #children>[data-slot]{--lt:#efe7fb;--b:#c9b8f0;--d:#9a84d6;position:relative!important;padding-top:0!important;overflow:hidden!important;animation:mt-esp-pop .55s cubic-bezier(.34,1.56,.64,1) both}
body.parent-test #children>[data-slot="2"]{--lt:#e2edfb;--b:#a9c6ee;--d:#6f97d0}
body.parent-test #children>[data-slot="3"]{--lt:#fde7da;--b:#f6bf9f;--d:#dc8e68}
body.parent-test #children>[data-slot]>h2{margin:0 -40px 22px!important;padding:26px 40px 22px!important;background:radial-gradient(60% 80% at 20% 10%,#ffffffd9,#fff0 60%),linear-gradient(180deg,var(--lt),var(--b) 70%,var(--d))!important;box-shadow:inset 0 -6px 0 #00000012,inset 0 3px 2px #fff!important;font-size:30px!important;color:var(--mt-ink)!important}
body.parent-test #children>[data-slot]>.mt-child-tomo{position:absolute!important;right:26px!important;top:8px!important;width:88px!important;height:82px!important;z-index:1!important;filter:drop-shadow(0 6px 6px #24384a40)!important;animation:mt-esp-bob 3.4s ease-in-out infinite}
body.parent-test #children>[data-slot] .family-actions .button,body.parent-test #children>[data-slot] button.button{border-radius:999px!important;border:1px solid #ffffffd9!important;background:linear-gradient(135deg,#ffffffcc,#ffffff80)!important;box-shadow:inset 0 1px 1px #fff,0 8px 16px -12px #24384a66!important;font-weight:850!important;transition:transform .2s cubic-bezier(.34,1.56,.64,1)!important}
body.parent-test #children>[data-slot] .family-actions .button:first-child{border:2px solid transparent!important;background:linear-gradient(#fffdf8,#fffdf8) padding-box,var(--mt-rainbow) border-box!important}
@media(hover:hover){body.parent-test #children>[data-slot] button.button:not(:disabled):hover{transform:translateY(-2px)!important}}
body.parent-test #children>[data-slot] :is(input:not([type=checkbox]),select){border-radius:16px!important;border:2px solid #ffffffd9!important;background:#fffdf8!important;box-shadow:inset 0 2px 4px #24384a14!important}
body.parent-test #children>[data-slot] input[name="nickname"]{font:650 20px/1.2 "Fraunces Variable","Fraunces",Georgia,serif!important}
body.parent-test #children>[data-slot] .family-report:not([hidden]){border-radius:20px!important;padding:14px!important;background:#ffffff80!important}

/* ---------- Enseignant : piste C, les tuiles en relief ---------- */
body.teacher-area .teacher-classes{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important;gap:14px!important}
body.teacher-area .teacher-class{--t1:#f3eefd;--t2:#d6c9f3;position:relative!important;padding:18px 88px 16px 18px!important;min-height:132px!important;justify-content:flex-start!important;border:0!important;border-radius:26px!important;background:radial-gradient(60% 60% at 20% 10%,#ffffffb3,#fff0 60%),linear-gradient(160deg,var(--t1),var(--t2))!important;box-shadow:inset 0 -6px 0 #00000010,inset 0 2px 2px #fff,0 16px 22px -16px #24384a73!important;animation:mt-esp-pop .5s cubic-bezier(.34,1.56,.64,1) both;transition:transform .25s cubic-bezier(.34,1.56,.64,1)!important}
body.teacher-area .teacher-class:nth-child(3n+2){--t1:#edf3fd;--t2:#bcd2f2;animation-delay:.07s}
body.teacher-area .teacher-class:nth-child(3n){--t1:#fff8e0;--t2:#f6dc8c;animation-delay:.14s}
body.teacher-area .teacher-class[aria-pressed=true]{outline:4px solid #fff!important;outline-offset:2px!important;box-shadow:inset 0 -6px 0 #00000010,inset 0 2px 2px #fff,0 16px 22px -16px #24384a73,0 0 24px 4px #bba8ea73!important}
@media(hover:hover){body.teacher-area .teacher-class:hover{transform:translateY(-3px)!important}}
body.teacher-area .teacher-class strong{font-size:26px!important;line-height:1!important}
body.teacher-area .teacher-class .teacher-chip{background:#ffffffb3!important}
body.teacher-area .teacher-class small{opacity:.75}
/* Le pourcentage devient un anneau (le texte « … % des leçons » reste lu). */
body.teacher-area .teacher-class .teacher-meter{position:absolute!important;right:14px!important;top:14px!important;width:64px!important;height:64px!important;border-radius:50%!important;background:conic-gradient(#6fb293 0,#9a84d6 calc(var(--share,0) * 1%),#ffffffb3 0)!important;box-shadow:0 6px 12px -8px #24384a66!important;overflow:visible!important}
body.teacher-area .teacher-class .teacher-meter::after{content:""!important;position:absolute!important;inset:10px!important;border-radius:50%!important;background:radial-gradient(circle at 35% 30%,#fff,#fbf8f2)!important;box-shadow:inset 0 2px 4px #24384a1f!important}
body.teacher-area .teacher-class .teacher-meter i{display:none!important}
body.teacher-area .teacher-class .teacher-meter b{position:absolute!important;inset:0!important;z-index:1!important;display:grid!important;place-items:center!important;font:650 14px/1 "Fraunces Variable","Fraunces",Georgia,serif!important}
body.teacher-area .teacher-panel{border:0!important;border-radius:26px!important;background:radial-gradient(60% 60% at 20% 10%,#ffffffb3,#fff0 60%),linear-gradient(160deg,#fff1e8,#f8cdb3)!important;box-shadow:inset 0 -6px 0 #00000010,inset 0 2px 2px #fff,0 16px 22px -16px #24384a73!important}
body.teacher-area .teacher-panel+.teacher-panel{background:radial-gradient(60% 60% at 20% 10%,#ffffffb3,#fff0 60%),linear-gradient(160deg,#e9f7f0,#bfe4d1)!important}
body.teacher-area .teacher-panel h3{font-family:"Fraunces Variable","Fraunces",Georgia,serif!important}
body.teacher-area .teacher-review li>:last-child{background:#ffffffcc!important}
body.teacher-area .teacher-offer{border:0!important;border-radius:26px!important;background:radial-gradient(60% 60% at 20% 10%,#ffffffb3,#fff0 60%),linear-gradient(160deg,#f3eefd,#d6c9f3)!important;box-shadow:inset 0 -6px 0 #00000010,inset 0 2px 2px #fff,0 16px 22px -16px #24384a73!important}
body.teacher-area .teacher-offer:nth-child(2){background:radial-gradient(60% 60% at 20% 10%,#ffffffb3,#fff0 60%),linear-gradient(160deg,#edf3fd,#bcd2f2)!important}
body.teacher-area .teacher-offer:nth-child(3){background:radial-gradient(60% 60% at 20% 10%,#ffffffb3,#fff0 60%),linear-gradient(160deg,#fff8e0,#f6dc8c)!important}
body.teacher-area :is(td,tbody th){background:#ffffffa6!important}
body.teacher-area .teacher-state{box-shadow:inset 0 -2px 0 #00000010,inset 0 1px 1px #fff!important}
body.teacher-area .teacher-roster li{border-radius:20px!important;background:radial-gradient(60% 80% at 10% 10%,#ffffffcc,#fff0 60%),linear-gradient(160deg,#ffffffb3,#f3eefd)!important;box-shadow:inset 0 -4px 0 #00000010,inset 0 2px 2px #fff,0 10px 16px -14px #24384a73!important}
body.teacher-area .teacher-pics>*{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#fff;box-shadow:inset 0 -3px 0 #00000010,0 6px 10px -8px #24384a73}
body.teacher-area .teacher-code strong{background:var(--mt-rainbow);-webkit-background-clip:text;background-clip:text;color:transparent!important}
}

@media(prefers-reduced-motion:reduce){body.parent-test .mt-family-strip a,body.parent-test #children>[data-slot],body.parent-test #children>[data-slot]>.mt-child-tomo,body.teacher-area .teacher-class,:is(body.parent-test,body.teacher-area) .mt-welcome-tomo{animation:none!important}}
