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;
}

.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: 400px; /* 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 */
}