:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --accent: #e0f2fe;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 2.5rem 1rem;
    text-align: center;
}

.main-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.main-header p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Main Content Layout */
.main-content {
    max-width: 900px;
    margin: -1.5rem auto 3rem auto;
    padding: 0 1rem;
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    background: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius) var(--radius) 0 0;
    cursor: pointer;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--card-bg);
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

/* Card */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.card h2 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--primary-dark);
}

.card p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Tab Management */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Table */
.table-responsive {
    overflow-x: auto;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.styled-table th, .styled-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.styled-table th {
    background-color: var(--accent);
    color: var(--primary-dark);
    font-weight: 600;
}

/* Question Groups & Radio Cards */
.question-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.question-group h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

@media (min-width: 600px) {
    .options-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.radio-card {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.radio-card:hover {
    background: var(--accent);
    border-color: var(--primary);
}

.radio-card input {
    margin-right: 0.75rem;
    accent-color: var(--primary);
}

.radio-card span {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.pts {
    font-size: 0.75rem;
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-muted);
    font-weight: 600;
}

.radio-card input:checked + span .pts {
    background: var(--primary);
    color: white;
}

.radio-card input:checked ~ span { /* Cas particulier si besoin */
    font-weight: 500;
}

/* Boutons */
.form-actions, .action-container {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: #e2e8f0;
    color: var(--text-main);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #cbd5e1;
}

/* Résultats */
.result-box {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    text-align: center;
}

.result-box.hidden {
    display: none;
}

.score-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: #166534;
    margin-bottom: 0.75rem;
}

.interpretation-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Couleurs dynamiques d'interprétation */
.badge-excellent { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.badge-good { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.badge-medium { background: #fef9c3; color: #854d0e; border: 1px solid #fef08a; }
.badge-poor { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Footer */
.main-footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}