:root {
    --primary-color: #0056b3;
    --secondary-color: #27ae60;
    --tertiary-color: #f0ad4e;
    --background-color: #f5f7fa;
    --text-color: #34495e;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --light-gray: #ecf0f1;
    --border-color: #e0e0e0;
    --link-color: #6c757d;
    --info-color: #0056b3;
    --info-bg-color: rgba(0, 86, 179, 0.08);
    --success-color: #2ecc71;
    --card-bg: #ffffff;
}

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

body {
    font-family: "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px var(--shadow-color);
    padding: 15px 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.logo-header {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.logo-header span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.banner {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.banner-overlay h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.banner-overlay p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.container {
    max-width: 800px;
    margin: -50px auto 50px;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

.formation-types {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 30px;
}

.formation-type {
    flex: 1;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.formation-type:hover {
    transform: translateY(-5px);
}

.formation-type h3 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.formation-type p {
    margin: 0;
    font-size: 0.9rem;
}

.quiz-container {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.quiz-container h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.quiz-container>p {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1rem;
}

#question-container {
    margin-bottom: 25px;
    position: relative;
}

.back-link-container {
    margin-bottom: 15px;
    text-align: left;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.2s;
    background-color: #f0f4f8;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.back-link svg {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

.back-link:hover {
    color: #003d7a;
    background-color: #e6eef5;
}

#question-text {
    font-size: 1.3rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 500;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

button {
    border: none;
    color: white;
    padding: 10px 0;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px;
    width: 120px;
    transition: opacity 0.2s;
}

button:hover {
    opacity: 0.9;
}

.btn-oui {
    background-color: #3a5998;
}

.btn-non {
    background-color: #4caf50;
}

.btn-retour {
    background-color: #f0ad4e;
    margin-top: 25px;
    width: auto;
    padding: 10px 20px;
}

#result-container {
    text-align: center;
}

#result-container h3 {
    margin-top: 0;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 600;
}

/* Nouveau design pour le conteneur de résultat */
.result-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 0;
    margin-bottom: 25px;
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.result-icon {
    background-color: var(--primary-color);
    color: white;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2;
}

.result-content {
    flex: 1;
    padding: 25px 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

#result-title {
    font-weight: 600;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.4;
}

.result-cta {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    margin-top: auto;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
}

.result-cta svg {
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.result-cta:hover {
    background-color: #004a9f;
    box-shadow: 0 6px 16px rgba(0, 86, 179, 0.3);
}

.result-cta:hover svg {
    transform: translateX(4px);
}

.result-info-section {
    margin: 0 0 20px 0;
}

.result-info-button {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    background-color: transparent;
    color: var(--info-color);
    border: none;
    padding: 6px 0;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s;
    width: auto;
    margin: 0;
    box-shadow: none;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.result-info-button svg {
    margin-right: 6px;
    width: 16px;
    height: 16px;
}

.result-info-button:hover {
    color: #004a9f;
    opacity: 1;
}

.result-info-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    border-left: 3px solid var(--info-color);
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-y: auto;
    word-wrap: break-word;
    max-height: 200px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-info {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-color);
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

.info-section {
    margin: 15px auto;
    text-align: center;
}

.info-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--info-bg-color);
    color: var(--info-color);
    border: 1px solid var(--info-color);
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    width: auto;
    margin: 10px auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.info-button svg {
    margin-right: 6px;
    width: 16px;
    height: 16px;
}

.info-button:hover {
    background-color: rgba(0, 86, 179, 0.15);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.info-section {
    margin: 20px auto;
    text-align: center;
}

.info-container {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 12px 15px;
    margin: 10px auto;
    border-left: 2px solid var(--info-color);
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-y: auto;
    word-wrap: break-word;
    max-height: 300px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.info-container::-webkit-scrollbar,
.result-info-container::-webkit-scrollbar {
    width: 4px;
}

.info-container::-webkit-scrollbar-track,
.result-info-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.info-container::-webkit-scrollbar-thumb,
.result-info-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.info-container::-webkit-scrollbar-thumb:hover,
.result-info-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

@media (max-width: 768px) {
    .banner {
        height: 250px;
    }

    .banner-overlay h1 {
        font-size: 1.8rem;
    }

    .container {
        margin-top: -30px;
    }

    .formation-types {
        flex-direction: column;
    }

    .formation-type {
        margin-bottom: 15px;
    }

    .info-container {
        max-height: 200px;
        width: 95%;
    }

    .result-card {
        flex-direction: column;
    }

    .result-icon {
        padding: 20px;
    }

    .result-content {
        padding: 20px;
    }

    .result-cta {
        align-self: center;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 200px;
    }

    .banner-overlay h1 {
        font-size: 1.5rem;
    }

    .button-container {
        flex-direction: column;
        align-items: center;
    }

    button {
        width: 150px;
        margin-bottom: 10px;
    }

    .quiz-container {
        padding: 20px;
    }

    .info-container {
        width: 100%;
    }

    #result-title {
        font-size: 1.1rem;
    }
}