.header{
    display: flex;
    padding-top: 30px;
}
/* AU DESSUS DU MENU */
.sur-header{
    display: flex;
    
    align-items: center;

    p{
        margin-left: 40px;
        font-family: "Ubuntu", sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size: 0.85rem;
        color: #333D7B;
    }
    .lien-propos{
        margin-left: 23px;
        text-decoration: none;
        font-family: "Ubuntu", sans-serif;
        font-weight: 700;
        font-style: normal;
        font-size: 1rem;
        color: #333D7B;
    }
    .lien-propos:hover{
        text-decoration: underline;
    }
    .lien-quiz{
        text-decoration: none;
        padding: 12px 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #333D7B;
        
        
        background-color: #FFE2CC ;
        border-radius: 100px;
        font-family: "Ubuntu", serif;
        font-weight: 700;
        font-style: normal;

        transition: background-color 0.3s ease, color 0.3s ease;

        img{
            margin-left: 10px;
            
        }
    }
    .lien-quiz:hover{
        background-color: #333D7B;
        color: white;

        
    }
    .lien-quiz:hover img{
        filter: invert(1) brightness(2);
        
                
        
    }
       
}

/* MENU */

.logo-header{
    margin-right: 51px;
}

.deckstop-nav{
    margin-top: 20px;



    ul{
        background-color: white;
        border-radius: 100px;
        display: flex;
        gap: 20px;
        padding: 10px 0;
        li{
            border-left: 2px solid #333D7B;
            padding-left: 20px;
            display: flex;
            justify-content: center;
            align-items: center;

            a{
                color: #333D7B;
                text-decoration: none;
                font-size: 1rem;
                font-weight: bold;
                

                font-family: "Ubuntu", serif;
                font-weight: 500;
                font-style: normal;
            }
          


        }
        li:first-child{
            border-left: none;
            padding-left: 40px;
            
        }
        li:last-child{
            padding-right: 40px;
        }
    } 
    
}

/* Barre de recherche */

