/* Atelier Catalogues uniquement ; variables et composants du Labo existant. */
.modules-page .cc-workshop [hidden] { display: none !important; }
.cc-workshop { color: var(--paper); }
.cc-heading > p:not(.eyebrow), .cc-explanation { max-width: 85ch; color: var(--muted); }
.cc-heading h2 { margin-block: 14px 20px; }
.cc-workshop .cc-note { color: var(--muted); font-size: .8rem; margin-top: 18px; }
.cc-workshop button { min-height: 44px; padding: 10px 16px; border: 1px solid #718995; border-radius: 4px; background: transparent; color: var(--paper); font: inherit; font-size: .85rem; cursor: pointer; transition: border-color 160ms ease; }
.cc-workshop button:hover:not(:disabled), .cc-workshop button[aria-pressed="true"] { border-color: var(--champagne); }
.cc-workshop button[aria-pressed="true"] { background: var(--slate); }
.cc-workshop button:disabled { opacity: .5; cursor: default; }
.cc-universes { border: 0; padding: 0; margin: 30px 0 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.cc-universes legend { color: var(--champagne); font-size: .85rem; margin-bottom: 12px; }
.cc-experiences { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 24px; border-bottom: 1px solid #344956; }
.cc-workshop h3 { font-size: 1.15rem; margin-block: 24px 14px; }
.cc-feedback { min-height: 1.5em; margin-block: 16px; color: var(--champagne); font-size: .85rem; overflow-wrap: anywhere; }
#cc-filters fieldset { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 18px; padding: 20px; margin: 24px 0 18px; border: 1px solid #4B5C65; border-radius: 4px; min-width: 0; }
.cc-workshop label { display: grid; gap: 8px; min-width: 0; font-size: .85rem; }
.cc-workshop input, .cc-workshop select, .cc-workshop textarea { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #718995; border-radius: 4px; background: var(--ink); color: var(--paper); font: inherit; font-size: 1rem; }
.cc-workshop textarea { resize: vertical; }
.cc-workshop input::placeholder { color: var(--muted); }
.cc-count { color: var(--champagne); font-size: .85rem; }
.cc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0; margin: 20px 0; list-style: none; }
.cc-cards li { min-width: 0; }
.cc-cards .cc-card { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 20px; text-align: left; background: var(--ink); border-color: #4B5C65; }
.cc-card-visual { display: grid; place-items: center; min-height: 130px; background: var(--slate); color: var(--champagne); }
.cc-card-visual svg { width: 64px; height: 64px; }
.cc-card-title { font: 600 1.15rem/1.3 'Syne', sans-serif; overflow-wrap: anywhere; }
.cc-card-meta { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.cc-card-detail { color: var(--champagne); font-size: .78rem; margin-top: auto; }
#cc-entry { max-width: 760px; }
#cc-entry fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: clamp(18px, 3vw, 28px); margin: 24px 0 0; min-width: 0; border: 1px solid #4B5C65; border-radius: 4px; }
#cc-entry legend { padding-inline: 8px; font-size: .85rem; color: var(--champagne); }
#cc-description-field, #cc-format-field, #cc-entry-note, #cc-error, #cc-add { grid-column: 1 / -1; }
#cc-add { justify-self: start; background: var(--champagne); color: var(--ink); border-color: var(--champagne); }
#cc-entry-note, #cc-error { margin: 0; }
.cc-reset { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 24px; border-top: 1px solid #344956; margin-top: 32px; padding-top: 24px; }
.cc-reset p { color: var(--muted); max-width: 70ch; font-size: .85rem; }
.cc-sheet { width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; padding: clamp(20px, 3vw, 32px); border: 1px solid #718995; border-radius: 4px; background: var(--ink); color: var(--paper); }
.cc-sheet::backdrop { background: rgb(16 24 32 / .85); }
#cc-sheet-close { display: block; margin: 0 0 22px auto; }
.cc-sheet h3 { font-size: clamp(1.4rem, 3vw, 2rem); overflow-wrap: anywhere; }
.cc-sheet .cc-explanation { overflow-wrap: anywhere; white-space: pre-wrap; }
.cc-sheet dl { display: grid; gap: 16px; }
.cc-sheet dt { color: var(--champagne); font-size: .8rem; }
.cc-sheet dd { margin: 4px 0 0; color: var(--paper); overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 1000px) { .cc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) {
  #cc-filters fieldset, #cc-entry fieldset, .cc-cards { grid-template-columns: minmax(0, 1fr); }
  .cc-experiences { display: grid; }
  .cc-reset button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .cc-workshop button { transition: none; } }
