﻿/* ===== LAYOUT ===== */
.question-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text);
}

/* ===== HEADER ===== */
.question-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0.3rem 0.9rem;
    background: #ffd4a4;
    border: 2px solid #8b4513;
    border-radius: 10px;
}

.question-soustitre {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5a3a1a;
}

.question-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* ===== SELECTEUR (pastilles numérotées) ===== */
.question-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.question-pill {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 2px solid #8b4513;
    background: #b0c4de;
    color: var(--text);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

    .question-pill:hover {
        background: #ffe8cc;
        transform: translateY(-1px);
    }

.question-pill-active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

/* ===== QUESTION ===== */
.question-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background: #ffd4a4;
    border: 2px solid #8b4513;
    border-radius: 10px;
    text-align: center;
}

.question-texte {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--primary);
    margin: 0;
}

/* ===== TENTATIVES DE REPONSE ===== */
.question-tentatives {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.tentative-item {
    background: #e1c7a7;
    border: 1px dashed #8b4513;
    border-radius: 8px;
    padding: 1.1rem 1.3rem;
}

    .tentative-item p {
        font-family: var(--font-serif);
        font-style: italic;
        font-size: 0.98rem;
        line-height: 1.7;
        color: #4a3018;
        margin: 0;
    }

/* ===== REFERENCES ===== */
.question-references {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.reference-tag {
    background: rgba(139, 69, 19, 0.1);
    color: #5a3a1a;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .question-page {
        padding: 1rem;
    }

    .question-header,
    .question-section {
        padding: 1rem;
    }

    .question-texte {
        font-size: 1.1rem;
    }
}
