/* =========================================
   TEMPLATE 2 — ÉDITORIAL
   Inspiré presse / magazine. Typographie forte,
   beaucoup de blanc, lignes fines, sobriété.
========================================= */

.ed {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header éditorial */
.ed-header {
    text-align: center;
    padding: 56px 0 32px;
    border-bottom: 1px solid #e0e0e0;
}

.ed-header__date {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 16px;
}

.ed-header__title {
    font-family: 'Ubuntu', sans-serif;
    font-size: 38px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.ed-header__location {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* Cover */
.ed-cover {
    margin: 32px 0 0;
    padding: 0;
    overflow: hidden;
}

.ed-cover img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 420px;
}

/* Body — 2 colonnes */
.ed-body {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 48px;
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 32px;
}

.ed-intro {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #eee;
}

.ed-intro p,
.ed-intro li {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

/* Masquer les paragraphes vides (uniquement <br>) générés par l'éditeur */
.ed-intro p:has(br:only-child) {
    display: none;
}

.ed-intro p:empty {
    display: none;
}

/* Réduction espace entre h3 du description et le texte qui suit */
.ed-intro h3 {
    margin-top: 40px;
    margin-bottom: 4px;
}

.ed-intro h3:first-child {
    margin-top: 0;
}

.ed-intro h3 + p br:only-child {
    display: none;
}

.ed-intro h3 + p {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Plus d'espace entre les blocs rouges et le titre h3 */
.ed-intro p:has(span[style*="color: rgb(220, 50, 35)"]) {
    margin-bottom: 8px;
}

.ed-text {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: #555;
    margin: 0 0 24px;
}

.ed-text-highlight {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    font-style: italic;
    margin: 0 0 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

/* Galerie 2 colonnes */
.ed-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0;
}

.ed-gallery__item {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.ed-gallery__item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s;
}

.ed-gallery__item:hover img {
    opacity: 0.9;
}

.ed-gallery__solo {
    margin: 24px 0;
    padding: 0;
    overflow: hidden;
}

.ed-gallery__solo img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

/* Aside */
.ed-aside {
    position: sticky;
    top: 80px;
    align-self: start;
    padding-left: 32px;
    border-left: 1px solid #e0e0e0;
}

.ed-aside__block {
    margin-bottom: 24px;
}

.ed-aside__label {
    font-family: 'Lato', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #aaa;
    margin: 0 0 6px;
}

.ed-aside__value {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #333;
    margin: 0;
    line-height: 1.5;
}

.ed-aside__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ed-aside__list li {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    color: #555;
    padding: 3px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ed-aside__list li:last-child {
    border-bottom: none;
}

.ed-aside__cta {
    display: block;
    text-align: center;
    padding: 10px 0;
    font-family: 'Ubuntu', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    transition: opacity 0.2s;
    margin-bottom: 10px;
}

.ed-aside__cta:hover {
    opacity: 0.85;
}

.ed-aside__link {
    display: block;
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    color: #999;
    text-decoration: none;
}

.ed-aside__link:hover {
    color: var(--primary-color);
}

/* Split — texte gauche + 2 images empilées à droite (style T3) */
.ed-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 0 0 40px;
}

.ed-split__text {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

.ed-split__text p {
    margin: 0 0 16px;
}

.ed-split__text p:last-child {
    margin-bottom: 0;
}

.ed-split__images {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: center;
}

.ed-split__images img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

/* Carrousel — 3 images visibles, défilement en boucle */
.ed-carousel {
    position: relative;
    padding-bottom: 40px;
}

.ed-carousel__viewport {
    overflow: hidden;
    width: 100%;
}

.ed-carousel__track {
    display: flex;
    gap: 12px;
    will-change: transform;
}

.ed-carousel__slide {
    flex: 0 0 calc((100% - 24px) / 3);
}

.ed-carousel__slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.ed-carousel__btn {
    position: absolute;
    top: calc(50% - 20px);
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.ed-carousel__btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.ed-carousel__btn--prev {
    left: 12px;
}

.ed-carousel__btn--next {
    right: 12px;
}

/* Map */
.ed-map {
    border-top: 1px solid #e0e0e0;
    padding-top: 32px;
    margin-bottom: 48px;
}

.ed-intro__extra {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

.ed-map iframe {
    display: block;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .ed-header__title {
        font-size: 26px;
    }

    .ed-body {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ed-aside {
        position: static;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #e0e0e0;
        padding-top: 24px;
    }

    .ed-split {
        grid-template-columns: 1fr;
    }

    .ed-split__images img {
        height: 240px;
    }

    .ed-carousel__slide img {
        height: 180px;
    }
}
