      /* --  generateur_wordsearch.css -- */

.ws-grid{
    display: inline-grid;              /* clé absolue */
    gap: 2px;
    background: #dee2e6;
    border: 4px solid #dc3545;
    border-radius: 10px;
    padding: 4px;
    width: max-content;                /* clé absolue */
}

.ws-cell{
    aspect-ratio: 1 / 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 6px;
    user-select: none;
    transition: .15s ease;
}

.ws-word{
		background:#fff;
		border:1px solid #dee2e6;
		border-radius:8px;
		padding:.5rem;
		text-align:center;
		font-weight:600;
}
.ws-mark {
  outline: 2px solid rgba(0,0,0,.15);
  box-shadow: inset 0 0 0 9999px rgba(255, 193, 7, .35); /* jaune léger */
}

.ws-filler {
  opacity: .35;
}

.ws-filler-hidden {
  opacity: 0;
}
/* =========================================
   Preview grille scrollable
========================================= */

.ws-preview-wrapper{
  max-height: 70vh;
  overflow: auto;
padding: 10px;
   /*padding: 10px 14px 10px 10px;  +4px à droite */
}

/* Empêche débordement horizontal */
.ws-preview-wrapper{
  max-width: 100%;
}

/* Scrollbar plus propre (optionnel) */
.ws-preview-wrapper::-webkit-scrollbar{
  width: 8px;
  height: 8px;
}

.ws-preview-wrapper::-webkit-scrollbar-thumb{
  background: #adb5bd;
  border-radius: 4px;
}
