@charset "utf-8";
/* CSS Document - Agenda Ricom */

/* =========================================================
   Bloc date partagé (liste + page single)
   ========================================================= */
.date {
    display: block;
    text-align: center;
    background: #00506D;
    border-radius: 7px;
    margin-right: 10px;
    line-height: 1.3em;
    padding: 10px 5px;
    color: #fff;
}
.jour {
    font-size: 36px;
    font-weight: 300;
    color: #fff;
}
.mois {
    color: #fff;
    font-weight: 700;
    display: block;
}
.heure {
    text-transform: uppercase;
    font-size: 14px;
    line-height: 1em;
}

/* =========================================================
   Liste d'événements (shortcode agenda_upcoming)
   ========================================================= */
.agenda-events .event {
    border-bottom: 1px dotted #000;
    padding: 10px;
    display: flex;
}
.agenda-events .event .date {
    width: 80px;
    flex-shrink: 0;
}
.agenda-events .event .corps {
    flex: 1;
}
.agenda-events .event h3 {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* =========================================================
   Page single agenda
   ========================================================= */
.single-agenda #et-main-area > article,
.single-agenda article.single-event {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    margin: 30px auto;
    width: 1080px;
    max-width: 100%;
    box-sizing: border-box;
}

/* En-tête */
.event-header {
    margin-bottom: 25px;
}
.back-to-archive {
    display: inline-block;
    margin-bottom: 15px;
    text-decoration: none;
    font-size: 14px;
    color: #00506D;
    transition: color 0.2s;
}
.back-to-archive:hover {
    color: #003a52;
    text-decoration: underline;
}
.event-categories {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.event-categories li a {
    display: inline-block;
    padding: 4px 12px;
    background: #00506D;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s;
}
.event-categories li a:hover {
    background: #003a52;
}
.event-title {
    margin: 0;
    padding: 0;
}

/* Image à la une */
.event-thumbnail {
    margin: 0 0 25px;
    border-radius: 10px;
    overflow: hidden;
}
.event-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

/* Carte détails (dates + horaires) */
.event-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    margin-bottom: 30px;
}
.event-details .event-meta {
    display: flex;
    align-items: center;
}
.event-details .date {
    margin-right: 0;
    min-width: 80px;
}
.horaire-meta .heure {
    font-size: 18px;
    text-transform: none;
}

/* Contenu */
.event-content {
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Navigation prev/next */
.event-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
}
.event-nav-prev,
.event-nav-next {
    flex: 1;
    max-width: 48%;
}
.event-nav-next {
    text-align: right;
}
.event-nav-prev a,
.event-nav-next a {
    display: block;
    text-decoration: none;
    color: #00506D;
    transition: opacity 0.2s;
}
.event-nav-prev a:hover,
.event-nav-next a:hover {
    opacity: 0.7;
}
.nav-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 3px;
}
.nav-title {
    display: block;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
    .single-agenda #et-main-area > article,
    .single-agenda article.single-event {
        padding: 20px;
        margin: 15px auto;
    }
    .event-details {
        flex-direction: column;
        align-items: flex-start;
    }
    .event-navigation {
        flex-direction: column;
    }
    .event-nav-prev,
    .event-nav-next {
        max-width: 100%;
        text-align: left;
    }
}
