/* Template single-article — appliqué automatiquement à tous les articles */

/* Bandeau dégradé pleine largeur, tout en haut de la page (sous la navbar
   qui flotte par-dessus en position fixed). */
.lcf-article-header-gradient {
    width: 100%;
    height: 180px;
    background: linear-gradient(180deg, #10B2AA 0%, rgba(16, 178, 170, 0) 100%);
}

.lcf-article-media {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 55%;
}

.lcf-article-cover {
    width: 100%;
    /*height: 320px;*/
    overflow: hidden;
    border-radius: 4px;
}

.lcf-article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Surcharge le max-height: 500px du thème parent (.post .wp-post-image)
   pour laisser l'image de couverture occuper toute la hauteur du conteneur. */
.lcf-article-cover img.wp-post-image {
    max-height: none;
}

.lcf-article-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.lcf-article-gallery-item {
    width: 100%;
    overflow: hidden;
    border-radius: 2px;
}

.lcf-article-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/* Visionneuse (lightbox) de la galerie */
.lcf-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lcf-lightbox.is-open {
    display: flex;
}

.lcf-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 2px;
}

button.lcf-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff !important;
    font-size: 2.5rem;
    line-height: 1;
    background-color: transparent !important;
    border: none !important;
    cursor: pointer;
}

button.lcf-lightbox-prev,
button.lcf-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff !important;
    font-size: 2.5rem;
    background-color: transparent !important;
    border: none !important;
    cursor: pointer;
    padding: 8px 16px;
}

.lcf-lightbox-prev {
    left: 10px;
}

.lcf-lightbox-next {
    right: 10px;
}

.lcf-article-body {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 90%;
    margin: 0 auto;
    padding-top: 6%;
}

.lcf-article-main {
    width: 55%;
}

.lcf-article-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 24px;
    text-align: start;
    font-family: inter;
}

.lcf-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
    justify-content: start;
}

.lcf-article-meta-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
    padding: 10px 16px;
    border-radius: 4px;
    background: #61BCD926;
    text-align: center;
}

.lcf-article-meta-label {
    font-weight: 600;
    font-size: 1rem;
    color: #1f2d3d;
}

.lcf-article-meta-value {
    color: #3f7ea6;
    font-size: 0.95rem;
}

.lcf-article-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

.lcf-article-content p {
    margin: 0 0 1.2em;
}

.lcf-article-back {
    margin-top: 40px;
}

.lcf-article-back a {
    color: #3f7ea6;
    text-decoration: none;
    font-size: 0.95rem;
}

.lcf-article-back a:hover {
    text-decoration: underline;
}

/* Tablette */
@media (max-width: 1024px) {
    .lcf-article-body {
        flex-direction: column;
        max-width: 100%;
        padding: 20px 20px 48px;
    }

    .lcf-article-media {
        flex: none;
        width: 100%;
    }

    .lcf-article-cover {
        height: 320px;
    }

    .lcf-article-gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .lcf-article-gallery-item {
        height: 130px;
    }

    .lcf-article-title {
        font-size: 2.25rem;
        margin-bottom: 20px;
    }

    .lcf-article-meta-box {
        min-width: 150px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .lcf-article-cover {
        height: 220px;
    }

    .lcf-article-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .lcf-article-gallery-item {
        height: 90px;
    }

    .lcf-lightbox {
        padding: 16px;
    }

    .lcf-lightbox-close {
        top: 10px;
        right: 14px;
        font-size: 2rem;
    }

    .lcf-lightbox-prev,
    .lcf-lightbox-next {
        font-size: 1.8rem;
        padding: 4px 8px;
    }

    .lcf-article-body {
        gap: 24px;
        padding: 16px 16px 40px;
    }

    .lcf-article-title {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }

    .lcf-article-meta {
        gap: 10px;
        margin-bottom: 20px;
    }

    .lcf-article-meta-box {
        min-width: 130px;
        padding: 8px 12px;
    }

    .lcf-article-content {
        font-size: 0.95rem;
    }

    .lcf-article-back {
        margin-top: 28px;
    }
}
