@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
}


/* scrollbar */
::-webkit-scrollbar{
    width: 15px;
}

::-webkit-scrollbar-thumb {
    width: 5px;
    background-color: rgb(177,173,173);
    border-radius: 6px;
}

html, body {
    width: 100vw;
    overflow-x: hidden;
}

body {
    background: 
        linear-gradient(rgba(190, 211, 195, 0.8), rgba(190, 211, 195, 0.8)),
        url('fond4.jpg');
    background-size: auto 100%;      /* L'image prend toute la hauteur, largeur auto */
    background-position: center;     /* Centre l'image horizontalement */
    background-repeat: repeat-y;     /* Répète l'image verticalement */
    min-height: 100vh;               /* S'assure que le body prend toute la hauteur */
}

a {
    text-decoration: 0;
    color: #1e1e1c;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

ul{
    list-style: none;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 8%;
    padding: 20px 0;
    border-bottom: 1px solid #1e1e1c;
}

.header__logo {
    font-weight: 500;
}

.header__menu {
    display: flex;
    justify-content: center;  /* Centre les éléments horizontalement */
    align-items: center;      /* Centre les éléments verticalement (optionnel) */
    height: 30px;             /* Ajuste la hauteur de la barre si nécessaire */
    margin-left: -150px;
}
.header__menu a {
    margin-left: 20px;
    padding-bottom: 3px;
    position: relative;
}

.header__menu a:after {
    position: absolute;
    left: 0;
    bottom: -2px;
    content: "";
    height: 1px;
    width: 0%;
    background-color: #1e1e1c;
    transition: 0.5s ease-out;

}

.header__menu a:hover:after {
    width: 100%;
}

.header__buttons a{
    margin-left: 20px;
}

.header__buttons a:last-child{
    border: 1px solid #1e1e1c;
    padding: 10px 30px;
    transition: 0,5s;
}

.header__buttons a:last-child:hover {
    background-color: #1e1e1c;
    color: #fff;

}


/* classes*/
.title{
    text-transform: uppercase;
    font-size: 60px;
    letter-spacing: 2px;
    color: #1e1e1c;
    text-align: center;
}

p{
    color: #1e1e1c;
    margin: 20px 0;
    letter-spacing: 2px;
    font-size: 13px;
    line-height: 25px;
}

/* home*/

.home {
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: calc(100vh - 80px);
    width: 100%;
}

.home__left {
    width: 100%;
    max-width: 600px;
    text-align: justify;
}

.home__right {
    width: 800px;
    max-width: 800%;
    height: auto;
    display: flex;
    justify-content: center;
}

.home__right img {
    width: 150%;
    height: auto;
    object-fit: cover;
    margin-top: -50px;
}

.home__button{
    display: flex;
    gap: 15px;
}

.home__button button{
    border: 1px solid #1e1e1c;
    cursor: pointer;
    padding: 10px 25px;
    background-color: transparent;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.home__button button:hover{
    background-color: #1e1e1c;
    color: #fff;
    transition: 0.5s;
}

.home__about-us{
    position: absolute;
    top: 100px;
    right: 0%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 85%;                    /*Ajuster la taille de la fenetre pop-up*/
    flex-direction: column;
    background: 
        linear-gradient(rgba(190, 211, 195, 0.8), rgba(190, 211, 195, 0.8)), 
        url('fond4.jpg'); /* Image de fond */
    background-size: auto; /* Laisse l'image à sa taille d'origine */
    background-position: center; /* Centre l'image horizontalement */
    background-repeat: repeat-y; /* Répète l'image uniquement sur l'axe vertical */
    transition: 0.3s ease-out;
    overflow: hidden;
    width: 0%;
}

.home__about-us img{
    height: 550px;
    width: 550px;
    object-fit: cover;
}

.home__button button:last-child {
    margin-left: 15px;
}

.home__button button:focus .home__about-us {
    width: 50%;                                     /*Modifier la longueur a laquelle va le pop up*/
    border-left: 1px solid #5e493a;
}

.home__about-us h1 {
    margin-bottom: 20px;
    font-size: 35px;
}

/* home */

/* best-sales */

.best-sales {
    padding: 20px 8%;
}

.best-sales__products {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 colonnes */
    grid-template-rows: repeat(6, 1fr); /* 6 lignes */
    gap: 20px; /* Uniformise l'espacement entre les colonnes et les lignes */
    height: 80vh;
}

.div1 {
    grid-area: 1 / 1 / 6 / 3;
}

.div2 {
    grid-area: 2 / 3 / 7 / 5;
}

.div3 {
    grid-area: 1 / 5 / 7 / 5;
    
}

.div4 {
    grid-area: 1 / 3 / 2 / 5;
    text-align: center;
}

.div5 {
    grid-area: 6 / 1 / 7 / 3;
    text-align: center;
}

.div6 {
    grid-area: 1 / 6 / 6 / 8; /* Positionne img8 dans la grille */
}

.div7 {
    grid-area: 6 / 6 / 7 / 8; /* Positionne "Produit final" juste en dessous de img8 */
    text-align: center;
}

.div6, .div7 {
    margin: 0; /* Supprimez les marges inutiles */
    padding: 0; /* Supprimez les paddings inutiles */
}

.div6 img, .div7 span {
    margin: 0; /* Supprimez les marges autour de l'image et du texte */
    padding: 0;
}

.best-sales__products div img {
    width:  100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.5s ease-out;
    opacity: 0;  /* Par défaut, les images sont invisibles */
    animation: appear linear;
    animation-duration: 1s;
}

/* Définition de l'animation */
@keyframes appear {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.best-sales__products div img.visible {
    opacity: 1;  /* Lorsque l'image devient visible */
    filter: grayscale(0);  /* Retirer le filtre de gris dès qu'elle est visible */
}


.best-sales__products div img:hover {
    filter: grayscale(0);
}


.best-sales__products span{
    color: #5e493a;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 20px ;
}

.div5, .div4, .div7, .div3 {
    /*border: 1px solid #1e1e1c;*/
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.div3 {
    background-color: #1e1e1c;
}

.div3 span {
    transform: rotate(-90deg);
    color: #fff;
    font-size: 60px;
}

/* img section */

.img-section {
    padding: 20px 8%;
    width: 100%;
    height: auto;
}

.img-section__content {
    width: 100%;
    /*border: 1px solid ###1e1e1c; */
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 0 8px rgba(0,0,0,0.2)
}

.img-section h1 {
    text-align: right;
    margin: 35px 0;
}

.img-section img {
    width: 100%;
    transition: 0.5;
}

.img-section img:hover{
    filter: grayscale(0);    
}

.img-section__content p{
    text-align: center;
    /*border: 1px solid ###1e1e1c;*/
    padding: 20px;
    margin: 0;
    margin-top: 20px;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

/* footer */

footer {
    display: grid;
    grid-template-columns: repeat(9,1fr);
    grid-template-rows: repeat(3,1fr);
    grid-column-gap: 35px;
    grid-row-gap: 0px;
    padding:  35px 8%;
    margin-top: 35px;

}

.col1 {
    grid-area: 1 / 1 / 4 / 4;

}
.col2 {
    grid-area: 1 / 4 / 4 / 6;
    margin-left: 50px;
    
}
.col3 {
    grid-area: 1 / 6 / 4 / 8;
    
}
.col4 {
    grid-area: 1 / 8 / 4 / 10;
    
}

.col2 , .col3{
    display: flex;
    flex-direction: column; 
    text-transform: uppercase;
}

.col4{
    text-transform: uppercase;
}

.footer__newsletter{
    border: 1px solid #1e1e1c;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    width: 400px;
    display: flex;
    justify-content: space-between;
    padding: 10 px;
}

.footer__newsletter input{
    width: 75%;
    background-color: transparent;
    border: 0;
    outline: 0;
}

.footer__newsletter button{
    background-color: transparent;
    width: 76px;
    height: 60px;
    border: 0;
    transition: 0.1s;
    cursor: pointer;
    margin-left: 20px;
}

.footer__newsletter button:hover{
    font-weight: bold;
}

.icons {
    display: flex;
}

.icons i{
    border: 1px solid #1e1e1c;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 50px;
    margin-right: 20px;
    font-size: 14px;
    border-radius: 50%;
    transition: 0.5 ease-out;
}

.icons i:hover{
    background-color: #1e1e1c;
    color: #fff;
}

.small_title{
    padding: 10px 0;
    border-bottom: 1px solid #1e1e1c;
}



.col2 a , .col3 a{
    margin: 5px 0;
    transition: 0.5s ease-out;
}

.col2 a:hover , .col3 a:hover{
    font-weight: 500;
}

.col4 button{
    border: 1px solid #1e1e1c;
    height: 150px;
    width: 150px;
    background-color: transparent;
    border-radius: 50%;
    text-transform: uppercase;
    font-size:  18px;
    cursor: pointer;
}

.col4 button:hover{
    background-color: #1e1e1c;
    color: #fff;
}