/* ================================
   ÉNIGME DU JOUR - Styles spécifiques
   ================================ */

/* CONTAINER */
.container-enigme {
    max-width: 800px;
    margin: 10px auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* BLOC ÉNIGME */
.enigme-box {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* HEADER INFO (catégorie + chrono) */
.enigme-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.enigme-categorie {
    font-size: 0.9em;
    font-weight: 700;
    color: #764ba2;
    background: #f3e5f5;
    padding: 4px 12px;
    border-radius: 20px;
}

.enigme-chrono {
    font-size: 1.4em;
    font-weight: 700;
    color: #232526;
    font-variant-numeric: tabular-nums;
}

/* QUESTION */
.enigme-question-box {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.enigme-question {
    font-size: 1.2em;
    font-weight: 700;
    color: white;
    line-height: 1.5;
}

/* VIES */
.enigme-vies {
    text-align: center;
    font-size: 1.4em;
}

/* CHOIX QCM */
.enigme-choix {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-choix {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95em;
    font-weight: 600;
    color: #232526;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.btn-choix:hover {
    border-color: #764ba2;
    background: #f3e5f5;
}

.btn-choix.correct {
    background: #5ced8c;
    border-color: #5ced8c;
    color: #232526;
}

.btn-choix.incorrect {
    background: #ff5252;
    border-color: #ff5252;
    color: white;
}

.btn-choix:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* VRAI/FAUX */
.enigme-vrai-faux {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-vrai-faux {
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    border: 2px solid #e0e0e0;
    color: #232526;
}

.btn-vrai-faux:hover {
    border-color: #764ba2;
    background: #f3e5f5;
}

/* TEXTE LIBRE */
.enigme-texte {
    display: flex;
    gap: 10px;
}

.enigme-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    outline: none;
    transition: border-color 0.2s;
}

.enigme-input:focus {
    border-color: #764ba2;
}

.btn-valider-enigme {
    background: #764ba2;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-valider-enigme:hover {
    opacity: 0.9;
}

/* FEEDBACK */
.enigme-feedback {
    text-align: center;
    font-size: 1.1em;
    font-weight: 700;
    padding: 12px;
    border-radius: 10px;
}

.enigme-feedback.correct {
    background: #e8f5e9;
    color: #2e7d32;
}

.enigme-feedback.incorrect {
    background: #ffebee;
    color: #c62828;
}

/* EXPLICATION */
.enigme-explication {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.9em;
    color: #555;
    border-left: 4px solid #764ba2;
}

/* CLASSEMENTS */
.enigme-classements {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ONGLETS */
.enigme-onglets {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.enigme-onglet {
    padding: 6px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    background: white;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    color: #555;
    transition: all 0.2s;
}

.enigme-onglet.actif {
    background: #764ba2;
    border-color: #764ba2;
    color: white;
}

/* ÉNIGME DE LA VEILLE */
.enigme-veille-box {
    background: #f9f5ff;
    border-radius: 12px;
    padding: 16px;
    border-left: 4px solid #764ba2;
}

.enigme-veille-titre {
    font-size: 0.85em;
    font-weight: 700;
    color: #764ba2;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.enigme-veille-question {
    font-size: 0.95em;
    color: #232526;
    font-weight: 600;
    margin-bottom: 6px;
}

.enigme-veille-reponse {
    font-size: 0.9em;
    color: #2e7d32;
    font-weight: 700;
}

/* CLASSEMENT TABLE */
.enigme-classement-box h3 {
    font-size: 1em;
    color: #232526;
    margin-bottom: 10px;
}

.enigme-classement-header {
    display: grid;
    grid-template-columns: 50px 1fr 80px 80px;
    gap: 8px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 0.8em;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.classement-ligne-enigme {
    display: grid;
    grid-template-columns: 50px 1fr 80px 80px;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9em;
    transition: background 0.2s;
}

.classement-ligne-enigme:hover {
    background: #f9f5ff;
}

.classement-ligne-enigme.classement-moi {
    background: #f3e5f5;
    font-weight: 700;
}

.classement-rang-enigme {
    font-weight: 700;
    color: #764ba2;
}

.classement-erreurs {
    text-align: center;
    color: #c62828;
    font-weight: 700;
}

.classement-erreurs.zero {
    color: #2e7d32;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .enigme-choix {
        grid-template-columns: 1fr;
    }

    .enigme-classement-header,
    .classement-ligne-enigme {
        grid-template-columns: 40px 1fr 60px 60px;
        font-size: 0.8em;
    }

    .enigme-texte {
        flex-direction: column;
    }
}