body {
  padding: 0;
  margin: 0;
}

.container {
  max-width: 1140px; /* Ajustez selon vos besoins */
  margin-left: auto;
  margin-right: auto;

  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 15px;
}

@media (max-width: 767px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1200px; /* Plus large pour les écrans très larges */
  }
}

/* Autres styles précédents... */
.panier {
  float: left;
  width: 261px;
  margin-left: 397px;
}
.caddie {
  float: left;
}
.caddie a {
  background: url("img/caddie.png") no-repeat;
  width: 31px;
  height: 27px;
  display: block;
  text-indent: -9898px;
  line-height: 72px;
  margin-top: 20px;
  margin-left: 18px;
}
.items {
  float: left;
  height: 72px;
  line-height: 30px;
  margin-left: 12px;
  font-family: "Helvetica";
  font-size: 11px;
  color: #aad56b;
  text-align: center;
  width: 65px;
  display: block;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
}
#header div.menu ul.panier li.items span {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  color: #fff;
  font-weight: bold;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
}
#header div.menu ul.panier li.total {
  float: left;
  height: 72px;
  line-height: 30px;
  margin-left: 12px;
  font-family: "Helvetica";
  font-size: 11px;
  color: #aad56b;
  text-align: center;
  width: 110px;
  display: block;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
}
#header div.menu ul.panier li.total > span {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  color: #fff;
  font-weight: bold;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
}
#subheader {
  background: url("img/bg-subheader.png") repeat;
  height: 45px;
}
#subheader div.wrap h2 {
  font-family: "AllerRegular";
  font-size: 12px;
  color: #fff;
  line-height: 45px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
}
#subheader div.wrap h2 a {
  color: #99cd4e;
  text-decoration: none;
}
.add {
  background: url("img/caddie.png") no-repeat;
  background-position: 0 0;
  width: 43px;
  height: 44px;
  display: block;
  text-indent: -9898px;
  position: absolute;
  top: 20px;
  right: 10px;
  transition: opacity 0.2s ease-in;
}

.add:hover {
  background: url("img/sprites.png") no-repeat;
  background-position: 0 0;
  width: 43px;
  height: 44px;
  display: block;
  text-indent: -9898px;
  position: absolute;
  top: 20px;
  right: 10px;
  opacity: 0.7;
  -moz-opacity: 0.7;
  filter: alpha(opacity=7);
}

.navbar {
  font-size: 18px; /* Augmenter la taille de la police */
  line-height: 1.5; /* Augmenter l'espacement entre les lignes */
}

.navbar-brand {
  font-size: 24px; /* Augmenter la taille de la police pour le titre de la navbar */
}

.navbar .nav-item {
  margin-left: 15px; /* Augmenter l'espacement entre les éléments de la navbar */
}

.navbar .nav-link {
  padding: 15px 0; /* Augmenter la hauteur de chaque élément de la navbar */
}

.nav-item .badge {
  position: relative;
  top: 0px;
  right: 30px;
  padding: 5px 10px;
  border-radius: 50%;
  background-color: white;
  color: black !important;
}

/* ===== H1 dans la navbar ===== */
.navbar-title {
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  padding: 0 20px;
  flex: 1;
  line-height: 1.3;
  max-width: 600px;
  display: flex;
  align-items: center;
}

/* Ajustement du container navbar pour flexbox */
.navbar .container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

/* S'assurer que le collapse prend l'espace nécessaire */
.navbar-collapse {
  flex-grow: 0;
}

/* Forcer le logo à rester à gauche */
.navbar-brand {
  flex-shrink: 0;
  margin-right: 20px;
}

/* Le H1 prend l'espace disponible */
.navbar-title {
  flex-grow: 1;
  flex-shrink: 1;
}

/* Les menus restent à droite */
.navbar-nav {
  flex-shrink: 0;
}

/* Responsive - Troncature avec ellipsis */
@media (max-width: 1200px) {
  .navbar-title {
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 992px) {
  .navbar-title {
    font-size: 1rem;
    max-width: 300px;
    padding: 0 10px;
  }
}

@media (max-width: 768px) {
  .navbar-title {
    font-size: 0.9rem;
    max-width: 200px;
    padding: 0 8px;
  }
}

@media (max-width: 576px) {
  .navbar-title {
    font-size: 0.75rem;
    max-width: 150px;
  }
}

.image-container {
  position: relative;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 2em;
  color: white;
}

.left-arrow {
  left: 10px;
  color: orange;
  font-weight: bolder;
}

.right-arrow {
  right: 10px;
  color: orange;
  font-weight: bolder;
}

.prixbarre {
  text-decoration: line-through;
  color: red;
}

.flex-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-container > div {
  flex: 1 0 auto; /* Cela permet à chaque div de prendre autant d'espace qu'il le peut sans déborder */
}

.product-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-height: 140px; /* Ajustez cette valeur en fonction de vos besoins */
}

