/* Coin des Curieux · programmes et accès clairement séparés · 13 octobre 2026 */
.cdc-chapter-welcome{margin:0 0 22px;padding:22px 24px;border:1px solid #d5e4d0;border-radius:24px;background:linear-gradient(115deg,#edf8e9,#fff7df)}
.cdc-chapter-welcome h1{margin:6px 0 8px;font-size:clamp(1.8rem,3vw,2.6rem)}
.cdc-chapter-welcome p{margin:0;max-width:65ch;color:#385344;line-height:1.55}
.cdc-chapter-active{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;background:#fff;border:1px solid #d5e4d0;border-radius:20px;padding:18px 20px;margin-bottom:22px}
.cdc-chapter-active-copy{min-width:0}.cdc-chapter-active h2{font-size:1.12rem;margin:0 0 7px}.cdc-chapter-active p{margin:0;line-height:1.5;color:#385344}.cdc-chapter-active strong{color:#1e4938}.cdc-chapter-active .cdc-actions{gap:10px;flex-wrap:wrap}.cdc-chapter-active form{margin:0}
.cdc-chapters-section{margin:0 0 28px;scroll-margin-top:24px}.cdc-chapters-section>.cdc-section-head{gap:12px;align-items:center;flex-wrap:wrap}.cdc-chapters-section h2{margin:5px 0 8px;font-size:1.65rem}.cdc-chapters-intro{color:#405849;font-size:.96rem;line-height:1.6;margin:0 0 18px}.cdc-chapters-note{line-height:1.6;color:#405849;margin:15px 3px 0;font-size:.86rem}
.cdc-chapters-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start}.cdc-chapter-card{--chapter:#285741;--chapter-soft:#e3f1dc;background:#fff;border:1px solid #d6e3d0;border-top:5px solid var(--chapter);border-radius:22px;padding:20px;min-width:0;scroll-margin-top:24px}.cdc-chapter-maths{--chapter:#795315;--chapter-soft:#ffefcf;border-color:#eadfc7}.cdc-chapter-vegetaux{--chapter:#594d7a;--chapter-soft:#eeebf9;border-color:#ddd8eb}.cdc-chapter-symbol{display:grid;place-items:center;color:var(--chapter);background:var(--chapter-soft);width:46px;height:46px;border-radius:15px;font-size:1.7rem;font-weight:800;margin-bottom:12px}.cdc-chapter-card .cdc-eyebrow{color:var(--chapter);font-size:.7rem;line-height:1.5;margin:0 0 6px}.cdc-chapter-card h3{font-size:1.4rem;color:#203e31;margin:0 0 10px;overflow-wrap:anywhere}.cdc-chapter-goal{font-size:.88rem;line-height:1.6;color:#3d5547;margin:0 0 13px}.cdc-chapter-card>.cdc-badge{background:var(--chapter-soft);color:var(--chapter);font-size:.72rem;line-height:1.5;white-space:normal}
.cdc-chapter-access{margin:16px 0;font-size:.81rem;line-height:1.5}.cdc-chapter-access>div{padding:9px 0;border-bottom:1px solid #e0e7da}.cdc-chapter-access dt{font-weight:800;color:#284837;overflow-wrap:anywhere}.cdc-chapter-access dd{margin:3px 0 0;color:#405849}.cdc-chapter-actions .cdc-button{width:100%;display:flex;justify-content:center;text-align:center;font-size:.84rem;line-height:1.45;padding:12px 10px;white-space:normal}.cdc-chapter-programme{margin-top:16px;border-top:1px solid #dce5d5;padding-top:5px}.cdc-chapter-programme summary{cursor:pointer;padding:13px 2px;min-height:46px;line-height:1.45;font-size:.9rem;font-weight:800;color:var(--chapter)}
.cdc-chapter-lessons{list-style:none;padding:0;margin:4px 0 0}.cdc-chapter-lesson{display:flex;align-items:flex-start;gap:10px;padding:16px 0;border-top:1px solid #e0e7da;min-width:0}.cdc-chapter-number{flex:none;display:grid;place-items:center;background:var(--chapter-soft,#edf4e7);color:var(--chapter,#285741);width:28px;height:28px;border-radius:9px;font-size:.87rem;font-weight:800}.cdc-chapter-lesson-copy{min-width:0;flex:1}.cdc-chapter-lesson h4{font-size:.96rem;line-height:1.5;margin:0 0 7px;overflow-wrap:anywhere;color:#203e31}.cdc-chapter-lesson p{font-size:.8rem;line-height:1.55;margin:0 0 9px;color:#405849}.cdc-chapter-lesson .cdc-chapter-lock{font-weight:700;color:#5d5743}.cdc-chapter-lesson .cdc-button{font-size:.8rem;line-height:1.4;padding:9px 10px;width:100%;min-height:44px;white-space:normal;text-align:center;justify-content:center}
.cdc-chapter-progress{display:block;margin:9px 0 11px;color:#385344;font-size:.76rem;line-height:1.5}.cdc-chapter-progress progress{display:block;appearance:auto;accent-color:var(--chapter,#285741);width:100%;height:10px;margin:6px 0 0;overflow:hidden;border:0;border-radius:6px}
.cdc-chapter-bonus{margin:0 0 22px;padding:20px 22px;scroll-margin-top:24px}.cdc-chapter-bonus summary{cursor:pointer;min-height:46px;line-height:1.5;padding:4px 0;color:#274c39}.cdc-chapter-bonus summary strong{font-size:1.12rem}.cdc-chapter-bonus summary span{display:block;font-size:.84rem;color:#405849;margin:4px 0 0}.cdc-chapter-bonus>p{font-size:.88rem;line-height:1.6;color:#405849}.cdc-chapter-bonus .cdc-chapter-lesson{padding:17px 0}.cdc-chapter-bonus .cdc-chapter-lesson .cdc-button{width:auto;display:inline-flex;min-width:130px}
.cdc-chapter-profile-switch{margin-bottom:22px;padding:18px 20px;background:#fff;border:1px solid #d5e4d0;border-radius:20px}.cdc-chapter-profile-switch summary{cursor:pointer;min-height:46px;line-height:1.5;font-weight:800;color:#284837;padding:7px 0}.cdc-chapter-profile-switch .cdc-profile-grid{margin-top:12px}.cdc-chapter-profile-switch>p{font-size:.85rem;line-height:1.55;color:#405849}
.cdc-child-chapter-nav{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 20px}.cdc-child-chapter-nav a{display:inline-flex;align-items:center;min-height:46px;background:#edf4e7;border:1px solid #cdddc5;color:#28513b;border-radius:14px;padding:10px 15px;font-weight:800;line-height:1.45;text-decoration:none}.cdc-child-chapters>.cdc-chapter-card{margin:0 0 18px}.cdc-child-chapters .cdc-chapter-lesson{gap:15px;padding:20px 0}.cdc-child-chapters .cdc-chapter-number{width:38px;height:38px;font-size:1.05rem}.cdc-child-chapters .cdc-chapter-lesson h4{font-size:1.05rem}.cdc-child-chapters .cdc-chapter-lesson .cdc-button{width:auto;min-width:160px;display:inline-flex;font-size:.88rem}.cdc-child-chapters .cdc-chapter-progress{font-size:.85rem;max-width:390px}.cdc-child-chapters .cdc-chapter-card>.cdc-section-head{flex-wrap:wrap;gap:9px}
.cdc-chapters-section a:focus-visible,.cdc-chapters-section summary:focus-visible,.cdc-chapter-bonus a:focus-visible,.cdc-chapter-bonus summary:focus-visible,.cdc-chapter-profile-switch summary:focus-visible,.cdc-chapter-active a:focus-visible,.cdc-chapter-active button:focus-visible{outline:3px solid #9a5a12;outline-offset:4px;border-radius:8px}
@media(min-width:801px)and(max-width:1120px){.cdc-chapters-grid{grid-template-columns:1fr}.cdc-chapter-card:not(:has(details[open])){display:grid;grid-template-columns:46px minmax(0,1fr);column-gap:15px}.cdc-chapter-card:not(:has(details[open]))>.cdc-chapter-symbol{grid-row:1/4}.cdc-chapter-card:not(:has(details[open]))>*:not(.cdc-chapter-symbol){grid-column:2}.cdc-chapter-card:not(:has(details[open]))>.cdc-chapter-symbol{grid-column:1}.cdc-chapter-card h3{overflow-wrap:normal}}
@media(max-width:800px){.cdc-chapters-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:690px){.cdc-chapters-grid{grid-template-columns:1fr}.cdc-chapter-card{padding:20px}.cdc-chapter-goal{font-size:.92rem}.cdc-chapter-access{display:grid;grid-template-columns:1fr 1fr;gap:12px;font-size:.85rem}.cdc-chapter-actions .cdc-button{font-size:.91rem}.cdc-chapter-lesson .cdc-button{width:auto;display:inline-flex;min-width:150px}.cdc-chapter-welcome{padding:20px}.cdc-chapter-active{padding:18px}.cdc-chapter-active .cdc-actions{width:100%}.cdc-chapter-bonus{padding:18px}}
@media(max-width:390px){.cdc-chapter-access{grid-template-columns:1fr;gap:0}.cdc-child-chapters .cdc-chapter-lesson{gap:10px}.cdc-child-chapters .cdc-chapter-lesson .cdc-button{min-width:0;width:100%}}
@media(prefers-reduced-motion:reduce){.cdc-chapters-section *{scroll-behavior:auto!important;transition:none!important}}
