/* new features */

/* scrolling text mainTop =========================================================*/

.m-scroll {
    display: none;
    }


/* switch button to webdesigner website =========================================================*/

/* Rajouter : Onscroll le text disparait et seul le bouton reste */

.switch {
    position: fixed;
    top: 80px;
    right: 35px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.switch__text {
    font-family: var(--text-font);
    font-size: 3.5vw;
    color: var(--text-color);
    margin-right: 10px;
}
.switch__wrap {
    display: inline-block;
    position: relative;
    width: 35px;
    height: 20px;
    cursor: pointer;
    overflow: hidden;
}
.switch__wrap input {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 0;
    height: 0;
}
.switch__wrap input + span {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-details);
    border-radius: 20px;
}
/* .switch input:checked + span {
    background: #346abf;
} */
.switch__wrap input + span:before {
    content: "";
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 4px;
    width: 12px;
    height: 12px;
    background: var(--color1);
    border-radius: 50%;
    transform: translateY(-50%);
    transition: all .5s;
}
.switch__wrap input:checked + span:before {
    left: 18px;
}


    
    /* Responsive mobile +1024px ---------------------------------- */
    @media only screen and (min-width: 1024px) {

        /* scrolling text mainTop =========================================================*/

        .m-scroll {
            position: absolute;
            display: flex;
            overflow: hidden;
            width: 100%;
            height: 20px;
            bottom: 12px;
        }
    
        .m-scroll__title {
            display: flex;
            position: absolute;
            top: 0;
            left: 0;
            align-items: center;
            justify-content: flex-start;
            width: 100%;
            height: 100%;
            white-space: nowrap;
            transform: scale(2);
            transition: all 1s ease;
        }
    
        .m-scroll__title > div {
            display: flex;
            animation: scrollText 35s infinite linear;
        }
    
        .m-scroll__title span {
            margin: 0;
            font-size: 9px;
            letter-spacing: 1px;
            color: var(--text-color);
            opacity: 50%;
            transition: all 2s ease;
        }
    
        .m-scroll__title a {
            text-decoration: none;
            color: white;
        }
        .m-scroll__title a:hover {
            -webkit-text-stroke: 1px white;
            color: transparent;
        }
    
        @keyframes scrollText {
            from {
                transform: translateX(0%);
            }
            to {
                transform: translateX(-50%);
            }
        }

        /* switch button to webdesigner website =========================================================*/
        .switch__wrap {
            width: 55px;
            height: 30px;

        }
        .switch__text {
            font-size: 2vw;
            margin-right: 20px;
        }
        .switch__wrap input + span:before {
            width: 20px;
            height:20px;
        }
        .switch__wrap input:checked + span:before {
            left: 30px;
        }
    }


    .switch {
        display: none;
        /* visibility: hidden;  */
        /* A ENLEVER POUR CONTINUER */
        /* width: 100%; */
        /* display: flex;
        align-items: center;
        justify-content: flex-end; */
        /* margin-bottom: 2rem;
        margin-left: 35rem; */
    }
    .switch__text {
        /* font-size: 1.5vw; */
        /* margin-right: 20px; */
    }

    