/*
 * REGLES CSS PERSONNALISEES POUR L'APPLICATION
 */

/* Cartes événement sur l'accueil */
a.event-card.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid #d0d0d0 !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: block;
}

a.event-card.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: #3273dc !important; /* Bleu Bulma au survol */
}

.event-card .card-image img {
    transition: transform 0.5s ease;
}

.event-card:hover .card-image img {
    transform: scale(1.05);
}

.event-card .card-image {
    position: relative;
    overflow: hidden;
}

/* Badge Privé flottant */
.event-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background-color: rgba(255, 221, 87, 0.9);
    color: #363636;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Badge déverrouillé (privé accessible) */
.event-badge-unlocked {
    background-color: rgba(72, 199, 142, 0.9);
    color: #fff;
}

/* Card événement verrouillé (pas de lien) */
.event-card-locked {
    border: 1px solid #d0d0d0 !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    opacity: 0.85;
    cursor: not-allowed;
}

.event-card-locked .card-image {
    position: relative;
    overflow: hidden;
}

.event-card-locked .card-content {
    background-color: #f9f9f9;
}

/* Description de l'événement */
.event-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 4.5em; /* Hauteur fixe pour alignement */
}

/* Ajustements responsive */
@media screen and (max-width: 768px) {
    .event-card {
        margin-bottom: 1rem;
    }
}
