:root {
    --promo-border-color: #e21414;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --promo-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
    --gap: 15px;
    --width-percentage: calc(33.33% - 20px);
}

.offres-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--gap);
    max-width: 1600px;
    margin: 0 auto;
    align-items: stretch;
}

.toggle-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: var(--text-color);
    padding: 10px 0;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 1; /* Ensures it overlays on top of other elements */
}

.offre,
.offre-promo,
.offre-best-seller {
    position: relative;
    overflow: hidden;
    background-color: #ffffff1f;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: var(--width-percentage);
    max-width: 600px;
    padding: 20px;
    text-align: left;
    transition: transform 0.3s, background-color 0.3s, max-height 0.5s ease;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border: 3px solid var(--primary-color);
    flex-grow: 1;
    max-height: 500px;
}

.offre-promo {
    border: 3px solid var(--promo-border-color);
    box-shadow: var(--promo-box-shadow);
    position: relative;
}

.offre-promo:hover {
    border-color: var(--promo-border-color);    /* Nouvelle couleur de bordure au survol */
}

.offre-promo::before {
    content: "PROMOTION"; /* Modifiez votre texte ici */
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--promo-border-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    white-space: nowrap;
}

.offre-best-seller {
    border: 3px solid var(--primary-color);
    box-shadow: var(--promo-box-shadow);
    position: relative;
}

.offre-best-seller:hover {
    border-color: var(--primary-color);    /* Nouvelle couleur de bordure au survol */
}

.offre-best-seller::before {
    content: "Meilleure Vente"; /* Modifiez votre texte ici */
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
}

.offre h1,
.offre h2,
.offre h3,
.offre-promo h1,
.offre-promo h2,
.offre-promo h3,
.offre-best-seller h1,
.offre-best-seller h2,
.offre-best-seller h3 {
    text-align: center;
}

.offre:hover,
.offre-promo:hover,
.offre-best-seller:hover {
    transform: translateY(-10px);
}

.offre p,
.offre-promo p,
.offre-best-seller p {
    color: var(--text-color);
    text-align: left;
    word-wrap: break-word;
    flex-grow: 1;
}

.offre ul,
.offre-promo ul,
.offre-best-seller ul {
    padding: 0;
    list-style: none;
    margin: 10px 0;
}

.offre ul li,
.offre-promo ul li,
.offre-best-seller ul li {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.offre ul li i,
.offre-promo ul li i,
.offre-best-seller ul li i {
    margin-right: 5px;
    font-size: 30px;
    color: limegreen;
}

.offre img,
.offre-promo img,
.offre-best-seller img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.offre input,
.offre-promo input,
.offre-best-seller input {
    display: block;
    margin: 10px auto;
    width: 75%;
}

@media (max-width: 768px) {
    .offre,
    .offre-promo,
    .offre-best-seller {
        width: calc(100% - 40px);
    }
}

.price {
    text-align: center; /* Centre le conteneur globalement */
    margin: 20px 0;     /* Espacement vertical pour le conteneur */
}

.starting-from {
    display: block;    /* Affiche sur une nouvelle ligne */
    text-align: center;  /* Aligne le texte au centre */
    font-size: 24px;   /* Taille de la police pour "à partir de" */
    font-weight: bold; /* Style de police normal pour "à partir de" */
    margin-bottom: 5px;  /* Espace en bas pour séparer du prix */
    transform: translateX(-100px); /* Décale de 10px vers la gauche */
}

.amount {
    font-size: 40px;    /* Taille de la police pour le montant */
    color: var(--primary-color);     /* Couleur spécifique pour le montant */
    font-weight: bold;  /* Grasseté pour le montant */
}

.bi-check-lg {
    color: limegreen;
    margin-right: 5px;
    font-size: 30px;
}

.bi-x-lg {
    color: red !important;
    margin-right: 5px;
    font-size: 30px;
}

.icon-container {
    text-align: center;
}

.icon-container .icon {
    color : var(--text-color);
    font-size: 45px;
    margin: 0 5px; /* Équivaut à gap: 10px sur flex */
}

.collapsible .extra {
    display: none;
}