/* ═══════════════════════════════════════════════════════════════════
 *  Ton Voyage Quiz — Styles du quiz
 * ═══════════════════════════════════════════════════════════════════ */

.tvq-quiz {
    max-width: 680px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    font-family: inherit;
}

/* ── Barre de progression ────────────────────────────────────────── */

.tvq-progress {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.tvq-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 3px;
    width: 16.66%;
    transition: width 0.4s ease;
}

.tvq-step-indicator {
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* ── Etapes ──────────────────────────────────────────────────────── */

.tvq-step {
    display: none;
}

.tvq-step.tvq-active {
    display: block;
    animation: tvqFadeIn 0.3s ease;
}

@keyframes tvqFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tvq-question {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.tvq-hint {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: -1rem;
    margin-bottom: 1rem;
}

/* ── Options / boutons ───────────────────────────────────────────── */

.tvq-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.tvq-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.2rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
}

.tvq-option:hover {
    border-color: #2563eb;
    background: #f0f5ff;
}

.tvq-option.tvq-selected {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.tvq-option-icon {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
    line-height: 1;
}

.tvq-option-text {
    font-weight: 600;
    color: #1f2937;
}

.tvq-option-sub {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.tvq-option-icon-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
}

/* ── Option "Toutes" (bouton distinct) ──────────────────────────── */

.tvq-option-all {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    color: #6b7280;
}

.tvq-option-all .tvq-option-text {
    font-weight: 500;
    color: #6b7280;
}

.tvq-option-all:hover {
    border-color: #9ca3af;
    background: #f3f4f6;
}

.tvq-option-all.tvq-selected {
    border-style: solid;
    border-color: #2563eb;
    background: #eff6ff;
}

.tvq-option-all.tvq-selected .tvq-option-text {
    color: #2563eb;
}

/* ── Navigation ──────────────────────────────────────────────────── */

.tvq-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.tvq-btn {
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
    line-height: 1.4;
}

.tvq-btn-prev {
    background: #f3f4f6;
    color: #374151;
}

.tvq-btn-prev:hover {
    background: #e5e7eb;
}

.tvq-btn-next {
    background: #2563eb;
    color: #fff;
    margin-left: auto;
}

.tvq-btn-next:hover {
    background: #1d4ed8;
}

.tvq-btn-next:disabled,
.tvq-btn-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.tvq-btn-submit {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin-left: auto;
    text-align: center;
}

.tvq-btn-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .tvq-quiz {
        margin: 1rem;
        padding: 1.2rem;
    }

    .tvq-question {
        font-size: 1.15rem;
    }

    .tvq-options {
        grid-template-columns: 1fr;
    }

    .tvq-option {
        flex-direction: row;
        gap: 0.75rem;
        padding: 1rem;
    }

    .tvq-option-icon {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .tvq-option-icon-img {
        width: 36px;
        height: 36px;
    }

    .tvq-nav {
        flex-wrap: wrap;
    }

    .tvq-btn-submit {
        width: 100%;
    }
}
