/* Utilisation des mêmes variables CSS que le site Wiki Conure */
:root {
    --bg: #f4f5f6;
    --surface: #ffffff;
    --text: #111111;
    --muted: #6b6b6b;
    --header: #0f0f0f;
    --border: #d6d6d6;
    --shadow: rgba(0,0,0,0.06);
    --card-shadow: rgba(0,0,0,0.08);
    --success: #28a745;
    --error: #dc3545;
    --accent: #4a90e2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding: 20px;
}

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

/* HEADER */
.quiz-header {
    background: var(--header);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px var(--card-shadow);
}

.progress-bar {
    background: rgba(255, 255, 255, 0.2);
    height: 6px;
    border-radius: 10px;
    margin-bottom: 25px;
    overflow: hidden;
}

.progress-fill {
    background: #ffffff;
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.quiz-title {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.quiz-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

/* CONTENT */
.quiz-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 50px 40px;
    box-shadow: 0 4px 12px var(--card-shadow);
}

/* ÉCRAN DE DÉMARRAGE */
.start-screen {
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

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

.start-icon {
    font-size: 5rem;
    margin-bottom: 25px;
    animation: pulse 2s ease-in-out infinite;
}

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

.start-screen h2 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 15px;
    font-weight: 600;
}

.start-screen p {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 35px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-start {
    background: var(--header);
    color: #ffffff;
    border: none;
    padding: 16px 50px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--card-shadow);
}

/* ÉCRAN DE QUESTIONS */
.question-screen {
    animation: fadeIn 0.5s ease-out;
}

.question-number {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-text {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 40px;
    line-height: 1.4;
    font-weight: 600;
}

.answers-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 30px;
}

.answer-btn {
    background: var(--surface);
    border: 2px solid var(--border);
    padding: 24px 28px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    position: relative;
}


.answer-btn:hover {
    border-color: var(--text);
    transform: translateX(8px);
    box-shadow: 0 6px 16px var(--card-shadow);
}

.answer-btn:hover::before {
    border-color: var(--text);
}

.answer-btn.selected {
    border-color: var(--header);
    background: #f8f9fa;
}

.answer-btn.selected::before {
    background: var(--header);
    border-color: var(--header);
}

/* ÉCRAN DE RÉSULTATS */
.result-screen {
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

.result-badge {
    margin-bottom: 40px;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.result-title {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 10px;
    font-weight: 600;
}

/* CARTE RÉSULTAT PRINCIPALE */
.result-conure-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 24px var(--card-shadow);
    text-align: center;
}

.result-conure-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 25px;
    border: 4px solid var(--border);
    box-shadow: 0 4px 12px var(--card-shadow);
}

.result-conure-name {
    font-size: 2.2rem;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 15px;
}

.result-conure-description {
    font-size: 1.15rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto 30px;
}

.result-traits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.trait-badge {
    background: var(--header);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* AUTRES CORRESPONDANCES */
.result-other-matches {
    text-align: left;
    margin-bottom: 40px;
}

.result-other-matches h3 {
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.other-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.other-match-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.other-match-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px var(--card-shadow);
}

.other-match-card h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 600;
}

.other-match-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

.btn-restart {
    background: var(--header);
    color: #ffffff;
    border: none;
    padding: 16px 50px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.btn-restart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--card-shadow);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .quiz-header {
        padding: 30px 20px;
    }

    .quiz-title {
        font-size: 1.6rem;
    }
    
    .quiz-content {
        padding: 35px 25px;
    }
    
    .question-text {
        font-size: 1.4rem;
    }
    
    .answer-btn {
        padding: 20px 24px;
        font-size: 1rem;
    }

    .result-conure-card {
        padding: 30px 20px;
    }

    .result-conure-name {
        font-size: 1.8rem;
    }

    .result-conure-description {
        font-size: 1.05rem;
    }

    .other-matches-grid {
        grid-template-columns: 1fr;
    }
}
