/* Agenda page — modernized layout */
.agenda-page {
    padding: 64px 32px 80px;
    background: #FFFFFF;
}

.agenda-page__header {
    margin-bottom: 32px;
}

.agenda-page__title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #10233F;
    margin: 0 0 10px;
}

.agenda-page__subtitle {
    font-size: 1rem;
    color: #6B7280;
    margin: 0 auto;
    max-width: 600px;
}

.agenda-page__search {
    margin: 0 0 32px;
}

.agenda-page__search .search-input-group {
    display: flex;
    gap: 10px;
}

.agenda-page__search .search_input {
    border-radius: 10px;
    border: 1px solid #E4E7EC;
    padding: 10px 14px;
}

.agenda-page__search .search_icon {
    border-radius: 10px;
    padding: 10px 14px;
}

.agenda-highlight {
    background: linear-gradient(135deg, #0F2C5C 0%, #1B3A5C 100%);
    color: #FFFFFF;
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: 0 20px 50px rgba(16, 35, 63, 0.18);
    position: relative;
    overflow: hidden;
}

.agenda-highlight::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.agenda-highlight__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
}

.agenda-highlight__title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.35;
}

.agenda-highlight__meta {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.agenda-highlight__meta i {
    width: 16px;
    text-align: center;
    margin-right: 6px;
}

.agenda-highlight__cta {
    background: #FFFFFF;
    color: #1B3A5C;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    transition: transform .2s ease, box-shadow .2s ease;
}

.agenda-highlight__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    color: #1B3A5C;
}

/*
 * .evt-carte avait sa propre charte
 * (rayon 16px, ombre au survol plus discrète, pas de séparateur en pied de
 * carte...) sans rapport avec .document-card .card de page_documents.css
 * (rayon 20px, ombre/lift au survol bien plus prononcés, bordure rouge
 * #DC2626 au survol, pastille de statut posée SUR l'image plutôt que dans
 * le corps, pied de carte séparé par un filet). Les valeurs ci-dessous sont
 * volontairement identiques à celles de page_documents.css — même langage
 * visuel sur les trois pages de listing (documents, articles, agenda).
 */
.evt-carte {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
                border-color 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.evt-carte:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: #DC2626;
}

.evt-carte__lien-image {
    display: block;
    position: relative;
}

.evt-carte__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: #F1F3F6; /* fond neutre le temps que l'image se charge */
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.evt-carte:hover .evt-carte__image {
    transform: scale(1.06);
}

/* Pastille de statut posée sur l'image — même traitement que
   .card-type-badge (PDF/DOCX...) sur les cartes de documents. */
.evt-statut {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.evt-statut__point {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.evt-carte__corps {
    flex: 1;
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.evt-carte__titre {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    letter-spacing: -0.003em;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.evt-carte__titre a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.evt-carte__titre a:hover {
    color: #DC2626;
}

.evt-carte__lieu {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #6B7280;
    margin: 0;
}

.evt-carte__lieu i {
    color: #9CA3AF;
    font-size: 0.75rem;
}

/* Pied de carte séparé par un filet — même traitement que .card-date sur
   les cartes de documents (le pied reste collé en bas grâce à
   margin-top:auto, quelle que soit la longueur du titre au-dessus). */
.evt-carte__bas {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.evt-carte__date {
    font-size: 0.8rem;
    color: #9CA3AF;
    font-weight: 500;
}

.evt-lien {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #1e5f8e;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.evt-lien:hover {
    color: #DC2626;
    gap: 9px;
}

@media (max-width: 768px) {
    /* Le .container de la page porte déjà les marges : un second cadre
       blanc rembourré décalait les cartes et réduisait leur largeur. */
    .agenda-page {
        padding: 0;
        background: transparent;
    }
    .agenda-page__search .search-input-group {
        gap: 0;
    }
    .agenda-page__search .search_input {
        border: none;
    }
    .agenda-page__search .search_icon {
        align-self: stretch;
        padding: 0 20px;
        border-radius: 0;
    }
    .agenda-page .dropdown-container {
        margin-bottom: 12px !important;
    }
    .agenda-page #resultats {
        margin-left: 0;
        margin-right: 0;
        --bs-gutter-x: 0;
        row-gap: 14px;
    }
    .agenda-page #resultats > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }
    .agenda-flux {
        text-align: left;
    }
    .evt-carte:hover {
        transform: none;
    }
    .agenda-page__title {
        font-size: 1.6rem;
    }
    .agenda-highlight {
        padding: 20px 22px;
    }
}


/* Lien « Ajouter tout l'agenda à mon calendrier » (flux .ics), sous les filtres. */
.agenda-flux {
    margin: 4px 0 18px;
    text-align: right;
    font-size: 0.9rem;
}
.agenda-flux a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(30, 95, 142, 0.25);
    color: var(--color-primary, #1e5f8e);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.agenda-flux a:hover {
    background: rgba(30, 95, 142, 0.08);
    border-color: rgba(30, 95, 142, 0.45);
}
