@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    scroll-behavior: smooth;
    overflow-x: none;
    font-weight: lighter;

}

body {
    background-color: var(--text-white);
}


/*********** CLASS GLOBALE ************/
:root {
    --text-praline: #e4dcd1;
    --text-white: #f1ede7;
    --text-black: #000000;
    --text-bordeau: #53131E;
}


h1 {
    font-size: 4rem;
    font-weight: 500;
    margin-bottom: 80px;
    color: var(--text-black);
    /* équivaut à 32px si la taille de police par défaut est de 16px */

    opacity: 0;
    animation: slideRight 1.4s ease forwards;
    animation-delay: 1.7s;
}

h2 {
    font-weight: 400;
    font-size: 3rem;
    /* équivaut à 24px si la taille de police par défaut est de 16px */
}

h3 {
    font-weight: 300;
    font-size: 2rem;
    /* équivaut à 20px si la taille de police par défaut est de 16px */
}

h4 {
    font-weight: 500;
    font-size: 1.5rem;
    /* équivaut à 16px si la taille de police par défaut est de 16px */
}

h5 {
    font-weight: 600;
    font-size: 1.1rem;
}


p {
    color: var(--text-bordeau);
    font-size: 1.1rem;
    line-height: 20px;
    font-weight: 400;
    /* équivaut à 16px si la taille de police par défaut est de 16px */
}

strong {
    font-weight: 600;
}


section {
    width: 100%;
    margin: 50px auto 0 auto;
    padding: 10px 0;
    text-align: center;
}

.row {
    width: 80%;
    margin: 80px auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;

}

.col {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

button {
    font-weight: 800;
    padding: 13px 30px;
    border-radius: 5px;
    cursor: pointer;
    transition: .5s;
}

.a-button {
    margin-top: 60px;
    font-weight: 700;
    padding: 13px 30px;
    border-radius: 5px;
    cursor: pointer;
    background: transparent;
    color: var(--text-bordeau);
    border: 1px solid #53131E;

    transition: .5s;
}

.a-button:hover {
    background: var(--text-bordeau);
    color: #fff;
}

a {
    text-decoration: none;
}



/*********** FIN CLASS GLOBALE ************/



/*----------CAROUSSEL-------------*/

.destockage {
    height: 70vh;
    width: 80%;
}

.destockage h1 {
    margin-bottom: 15px;
}

.destockage h4 {
    font-style: italic;
    margin-bottom: 80px;
}

.wrapper {
    width: 100%;
    position: relative;
}

.wrapper i {
    height: 50px;
    width: 50px;
    background: #fff;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    cursor: pointer;

    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    font-size: 1.25rem;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.23);

    z-index: 99;
}

.wrapper i:first-child {
    left: -20px;
}

.wrapper i:last-child {
    right: -20px;
}


.wrapper .carousel {
    display: grid;

    grid-auto-flow: column;
    /*placement auto du contenu*/
    grid-auto-columns: calc((100% / 4));
    gap: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}


/*remove smooth when dragging*/
.carousel.dragging {
    scroll-behavior: auto;
}

.carousel.dragging .card {
    cursor: grab;
    user-select: none;
}



/*centrer les elements du  caroussel*/
.carousel :where(.card, .img) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel .card {
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;

}



.card .img img {
    border-radius: 10px;
    height: auto;
    width: 75%;
    display: block;

}


/*********** HEADER ************/
.hero {
    height: 100vh;
    background: linear-gradient(to left, rgba(215, 215, 223, 0.7), rgba(1, 3, 10, 0.7)),
        url('hero.jpg');
    background-size: cover;
    background-position: center;
    /*background-attachment: fixed ;*/
}


.hero h1 {
    margin-bottom: 8px;

    opacity: 0;
    animation: slideRight 1.4s ease forwards;
    animation-delay: 1.7s;
    color: #fff;
}

.hero h3 {
    opacity: 0;
    animation: slideLeft 1.4s ease forwards;
    animation-delay: 1.7s;
    color: #fff;
}

nav {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 65px;
    background: var(--text-praline);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    /*pour pas voir le box shadow*/
    position: fixed;
    top: 0;
    left: 0;

    transition: 0.3s;
}

.logo img {
    width: 120px;

}

#close {
    color: white;
    display: none;
}

#bar {
    color: #fff;
    display: none;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;

}

.navbar li {
    list-style-type: none;
    padding: 0 20px;
    position: relative;
    /*permet que le after soit visible mettre sur parent*/
}

.navbar li a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    transition: 0.3s ease;
}

.content {
    position: absolute;
    top: 55%;
    left: 13%;
    transform: translateY(-50%);
}

