/* Mots mêlés (mm-) et étiquettes à glisser (et-) : jeux de type Wordwall, même design que le reste du site. */
.mm-intro { border: 2.5px dashed var(--noir); background: var(--rose-pale); border-radius: var(--rayon-petit); padding: 20px; margin: 18px 0 4px; }
.mm-intro strong { font-family: var(--font-titre); font-size: 1.3rem; font-weight: 400; }
.mm-haut { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 8px; font-weight: 700; }
.mm-chrono { font-variant-numeric: tabular-nums; background: var(--rose); border: var(--bord); border-radius: 999px; padding: 4px 16px; font-size: 1.25rem; box-shadow: 3px 3px 0 var(--noir); }
.mm-chrono--alerte { background: var(--corail); color: var(--blanc); }
.mm-piste { height: 8px; background: var(--rose-pale); border: 2px solid var(--noir); border-radius: 999px; overflow: hidden; margin-bottom: 16px; }
.mm-piste span { display: block; height: 100%; background: var(--corail); transition: width .25s linear; }
.mm-liste { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; }
.mm-mot { border: 2px solid var(--noir); border-radius: 999px; padding: 3px 12px; font-weight: 700; background: var(--blanc); font-size: .95rem; }
.mm-mot small { font-weight: 400; color: var(--texte-doux); margin-left: 4px; }
.mm-mot--trouve { background: var(--rose); text-decoration: line-through; }
.mm-grille { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; max-width: 440px; margin: 0 auto 16px; padding: 10px; border: var(--bord); border-radius: var(--rayon-petit); box-shadow: var(--ombre); background: var(--blanc); user-select: none; }
.mm-lettre { aspect-ratio: 1; min-width: 0; padding: 0; font-family: var(--font-titre); font-size: clamp(1rem, 4.6vw, 1.5rem); color: var(--noir); background: var(--rose-pale); border: 2px solid var(--noir); border-radius: 8px; cursor: pointer; transition: transform .12s ease; }
.mm-lettre:hover { transform: translate(-1px, -1px); }
.mm-lettre:focus-visible { outline: 3px solid var(--noir); outline-offset: 2px; }
.mm-lettre--choisie { background: var(--corail); color: var(--blanc); }
.mm-lettre--trouvee { background: var(--rose); }
.mm-selection { text-align: center; letter-spacing: 2px; margin: 0 0 10px; }
.mm-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.mm-message { text-align: center; min-height: 1.6em; margin: 12px 0 0; font-weight: 700; }

.et-reserve { display: flex; flex-wrap: wrap; gap: 12px; min-height: 80px; padding: 14px; margin: 14px 0 22px; border: 2.5px dashed var(--noir); border-radius: var(--rayon-petit); background: var(--rose-pale); }
.et-tuile { font-family: var(--font-texte); font-size: 1.05rem; font-weight: 700; color: var(--blanc); padding: 12px 16px; max-width: 100%; border: var(--bord); border-radius: 12px; box-shadow: 3px 3px 0 var(--noir); cursor: grab; touch-action: none; user-select: none; overflow-wrap: anywhere; }
.et-tuile:active { cursor: grabbing; }
.et-tuile:focus-visible { outline: 3px solid var(--noir); outline-offset: 3px; }
.et-tuile[aria-pressed="true"] { outline: 4px solid var(--noir); outline-offset: 3px; }
.et-couleur-0 { background: #087dcb; } .et-couleur-1 { background: #bf1932; } .et-couleur-2 { background: #a34800; }
.et-couleur-3 { background: #18724c; } .et-couleur-4 { background: #8b2cc0; } .et-couleur-5 { background: #3340b5; }
.et-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 14px; margin-bottom: 20px; }
.et-carte { text-align: center; min-width: 0; }
.et-case { display: flex; align-items: center; justify-content: center; min-height: 82px; padding: 8px; border: 2.5px dashed var(--noir); border-radius: var(--rayon-petit); background: var(--blanc); }
.et-case--pleine { border-style: solid; background: var(--rose-pale); }
.et-case--juste { background: #d6f2dc; box-shadow: inset 0 0 0 3px var(--noir); }
.et-case--faux { background: #ffe1d9; border-color: var(--corail); }
.et-case .et-tuile { width: 100%; }
.et-vide { font-size: .85rem; color: var(--texte-doux); }
.et-trad { font-weight: 700; margin: 8px 0 2px; font-size: .95rem; }
.et-retour { border: 0; background: transparent; text-decoration: underline; font: inherit; font-size: .8rem; cursor: pointer; padding: 4px; color: var(--texte-doux); }
.et-message { min-height: 1.6em; font-weight: 700; margin: 12px 0 0; }
.et-fantome { position: fixed; z-index: 10000; pointer-events: none; transform: translate(-50%, -50%); opacity: .9; }

@media (max-width: 620px) {
  .et-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .et-tuile { font-size: .95rem; padding: 10px 12px; }
  .mm-grille { gap: 3px; padding: 8px; }
}
@media (prefers-reduced-motion: reduce) { .mm-piste span, .mm-lettre { transition: none; } .mm-lettre:hover { transform: none; } }
