.tool-desk {max-width:75rem;margin:auto}
.tool-banner {position:relative;isolation:isolate;display:grid;place-items:center;overflow:hidden;background:#143e43;border:1px solid #173e42;border-radius:14px;color:#fff8e9;text-align:center;padding:clamp(2rem,4.1vw,3.65rem) 1rem}
.tool-banner-copy {width:min(100%,36rem);z-index:1}
.tool-banner .kicker,.tool-intro .kicker,.tool-entry .kicker,.tool-solved .kicker {justify-content:center}
.tool-banner .kicker {color:#bcecd7}
.tool-banner h1,.tool-intro h1 {font-family:Georgia,serif;font-size:clamp(2.5rem,5.6vw,5.2rem);line-height:.99;letter-spacing:-.05em;text-wrap:balance;margin:.65rem auto 1rem}
.tool-banner-copy > p:not(.kicker) {max-width:47ch;margin:auto;line-height:1.55;color:#f0f3e8}
.tool-banner .btn {margin-top:1.25rem}
.tool-banner-photo {position:absolute;z-index:0;width:clamp(10rem,19vw,16rem);aspect-ratio:1.17;border:7px solid #fff6e4;border-bottom-width:24px;background-color:#e8d9bf;box-shadow:0 .5rem 1.6rem #08212680}
.tool-banner-photo.left {left:-2%;bottom:4%;transform:rotate(-12deg);background-image:url("archives/oies-carte.webp");background-size:cover;background-position:50% 44%}
.tool-banner-photo.right {right:-3%;top:1%;transform:rotate(12deg);background-image:url("archives/fr-oiseau-blanc.webp");background-size:cover;background-position:56% 45%}
.tool-shelf-intro,.tool-intro {text-align:center;margin:2rem auto 1.25rem;max-width:65ch}
.tool-shelf-intro h2,.tool-solved h2,.tool-locked h2 {font:700 clamp(1.8rem,3.5vw,2.8rem)/1.12 Georgia,serif;letter-spacing:-.04em}
.tool-shelf-intro p,.tool-intro>p:not(.kicker){line-height:1.55;margin:.7rem auto;color:#465b58}
.tool-tiles,.tool-entries {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.tool-tile {display:flex;flex-direction:column;border-radius:10px;border:1px solid #c3d1c9;overflow:hidden;background:#fffefa;transition:box-shadow .15s,border-color .15s}
.tool-tile:hover {border-color:#558978;box-shadow:0 4px 15px #153b3f12}
.tool-cover {position:relative;aspect-ratio:2.12;background:#e5ebe1;overflow:hidden}
.tool-cover img {width:100%;height:100%;object-fit:cover;display:block}
.tool-cover span {position:absolute;left:10px;top:10px;border:1px solid #192f3850;padding:.25rem .5rem;border-radius:5px;background:#fff8e8;font-weight:700;color:#1c3538;font-size:.9rem}
.tool-tile-copy {display:flex;flex:1;flex-direction:column;padding:1rem}
.tool-tile-copy h3,.tool-entry h2 {font-size:1.45rem;letter-spacing:-.035em;line-height:1.1;text-align:center;text-wrap:balance}
.tool-tile-copy p,.tool-entry p:not(.kicker) {color:#435951;line-height:1.5;margin:.65rem 0 1rem;flex:1}
.tool-tile-action {padding-top:.7rem;border-top:1px solid #d9e1d6;font-weight:700;font-size:.92rem;color:#185a4c}
.tool-teacher {border-block:1px solid #cdd8cf;padding:1rem .1rem;margin-top:2rem}
.tool-teacher summary {font-weight:700;font-size:1rem;color:#214b46}
.tool-teacher>div {max-width:80ch;margin:.9rem auto;line-height:1.6}.tool-teacher dt {font-weight:bold;margin-top:.75rem}.tool-teacher dd {margin:.2rem 0}
.tool-desk :where(.tool-work,.tool-teacher,.tool-entry) a:not(.tool-btn,.tool-secondary,.btn) {color:#185c53;text-decoration:underline;text-underline-offset:.15em}
.tool-back,.tool-invitation {display:inline-block;font-weight:700;color:#275c51}.tool-back {text-decoration:underline;text-underline-offset:.15em}
.tool-intro {margin:1.6rem auto}.tool-intro h1 {font-size:clamp(2.05rem,4.5vw,3.65rem);line-height:1.05}
.tool-work {max-width:54rem;margin:auto;overflow-wrap:anywhere}
.tool-work h2,.tool-work h3 {text-align:center;line-height:1.2;text-wrap:balance}.tool-work h2 {font-size:clamp(1.45rem,3vw,2rem);letter-spacing:-.025em}
.tool-work :where(p,li,dd,summary,label){line-height:1.55}
.tool-work :where(p,ul,ol,dl,fieldset,details,figure,table)+:where(p,ul,ol,dl,fieldset,details,figure,table,form,div),.tool-work :where(h2,h3,h4,legend)+:where(p,ol,ul,div,form,fieldset,figure,details) {margin-top:.8rem}
.tool-panel,.tool-entry,.tool-solved,.tool-locked {padding:clamp(1rem,3vw,1.8rem);border:1px solid #c6d4ca;border-radius:.7rem;background:#fffefa}
.tool-panel + .tool-panel,.tool-work>section+section {margin-top:1rem}.tool-panel h3 {font-size:1.25rem}
.tool-work figure {margin-inline:0}.tool-work img,.tool-work video,.tool-work canvas {max-width:100%;height:auto}
.tool-image {display:block;max-height:26rem;object-fit:contain;margin:.6rem auto}
.tool-work figcaption,.tool-note {color:#465b55;font-size:.95rem}
.tool-work details > summary {cursor:pointer;font-weight:700;color:#22574e}
.tool-actions {display:flex;gap:.6rem;align-items:center;flex-wrap:wrap;margin:.85rem 0}
.tool-btn,.tool-secondary {display:inline-flex;align-items:center;justify-content:center;gap:.4rem;color:#fffced;background:#205c50;padding:.65rem 1rem;border-radius:6px;min-height:42px;border:1px solid #245b51;font-weight:700;text-align:center;text-decoration:none;line-height:1.35}
.tool-secondary,.tool-btn.tool-secondary {background:#f1f6ef;color:#204e43;border-color:#a7c1b3}
.tool-work :is(button,input,select,textarea):disabled {opacity:.6}
.tool-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.tool-field {display:block;margin:.85rem 0;font-weight:600}
.tool-input,.tool-work :where(input[type=text],input[type=number],input[type=search],select,textarea) {box-sizing:border-box;max-width:100%;padding:.55rem .7rem;border:1px solid #80998e;border-radius:5px;background:white;color:#173a34;font:inherit;min-height:40px}
.tool-work :where(fieldset,table,ul,ol) {min-width:0}.tool-work fieldset {border:1px solid #cad7ca;padding:.7rem 1rem;border-radius:6px}.tool-work legend {font-weight:700}.tool-work input[type=radio] {accent-color:#166553}
.tool-steps {padding-left:1.4rem}.tool-steps li+li {margin-top:.3rem}
.tool-result,.tool-feedback:not(:empty) {background:#edf5ee;border-left:3px solid #528879;border-radius:3px;padding:.65rem .95rem}
.tool-feedback:empty {display:none}.tool-kicker {text-align:center;color:#286758;text-transform:uppercase;letter-spacing:.07em;font-weight:700;font-size:.88rem}
.tool-entries {grid-template-columns:repeat(2,minmax(0,1fr))}.tool-entry a {font-weight:bold}.tool-entry h2 {margin-top:.5rem}
.tool-locked,.tool-solved {max-width:45rem;margin:2rem auto;text-align:center}.tool-locked p,.tool-solved p:not(.kicker){margin:1rem auto;line-height:1.6}
.tool-solved .tool-actions {justify-content:center}
.tool-invitation {display:flex;gap:.75rem;flex-wrap:wrap;align-items:center;justify-content:center;text-align:center;margin:1.2rem auto;padding:.85rem 1.1rem;color:#194c46;background:#e9f2eb;border:1px solid #b8cdc0;border-radius:8px}
.tool-invitation span {font-weight:400}.tool-invitation:hover strong {text-decoration:underline}
.tool-back{margin-top:.4rem}
@media (min-width:1051px) and (max-width:1200px){.header-inner{gap:1rem}.header-inner nav{padding-left:1rem;gap:.12rem}.header-inner nav a{padding-inline:.5rem}}
@media (min-width:761px) and (max-width:1050px){.site-header .header-inner{flex-wrap:wrap;height:auto;gap:.4rem;padding-block:.6rem}.site-header .header-inner nav{order:3;width:100%;justify-content:center;border:none}.site-header .header-inner .rules{margin-left:auto}}
@media (max-width:900px){.tool-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.tool-banner-photo{width:16%;opacity:.87}.tool-banner-copy{max-width:69%}}
@media (max-width:760px){.site-header .header-inner nav{grid-template-columns:repeat(5,minmax(0,1fr))}.site-header .header-inner nav a{font-size:.75rem}}
@media (max-width:640px){.tool-banner-copy{max-width:96%}.tool-banner-photo{display:none}.tool-grid,.tool-entries{grid-template-columns:1fr}.tool-work :where(ol,ul){padding-left:1.35rem}.tool-tiles{gap:.55rem}.tool-tile-copy{padding:.65rem}.tool-tile-copy h3{font-size:1.18rem}.tool-tile-copy p{font-size:.95rem}.tool-work .tool-actions{align-items:stretch}}
@media (max-width:385px){.tool-tiles {grid-template-columns:1fr}.tool-cover{aspect-ratio:2.7}}

.tool-work [hidden]{display:none!important}
.tool-work .tool-result:empty{display:none}
.tool-work :where(.tool-field,.tool-panel form) :where(input:not([type=radio]),select,textarea){display:block;margin-top:.3rem;width:100%}
.tool-work blockquote{max-width:42rem;margin:.9rem auto;font:italic 1.18rem/1.45 Georgia,serif;border-left:3px solid #a9c0af;padding:.2rem .8rem;background:#f6f7ee}
.tool-work dl{margin:.6rem 0}.tool-work dt{font-weight:700}.tool-work dd{margin:.1rem 0 .55rem}
.tool-work .tool-result h3{margin:.3rem auto}.tool-work .tool-cites,.tool-entry .tool-cites{font-size:.95rem}
