/* Global styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Product details */
.flex {
    display: flex;
    gap: 20px;
}

.flex-col {
    flex-direction: column;
}

.md-flex-row {
    flex-direction: row;
}

.w-full {
    width: 100%;
}

.md-w-1-2 {
    width: 50%;
}

/* Reduce size of main image */
.img-rounded {
    max-width: 400px;
    max-height: 400px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.text-bold {
    font-weight: bold;
}

h1 {
    font-size: 2rem;
    margin-bottom: 5rem;
}

p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

/* Carousel */
.relative {
    position: relative;
}

.carousel-item h3 {
    font-size: 1rem;
    margin: 10px;
    color: #333;
    transition: color 0.3s ease;
    text-decoration: none;
}

.carousel-item h3:hover {
    color: #176b61;
    text-decoration: underline;
}


.carousel-wrapper {
    overflow: hidden;
    position: relative;
    margin: 0 auto; /* Centre le carousel */
    max-width: 1200px; /* Largeur max */
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #1f3f55;
    color: #54c4b7;
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

/* Ajustement de la position */
.carousel-button.left {
    left: 5px; /* Ajustez pour le rapprocher du contenu */
}

.carousel-button.right {
    right: 5px; /* Ajustez pour le rapprocher du contenu */
}
.carousel-content {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.carousel-item {
    flex-shrink: 0;
    width: 200px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    text-decoration: none;
}

.carousel-item:hover {
    transform: scale(1.1);
}

.carousel-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}




.carousel-item a {
    text-decoration: none;
    color: inherit;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .md-flex-row {
        flex-direction: column;
    }

    .md-w-1-2 {
        width: 100%;
    }

    .img-rounded {
        max-width: 300px;
        max-height: 300px;
    }

    h1 {
        font-size: 1.75rem;
    }

    p {
        font-size: 0.875rem;
    }

    .carousel-item {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .carousel-content {
        gap: 15px;
    }

    .carousel-item {
        width: 150px;
    }

    h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.25rem;
        margin-bottom: 5px;
    }
    p {
        font-size: 0.75rem;
    }
    .carousel-button {
        padding: 8px;
        top: 50%; /* S'assure que les boutons restent centrés verticalement */
        transform: translateY(-50%);
    }

    .carousel-button.left {
        left: 5px; /* Place le bouton plus près du contenu */
    }

    .carousel-button.right {
        right: 5px; /* Place le bouton plus près du contenu */
    }
}

@media (max-width: 480px) {
    .carousel-content {
        flex-wrap: nowrap;
    }

    .carousel-item {
        width: 120px;
    }

   
    h1 {
        font-size: 1.25rem;
    }

    p {
        font-size: 0.75rem;
    }
    h2 {
        font-size: 1.0rem;
        margin-bottom: 5px;
    }

    .img-rounded {
        max-width: 200px;
        max-height: 200px;
    }


}


