/**
 * Bloc Agenda
 * Styles alignés avec la maquette Figma & les conventions du thème Tango
 */

.bloc-agenda {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #1c1c1c;
    overflow: hidden;
    padding: 80px 20px;
    box-sizing: border-box;
}

/* Arrière-plan et overlay sombre */
.bloc-agenda-bg-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.bloc-agenda-bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    display: block;
}

.bloc-agenda-bg-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(28, 28, 28, 0.85);
}

/* Conteneur principal */
.bloc-agenda-inner {
    position: relative;
    z-index: 2;
    max-width: 1420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    box-sizing: border-box;
}

/* En-tête */
.bloc-agenda-header {
    width: 100%;
    max-width: 1420px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.bloc-agenda-surtitre {
    margin: 0;
    font-family: 'Funnel Display', sans-serif;
    font-weight: 400;
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: #ffffff;
}

.bloc-agenda-titre {
    margin: 0;
    font-family: 'Funnel Display', sans-serif;
    font-weight: 500;
    font-size: clamp(26px, 4vw, 50px);
    line-height: 1.15;
    color: #ffffff;
}

/* Liste des événements */
.bloc-agenda-container {
    width: 100%;
    max-width: 1040px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.bloc-agenda-list {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.bloc-agenda-item {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.9);
    transition: background-color 0.25s ease, padding 0.25s ease;
}

.bloc-agenda-item:first-child {
    padding-top: 0;
}

/* Badge Date */
.bloc-agenda-item-date {
    width: 74px;
    height: 74px;
    flex-shrink: 0;
    border: 1px solid #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-sizing: border-box;
    background-color: transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.bloc-agenda-item-day {
    font-family: 'Funnel Display', sans-serif;
    font-weight: 500;
    font-size: 30px;
    line-height: 32px;
}

.bloc-agenda-item-month {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Titre & métadonnées */
.bloc-agenda-item-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.bloc-agenda-item-title {
    margin: 0;
    font-family: 'Funnel Display', sans-serif;
    font-weight: 500;
    font-size: clamp(20px, 2.2vw, 30px);
    line-height: 1.2;
    color: #ffffff;
    word-break: break-word;
}

.bloc-agenda-item-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bloc-agenda-item-title a:hover {
    color: #ef651a;
}

.bloc-agenda-item-meta {
    margin: 0;
    font-family: 'Funnel Display', sans-serif;
    font-weight: 500;
    font-size: clamp(16px, 1.6vw, 22px);
    line-height: 1.3;
    color: #ef651a;
    word-break: break-word;
}

/* Bouton CTA */
.bloc-agenda-item-action {
    flex-shrink: 0;
}

.bloc-agenda-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 45px;
    padding: 0 20px;
    background-color: #ef651a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 2px;
    font-family: 'Funnel Display', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 28px;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.bloc-agenda-btn:hover {
    background-color: #d65512;
    transform: translateY(-2px);
    color: #ffffff;
}

.bloc-agenda-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.bloc-agenda-btn:hover .bloc-agenda-btn-icon {
    transform: translate(2px, 2px);
}

.bloc-agenda-btn-icon svg {
    display: block;
    width: 14px;
    height: 14px;
}

/* Note / Mention PAF sous la liste */
.bloc-agenda-footer-note {
    width: 100%;
}

.bloc-agenda-footer-note p {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.5px;
    color: #d1d5db; /* lisibilité optimisée sur fond sombre */
}

/* Message aucun événement */
.bloc-agenda-empty {
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    font-size: 18px;
    padding: 30px 0;
}

/* Responsive */
@media (max-width: 991px) {
    .bloc-agenda {
        padding: 60px 24px;
    }
    
    .bloc-agenda-inner {
        gap: 40px;
    }

    .bloc-agenda-item {
        gap: 20px;
        padding: 24px 0;
    }
}

@media (max-width: 767px) {
    .bloc-agenda {
        padding: 40px 16px;
    }

    .bloc-agenda-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px 0;
    }

    .bloc-agenda-item-header-mobile {
        display: flex;
        align-items: center;
        gap: 16px;
        width: 100%;
    }

    .bloc-agenda-item-action {
        width: 100%;
        margin-top: 6px;
    }

    .bloc-agenda-btn {
        width: 100%;
        box-sizing: border-box;
    }
}