/*.navbar li a:hover,
.navbar li a.active {
    color: #088178;
}

.navbar a.active::after,
.navbar a:hover::after {
    content: '';
    width: 30%;
    height: 2px;
    background: #088178;
    position: absolute;
    bottom: -4px;
    left: 20px;
}
*/

/*********** FIN HEADER ************/



/*********** SECTION PRODUITS ************/



.produits button,
button a {

    background: transparent;
    color: var(--text-bordeau);
    border: 1px solid #53131E;
}

.produits button:hover {
    background: var(--text-bordeau);
    color: var(--text-white);
}

.produit {
    position: relative;
    /* Pour tenir compte de la marge entre les éléments */
    flex-basis: calc(33.33% - 10px);
    margin: 15px 0;
}

.produit img {
    z-index: -100;
    margin: auto;
    width: 80%;
    min-width: 150px;
    height: 260px;
}



.layer {
    background: transparent;
    height: 100%;
    width: 80%;
    border: 2px solid transparent;
    position: absolute;
    top: 0;
    left: 10%;


    display: flex;
    justify-content: center;
    align-items: center;

    transition: 0.5s;
}

.layer:hover {
    backdrop-filter: blur(3px);
    /* Ajustez le flou */
    background-color: rgba(0, 0, 0, 0.5);
    /* Couleur noire avec une opacité de 0.5 */
    border: 2px solid #fff;
}

.layer a {
    text-decoration: none;
    padding: 15px;
    color: transparent;

    position: absolute;
    bottom: 0;
    transform: translateX(-0%);
    /*permet de déplacer horizontalement un élément Html de sa position d'origine*/

    opacity: 0%;
    transition: 0.5s;
}

.layer:hover a {
    padding: 10px;
    color: #ffffff;
    bottom: 40%;
    opacity: 100%;
}

/*********** FIN PRODUITS ************/


/*********** A PROPOS ************/

