/* Bouton et panneau */
.acces{display:none}
.brand{margin-right:auto}
.js .acces{display:grid;place-items:center;width:46px;height:46px;flex:none;padding:0;border:0;border-radius:50%;background:var(--btn);color:#1f4a35;cursor:pointer}
.acces svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.acces-panel{position:absolute;top:calc(100% + 8px);right:max(1rem,calc((100vw - 1120px)/2));width:min(430px,100% - 2rem);max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px);overflow-y:auto;background:#fff;border:1px solid var(--line);border-radius:var(--r);box-shadow:0 18px 40px -16px #2b3a3366;padding:1.1rem 1.2rem}
.acces-panel[hidden]{display:none}
.acces-panel h2{font-size:1.2rem;margin:0}
.a-tete,.a-taille{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-bottom:.8rem}
.a-taille span{margin-right:auto;font-weight:600}
.a-taille output{min-width:4em;text-align:center}
.acces-panel button{font:inherit;color:inherit;background:#fff;border:1px solid #83988c;border-radius:12px;padding:.5rem .8rem;min-height:44px;cursor:pointer;text-align:left}
.acces-panel button[disabled]{opacity:.45;cursor:default}
.acces-panel button[aria-pressed=true]{background:#d9efe1;border-color:var(--main);box-shadow:inset 0 0 0 1px var(--main)}
.acces-panel button[aria-pressed=true] strong::before{content:"✓ "}
.a-liste{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));gap:.5rem;margin-bottom:.6rem}
.a-liste strong{display:block;line-height:1.25}
.a-liste small{display:block;color:var(--soft);line-height:1.3}
.acces-panel [data-lire],.acces-panel [data-zero]{width:100%;margin-top:.5rem}
.acces-panel [data-lire][hidden]{display:none}

/* Contraste renforcé */
.a-contraste{--ink:#000;--soft:#000;--main:#003d22;--btn:#003d22;--pale:#fff;--line:#000;--orange:#000;--green:#000}
.a-contraste .btn,.a-contraste nav a.btn,.a-contraste .acces{background:#003d22;color:#fff}
.a-contraste .btn.alt{background:#fff;color:#003d22}
.a-contraste .cta{background:#fff;border:2px solid #000}
.a-contraste input,.a-contraste select,.a-contraste textarea{border:2px solid #000}

/* Fond sombre */
.a-sombre{--ink:#f2f5f3;--soft:#d5ddd8;--main:#a5e3bf;--btn:#a5e3bf;--pale:#1b2420;--line:#4b5a52;--orange:#a5e3bf;--green:#a5e3bf;color-scheme:dark}
.a-sombre body,.a-sombre .top,.a-sombre .card,.a-sombre nav,.a-sombre .acces-panel,.a-sombre .acces-panel button,.a-sombre input,.a-sombre select,.a-sombre textarea{background:#111714}
.a-sombre .btn.alt{background:#111714;color:#a5e3bf}
.a-sombre .cta{background:#22332a}
.a-sombre .note{background:#3a3214}
.a-sombre .todo{background:#5a4b12}
.a-sombre .status.ok{background:#1d4a31}
.a-sombre .status.ko{background:#5a241a}
.a-sombre .acces-panel button[aria-pressed=true]{background:#22432f}

/* Lecture facilitée */
.a-dys body,.a-dys h1,.a-dys h2,.a-dys h3{font-family:Verdana,Tahoma,sans-serif;letter-spacing:.06em;word-spacing:.16em}
.a-dys p,.a-dys li{line-height:2}
.a-dys h1,.a-dys h2,.a-dys h3{line-height:1.4;font-weight:700}

/* Liens visibles */
.a-liens main a:not(.btn),.a-liens footer a{text-decoration:underline;text-decoration-thickness:3px;font-weight:700}

/* Grands boutons */
.a-boutons .btn,.a-boutons nav a.btn{padding:1.1rem 2rem;font-size:1.15em}
.a-boutons main a:not(.btn):not(.card),.a-boutons footer a{display:inline-block;padding:.5rem 0}
.a-boutons nav a{padding:.8rem 0}
.a-boutons input,.a-boutons select,.a-boutons textarea{padding:1.1rem}
.a-boutons .check input{width:2rem;height:2rem;padding:0}
.a-boutons summary{padding:.8rem 0}

/* Mode calme */
.a-calme main,.a-calme .brand img{filter:saturate(.45)}
.a-calme main img{display:none}
.a-calme .photo{display:none}
.a-calme *,.a-calme *::before{transition:none!important;animation:none!important;box-shadow:none!important;scroll-behavior:auto!important}

/* Guide de lecture */
.a-guide-barre{display:none;position:fixed;left:0;right:0;top:40%;height:2.6rem;margin-top:-1.3rem;pointer-events:none;z-index:30;background:#f7d24a40;border-block:3px solid #b5500a}
.a-guide .a-guide-barre{display:block}

@media(max-width:1120px){.js .bar{gap:.6rem}}

/* Image de fond et lisibilite */
.a-contraste .fond{display:none}
.a-sombre .fond{opacity:.3}
.a-contraste .hero.accueil::after,.a-sombre .hero.accueil::after{display:none}
@media(max-width:760px){.a-contraste .hero.accueil .wrap,.a-calme .hero.accueil .wrap{padding-bottom:3rem}}
