.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    font-weight: bold;
}

.section-underline {
    width: 80px;
    height: 4px;
    background: #198754;
    border-radius: 4px;
    margin: 0 auto;
}

.event-card {
    border: 1px solid #19875433;
    border-radius: 1rem;
    overflow: hidden;
    transition: .2s ease;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
}

.card-festi {
    background: linear-gradient(135deg, #198754, #28a745);
    color: white;
    padding: 10px 0;
    text-align: center;

    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
    overflow: hidden;
}

.card-festi .badge {
    font-size: 0.95rem;
    border-radius: 50px;
}

.card-festi-info {
    background: rgba(255, 255, 255, 0.15);
    padding: 16px 22px;
    border-radius: 1rem;
    backdrop-filter: blur(6px);
}

.icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: white;
    color: #198754;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* Conteneur flex principal pour contrôle largeur */
.card-festi-row {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.festi-title {
    font-family: 'Baloo 2', cursive;
    letter-spacing: 1px;
}

/* Bloc Festival */
.card-festi-festival {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    /* prend toute la largeur du conteneur parent */
    max-width: 100%;
    /* optionnel, s'assure de ne pas dépasser */
    justify-content: center;
    /* centre le contenu horizontalement */
    background: rgba(255, 255, 255, 0.15);
    padding: 16px 22px;
    border-radius: 1rem;
    backdrop-filter: blur(6px);
}

/* Ligne Dates + Lieu */
.card-festi-dates-lieu {
    width: 100%;
    max-width: 100%;
}

/* Icônes et textes */
.card-festi-festival .icon-circle,
.card-festi-info .icon-circle {
    width: 52px;
    height: 52px;
}

/* Mise en avant des horaires */
.horaires-highlight {
    border: 2px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.22);
}

.horaires-text {
    font-size: 0.95rem;
    line-height: 1.4;
}

.badge-horaire {
    background: #ffc107;
    color: #000;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    margin-right: 6px;
}

.poster-hero {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.poster-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(.3) contrast(1.2);
    transform: scale(1.1);
    animation: bgParallax 20s ease-in-out infinite alternate;
}

@keyframes bgParallax {
    0% { transform: scale(1.1) rotate(0deg); }
    100% { transform: scale(1.15) rotate(1deg); }
}

.poster-front {
    max-width: 450px;
    z-index: 2;
    position: relative;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: posterEntrance 1.2s ease-out;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
}

@keyframes posterEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.poster-front:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 0 2px rgba(255,255,255,0.2);
}

/* Overlay moderne avec particules */
.poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg,
        rgba(102, 126, 234, 0.1) 0%,
        rgba(118, 75, 162, 0.1) 50%,
        rgba(255, 193, 7, 0.1) 100%);
    z-index: 1;
}

.poster-overlay::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.poster-overlay::after {
    content: '';
    position: absolute;
    bottom: 30%;
    right: 15%;
    width: 6px;
    height: 6px;
    background: rgba(255,193,7,0.8);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}



.card-festi-festival .text-start div:last-child,
.card-festi-info .text-start div:last-child {
    color: #ffffff;
}

/* Mobile : aligner Festival à gauche comme Dates & Lieu */
@media (max-width: 767.98px) {
    .card-festi-festival {
        justify-content: flex-start;
        /* aligne le contenu à gauche */
    }

    .card-festi-festival .text-start {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .poster-hero {
        padding: 40px 0;
    }

    .poster-front {
        max-width: 260px;
    }

    .poster-front:hover {
        transform: scale(1.02);
    }

    .poster-overlay::before,
    .poster-overlay::after {
        display: none;
    }
}
