body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    color: #333;
    scroll-behavior: smooth;
}

/* Styles pour tout les liens simple de la page  */
a {
    text-decoration: none;
    color: #2a67a3;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #e67e22;
}

/* ---- Navbar ---- */
.custom-navbar {
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Léger effet d'ombre */
}


/* Liens de navigation */
.navbar-nav .nav-link {
    font-size: 16px;
    font-weight: 500;
    color: #145A32;
    /* Vert foncé */
    transition: all 0.3s ease-in-out;
    margin-right: 15px;
}

/* Effet hover */
.navbar-nav .nav-link:hover {
    color: #0b3d20;
    /* Vert encore plus foncé au survol */
}

/* Bouton personnalisé */
.btn-custom {
    background-color: #145A32;
    /* Vert foncé */
    color: #ffffff !important;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease-in-out;
}

/* Effet hover sur le bouton */
.btn-custom:hover {
    background-color: #0b3d20;
    /* Vert plus foncé */
}

/* Styles pour nos categories */

.category-container {
    overflow-x: auto;
    /* Active le défilement horizontal */
    white-space: nowrap;
    padding: 10px 0;
}

.category-slider {
    display: flex;
    gap: 15px;
}

.category-card {
    position: relative;
    width: 150px;
    /* Taille ajustable */
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(70%);
    transition: filter 0.3s ease-in-out;
}

.category-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    /* Permet de rendre toute la carte cliquable */
}

.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    text-align: center;
    color: white;
    padding: 10px;
}

.overlay h3 {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
}


/* Style des cards */
.product-card {
    margin-top: 8px;
    width: 100%;
    max-width: 100%;
    border: none;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out;
}

.product-card:hover {
    transform: scale(1.05);
}

.product-card img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

/* Centrage des boutons */
.custom-control {
    background-color: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    /* Centrer verticalement */
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 1px;
    /* Ajuster la position à gauche */
}

.carousel-control-next {
    right: 1px;
    /* Ajuster la position à droite */
}

/* Amélioration de la visibilité des icônes */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
    /* Changer l'icône en blanc */
}


.card-body h5 {
    color: #198754;
    /* Vert sombre */
    font-weight: bold;
}

.card-body p {
    font-size: 16px;
    color: #28a745;
}

.btn-details {
    background-color: #006400;
    /* Vert sombre */
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.3s ease-in-out;
}

.btn-details:hover {
    background-color: #004d00;
    /* Vert encore plus sombre au hover */
}

/* Styles pour la page product_detail */
.carousel-inner img,
.carousel-inner video {
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    /* Rendre les flèches visibles */
    border-radius: 50%;
    padding: 10px;
}

h2 {
    font-size: 24px;
    font-weight: bold;
}

.text-success {
    font-size: 20px;
    font-weight: bold;
}

/* Styles pour les Carousel indicators  */
.carousel-indicators button {
    background-color: #006400;
    /* Couleur verte */
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 5px;
    opacity: 0.5;
}

.carousel-indicators .active {
    opacity: 1;
}



/*                                  ====== Styles pour la page de contact ======                         */
.contact-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-container h2 {
    color: #2c3e50;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.contact-info {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    font-size: 22px;
    color: #007bff;
    margin-right: 10px;
}

.contact-info a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #0056b3;
}

/* Réseaux sociaux  */
.social-links {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.social-links a {
    margin: 0 10px;
    font-size: 24px;
    color: #555;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    color: #007bff;
    transform: scale(1.1);
}

/* Eviter le zoom de l'image */
.img-contain {
    height: 250;
    width: 100%;
    object-fit: contain;
    object-position: center;
    background-color: #f8f9fa;

}

/* Styles pour notre footer */
footer.footer {
    background: linear-gradient(135deg, #145A32, #0b3d20);
    color: #fff;
    padding: 40px 0;
    font-size: 15px;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 15px;
}

footer ul li a {
    color: #fff;
    opacity: 0.85;
    transition: all 0.3s ease;
}

footer ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

footer .fab {
    font-size: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

footer .fab:hover {
    transform: scale(1.2);
    color: #e67e22;
}