/**
 * Styles pour le module Slider d'Agenda
 *
 * @package Astra_Child_RGAA
 * @subpackage Slider_Agenda
 */

/* ========================================
   ARTICLE À LA UNE
======================================== */
.featured-event-section {
    padding: 60px 0 40px 0;
    background: #fff;
}

.featured-event-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Image */
.featured-event-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
}

.featured-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-event-container:hover .featured-event-image img {
    transform: scale(1.05);
}

.featured-event-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
}

/* Contenu */
.featured-event-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.featured-event-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.featured-event-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--ast-global-color-0, #0274be);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 20px;
}

.featured-event-category {
    display: inline-block;
    padding: 4px 12px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 4px;
}

.featured-event-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.featured-event-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.featured-event-title a:hover {
    color: var(--ast-global-color-0, #0274be);
}

.featured-event-date {
    display: block;
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
}

.featured-event-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 8px 0;
}

.featured-event-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--ast-global-color-0, #0274be);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.featured-event-button:hover {
    background: var(--ast-global-color-1, #025a9c);
    transform: translateX(4px);
}

/* Responsive Tablette */
@media (max-width: 1024px) {
    .featured-event-container {
        grid-template-columns: 40% 60%;
        gap: 30px;
    }

    .featured-event-title {
        font-size: 1.75rem;
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .featured-event-section {
        padding: 40px 0 30px 0;
    }

    .featured-event-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .featured-event-image {
        aspect-ratio: 16 / 9;
    }

    .featured-event-title {
        font-size: 1.5rem;
    }

    .featured-event-excerpt {
        font-size: 0.9375rem;
    }
}

/* === SECTION PRINCIPALE === */

.slider-agenda-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === EN-TÊTE === */
.slider-agenda-header {
    text-align: center;
    margin-bottom: 40px;
}

.slider-agenda-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.slider-agenda-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* === WRAPPER SLIDER === */
.slider-agenda-wrapper {
    position: relative;
}

.slider-agenda-swiper {
    padding: 0 0 60px 0;
    padding-top: var(--tl-header-height, 0px);
}

/* Forcer les slides à avoir la même hauteur */
.slider-agenda-swiper .swiper-wrapper {
    align-items: stretch;
}

.slider-agenda-swiper .swiper-slide {
    height: auto;
    display: flex;
}

/* === CARTES === */
.slider-agenda-card {
    height: 100%;
    display: flex;
}

.slider-agenda-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    transition: all 0.3s ease;
}

/* === IMAGE === */
.slider-agenda-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

.slider-agenda-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slider-agenda-link:hover .slider-agenda-image img {
    transform: scale(1.05);
}

.slider-agenda-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #9ca3af;
    background: #f9fafb;
}

/* === CONTENU === */
.slider-agenda-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.slider-agenda-card-title {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.4;
    text-transform: none !important;
}

.slider-agenda-date {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
    padding: 0.4rem 20px;
    background: #0088a4;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    z-index: 2;
}

.slider-agenda-lieu {
    display: flex;
    align-items: center;
    gap: 0.4em;
    margin-top: 0.35rem;
}

.slider-agenda-lieu-icon {
    flex-shrink: 0;
}

.slider-agenda-lieu-text {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    line-height: 1.3;
}

/* === NAVIGATION SWIPER === */
.swiper-button-next,
.swiper-button-prev {
    color: #555555 !important;
    width: 44px !important;
    height: 44px !important;
    background: white !important;
    border-radius: 50% !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px !important;
    font-weight: 600 !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #555555 !important;
    color: white !important;
}

.swiper-button-disabled {
    opacity: 0 !important;
}

/* === BOUTON FOOTER === */
.slider-agenda-footer {
    text-align: center;
    margin-top: 40px;
}

.slider-agenda-button {
    display: inline-block;
    padding: 12px 24px;
    background: #555555;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.slider-agenda-button:hover {
    background: #374151;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .slider-agenda-container {
        padding: 0 16px;
    }

    .slider-agenda-title {
        font-size: 2rem;
    }

    .slider-agenda-content {
        padding: 16px;
    }

    .slider-agenda-card-title {
        font-size: 1rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .slider-agenda-swiper {
        padding: 0 0 50px 0;
    }

    .slider-agenda-content {
        padding: 14px;
    }
}

/* ========================================
   TIMELINE AVEC POINTS
======================================== */

/* Variables CSS pour la timeline */
.slider-agenda-section {
    --tl-line-color: #0274be;
    --tl-line-thickness: 3px;
    --tl-dot-color: #0274be;
    --tl-dot-size: 18px;
    --tl-header-height: 40px;
}

/* Wrapper de la ligne - fixe en absolute */
.timeline-line-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--tl-header-height);
    pointer-events: none;
    z-index: 1;
}

/* Ligne horizontale */
.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #fff;
    transform: translateY(-50%);
}

/* Slide avec timeline */
.timeline-slide {
    position: relative;
}

/* Point sur la ligne - se déplace avec la slide */
.timeline-dot {
    position: absolute;
    left: 9px;
    top: calc(-1 * (var(--tl-header-height) / 2 + var(--tl-dot-size) / 2));
    width: var(--tl-dot-size);
    height: var(--tl-dot-size);
    background-color: #f7d100;
    border-radius: 50%;
    z-index: 2;
    transform: translateX(-50%);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

/* Hover sur le point */
.timeline-slide:hover .timeline-dot {
    background-color: #fff;
}

/* Responsive timeline - Masquer sur mobile */
@media (max-width: 768px) {
    .timeline-line-wrapper,
    .timeline-dot {
        display: none;
    }
}
