/* ============================================================
   flashcards-diff.css
   Codes couleurs boutons mode + fix mobile carte et boutons
   Chemin : /styles/outils/flashcards-diff.css
   ============================================================ */

/* ── Boutons mode ────────────────────────────────────────── */
.mode-btn {
    border: 2px solid transparent;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92em;
    transition: all 0.18s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
    cursor: pointer;
}

/* Leitner — violet (par défaut / actif) */
.mode-btn[data-mode="leitner"] {
    background: #f3e5f5;
    color: #6a1b9a;
    border-color: #ce93d8;
}
.mode-btn[data-mode="leitner"].active {
    background: #8e44ad;
    color: white;
    border-color: #6c3483;
    box-shadow: 0 4px 12px rgba(142,68,173,.4);
    transform: translateY(-2px);
}

/* Révision libre — bleu */
.mode-btn[data-mode="libre"] {
    background: #e3f2fd;
    color: #1565c0;
    border-color: #90caf9;
}
.mode-btn[data-mode="libre"].active {
    background: #1976d2;
    color: white;
    border-color: #1565c0;
    box-shadow: 0 4px 12px rgba(25,118,210,.4);
    transform: translateY(-2px);
}

/* Aléatoire — orange */
.mode-btn[data-mode="aleatoire"] {
    background: #fff3e0;
    color: #e65100;
    border-color: #ffcc80;
}
.mode-btn[data-mode="aleatoire"].active {
    background: #f57c00;
    color: white;
    border-color: #e65100;
    box-shadow: 0 4px 12px rgba(245,124,0,.4);
    transform: translateY(-2px);
}

.mode-btn:hover { filter: brightness(0.95); }

/* ── Fix mobile : carte + boutons ────────────────────────── */

/* Carte adaptative */
.card-container {
    min-height: 180px;
    max-height: none !important; /* annuler tout max-height fixe */
}

.card-face {
    padding: clamp(16px, 4vw, 32px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 160px;
}

.card-text {
    font-size: clamp(1em, 3.5vw, 1.4em);
    line-height: 1.5;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Boutons je sais / je ne sais pas */
.answer-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.answer-btn {
    flex: 1;
    min-width: 130px;
    padding: clamp(12px, 3vw, 18px) clamp(10px, 3vw, 28px);
    font-size: clamp(0.9em, 3vw, 1.1em);
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.18s ease;
    line-height: 1.3;
}

/* Masquer les raccourcis clavier sur mobile */
@media (max-width: 600px) {
    .keyboard-hint {
        display: none;
    }

    .answer-btn {
        padding: 16px 12px;
        font-size: 1em;
        min-width: 120px;
    }

    /* Carte plus haute sur mobile pour le texte long */
    .card-container {
        min-height: 220px;
    }

    /* S'assurer que les boutons restent visibles */
    .answer-buttons {
        position: sticky;
        bottom: 12px;
        background: rgba(255,255,255,0.95);
        padding: 10px 0;
        border-radius: 12px;
        box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
        z-index: 10;
    }

    /* Section session : éviter le débordement */
    #session-zone {
        padding-bottom: 80px; /* espace pour les boutons sticky */
    }
}
