/* ========== AGENDA ACCUEIL ========== */

.agenda-accueil {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.agenda-section__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}

.agenda-section__picto {
    font-size: 1.5rem;
    line-height: 1;
}

.agenda-section__arrow {
    font-size: 1.3rem;
    color: var(--lidfsg-blue);
    font-family: var(--lidfsg-font-title);
    font-weight: 700;
    line-height: 1;
}

.agenda-section__titre {
    font-family: var(--lidfsg-font-title) !important;
    font-size: 1.85rem !important;
    font-weight: 700;
    color: var(--lidfsg-blue) !important;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 2px;
}

/* ---- Grille de cartes ---- */

.agenda-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

/* ---- Carte de base ---- */

.agenda-card {
    display: flex;
    flex-direction: column;
    background: var(--lidfsg-white);
    border: 1px solid var(--lidfsg-border);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.agenda-card:not(.agenda-card--vide):hover {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.11);
    transform: translateY(-3px);
}

/* ---- Zone visuelle (image ou placeholder) ---- */

.agenda-card__visual {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    text-decoration: none;
}

.agenda-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.agenda-card:hover .agenda-card__img {
    transform: scale(1.05);
}

/* ---- Placeholder dégradé ---- */

.agenda-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0072B2 0%, #8a5a7a 50%, #0072BB 100%);
}

.agenda-card--competition:nth-child(odd) .agenda-card__placeholder {
    background: url('/wp-content/uploads/2026/05/competitions-3.png') center calc(50% + 10px) / cover no-repeat;
}

.agenda-card--competition:nth-child(even) .agenda-card__placeholder {
    background: url('/wp-content/uploads/2026/05/competitions-actus2.png') center calc(50% + 10px) / cover no-repeat;
}

/* ---- Bandeau de dates (superposé en bas de la visuelle) ---- */

.agenda-card__dates {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.4rem 0.85rem;
    font-family: var(--lidfsg-font-title);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    backdrop-filter: blur(3px);
}

.agenda-card--gala .agenda-card__dates {
    background: rgba(35, 44, 106, 0.82);
}

.agenda-card--competition .agenda-card__dates {
    background: rgba(198, 118, 56, 0.88);
}

/* ---- Corps de la carte ---- */

.agenda-card__body {
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.agenda-card__titre {
    font-family: var(--lidfsg-font-title);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    color: var(--lidfsg-dark);
}

.agenda-card__titre a {
    color: inherit;
    text-decoration: none;
    border-bottom: none;
}

.agenda-card--gala .agenda-card__titre a:hover {
    color: var(--lidfsg-blue);
}

.agenda-card--competition .agenda-card__titre a:hover {
    color: var(--lidfsg-orange);
}

.agenda-card__meta,
.agenda-card__lieu {
    font-size: 0.82rem;
    color: var(--lidfsg-muted);
    margin: 0;
    line-height: 1.4;
}

.agenda-card__pictos {
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.agenda-card__site {
    margin: 0;
    margin-top: auto;
    padding-top: 0.5rem;
}

.agenda-card__site a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--lidfsg-font-body);
    color: var(--lidfsg-blue);
    text-decoration: none;
    border: 1px solid var(--lidfsg-blue);
    border-radius: 20px;
    padding: 0.2rem 0.65rem;
    transition: background 0.2s, color 0.2s;
}

.agenda-card__site a:hover {
    background: var(--lidfsg-blue);
    color: #fff;
}

/* ---- Carte vide / placeholder ---- */

.agenda-card--vide {
    background: var(--lidfsg-light);
    border: 2px dashed var(--lidfsg-border);
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    min-height: 160px;
}

.agenda-card__vide-icon {
    font-size: 1.6rem;
    opacity: 0.35;
    display: block;
    text-align: center;
}

.agenda-card__vide-text {
    font-size: 0.82rem;
    color: var(--lidfsg-muted);
    font-style: italic;
    margin: 0;
    text-align: center;
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
    .agenda-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .agenda-cards {
        grid-template-columns: 1fr;
    }
}
