/* ============================================================
   Agenda des événements — styles dédiés
   ============================================================ */

/* Filtres select */
.agenda-filtres select {
    font-size: 13px;
    padding: 6px 10px;
    border: 1px solid #d0cec8;
    border-radius: 8px;
    background: #ffffff;
    color: #1a1a18;
    cursor: pointer;
}

/* Séparateur mensuel */
.agenda-month-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0 10px;
}
.agenda-month-label {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a18;
    white-space: nowrap;
}
.agenda-month-count {
    font-size: 11px;
    color: #888780;
    background: #f1efe8;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}
.agenda-month-line {
    flex: 1;
    height: 1px;
    background: #e0ded8;
}

/* Carte de base */
.agenda-card {
    background: #ffffff;
    border: 1px solid #e8e6e0;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 8px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    cursor: pointer;
    transition: border-color 0.15s;
    text-decoration: none;
    color: inherit;
}
.agenda-card:hover { border-color: #b4b2a9; }

/* Variante urgente */
.agenda-card--urgent {
    border-left: 3px solid #e24b4a;
    border-radius: 0 12px 12px 0;
    padding-left: 15px;
}

/* Variante passée */
.agenda-card--past { opacity: 0.55; }

/* Variante payante (mise en avant) */
.agenda-card--payant {
    background: #f8f5f0;
    border-color: #e0dbd3;
    border-left: 3px solid #dc3545;
    border-radius: 0 12px 12px 0;
    padding-left: 15px;
}
.agenda-card--payant:hover {
    border-left-color: #dc3545;
    border-color: #c8c3bb;
}

/* Bloc date (colonne gauche) */
.agenda-card__date {
    flex-shrink: 0;
    width: 48px;
    text-align: center;
    padding-top: 2px;
}
.agenda-card__day {
    display: block;
    font-size: 22px;
    font-weight: 500;
    color: #1a1a18;
    line-height: 1;
}
.agenda-card__month {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888780;
    margin-top: 2px;
}
.agenda-card__end {
    display: block;
    font-size: 10px;
    color: #888780;
    margin-top: 1px;
}

/* Séparateur vertical */
.agenda-card__sep {
    width: 1px;
    background: #e8e6e0;
    align-self: stretch;
    flex-shrink: 0;
    margin: 0 2px;
}

/* Corps de la vignette */
.agenda-card__body { flex: 1; min-width: 0; }

/* Ligne de badges */
.agenda-card__tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 7px;
}

/* Badge générique */
.agenda-tag {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Couleurs par type d'événement */
.agenda-tag--salon     { background: #eeedfe; color: #3c3489; }
.agenda-tag--webinaire { background: #e1f5ee; color: #085041; }
.agenda-tag--colloque  { background: #e6f1fb; color: #0c447c; }
.agenda-tag--rencontre { background: #faeeda; color: #633806; }
.agenda-tag--online    { background: #f1efe8; color: #444441; }
.agenda-tag--new       { background: #eaf3de; color: #27500a; }
.agenda-tag--urgent    { background: #fcebeb; color: #791f1f; }
.agenda-tag--past      { background: #f1efe8; color: #5f5e5a; }

/* Titre */
.agenda-card__title {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a18;
    margin-bottom: 5px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Métadonnées */
.agenda-card__meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 5px;
    font-size: 12px;
    color: #5f5e5a;
    align-items: center;
}
.agenda-card__meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.agenda-card__meta-item svg {
    width: 12px;
    height: 12px;
    opacity: 0.45;
    flex-shrink: 0;
}
.agenda-card__deadline {
    font-size: 11px;
    font-weight: 500;
    color: #791f1f;
}

/* Description (2 lignes max) */
.agenda-card__desc {
    font-size: 12px;
    color: #5f5e5a;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Colonne logo (droite de la vignette) */
.agenda-card__logo {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}

/* Image logo */
.agenda-card__logo-img {
    width: 80px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e8e6e0;
    background: #f5f4f0;
    display: block;
}

/* Fallback initiales */
.agenda-card__logo-fallback {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f1efe8;
    border: 1px solid #e8e6e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    color: #888780;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

/* Pied de vignette */
.agenda-card__footer {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.agenda-card__org {
    flex: 1;
    font-size: 11px;
    color: #888780;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.agenda-card__equipe {
    font-size: 11px;
    font-weight: 500;
    color: #e24b4a;
}
.agenda-card__btn {
    font-size: 11px;
    padding: 5px 12px;
    border: 1px solid #d0cec8;
    border-radius: 8px;
    background: transparent;
    color: #5f5e5a;
    text-decoration: none;
    white-space: nowrap;
}
.agenda-card__btn:hover { background: #f5f4f0; }
.agenda-card__inscrit-btn {
    font-size: 11px;
    padding: 5px 12px;
    border: 1px solid #c0392b;
    border-radius: 8px;
    background: transparent;
    color: #c0392b;
    white-space: nowrap;
    cursor: pointer;
    line-height: 1;
}
.agenda-card__inscrit-btn:hover { background: #fdf0ef; }

/* Bouton "Ajouter à mon agenda" */
.agenda-card__cal-wrap {
    position: relative;
}
.agenda-card__cal-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.agenda-card__cal-drop {
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e0ded8;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.10);
    min-width: 180px;
    z-index: 100;
    overflow: hidden;
}
.agenda-card__cal-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    font-size: 12px;
    color: #1a1a18;
    text-decoration: none;
    white-space: nowrap;
    width: 100%;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}
.agenda-card__cal-item + .agenda-card__cal-item {
    border-top: 1px solid #f1efe8;
}
.agenda-card__cal-item:hover { background: #f8f6f2; }
