@font-face{font-family:Caveat;src:url('assets/Caveat.ttf') format('truetype');font-display:swap}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;color:#0B1E3D;background:#FBF6E9;font-family:Arial,Helvetica,sans-serif;line-height:1.5}a{color:inherit}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}:focus-visible{outline:3px solid #3D7CC9;outline-offset:5px}header,main,footer{max-width:1160px;margin:auto}header{padding:25px 30px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #3D7CC9}.brand{text-decoration:none;font:700 36px Caveat,cursive;line-height:1}.brand span{display:block;font:11px Arial,sans-serif;letter-spacing:1.6px;margin-top:10px;text-transform:uppercase}.instagram{font-size:13px;text-underline-offset:5px}main{padding:0 30px}.intro{padding:65px 0 70px;display:grid;grid-template-columns:1.1fr 1fr;gap:70px;align-items:center}.eyebrow{letter-spacing:2px;font-size:11px;font-weight:700;color:#567087;margin:0 0 12px}h1{font-size:clamp(38px,4.8vw,62px);letter-spacing:-2px;line-height:1.1;margin:0 0 25px;font-weight:700}h1 span{display:block;font:600 1.15em Caveat,cursive;letter-spacing:0;position:relative}h1 span:after{content:'';display:block;width:76%;height:5px;background:#E8932A;transform:rotate(-1.3deg);border-radius:80%;margin-top:3px}.lead{color:#536173;font-size:17px;margin:25px 0}.primary{display:inline-flex;align-items:center;justify-content:center;gap:24px;background:#0B1E3D;color:white;text-decoration:none;border:1px solid #0B1E3D;border-radius:5px;padding:13px 19px;font-size:13px;font-weight:600;cursor:pointer}.primary:hover{background:#25476d}.notebook{background:#fffdf8;border:1px solid #b6c8db;border-radius:3px 13px 4px 7px;padding:25px 22px 22px;transform:rotate(1deg);box-shadow:7px 9px 0 #eae6dc;position:relative}.note-title{font:600 25px Caveat,cursive;background:#e4edfc;display:inline-block;padding:2px 9px;transform:rotate(-2deg)}.notebook svg{display:block;width:100%;margin:15px 0;font:20px Caveat,cursive}.note-tag{font:23px Caveat,cursive;color:#567087}.section-head{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:26px}h2{font:600 38px Caveat,cursive;margin:0;line-height:1.2}.small-note{font-size:12px;color:#677282;max-width:210px}fieldset{padding:0;border:0;margin:0 0 28px}legend,.filters label{font-size:12px;font-weight:700;margin-bottom:12px}.level-options{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.level-options button{text-align:left;border:1px solid #bbc9d7;background:#fffcf5;border-radius:7px;padding:16px 20px;color:#0B1E3D;font:600 30px Caveat,cursive;cursor:pointer;position:relative}.level-options button span{font:11px Arial;color:#6c7b8b;display:block;margin-bottom:5px}.level-options button small{display:block;font:12px Arial;margin-top:6px;color:#536173}.level-options button[aria-pressed=true]{background:#EAF2FF;border:2px solid #3D7CC9;padding:15px 19px;box-shadow:0 3px 0 #cadbf2}.level-options button[aria-pressed=true]:after{content:'✓';position:absolute;right:17px;top:15px;font:20px Arial;color:#3D7CC9}.filters{display:flex;gap:18px;align-items:end;padding:20px 0;border-top:1px solid #d9dfdf;border-bottom:1px solid #d9dfdf}.filters label{display:grid;gap:8px;margin:0;min-width:190px}.search-label{flex:1}select,input{width:100%;padding:12px;border:1px solid #c4cfd7;border-radius:5px;background:#fffdf8;color:#0B1E3D;min-height:46px}.results-heading{display:flex;justify-content:space-between;align-items:center;margin:25px 0 24px}h3{font-size:15px;font-weight:600;margin:0}#count{color:#65758a;font-size:12px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.card{border:1px solid var(--stroke);background:var(--pale);border-radius:5px 9px 5px 5px;position:relative;padding:0 17px 18px;display:flex;flex-direction:column}.card-label{font:600 22px Caveat,cursive;display:inline-block;align-self:flex-start;position:relative;top:-12px;padding:0 12px;background:var(--label);transform:rotate(-1.6deg);box-shadow:2px 3px 0 #0b1e3d12}.preview-link{display:block;overflow:hidden;background:#FBF6E9;border:1px solid #d3d9df;border-radius:3px;max-height:230px}.preview-link img{width:100%;height:230px;object-fit:cover;object-position:top;display:block;transition:transform .2s}.preview-link:hover img{transform:scale(1.025)}.meta{display:flex;justify-content:space-between;color:#5e6e80;font-size:10px;letter-spacing:.5px;text-transform:uppercase;margin:16px 0 9px}.card h4{font:600 29px Caveat,cursive;margin:0 0 8px;line-height:1.05}.card p{font-size:13px;line-height:1.65;margin:0 0 22px;color:#536173;flex:1}.card-actions{display:flex;gap:8px;align-items:center;justify-content:space-between;border-top:1px solid var(--stroke);padding-top:15px}.card-actions a{font-size:12px;text-underline-offset:4px}.download{font-weight:700}.follow{margin:60px 0 40px;border-top:2px solid #3D7CC9;border-bottom:1px solid #ccd6df;padding:25px 0;display:flex;align-items:center;justify-content:space-between;gap:24px}.hand{font:600 32px Caveat,cursive}.follow p{font-size:13px;color:#536173;margin:4px 0}footer{padding:0 30px 25px;display:flex;justify-content:space-between;gap:15px;align-items:center;color:#637183;font-size:11px}footer span{font:600 25px Caveat,cursive;color:#3D7CC9}#empty{text-align:center;padding:45px 16px;background:#f3f4ed;border:1px dashed #b7c9d9;border-radius:6px}#empty p{font-size:14px;color:#536173}#empty[hidden]{display:none}.skip{position:absolute;left:10px;top:-100px;background:white;padding:10px;z-index:10}.skip:focus{top:10px}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}@media(max-width:760px){header{padding:20px}.brand{font-size:30px}.instagram{font-size:11px}main{padding:0 20px}.intro{padding:40px 0 50px;gap:30px;grid-template-columns:1fr}.notebook{max-width:440px;width:100%;justify-self:center}.intro h1{font-size:45px}.lead{font-size:15px}.section-head{display:block}.small-note{display:block;margin-top:12px;max-width:none}.level-options{gap:8px}.level-options button{padding:12px 9px;font-size:25px}.level-options button[aria-pressed=true]{padding:11px 8px}.level-options button small{font-size:10px;line-height:1.5}.level-options button[aria-pressed=true]:after{right:8px;top:10px;font-size:14px}.filters{flex-direction:column;align-items:stretch}.filters label{width:100%}.cards{grid-template-columns:1fr;gap:35px}.preview-link,.preview-link img{height:260px;max-height:260px}.card{padding:0 18px 20px}.follow{display:block;margin-top:40px}.follow .primary{margin-top:18px}footer{padding:0 20px 25px;flex-wrap:wrap}footer p{margin:0}h2{font-size:33px}}
/* Navigation et pages du cahier */
.identity{display:flex;align-items:center;gap:15px;text-decoration:none}.avatar{width:58px;height:58px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 3px #FBF6E9,0 0 0 4px #b8cae0}.instagram{display:inline-flex;align-items:center;gap:10px;text-decoration:none;border:1px solid #b5c7dd;border-radius:30px;padding:11px 17px;background:#fffdf7;font-weight:600;box-shadow:0 3px 0 #e4e7e4;transition:background .15s,transform .15s}.instagram:hover{background:#eaf2ff;transform:translateY(-1px)}.external-arrow{color:#3D7CC9;font-size:18px}.paper-button{display:inline-flex;align-items:center;justify-content:center;gap:17px;padding:8px 20px;color:#0B1E3D;background:#e1ecfd;border:1px solid #a7bedc;border-radius:2px 5px 3px 2px;box-shadow:3px 4px 0 #0b1e3d12;transform:rotate(-1.6deg);font:600 26px Caveat,cursive;text-decoration:none;transition:background .15s,transform .15s;position:relative}.paper-button:after{content:'';position:absolute;height:2px;bottom:4px;left:16px;right:16px;background:#E8932A;transform:rotate(-.6deg)}.paper-button:hover{background:#d3e4ff;transform:rotate(0deg) translateY(-2px)}.section-description{font-size:14px;color:#536173;margin:12px 0 25px}.level-links{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin:28px 0 0}.level-card{display:flex;flex-direction:column;padding:22px 23px 18px;border:1px solid #abc1df;border-radius:4px 10px 4px 4px;background:#edf3ff;text-decoration:none;transition:transform .15s,box-shadow .15s}.level-card:hover{transform:translateY(-4px);box-shadow:4px 6px 0 #0b1e3d0b}.level-card.tone-1{border-color:#b7cdbb;background:#f0f6ef}.level-card.tone-2{border-color:#c5b3d3;background:#f6f0fa}.card-index{font-size:10px;letter-spacing:1.4px;color:#60758a}.level-card h3{font:600 40px Caveat,cursive;margin:16px 0 5px}.level-card p{font-size:13px;color:#536173;margin:0 0 25px}.card-link{border-top:1px solid #0b1e3d22;padding-top:13px;font-size:12px;display:flex;align-items:center;justify-content:space-between}.card-link span{font-size:20px;color:#3D7CC9}.method-box{margin-top:55px;border:1px solid #b6c8db;background:#fffdf8;padding:0 25px 22px;border-radius:4px 9px 4px 4px}.method-box .card-label{display:table}.method-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}.method-grid b{font:600 26px Caveat,cursive}.method-grid p{font-size:13px;color:#536173;margin:7px 0 0}.card-label{background:#e1ecfd}.breadcrumbs{margin-top:27px;font-size:12px;color:#536173}.breadcrumbs ol{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:0}.breadcrumbs li:not(:last-child):after{content:'/';margin-left:8px;color:#8b9caf}.breadcrumbs a{text-decoration:none}.breadcrumbs a:hover{text-decoration:underline}.breadcrumbs [aria-current]{color:#0B1E3D}.page-intro{padding:44px 0 34px;max-width:880px}.page-intro h1{font-size:48px;letter-spacing:-1.3px;line-height:1.2;margin-bottom:23px}.page-intro h1 span{font-size:1em;line-height:1.25;margin-top:5px}.page-intro h1 span:after{width:55%;max-width:360px}.page-intro .lead{font-size:16px;line-height:1.9;max-width:790px}.subject-card{display:flex;align-items:center;gap:25px;text-decoration:none;margin-top:25px;padding:25px;border:1px solid #abc1df;background:#edf3ff;border-radius:4px 10px 4px 4px;max-width:840px;transition:background .15s,transform .15s}.subject-card:hover{background:#e3edff;transform:translateY(-2px)}.subject-symbol{font:600 46px Caveat,cursive;color:#3D7CC9;background:#fffdf8;padding:5px 18px;border:1px solid #c1d2e7;border-radius:4px}.subject-card h3{font:600 32px Caveat,cursive}.subject-card p{font-size:13px;color:#536173;margin:5px 0 0}.subject-arrow{margin-left:auto;font-size:26px;color:#3D7CC9}.topic-section{margin-top:48px}.topic-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:28px}.topic-grid article{border:1px solid #bbcedf;border-radius:4px 8px 4px 4px;padding:0 18px 16px;background:#fffdf8}.topic-grid .card-label{display:table;font-size:23px}.topic-grid article:nth-child(2) .card-label{background:#e0efdf}.topic-grid article:nth-child(3) .card-label{background:#ebdff3}.topic-grid p{color:#536173;font-size:14px;line-height:1.8;margin:0}.lesson-tip{border:1px solid #bdd0bc;background:#f0f6ef;border-radius:4px 10px 4px 4px;padding:0 25px 20px;max-width:880px}.lesson-tip .card-label{display:table;background:#dfeeda}.lesson-tip p{font-size:16px;line-height:1.9;margin:0}.lesson-tip .paper-button{margin:20px 25px 5px 0}.pdf-section{margin-top:45px}.empty-notebook{border:1px dashed #b8c9db;background:repeating-linear-gradient(0deg,transparent,transparent 31px,#dce6ee88 32px),#fffdf8;border-radius:5px;padding:30px;max-width:880px}.empty-notebook p{color:#536173;font-size:14px;max-width:650px;line-height:1.8}.text-link{text-underline-offset:5px;font-size:13px;font-weight:600;display:inline-block;margin-top:8px}.review-routine{max-width:820px;margin-top:40px}.review-routine p{font-size:14px;color:#536173;line-height:1.9}.footer-brand{font:600 26px Caveat,cursive;color:#3D7CC9;text-decoration:none}footer nav{display:flex;gap:20px}footer nav a{text-decoration:none}footer nav a:hover{text-decoration:underline}.follow .paper-button{white-space:nowrap;font-size:24px}.intro .paper-button{margin-top:5px}.level-section{scroll-margin-top:30px}
@media(max-width:760px){.identity{gap:11px}.avatar{width:46px;height:46px}.brand{font-size:27px}.brand span{font-size:8px;letter-spacing:1.2px;margin-top:7px}.instagram{padding:8px 11px;gap:7px;font-size:11px}.instagram svg{width:16px;height:16px}.instagram .external-arrow{display:none}.level-links,.method-grid,.topic-grid{grid-template-columns:1fr}.level-links{gap:18px}.level-card{padding:18px 22px}.level-card h3{font-size:37px;margin:9px 0}.level-card p{margin-bottom:17px}.method-grid{gap:23px}.method-box{padding:0 20px 23px}.page-intro{padding:33px 0 28px}.page-intro h1{font-size:37px;letter-spacing:-.6px}.page-intro .lead{font-size:14px;line-height:1.85}.subject-card{padding:20px 15px;gap:15px}.subject-symbol{font-size:33px;padding:4px 11px}.subject-card h3{font-size:28px}.subject-card p{font-size:12px}.topic-grid{gap:30px}.lesson-tip{padding:0 20px 20px}.lesson-tip p{font-size:14px}.empty-notebook{padding:23px 20px}.hand{font-size:29px}.follow .paper-button{margin-top:15px}.pdf-section .small-note{margin-top:10px}.paper-button{font-size:25px}footer nav{gap:16px}footer{align-items:center}header{gap:10px}h1 span:after{margin-top:6px}.breadcrumbs{font-size:11px}}
@media(max-width:360px){.brand{font-size:23px}.brand span{font-size:7px}.avatar{width:40px;height:40px}.identity{gap:8px}.instagram{padding:7px 9px}.instagram svg{display:none}}
/* Illustrations de navigation et présentation personnelle */
.nav-sketch{display:inline-block;width:37px;height:32px;object-fit:contain;vertical-align:middle;flex:0 0 auto}.paper-button{gap:13px}.paper-button .nav-sketch{width:40px;height:35px}.instagram .external-arrow{display:inline-flex;align-items:center}.instagram .nav-sketch{width:29px;height:25px}.subject-arrow{display:flex;align-items:center}.card-link span{display:inline-flex;align-items:center}.text-link .nav-sketch{width:28px;height:24px;margin:0 4px}.intro.intro-illustrated{position:relative;display:flex;align-items:center;min-height:530px;margin:24px -20px 55px;padding:45px 20px;background-color:#FBF6E9;background-image:linear-gradient(90deg,#FBF6E9 0%,#fbf6e9ee 29%,#fbf6e933 62%,transparent 85%),url('/assets/hero-cahier-v3.png');background-size:cover;background-position:center;border-radius:4px;isolation:isolate}.intro-illustrated:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,#FBF6E9,transparent 13%,transparent 90%,#FBF6E9);z-index:-1}.hero-copy{max-width:62%;position:relative;z-index:1}.hero-copy h1{font-size:clamp(42px,4.6vw,62px)}.hero-copy .lead{font-size:16px;line-height:1.8}.about-section{margin-top:60px;display:grid;grid-template-columns:220px 1fr;gap:44px;align-items:center;padding:30px;border-top:1px solid #c5d3df;border-bottom:1px solid #c5d3df;background:#fffdf780}.about-photo{position:relative;align-self:center;text-align:center}.about-photo img{width:190px;height:220px;object-fit:cover;object-position:center;border-radius:4px;border:5px solid #fffdf8;box-shadow:4px 5px 0 #dce6ee;transform:rotate(-2deg)}.about-signature{display:table;position:relative;margin:-15px auto 0;font:600 25px Caveat,cursive;transform:rotate(-1deg);background:#e1ecfd;padding:2px 14px;box-shadow:2px 3px 0 #0b1e3d0b}.about-copy h2{font-size:35px}.about-copy p{font-size:14px;line-height:1.9;color:#536173;margin:15px 0}.about-copy strong{color:#0B1E3D;font-weight:600}.about-copy a{color:#0B1E3D;text-decoration-color:#E8932A;text-underline-offset:4px}.about-facts{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}.about-facts span{font-size:11px;padding:5px 10px;border:1px solid #c8d6e6;border-radius:3px;background:#edf3ff}.about-facts span:nth-child(2){background:#f0f6ef;border-color:#c6d7c5}.about-facts span:nth-child(3){background:#f6f0fa;border-color:#d3c3df}
@media(max-width:760px){.instagram .external-arrow{display:inline-flex}.instagram .nav-sketch{width:23px;height:21px}.instagram{gap:7px}.intro.intro-illustrated{display:block;min-height:680px;margin:15px -10px 30px;padding:25px 10px 310px;background-image:linear-gradient(180deg,#FBF6E9 0%,#FBF6E9 42%,#fbf6e9aa 56%,transparent 70%),url('/assets/hero-cahier-v3.png');background-size:100% 100%,auto 470px;background-position:center,right -8px bottom;background-repeat:no-repeat}.hero-copy{max-width:100%}.hero-copy h1{font-size:44px;letter-spacing:-1px}.hero-copy .lead{font-size:14px}.intro-illustrated:after{background:linear-gradient(0deg,#FBF6E9,transparent 7%,transparent 95%,#FBF6E9)}.about-section{grid-template-columns:1fr;gap:27px;padding:28px 20px;margin-top:42px}.about-photo img{width:155px;height:180px}.about-copy h2{font-size:32px}.about-copy p{font-size:13px}.about-facts span{font-size:10px}.follow .paper-button{white-space:normal}.paper-button{font-size:24px}.paper-button .nav-sketch{width:33px;height:29px}}
@media(max-width:360px){.instagram .external-arrow{display:none}.hero-copy h1{font-size:39px}.intro.intro-illustrated{min-height:650px;padding-bottom:290px}.about-section{padding:25px 16px}}
/* Parabole conservée et présentation plus aérée */
.intro.intro-restored{position:relative;padding:75px 0 80px;gap:70px;isolation:isolate}.intro-restored:before{content:'';position:absolute;inset:10px -20px 20px;background:url('/assets/hero-cahier-v3.png') right center/cover no-repeat;opacity:.075;z-index:-1;mask-image:linear-gradient(90deg,transparent 5%,#000 70%,transparent)}.intro-restored .notebook{background:#fffdf8f5}.about-section{margin-top:75px;padding:42px 35px;gap:55px}.about-copy h2{font-size:40px}.about-copy p.about-subtitle{font:500 26px Caveat,cursive;color:#567087;margin:9px 0 22px}.about-copy p{line-height:2;margin:18px 0}.about-facts{margin-top:24px}.review-routine{margin-top:55px}.review-routine p{line-height:2;margin:20px 0 28px}.review-routine .text-link{display:inline-flex;align-items:center;gap:12px;text-decoration:none;padding:10px 17px;border:1px solid #c4d2e2;border-radius:6px;background:#fffdf8;font-size:13px;font-weight:500;margin-top:6px;box-shadow:0 2px 0 #e8e9e1}.review-routine .text-link:hover{background:#eaf2ff}.review-routine .text-link .nav-sketch{width:30px;height:26px;margin:0}.page-intro{padding-top:50px;padding-bottom:40px}.pdf-section{margin-top:55px}
@media(max-width:760px){.intro.intro-restored{padding:42px 0 55px;gap:40px}.intro-restored:before{inset:0 -10px;opacity:.045}.intro-restored .notebook{margin-top:2px}.about-section{margin-top:48px;padding:32px 23px;gap:35px}.about-copy h2{font-size:36px}.about-copy p.about-subtitle{font-size:24px;margin:8px 0 22px}.about-copy p{line-height:2.05}.about-facts{gap:10px;margin-top:25px}.review-routine .text-link{gap:9px;padding:11px 14px}.page-intro{padding-top:35px;padding-bottom:30px}.pdf-section{margin-top:42px}}
.chapter-heading{font:600 29px Caveat,cursive;margin:26px 0}.resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px}.resource-card{border:1px solid #b9ccdf;border-radius:5px 10px 5px 5px;background:#f0f5ff;padding:0 18px 22px;display:flex;flex-direction:column}.resource-card:nth-child(2){background:#f0f6ef;border-color:#b9cfbc}.resource-card:nth-child(3){background:#f6f0fa;border-color:#cbbbd9}.resource-card .card-label{align-self:flex-start;display:table}.resource-card:nth-child(2) .card-label{background:#dfedda}.resource-card:nth-child(3) .card-label{background:#e9ddf2}.resource-preview{display:block;background:#fffdf8;border:1px solid #d2d9df;border-radius:3px;overflow:hidden}.resource-preview img{display:block;width:100%;height:240px;object-fit:cover;object-position:top}.resource-card .resource-meta{font-size:10px;color:#607087;margin:17px 0 10px}.resource-card h3{font:600 29px Caveat,cursive;line-height:1.2;margin:0 0 12px}.resource-card h3 a{text-decoration:none}.resource-card p{font-size:13px;color:#536173;line-height:1.8;margin:0 0 15px}.resource-card>.text-link{margin-top:auto;border-top:1px solid #bcccdc;padding-top:14px}.resource-card .nav-sketch{width:24px;height:21px}.document-meta{display:inline-block;background:#e5eefb;border:1px solid #c0d1e5;padding:7px 13px;border-radius:4px;color:#536173;font-size:12px}.document-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:35px;align-items:start}.document-layout .lesson-tip{margin-top:12px;padding-bottom:25px}.document-layout .lesson-tip p{font-size:15px}.document-layout .paper-button{margin-bottom:20px}.document-preview{border:1px solid #bccddd;display:block;background:#fffdf8;padding:10px;border-radius:4px;box-shadow:5px 6px 0 #0b1e3d0a}.document-preview img{display:block;width:100%;height:auto;max-height:560px;object-fit:contain;object-position:top}
@media(max-width:760px){.resource-grid,.document-layout{grid-template-columns:1fr}.resource-grid{gap:35px}.resource-preview img{height:320px}.document-layout{gap:25px}.document-layout .lesson-tip p{font-size:14px}.document-preview{max-width:450px;width:100%;justify-self:center}.document-meta{line-height:1.7}.resource-card{padding:0 17px 22px}}
/* Bibliothèque compacte : chapitres, puis familles de documents */
.subject-intro{padding:28px 0 23px;border-bottom:1px solid #d5dedf}.subject-intro .eyebrow{margin-bottom:8px}.subject-intro h1{font:600 47px/1.15 Caveat,cursive;letter-spacing:0;margin:0 0 12px;display:flex;align-items:center;gap:19px;flex-wrap:wrap}.subject-intro h1 span{font:12px Arial,sans-serif;color:#536b86;letter-spacing:0;border:1px solid #becfe3;background:#e8f0fc;border-radius:4px;padding:6px 11px}.subject-intro h1 span:after{display:none}.subject-intro>p:last-child{font-size:13px;color:#637183;margin:0}.library-toolbar{display:flex;justify-content:space-between;gap:16px;color:#637183;font-size:11px;padding:15px 0 17px}.chapter-group{margin:0 0 15px;border:1px solid #b9cadb;border-radius:5px 10px 5px 5px;background:#fffdf7;overflow:visible}.chapter-group>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:16px;padding:18px 21px;position:relative}.chapter-group>summary::-webkit-details-marker{display:none}.chapter-group>summary:hover{background:#edf3fc88;border-radius:5px 10px 5px 5px}.chapter-number{background:#e1ecfc;color:#3D7CC9;font:600 23px Caveat,cursive;border:1px solid #c3d3e9;border-radius:3px;padding:4px 9px;transform:rotate(-2deg)}.chapter-label{display:flex;align-items:center;flex-wrap:wrap;column-gap:18px;row-gap:4px;flex:1}.chapter-label h2{font:600 32px/1.2 Caveat,cursive;color:#0B1E3D;position:relative;margin:0;padding-bottom:4px}.chapter-label h2:after{content:'';position:absolute;bottom:0;left:0;width:115px;height:2px;background:#E8932A;transform:rotate(-1deg)}.chapter-label>span{font-size:10px;color:#6c7b8d}.chapter-toggle{width:24px;height:24px;border:1px solid #c8d5e2;border-radius:50%;position:relative;flex:0 0 auto;background:#f8f9f5}.chapter-toggle:before,.chapter-toggle:after{content:'';position:absolute;width:9px;height:1px;background:#3D7CC9;left:6px;top:11px}.chapter-toggle:after{transform:rotate(90deg)}.chapter-group[open] .chapter-toggle:after{display:none}.chapter-documents{padding:5px 21px 21px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.document-family{--family:#dce9fc;--family-border:#b7cbe5;--family-bg:#f2f6fe;min-width:0;background:var(--family-bg);border:1px solid var(--family-border);border-radius:4px;padding:0 12px 12px;margin-top:10px}.document-family.green{--family:#dcecd8;--family-border:#b9cfb8;--family-bg:#f0f6ef}.document-family.purple{--family:#e8def1;--family-border:#cabbda;--family-bg:#f6f1fa}.family-heading{display:flex;justify-content:space-between;align-items:center;margin:-11px 0 9px;gap:8px}.family-heading h3{font:600 23px/1.2 Caveat,cursive;padding:1px 10px;background:var(--family);box-shadow:2px 2px 0 #0b1e3d09;transform:rotate(-1.6deg);margin:0}.family-heading>span{font-size:10px;color:#637183;background:#fffdf7;border:1px solid var(--family-border);border-radius:10px;min-width:19px;text-align:center;padding:1px 4px}.compact-document+.compact-document{padding-top:13px;margin-top:14px;border-top:1px solid var(--family-border)}.compact-preview{display:block;background:#FBF6E9;border:1px solid #d6dcd9;border-radius:3px;overflow:hidden}.compact-preview img{display:block;width:100%;height:165px;object-fit:cover;object-position:top;transition:transform .2s}.compact-preview:hover img{transform:scale(1.025)}.compact-document-text{padding:10px 1px 0}.compact-document h4{font:600 24px/1.2 Caveat,cursive;margin:0 0 5px}.compact-document h4 a{text-decoration:none}.compact-document h4 a:hover{text-decoration:underline;text-underline-offset:3px}.compact-document p{font-size:10px;line-height:1.6;color:#637183;margin:0 0 8px;min-height:16px}.document-open{font-size:11px;text-decoration:none;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--family-border);padding-top:7px;font-weight:600;gap:7px}.document-open:hover{text-decoration:underline;text-underline-offset:3px}.document-open img{width:25px;height:22px}.revision-note{margin:20px 0 18px;color:#536173;font-size:12px}.revision-note summary{cursor:pointer;display:list-item;list-style-position:inside;font-size:12px;text-underline-offset:4px}.revision-note p{max-width:750px;line-height:1.8;margin:10px 0}.level-return{font-size:12px;text-decoration:none;display:inline-flex;align-items:center;gap:9px;padding:7px 0;color:#536173}.level-return:hover{text-decoration:underline;text-underline-offset:4px}.subject-library~.level-return+.follow{margin-top:28px}.subject-intro~.follow{margin-top:30px}
@media(max-width:760px){.subject-intro{padding:23px 0 18px}.subject-intro h1{font-size:40px;gap:12px;line-height:1.1}.subject-intro h1 span{font-size:10px;padding:5px 8px}.subject-intro>p:last-child{font-size:12px;line-height:1.7}.library-toolbar{font-size:10px;padding:14px 0}.library-toolbar>span:last-child{display:none}.chapter-group>summary{padding:15px 13px;gap:11px}.chapter-number{font-size:19px;padding:3px 7px}.chapter-label{display:block}.chapter-label h2{font-size:28px;padding-bottom:5px}.chapter-label>span{display:block;margin-top:5px}.chapter-toggle{width:22px;height:22px}.chapter-toggle:before,.chapter-toggle:after{left:5px;top:10px}.chapter-documents{grid-template-columns:1fr;gap:20px;padding:7px 13px 17px}.document-family{padding:0 11px 11px}.family-heading{margin-bottom:10px}.family-heading h3{font-size:22px}.compact-document{display:grid;grid-template-columns:82px minmax(0,1fr);gap:13px;align-items:center}.compact-preview img{height:105px;object-fit:cover}.compact-document-text{padding:0}.compact-document h4{font-size:23px}.compact-document p{font-size:9px;min-height:0;margin-bottom:7px}.document-open{font-size:10px}.revision-note{margin-top:19px}.subject-intro~.follow{margin-top:27px}.level-return{font-size:11px}}
.document-family.purple .compact-preview img{object-fit:contain}
/* Un chapitre avec une seule famille reste compact, sans colonnes vides. */
.chapter-documents>.document-family:only-child{grid-column:1/-1}.document-family:only-child .compact-document{display:grid;grid-template-columns:135px minmax(0,1fr);gap:22px;align-items:center}.document-family:only-child .compact-preview img{height:145px}.document-family:only-child .compact-document-text{max-width:570px;padding:0}
@media(max-width:760px){.document-family:only-child .compact-document{grid-template-columns:82px minmax(0,1fr);gap:13px}.document-family:only-child .compact-preview img{height:105px}}
.family-empty{margin:12px 0 3px;padding:11px 12px;border:1px dashed var(--family-border);border-radius:4px;color:#718096;font:italic 12px Caveat,cursive;background:#fffdf8}

/* Desktop library: compact resource rows, natural-height categories. */
@media (min-width:761px){
  .chapter-documents{grid-template-columns:1fr;gap:14px;padding:8px 21px 21px;align-items:start}
  .document-family{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px;align-items:start;padding:0 16px 16px;margin-top:8px}
  .family-heading{grid-column:1/-1;margin:-11px 0 0}
  .family-heading>span{margin-left:auto}
  .compact-document,.document-family:only-child .compact-document{display:grid;grid-template-columns:90px minmax(0,1fr);gap:16px;align-items:center;min-width:0}
  .compact-document+.compact-document{margin:0;padding:0;border:0}
  .compact-preview img,.document-family:only-child .compact-preview img{height:116px;object-fit:cover;object-position:top}
  .compact-document-text,.document-family:only-child .compact-document-text{padding:0;max-width:none;min-width:0}
  .compact-document h4{font-size:25px;line-height:1.15;margin-bottom:6px}
  .compact-document p{font-size:11px;min-height:0;margin-bottom:8px}
  .document-open{padding-top:8px}
  .family-empty{grid-column:1/-1;margin:0;padding:7px 12px}
  .document-family:has(.family-empty){padding-bottom:10px;gap:7px;order:1}
}

/* Clear navigation and accessible library controls. */
[hidden]{display:none!important}
.library-toolbar{font-size:12px;color:#465b71}
.document-family.orange{--family:#f6dfbd;--family-border:#dabb91;--family-bg:#fff8ed}
.compact-document p{font-size:12px;line-height:1.5;color:#465b71}
.document-open{font-size:12px;min-height:44px;padding:8px 0}
.pdf-direct{display:inline-flex;align-items:center;min-height:40px;font-size:12px;color:#24548a;text-underline-offset:4px}
.chapter-label>span,.family-heading>span{font-size:12px;color:#465b71}
.family-empty{font:13px/1.5 Arial,sans-serif;color:#526478}
.compact-document h4{overflow-wrap:anywhere}
.compact-document-text{min-width:0}
.breadcrumbs a,.level-return{min-height:44px;display:inline-flex;align-items:center}
@media(min-width:761px){
 .compact-document,.document-family:only-child .compact-document{align-items:start;grid-template-columns:94px minmax(0,1fr)}
 .compact-preview img,.document-family:only-child .compact-preview img{height:126px}
 .compact-document h4{font-size:25px}
 .document-family:has(.compact-document):not(:has(.compact-document+.compact-document)){grid-template-columns:1fr}
 .document-family:has(.compact-document):not(:has(.compact-document+.compact-document)) .compact-document-text{max-width:680px}
}
@media(max-width:760px){
 .compact-document h4{font-size:23px}
 .compact-document p{font-size:11px}
 .document-open,.pdf-direct{font-size:11px}
 .subject-intro h1 span{line-height:1.5}
 .family-empty{padding:8px 10px}
}

/* Keep breadcrumb items together and left aligned on every viewport. */
.breadcrumbs ol{justify-content:flex-start;align-items:center;gap:8px;flex-wrap:nowrap;white-space:nowrap;overflow-x:auto;padding-bottom:4px}.breadcrumbs li{flex:0 0 auto}

.track-locked{opacity:.72;background:#f4f5f6!important;border-color:#d3d9e0!important;cursor:default}.track-locked .card-link{color:#64748b}

/* Annales du baccalauréat : accès direct aux sujets et corrigés originaux. */
.exam-archive{margin:24px 0 22px;padding:22px;border:1px solid #b9cadb;border-radius:6px 12px 6px 6px;background:#fffdf7}
.exam-archive-heading .eyebrow{margin:0 0 5px;color:#3b82f6;font-size:12px;font-weight:700;letter-spacing:.08em}
.exam-archive-heading h2{margin:0;color:#0b1e3d;font-size:clamp(22px,3vw,30px)}
.exam-archive-heading>p:last-child{margin:6px 0 0;color:#536173;line-height:1.6}
.exam-source-note{margin:16px 0;padding:11px 13px;border-left:3px solid #f0a45b;background:#fff7ed;color:#5d5146;font-size:14px;line-height:1.6}
.exam-years{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.exam-year{align-self:start;border:1px solid #d5dfeb;border-radius:6px;background:#fff;overflow:hidden}
.exam-year>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;cursor:pointer;color:#0b1e3d;font-weight:700;list-style:none}
.exam-year>summary::-webkit-details-marker{display:none}
.exam-year>summary:after{content:'+';color:#3b82f6;font-size:20px;font-weight:400}
.exam-year[open]>summary:after{content:'−'}
.exam-year>summary small{margin-left:auto;color:#64748b;font-size:12px;font-weight:500}
.exam-year-sessions{padding:0 12px 10px}
.exam-session-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 2px;border-top:1px solid #e7edf4;color:#27364a;font-size:14px}
.exam-session-links{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.exam-session-links a{display:inline-block;padding:6px 9px;border:1px solid #cad8e8;border-radius:5px;color:#174a84;text-decoration:none;background:#f5f9ff;font-size:13px;font-weight:600}
.exam-session-links a:hover{border-color:#3b82f6;background:#eaf2ff}
@media(max-width:760px){.exam-archive{padding:16px 13px}.exam-years{grid-template-columns:1fr}.exam-session-row{grid-template-columns:1fr}.exam-session-links{justify-content:flex-start}}

/* Annales : pages de catalogue et fiches par année, dans la même identité que les cours. */
.exam-entry{margin-top:42px}
.exam-archive{margin:14px 0 22px;padding:23px;border:1px solid #b9cadb;border-radius:6px 12px 6px 6px;background:#fffdf7}
.exam-archive-heading .eyebrow{margin:0 0 5px;color:#3b82f6;font-size:12px;font-weight:700;letter-spacing:.08em}
.exam-archive-heading h2{margin:0;color:#0b1e3d;font-size:clamp(22px,3vw,30px)}
.exam-archive-heading>p:last-child{margin:6px 0 0;color:#536173;line-height:1.6}
.exam-source-note{margin:16px 0;padding:11px 13px;border-left:3px solid #f0a45b;background:#fff7ed;color:#5d5146;font-size:14px;line-height:1.6}
.exam-year-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.exam-year-card{display:flex;align-items:center;gap:14px;min-height:82px;padding:13px 16px;border:1px solid #c5d4e5;border-radius:5px 9px 5px 5px;background:#f4f8ff;color:#0b1e3d;text-decoration:none;transition:background .15s,border-color .15s}
.exam-year-card:hover{background:#eaf2ff;border-color:#8eb3e7}
.exam-year-card-year{display:grid;place-items:center;min-width:65px;height:55px;border:1px solid #b9cde8;border-radius:4px;background:#e5eefb;color:#2870c8;font:600 25px Caveat,cursive;transform:rotate(-2deg)}
.exam-year-card-info{display:flex;flex-direction:column;gap:5px;flex:1;font-weight:600}
.exam-year-card-info small{color:#66768a;font-size:12px;font-weight:400}
.exam-year-card>img{flex:none}
.exam-session-list{display:grid;gap:20px;margin:8px 0 0}
.exam-session-panel{padding:0 20px 20px;border:1px solid #bdd0bc;border-radius:5px 10px 5px 5px;background:#f7faf5}
.exam-session-heading{padding:10px 0 12px;border-bottom:1px solid #d8e4d7}
.exam-session-heading .eyebrow{margin:0;color:#397b52;font-size:12px;font-weight:700;letter-spacing:.07em}
.exam-session-heading h2{margin:4px 0;color:#0b1e3d;font-size:clamp(21px,2.5vw,28px)}
.exam-session-heading>p:last-child{margin:0;color:#64748b;font-size:13px}
.exam-session-documents{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding-top:15px}
.exam-file-card{--label:#e3eddc;min-width:0;padding:13px 16px 15px;border:1px solid #cbdac8;border-radius:4px 8px 4px 4px;background:#fffdf7}
.exam-file-card .card-label{top:-9px;margin-bottom:0}
.exam-file-card h3{margin:0 0 12px;color:#0b1e3d;font:600 25px/1.2 Caveat,cursive}
.exam-file-card .paper-button{font-size:23px}
.exam-file-card .text-link{display:block;margin-top:12px}
@media(max-width:760px){.exam-archive{padding:17px 13px}.exam-year-grid,.exam-session-documents{grid-template-columns:1fr}.exam-session-panel{padding:0 12px 14px}.exam-file-card{padding-left:12px;padding-right:12px}.exam-year-card{min-height:72px;padding:10px 12px}}

/* Aperçus par session : sujets côte à côte, comme les cartes de cours. */
.exam-session-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin:10px 0 0}
.exam-session-card{display:grid;grid-template-columns:minmax(96px,130px) minmax(0,1fr);align-items:start;gap:14px;min-width:0;padding:12px;border:1px solid #b9cadb;border-radius:4px 9px 4px 4px;background:#f2f6fe}
.exam-session-preview{display:block;width:100%;overflow:hidden;border:1px solid #c9d8e9;border-radius:2px;background:#fff}
.exam-session-preview img{display:block;width:100%;height:auto;aspect-ratio:360/510;object-fit:contain}
.exam-session-content{min-width:0;padding:4px 0 0}
.exam-session-content .eyebrow{margin:0 0 5px;color:#3b82f6;font-size:11px;font-weight:700;letter-spacing:.07em}
.exam-session-content h2{margin:0;color:#0b1e3d;font:600 clamp(22px,2.4vw,28px)/1.15 Caveat,cursive}
.exam-session-meta{margin:7px 0 12px;color:#64748b;font-size:13px}
.exam-session-actions{display:grid;gap:9px;padding-top:10px;border-top:1px solid #cbd8e6}
.exam-session-actions a{color:#0b1e3d;font-size:14px;font-weight:600;text-decoration:none}
.exam-session-actions a:hover{text-decoration:underline;text-underline-offset:3px}
@media(max-width:760px){.exam-session-list{grid-template-columns:1fr;gap:12px}.exam-session-card{grid-template-columns:92px minmax(0,1fr);gap:12px;padding:10px}.exam-session-content h2{font-size:23px}.exam-session-actions{gap:8px}}


/* Catalogue des examens nationaux : mêmes repères manuscrits et cartes pastel que la bibliothèque des cours. */
.exam-library{margin-top:0}
.exam-library .library-toolbar{padding:15px 3px 17px;border-top:1px solid #d5dedf;color:#637183;font-size:11px}
.exam-library .exam-archive{margin:0 0 24px;padding:0;border:0;border-radius:0;background:transparent}
.exam-library .exam-archive-heading{margin-bottom:18px;padding:0 3px 12px;border-bottom:1px solid #c8d6e5}
.exam-library .exam-archive-heading .eyebrow{margin:0 0 5px;color:#3b82f6;font-size:11px;font-weight:700;letter-spacing:.08em}
.exam-library .exam-archive-heading h2{display:inline-block;position:relative;margin:0;padding-bottom:5px;color:#0b1e3d;font:600 31px/1.2 Caveat,cursive}
.exam-library .exam-archive-heading h2:after{content:"";position:absolute;left:0;bottom:0;width:105px;height:2px;background:#e8932a;transform:rotate(-1deg)}
.exam-library .exam-archive-heading>p:last-child{margin:6px 0 0;color:#536173;font-size:13px;line-height:1.6}
.exam-library .exam-source-note{margin:0 0 17px;padding:10px 13px;border-left:3px solid #e8932a;background:#fff9ef;color:#5d5146;font-size:12px;line-height:1.65}
.exam-library .exam-year-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.exam-library .exam-year-card{position:relative;min-height:102px;padding:15px 14px;border:1px solid #b9cadb;border-radius:4px 9px 4px 4px;background:#f2f6fe;color:#0b1e3d;box-shadow:2px 3px 0 #0b1e3d08;transition:transform .15s,box-shadow .15s,border-color .15s,background .15s}
.exam-library .exam-year-card:nth-child(3n+2){border-color:#b9cfbc;background:#f0f6ef}
.exam-library .exam-year-card:nth-child(3n){border-color:#cbbbd9;background:#f6f1fa}
.exam-library .exam-year-card:hover{transform:translateY(-2px);box-shadow:3px 5px 0 #0b1e3d10;border-color:#8eb3e7;background:#eaf2ff}
.exam-library .exam-year-card-year{min-width:70px;height:59px;border-color:#b9cde8;background:#e5eefb;color:#2870c8;font:600 29px Caveat,cursive}
.exam-library .exam-year-card:nth-child(3n+2) .exam-year-card-year{border-color:#c1d4bf;background:#e3efdf;color:#397b52}
.exam-library .exam-year-card:nth-child(3n) .exam-year-card-year{border-color:#d2c4df;background:#eee5f4;color:#785493}
.exam-library .exam-year-card-info{gap:6px;font-size:14px;line-height:1.35}
.exam-library .exam-year-card-info strong{font-weight:600}
.exam-library .exam-year-card-info small{font-size:11px;line-height:1.4}
.exam-library .exam-year-card>img{width:29px;height:26px;opacity:.78}
.exam-library .exam-year-card:focus-visible{outline:3px solid #3b82f6;outline-offset:3px}
@media(max-width:980px){.exam-library .exam-year-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.exam-library .library-toolbar{padding:13px 0 15px}.exam-library .library-toolbar span:last-child{display:none}.exam-library .exam-archive-heading h2{font-size:28px}.exam-library .exam-year-grid{grid-template-columns:1fr;gap:11px}.exam-library .exam-year-card{min-height:82px;padding:10px 13px}.exam-library .exam-year-card-year{min-width:64px;height:53px;font-size:27px}.exam-library .exam-source-note{font-size:11px}}


/* Les pages annuelles affichent maintenant les deux aperçus cliquables de chaque session. */
.exam-session-card{display:flex;flex-direction:column;align-items:stretch;gap:11px;padding:14px;background:#f2f6fe}
.exam-session-card:nth-child(3n+2){border-color:#b9cfbc;background:#f0f6ef}
.exam-session-card:nth-child(3n){border-color:#cbbbd9;background:#f6f1fa}
.exam-session-content{padding:2px 3px 0}
.exam-session-content .eyebrow{margin-bottom:4px}
.exam-session-content h2{font-size:clamp(24px,2.4vw,30px)}
.exam-session-meta{margin:4px 0 0}
.exam-session-doc-previews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
.exam-session-preview{display:flex;flex-direction:column;min-width:0;border:1px solid #c9d8e9;border-radius:3px;background:#fffdf8;text-decoration:none;transition:transform .15s,box-shadow .15s,border-color .15s}
.exam-session-preview:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0b1e3d14;border-color:#8eb3e7}
.exam-session-preview img{width:100%;height:auto;aspect-ratio:360/510;object-fit:contain;background:#fff}
.exam-session-preview-label{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:8px 9px;border-top:1px solid #d8e2ef;background:#eaf2ff;color:#0b1e3d;font:600 20px/1.1 Caveat,cursive}
.exam-session-preview.correction .exam-session-preview-label{border-color:#d5e1d2;background:#eaf2e7;color:#315f3e}
.exam-session-preview-label small{font:600 10px/1.3 Arial,Helvetica,sans-serif;color:#536173;text-align:right}
.exam-session-preview:focus-visible{outline:3px solid #3b82f6;outline-offset:3px}
@media(max-width:760px){.exam-session-doc-previews{gap:8px}.exam-session-preview-label{padding:7px 6px;font-size:18px}.exam-session-preview-label small{font-size:9px}}


@media(max-width:760px){
 .exam-year-page header,.exam-year-page main,.exam-year-page footer{width:100%;max-width:none}
 .exam-year-page header{min-width:0;padding:15px 16px;gap:8px}
 .exam-year-page .identity{min-width:0;gap:8px}
 .exam-year-page .avatar{width:42px;height:42px}
 .exam-year-page .brand{font-size:24px}
 .exam-year-page .brand span{font-size:7px;letter-spacing:1px;margin-top:5px}
 .exam-year-page .instagram{flex:0 0 auto;padding:7px 9px;gap:5px}
 .exam-year-page main{min-width:0;padding:0 16px}
 .exam-year-page .page-intro h1{font-size:clamp(29px,8vw,35px);letter-spacing:-.5px;overflow-wrap:anywhere}
 .exam-year-page .page-intro h1 span{font-size:.88em;line-height:1.18;overflow-wrap:anywhere}
 .exam-year-page .exam-session-list,.exam-year-page .exam-session-card,.exam-year-page .exam-session-doc-previews,.exam-year-page .exam-session-preview{width:100%;max-width:100%;min-width:0}
 .exam-year-page .exam-session-card{padding:11px}
}
