/*
Theme Name: Physique-chimie — M. Amaouch
Author: M. Amaouch
Description: Interface de cours au collège, fond scientifique à l’aquarelle.
Version: 1.7.0
Requires PHP: 7.4
License: GPL-2.0-or-later
*/
:root{--ink:#193249;--blue:#347dcc;--cream:#fbf7ed;--yellow:#ffd36b}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font:18px/1.65 system-ui,-apple-system,sans-serif;background:var(--cream)}a{color:inherit}button,input{font:inherit}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #be6f22;outline-offset:5px}.skip{position:absolute;left:-9999px}.skip:focus{left:10px;top:10px;background:white;z-index:10}.site-header{background:#fffdf9;border-bottom:4px solid var(--ink)}.header-inner{max-width:1180px;margin:auto;padding:24px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{text-decoration:none;font-size:clamp(21px,3vw,31px);font-weight:850;letter-spacing:-1px}.brand b{color:var(--blue)}.mark{display:inline-grid;place-items:center;background:#fff0ac;border-radius:50%;width:50px;height:50px;margin-right:10px}.search-link,.button{display:inline-block;border:3px solid var(--ink);border-radius:50px;padding:13px 25px;background:white;text-decoration:none;font-weight:750}.button{box-shadow:4px 5px 0 var(--ink);margin:8px}.button.primary{background:var(--yellow)}.button:hover{transform:translateY(-2px)}.hero{background:linear-gradient(#fff8 0%,#fff4 100%),url(fond-sciences.webp) center/cover;min-height:780px;text-align:center;padding:58px 24px 65px}.hero-inner{max-width:880px;margin:auto}.eyebrow{display:inline-block;background:#fffdf7;border:3px solid var(--ink);border-radius:40px;padding:10px 25px;font-size:14px;font-weight:800;letter-spacing:3px;box-shadow:5px 6px 0 var(--ink)}h1{font-size:clamp(48px,7.5vw,92px);line-height:1.12;letter-spacing:-4px;margin:45px 0 32px;font-weight:850}h1 span{display:inline-block;color:white;background:var(--blue);padding:0 15px 10px;box-shadow:9px 10px 0 var(--ink);transform:rotate(-2deg);margin-top:14px}.intro{font-size:clamp(19px,2.2vw,25px);font-weight:600;max-width:740px;margin:40px auto 30px}.stats{display:flex;justify-content:center;gap:16px;margin:48px auto 0;flex-wrap:wrap}.stats div{border:2px solid #19324930;background:#fff9;border-radius:20px;padding:12px 22px;font-size:15px}.stats strong{font-size:28px;margin-right:8px}.section{max-width:1140px;margin:0 auto;padding:65px 24px}.section h2{font-size:clamp(28px,4vw,42px);letter-spacing:-1px;margin:0 0 10px}.section-intro{color:#576b7b;margin:0 0 30px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.card{border:3px solid var(--ink);border-radius:24px;background:white;padding:28px;box-shadow:5px 6px 0 #19324918}.level{font-size:50px;font-weight:850}.card:nth-child(1){background:#e8f4fa}.card:nth-child(2){background:#fff1c9}.card:nth-child(3){background:#eaf3e6}.card h3{margin:0}.card p{font-size:16px}.card .button{font-size:15px;margin-left:0;padding:8px 16px}.resources{background:#eee7d8}.search-form{display:flex;gap:10px;max-width:700px;margin:25px 0}.search-field{width:100%;min-width:0;border:2px solid var(--ink);border-radius:14px;padding:12px;background:white}.search-submit{border:2px solid var(--ink);border-radius:14px;background:var(--yellow);padding:12px;cursor:pointer}.resource-list{display:grid;gap:14px}.resource{background:#fffdf7;border:1px solid #19324930;border-radius:14px;padding:18px 24px}.resource h3{font-size:20px;margin:0}.resource p{margin:5px 0;font-size:16px}.empty{background:#fff9;border-radius:15px;padding:22px}.article{max-width:850px;min-height:60vh;margin:auto;padding:50px 24px}.article h1{font-size:clamp(35px,5vw,58px);letter-spacing:-2px}.article img{max-width:100%;height:auto}.article .wp-block-file{border:1px solid #ccc;padding:16px;border-radius:12px}.site-footer{padding:26px;text-align:center;border-top:2px solid #19324920;font-size:14px}.pagination{margin:20px 0}.wp-block-button__link{background:var(--ink)}@media(max-width:650px){.header-inner{padding:16px;gap:10px}.mark{width:36px;height:36px;margin-right:4px}.search-link{font-size:14px;padding:8px 12px;border-width:2px}.hero{padding:38px 18px;min-height:auto;background-size:auto 100%;background-position:center}.hero-inner{background:#fbf7edb8;border-radius:25px;padding:10px 5px 25px}h1{letter-spacing:-2px;margin-top:30px}.eyebrow{font-size:10px;letter-spacing:1px;padding:10px 14px}.hero .button{display:block;max-width:320px;margin:18px auto}.stats{gap:9px;margin-top:30px}.stats div{padding:8px 12px;font-size:12px}.stats strong{font-size:20px}.cards{grid-template-columns:1fr}.section{padding:40px 20px}.search-form{flex-direction:column}}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.main-nav{display:flex;align-items:center;gap:22px;font-size:15px;font-weight:650}.main-nav>a{text-decoration:none}.archive-title{font-size:clamp(38px,6vw,65px);letter-spacing:-2px}.breadcrumb{font-size:14px;margin-bottom:25px}.chapter-list{display:grid;gap:20px}.chapter{display:flex;gap:24px;padding:26px;border:2px solid var(--ink);border-radius:20px;background:#fffdf8;text-decoration:none;box-shadow:4px 5px 0 #19324915}.chapter:hover{background:#eaf3fa}.chapter-order{font-size:35px;font-weight:800;min-width:45px}.chapter h3{font-size:24px;margin:12px 0}.chapter p{margin:5px 0 15px}.badge{display:inline-block;font-size:13px;border:1px solid #19324950;border-radius:30px;padding:3px 12px;background:#f9e8b8}.resource-group{margin-top:36px}.resource-group>h3{font-size:24px}.resource h4{margin:0}.resource-group small{font-weight:400}@media(max-width:760px){.header-inner{flex-wrap:wrap}.main-nav{width:100%;justify-content:space-between;gap:10px}.chapter{padding:18px;gap:14px}}

/* Cartes des chapitres : numéro, statut et ressources. */
.chapter-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.chapter{display:flex;flex-direction:column;gap:0;min-height:310px;border:3px solid var(--ink);border-radius:28px;background:#fff;padding:28px;box-shadow:7px 8px 0 var(--ink);transition:transform .15s ease,box-shadow .15s ease}.chapter:hover{background:#fff;transform:translateY(-3px);box-shadow:7px 11px 0 var(--ink)}.chapter-top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px}.chapter-order{display:grid;place-items:center;min-width:0;width:49px;height:49px;border:3px solid var(--ink);border-radius:15px;background:#2e80e7;color:#fff;font-size:23px;line-height:1;font-weight:800;transform:rotate(-3deg)}.chapter .badge{border:2px solid var(--ink);font-size:12px;font-weight:750;padding:5px 12px;white-space:nowrap}.badge-termine{background:#def5ed}.badge-en-cours{background:#ffd36b}.badge-a-venir{background:#edf1f5}.chapter-body{flex:1}.chapter h3{font-size:25px;line-height:1.25;margin:0 0 10px;letter-spacing:-.5px}.chapter-body p{font-size:17px;color:#61758b;line-height:1.55;margin:0 0 25px;font-weight:550}.chapter-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:2px dashed #d5e4ee;margin-top:22px;padding-top:18px;font-size:14px;color:#61758b}.chapter-bottom strong{color:#2e80e7}.chapter-list+.resource-group{margin-top:40px}@media(max-width:700px){.chapter-list{grid-template-columns:1fr;gap:24px}.chapter{padding:23px;min-height:285px;border-radius:25px}.chapter h3{font-size:23px}}@media(prefers-reduced-motion:reduce){.chapter{transition:none}.chapter:hover{transform:none}}

/* Catalogue par thèmes, cartes compactes et lecture sobre. */
.category .site-header{border-bottom:1px solid #19324920}.category{background:#fbf8f1 url(fond-sciences.webp) center top/100% auto no-repeat}.category .section{max-width:1220px;background:#fbf8f1f2}.category .archive-title{font-size:clamp(35px,5vw,54px);line-height:1.18;margin:20px 0;letter-spacing:-1.7px}.catalog-intro{max-width:800px;color:#607082;font-size:17px;margin-bottom:24px}.catalog-intro>span{display:inline-block;padding:4px 12px;border-radius:20px;background:#e8eff5;color:#294866;font-size:13px;font-weight:650}.subject-nav{display:flex;gap:10px;flex-wrap:wrap;padding-bottom:12px}.subject-nav a{border:1px solid #d3dce2;background:#fff;border-radius:22px;padding:7px 14px;text-decoration:none;font-size:13px}.subject-nav a:hover{background:#eaf2fa}.subject-section{margin-top:42px;scroll-margin-top:24px;--subject-color:#3974a9}.subject-heading{margin-bottom:20px}.subject-kicker{font-size:12px;letter-spacing:1.8px;font-weight:750;color:var(--subject-color)}.subject-heading h2{font-size:clamp(24px,3vw,30px);line-height:1.3;margin:5px 0;letter-spacing:-.7px}.subject-mouvement{--subject-color:#8b5c9d}.subject-energie{--subject-color:#aa7521}.subject-signaux{--subject-color:#2a8174}.subject-transversal{--subject-color:#63707e}.chapter-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.chapter{min-height:290px;border:1px solid #d5dde4;border-top:3px solid var(--subject-color,#3974a9);border-radius:18px;padding:23px;box-shadow:0 5px 18px #19324907}.chapter:hover{background:#fff;transform:translateY(-3px);box-shadow:0 9px 25px #19324912;border-color:var(--subject-color,#3974a9)}.chapter-top{margin-bottom:20px;gap:8px}.chapter-order{width:36px;height:36px;border:0;border-radius:10px;transform:none;background:#eaf2fa;color:var(--subject-color,#3974a9);font-size:17px}.chapter .badge{font-size:10px;padding:4px 9px;border:1px solid #19324925}.chapter h3{font-size:20px;line-height:1.35;letter-spacing:-.3px}.chapter-body p{font-size:14px;line-height:1.65;font-weight:400;margin:8px 0 20px}.chapter-bottom{font-size:12px;border-top:1px solid #e5eaef;padding-top:16px;margin-top:18px}.chapter-bottom strong{color:var(--subject-color,#3974a9)}@media(max-width:1000px){.chapter-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.chapter-list{grid-template-columns:1fr}.chapter{min-height:250px}.category .section{padding:30px 18px}.subject-section{margin-top:32px}.subject-nav{gap:7px}.subject-nav a{font-size:12px;padding:6px 10px}}

/* Pied de page 1.6.1 */
.site-footer.sa-footer{background:#193249;color:#c2d3e2;padding:44px 24px 22px;text-align:left;border:0;font-size:16px;line-height:1.65}
.sa-footer-grid{max-width:1180px;margin:auto;display:grid;grid-template-columns:1.5fr .8fr 1.2fr;gap:48px}
.sa-footer h2{font-size:18px;color:#ffd36b;margin:0 0 12px;letter-spacing:normal}
.sa-footer p{margin:18px 0 0}.sa-footer .sa-footer-tagline{margin:0;font-weight:650}
.sa-footer-brand{color:#fff;font-size:21px;font-weight:800;text-decoration:none;display:inline-flex;gap:12px;align-items:center}
.sa-footer-brand span{font-size:28px;background:#fff;color:#193249;border-radius:50%;width:48px;height:48px;text-align:center;line-height:48px}
.sa-footer ul{list-style:none;padding:0;margin:0}.sa-footer li{margin:6px 0}.sa-footer a:hover{color:#ffd36b}.sa-footer a:focus-visible{outline:3px solid #ffd36b;outline-offset:4px}
.sa-footer .sa-footer-copy{max-width:1180px;margin:38px auto 0;text-align:center;font-size:14px}
@media(max-width:700px){.sa-footer-grid{grid-template-columns:1fr;gap:28px}.site-footer.sa-footer{padding:32px 22px}.sa-footer .sa-footer-copy{text-align:left;margin-top:30px}}

.sa-footer-brand span{flex-shrink:0}.sa-footer-brand{overflow-wrap:anywhere}.header-inner .brand{min-width:0;overflow-wrap:anywhere}

/* Dossiers pédagogiques 1.7.0 */
.sa-toolbox-heading{margin:30px 0 46px}.sa-toolbox-heading>p:last-child{color:#60768c;font-weight:650;margin:8px 0}.sa-toolbox-kicker{display:table;border:2px solid var(--ink);border-radius:24px;box-shadow:3px 3px 0 var(--ink);background:white;padding:3px 12px;font-weight:800;font-size:14px;letter-spacing:1.5px;margin:24px 0 14px}.sa-toolbox-heading h2{font-size:clamp(34px,5vw,58px);line-height:1.15}
.sa-folder{position:relative;background:#fff;border:3px solid var(--ink);border-radius:12px 28px 28px 28px;padding:30px;box-shadow:8px 9px 0 var(--ink);margin:42px 0;isolation:isolate}.sa-folder:before{content:'';position:absolute;left:-3px;top:-18px;width:145px;height:16px;background:var(--yellow);border:3px solid var(--ink);border-bottom:0;border-radius:15px 18px 0 0;z-index:-1}.sa-folder-header{display:flex;gap:18px;align-items:center;margin-bottom:24px}.sa-folder-header h3{font-size:clamp(23px,3vw,31px);line-height:1.2;margin:0 0 4px}.sa-folder-header p{color:#60768c;font-size:16px;font-weight:600;margin:0}.sa-folder-icon{display:grid;place-items:center;flex-shrink:0;width:56px;height:56px;border:3px solid var(--ink);border-radius:16px;background:#fff0ac;font-size:30px;transform:rotate(-4deg)}.sa-folder-count{margin-left:auto;flex-shrink:0;border:2px solid var(--ink);border-radius:50%;min-width:38px;height:38px;display:grid;place-items:center;font-size:15px;font-weight:700}.sa-resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.sa-resource-card{display:flex;align-items:center;gap:14px;padding:18px;border:2px solid #d5e5f0;border-radius:17px;text-decoration:none;transition:border-color .15s,background .15s}.sa-resource-card:hover{border-color:var(--blue);background:#f3f8fc}.sa-resource-icon{flex-shrink:0;border:2px solid var(--ink);border-radius:13px;width:46px;height:46px;display:grid;place-items:center;font-size:24px}.sa-resource-info{min-width:0}.sa-resource-type{font-size:14px;color:#60768c;font-weight:650}.sa-resource-info h4{font-size:16px;line-height:1.4;margin:0 0 7px;overflow-wrap:anywhere}.sa-resource-info .badge{font-size:11px;font-weight:700;padding:2px 9px}.sa-resource-arrow{margin-left:auto;color:#347dcc;font-size:24px;font-weight:800}.badge-termine{background:#e5f4e7;color:#235d35;border-color:#b6d8be}.badge-en-cours{background:#fff0b8;color:#705000;border-color:#e8cf75}.badge-a-venir{background:#eaf0f6;color:#455e76;border-color:#cad6e2}.sa-folder-empty{margin:0;padding:20px;background:#f1f7fb;border:2px dashed #c5d6e5;border-radius:16px;color:#60768c;font-size:16px;font-weight:600}.sa-back{text-align:center;margin:45px 0 0}.sa-back .button{font-size:15px;padding:8px 18px;box-shadow:none}
@media(max-width:720px){.sa-resource-grid{grid-template-columns:1fr}.sa-folder{padding:20px 16px;box-shadow:5px 6px 0 var(--ink)}.sa-folder-header{gap:12px}.sa-folder-icon{width:42px;height:42px;font-size:23px}.sa-folder-header p{font-size:14px}.sa-resource-card{padding:14px;gap:10px}.sa-folder-count{min-width:30px;height:30px}.sa-resource-arrow{font-size:20px}}
