/* Grille des offres */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.offer-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(250, 153, 245, 0.4);
}

.offer-card h2 {
    font-size: 22px;
    color: #2F1F49;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px; /* Ajuste selon la taille souhaitée */
    margin: auto;
    overflow: hidden;
}



.offer-image {
    max-width: 75%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin: 15px 0;
    transition: transform 0.3s ease;
}

.prev-img, .next-img {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.prev-img:hover, .next-img:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-img {
    left: 5px;
}

.next-img {
    right: 5px;
    align-items: baseline;
}


.offer-card p {
    margin: 8px 0;
    font-size: 14px;
    color: #444;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Bouton Réserver */
.btn-reserver {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background: #2F1F49;
    color: white;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    
}

.btn-reserver:hover {
    background: #FA99F5;
    transform: scale(1.05);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.pagination a {
    padding: 10px 15px;
    background-color: #2F1F49;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.pagination a.active {
    background-color: #fa99f5; 
    transform: scale(1.1);
}

.pagination a:hover {
    background-color: #444;
    transform: scale(1.1);
}

/* Style des flèches de navigation (Précédente et Suivante) */
.pagination a.prev, .pagination a.next {
    padding: 10px 15px;
    font-size: 18px;
    background-color: #2F1F49;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination a.prev:hover, .pagination a.next:hover {
    background-color: #444;
}

/* Les flèches dans la pagination */
.pagination a.prev::before {
    content: '❮';
}

.pagination a.next::before {
    content: '❯';
}

