/* ========================================
   Fiche article Yogaevent
======================================== */

.yogaevent-single {
    width: 100%;
    padding: 20px 20px 70px;
}

.yogaevent-single__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.yogaevent-single__main {
    min-width: 0;
}

/* Catégories de l'article */

.yogaevent-article__categories {
    margin-bottom: 14px;
}

.yogaevent-article__categories a {
    color: #CA7B6E;
    text-decoration: none;
    font-size: 14px;
}

.yogaevent-article__categories a:hover {
    text-decoration: none;
}

/* Titre et métadonnées */

.yogaevent-article__title {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.2;
}

.yogaevent-article__meta {
    margin-bottom: 25px;
    color: #777;
    font-size: 14px;
}

/* Image principale */

.yogaevent-article__thumbnail {
    margin-bottom: 30px;
}

.yogaevent-article__thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Contenu de l'article */

.yogaevent-article__content {
    font-size: 17px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.yogaevent-article__content p {
    margin-block: revert;
}

.yogaevent-article__content img {
    max-width: 100%;
    height: auto;
}

.yogaevent-article__content iframe,
.yogaevent-article__content video {
    max-width: 100%;
}

.yogaevent-article__content a {
    color: #CA7B6E !important;
    overflow-wrap: anywhere;
}

.yogaevent-article__content a:hover,
.yogaevent-article__content a:focus {
    color: #CA7B6E !important;
}

/* Navigation de l'article */

.yogaevent-article__navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.yogaevent-article__navigation a {
    color: #496c59;
    text-decoration: none;
}

.yogaevent-article__navigation a:hover {
    text-decoration: underline;
}

/* ========================================
   Sidebar : catégories
======================================== */

.yogaevent-sidebar__categories {
    margin-bottom: 25px;
    padding: 24px;
    background: #FDFBF4;
    /* border: 1px solid #e5e8e3; */
    border-radius: 10px;
}

.yogaevent-sidebar__title {
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #CA7B6E;
    font-size: 21px;
    line-height: 1.4;
}

.yogaevent-sidebar__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.yogaevent-sidebar__list li {
    margin: 0;
    padding: 0;
    /* border-bottom: 1px solid #e5e8e3; */
}

.yogaevent-sidebar__list li:last-child {
    border-bottom: 0;
}

.yogaevent-sidebar__list a {
    display: block;
    padding: 6px 0;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.yogaevent-sidebar__list a:hover,
.yogaevent-sidebar__list .current-cat > a {
    color: #CA7B6E;
}

/* ========================================
   Sidebar : widgets
======================================== */

.yogaevent-sidebar__widgets {
    min-width: 0;
}

.yogaevent-sidebar__widgets .widget {
    margin-bottom: 25px;
}

.yogaevent-sidebar__widgets img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ========================================
   Sidebar : slider (sans boucle infinie)
======================================== */

/* Conteneur du slider */
.yogaevent-sidebar-slider.is-slider {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Piste de défilement */
.yogaevent-sidebar-slider.is-slider .yogaevent-slider__track {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: none;
    gap: 0;
    margin: 0;
    padding: 0;
    transition: transform 0.4s ease;
    will-change: transform;
}

/* Chaque slide */
.yogaevent-sidebar-slider.is-slider .yogaevent-slider__slide {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Images au format 1:1 */
.yogaevent-sidebar-slider.is-slider .yogaevent-slider__slide img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    margin: 0;
}

/* Éviter les débordements des widgets */
.yogaevent-sidebar-slider.is-slider .yogaevent-slider__slide > * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Points de navigation */
.yogaevent-slider__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin: 4px 0 0;
    padding: 8px 0;
}

/* Point inactif */
.yogaevent-slider__dot {
    display: block;
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: #D8D8D2;
    cursor: pointer;
    transition: background-color 0.2s ease,
                transform 0.2s ease;
}

/* Point actif */
.yogaevent-slider__dot.is-active {
    background: #CA7B6E;
    transform: scale(1.35);
}

/* Accessibilité clavier */
.yogaevent-slider__dot:focus-visible {
    outline: 2px solid #496C59;
    outline-offset: 4px;
}

/* ========================================
   Responsive : tablette
======================================== */

@media (max-width: 1024px) {
    .yogaevent-single {
        padding: 40px 20px 55px;
    }

    .yogaevent-single__layout {
        grid-template-columns: minmax(0, 1fr) 240px;
        gap: 25px;
    }

    .yogaevent-sidebar__categories {
        padding: 20px;
    }

    .yogaevent-sidebar__title {
        font-size: 19px;
    }

    .yogaevent-sidebar-slider.is-slider .yogaevent-slider__slide img {
        border-radius: 8px;
    }
}

/* ========================================
   Responsive : mobile
======================================== */

@media (max-width: 767px) {
    .yogaevent-single {
        padding: 30px 16px 45px;
    }

    .yogaevent-single__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 35px;
    }

    .yogaevent-article__navigation {
        flex-direction: column;
    }

    .yogaevent-article__content {
        font-size: 16px;
    }

    .yogaevent-sidebar__categories {
        padding: 20px;
    }

    /* Slider : taille limitée quand la sidebar passe sous l'article */
    .yogaevent-sidebar-slider.is-slider {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .yogaevent-slider__dots {
        margin-top: 10px;
    }
}

/* ========================================
   Accessibilité
======================================== */

@media (prefers-reduced-motion: reduce) {
    .yogaevent-sidebar-slider.is-slider .yogaevent-slider__track {
        will-change: auto;
        transition: none;
    }

    .yogaevent-slider__dot {
        transition: none;
    }

    .yogaevent-sidebar__list a {
        transition: none;
    }
}