@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;

}

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


#navbar {
    overflow: hidden;
    position: fixed;
    z-index: 998;
    /* Make it stick/fixed */
    top: 0;
    /* Stay on top */
    width: 100%;
    /* Full width */
    transition: top 0.3s;
    background-color : lightgray;
}

/* Style the navbar links */
.retour {
    float: left;
    margin-left: 2%;
    color: black;
    text-align: center;
    text-decoration: none;
    font-size: 19px;
    padding: 1%;

}


.retour:hover {
    color: #61ffa1;
}

.strike{
    float: left;
    margin-left: 2%;
    /*color: #92579b;*/
    color: #000000;
    text-align: center;
    margin-top: 0.6%;
    Padding: 0.4%;
    text-decoration: none;
    font-size: 16px;
    font-family: 'BBB Poppins TN', sans-serif;

}

.strike:hover {

    color: #7efcb1;
}


.menu {
    float: right;
    margin-right: 2%;
    margin-top: 0.6%;
    Padding: 0.4%;
    /*color:#92579b;*/
    color: #000000;
    font-size: 16px;
    font-family: 'BBB Poppins TN', sans-serif;
    cursor: pointer;
}

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

main {
    margin-top : 6%;
    z-index: 997;
    display: grid;
    grid-template-columns: 40% 60%; /* ou 60% 40% */
    z-index: 997;

}

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


}

p{
    font-size: 16px;
    margin-left: 6%;
}

h1{
    margin-left: 6%;
}


.carousel {
    display : flex;
    margin-left: 22%;
    height : 80vh;
    width: 43vw;
    position: relative;
}

.carousel button {
    font-family: 'BBB Poppins TN', sans-serif;
    position: absolute;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 24px;
    z-index: 998;
    transform: translatey(-0%);
    top: 50%;
}


#prev {
    left: 2%;
    color: #7efcb1;

}
#next {
    right:2%;
    color: #7efcb1;
}


.carousel li {
    list-style: none;
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    opacity: 0;
}
.slide.active{
    opacity: 1;
}
.slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

}


.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 999;
    top: 0;
    right: 0;
    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: 20%;
    width: 100%;
    text-align: center;
    font-family: 'BBB Poppins TN', sans-serif;


}

.overlay a {
    text-decoration: none;
    font-size: 16px;
    color: black;
    display: block;
    transition: 0.3s;
    background: none;
    line-height : 3em;
}

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

}

.overlay .closebtn {
    Background: none;
    text-decoration: none;
    margin-right: 2.5%;
    float: right;
    font-size: 26px;
    font-family: 'BBB Poppins TN', sans-serif;
}


/*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) {

    main {
        display: flex;
        flex-direction: column;
        position: relative; /* au lieu de fixed */
        margin-top: 12%; /* pour ne pas cacher sous la navbar */
    }

    .carousel {
        column: center;
        margin-top: 5%;
        height : auto;
        width: 90vw;
        margin: 20px auto;   /* centre horizontalement */

    }

    .carousel img {
        width: 100%;
        height: auto;        /* évite la déformation */
        object-fit: contain; /* ou cover selon ton rendu souhaité */
    }



    footer {
        position: fixed;
        bottom: 0;
        right: 2.5%;
        text-align: right;
        margin-bottom: 1%;
    }

    .overlay {
        height: 100%;
        width: 0%;
        position: fixed;
        z-index: 999;
        top: 0;
        right: 0;
        background-color: lightgray;
        overflow-x: hidden;
        transition: 0.5s;
    }

    .overlay-content {
        z-index: 999;
        position: relative;
        top: 15%;
        width: 100%;
        text-align: center;
        font-family: 'BBB Poppins TN', sans-serif;
        background-color: lightgray;

    }

    .overlay a {
        text-decoration: none;
        font-size: 16px;
        color: black;
        display: block;
        transition: 0.3s;
        background: none;
        line-height : 3em;
    }

    .overlay .closebtn {

        margin-right: 5%;
    }

    .strike{
        margin-top: 4%;
        margin-left: 4%;
    }
    .menu{
        margin-top: 2%;
        margin-right: 4%;
    }


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

    }


}