.product-name {
  margin-right: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  text-align: left;
}

.expand-arrow {
  cursor: pointer;
}

#searchForm {
  display: flex;
  flex-direction: row; /* Modifié pour aligner horizontalement */
  align-items: center;
  padding: 10px;
  margin: 0 auto;
  background-color: #f2f2f2;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  max-width: 100%;
}

#searchForm input[type="text"] {
  flex-grow: 1; /* Permet au champ de texte de s'étendre */
  padding: 10px;
  margin-right: 10px; /* Ajoute une marge à droite */
  margin-left: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#searchForm input[type="submit"] {
  padding: 10px 15px; /* Ajustement de la taille du bouton */
  border: none;
  border-radius: 4px;
  margin-right: 10px;
  background-color: orange;
  color: white;
  cursor: pointer;
}

#searchForm input[type="submit"]:hover {
  background-color: #45a049;
}

.reduc {
  color: #45a049;
  font-weight: bolder;
}

.image-container {
  width: 100%; /* Largeur du conteneur */
  height: 250px; /* Hauteur fixe pour uniformiser les images */
  overflow: hidden; /* Cache les parties de l'image qui débordent */
  display: flex; /* Utilise Flexbox pour centrer l'image */
  align-items: center; /* Centre verticalement */
  justify-content: center; /* Centre horizontalement */
}

.card-img-top {
  width: auto; /* Largeur automatique pour maintenir le rapport d'aspect */
  max-width: 100%; /* S'assure que l'image ne dépasse pas le conteneur */
  height: auto; /* Hauteur automatique pour maintenir le rapport d'aspect */
  max-height: 100%; /* S'assure que l'image ne dépasse pas la hauteur du conteneur */
  object-fit: contain; /* Contient l'image sans la déformer */
}

@media (max-width: 767px) {
  #searchForm {
    flex-direction: column; /* Sur les écrans mobiles, les éléments sont alignés verticalement */
  }
  h1 {
    font-family: "Androgyne", sans-serif;
    color: orange; /* Couleur du texte */
    font-size: 2em; /* Taille du texte */
    text-align: center; /* Centrer le texte */
    margin-bottom: 20px; /* Espacement en dessous du titre */
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1600px;
  }
}

h1 {
  font-family: "Androgyne", sans-serif;
  color: orange; /* Couleur du texte */
  font-size: 2.3em; /* Taille du texte */
  text-align: center; /* Centrer le texte */
  margin-bottom: 5px; /* Espacement en dessous du titre */
  margin-top: 5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Ombre portée */

  transition: transform 0.3s ease-in-out; /* Transition pour l'animation */
}

.new-line {
  display: block;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  list-style: none;
}

.pagination li {
  display: inline;
  margin: 0 5px;
}

.pagination a {
  text-decoration: none;
  color: #007bff;
  padding: 5px 10px;
  border: 1px solid #dee2e6;
  border-radius: 3px;
}

.pagination .active a {
  background-color: #007bff;
  color: white;
}

/* Responsivité pour les petits écrans */
@media (max-width: 768px) {
  .pagination li {
    margin: 5px 0;
  }

  .pagination a {
    padding: 10px 20px;
  }

  footer {
    padding: 15px;
  }
}

.deal-message {
  font-size: 1.75em;
  font-weight: bold;
  margin-top: 1em;
  margin-bottom: 1em;
  text-align: center; /* Centrer le texte */
}

.responsive-image {
  max-width: 450px;
  max-height: 240px;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Assure que l'image couvre le conteneur */
  display: block;
  margin: 0 auto; /* Centre l'image horizontalement */
}

.password-container {
  display: flex;
  align-items: center;
}
.toggle-password {
  margin-left: 10px;
  cursor: pointer;
}

input[type="number"] {
  min-width: 8ch; /* Suffisant pour afficher au moins deux chiffres */
}

.styled-button {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: block;
  margin: 20px auto; /* Centre le bouton horizontalement */
  text-align: center;
}

.styled-button:hover {
  background-color: #0056b3;
}

.centered {
  display: flex;
  justify-content: center;
}

.uniform-table {
  width: 100%; /* Vous pouvez ajuster cette largeur selon vos besoins */
  max-width: 800px; /* Limite la largeur maximale */
  margin: 0 auto; /* Centre le tableau */
}
