/* TEC → Divi Shortcodes — v2 */

.fe-meta {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    vertical-align: middle;
}

.fe-meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.05em;
    height: 1.05em;
    color: currentColor;
}

.fe-meta-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.fe-event-image-responsive {
    display: block;
    width: 100%;
    height: auto;
}

/*
 * Utilitaire Divi "bord à bord".
 * Peut être utilisé via [fe_image fullwidth="yes"] ou en ajoutant la classe
 * fe-fullwidth-background à une section / ligne Divi qui porte une image de fond.
 */
.fe-fullwidth-media,
.fe-fullwidth-background {
    position: relative;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.fe-fullwidth-background {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.fe-fullwidth-media img {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: auto;
}

.fe-event-navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    margin: 24px 0;
}

.fe-event-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease;
}

.fe-event-nav:not(.fe-event-nav-empty):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
}

.fe-event-nav-next {
    justify-content: flex-end;
    text-align: right;
}

.fe-event-nav-empty {
    border-color: transparent;
}

.fe-event-nav-arrow {
    flex: 0 0 auto;
    font-size: 1.35em;
    line-height: 1;
}

.fe-event-nav-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fe-event-nav-label {
    font-size: .78em;
    opacity: .65;
}

.fe-event-nav-title {
    margin-top: 2px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.fe-related-events {
    margin: 28px 0;
}

.fe-related-heading {
    margin-bottom: 18px;
}

.fe-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.fe-related-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 12px;
    background: #fff;
}

.fe-related-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.fe-related-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.fe-related-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .22s ease;
}

.fe-related-link:hover .fe-related-image img {
    transform: scale(1.025);
}

.fe-related-body {
    display: block;
    padding: 15px 16px 17px;
}

.fe-related-date {
    display: block;
    margin-bottom: 5px;
    font-size: .84em;
    opacity: .7;
}

.fe-related-title {
    display: block;
    font-weight: 700;
    line-height: 1.3;
}

@media (max-width: 767px) {
    .fe-event-navigation {
        grid-template-columns: 1fr;
    }

    .fe-event-nav-empty {
        display: none;
    }

    .fe-related-grid {
        grid-template-columns: 1fr;
    }
}
