/* Styles spécifiques pour la page de test */

.test-intro {
    background: linear-gradient(rgba(0, 102, 204, 0.9), rgba(0, 73, 153, 0.9));
    color: var(--white);
    padding: 6rem 2rem 3rem;
    text-align: center;
}

.test-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.intro-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Aperçu des métiers */
.jobs-overview {
    padding: 4rem 0;
    background: var(--light-gray);
}

.job-detail-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.job-detail-card:hover {
    transform: translateY(-5px);
}

.job-detail-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.job-detail-card h4 {
    color: #333;
    margin: 1.2rem 0 0.8rem 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.key-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.key-skills span {
    background: var(--light-gray);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Section de test */
.test-section {
    padding: 4rem 0;
}

.test-step {
    max-width: 800px;
    margin: 0 auto;
}

.job-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.job-buttons button {
    padding: 1rem;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.job-buttons button:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Questions du test */
.progress-container {
    margin-bottom: 2rem;
    text-align: center;
}

.progress-text {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #333;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

#progress-fill {
    height: 100%;
    background-color: #a31324;
    width: 0%;
    transition: width 0.3s ease-in-out;
}

.question-container {
    text-align: center;
}

.test-section .question {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.question {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.answers {
    display: grid;
    gap: 1rem;
}

.answers button {
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-size: 1.2rem
}

.answers button:hover {
    background: var(--light-gray);
    border-color: var(--primary-color);
}

/* Résultats */
.results-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.competence-score {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.score-bar {
    flex-grow: 1;
    height: 0.5rem;
    background-color: var(--light-gray);
    border-radius: 0.25rem;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: var(--secondary-color);
    transition: width 1s ease;
}

.recommended-job {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin: 1rem 0;
}

.job-advice ul {
    list-style: none;
    padding: 0;
}

.job-advice li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.job-advice li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.next-steps {
    margin-top: 2rem;
    text-align: center;
    padding: 2rem;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.next-steps h3 {
    color: #002B49;
    margin-bottom: 1rem;
}

.next-steps p {
    margin-bottom: 1.5rem;
}

.cta-button-primary {
    font-size: 1.3rem;
    padding: 1rem 2rem;
}

.cta-link {
    color: #E2001A;
    text-decoration: none;
    font-weight: 500;
}

.cta-link:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

.start-test-section {
    text-align: center;
    padding: 2rem 0;
    margin: 2rem 0;
}

.start-test-button {
    background-color: #0072CE;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.start-test-button:hover {
    background-color: #005BA3;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.start-test-button .fas {
    transition: transform 0.3s ease;
}

.start-test-button:hover .fas {
    transform: translateX(5px);
}

.global-score {
    color: #2ecc71;
    font-weight: bold;
}

.test-job-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .test-intro h1 {
        font-size: 2rem;
    }

    .job-buttons {
        grid-template-columns: 1fr;
    }

    .competence-score {
        flex-direction: column;
        align-items: flex-start;
    }

    .score-bar {
        width: 100%;
    }
}