.about {
    height: 100vh !important;
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.about img {
    width: 28%;
}

.about-text {

    max-height: 80vh;
    text-align: start;
    margin-left: 10px;
    width: 45%;
}

.about-text h2 {
    text-transform: capitalize;
    margin: 30px 0 20px 0;
}

.about-text h5 {
    font-style: italic;
    letter-spacing: 2px;
    text-transform: capitalize;
    margin-bottom: 20px;
}

.about-text p {
    overflow: hidden;
    color: var(--text-bordeau);
    line-height: 30px;
    /*defini l'espace entre les lignes*/
    font-size: 17px;
}



/*********** FIN A PROPOS ************/


/*********** CONTACT ************/

.contactform {
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow-y: none;
}

.contactform h1 {
    overflow-y: none;
    width: 58%;
    text-align: left;
}



form {
    width: 60%;
}

form input,
form textarea {
    width: 95%;
    border: 1px solid var(--text-bordeau);
    outline: 1px solid var(--text-bordeau);
    background: white;
    padding: 15px 0 15px 7px;
    margin: 15px 0;
    color: var(--text-bordeau);
    font-weight: 200;
    font-size: 18px;
    border-radius: 6px;
}

/*Btn transition performante*/

form .btn-sub {

    background: transparent;
    color: var(--text-bordeau);
    border: 1px solid #53131E;
}

form .btn-sub:hover {
    background: var(--text-bordeau);
    color: var(--text-white);
}



/*Fin btn transition performante*/

/*********** FOOTER ************/
.row-footer {
    min-height: 28vh;
    display: flex;
    justify-content: space-around;
    margin: auto;
    padding: 10px;
}


.col-footer {
    width: 80%;
    /*Icon calc*/
    padding-left: 25px;
}

footer {
    width: 100%;
    margin: 120px auto 0 auto;
    background-color: var(--text-praline);

}

footer h4 {
    padding-top: 10px;
}

/*cibler premier enfant de col footer*/
.col-footer>p:first-of-type {
    max-width: 400px;
}

footer p {
    padding: 15px 0;
}


/**icon calc**/

.row-footer .nt2 {
    padding-bottom: 0;
}

.icons {
    overflow: hidden;
    position: relative;
    right: 18px;
    width: 95%;
    height: 70px;
    padding: 10px;

}

/***/
.icons a {
    text-decoration: none;
    font-size: 25px;
    margin-right: 10px;
    color: var(--text-bordeau);
    padding: 3px 10px;
    border-radius: 50%;
    display: inline-block;
    text-align: center;

    transition: 0.5s;
}

.icons a:hover {
    color: var(--text-white);
    background: var(--text-bordeau);

    box-shadow: 0 0 5px var(--text-bordeau);
    transform: translateY(-5px);
}

.backlink {
    color: var(--text-bordeau);
    font-weight: bold;
    text-decoration: none;
    ;
}

footer .copyright {
    padding: 15px 0;
    background: #53131E;
    text-align: center;
    position: relative;
}

.copyright p {
    margin: auto;
    width: 60%;
    color: var(--text-white);
}

.copyright .home {
    text-decoration: none;
    color: var(--text-bordeau);
    font-size: 20px;
    background: var(--text-praline);
    padding: 3px 10px;
    border-radius: 50%;
    position: absolute;
    bottom: 25%;
    left: 5px;

}

/*********** FIN FOOTER ************/
/*********** FIN HEADER ************/


/*********** FIN HEADER ************/
/*********** FIN HEADER ************/

@media (max-height:500px) {
    .produits {
        margin-top: 150px !important;
    }
}



@media (max-width:1125px) {


    /********GLOBAL*********/
    h1 {
        font-size: 2.4rem;
        /* équivaut à 32px si la taille de police par défaut est de 16px */
    }

    h2 {
        font-size: 2.3rem;
        /* équivaut à 24px si la taille de police par défaut est de 16px */
    }

    h3 {
        font-size: 1.7rem;
        /* équivaut à 20px si la taille de police par défaut est de 16px */
    }

    h4 {
        font-size: 1.5rem;
        /* équivaut à 16px si la taille de police par défaut est de 16px */
    }

    h5 {
        font-size: 1rem;
    }

    p {
        line-height: 15px !important;
    }


    /*******FIN GLOBAL******/

    /*********** HEADER ************/


    .navbar {
        z-index: 99;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        position: fixed;
        top: -16px;
        right: -185px;
        height: 120vh;
        width: 175px;
        background-color: var(--text-praline);
        box-shadow: 0 40px 60px rgba(0, 0, 0, 0.1);
        padding: 80px 0 0 10px;
        transition: 0.3s;
    }



    #bar {
        display: block;
        cursor: pointer;
    }

    #close {
        display: block;
        position: absolute;
        top: 15px;
        left: 25px;
        margin-top: 22px;
        cursor: pointer;
        padding: 3px;
        border-radius: 5px;
    }


    .navbar li {
        margin-bottom: 20px;
    }

    .navbar li a {
        font-size: 15px;
    }

    .navbar li:nth-child(2){
       margin-top: 15px;
    }

    .content {
        left: 8%;

    }

    /*********** FIN HEADER ************/

    /***********CARROUSEL***********/

    .destockage{
        height: 55vh;
    }

    .wrapper i:last-child {
        right: -20px;
    }

    @media screen and (max-width:900px) {
        .wrapper .carousel {
            grid-auto-columns: calc((100% / 2));

        }
    }

    @media screen and (max-width:600px) {
        .wrapper .carousel {
            grid-auto-columns: calc((100% / 1));

        }
    }

    /***********FIN CARROUSEL***********/


    /*********** SECTION PRODUITS ************/


    .produit {

        flex-basis: 50%;
    }

    .produit img {
        width: 80%;
        height: 220px;
    }

    .layer {
        width: 80%;
        left: 10%;
    }


    /*********** FIN PRODUITS ************/


    /************A PROPOS***********/


    .about {
        justify-content: space-evenly;
        height: auto;
        flex-direction: column;
    }

    .about img {
        width: 55%;
    }

    .about-text {
        width: 80%;
        margin-left: 10px;
    }

    .about-text h2 {
        font-size: 25px;

    }

    .about-text h5 {

        font-size: 15px;

    }

    .about-text p {
        line-height: 10px;
        font-size: 11px;

    }

    /********FIN A PROPOS******/

    /********FOOTER*********/
    footer {
        height: auto;
        display: flex;
        justify-content: space-between;
        flex-direction: column;

    }

    footer p {
        line-height: 23px !important;
    }

    .row-footer {
        flex-direction: column;
        justify-content: space-between;
    }


    .row-footer .col-footer {

        margin-bottom: 40px;
    }

    /*icon calc*/
    .row-footer .nt2 {
        width: 100%;
    }

    /**/


    /********FIN FOOTER*********/


}

@media (max-width: 625px) {

    h5 {
        font-size: 0.9rem;
    }

    .main img {
        width: 55%;
    }

    /*******PRODUIT******/
    .produit {
        flex-basis: 100%;
    }

    .produit img {
        width: 70%;
    }

    .layer {
        width: 70%;
        left: 15%;
    }

    /******* FIN PRODUIT******/



}

@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes opacity {
    0% {

        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}