/* L'atelier des enfants (cloné du site Roland Buraud par outils/assembler-statique.js) : une page claire, de grands boutons ; ses
   couleurs restent celles du papier dans tous les musées, l'accent du musée y est imprimé assez foncé (--accent-papier) */
.enfants { --papier: #f6f0e3/*fixe*/; --papier2: #ece3cf/*fixe*/; --encre: #2a231b/*fixe*/; --doux: #6b6153/*fixe*/; --vert: #2f7a46/*fixe*/; background: var(--papier); color: var(--encre); padding: 0 0 40px; font-size: 17px; }
.enfants .a-valider { margin: 0; padding: 10px 48px; background: #f2d24b/*fixe*/; color: #3a2e00/*fixe*/; font-size: 14px; font-weight: 600; }
.e-tete { padding: 44px 48px 10px; }
.e-tete .surtitre { margin: 0 0 6px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent-papier); }
.e-tete h1 { margin: 0; font-family: "EB Garamond", Georgia, serif; font-weight: 500; font-size: clamp(40px, 7vw, 64px); line-height: 1.05; color: var(--encre); }
.e-intro { margin: 12px 0 0; max-width: 620px; font-size: 19px; line-height: 1.55; color: var(--doux); }
.e-jeux ul { list-style: none; margin: 0; padding: 24px 48px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.carte-jeu { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: start; padding: 22px 22px 20px; border: 0; border-radius: 18px; background: #fff/*fixe*/; color: var(--encre); font: inherit; cursor: pointer; box-shadow: 0 2px 0 var(--papier2), 0 8px 22px rgba(80,60,30,.08)/*fixe*/; transition: transform .15s, box-shadow .15s; }
.carte-jeu:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 2px 0 var(--papier2), 0 14px 30px rgba(80,60,30,.14)/*fixe*/; }
.carte-jeu .pict { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-papier); color: #fff/*fixe*/; font-size: 26px; line-height: 1; }
.carte-jeu:nth-child(1) .pict { background: var(--accent-papier); }
.e-jeux li:nth-child(2n) .pict { background: #2f6fb5/*fixe*/; }
.e-jeux li:nth-child(3n) .pict { background: #c27a1c/*fixe*/; }
.e-jeux li:nth-child(5n) .pict { background: var(--vert); }
.carte-jeu b { font-family: "EB Garamond", Georgia, serif; font-weight: 500; font-size: 26px; line-height: 1.15; margin-top: 6px; }
.carte-jeu span:last-child { font-size: 15px; line-height: 1.45; color: var(--doux); }
.e-note { margin: 18px 48px 0; font-size: 13px; color: var(--doux); }

.e-scene { padding: 20px 48px 10px; }
.en-jeu .e-tete { padding-top: 22px; }
.en-jeu .e-tete h1 { font-size: 30px; }
.en-jeu .e-intro { display: none; }
.en-jeu .e-scene { padding-top: 4px; }
.e-jeu-tete h2 { margin: 14px 0 4px; font-family: "EB Garamond", Georgia, serif; font-weight: 500; font-size: clamp(32px, 5vw, 44px); line-height: 1.1; }
.e-consigne { margin: 0 0 18px; max-width: 680px; color: var(--doux); }
.e-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; margin: 0; padding: 10px 18px; border: 2px solid var(--encre); border-radius: 999px; background: #fff/*fixe*/; color: var(--encre); font: 600 15px Raleway, system-ui, sans-serif; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, transform .1s; }
.e-btn:hover { background: var(--encre); color: #fff/*fixe*/; }
.e-btn:active { transform: scale(.97); }
.e-btn.plein { background: var(--accent-papier); border-color: var(--accent-papier); color: #fff/*fixe*/; }
.e-btn.plein:hover { background: var(--accent-papier); border-color: var(--accent-papier); filter: brightness(1.15); }
.e-btn[data-sur] { background: var(--accent-papier); border-color: var(--accent-papier); color: #fff/*fixe*/; }
.e-btn.retour { min-height: 38px; padding: 6px 14px; border-width: 1px; font-size: 14px; }
.e-btn[aria-pressed="true"] { background: var(--encre); color: #fff/*fixe*/; }
.e-actions, .e-niveaux { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.enfants :focus-visible { outline: 3px solid #2f6fb5/*fixe*/; outline-offset: 3px; }

/* quiz */
.e-quiz { max-width: 860px; }
.e-num { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-papier); }
.e-question { margin: 0 0 16px; font-family: "EB Garamond", Georgia, serif; font-weight: 500; font-size: clamp(25px, 3.6vw, 32px); line-height: 1.2; }
.e-visuel { display: flex; justify-content: center; margin: 0 0 18px; }
.e-visuel img { max-height: min(46vh, 420px); width: auto; box-shadow: 0 10px 28px rgba(60,40,20,.2)/*fixe*/; background: #fff/*fixe*/; }
.e-visuel.detail canvas { width: min(250px, 62vw); height: auto; border-radius: 50%; border: 6px solid #fff/*fixe*/; box-shadow: 0 10px 28px rgba(60,40,20,.25)/*fixe*/; }
.e-choix { display: grid; gap: 10px; }
.e-choix.images { grid-template-columns: repeat(3, 1fr); }
.e-choix.deux { grid-template-columns: repeat(2, 1fr); }
.e-option { min-height: 56px; padding: 12px 18px; border: 2px solid var(--papier2); border-radius: 14px; background: #fff/*fixe*/; color: var(--encre); font: 600 17px Raleway, system-ui, sans-serif; text-align: start; cursor: pointer; transition: border-color .15s, transform .1s; }
.e-option:hover:not(:disabled) { border-color: var(--encre); }
.e-option img { display: block; width: 100%; height: 160px; object-fit: contain; }
.e-choix.images .e-option, .e-galerie .e-option { padding: 8px; }
.e-option.bon { border-color: var(--vert); background: #e6f2e8/*fixe*/; }
.e-option.faux { border-color: var(--accent-papier); background: #f8e3e1/*fixe*/; }
.e-option:disabled { cursor: default; }
.e-option:disabled:not(.bon):not(.faux) { opacity: .55; }
.e-retour { margin: 18px 0 0; padding: 18px 20px; border-radius: 16px; background: #fff/*fixe*/; }
.e-verdict { margin: 0 0 6px; font-family: "EB Garamond", Georgia, serif; font-size: 28px; }
.e-verdict.oui { color: var(--vert); }
.e-verdict.non { color: var(--accent-papier); }
.e-cartel { margin: 6px 0; font-weight: 600; }
.e-plus { margin: 6px 0; color: var(--doux); }
.e-lien { display: table; margin: 6px 0 14px; color: var(--accent-papier); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.e-mini { width: 120px; height: auto; float: inline-end; margin: 0 0 8px 12px; }
.e-echelle { display: block; max-width: 100%; height: auto; margin: 10px 0; background: #f8f4ea/*fixe*/; border-radius: 10px; }
.e-fin { margin: 20px 0; padding: 24px; border-radius: 18px; background: #fff/*fixe*/; text-align: center; }
.e-fin .e-actions { justify-content: center; }
.e-score { margin: 0; font-family: "EB Garamond", Georgia, serif; font-size: 56px; line-height: 1.1; color: var(--accent-papier); }
.e-etoiles { margin: 4px 0 10px; font-size: 40px; letter-spacing: .1em; color: #e0a722/*fixe*/; }
.e-etoiles span { color: var(--papier2); }

/* memory */
.e-memory { display: grid; gap: 10px; max-width: 760px; grid-template-columns: repeat(4, 1fr); }
.e-memory.p10 { grid-template-columns: repeat(5, 1fr); }
.e-carte { position: relative; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 12px; background: none; cursor: pointer; perspective: 800px; }
.e-carte .dos, .e-carte .face { position: absolute; inset: 0; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .4s; }
.e-carte .dos { background: var(--accent-papier) radial-gradient(circle at 50% 50%, rgba(203,181,117,.55)/*fixe*/ 0 14%, transparent 15%) ; box-shadow: inset 0 0 0 5px #fff/*fixe*/, inset 0 0 0 7px var(--or); }
.e-carte .face { transform: rotateY(180deg); background: #fff/*fixe*/; display: grid; place-items: center; padding: 6px; box-shadow: 0 4px 12px rgba(60,40,20,.15)/*fixe*/; }
.e-carte .face img { width: 100%; height: 100%; object-fit: contain; }
.e-carte.ouverte .dos { transform: rotateY(-180deg); }
.e-carte.ouverte .face { transform: rotateY(0); }
.e-carte.trouvee .face { box-shadow: 0 0 0 4px var(--vert); }
.e-trouvees { list-style: none; margin: 10px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; text-align: start; font-size: 13px; }
.e-trouvees img { display: block; width: 100%; height: 110px; object-fit: contain; background: var(--papier); }

/* puzzle */
.e-puzzle { display: grid; gap: 2px; width: 100%; background: var(--papier2); border: 6px solid #fff/*fixe*/; box-shadow: 0 10px 28px rgba(60,40,20,.2)/*fixe*/; }
.e-piece { border: 0; padding: 0; background-repeat: no-repeat; cursor: pointer; transition: filter .15s, outline-color .15s; outline: 3px solid transparent; outline-offset: -3px; }
.e-piece.choisi { outline-color: #2f6fb5/*fixe*/; filter: brightness(1.12); }
.e-puzzle.fini { gap: 0; }
.e-modele img { max-width: 240px; margin-top: 8px; border: 4px solid #fff/*fixe*/; }
.e-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 8px 0 10px; }
.e-galerie .e-option img { height: 120px; }
.e-choisir { margin: 10px 0; }

/* à ta taille */
.e-reglette { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 6px 0 14px; font-weight: 600; }
.e-reglette input { width: min(360px, 70vw); accent-color: var(--accent-papier); }
.e-reglette output { min-width: 70px; font-size: 22px; font-family: "EB Garamond", Georgia, serif; }
.e-taille { max-width: 760px; }
.e-taille canvas { display: block; max-width: 100%; height: auto; border-radius: 12px; }

/* jeu de piste */
.e-feuille { max-width: 820px; margin: 10px 0; padding: 28px 30px; background: #fff/*fixe*/; border-radius: 6px; box-shadow: 0 10px 28px rgba(60,40,20,.14)/*fixe*/; }
.e-feuille .surtitre { margin: 0; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent-papier); }
.e-feuille h3 { margin: 4px 0 8px; font-family: "EB Garamond", Georgia, serif; font-weight: 500; font-size: 34px; }
.e-piste { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 16px; margin: 14px 0; padding-inline-start: 22px; }
.e-piste li { font-weight: 600; }
.e-piste p { margin: 6px 0 0; font-weight: 400; font-size: 14px; }
.e-case { aspect-ratio: 1; background: var(--papier); border-radius: 50%; overflow: hidden; border: 3px solid var(--papier2); }
.e-case img { width: 100%; height: 100%; display: block; }
.e-reponses { margin-top: 18px; font-size: 11px; color: var(--doux); transform: rotate(180deg); text-align: end; }

/* atelier */
.e-atelier { display: grid; gap: 18px; }
.e-atelier.avec-modele { grid-template-columns: minmax(0, 1fr) minmax(180px, 280px); align-items: start; }
.e-cadre { position: relative; max-width: 980px; border: 6px solid #fff/*fixe*/; border-radius: 6px; box-shadow: 0 10px 28px rgba(60,40,20,.18)/*fixe*/; background: #fff/*fixe*/; }
.e-toile { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; touch-action: none; cursor: crosshair; }
.e-calque { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; pointer-events: none; }
.e-outils, .e-palette { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.e-palette.oeuvre:empty { display: none; }
.e-palette.oeuvre .e-num { width: 100%; margin: 4px 0 0; }
.e-pastille { width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 3px solid #fff/*fixe*/; box-shadow: 0 0 0 1px var(--papier2); cursor: pointer; }
.e-pastille[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--encre); transform: scale(1.1); }
.e-modele-cote { margin: 0; position: sticky; top: 12px; }
.e-modele-cote img { width: 100%; background: #fff/*fixe*/; border: 6px solid #fff/*fixe*/; box-shadow: 0 10px 28px rgba(60,40,20,.18)/*fixe*/; }
.e-modele-cote figcaption { margin-top: 6px; font-size: 13px; color: var(--doux); }

@media (max-width: 760px) {
  .e-tete, .e-scene { padding-left: 16px; padding-right: 16px; }
  .e-jeux ul { padding: 18px 16px; grid-template-columns: 1fr 1fr; gap: 10px; }
  .carte-jeu { padding: 16px 14px; }
  .carte-jeu b { font-size: 21px; }
  .carte-jeu span:last-child { font-size: 13px; }
  .enfants .a-valider, .e-note { padding-left: 16px; padding-right: 16px; margin-left: 0; margin-right: 0; }
  .e-choix.images { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .e-option img { height: 110px; }
  .e-memory, .e-memory.p10 { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .e-piste { grid-template-columns: repeat(2, 1fr); }
  .e-atelier.avec-modele { grid-template-columns: 1fr; }
  .e-modele-cote { position: static; max-width: 260px; }
  .e-pastille { width: 36px; height: 36px; }
}

/* impression : seulement la feuille du jeu de piste, ou seulement le dessin */
#e-impression { display: none; }
@media print {
  body.imprime-piste * , body.imprime-dessin * { visibility: hidden; }
  body.imprime-piste .e-feuille, body.imprime-piste .e-feuille * { visibility: visible; }
  body.imprime-piste .e-feuille { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; }
  body.imprime-dessin #e-impression { display: block; position: absolute; left: 0; top: 0; width: 100%; }
  body.imprime-dessin #e-impression, body.imprime-dessin #e-impression * { visibility: visible; }
  body.imprime-dessin #e-impression img { width: 100%; }
  body { background: #fff/*fixe*/; }
}

/* fiche enseignant */
.e-prof { margin: 0 48px; font-weight: 600; }
.e-prof a { color: var(--accent-papier); text-decoration: underline; text-underline-offset: 3px; }
.en-jeu .e-prof { display: none; }
.ens-bloc { max-width: 900px; padding: 8px 48px 4px; }
.ens-bloc h2 { margin: 18px 0 8px; font-family: "EB Garamond", Georgia, serif; font-weight: 500; font-size: 30px; color: var(--accent-papier); }
.ens-liste { margin: 0; padding-inline-start: 22px; line-height: 1.6; }
.ens-liste li { margin: 4px 0; }
.ens-parcours { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ens-etape { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 20px; background: #fff/*fixe*/; border-radius: 14px; break-inside: avoid; }
.ens-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-papier); color: #fff/*fixe*/; font: 600 18px Raleway, system-ui, sans-serif; }
.ens-etape h3 { margin: 0 0 6px; font-family: "EB Garamond", Georgia, serif; font-weight: 500; font-size: 26px; }
.ens-etape h3 a:hover { color: var(--accent-papier); }
.ens-mur { margin: 0 0 8px; font-family: "EB Garamond", Georgia, serif; font-size: 18px; font-style: italic; color: var(--doux); }
.ens-titre { margin: 8px 0 2px; font-weight: 600; }
.ens-etape ul { margin: 0; padding-inline-start: 20px; }
.ens-jeu { margin: 8px 0 0; font-size: 15px; }
.ens-jeu a { color: var(--accent-papier); font-weight: 600; text-decoration: underline; }
.ens-mots { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.ens-mots dt { font-weight: 600; }
.ens-mots dd { margin: 0; }
@media (max-width: 760px) { .ens-bloc { padding-left: 16px; padding-right: 16px; } .e-prof { margin: 0 16px; } .ens-mots { grid-template-columns: 1fr; } .ens-mots dd { margin-bottom: 8px; } }
@media print {
  .page-enfants .entete, .page-enfants .pied, .ens .a-valider, .ens .e-actions { display: none !important; }
  .ens { background: #fff/*fixe*/; padding: 0; }
  .ens-etape { border: 1px solid #ddd/*fixe*/; }
}
