@font-face {
    font-family: 'BBB Poppins TN';
    src: url('../Font/bbb-poppins-tn-main/webfonts/BBBPoppinsTN-DisplayRegular.woff') format('woff');
    font-weight:regular;
    font-style:normal;}

* {
    margin: 0;
    padding: 0;
    background-color : lightgray;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'BBB Poppins TN', sans-serif;
}

.strike {
    z-index: 999;
    position: fixed; /* nécessaire pour que z-index s’applique */
    float: left;
    margin-left: 2%;
    text-align: center;
    margin-top: 0.6%;
    padding: 0.4%;
    font-size: 16px; }

.strike a {
    color: #55198b;
    font-family: 'BBB Poppins TN', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}


.strike a:hover {
    color: #7efcb1;
}

#mynav {
    position: fixed;
    top: 0;
    width: 100%;
    transition: top 0.3s;
    background: none;

}

.overlay {
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: none;
    opacity: 0;                /* invisible au départ */
    visibility: hidden;        /* non cliquable */
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.overlay.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.overlay-content {
    position: relative;
    top: 35%;
    width: 20%;
    text-align: left;
    margin-left: 2%;
    font-family: 'BBB Poppins TN', sans-serif;
    background: none;
}

.overlay-content a {
    text-decoration: none;
    font-size: 16px;
    color: #55198b;
    display: block;
    transition: 0.3s;
    background: none;
    padding: 4%;
}

.overlay a:hover,
.overlay a:focus {
    color: #61ffa1;
}


.overlay .closebtn {
    background: none;
    color: #55198b;
    text-decoration: none;
    float: right;
    margin-top: 0.6%;
    margin-right: 2.5%;
    font-size: 26px;
    font-family: 'BBB Poppins TN', sans-serif;
    position: relative;

}

.menu {
    position : fixed;
    right: 2%;
    padding: 0.4%;
    color: #55198b;
    font-size: 16px;
    font-family: 'BBB Poppins TN', sans-serif;
    cursor: pointer;
    background-color: none;
}

.menu .icon {
    font-size: 24px;
}

.menu:hover {
    color: #7efcb1;
}

#mytexte {
    top: 6%;
    position: sticky;
    overflow: hidden;
    z-index: 997;
    width: 100%;
    height: 100%;
    font-family: 'BBB Poppins TN', sans-serif;
}


#mytexte p {
    margin-left: 2.4%;
    width: 50%;
    font-size: 16px;
    line-height: 1.6;
    /*color: #61ffa1;*/
    color: #55198b;
    ffont-family: 'BBB Poppins TN', sans-serif;

}
.oeil {
    position: fixed;
    background: none;
    margin-top: 4%;     /* distance depuis le haut de la fenêtre */
    left: 3%;   /* distance depuis la gauche */
    z-index: 997
    width:7%;
}

.oeil a {
    background: none;
    color: #55198b;
    cursor: pointer;
    transition: color 0.3s ease;

}

.oeil a:hover {
    color: #7efcb1;

}


footer {
    overflow: hidden;
    z-index: 997;
    position: fixed;
    bottom: 0;
    right: 2.5%;
    text-align: right;
    margin-bottom: 1%;
}

footer ul {
    list-style-type: none;
    margin-top: 5%;

}

footer ul li {

    display: block;

}

footer ul li {
    font-family: 'BBB Poppins TN', sans-serif;
    font-size: 16px;
    color : #55198b;
    text-decoration: none;
    line-height: 1.4;

}


#product {
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    z-index: 999;
    margin-top: 55%;
    position: relative;
    margin-bottom: 15%;
    margin-left: 5%;
}



#product .row {
    width: 75%;
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-rows: auto auto auto;
    grid-gap: 4%;
    background: none;
    padding: 10px;
}

#product .column,
#product .column .img_1 {
    position: relative;
    background: none;
}


img {
    display: block;
    background: none;
    width: 100%;
    height: auto;
    object-fit: cover;
}

#product img {
    display: block;
}

#product .column .img_1,
#product .column .img_2 {
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    object-fit: cover;
    border: 3px solid transparent;
}
#product .column .img_2 {
    display: none;
    position: absolute;
}

#product .column:hover .img_2 {
    display: block;
    border-color: #61ffa1;
}


html {
    scroll-behavior: smooth;
}


/* Clear floats after the columns */
.row:after {
    content: "";
    display: table;
    clear: both;

}

/*second changement de structure à partir de cette taille d'écran*/

/* Responsive layout -chaque colonne prend 100% de l'espace disponible/destiné aux smartphones */
@media screen and (max-width: 600px) {


    #mynav {
        position: fixed;
        top: 0;
        width: 100%;
        transition: top 0.3s;
        background: none;
    }

    .overlay {
        z-index: 9999;
        overflow-x: hidden;
        transition: 0.5s;
    }

    .overlay-content {
        display: flex;
        justify-content: center; /* centre horizontalement */
        align-items: center;
        flex-direction: column;
        z-index: 999;
        position: relative;
        top: 15%;
        width: 100%;
        text-align: center;
        font-family: 'BBB Poppins TN', sans-serif;

    }

    .overlay a {
        margin-right: 2%;
        text-decoration: none;
        font-size: 16px;
        color: #5e2191;
        display: block;
        transition: 0.3s;
        background: none;
        padding: 3%;
    }

    #product {
        margin-top: 155%;
    }

    #product .row {
        width: 93%;
        display: grid;
        grid-template-columns: auto;
        grid-template-rows: auto;
        grid-gap: 1%;
        padding: 2%;
    }

    .strike{
        margin-top: 3.5%;
        margin-left: 5%;
    }

    .menu{
        margin-top: 2%;
        right: 5%;
    }

    .menu .icon {
        font-size: 22px;
    }

    #mytexte p {
        margin-top: 8%;
        width: 68%;
        font-size: 16px;
        margin-left: 5%;

    }

    .oeil {
        width:4%;
        margin-top: 12%;     /* distance depuis le haut de la fenêtre */
        margin-left: 5%;   /* distance depuis la gauche */

    }

    footer {
        right: 4%;

    }

    #product {
        margin-top: 100%;
        margin-left: 0;
        margin-right: 0;
    }




}
