/* Bibliothèque et jeux autonomes uniquement ; styles du parcours inchangés. */
.jcarte{border:2px solid #171313;border-radius:22px;box-shadow:3px 5px #171313;background:#fff}.jcarte__image{background:#fff4f9;border-bottom:1px solid #eddae3;aspect-ratio:335/218}.jcarte__image img{padding:30px 14px 12px;object-fit:contain}.jcarte__image img.jcarte__memory-capture{padding:13px 20px;object-fit:contain}.jcarte__niveau,.jcarte__statut{top:11px;border:1px solid #171313;background:#fff;color:#171313;font-size:11px;padding:3px 10px;line-height:1.2}.jcarte__niveau{left:11px}.jcarte__statut{right:11px;background:#dff4df;border-color:#79a981}.jcarte__statut--premium{background:#fff0f7;border-color:#d994b3;color:#171313}.jcarte__bandeau{padding:16px 18px 18px;gap:14px}.jcarte__titre{font-size:23px;line-height:1.15}.jcarte__level-inline{display:inline-block;vertical-align:middle;margin-left:4px;font:600 11px/1.2 'DM Sans',sans-serif;background:#fff0f7;border:1px solid #dab5c6;color:#755564;border-radius:99px;padding:3px 9px;white-space:nowrap}.jcarte__infos,.jcarte__format,.jcarte__badge:not(.jcarte__badge--score){display:none}.jcarte__pied{display:flex;flex-direction:row;gap:9px;margin-top:auto;padding-top:0}.jcarte__pied a.bouton{flex:1;width:auto;min-width:0;white-space:nowrap;font-size:13px;padding:10px 9px;min-height:42px;border:2px solid #171313;border-radius:99px;box-shadow:0 3px #171313}.jcarte__pied a[data-adventure]{background:#f62c04;color:white}.jcarte:hover .jcarte__pied .bouton{transform:none;box-shadow:0 3px #171313}
body.fbc-memory-game{background:#fffaf6}body.fbc-memory-game .jeu-zone>.conteneur{max-width:960px}body.fbc-memory-game #jeu>.carte{padding:8px 28px 25px;border:0;box-shadow:none;background:transparent}body.fbc-memory-game #jeu>.carte h1{font:400 32px/1.1 'Bagel Fat One',sans-serif;text-align:center;margin:10px 0 13px}body.fbc-memory-game #jeu>.carte>p{text-align:center;font-size:14px;line-height:1.5;color:#735562;margin:0 auto 10px;max-width:620px}body.fbc-memory-game .memory-intro{display:none!important}body.fbc-memory-game .memory-grille{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;width:100%;max-width:626px;margin:17px auto 15px}body.fbc-memory-game .memory-grille .memory-carte{display:flex;align-items:center;justify-content:center;position:relative;aspect-ratio:1;min-width:0;min-height:0;padding:10px;border:2px solid #171313;border-radius:18px;background:#ffbcd9;box-shadow:0 4px #171313;font:700 19px/1.2 'DM Sans',sans-serif;overflow:hidden;touch-action:manipulation;transition:transform .16s,background .2s}body.fbc-memory-game .memory-carte:not(.memory-carte--ouverte):before{content:'';position:absolute;inset:7px;border:1px solid #b7698b66;border-radius:11px;background-image:radial-gradient(#ffffff70 .7px,transparent .7px);background-size:9px 9px}body.fbc-memory-game .memory-back{display:block;width:77%;height:88%;font-size:0;transform:none;background:url('../img/baguettes/salutations-pop.png') 0 0/400% 300% no-repeat;position:relative;filter:drop-shadow(0 3px 1px #17131314)}body.fbc-memory-game .memory-carte.memory-carte--ouverte{background:#fff;border-color:#d994b3;box-shadow:0 4px #e3c4d2}body.fbc-memory-game .memory-carte:disabled{background:#dff4df;border-color:#7aae83;box-shadow:0 4px #a7c8ac;opacity:1;cursor:default}body.fbc-memory-game .memory-carte:disabled:after{content:'✓';position:absolute;right:6px;top:5px;display:grid;place-items:center;width:21px;height:21px;background:#3b8052;color:#fff;border-radius:50%;font:700 13px 'DM Sans',sans-serif}body.fbc-memory-game #game-mode-choice{justify-content:flex-end;gap:9px!important;margin-bottom:15px!important}body.fbc-memory-game #game-mode-choice .bouton{font-size:13px;border-radius:99px;padding:8px 15px}
@media(max-width:600px){body.fbc-memory-game #jeu>.carte{padding:4px 0 20px}body.fbc-memory-game #jeu>.carte h1{font-size:28px}body.fbc-memory-game .memory-grille{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;max-width:340px}body.fbc-memory-game .memory-grille .memory-carte{border-radius:15px;padding:7px;font-size:16px}.jcarte__titre{font-size:23px}.jcarte__pied a.bouton{padding:10px 8px;font-size:13px}}
@media(prefers-reduced-motion:reduce){body.fbc-memory-game .memory-carte{transition:none}}
/* v50 : deux couvertures validées, composées depuis les vraies paires du jeu. */
.jcarte__image--memory-v50>img{display:none}.memory-cover-v50{position:absolute;inset:0;display:grid;place-items:center;padding:38px 15px 12px;background:#fff1f7}.memory-cover-v50 .mcv-board{display:grid;grid-template-columns:repeat(2,78px);gap:9px 12px;transform:rotate(-4deg)}.memory-cover-v50 .mcv-piece{display:grid;place-items:center;width:78px;height:76px;min-width:0;overflow:hidden;border:1.7px solid #171313;border-radius:13px;box-shadow:0 3px #171313}.memory-cover-v50 .mcv-face{background:#fffaf6}.memory-cover-v50 .mcv-word{font:700 13px/1.25 'DM Sans',sans-serif;padding:5px;text-align:center;transform:rotate(6deg);overflow-wrap:anywhere}.memory-cover-v50 .mcv-back{background:#ffbcd9;padding:5px}.memory-cover-v50 .mcv-mascot{display:block;width:72%;height:92%;background:url('../img/baguettes/salutations-pop.png') 0 0/400% 300% no-repeat}.memory-cover-v50 .memory-illustration{width:65px;height:65px;flex:none;border-radius:6px;background-color:transparent}.jcarte__image--memory-v50 .jcarte__niveau,.jcarte__image--memory-v50 .jcarte__statut{z-index:2}.memory-cover-v50--fan{background:#fff4e9}.memory-cover-v50--fan .mcv-board{display:block;position:relative;width:250px;height:160px;transform:none}.memory-cover-v50--fan .mcv-piece{position:absolute;top:25px;width:96px;height:110px;box-shadow:1px 4px #171313;border-radius:15px}.memory-cover-v50--fan .mcv-piece:first-child{left:4px;transform:rotate(-14deg);z-index:2}.memory-cover-v50--fan .mcv-piece:nth-child(2){left:77px;top:7px;transform:rotate(1deg);z-index:1}.memory-cover-v50--fan .mcv-piece:last-child{left:150px;transform:rotate(14deg);z-index:3;font-size:15px}.memory-cover-v50--fan .memory-illustration{width:77px;height:77px}.memory-cover-v50--fan .mcv-mascot{width:75%;height:87%}
/* Même finition que les règles finales .cf-exercise .lj-memory du parcours. */
body.fbc-memory-game .memory-grille{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:auto;height:auto;max-width:490px;gap:12px}
body.fbc-memory-game .memory-grille .memory-carte{position:relative;aspect-ratio:1;border:1.5px solid #171313;border-radius:18px;background:#fff0f6;box-shadow:0 3px #d98aaa,0 8px 18px #17131309;padding:8px;font-size:16px}
body.fbc-memory-game .memory-carte:not(.memory-carte--ouverte){background-color:#FFBCD9;background-image:radial-gradient(#17131312 .8px,transparent .8px);background-size:13px 13px}
body.fbc-memory-game .memory-carte:not(.memory-carte--ouverte):before{inset:8px;border:1px solid #17131325;border-radius:11px;background:none;pointer-events:none}
body.fbc-memory-game .memory-back{display:block;flex:none;width:74%;height:83%;max-width:112px;max-height:124px;background:url('../img/baguettes/salutations-pop.png') 0 0/400% 300% no-repeat;filter:drop-shadow(0 3px 0 #17131315)}
body.fbc-memory-game .memory-carte.memory-carte--ouverte{background:#fffdf9;background-image:none;border-color:#dccbd2;box-shadow:0 3px #d98aaa,0 8px 18px #17131309;animation:fbc-memory-reveal .2s ease}
body.fbc-memory-game .memory-carte:disabled{background:#edf5e8;background-image:none;border-color:#b4cba5;box-shadow:0 3px #cbddbd;color:#36502c}
body.fbc-memory-game .memory-carte:disabled:after{right:7px;top:7px;width:20px;height:20px;background:#577d46;color:#fff;font:700 11px 'DM Sans',sans-serif}
@keyframes fbc-memory-reveal{from{transform:scale(.96)}to{transform:scale(1)}}
@media(max-width:620px){body.fbc-memory-game .memory-grille{grid-template-columns:repeat(3,minmax(0,1fr));max-width:340px;gap:9px}body.fbc-memory-game .memory-grille .memory-carte{border-radius:14px;font-size:13px;padding:6px}.memory-cover-v50{padding-top:38px}.memory-cover-v50--fan .mcv-board{width:242px}.memory-cover-v50--fan .mcv-piece:last-child{left:143px}}
@media(prefers-reduced-motion:reduce){body.fbc-memory-game .memory-carte.memory-carte--ouverte{animation:none}}
body.fbc-memory-game .jeu-zone{background:#fffaf6}
/* Miniatures QCM : modèles Épuré, Ticket quiz et Petit tableau validés. */
.jcarte__image--qcm-v50>img{display:none}.qcm-cover-v50{position:absolute;inset:0;padding:35px 13px 12px;background:#fff6fa;display:flex;flex-direction:column;gap:7px;overflow:hidden;color:#171313}.qcv-instruction{font:400 12px/1.15 'Bagel Fat One',sans-serif;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.qcv-question{min-height:51px;display:flex;align-items:center;justify-content:center;gap:8px;padding:6px 9px;background:#ffe7f2;border:1px solid #e5bccf;border-radius:11px;flex:1;min-width:0}.qcv-question strong{font:700 12px/1.2 'DM Sans',sans-serif;text-align:center;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.qcv-mascot{flex:none;display:block;width:32px;height:39px;background:url('../img/baguettes/salutations-pop.png') 0 0/400% 300% no-repeat}.qcv-emoji{font-size:25px;line-height:1;flex:none}.qcv-photo{position:static!important;width:38px!important;height:38px!important;object-fit:contain!important;padding:0!important;flex:none}.qcv-answers{display:grid;gap:5px;min-height:0}.qcv-answer{min-height:21px;display:flex;align-items:center;gap:6px;padding:3px 7px;background:white;border:1px solid #d8c6ce;border-radius:7px;box-shadow:0 1px #e6d1dc;font:700 10px/1.2 'DM Sans',sans-serif;min-width:0}.qcv-answer>span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.qcv-letter{color:#9b7184;flex:none;font-size:8px;border:1px solid #ead5df;border-radius:3px;padding:1px 4px}.qcm-cover-v50--epure .qcv-question{background:none;border:0;flex-direction:column;gap:3px;padding:0}.qcm-cover-v50--epure .qcv-question strong{background:#ffe7f2;border:1px solid #e5bccf;border-radius:8px;padding:5px 8px;width:100%}.qcm-cover-v50--epure .qcv-mascot{width:26px;height:31px}.qcm-cover-v50--epure .qcv-emoji{font-size:22px}.qcm-cover-v50--ticket .qcv-question{border:1.5px solid #171313;background:#ffebf4;box-shadow:2px 3px #e4b5cb;flex-direction:row-reverse;position:relative;margin:0 2px 5px}.qcm-cover-v50--ticket .qcv-question:before,.qcm-cover-v50--ticket .qcv-question:after{content:'';position:absolute;left:-5px;top:calc(50% - 4px);width:8px;height:8px;border:1px solid #dec2ce;border-radius:50%;background:#fff6fa}.qcm-cover-v50--ticket .qcv-question:after{left:auto;right:-5px}.qcm-cover-v50--ticket .qcv-answers{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.qcm-cover-v50--ticket .qcv-answer{flex-direction:column;justify-content:center;min-height:45px;padding:5px 3px;border-color:#171313;border-radius:9px;gap:5px}.qcm-cover-v50--ticket .qcv-answer>span:last-child{white-space:normal;text-align:center;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.qcm-cover-v50--tableau{background:#ffe7f2}.qcm-cover-v50--tableau .qcv-question{background:#fffdf9;border:1.5px solid #171313;position:relative;box-shadow:2px 3px #e4c4d2;margin:0 2px 5px}.qcm-cover-v50--tableau .qcv-question:after{content:'';position:absolute;bottom:-4px;left:13px;right:13px;height:5px;border:1px solid #171313;border-radius:3px;background:#ffbcd9}.qcm-cover-v50--tableau .qcv-answer{border-color:#171313;border-radius:99px;justify-content:center}.qcm-cover-v50--tableau .qcv-letter{display:none}.qcv-capture-frame{width:100%;height:100%;min-height:0;overflow:hidden;border-radius:11px;background:#fffdf9}.qcv-capture-frame img{position:static!important;display:block;width:100%!important;height:100%!important;object-fit:contain!important;padding:0!important;transform:none!important}.qcm-cover-v50--ticket.qcm-cover-v50--capture{padding:40px 20px 17px;background:#ffebf4}.qcm-cover-v50--ticket .qcv-capture-frame{border:1.5px solid #171313;box-shadow:3px 4px #e4b5cb;transform:rotate(-3deg)}.qcm-cover-v50--tableau.qcm-cover-v50--capture{padding:38px 17px 15px}.qcm-cover-v50--tableau .qcv-capture-frame{border:1.5px solid #171313;box-shadow:0 4px #e4b5cb;border-bottom:5px solid #ffbcd9}.jcarte:hover .qcv-capture-frame img{transform:none!important}
/* Trois couvertures d’étiquettes validées : répartition stable par identifiant. */
.jcarte__image--labels-v50>img{display:none}.label-cover-v50{position:absolute;inset:0;padding:42px 12px 15px;background:#fff1f7;display:flex;flex-direction:column;justify-content:center;gap:13px;overflow:hidden;color:#171313}.lcv-bank{display:flex;justify-content:center;gap:6px}.lcv-word{background:white;border:1px solid #171313;border-radius:7px;padding:5px 6px;font:700 10px/1.2 'DM Sans',sans-serif;box-shadow:0 2px #dca8bf;max-width:33%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lcv-targets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.lcv-target{min-width:0;background:#fffdf9;border:1px solid #dbc1ce;border-radius:11px;padding:6px;display:flex;flex-direction:column;align-items:center;gap:5px;box-shadow:0 2px #ead6df}.lcv-target .memory-illustration{display:block;width:53px;height:53px;aspect-ratio:1;background-size:300% 200%;background-repeat:no-repeat}.lcv-target strong{font:700 10px/1.3 'DM Sans',sans-serif;min-height:53px;display:grid;place-items:center;text-align:center;overflow-wrap:anywhere}.lcv-slot{display:grid;place-items:center;min-height:26px;width:100%;border:1px dashed #ce8aab;border-radius:6px;background:#fff0f7;color:#b87596;font-size:16px}.label-cover-v50--cartes{background:#fff7eb;flex-direction:column-reverse}.label-cover-v50--cartes .lcv-target{border:1.5px solid #171313;border-radius:5px;box-shadow:2px 3px #e3c2d1}.label-cover-v50--cartes .lcv-target:first-child{transform:rotate(-4deg)}.label-cover-v50--cartes .lcv-target:last-child{transform:rotate(4deg)}.label-cover-v50--cartes .lcv-word{background:#ffbcd9;border-radius:99px}.label-cover-v50--colonnes{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;align-items:center}.label-cover-v50--colonnes .lcv-bank{flex-direction:column;gap:12px}.label-cover-v50--colonnes .lcv-word{max-width:100%;text-align:center;background:#ffbcd9;padding:8px 5px}.label-cover-v50--colonnes .lcv-targets{grid-template-columns:1fr;gap:7px}.label-cover-v50--colonnes .lcv-target{flex-direction:row;padding:4px;border:0;box-shadow:none}.label-cover-v50--colonnes .memory-illustration{width:32px;height:32px;flex:none}.label-cover-v50--colonnes .lcv-target strong{min-height:32px;width:55%;font-size:9px}.label-cover-v50--colonnes .lcv-slot{flex:1}.lcv-fallback{width:100%!important;height:100%!important;object-fit:contain!important;position:static!important;padding:0!important}
/* Un titre importé ne doit jamais étirer une rangée de la bibliothèque. */
#liste-jeux{align-items:start}#liste-jeux .jcarte{min-width:0}#liste-jeux .jcarte__titre{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;max-height:3.5em;overflow-wrap:anywhere}
/* Phrases en ordre : modèles 1 Bulle et 3 Pièces uniquement. */
.jcarte__image--order-v50>img{display:none}.order-cover-v50{position:absolute;inset:0;padding:39px 13px 14px;background:#fff1f7;display:flex;flex-direction:column;justify-content:center;gap:13px;color:#171313;overflow:hidden}.ocv-prompt{display:flex;gap:8px;align-items:center;min-height:44px}.ocv-mascot{display:block;width:32px;height:42px;flex:none;background:url('../img/baguettes/salutations-pop.png') 0 0/400% 300% no-repeat}.ocv-prompt strong{position:relative;background:#ffdeed;border:1px solid #e5b5cb;border-radius:12px;padding:9px 11px;flex:1;font:700 11px/1.3 'DM Sans',sans-serif;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.ocv-answer{min-height:39px;display:grid;place-items:center;border:1.5px dashed #c78ba7;border-radius:9px;background:#fffafd;font:11px 'DM Sans',sans-serif;color:#aa8295}.ocv-bank{display:flex;justify-content:center;flex-wrap:wrap;gap:5px;max-height:67px;overflow:hidden}.ocv-token{font:700 10px/1.2 'DM Sans',sans-serif;border:1px solid #171313;box-shadow:0 2px #dfbecd;border-radius:7px;background:white;padding:7px 8px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-cover-v50--pieces{background:#ffe5f1}.order-cover-v50--pieces .ocv-mascot{display:none}.order-cover-v50--pieces .ocv-prompt strong{text-align:center;border:1px solid #171313;border-radius:8px;background:#fffaf6}.order-cover-v50--pieces .ocv-answer{border:1.5px solid #ddb2c6;background:#fff4f9;box-shadow:inset 0 2px #f0d2e0}.order-cover-v50--pieces .ocv-token{position:relative;border-radius:4px;padding:8px 9px;background:#ffbcd9;margin-right:3px;overflow:visible}.order-cover-v50--pieces .ocv-token:after{content:'';position:absolute;right:-5px;top:calc(50% - 4px);width:7px;height:7px;border:1px solid #171313;border-left:0;border-radius:0 50% 50% 0;background:#ffbcd9;z-index:1}.ocv-capture{position:static!important;width:100%!important;height:100%!important;object-fit:contain!important;padding:0!important;transform:none!important;border-radius:10px}.order-cover-v50--pieces.order-cover-v50--capture .ocv-capture{border:1.5px solid #171313;box-shadow:0 3px #e1bacd}
/* Textes à trous : Bulle et Ticket validés. */
.jcarte__image--gap-v50>img{display:none}.gap-cover-v50{position:absolute;inset:0;padding:44px 13px 16px;background:#fff1f7;display:flex;flex-direction:column;justify-content:center;gap:15px;overflow:hidden;color:#171313}.gcv-board{display:flex;align-items:center;gap:9px;min-height:95px}.gcv-mascot{display:block;width:32px;height:43px;flex:none;background:url('../img/baguettes/salutations-pop.png') 0 0/400% 300% no-repeat}.gcv-sheet{flex:1;min-width:0;background:#ffdeed;border:1px solid #e5b5cb;border-radius:12px;padding:12px 9px}.gcv-label{display:block;font:7px/1.3 'DM Sans',sans-serif;letter-spacing:.8px;color:#9f6e85;margin-bottom:9px}.gcv-sentence{font:700 12px/1.7 'DM Sans',sans-serif;max-height:81px;overflow:hidden;text-align:center}.gcv-gap{display:inline-block;min-width:42px;padding:2px 6px;border:1px dashed #bb6d92;border-radius:6px;background:#fffafd;color:#9d5277}.gcv-verb{align-self:center;border:1px solid #171313;border-radius:8px;background:white;box-shadow:0 2px #ddbfcd;padding:6px 15px;font:700 11px 'DM Sans',sans-serif}.gap-cover-v50--ticket{background:#fff7ed;padding-left:20px;padding-right:20px}.gap-cover-v50--ticket .gcv-mascot{display:none}.gap-cover-v50--ticket .gcv-sheet{position:relative;border:1.5px solid #171313;background:#fffaf6;border-radius:8px;box-shadow:2px 4px #e4b5cb;padding:14px 12px;margin:0 3px}.gap-cover-v50--ticket .gcv-sheet:before,.gap-cover-v50--ticket .gcv-sheet:after{content:'';position:absolute;width:9px;height:9px;border:1px solid #171313;border-radius:50%;background:#fff7ed;top:calc(50% - 5px);left:-6px}.gap-cover-v50--ticket .gcv-sheet:after{left:auto;right:-6px}.gap-cover-v50--ticket .gcv-label{padding-bottom:7px;border-bottom:1px dashed #d7a8bf}.gap-cover-v50--ticket .gcv-gap{background:#ffdeed;border-color:#171313}.gap-cover-v50--ticket .gcv-verb{border-radius:99px}.gcv-capture{position:static!important;width:100%!important;height:100%!important;object-fit:contain!important;padding:0!important;transform:none!important;border-radius:10px}
