:root {
    /* Couleurs principales */
    --primary-color: #005078;
    --secondary-color: #586ddd;
    --success-color: #476861;
    --accent-color: #45db96;
    --warning-color: #f5d836;
    --soft-color: #ff99d6;

    /* Couleurs désaturées */
    --primary-desaturated: #405c6e;
    --secondary-desaturated: #6b77c4;
    --success-desaturated: #408976;
    --accent-desaturated: #6ac49b;
    --warning-desaturated: #d4c76d;
    --soft-desaturated: #dba3c4;

    --background-color: #f8fafc;
    --text-color: #2c3e50;
    --shadow-color: rgba(0, 80, 120, 0.1);
}

body {
    background: linear-gradient(135deg, #f0f4f8 0%, var(--background-color) 100%);
    min-height: 100vh;
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
}

.header{
   width: 100%;
}

/* NAV */


.navbar-tmp {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.5rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    
    z-index: 1030; /* supérieur au contenu Bootstrap */
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    margin: 0 15px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--blue) !important;
    transform: translateY(-2px);
}

/* FOOTER */

.footer{
            background-color: #1D1D1B;
            padding: 3rem 3rem;
            margin-top: auto;
            font-family:'Montserrat' , sans-serif;
        }

        .footer-logo-container {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            margin-bottom: 1rem;
        }

        .footer-logo{
            height: 200px;  /* Augmentation de la taille */
           border-radius: 10px;
            width: auto;
            object-fit: contain;
            opacity: 0.9;
            transition: all 0.3s ease;
        }

        .footer-logo:hover {
            opacity: 1;
            transform: scale(1.05);
        }

        @media (max-width: 768px) {
            .footer-logo-container {
                justify-content: center;
            }

            .footer-logo {
                height: 60px;
            }

            .col-md-6.text-end {
                text-align: center !important;
                margin-top: 1.5rem;
            }
        }

        .footer-link{
            color: #FFFFFF;
            text-decoration: none;
            transition:color 0.3s ease;
            display: inline-block;
            margin-bottom: 0.5rem;
        }

        .footer-link:hover{
            color: #FFFFFF;
            transform: translateX(5px);
                }



/* Media queries pour les appareils mobiles */
@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 40px;
    }
    
    .navbar-tmp {
        padding: 0.5rem 1rem;
        
    }

    .nav-link {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
}







                




.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 70px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow:
        0 10px 15px -3px var(--shadow-color),
        0 4px 6px -4px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.quiz-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800 !important;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
}

#question-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.answer-btn {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid var(--primary-desaturated);
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 12px !important;
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}

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

.answer-btn.btn-success {
    background: var(--success-color);
    border-color: var(--success-desaturated);
    color: white;
}

.answer-btn.btn-danger {
    background: var(--error-color);
    border-color: var(--soft-desaturated);
    color: var(--text-color);

}

.progress {
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.6s ease;
}

#restart-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 999px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

#restart-btn:hover {
    box-shadow: 0 8px 15px rgba(0, 80, 120, 0.2);
}

/* Timer Styles */
.timer-container {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
}

.timer-circle {
    position: relative;
    width: 100%;
    height: 100%;
}

.timer-svg {
    width: 60px;
    height: 60px;
    transform: rotate(-90deg);
}

.timer-background {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 4px;
}

.timer-progress {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 4px;
    stroke-linecap: round;
    transform-origin: center;
}

/* Style des textes */
#score-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--text-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#question-container {
    animation: fadeIn 0.5s ease-out;
}

.answer-btn {
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

.answer-btn:nth-child(1) {
    animation-delay: 0.1s;
}

.answer-btn:nth-child(2) {
    animation-delay: 0.2s;
}

.answer-btn:nth-child(3) {
    animation-delay: 0.3s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-container {
        margin: 1rem;
        padding: 1.5rem !important;
    }

    h1 {
        font-size: 2rem !important;
    }

    #question-text {
        font-size: 1.25rem;
    }

    .answer-btn {
        padding: 1rem;
        font-size: 1rem;
    }

    .timer-container {
        top: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }
}

/* Ajoute dans styles.css */
#answers-container .btn {
    margin-bottom: 0 !important;
}

.quiz-btn-large {
    display: block;
    width: 100%;
    max-width: 500px;
    min-width: 260px;
    margin: 0 auto;
    padding: 1.2rem 0;
    font-size: 1.35rem;
    font-weight: 700;
    border-radius: 2rem;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 4px 16px rgba(0,80,120,0.08);
}

.quiz-btn-large + .quiz-btn-large {
    margin-top: 1.2rem;
}

.quiz-btn-large:hover, .quiz-btn-large:focus {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0,80,120,0.15);
}

.quiz-choice-block {
    background: #f5f8fa;
    border-radius: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,80,120,0.08);
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.15s;
    cursor: pointer;
    border: 2px solid transparent;
    min-width: 260px;
}

.quiz-choice-block:hover, .quiz-choice-block:focus {
    box-shadow: 0 8px 32px rgba(0,80,120,0.15);
    border-color: #129a7e;
    transform: translateY(-2px) scale(1.03);
    text-decoration: none;
}

.quiz-choice-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.quiz-choice-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #005078;
    margin-bottom: 0.5rem;
}

@media (max-width: 767px) {
    .quiz-choice-block {
        margin-bottom: 1.5rem;
    }
}