/* Le Bouche-à-oreille dessiné — direction artistique carnet à spirale — Sebdesign Studio */
body[data-jeu="dessin"] { background: #FFFDF6; background-image: linear-gradient(rgba(70, 130, 200, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(70, 130, 200, .16) 1px, transparent 1px); background-size: 22px 22px; background-attachment: fixed; color: #1E2A44; }
body[data-jeu="dessin"] #scene { display: none; }
.dsn-page { --encre: #1E2A44; --rouge: #E0463C; --marge: #F08A8A; font-family: 'Patrick Hand', 'Comic Sans MS', cursive; font-size: 18px; gap: 10px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.dsn-entete { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dsn-titre { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-family: 'Patrick Hand', cursive; font-weight: 400; font-size: clamp(26px, 8vw, 34px); color: var(--rouge); transform: rotate(-1.5deg); }
.dsn-entete-d { display: flex; gap: 5px; flex: none; }
.dsn-mini { padding: 4px 10px; border: 2px solid var(--encre); border-radius: 10px 8px 12px 7px; background: #FFF; color: var(--encre); font-family: inherit; font-size: 17px; }
.dsn-etape { margin: 0; text-align: center; font-size: 18px; color: #5B6B8C; }
.dsn-feuillet { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 16px 16px 16px 30px; background: #FFF; border-radius: 4px; box-shadow: 0 4px 14px rgba(30, 42, 68, .15);
  background-image: linear-gradient(90deg, transparent 20px, var(--marge) 20px, var(--marge) 22px, transparent 22px), repeating-linear-gradient(180deg, transparent 0 27px, rgba(70, 130, 200, .25) 27px 28px); }
.dsn-feuillet::before { content: ''; position: absolute; top: 10px; bottom: 10px; left: -8px; width: 14px; background: radial-gradient(circle, #9AA3B5 4px, transparent 5px) 0 0 / 14px 22px repeat-y; }
.dsn-titre-page { margin: 0; font-size: 24px; text-align: center; }
.dsn-aide { margin: 0; text-align: center; color: #5B6B8C; }
.dsn-champ { width: 100%; height: 52px; padding: 0 12px; border: 0; border-bottom: 3px solid var(--encre); background: transparent; font-family: inherit; font-size: 22px; color: var(--encre); outline: none; }
.dsn-idees { display: flex; flex-direction: column; gap: 6px; }
.dsn-idee { padding: 8px 12px; border: 2px dashed #9AA3B5; border-radius: 10px; background: #FFFDF6; font-family: inherit; font-size: 18px; color: var(--encre); text-align: left; }
.dsn-consigne { padding: 10px 14px; background: #FFF6B8; border-radius: 3px; box-shadow: 0 3px 8px rgba(0, 0, 0, .12); transform: rotate(-1deg); font-size: 22px; line-height: 1.2; }
.dsn-consigne span { color: var(--rouge); }
.dsn-feuille { width: 100%; max-width: min(100%, 46vh); align-self: center; aspect-ratio: 1; background: #FFF; border: 2px solid var(--encre); border-radius: 6px; box-shadow: 3px 4px 0 rgba(30, 42, 68, .2); }
#dsn-toile { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.dsn-outils { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.dsn-couleur { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #FFF; background: var(--c); box-shadow: 0 0 0 2px var(--encre); }
.dsn-couleur.sel { box-shadow: 0 0 0 2px var(--encre), 0 0 0 5px var(--c); transform: scale(1.1); }
.dsn-outil { padding: 6px 10px; border: 2px solid var(--encre); border-radius: 10px 8px 12px 7px; background: #FFF; font-family: inherit; font-size: 17px; color: var(--encre); }
.dsn-btn { width: 100%; min-height: 54px; border: 3px solid var(--encre); border-radius: 14px 10px 16px 9px; background: var(--rouge); color: #FFF; font-family: inherit; font-size: 24px; box-shadow: 3px 4px 0 var(--encre); }
.dsn-btn.clair { background: #FFF; color: var(--encre); }
.dsn-btn:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--encre); }
.dsn-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dsn-lien { align-self: center; border: 0; background: none; font-family: inherit; font-size: 16px; color: #5B6B8C; text-decoration: underline; }
.dsn-chrono { height: 6px; border-radius: 9px; background: rgba(30, 42, 68, .12); overflow: hidden; }
.dsn-chrono span { display: block; height: 100%; width: 100%; background: var(--rouge); transition: width .25s linear; }
.dsn-chrono-txt { margin: -6px 0 0; text-align: right; font-size: 15px; color: #5B6B8C; }
.dsn-svg { width: 100%; max-width: 280px; align-self: center; aspect-ratio: 1; background: #FFF; border: 2px solid #D0D6E2; border-radius: 6px; }
.dsn-svg.grand { max-width: min(100%, 38vh); }
.dsn-vide { text-anchor: middle; font-family: 'Patrick Hand', cursive; font-size: 22px; fill: #9AA3B5; }
.dsn-album-page { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; background: #FFF; border-radius: 4px; box-shadow: 0 3px 10px rgba(30, 42, 68, .12); opacity: .55; transform: scale(.92); }
.dsn-album-page .dsn-svg { max-width: 120px; }
.dsn-album-page.grand { opacity: 1; transform: none; animation: dsn-tourne .4s ease-out; }
.dsn-album-page.grand .dsn-svg { max-width: min(100%, 36vh); }
@keyframes dsn-tourne { from { transform: rotateY(70deg); opacity: 0; } to { transform: none; opacity: 1; } }
.dsn-auteur { font-size: 16px; color: #5B6B8C; }
.dsn-phrase { margin: 0; font-size: 26px; text-align: center; line-height: 1.15; }
.dsn-album-page:not(.grand) .dsn-phrase { font-size: 18px; }
.dsn-verdict { margin: 0; text-align: center; font-size: 20px; color: var(--rouge); }
.dsn-verdict.ok { color: #2E9E57; }
.dsn-bilan { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dsn-bilan li { display: flex; justify-content: space-between; padding: 8px 14px; background: #FFF; border-left: 4px solid var(--rouge); font-size: 20px; }
.dsn-bilan em { font-style: normal; color: var(--rouge); }
.dsn-pastilles { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; font-size: 16px; color: #5B6B8C; }
.dsn-pastilles i { width: 26px; height: 26px; display: grid; place-items: center; border: 2px solid var(--encre); border-radius: 50%; font-style: normal; opacity: .35; }
.dsn-pastilles i.oui { opacity: 1; background: var(--encre); color: #FFF; }
.dsn-signature { margin: 4px 0 0; text-align: center; font-size: 15px; color: #9AA3B5; }
.dsn-gomme { display: inline-flex; align-items: center; gap: 4px; }
.dsn-gomme svg { width: 20px; height: 20px; }
.dsn-gomme.sel { background: #FFE3EA; box-shadow: 0 0 0 3px #F6B3C0; }
#dsn-toile { background: #FFF; }
