/* Styles généraux */
body {
   font-family: Arial, sans-serif;
   background-color: #f2f3f4; /* Ajout d'une couleur de fond pour la page */
   color: #333;
   margin: 0;
   padding: 0;
}

header {
   background-color: #f2f3f4;
   padding: 10px 0;
}

.navbar-brand img {
   max-height: 50px;
}

.navbar-dark .navbar-nav .nav-link {
   color: #fff;
}

.navbar-dark .navbar-nav .nav-link:hover {
   color: #ccc;
}

.container {
   max-width: 1200px;
   margin: auto;
   padding: 2rem;
}

h1, h2 {
   color: #343a40;
}

h2 {
   margin-bottom: 1rem;
}

p {
   line-height: 1.6;
}

/* Footer Styles */
footer {
   background-color: #343a40;
   color: #fff;
   padding: 2rem 0;
}

footer img {
   max-height: 50px;
   margin-bottom: 1rem;
}

footer ul {
   list-style-type: none;
   padding: 0;
}

footer ul li {
   margin-bottom: 0.5rem;
}

footer ul li a {
   color: #fff;
   text-decoration: underline; /* Sous-ligne les liens par défaut */
   transition: color 0.3s ease, background-color 0.3s ease; /* Ajoute une transition pour le survol */
}

footer ul li a:hover {
   color: #ddd;
   background-color: #444; /* Ajoute un surlignage gris foncé lors du survol */
   text-decoration: underline;
}

footer h5 {
   margin-bottom: 1rem;
}

/* Styles spécifiques */
.content-wrapper {
   background-color: #ffffff; /* Couleur de fond */
   border: 2px solid #1abc9c; /* Bordure */
   padding: 2rem; /* Padding pour l'espace intérieur */
   border-radius: 10px; /* Bords arrondis */
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre */
}

.main-content {
   display: flex;
   flex-direction: column;
   align-items: center;
}

/* Centrer le bloc de filtre */
.main-content .filter-section {
   background-color: #2c3e50;
   padding: 2rem;
   border-radius: 10px;
   color: #fff;
   width: 100%;
   max-width: 600px;
   margin-bottom: 2rem;
   text-align: center;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-content .filter-section h2 {
   color: #ecf0f1;
}

.main-content .filter-section .form-label {
   color: #bdc3c7;
}

.main-content .filter-section .form-control {
   background-color: #34495e;
   border: none;
   color: #ecf0f1;
   margin-bottom: 1rem;
}

.main-content .filter-section .form-control:focus {
   background-color: #34495e;
   border-color: #1abc9c;
}

/* Product Section */
.products-section {
   width: 100%;
   max-width: 1200px;
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
}

.category-header {
   width: 100%;
   text-align: center;
   padding: 1rem;
   border: 2px solid #1abc9c;
   border-radius: 10px;
   background-color: #ecf0f1;
   margin-bottom: 2rem;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.products-section .card {
   border: 1px solid #dcdcdc;
   border-radius: 10px;
   overflow: hidden;
   transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
   margin: 1rem;
   width: 300px;
   background-color: #fdfdfd;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.products-section .card:hover {
   transform: scale(1.05);
   box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.products-section .card img {
   height: 200px;
   object-fit: cover;
   border-bottom: 1px solid #dcdcdc;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.products-section .card-body {
   background-color: #fff;
   padding: 1rem;
   text-align: center;
}

.products-section .card-body h5 {
   color: #2c3e50;
   margin-bottom: 1rem;
}

.products-section .card-body p {
   color: #7f8c8d;
}

.products-section .card-body .btn {
   background-color: #1abc9c;
   border: none;
   color: #fff;
   padding: 0.5rem 1rem;
   border-radius: 5px;
   transition: background-color 0.3s ease-in-out;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.products-section .card-body .btn:hover {
   background-color: #16a085;
}

/* Aligner les boutons */
.button-group {
   display: flex;
   justify-content: flex-start;
   gap: 1rem;
   flex-wrap: wrap;
}

.button-group .btn {
   flex: 1;
   text-align: center;
}

article {
   display: flex;
   justify-content: center;
   align-items: center;
}

/* Media Queries */
@media (max-width: 768px) {
   .navbar .search-bar {
       flex-direction: column;
   }

   .navbar .search-bar input,
   .navbar .search-bar button {
       border-radius: 5px;
       margin-bottom: 0.5rem;
   }

   .main-content .filter-section {
       width: 90%;
   }

   .products-section {
       width: 100%;
   }
}

/* Améliorez les liens de navigation */
.nav-link {
   color: #f8f9fa;
   transition: color 0.3s ease, border-bottom 0.3s ease;
}

.nav-link:hover {
   color: #ffffff;
   border-bottom: 2px solid #ffffff;
}

/* Styles pour les liens du pied de page */
footer a {
   color: #ffffff; /* Couleur des liens dans le pied de page */
   text-decoration: underline; /* Sous-ligne les liens par défaut */
   transition: color 0.3s ease, background-color 0.3s ease; /* Ajoute une transition pour le survol */
}

footer a:hover {
   color: #dddddd; /* Couleur des liens au survol dans le pied de page */
   background-color: #444; /* Ajoute un surlignage gris foncé lors du survol */
   text-decoration: underline;
}
