/* ================================
   GRAND DÉFI DU JOUR - Styles
   ================================ */

/* CONTAINER */
.container-grand-defi {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* BOÎTE PRINCIPALE */
.grand-defi-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

/* TITRE */
.grand-defi-titre {
    font-size: 1.8em;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.grand-defi-crown {
    font-size: 1.2em;
}

/* INFO DÉFI */
.grand-defi-info {
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.grand-defi-jeu {
    font-size: 1.5em;
    font-weight: 800;
    margin-bottom: 8px;
}

.grand-defi-objectif {
    font-size: 1em;
    opacity: 0.9;
    font-weight: 500;
}

/* RÈGLEMENT */
.grand-defi-reglement {
    background: rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.grand-defi-reglement h3 {
    font-size: 1em;
    font-weight: 700;
    margin-bottom: 10px;
}

.grand-defi-reglement ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.grand-defi-reglement li {
    font-size: 0.85em;
    opacity: 0.95;
}

/* BOUTON */
.grand-defi-actions {
    text-align: center;
}

.btn-grand-defi {
    background: #5ced8c;
    color: #232526;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(92, 237, 140, 0.4);
}

.btn-grand-defi:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 237, 140, 0.5);
}

.btn-grand-defi:disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.defi-fait-msg {
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 0.95em;
}

/* CLASSEMENT */
.grand-defi-classement {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* ONGLETS JOURS */
.classement-onglets {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.onglet-jour {
    padding: 6px 14px;
    border-radius: 20px;
    border: none;
    background: #f0f0f0;
    color: #555;
    font-size: 0.8em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

.onglet-jour:hover:not(.actif) {
    background: #e0e0e0;
}

/* LISTE CLASSEMENT */
.classement-grand-defi h3 {
    font-size: 1em;
    font-weight: 700;
    color: #232526;
    margin-bottom: 12px;
}

.btn-mon-classement {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: #f0f0f0;
    border: none;
    border-radius: 10px;
    color: #555;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
}

.btn-mon-classement:hover {
    background: #e0e0e0;
}

/* SÉPARATEUR CLASSEMENT */
.classement-separateur {
    text-align: center;
    color: #aaa;
    font-size: 1.2em;
    padding: 4px 0;
}
.grand-defi-mystere {
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.mystere-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.mystere-texte {
    font-size: 0.95em;
    opacity: 0.9;
    font-weight: 500;
    line-height: 1.5;
}

/* COMPTE À REBOURS */
.countdown-grand-defi {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(102, 126, 234, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    color: white;
}

.countdown-defi-jeu {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 10px;
    opacity: 0.9;
}

.countdown-defi-objectif {
    font-size: 1em;
    margin-bottom: 30px;
    opacity: 0.8;
}

.countdown-defi-chiffre {
    font-size: 6em;
    font-weight: 900;
    animation: pulse 1s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}