/* Espace enseignant : section de Mon compte, liste partagée, page /enseignants/. */
.ludi-teach,.ludi-teach-page{color:#294b53;font-family:'Nunito',sans-serif}
.ludi-teach h2,.ludi-teach h3,.ludi-teach h4,.ludi-teach-page h1,.ludi-teach-page h2,.ludi-teach-page h3,.ludi-teach-page h4{font-family:'Baloo 2',sans-serif;color:#294b53;line-height:1.2}
.ludi-teach header,.ludi-teach-page header{display:block!important}
.ludi-teach input[type=text],.ludi-teach input:not([type]),.ludi-teach-page input[type=text]{min-height:48px;padding:0 14px;border:2px solid #d8d1bb;border-radius:14px;background:#fff;color:#294b53;font:600 1rem 'Nunito',sans-serif;width:100%;box-sizing:border-box}
.ludi-teach input:focus-visible{outline:3px solid #f2c79b;outline-offset:2px;border-color:#294b53}
.ludi-teach-textbtn{background:none;border:0;padding:8px 2px;font:800 .92rem 'Nunito',sans-serif;color:#294b53;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.ludi-teach-textbtn.is-danger{color:#a2452e}
.ludi-teach-textbtn:focus-visible,.ludi-teach summary:focus-visible,.ludi-teach-page a:focus-visible{outline:3px solid #f2c79b;outline-offset:3px}

/* Mon compte */
.ludi-teach{margin:36px 0;padding:28px;background:#fffdf8;border:1px solid #e4dfcc;border-radius:22px;box-shadow:0 4px 0 #ebe5d2}
.ludi-teach:focus{outline:none}
.ludi-teach-head h2{margin:4px 0 6px;font-size:clamp(1.6rem,3vw,2.1rem)}
.ludi-teach-head p,.ludi-teach-more,.ludi-teach-empty{color:#5d6f72;margin:0 0 14px;line-height:1.6}
.ludi-teach-more a{color:#294b53;font-weight:800}
.ludi-teach-note{padding:12px 16px;border-radius:14px;background:#eef4ec;font-weight:700;margin:0 0 14px}
.ludi-teach-note.is-error{background:#fdece6;color:#8c3a25}
.ludi-teach-role{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;margin:0 0 14px}
.ludi-teach-check{display:inline-flex;align-items:center;gap:10px;font-weight:800;font-size:1.05rem;cursor:pointer}
.ludi-teach-check input{width:22px;height:22px;accent-color:#e07a5f}
.ludi-teach-new{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:12px 24px;align-items:end;padding:18px;border-radius:18px;background:#eef4ec;margin:6px 0 20px}
.ludi-teach-new h3{margin:0 0 4px;font-size:1.25rem}
.ludi-teach-new p{margin:0;color:#41595d}
.ludi-teach-new a{color:#294b53;font-weight:800}
.ludi-teach-create label{display:block;font-weight:800;margin-bottom:6px}
.ludi-teach-inline{display:flex;gap:10px;align-items:center}
.ludi-teach-inline input{flex:1;min-width:0}
.ludi-teach-inline .ludi-btn{flex:none}
.ludi-teach-lists{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.ludi-teach-list{background:#fff;border:1px solid #e4dfcc;border-radius:20px;padding:18px 20px;display:grid;gap:14px}
.ludi-teach-list:focus{outline:3px solid #f2c79b;outline-offset:3px}
.ludi-teach-list-head{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap}
.ludi-teach-list-head h3{margin:0;font-size:1.3rem;overflow-wrap:anywhere}
.ludi-teach-list-head p{margin:2px 0 0;color:#5d6f72;font-size:.92rem}
.ludi-teach-shared{color:#3d6b4b;font-weight:800}
.ludi-teach-thumbs{display:flex;gap:6px}
.ludi-teach-thumbs img,.ludi-teach-thumbs span{width:48px;height:60px;border-radius:8px;border:1px solid #e4dfcc;background:#fffaf0;object-fit:contain}
.ludi-teach-thumbs span{display:flex;align-items:center;justify-content:center;font-size:.7rem;font-weight:800;color:#5d6f72}
.ludi-teach-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.ludi-teach-actions .ludi-btn{min-height:44px;padding:0 18px;font-size:.9rem}
.ludi-teach-mini-form{display:inline-flex;margin:0}
.ludi-teach-status{flex-basis:100%;font-size:.9rem;color:#3d6b4b;font-weight:700}
.ludi-teach-status:empty{display:none}
.ludi-teach-share{border-top:1px dashed #e4dfcc;padding-top:12px}
.ludi-teach-share h4{margin:0 0 4px;font-size:1.05rem}
.ludi-teach-share p{margin:0 0 8px;color:#5d6f72;font-size:.94rem}
.ludi-teach-share .ludi-btn{min-height:44px;font-size:.9rem}
.ludi-teach-link{font-weight:800;color:#294b53;text-decoration:underline;text-underline-offset:3px}
.ludi-teach-row{display:flex;flex-wrap:wrap;gap:4px 18px;align-items:center}
.ludi-teach-row form{margin:0}
.ludi-teach-manage{border-top:1px dashed #e4dfcc;padding-top:8px;justify-content:space-between}
.ludi-teach-manage details{flex:1;min-width:220px}
.ludi-teach-manage summary{cursor:pointer;font-weight:800;padding:8px 0;color:#294b53}
.ludi-teach-manage details form label{display:block;font-weight:700;margin:4px 0 6px}
.ludi-teach-legal{margin:18px 0 0;font-size:.88rem;color:#5d6f72;line-height:1.5}

.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

/* Pages publiques */
.ludi-teach-page{display:block!important;max-width:1120px;margin:0 auto;padding:24px 16px 64px}
.ludi-teach-page-head{max-width:780px;margin:14px 0 28px}
.ludi-teach-page-head h1{font-size:clamp(2rem,4.4vw,3rem);margin:6px 0 12px;overflow-wrap:anywhere}
.ludi-teach-page-head p{font-size:1.08rem;line-height:1.65;color:#5d6f72;margin:0 0 18px}
.ludi-teach-cta{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.ludi-teach-hero{background:#eef4ec;border-radius:22px;padding:30px;max-width:none;box-shadow:0 4px 0 #dfe8da}
.ludi-teach-hero h1{max-width:760px}
.ludi-teach-hero p{max-width:720px;color:#41595d}
.ludi-teach-page h2{font-size:clamp(1.5rem,3vw,2rem);margin:0 0 16px}
.ludi-teach-features,.ludi-teach-steps,.ludi-teach-levels,.ludi-teach-privacy{margin:40px 0}
.ludi-teach-features ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}
.ludi-teach-features li{background:#fffdf8;border:1px solid #e4dfcc;border-radius:20px;box-shadow:0 4px 0 #ebe5d2;padding:20px}
.ludi-teach-features h3{margin:8px 0 6px;font-size:1.2rem}
.ludi-teach-features p{margin:0 0 10px;color:#5d6f72;line-height:1.6}
.ludi-teach-features a,.ludi-teach-annual a,.ludi-teach-privacy a:not(.ludi-btn){color:#294b53;font-weight:800}
.ludi-teach-num{display:inline-flex;width:34px;height:34px;border-radius:50%;align-items:center;justify-content:center;background:#e07a5f;color:#fff;font-weight:900}
.ludi-teach-steps ol{margin:0;padding:0;list-style:none;counter-reset:s;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.ludi-teach-steps li{counter-increment:s;background:#fffaf0;border:2px dashed #e4dfcc;border-radius:20px;padding:18px 18px 18px 64px;position:relative;line-height:1.6;color:#41595d}
.ludi-teach-steps li::before{content:counter(s);position:absolute;left:18px;top:16px;width:34px;height:34px;border-radius:50%;background:#294b53;color:#fff;font-weight:900;display:flex;align-items:center;justify-content:center}
.ludi-teach-steps strong{color:#294b53}
.ludi-teach-chips{list-style:none;padding:0;margin:0 0 24px;display:flex;flex-wrap:wrap;gap:10px}
.ludi-teach-chips a{display:inline-flex;min-height:44px;align-items:center;padding:0 18px;border-radius:999px;background:#fff;border:2px solid #294b53;color:#294b53;font-weight:800;text-decoration:none}
.ludi-teach-chips a:hover{background:#294b53;color:#fff}
.ludi-teach-levels h3{font-size:1.35rem;margin:0 0 12px}
.ludi-teach-annual{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.ludi-teach-annual>div{background:#fffdf8;border:1px solid #e4dfcc;border-radius:18px;padding:14px 16px}
.ludi-teach-annual h4{margin:0 0 6px;font-size:1.05rem}
.ludi-teach-annual ul{margin:0;padding-left:18px;line-height:1.7}
.ludi-teach-privacy{background:#fffdf8;border:1px solid #e4dfcc;border-radius:22px;padding:24px;box-shadow:0 4px 0 #ebe5d2}
.ludi-teach-privacy p{color:#5d6f72;line-height:1.65;max-width:760px}
.ludi-teach-grid{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}
.ludi-teach-grid a{display:flex;flex-direction:column;gap:6px;height:100%;background:#fffdf8;border:1px solid #e4dfcc;border-radius:18px;box-shadow:0 4px 0 #ebe5d2;padding:12px;color:#294b53;text-decoration:none}
.ludi-teach-grid a:hover{transform:translateY(-2px)}
.ludi-teach-card-art{display:flex;align-items:center;justify-content:center;aspect-ratio:4/5;background:#fff;border-radius:12px;overflow:hidden}
.ludi-teach-card-art img{width:100%;height:100%;object-fit:contain}
.ludi-teach-card-art span{font-weight:800;color:#5d6f72}
.ludi-teach-card-type{font-size:.75rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#5d6f72}
.ludi-teach-grid strong{line-height:1.35}
@media (max-width:760px){.ludi-teach{padding:18px}.ludi-teach-new{grid-template-columns:1fr}.ludi-teach-hero{padding:22px}}
@media (max-width:560px){.ludi-teach-inline{flex-direction:column;align-items:stretch}.ludi-teach-actions .ludi-btn,.ludi-teach-mini-form,.ludi-teach-mini-form .ludi-btn,.ludi-teach-cta .ludi-btn{width:100%}.ludi-teach-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ludi-teach-thumbs img:nth-child(n+4),.ludi-teach-thumbs span:nth-child(n+4){display:none}}
.ludi-teach-legal a{color:#294b53;font-weight:800;text-decoration:underline;text-underline-offset:3px}.ludi-teach-manage details{border:0!important;box-shadow:none!important;background:none!important}
