:root{color-scheme:light;--ink:#1f1740;--purple:#3b2a81;--pale:#f7f1fa;--line:#dfd0ef}*{box-sizing:border-box}html{scroll-padding-top:1rem}body{margin:0;display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh;font:16px/1.45 system-ui,sans-serif;color:var(--ink);background:var(--pale)}a{color:inherit;text-decoration:none}a:focus-visible{outline:3px solid #4181ff;outline-offset:3px}small{display:block}.skip{position:absolute;left:.5rem;top:.5rem;transform:translateY(-200%);background:white;padding:.5rem;z-index:3}.skip:focus{transform:none}.sidebar{color:white;background:linear-gradient(165deg,#171133,#282059 72%,#4e3476);padding:1.25rem .85rem;min-width:0}.brand{display:flex;align-items:center;gap:.7rem;margin:.1rem .3rem 1.4rem;font-size:1.2rem}.brand img{border-radius:50%;border:1px solid #c299ff;object-fit:cover}.brand em{color:#ffc95c}.brand small,.current small{color:#e0d5ff;font-size:.8rem}.sidebar nav{display:grid;gap:.22rem}.sidebar nav a{padding:.65rem .75rem;border-radius:.65rem}.sidebar nav a:hover,.sidebar nav [aria-current]{background:#4b3d95}.current{display:grid;gap:.45rem;margin-top:1.3rem;padding:.85rem;border:1px solid #9a82d5;border-radius:.9rem}progress{width:100%;height:.65rem;accent-color:#e79f44}.hero{min-height:310px;display:flex;align-items:center;background:#1b143f;background-image:linear-gradient(90deg,#1a133d 0%,#1b143f 21%,#1b143f00 56%),url('/lio-banniere.webp?v=2');background-repeat:no-repeat;background-position:right center;background-size:100% 100%,auto 100%;color:white;padding:2rem clamp(1.15rem,4vw,3.5rem)}h1{font-size:clamp(2.5rem,4.8vw,4.5rem);line-height:.96;letter-spacing:-.045em;margin:0;font-weight:850}.hero h1 span{display:block;color:#ffd16c;font-style:italic}.hero p{margin:.8rem 0 1.1rem}.cta{display:inline-flex;align-items:center;gap:.5rem;border-radius:2rem;background:#fff;color:#26194f;padding:.65rem 1rem;font-weight:750}.dashboard{padding:clamp(.85rem,2vw,1.75rem);display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,300px);gap:1rem;align-items:start}.primary,.secondary{display:grid;gap:1rem;min-width:0}.resources{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.65rem}.resources a{min-width:0;border-radius:.9rem;background:linear-gradient(145deg,var(--light),var(--dark));color:white;padding:.85rem;min-height:145px;display:flex;flex-direction:column;gap:.35rem;box-shadow:0 4px 10px #26145622;transition:transform .15s ease}.resources a:nth-child(1){--light:#6557b8;--dark:#383484}.resources a:nth-child(2){--light:#a75518;--dark:#873900}.resources a:nth-child(3){--light:#8b53bc;--dark:#5b2788}.resources a:nth-child(4){--light:#33866c;--dark:#175d58}.resources a:nth-child(5){--light:#af507f;--dark:#833358}.resources span{font-size:2.1rem;line-height:1.1}.resources strong{font-size:clamp(.92rem,1.4vw,1.2rem);line-height:1.15}.resources small{font-size:.78rem}.resources a:hover{transform:translateY(-3px)}.resources a:active,.cta:active{transform:scale(.98)}h2{font-size:1.22rem;line-height:1.18;margin:0 0 .65rem}.chapter-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.55rem}.chapter{display:grid;align-content:start;gap:.45rem;border:1px solid var(--line);border-radius:.7rem;background:#eee7f7;padding:.7rem;min-width:0;font-size:.82rem}.chapter span{color:#514584;font:italic 1.2rem Georgia,serif}.chapter.active{background:#302363;border-color:#d48d4b;color:white}.chapter.active span{color:#e1d0fb}.chapter a{text-decoration:underline}.panel{background:white;border:1px solid var(--line);padding:1rem;border-radius:1rem;box-shadow:0 4px 14px #25114c0d}.panel p{font-size:.83rem;margin:.6rem 0 0}.stats,.lio{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}.stats ul{margin:0;padding-left:1.05rem;font-size:.82rem}.ring{display:grid;place-items:center;width:4.8rem;height:4.8rem;border-radius:50%;background:conic-gradient(#e7a045 var(--fill,0%),#e7ddf3 0)}.ring strong{display:grid;place-items:center;width:3.65rem;height:3.65rem;border-radius:50%;background:white}.lio>div{flex:1;min-width:110px}.lio img{width:84px;border-radius:.7rem}.quick a{display:inline-block;border:1px solid var(--line);padding:.35rem .6rem;border-radius:.5rem;font-size:.8rem;margin:.15rem}.quick a:hover{background:#eee7f7}.exam{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap;border-radius:.9rem;background:linear-gradient(115deg,#31225f,#5841a6);color:white;padding:.75rem}.exam h2,.exam p{margin:.1rem 0}.exam img{width:85px;border-radius:.65rem}.exam .cta{margin-left:auto;font-size:.85rem}
@media(max-width:1170px){.dashboard{grid-template-columns:1fr}.secondary{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:820px){body{display:block}.sidebar{padding:.7rem}.brand{margin:0 .3rem .55rem}.sidebar nav{display:flex;flex-wrap:wrap}.sidebar nav a{font-size:.82rem;padding:.42rem .55rem}.current{display:none}.hero{min-height:250px;background-size:100% 100%,auto 100%}}@media(max-width:570px){.hero{background-position:right center;background-image:linear-gradient(90deg,#1a133df7,#1a133d55),url('/lio-banniere.webp?v=2');min-height:225px}.resources,.chapter-list{grid-template-columns:repeat(2,minmax(0,1fr))}.resources a{min-height:110px}.secondary{grid-template-columns:1fr}.exam .cta{margin-left:0}}@media(prefers-reduced-motion:reduce){.resources a{transition:none}.resources a:hover,.resources a:active,.cta:active{transform:none}}

/* Accueil de l’académie */
body{grid-template-columns:clamp(190px,14.7vw,250px) minmax(0,1fr);background:linear-gradient(135deg,#faf5f8,#f4eaf4)}
.sidebar{position:relative;isolation:isolate;min-height:100dvh;padding-bottom:clamp(5rem,11vw,11rem);border-right:1px solid #8671ca;background:linear-gradient(165deg,#171034,#222059 72%,#594496)}
.sidebar::after{content:"";position:absolute;z-index:-1;inset:auto 0 0;height:clamp(175px,20vw,355px);background:linear-gradient(#27205f,transparent 32%),url('/accueil-jardin.webp') center bottom/cover no-repeat;pointer-events:none}
.sidebar nav a{display:flex;align-items:center;gap:.7rem;font-weight:650;padding:.58rem .64rem}.sidebar nav [aria-current]{border:1px solid #9189ff;background:linear-gradient(115deg,#5955b7,#454998);box-shadow:inset 0 0 12px #9b91ff70,0 0 9px #7861f540}.sidebar nav svg{width:24px;height:24px;flex:none}.chapter-rule{margin:1rem .35rem .8rem;border-top:1px solid #8879ce}.current{margin-top:0;background:#211956ce;border-color:#a092e2;box-shadow:inset 0 0 10px #7b69c437}.current small{font-weight:800;color:white}.chapter-identity{display:flex;align-items:center;gap:.5rem}.chapter-identity img{width:40px;height:42px;object-fit:cover;border-radius:.35rem}
.hero{position:relative;min-height:clamp(270px,20vw,370px);padding:0;background:#211743 url('/accueil-entete.webp') center center/100% 100% no-repeat;display:block}.hero-tools{position:absolute;z-index:2;top:0;right:0;display:flex;align-items:center;gap:clamp(.55rem,3vw,3rem);padding:.48rem .8rem;background:linear-gradient(90deg,#211743d9,#211743fa);border-radius:0 0 0 1rem}.streak{display:flex;align-items:center;gap:.4rem;border:1px solid #8c75c7;border-radius:2rem;padding:.32rem .65rem;font-size:.9rem}.streak strong{color:#ffd257}.hero-tools button{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#55418b;color:white;border:1px solid #9f89dd;cursor:pointer}.hero-tools button svg{width:26px;height:26px}.hero-copy{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.hero-links{position:absolute;bottom:.9rem;left:3.4%;display:flex;gap:.3rem;flex-wrap:wrap;background:linear-gradient(100deg,#3f2f7a,#211641);padding:.35rem .55rem;border-radius:1.2rem;box-shadow:0 0 0 1px #9482cd55}.hero-links a{display:flex;align-items:center;gap:.35rem;color:white;padding:.32rem .45rem;font-size:.84rem;font-weight:650}.hero-links svg{width:22px;height:22px}
.dashboard{grid-template-columns:minmax(0,1fr) minmax(265px,27.4%);gap:1rem;padding:clamp(1rem,1.65vw,1.75rem);align-items:start}.secondary{margin-top:-2.25rem;position:relative;z-index:1;gap:.85rem}.primary{gap:clamp(1.25rem,2vw,2rem)}.resources{gap:clamp(.45rem,1vw,.9rem)}.resources a{position:relative;isolation:isolate;overflow:hidden;min-height:clamp(170px,13vw,235px);justify-content:center;padding:clamp(.65rem,1.4vw,1.45rem);border:1px solid #ffffffa0;border-radius:1.1rem;box-shadow:inset 0 0 18px #ffffff32,0 5px 12px #4726622e;text-shadow:0 1px 3px #1d153a80}.resources a::after{content:attr(data-formula);position:absolute;z-index:-1;right:-.12em;bottom:.06em;color:#fff4;font:italic 3rem Georgia,serif}.resources a:nth-child(1){--light:#7776e0;--dark:#373080}.resources a:nth-child(2){--light:#ffb255;--dark:#a04c10}.resources a:nth-child(3){--light:#a065db;--dark:#4e277e}.resources a:nth-child(4){--light:#76c9a2;--dark:#236964}.resources a:nth-child(5){--light:#f298c1;--dark:#954172}.resources svg{width:clamp(34px,5vw,76px);height:clamp(34px,5vw,76px);margin-bottom:.25rem;filter:drop-shadow(0 1px 4px #fff6)}.resources strong{font-size:clamp(1rem,1.55vw,1.55rem)}.resources small{font-size:clamp(.8rem,1.04vw,1rem)}svg.home-icon{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.chapters h2,.panel h2{display:flex;align-items:center;gap:.5rem}.chapters h2{font-size:clamp(1.3rem,1.8vw,2rem);margin-bottom:.9rem}.chapters h2 svg,.panel h2 svg{width:1.35em;height:1.35em;flex:none}.chapter{min-height:clamp(105px,9vw,155px);padding:.8rem;border-radius:.9rem;background:linear-gradient(145deg,#f4effb,#e9e2f4);box-shadow:0 2px 5px #4a336621}.chapter.active{border:2px solid #ffb45f;box-shadow:0 0 0 2px #ffe1a7,inset 0 0 13px #f78c6c65}.chapter span{font-size:clamp(1.1rem,1.65vw,1.6rem)}.chapter strong{font-size:clamp(.82rem,1.1vw,1.05rem)}
.panel{background:linear-gradient(145deg,#fffbff,#f5eef7);border-radius:1.1rem;box-shadow:0 4px 14px #3f265920;padding:1rem}.panel h2{font-size:clamp(1rem,1.4vw,1.32rem)}#progression h2{background:#f1e4fa;margin:-1rem -1rem .85rem;padding:.7rem 1rem;border-radius:1.1rem 1.1rem 0 0}.ring{width:clamp(4.3rem,7vw,6.2rem);height:clamp(4.3rem,7vw,6.2rem);background:conic-gradient(#ff923c var(--fill,0%),#d8cde6 0)}.ring strong{width:75%;height:75%;font-size:clamp(.9rem,1.5vw,1.4rem)}.stats ul{list-style:none;padding:0;display:grid;gap:.35rem;font-size:.87rem}.stats li::before{content:"";display:inline-block;width:.7rem;height:.7rem;border-radius:50%;border:2px solid var(--dot);margin-right:.35rem}.stats li:nth-child(1){--dot:#329657}.stats li:nth-child(2){--dot:#5068d8}.stats li:nth-child(3){--dot:#a7a0b7}
.lio{display:grid;grid-template-columns:minmax(0,1fr) minmax(72px,38%);background:linear-gradient(135deg,#ede3ff,#fbf2ff);padding:.65rem}.lio h2{background:#51408b;color:white;padding:.38rem .55rem;border-radius:.55rem}.lio p{background:#fffcff;padding:.55rem;border-radius:.55rem}.lio img{width:100%;align-self:end}.quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem}.quick h2{grid-column:1/-1}.quick a,.quick button{display:flex;justify-content:center;align-items:center;text-align:center;padding:.48rem .34rem;margin:0;border:1px solid #ddd0eb;border-radius:.65rem;background:#fffbff;color:inherit;font:inherit;font-size:.8rem;font-weight:650;cursor:pointer;box-shadow:0 3px 6px #25114c17}.exam{min-height:clamp(95px,8vw,145px);padding:.8rem 1.05rem;background:linear-gradient(110deg,#25194e,#5850b4);box-shadow:0 4px 11px #21174330}.exam img{width:clamp(85px,13vw,190px);max-height:105px;object-fit:cover}.exam h2{font-style:italic;font-size:clamp(1.15rem,1.7vw,1.65rem)}#profile{width:min(90vw,430px);border:1px solid #af9acd;border-radius:1.2rem;color:#241747;padding:1.2rem}#profile::backdrop{background:#191132b8}#profile input{display:block;width:100%;padding:.6rem;border:1px solid #8d79ad;border-radius:.55rem;font:inherit}#profile label{display:block;font-weight:700}.profile-actions{display:flex;gap:.5rem}.profile-actions button{font:inherit;padding:.48rem .7rem;border-radius:.55rem;border:1px solid #7561a0;background:#f4edf9;color:#241747;cursor:pointer}.profile-actions button:first-child{background:#423087;color:white}button:focus-visible{outline:3px solid #da9b46;outline-offset:3px}
@media(max-width:1200px){.dashboard{grid-template-columns:minmax(0,1fr) minmax(235px,29%)}.secondary{grid-template-columns:1fr}.stats{flex-wrap:wrap}}@media(max-width:1000px){.dashboard{grid-template-columns:1fr}.secondary{margin-top:0;grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){.sidebar{min-height:0;padding-bottom:.7rem}.sidebar::after,.chapter-rule,.current{display:none}.sidebar nav svg{width:18px;height:18px}.hero{min-height:245px}}
@media(max-width:570px){.hero{min-height:270px;background-image:linear-gradient(90deg,#211743 7%,#211743ae 60%,#21174325),url('/lio-banniere.webp?v=2');background-size:100% 100%,auto 100%;background-position:right center}.hero-copy{clip-path:none;width:auto;height:auto;overflow:visible;left:1rem;top:4.6rem}.hero-copy h1{font-size:clamp(1.8rem,7vw,3rem)}.hero-copy p{margin:.5rem 0}.hero-links{bottom:.6rem;left:.65rem;right:.65rem;gap:0}.hero-links a{font-size:.74rem;padding:.3rem}.hero-links svg{width:16px;height:16px}.secondary{grid-template-columns:1fr}.resources a{min-height:128px}.exam .cta{width:100%;justify-content:center}.hero-tools button{width:38px;height:38px}}
@media(min-width:821px){.hero-links{left:3.2%;top:71%;bottom:auto;width:38%;min-height:21%;justify-content:space-evenly;align-items:center;gap:0;padding:.35rem}.hero-links a{padding:.22rem;font-size:clamp(.68rem,1vw,.9rem)}}

/* Proportions et détails de l'accueil */
.brand strong { white-space: nowrap; }
.sidebar nav a { gap: .55rem; font-size: clamp(.78rem, 1.05vw, 1rem); }
.more-links { margin: .65rem .3rem 0; }
.more-links summary { cursor: pointer; color: #eee6ff; font-size: .83rem; }
.more-links nav { margin-top: .35rem; padding: .3rem; border-radius: .65rem; background: #241a55; }
.hero-tools button svg { fill: currentColor; stroke-width: .8; }
.quick a, .quick button { gap: .4rem; }
.quick a svg, .quick button svg { flex: 0 0 1.25em; width: 1.25em; height: 1.25em; }
.chapter-meter { display: block; border: 0; overflow: hidden; border-radius: 2rem; background: #9384bd66; }
.chapter-meter::-webkit-progress-bar { background: #9384bd66; border-radius: 2rem; }
.chapter-meter::-webkit-progress-value { background: linear-gradient(90deg,#ff9e52,#ffd477); border-radius: 2rem; }
@media (min-width:821px) {
  .sidebar { padding-top: clamp(.65rem,1.15vw,1.1rem); }
  .brand { margin-bottom: clamp(.6rem,1vw,1.15rem); }
  .sidebar nav a { padding-block: clamp(.35rem,.68vw,.68rem); }
  .chapter-rule { margin-top: .75rem; }
  .hero { min-height: clamp(250px,19.8vw,380px); }
  .hero-links { top: 71%; bottom: 1.5%; min-height: 0; width: 38%; }
  .resources a { min-height: clamp(145px,12.5vw,240px); }
  .primary { gap: clamp(.9rem,1.55vw,1.8rem); }
}