*{box-sizing:border-box}
:root{color-scheme:light;--green:#123d32;--deep:#071b16;--ink:#172e26;--muted:#52675b;--gold:#ab8750;--paper:#f6f3eb;--line:#dcdcd0;--serif:Georgia,"Noto Naskh Arabic",serif;--sans:Roboto,"Segoe UI",Arial,sans-serif}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 var(--sans)}
button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #ba8f39;outline-offset:3px}button:disabled{opacity:.5;cursor:default}
[hidden]{display:none!important}.sr,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.skip:focus{position:fixed;top:.5rem;left:.5rem;z-index:9;background:white;padding:.5rem}
.layout{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:100vh}
.rail{position:sticky;top:0;height:100vh;height:100dvh;background:linear-gradient(155deg,#081611,#11352a);color:#e5e9db;display:flex;flex-direction:column;overflow:auto;z-index:3}
.rail-head{padding:32px 22px 34px;border-bottom:1px solid #bca66830}.rail-head img{display:block;width:100%;max-width:184px;height:auto;mix-blend-mode:lighten}
#sections{display:flex;flex-direction:column;gap:4px;padding:24px 12px}.navlink,.rail-foot a,.rail-foot button{display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:6px;color:#e0e8da}
.navlink svg,.rail-foot svg{color:#d5bb84;flex-shrink:0}.navlink[aria-current],.rail-foot a[aria-current]{background:#dfc58e;color:#132d21;font-weight:650}.navlink[aria-current] svg,.rail-foot a[aria-current] svg{color:#284b39}
.rail a:hover,.rail button:hover{background:#ffffff17}.rail a[aria-current]:hover{background:#e8cfa0}
.subnav{border-left:1px solid #687659;margin:0 12px 5px 27px;padding-left:17px}.sub{display:block;border-radius:4px;padding:6px 12px;color:#cfdbce;font-size:.96rem}.sub[aria-current]{color:#ffe7b5;font-weight:bold;background:#ffffff13}.sub[aria-current]:hover{background:#ffffff22!important}
.rail-foot{padding:14px 12px 26px;margin-top:auto;border-top:1px solid #bca66830}.rail-foot button{background:none;border:0;width:100%;text-align:left}.rail-foot a,.rail-foot button{font-size:.92rem}
.workarea{width:100%;max-width:1590px;margin:0 auto;padding:clamp(26px,4vw,70px);min-width:0}
#openMenu,.drawer-close,#shade{display:none}.topline{display:flex;gap:20px;align-items:end;justify-content:space-between;margin-bottom:28px}.overline{color:#7b6339;letter-spacing:.14em;text-transform:uppercase;font:700 .72rem/1.5 var(--sans)}
h1,h2,.collection strong{font-family:var(--serif);font-weight:500;line-height:1.08;letter-spacing:-.043em;margin:0}
h1{font-size:clamp(2.5rem,4.6vw,4.8rem);overflow-wrap:anywhere}.topline h1{margin-top:7px}h2{font-size:clamp(1.7rem,2.4vw,2.6rem)}
#find{display:flex;align-items:center;gap:8px;max-width:350px;width:34%;min-width:235px;color:var(--muted);background:#fffdf8;border:1px solid #c8d0c2;border-radius:30px;padding:5px 6px 5px 15px}
#find>svg{width:19px;flex-shrink:0}#find input{background:transparent;color:var(--ink);min-width:0;flex:1;border:0;padding:5px 0;font-size:.95rem}#find:focus-within{outline:2px solid #95733a}#find input:focus{outline:none}#find button,.round{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:0;background:var(--green);color:white;flex-shrink:0}
.collections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(10px,1.4vw,24px)}
.collection{position:relative;display:block;aspect-ratio:1.27;border-radius:8px;overflow:hidden;background:var(--green);color:#fff8df;border:1px solid #102f2229;isolation:isolate}
.collection img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;z-index:-2;transition:transform .32s ease}
.collection:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,transparent 19%,#0b150f16 40%,#091911e5 100%)}
.collection:hover img{transform:scale(1.035)}.collection-text{display:grid;gap:4px;position:absolute;bottom:clamp(14px,1.6vw,28px);left:clamp(12px,1.7vw,28px)}.collection-text span{font-size:.69rem;text-transform:uppercase;font-weight:bold;letter-spacing:.14em;color:#f6e2b9}.collection strong{font-size:clamp(1.85rem,3.2vw,3.6rem);font-style:italic}
.round{position:absolute;right:13px;top:13px;color:#fff4d8;background:#1025196b;border:1px solid #fff3cc83;width:32px;height:32px}.round svg{width:17px}
.shelf{margin-top:clamp(26px,3.8vw,52px)}.shelf h2{margin-bottom:16px}.title-list{border-top:1px solid var(--line)}
.result{display:flex;align-items:center;gap:14px;padding:13px 3px;border-bottom:1px solid var(--line)}.result:hover{background:#eaece1}.kindpic{display:grid;place-items:center;flex-shrink:0;width:44px;height:46px;color:#3c5844;background:#e2e8d8;border-radius:6px}.kindpic.audio{color:#7b5a2a;background:#ede2cb}.kindpic.book{color:#5d6150;background:#e4e6d9}
.rowtext{min-width:0;display:grid;gap:1px;flex:1}.rowtext strong{font:600 1.08rem/1.35 var(--sans);overflow-wrap:anywhere}.rowtext span,.empty,.reader header p,.account p{color:var(--muted)}.rowtext span{font-size:.87rem}
.item-action,.return,.folder{display:inline-flex;align-items:center;gap:8px}.item-action{font-size:.84rem;color:var(--green)}.item-action svg{width:16px}.crumb,.return{margin-bottom:19px;color:var(--muted);font-size:.93rem}.crumb a:hover,.return:hover{text-decoration:underline}
.folders{display:flex;flex-wrap:wrap;gap:8px}.folder,.plain,.paging button{border:1px solid #c3ccbd;background:#fffdf6;color:var(--green);border-radius:8px;padding:9px 12px}.folder>svg:first-child{color:#92703b}.folder>svg:last-child{width:16px}.plain{margin-top:12px}
.account,.reader{border:1px solid var(--line);border-radius:10px;background:#fffcf5;padding:clamp(16px,3.2vw,48px)}
.reader h1,.account h1{font-size:clamp(2rem,4vw,3.8rem);margin:.16em 0 .25em}.account h2{margin:28px 0 12px}.reader header{padding-bottom:14px}
.surface{scroll-margin:10px}.surface-video video{display:block;width:100%;max-height:72vh;border-radius:7px;background:#071911}.surface-audio{border-radius:8px;background:#e6eadf;padding:18px;display:flex;gap:16px;align-items:center}.surface-audio img{width:88px;height:88px;border-radius:6px;object-fit:cover}.surface-audio audio{min-width:0;flex:1}.surface .paper{display:grid;place-items:center;overflow:hidden}.paper canvas{display:block;max-width:100%;height:auto}.paging{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding:9px 0 18px;font-size:.92rem}.textbook{max-width:66ch;white-space:pre-wrap;overflow-wrap:anywhere;font:1.2rem/1.9 var(--serif)}
#status:not(:empty){position:fixed;z-index:6;left:50%;transform:translateX(-50%);bottom:20px;max-width:92vw;width:max-content;border:1px solid #b5a075;border-radius:7px;background:#fff2cf;color:#553b1e;padding:12px 17px}
.welcome{min-height:100vh;min-height:100svh;display:grid;grid-template-columns:1.15fr 1fr}.welcome-art{position:relative;min-height:360px;background:#123d32;overflow:hidden;isolation:isolate;display:flex;align-items:flex-end;color:#fff9e7;padding:clamp(30px,5vw,86px)}.welcome-art>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.welcome-art:before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#071d16 1%,#0a1d1544 75%);z-index:-1}.welcome-logo{width:min(360px,100%);height:auto;mix-blend-mode:lighten}.welcome-art p{margin:10px 0 0;font-family:var(--serif);font-style:italic;font-size:1.4rem}
.welcome-form{display:grid;place-items:center;padding:clamp(20px,5vw,80px)}#enter{width:min(100%,390px);display:grid;gap:12px}#enter h1{margin-bottom:20px}#enter label{font-weight:600}#enter input{border:1px solid #aeb9a9;border-radius:7px;background:#fffdf7;padding:14px 16px;font-size:1.16rem;letter-spacing:.06em;width:100%}#enter button{display:flex;justify-content:space-between;align-items:center;color:#fffdf2;background:var(--green);border:0;border-radius:7px;padding:14px 17px}.form-error{color:#8e3520;margin:0}.form-error:empty{display:none}
@media(max-width:1050px){.layout{grid-template-columns:196px minmax(0,1fr)}.workarea{padding:28px}.topline{flex-wrap:wrap;align-items:center}.collection{aspect-ratio:1.05}}
@media(max-width:760px){.layout{display:block}.workarea{padding:14px 17px 40px}.rail{position:fixed;inset:0 auto 0 0;width:min(290px,85vw);visibility:hidden;transform:translateX(-101%);transition:transform .2s}.drawer-open{overflow:hidden}.drawer-open .rail{visibility:visible;transform:none}.rail-head{display:flex;align-items:center;gap:16px}.drawer-close,#openMenu{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid var(--line);background:#fffdf5;color:var(--green);border-radius:6px}.drawer-close{margin-left:auto;background:transparent;color:#fff4d8;border:0;padding:5px}#openMenu{margin-bottom:19px}.drawer-open #shade{display:block;background:#071a15a6;position:fixed;inset:0;border:0;z-index:2}.topline{gap:15px;margin-bottom:20px}.topline h1{font-size:2.55rem}#find{width:100%;max-width:none;min-width:0}.collections{gap:8px}.collection{aspect-ratio:.69}.collection strong{font-size:clamp(1.22rem,4vw,2rem)}.collection-text{left:10px;bottom:12px}.collection-text span{font-size:.58rem;letter-spacing:.055em}.round{width:23px;height:23px;right:6px;top:6px}.round svg{width:13px}.result{gap:9px}.item-action{font-size:.76rem}.kindpic{width:36px;height:40px}.welcome{grid-template-columns:1fr;grid-template-rows:minmax(210px,35svh) 1fr}.welcome-art{min-height:0;padding:25px}.welcome-logo{width:230px}.welcome-art p{font-size:1.1rem}.welcome-form{padding:32px 24px;align-items:start}.surface-audio img{width:48px;height:48px}.surface-audio{padding:10px;gap:6px}.surface-audio audio{width:70%}}
@media(max-width:360px){.workarea{padding-inline:11px}.collection-text{left:7px}.item-action svg{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.profiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),220px));gap:14px}
.profile-tile,.favorite,#new-profile button{color:var(--green);border:1px solid #bac5b5;border-radius:8px;background:#fffdf6;padding:12px 16px}
.profile-tile{display:grid;justify-items:start;gap:8px;min-height:110px;text-align:left;overflow-wrap:anywhere}
.profile-tile svg{color:#97763e}.profile-tile strong{font:500 1.5rem var(--serif)}
.favorite[aria-pressed=true]{background:#e9dfc5}.favorite{margin:4px 0 10px}
#new-profile{display:grid;gap:10px;max-width:320px;margin:32px 0}
#new-profile input{min-width:0;border:1px solid #aeb9a9;border-radius:7px;padding:12px}
#new-profile button{background:var(--green);color:white}
.reading-tools,.reading-tools form,.mark-list{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.55rem}.reading-tools{padding:.8rem;background:#f6f1e4;color:#163f34}.reading-tools button,.reading-tools input{border:1px solid #b5c3b4;border-radius:.5rem;padding:.55rem .8rem;background:#fffdf6;color:#184336;font:inherit}.reading-tools button:focus-visible{outline:3px solid #c38324}.reading-tools input{width:5rem}.mark-list:empty{display:none}
.poster-thumb{width:3.4rem;height:4.2rem;object-fit:cover;border-radius:.35rem}.poster-main{width:min(12rem,40%);aspect-ratio:2/3;object-fit:cover;border-radius:.6rem;float:inline-end;margin:0 0 1rem 1rem}.reader header:after{content:"";display:block;clear:both}.chapter-list{padding:.8rem;color:#153e32;background:#f5f0e2}.chapter-list button{display:block;margin:.4rem 0}.subtitle-choice{margin:.5rem}.surface-video.cinema .subtitle-choice{position:relative;z-index:2}

.kids-ages a[aria-current=page]{background:#194f40;color:#fff}
.kids-activity{padding:1rem 0;border-bottom:1px solid #d5cdbb;max-width:65ch}
.kids-activity h3{margin:.4rem 0}
.kids-activity summary{cursor:pointer;font-weight:600;line-height:1.55}
.kids-activity p{line-height:1.65}

.kids-sections{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:14px;margin-top:24px}
.kids-sections .folder{padding:1.35rem 1rem;gap:.8rem;min-height:84px;box-sizing:border-box}
.kids-sections strong{flex:1}
.kids-contents{margin-top:24px}
.kids-activity p,.kids-activity summary{white-space:pre-line}

/* Les activités restent accessibles en une sélection, au doigt ou à la télécommande. */
.kids-door,.kid-tile{color:#193c31;text-decoration:none}
.kids-door{display:flex;align-items:center;gap:14px;padding:12px 20px;margin:12px 0 20px;border:1px solid #bbcabd;border-radius:16px;background:#e6efe6}
.kids-door strong{font-size:1.28rem}.kids-door-arrow{margin-left:auto}
.kids-sign{display:inline-flex;align-items:center;justify-content:center;flex:none;width:52px;height:52px;border-radius:15px;background:#245745;color:#fff}
.kids-sign svg{width:30px;height:30px}
.kid-question{font-size:1.35rem;margin:10px 0 14px}
.kid-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.kid-tile{display:flex;align-items:center;gap:14px;min-height:96px;padding:14px;border:1px solid #c9c4ae;border-radius:18px;background:#faf5e8;box-sizing:border-box}
.kid-tile strong{font-size:1.15rem;line-height:1.22}.kid-series .kids-sign{background:#465883}.kid-shorts .kids-sign{background:#965234}.kid-audio .kids-sign{background:#634d7c}.kid-books .kids-sign{background:#21626c}.kid-learning .kids-sign{background:#7a591d}
.kid-age-choice{margin:22px 0 14px}.kid-age-choice>span{display:block;font-weight:650;margin-bottom:8px}.kid-age-choice .folders{margin:0}
.kid-back{margin-bottom:6px}.kid-tile:hover,.kids-door:hover{background:#fffaf0}
.kid-tile:focus,.kids-door:focus,.kid-back:focus,.kid-age-choice a:focus{outline:4px solid #ac5a0a;outline-offset:3px}
@media(max-width:900px){.kid-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.kid-choices{gap:10px}.kid-tile{flex-direction:column;justify-content:center;gap:8px;text-align:center;padding:12px 6px}.kid-tile strong{font-size:1rem}.kids-sign{width:44px;height:44px}.kids-sign svg{width:26px;height:26px}}

.global-find{display:flex;justify-content:flex-end;margin-bottom:12px}.global-find #find{max-width:36rem;width:100%}
.browse-folders{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:12px 0 20px}
.browse-folders .browse-folder{display:flex;align-items:center;gap:12px;padding:16px;min-height:64px;background:#fcfaf1;border:1px solid #c9c4ae;border-radius:12px}
.browse-folder strong{flex:1;overflow-wrap:anywhere}.browse-folder>svg{flex:none}.browse-folder:focus{outline:4px solid #ac5a0a;outline-offset:2px}
@media(max-width:520px){.browse-folders{grid-template-columns:minmax(0,1fr)}}

.request-page{max-width:760px}.request-page h1{margin-top:0}.request-form{display:grid;gap:14px;max-width:36rem;margin:20px 0}.request-form label{display:grid;gap:6px;font-weight:600}.request-form input,.request-form select{width:100%;box-sizing:border-box;font:inherit;color:#193c31;background:#fffdf6;padding:12px;border:1px solid #a9b5a8;border-radius:8px}.request-form button{justify-self:start;min-height:44px;background:#234b3b;color:white;padding:10px 20px;border-radius:8px}.request-form :focus{outline:3px solid #ac5a0a;outline-offset:3px}.request-page li{margin:8px 0;overflow-wrap:anywhere}
