header {
    background-color: var(--white);
    box-shadow: 1px 1px 4px 0 rgba(0,0,0,.3);
    width: 100%;
    position: fixed;
    z-index: 100000;
}

nav {
    margin: auto;
    width: calc(100% - 30px);
    max-width: 1410px;
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

nav .logo img{
    width: 80px;
    height: 80px;
    object-fit: contain;
}

@media (max-width: 600px) {
    nav .logo img{
        width: 50px;
        height: 50px;
    }
}


nav .menu {
    margin: 0;
    padding: 0 15px;
    list-style: none;
    clear: both;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 0;
    transition: max-height .2s ease-out;
}

nav li a{
    position: relative;
    display: block;
    padding: 5px 5px;
    margin: 10px 5px;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 300;
    color: var(--black);
    transition-duration: 0.3s;
}

nav li a:not(.btn-contact-2)::after {
    display: inline-block;
    position: absolute;
    bottom: 5px;
    left: 5%;
    border-bottom: 1px solid var(--red);
    content: "";
    transition: width 250ms ease-in-out 0s;
    width: 0;
}

nav li a:hover {
    color: var(--red);
}

nav li a:hover:after {
    width: 90%;
}

nav .menu-icon {
    cursor: pointer;
    float: right;
    padding: 28px 20px;
    position: relative;
    user-select: none;
}

nav .menu-icon .navicon {
    background:  var(--black);
    display: block;
    height: 2px;
    position: relative;
    transition: background .2s ease-out;
    width: 25px;
}

nav .menu-icon .navicon::before,
nav .menu-icon .navicon:after {
    background:  var(--black);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}

nav .menu-icon .navicon::before {
    top: 8px;
}

nav .menu-icon .navicon:after {
    top: -8px;
}

nav .menu-btn {
    display: none;
}

nav .menu-btn:checked ~ .menu {
    max-height: 600px;
}

nav .menu-btn:checked ~ .menu-icon .navicon {
    background: transparent;
}

nav .menu-btn:checked ~ .menu-icon .navicon::before {
    transform: rotate(-45deg);
}

nav .menu-btn:checked ~ .menu-icon .navicon:after {
    transform: rotate(45deg);
}

nav .menu-btn:checked ~ .menu-icon:not(.steps) .navicon::before,
nav .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
    top: 0;
}

@media (min-width: 1200px) {
    nav .menu {
        clear: none;
    }
    nav .menu-icon {
        display: none;
    }
}

@media (max-width: 1199px) {
    nav .menu {
        flex-direction: column;
        align-items: center;
        width: 100%;
        overflow: hidden;
        max-height: 0;
    }

    nav .menu-btn:checked ~ .menu {
        max-height: 600px; /* Lorsque le bouton est coché, le menu se repliera en hauteur minimale */
    }
}