/* =====================================================================
   /fle/reconstruire_mot/styles.css
   ===================================================================== */

.fle-reconstruire-mot .setting-card {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 1rem;
    background: #f8f9fa;
    padding: 1rem;
}

.fle-reconstruire-mot #motContainer,
.fle-reconstruire-mot #zoneSyllabes,
.fle-reconstruire-mot #zoneMots {
    transition: opacity .25s ease-in-out;
}

.fle-reconstruire-mot .mot-image {
    width: min(220px, 60vw);
    height: min(220px, 60vw);
    object-fit: contain;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    background: #fff;
}

.fle-reconstruire-mot .mot-image:hover {
    transform: scale(1.03);
}

.fle-reconstruire-mot .mot-image.is-speaking {
    transform: scale(1.06);
    box-shadow: 0 .5rem 1rem rgba(13, 110, 253, .25);
}

.fle-reconstruire-mot .zone-syllabe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    min-height: 52px;
    margin: .3rem;
    padding: .55rem .8rem;
    border: 2px solid #ced4da;
    border-radius: .9rem;
    background: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    cursor: grab;
    user-select: none;
    transition: transform .15s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease;
}

.fle-reconstruire-mot .zone-syllabe:hover {
    background: #eef5ff;
    border-color: #86b7fe;
    transform: translateY(-1px);
}

.fle-reconstruire-mot .zone-syllabe:active {
    cursor: grabbing;
}

.fle-reconstruire-mot .droppable {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    min-height: 58px;
    padding: .5rem .75rem;
    border: 2px dashed #adb5bd;
    border-radius: .9rem;
    background: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;
    transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
}

.fle-reconstruire-mot .droppable:not(:empty) {
    border-style: solid;
    border-color: #0d6efd;
    background: #eef5ff;
}

.fle-reconstruire-mot .droppable.incorrect,
.fle-reconstruire-mot .incorrect {
    background-color: #f8d7da !important;
    border-color: #dc3545 !important;
    animation: fle-tremblement .35s ease-in-out;
}

@keyframes fle-tremblement {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.fle-reconstruire-mot #feedback {
    min-height: 3rem;
}

.fle-reconstruire-mot #listeResultats {
    max-height: 540px;
    overflow-y: auto;
}

.fle-reconstruire-mot .result-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    text-align: center;
    padding: .6rem;
    border-radius: .85rem;
    box-sizing: border-box;
}

.fle-reconstruire-mot .result-item img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    background: #fff;
}

.fle-reconstruire-mot .result-item span {
    font-size: .95rem;
    font-weight: 700;
}

.fle-reconstruire-mot .result-correct-first-try {
    background-color: #d1e7dd;
    border: 2px solid #198754;
}

.fle-reconstruire-mot .result-correct-multiple-tries {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
}

@media (max-width: 576px) {
    .fle-reconstruire-mot .zone-syllabe,
    .fle-reconstruire-mot .droppable {
        font-size: 1.15rem;
        min-width: 52px;
        min-height: 50px;
    }
}
