body {
    background: url('../img/CADEAU.jpeg');
    background-attachment: fixed;
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
}
.container {
    width: 100%;
    position: relative;
}

.container .img {
    position: absolute;
    height: 150vh;
    width: 100%;
    bottom: -43%;
    filter: brightness(1.1);
}

.slider {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    margin: auto;
}

.slide {
    min-width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
}

.slide img {
    width: 55%;
    height: 90vh;
    object-fit: cover;
    object-position: center;
    margin-left: 22%;
    border-radius: 6px;
    backdrop-filter: blur(10px);
}


.buy-message:hover,
.buy-message.active {
    background-color: #d4af37;
}

@media screen and (max-width: 600px) {
    .container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        margin: auto;
    }

    .container .slides .slide img {
        width: 100%;
        margin: 0;
        padding: 0;
        left: 0;
    }
}

/*---------------------------------*/
.recommendations {
    width: 100%;
    height: 100vh;
    padding: 20px 0 20px 0;
}

.titre {
    text-align: center;
    margin-top: 20px;
}

.product-grid {
    width: 100%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

@media(max-width:768px) {
    .recommendations {
        height: 150vh;
    }

    .product-grid {
        display: flex;
        align-items: center;
        justify-content: space-around;
        flex-direction: column;
        height: 100%;
    }

    .product-grid .product {
        width: 90vw;
        margin-top: 5%;
        height: 70vh;
    }
}

.product {
    overflow: hidden;
    width: 30%;
    height: 90%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product img {
    width: auto;
    height: 100%;
    margin: auto;
    backdrop-filter: blur(10px);
}

.info {
    position: absolute;
    top: 60%;
    height: 40%;
    width: 100%;
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
}

.buy-message {
    color: #d4af37;
    background-color: black;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    border: 1px solid #d4af37;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    height: 8vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px 0 10px;
    position: relative;
    overflow: hidden;
}

/* Pseudo-élément pour l'effet de vague */
.buy-message::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.8), transparent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.5s ease-out;
    z-index: -1;
}

/* Animation de la vague au survol */
.buy-message:hover::after {
    transform: scaleY(1);
}

/* Changement de couleur du texte et du fond au survol */
.buy-message:hover {
    color: black;
    background-color: #d4af37;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    transition: color 0.3s, background-color 0.3s;
}

/* Animation de la vague en continu (sans survol) */
@keyframes wave {
    0% {
        transform: scaleY(0);
    }

    50% {
        transform: scaleY(1);
    }

    100% {
        transform: scaleY(0);
    }
}

/* Appliquer l'animation en continu */
.buy-message.wave-effect::after {
    animation: wave 3s ease-in-out infinite;
}

/**---------------------------------*/
.popular-categories {
    color: gold;
    padding: 20px;
    text-align: center;
}

.popular-categories h2 {
    font-size: 1.5em;
    margin-bottom: 5%;
    margin-top: 5%;
}

.categories-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.category {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: gold;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    padding: 15px;
    width: 300px;
    transition: transform 0.3s, background-color 0.3s;
}

.category img {
    width: 15vw;
    height: 30vh;
    border-radius: 5px;
}

.category:hover {
    transform: scale(1.05);
    background-color: rgba(255, 215, 0, 0.2);
}

/*----------------------------*/
.offre-speciale {
    width: 100%;
    padding: 50px 0;
    text-align: center;
    color: white;
    margin-top: 10%;
    margin-bottom: 5%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}
@media (max-width: 768px) {
    .offre-speciale {
        height: auto;
        padding: 10px 0 10px 0;
    }
    .offres{
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
    }
}
.offre-speciale h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.offre-speciale p {
    font-size: 1.2em;
    margin-bottom: 40px;
}

.offres {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.offre-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    height: 90vh;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: black;
    animation: fadeInUp 0.5s ease-out forwards;
}

.offre-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.offre-item img {
    width: 60%;
    height: 60vh;
    object-position: 0 -20px;
    object-fit: cover;
    backdrop-filter: blur(10px);
    border-radius: 6px;
}

.offre-item h3 {
    font-size: 30px !important;
    margin: 20px 0;
}

.offre-item button {
    background-color: #d4af37;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-bottom: 2%;
}

.offre-item button:hover {
    background-color: #000;
    color: #FFD700;
    opacity: 0.7;
    transition: 0.3s ease-in;
}
