body {
    font-family: Arial, sans-serif;
}

.destinations {
    padding: 2rem;
    text-align: center;
}

.destinations h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.destination-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 300px;
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    font-size: 1.5rem;
    margin: 1rem 0;
}

.card p {
    font-size: 1rem;
    padding: 0 1rem 1.5rem;
    color: #555;
}

/* Lightbox Styles */
.lightbox {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    display: flex; /* Affiche uniquement lorsque la classe .show est ajoutée */
    opacity: 1;
}

.lightbox img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.lightbox-caption {
    text-align: center;
    color: #fff;
    margin-top: 10px;
}

.lightbox-caption h3 {
    font-size: 2rem;
    margin: 0.5rem 0;
}

.lightbox-caption p {
    font-size: 1rem;
    padding: 0 1rem;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.3s;
}

.close:hover {
    color: #f0a500;
}