.searchform {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.searchform input[type="text"] {
    padding: 5px 10px;
    border: 1px solid #333D7B;
    border-radius: 20px;
    outline: none;
}

.searchform button {
    background: none;
    border: none;
    color: #333D7B;
    cursor: pointer;
    margin-left: 10px;
}

.searchform button i {
    font-size: 1.2rem;
}



/* RESPONSIVE */
/* Styles pour le header mobile */
.header-mobile {
    display: none; /* Masquer par défaut */
}

.mobile-menu {
    display: none; /* Masquer par défaut */
}
/* Media query pour afficher le header mobile sur les écrans de 420px ou moins */
@media only screen and (max-width: 420px) {
    .header {
        display: none; /* Masquer le header desktop sur mobile */
    }

    .header-mobile {
        display: flex; /* Afficher le header mobile */
    }

    .mobile-menu {
        display: flex; /* Afficher le menu mobile */
    }
}
/* Media query pour afficher le header desktop sur les écrans de plus de 420px */
@media (min-width: 420px) {
    .header {
        display: flex; /* Afficher le header desktop */
    }

    .header-mobile {
        display: none; /* Masquer le header mobile */
    }

    .mobile-menu {
        display: none; /* Masquer le menu mobile */
    }
}

/* Déclarer la police Ubuntu Regular (graisse 400) */
@font-face {
    font-family: 'Ubuntu';
    src: url('typos/Ubuntu-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* Déclarer la police Ubuntu Medium (graisse 500) */
@font-face {
    font-family: 'Ubuntu';
    src: url('typos/Ubuntu-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Ubuntu';
    src: url('typos/Ubuntu-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

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



.header-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #FDF1DC;
    z-index: 1001; /* le header doit être sous le menu */
    transition: background-color 0.3s ease;
    padding-top: 43px;
    padding-bottom: 23px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding-left: 41px;
    padding-right: 41px;

    img{
        width: 71px;
        height: 44px;
    }
}

.baseline {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 400;
    color: #333D7B;
    font-size: 12px;
    margin-left: 5px;
    max-width: 180px;
}

.burger-menu {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.burger-menu span {
    display: block;
    height: 3px;
    background-color: #333D7B;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.menu-open .burger-menu span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .burger-menu span:nth-child(2) {
    opacity: 0;
}

.menu-open .burger-menu span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 20px;
    height: 20px;
}

/* Le menu mobile */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    background-color: white;
    transform: translateY(-100%); /* Caché au-dessus de la page */
    transition: transform 0.5s ease;
    color: #333D7B;
    z-index: 1002; /* Le menu doit être au-dessus du header */
    padding: 20px;
    overflow-y: auto;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;

    flex-wrap: wrap;
}

.mobile-menu ul {
    list-style: none;
    margin-top: 50px;
}

.mobile-menu ul li {
    margin-bottom: 20px;
    border-bottom: 1px solid #333D7B;
}

.mobile-menu ul li a {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 500;
    color: #333D7B;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 10px 0;
}

.mobile-menu ul li:last-child {
    border-bottom: none;
}

.mobile-menu ul li:last-child a {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
}

.menu-actions {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    a{
        text-decoration: none;
        align-items: center;
    }
    

    form{
        width: 80%;
    }
}

.quiz-btn {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    padding: 10px 20px;
    border: none;
    background-color: #FFE2CC;
    color: #333D7B;
    font-size: 14px;
    cursor: pointer;
    border-radius: 50px;
    display: flex;
    justify-content: center;
}

.quiz-btn .quiz-icon {
    padding-right: 10px;
}

.quiz-icon {
    padding-right: 10px;
}

.quiz-btn:hover {
    background-color: #FFE2CC;
}

.menu-open {
    transform: translateY(0); /* Le menu glisse vers le bas */
}

/* Quand le menu est ouvert, le header devient blanc */
.menu-open header {
    background-color: white;
}

.menu-open .logo {
    color: #333D7B;
}

.menu-open .burger-menu span {
    background-color: #333D7B;
}

/* Style pour le bouton de fermeture avec l'icône croix.svg */
.close-menu {
    display: none;
    font-size: 50px;
    background: none;
    border: none;
    position: absolute;
    top: 55px;
    right: 41px;
    cursor: pointer;
}

.menu-open .close-menu {
    display: block;
}

.close-menu img {
    width: 20px; /* Ajustez la taille de l'icône */
    height: 20px; /* Ajustez la taille de l'icône */
}

/* Barre de recherche */
.searchform-mobile {
    
    display: flex;
    align-items: center;
    background-color: #FFE2CC; /* Même couleur de fond que les boutons */
    color: #333D7B;
    border-radius: 50px;
    overflow: hidden; /* Empêche tout débordement */
    input{
        color: #333D7B;
        background-color: #FFE2CC;
    }
}

.searchform-mobile input[type="text"] {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    padding: 10px 20px; /* Ajuster les espacements comme les boutons */
    border: none;
    background-color: #FFE2CC;
    font-size: 14px;
    outline: none;
    width: 100%; /* Ajuster si vous souhaitez qu'il prenne toute la largeur */
    border-radius: 50px 0 0 50px; /* Arrondir uniquement le côté gauche */
}

.searchform-mobile input[type="text"]::placeholder {
    color: #333D7B; /* Remplacez cette couleur par celle que vous souhaitez */
    background-color: #FFE2CC;
} 

.searchform-mobile button {
    background: none; /* Pas de fond sur le bouton */
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    cursor: pointer;
    border-radius: 0 50px 50px 0; /* Arrondir uniquement le côté droit */
}

.searchform-mobile button i,
.searchform-mobile button .search-icon {
    background-color: transparent; /* Icône sans fond */
    border: none;
    font-size: 20px; /* Taille de l'icône */
    color: #333D7B; /* Couleur de l'icône */
}

/* Si vous voulez une meilleure gestion de la taille de l'image */
.searchform-mobile button .search-icon {
    width: 20px;
    height: 20px;
    object-fit: contain; /* Pour que l'image garde ses proportions */
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333D7B;
    z-index: 999;
    opacity: 30%;
}

.overlay.visible {
    display: block;
}

/* Responsive layout */
@media only screen and (max-width: 420px) {
    .header-container {
        max-width: 100%;
        gap: 10px;
    }
    .menu-actions {
        align-items: center; /* Centrer les éléments */
        gap: 10px; /* Espacement entre les éléments */
    }
}
