/* --- CONTENEUR GLOBAL --- */
.cinequiz-container {
    max-width: 1300px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    padding: 0 15px;
}

.cq-card {
    background: #14171d;
    color: #ffffff;
    border-radius: 24px;
    padding: 55px 65px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
    border: 2px solid #232833;
    text-align: center;
}

.cq-header {
    margin-bottom: 35px;
}

.cq-step {
    font-size: 1.3rem;
    color: #00adb5;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 700;
}

.cq-timer-wrapper {
    width: 100%;
    height: 12px;
    background: #232833;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 18px;
}

.cq-timer-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #ff4b4b, #ff8c00);
    transition: width 0.1s linear;
}

/* --- QUESTIONS ET RÉPONSES --- */
.cq-question-title {
    font-size: 2.5rem;
    margin: 30px 0 45px 0;
    line-height: 1.35;
    color: #ffffff;
    font-weight: 800;
}

.cq-choices {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.cq-choice-btn {
    background: #1e232d;
    color: #ffffff;
    border: 2px solid #2c3444;
    padding: 26px 32px;
    border-radius: 16px;
    font-size: 1.5rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cq-choice-btn:hover:not(:disabled) {
    background: #272f3d;
    border-color: #00adb5;
    transform: translateY(-3px);
}

.cq-choice-btn.cq-correct {
    background: #10b981 !important;
    border-color: #059669 !important;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.cq-choice-btn.cq-wrong {
    background: #ef4444 !important;
    border-color: #dc2626 !important;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.cq-explanation {
    margin-top: 35px;
    padding: 26px;
    background: #1e232d;
    border-left: 8px solid #00adb5;
    border-radius: 12px;
    font-size: 1.35rem;
    color: #cbd5e1;
    text-align: left;
    line-height: 1.6;
}

/* --- ÉCRAN DE CONFIGURATION DU QUIZ --- */
.cq-setup-box {
    text-align: center !important;
}

.cq-setup-box h2, .cq-results h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    color: #ffffff;
    font-weight: 800;
}

.cq-setup-box p {
    font-size: 1.25rem;
    color: #94a3b8;
}

/* Bloc des difficultés centré et stylé en gros boutons */
.cq-diff-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0 35px 0;
    flex-wrap: wrap;
}

.cq-diff-option {
    background: #1e232d;
    border: 2px solid #2c3444;
    padding: 18px 28px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 700;
    color: #cbd5e1;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.cq-diff-option input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: #00adb5;
    cursor: pointer;
}

.cq-diff-option:hover {
    border-color: #00adb5;
    background: #272f3d;
    transform: translateY(-2px);
}

/* Boutons de sélection du nombre de questions (Moderne et interactif) */
.cq-count-option {
    background: #1e232d;
    border: 2px solid #2c3444;
    padding: 18px 28px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 700;
    color: #cbd5e1;
    transition: all 0.25s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.cq-count-option:hover {
    border-color: #00adb5;
    background: #272f3d;
    transform: translateY(-2px);
}

.cq-count-option.active {
    background: #00adb5 !important;
    border-color: #008c93 !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(0, 173, 181, 0.4);
}

/* --- BOUTONS GÉNÉRAUX ET ANIMATIONS --- */
.cq-start-btn, .cq-restart-btn {
    background: #00adb5;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s ease;
    box-shadow: 0 5px 20px rgba(0, 173, 181, 0.4);
}

.cq-start-btn:hover, .cq-restart-btn:hover {
    background: #008c93;
}

.cq-countdown-number {
    font-size: 7rem;
    font-weight: 900;
    color: #00adb5;
    margin: 40px 0;
}

.cq-score-circle {
    font-size: 5.5rem;
    font-weight: 900;
    color: #00adb5;
    margin: 30px 0;
}

/* --- GRILLE DES THÈMES XXL (Accueil & Fin de quiz) --- */
.cq-themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 35px;
}

