/* ================================================================
   STYLES-QUESTIONS.CSS — Culture Civique
   Styles pour les pages "questions" : questions-cr, questions-csp
   À utiliser avec : styles-base.css
   ================================================================ */

/* ----------------------------------------------------------------
   1. LAYOUT
   ---------------------------------------------------------------- */
   body {
    padding-top: 50px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.glass-card {
    padding: 40px;
    margin-bottom: 20px;
}


/* ----------------------------------------------------------------
   2. TYPOGRAPHIE QUESTIONS
   ---------------------------------------------------------------- */
.subtitle {
    color: var(--text-muted);
    font-size: 1.1em;
    margin-bottom: 30px;
}

h2 {
    font-size: 1.5em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--accent-cyan);
    border-bottom: 2px solid var(--accent-cyan);
    padding-bottom: 8px;
}

p, li {
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 15px;
}


/* ----------------------------------------------------------------
   3. AVERTISSEMENT (warning box)
   ---------------------------------------------------------------- */
.warning-box {
    background: rgba(255, 138, 101, 0.15);
    border: 1px solid var(--accent-orange);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.warning-box p {
    margin-bottom: 0;
    color: var(--text-white);
}


/* ----------------------------------------------------------------
   4. QUESTION ITEM (base + checkbox)
   ---------------------------------------------------------------- */
.question-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    cursor: pointer;
    transition: all 0.2s ease;
}

.question-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.question-item.checked {
    border-color: var(--success-check);
    background: rgba(92, 201, 190, 0.1);
}

.question-text {
    font-size: 1.05em;
    color: var(--text-white);
    margin-bottom: 10px;
    font-weight: 500;
}

.question-original {
    font-size: 0.85em;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 12px;
}

.question-answer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--accent-cyan);
    font-weight: 500;
    font-size: 1.02em;
}

.question-answer::before {
    content: '→';
    color: var(--accent-cyan);
}

.question-note {
    color: var(--accent-cyan);
    margin-left: 25px;
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: 1em;
}

.question-content {
    flex: 1;
}


/* ----------------------------------------------------------------
   5. CHECKBOX
   ---------------------------------------------------------------- */
.question-checkbox {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.question-item.checked .question-checkbox {
    border-color: var(--success-check);
    background: var(--success-check);
}

.question-item.checked .question-checkbox::after {
    content: '✓';
    color: var(--deep-blue);
    font-size: 14px;
    font-weight: bold;
}


/* ----------------------------------------------------------------
   6. SOMMAIRE
   ---------------------------------------------------------------- */
.sommaire {
    background: rgba(77, 182, 172, 0.1);
    border: 1px solid var(--accent-cyan);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.sommaire-title {
    color: var(--text-white);
    font-weight: bold;
    margin-bottom: 10px;
}

.sommaire ul {
    margin: 0;
    list-style: none;
    margin-left: 0;
}

.sommaire li {
    margin-bottom: 5px;
}

.sommaire a {
    color: var(--text-muted);
}

.sommaire a:hover {
    color: var(--accent-cyan);
}


/* ----------------------------------------------------------------
   7. BOUTON RETOUR EN HAUT
   ---------------------------------------------------------------- */
.top-btn {
    display: inline-block;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    border-radius: 20px;
    font-size: 0.85em;
    text-decoration: none;
    transition: all 0.2s ease;
}

.top-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-white);
    color: var(--text-white);
    text-decoration: none;
}


/* ----------------------------------------------------------------
   8. BARRE DE PROGRESSION STICKY
   ---------------------------------------------------------------- */
.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(16, 43, 68, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.progress-top-row {
    display: contents;
}

.progress-text {
    font-size: 0.9em;
    color: var(--text-white);
    white-space: nowrap;
}

.progress-text span {
    color: var(--accent-cyan);
    font-weight: 600;
}

.progress-track {
    width: 150px;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-cyan);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.reset-btn {
    position: absolute;
    right: 20px;
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.reset-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}


/* ----------------------------------------------------------------
   9. DISCLAIMER
   ---------------------------------------------------------------- */
.disclaimer-box {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 40px auto;
    max-width: 900px;
}

.disclaimer-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.disclaimer-content {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.disclaimer-content strong {
    color: rgba(255, 255, 255, 0.85);
}


/* ----------------------------------------------------------------
   10. RESPONSIVE QUESTIONS
   ---------------------------------------------------------------- */
@media (max-width: 600px) {
    .glass-card {
        padding: 25px 20px;
    }

    .question-item {
        padding: 15px;
        gap: 12px;
    }

    .question-checkbox {
        width: 22px;
        height: 22px;
        min-width: 22px;
    }

    /* Barre de progression mobile - disposition verticale */
    .progress-bar-container {
        padding: 6px 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .progress-top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .progress-text {
        font-size: 0.85em;
    }

    .reset-btn {
        position: static;
        padding: 4px 10px;
        border-radius: 12px;
        font-size: 0.7em;
    }

    .progress-track {
        width: 100%;
        height: 3px;
        border-radius: 2px;
    }

    .progress-fill {
        border-radius: 2px;
    }
}