/* ==========================================
   STYLES DÉDIÉS AUX CARTES DES ÉVÉNEMENTS
   ========================================== */

.evenement-card-item {
    height: 100%;
    margin-bottom: 30px;
}

/* Carte principale avec padding global et coins très arrondis */
.evenement-card-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.evenement-card-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(7, 61, 48, 0.12);
    border-color: #cbd5e1;
}

/* Zone Image encastrée à l'intérieur de la carte avec ses propres coins arrondis */
.evenement-card-media {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 14px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.evenement-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.evenement-card-box:hover .evenement-card-img {
    transform: scale(1.06);
}

/* Logo de l'organisation (Coin supérieur gauche) */
.evenement-org-logo {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #ffffff;
    padding: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    z-index: 3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evenement-org-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
}

/* Badges de Statut (À venir / En cours / Expiré) */
.evenement-badge-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 3;
}

.status-upcoming {
    background-color: #ffc107; /* Jaune du design system */
    color: #073D30;            /* Vert foncé de marque */
}

.status-ongoing {
    background-color: #0284c7; /* Bleu En cours */
    color: #ffffff;
}

.status-expired {
    background-color: #64748b; /* Gris Expiré */
    color: #ffffff;
}

/* Pastille de Prix (Couleur bg-danger du site) */
.evenement-price-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-danger-rgb, 220, 53, 69), var(--bs-bg-opacity, 1)) !important;
    color: #ffffff;
    padding: 0.45rem 1.1rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 4px 14px rgba(220, 53, 69, 0.35);
    z-index: 3;
}

/* Corps de la carte */
.evenement-card-body {
    padding: 20px 4px 4px 4px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.evenement-card-title {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.35 !important;
}

.evenement-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.25s ease;
}

.evenement-card-box:hover .evenement-card-title a,
.evenement-card-title a:hover {
    color: #073D30 !important;
}

/* Liste des métadonnées (Date 📅 et Lieu 📍) */
.evenement-meta-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.925rem;
    color: #1e293b;
    font-weight: 600;
}

.evenement-meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
}

.evenement-meta-item i {
    font-size: 0.95rem;
    width: auto;
    margin-right: 0 !important;
    color: #073D30 !important;
    flex-shrink: 0;
}

/* Extrait de description */
.evenement-card-excerpt {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Bouton d'action aux couleurs de la charte (#073D30) */
.evenement-card-action {
    margin-top: auto;
    padding-top: 4px;
}

.evenement-btn-ticket {
    display: inline-block;
    background-color: #ffffff;
    color: #073D30 !important;
    border: 1.5px solid #073D30;
    font-weight: 700;
    font-size: 0.925rem;
    padding: 0.65rem 1.6rem;
    border-radius: 10px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(7, 61, 48, 0.05);
}

.evenement-btn-ticket:hover {
    background-color: #073D30 !important;
    color: #ffffff !important;
    border-color: #073D30 !important;
    box-shadow: 0 4px 14px rgba(7, 61, 48, 0.25);
}