.cq-theme-card-mini {
    background: linear-gradient(135deg, #1e232d 0%, #171b24 100%);
    border: 2px solid #2c3444;
    padding: 30px 24px;
    border-radius: 18px;
    text-align: center;
    color: #00adb5;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.cq-theme-card-mini:hover {
    background: linear-gradient(135deg, #00adb5 0%, #008c93 100%);
    color: #ffffff;
    border-color: #00adb5;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 173, 181, 0.4);
}

.cq-suggestions {
    margin-top: 50px;
    text-align: left;
    border-top: 2px solid #232833;
    padding-top: 35px;
}

.cq-suggestions h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: 700;
}

/* --- RESPONSIVE MOBILE OPTIMISÉ --- */
@media screen and (max-width: 768px) {
    .cinequiz-container {
        padding: 0 10px;
        margin: 10px auto;
    }

    .cq-card {
        padding: 25px 20px;
        border-radius: 16px;
    }

    .cq-question-title {
        font-size: 1.5rem !important; /* Titre compact pour mobile */
        margin: 15px 0 20px 0;
    }

    .cq-choice-btn {
        padding: 16px 18px;
        font-size: 1.1rem !important; /* Réponses adaptées aux écrans tactiles */
        border-radius: 12px;
    }

    .cq-setup-box h2, .cq-results h2 {
        font-size: 2rem !important;
    }

    .cq-countdown-number {
        font-size: 5rem;
    }

    .cq-score-circle {
        font-size: 4rem;
    }

    .cq-themes-grid {
        grid-template-columns: 1fr !important; /* Une seule colonne sur mobile pour les thèmes */
    }

    .cq-theme-card-mini {
        font-size: 1.2rem;
        padding: 20px;
    }
}

/* --- ACCENTS SAISONNIERS --- */

/* Automne / Frissons (Novembre) */
.cq-season-autumn .cq-card {
    border-color: #d35400;
}
.cq-season-autumn .cq-step,
.cq-season-autumn .cq-score-circle {
    color: #e67e22;
}
.cq-season-autumn .cq-start-btn {
    background: #d35400;
}
.cq-season-autumn .cq-start-btn:hover {
    background: #e67e22;
}

/* Hiver / Fêtes (Décembre) */
.cq-season-winter .cq-card {
    border-color: #38bdf8;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}
.cq-season-winter .cq-step,
.cq-season-winter .cq-score-circle {
    color: #38bdf8;
}
.cq-season-winter .cq-start-btn {
    background: #0284c7;
}
.cq-season-winter .cq-start-btn:hover {
    background: #0369a1;
}

/* Oscars / Tapis Rouge (Jan-Fév) */
.cq-season-oscars .cq-card {
    border-color: #eab308;
    box-shadow: 0 25px 50px rgba(234, 179, 8, 0.15);
}
.cq-season-oscars .cq-step,
.cq-season-oscars .cq-score-circle {
    color: #eab308;
}
.cq-season-oscars .cq-start-btn {
    background: linear-gradient(135deg, #ca8a04 0%, #a16207 100%);
}

/* Blockbusters / Été */
.cq-season-summer .cq-card {
    border-color: #ec4899;
}
.cq-season-summer .cq-step,
.cq-season-summer .cq-score-circle {
    color: #f43f5e;
}
.cq-season-summer .cq-start-btn {
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
}
/* --- TICKET DE CINÉMA / CARTE DE SCORE --- */
.cq-ticket {
    background: #1e232d;
    border: 2px dashed #00adb5;
    border-radius: 16px;
    padding: 30px;
    max-width: 480px;
    margin: 25px auto;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    font-family: 'Courier New', Courier, monospace;
    color: #fff;
    text-align: center;
}

.cq-ticket::before, .cq-ticket::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 24px;
    height: 24px;
    background: #14171d; /* Couleur de fond de la carte parent */
    border-radius: 50%;
    transform: translateY(-50%);
}

.cq-ticket::before { left: -14px; }
.cq-ticket::after { right: -14px; }

.cq-ticket-header {
    border-bottom: 2px dashed #3a4458;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.cq-ticket-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ff8c00;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cq-ticket-body {
    margin: 20px 0;
}

.cq-ticket-score {
    font-size: 3.5rem;
    font-weight: 900;
    color: #00adb5;
    margin: 10px 0;
}

.cq-ticket-badge {
    display: inline-block;
    background: #00adb5;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    font-family: -apple-system, sans-serif;
}

.cq-ticket-footer {
    border-top: 2px dashed #3a4458;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #8a94a6;
    display: flex;
    justify-content: space-between;
}