/* Variables de couleurs */
:root {
    --white: #FFFFFF;
    --grey: rgb(83, 87, 87);
    --orange: rgb(223, 156, 110);
    --red: rgb(187, 16, 54);
    --light-green: rgba(144, 238, 144, 0.3);
}

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

body {
    font-family: 'Arimo', Arial, sans-serif;
    background-color: var(--white);
    color: var(--grey);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    padding: 20px 0;
    margin-bottom: 30px;
}

.logo {
    max-width: 200px;
    height: auto;
}

/* Pages */
.page {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.page.active {
    display: block;
}

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

/* Introduction Page */
.intro-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--white);
}

.intro-content h1 {
    color: var(--red);
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
}

.intro-content h2 {
    color: var(--orange);
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.intro-text {
    font-size: 1.1em;
    color: var(--grey);
}

.intro-text p {
    margin-bottom: 20px;
}

.custom-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.custom-list li {
    padding-left: 35px;
    margin-bottom: 15px;
    position: relative;
}

.custom-list li::before {
    content: "▶";
    color: var(--orange);
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 0;
}

.highlight-box {
    background-color: rgba(223, 156, 110, 0.1);
    border-left: 4px solid var(--orange);
    padding: 25px;
    margin: 30px 0;
    border-radius: 5px;
}

.highlight-box p {
    margin-bottom: 10px;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Arimo', Arial, sans-serif;
}

.btn-primary {
    background-color: var(--orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: var(--grey);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.intro-content .btn-primary {
    display: block;
    margin: 40px auto 0;
    max-width: 300px;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 40px;
}

.progress-bar {
    height: 30px;
    background-color: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background-color: var(--orange);
    transition: width 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    color: var(--white);
    font-weight: 600;
}

.progress-bar.completed .progress-fill {
    background-color: #4CAF50;
}

.progress-text {
    text-align: center;
    color: var(--grey);
    font-weight: 600;
}

/* Questions */
.question-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
}

.question-content h2 {
    color: var(--red);
    font-size: 2em;
    margin-bottom: 15px;
}

.question-subtitle {
    font-size: 1.3em;
    color: var(--grey);
    margin-bottom: 30px;
    font-weight: 500;
}

.checkboxes {
    margin: 30px 0;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #fafafa;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.checkbox-item:hover {
    background-color: rgba(223, 156, 110, 0.1);
    border-left-color: var(--orange);
}

.checkbox-item input[type="checkbox"] {
    margin-right: 15px;
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--orange);
}

.checkbox-item span {
    flex: 1;
    font-size: 1.05em;
    color: var(--grey);
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.navigation-buttons.center {
    justify-content: center;
}

/* Validation Page */
.validation-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
}

.validation-message {
    background-color: rgba(76, 175, 80, 0.1);
    border: 2px solid #4CAF50;
    border-radius: 10px;
    padding: 40px;
    margin: 40px 0;
}

.validation-message h2 {
    color: #4CAF50;
    font-size: 2em;
    margin-bottom: 20px;
}

.validation-message p {
    font-size: 1.2em;
    color: var(--grey);
}

/* Results Page */
.results-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px;
}

.results-content h1 {
    color: var(--red);
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
}

/* Scores Table */
.scores-table {
    margin: 30px auto;
    max-width: 600px;
}

.scores-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.scores-table thead {
    background-color: var(--orange);
    color: var(--white);
}

.scores-table th {
    padding: 20px;
    text-align: left;
    font-size: 1.2em;
    font-weight: 600;
}

.scores-table td {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.1em;
}

.scores-table tbody tr:last-child td {
    border-bottom: none;
}

.scores-table tbody tr:hover {
    background-color: rgba(223, 156, 110, 0.05);
}

.scores-table td:last-child {
    font-weight: 700;
    color: var(--orange);
    font-size: 1.3em;
    text-align: center;
}

/* Radar Chart */
.radar-container {
    margin: 50px auto;
    max-width: 700px;
    height: 500px;
    background-color: var(--white);
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}

/* Interpretation Content */
#interpretation-content {
    margin-top: 50px;
}

.interpretation-title {
    background-color: var(--grey);
    color: var(--white);
    padding: 20px 30px;
    border-radius: 8px 8px 0 0;
    font-size: 1.3em;
    font-weight: 600;
    text-align: center;
}

.interpretation-tables {
    margin-top: 30px;
}

.result-table {
    margin-bottom: 40px;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.result-table table {
    width: 100%;
    border-collapse: collapse;
}

.result-table thead {
    background-color: var(--orange);
    color: var(--white);
}

.result-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1em;
}

.result-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

.result-table tbody tr:last-child td {
    border-bottom: none;
}

.result-table tbody tr:hover {
    background-color: rgba(223, 156, 110, 0.05);
}

.result-table td:first-child {
    font-weight: 600;
    color: var(--grey);
    width: 35%;
    background-color: rgba(83, 87, 87, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .intro-content, .question-content, .validation-content, .results-content {
        padding: 20px;
    }

    .intro-content h1, .results-content h1 {
        font-size: 1.8em;
    }

    .intro-content h2 {
        font-size: 1.4em;
    }

    .question-content h2 {
        font-size: 1.6em;
    }

    .navigation-buttons {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }

    .logo {
        max-width: 150px;
    }

    .radar-container {
        height: 400px;
        padding: 15px;
    }

    .scores-table table {
        font-size: 0.9em;
    }

    .result-table {
        overflow-x: auto;
    }

    .result-table td:first-child {
        width: 40%;
    }
}

@media print {
    .navigation-buttons {
        display: none;
    }
    
    .header {
        page-break-after: avoid;
    }
    
    .results-content {
        page-break-inside: avoid;
    }
}