.menu,
.menuHomepage {
    background-color: var(--colorLogoEnseignement);
}

.menu {
    display: flex;
    height: 3rem;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.2rem;
    position: relative
}

.menuPermanentHomepage {
    display: none;
}

.menuHomepage {
    position: absolute;
    z-index: 10;
    top: 65px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50px;
    gap: 45px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 80px;
    width: clamp(750px, 75%, 1100px);
}

.logoEnseignement {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.navigationHomepage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-around;
    list-style: none;
    font-size: 1rem;
}

.connexionButton {
    background-color: var(--colorBackgroundClair);
    color: var(--colorLogoEnseignement);
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    padding: 0.5rem 2rem;
    transition: all 0.3s ease;
    font-weight: bold;
}

.connexionButton:hover {
    background-color: var(--colorLogoEnseignement);
    color:  var(--colorBackgroundClair);
    font-weight: bold;
    box-shadow: 0px 0px 0px 2px var(--colorBackgroundClair);
}


.navigationHomepageTitre {
    color: var(--colorBackgroundClair);
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding: 15px;
}


.navigationHomepageTitre:hover {
    color: var(--colorLogoEnseignement);
    background-color: var(--colorBackgroundClair);
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: all ease-in-out 0.3s;
}

.containerUtilisateur {
    text-align: right;
    width: 100%;
    padding-right: 40px;
    color: white;
}

.containerUtilisateur a {
    text-decoration: none;
    color: white;
    padding: 4px;
}

.nomUtilisateur:hover {
    border: 2px solid white;
}


.image-switch {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 34px;
}

.image-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.track {
    position: absolute;
    inset: 0;
    background-color: var(--colorBackgroundClair);
    border-radius: 999px;
    transition: background-color 0.4s;
}

.knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 28px;
    height: 28px;
    background-color: var(--colorBackgroundDark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
}

.knob img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: opacity 0.3s ease;
    user-select: none;
    pointer-events: none;
}

.image-switch input:checked+.track {
    background-color: var(--colorBackgroundDark);
}

.image-switch input:checked+.track .knob {
    transform: translateX(30px);
    background-color: var(--colorBackgroundClair);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}


.burger {
    color: var(--colorBackgroundClair);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    cursor: pointer;
    cursor: pointer;
}

.burger svg {
    height: 70%;
    width: auto;
    fill: white;
    transition: transform 0.2s ease;
}

.burger:hover svg {
    transform: scale(1.1);
}

.menuBurger {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    background-color: var(--colorBordureFaible);
    flex-direction: column;
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.menuBurger.active {
    max-height: 500px;
}

.menuBurger li {
    list-style: none;
    height: 3rem;
    text-align: center;
    border-bottom: 1px solid var(--colorBackgroundDark);
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menuBurger li:hover {
    background-color: var(--colorContraste);
    color: var(--colorBackgroundClair);
}

.menuBurger a {
    text-decoration: none;
    color: var(--colorLogoEnseignement);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menuBurger a:hover {
    color: var(--colorBackgroundClair);
}

.signature {
    width: 100%;
    height: fit-content;
    grid-template-columns: 1fr 1fr 1fr;
    background-color: var(--colorBackgroundDark);
    display: grid;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    color: rgb(229, 232, 233);
    font-size: 12px;
}

.signature .gauche {
    text-align: left;
}

.signature .centre {
    display: flex;
    text-align: center;
    justify-content: center;
    font-size: 0.6rem;
}

.signature .droite {
    text-align: right;
}

.signature .imggauche {
    height: 35px;
    width: auto;
}

.signature .imgdroite {
    height: 75px;
    width: auto;
}



@media screen and (max-width: 768px) {

    .menuHomepage,
    .signature {
        display: none;
    }

    .menuPermanentHomepage {
        display: flex;
    }

    .signature .imggauche {
        height: 20px;
    }

    .signature .imgdroite {
        height: 40px;
    }
}