/* ==================================================
   SINGLE ARTICLE
================================================== */

.lpr-single {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.lpr-article {
    width: 100%;
}

/* Titre */

.lpr-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-top: 2rem;
    color: var(--lpr-blue);
}

/* Métadonnées */

.lpr-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;

    font-size: 0.95rem;
    color: #666;

    margin-bottom: 1.5rem;
}

.lpr-separator {
    color: #999;
}

/* Partage */

.lpr-share {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;

    margin-bottom: 2rem;
}

.lpr-share a {
    color: var(--lpr-blue);
    text-decoration: none;
    font-weight: 600;
}

.lpr-share a:hover {
    text-decoration: underline;
}

/* Chapô */

.lpr-chapo {
    font-size: 1.3rem;
    line-height: 1.8;
    font-weight: 600;
    padding-top: 2rem;
    padding-bottom: 2rem;
    /*font-style: italic;*/
}

/* Contenu */

.lpr-content {
    font-size: 1.125rem;
    line-height: 1.9;
}

.lpr-content p {
    margin-bottom: 1.5rem;
}

.lpr-content h2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    color: var(--lpr-blue);
    font-weight: 700;
}

.lpr-content h3,
.lpr-content h4 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    color: var(--lpr-blue);
}

/*Vidéo Desktop*/
.wp-block-embed,
.wp-block-video {
    width: 75%;
    margin: 2rem auto;
}

.wp-block-embed iframe,
.wp-block-video video {
    width: 100%;
}

/*Vidéo Mobile*/
@media (max-width: 768px) {

    .wp-block-embed,
    .wp-block-video {
        width: 100%;
    }
}


/* Images */
.lpr-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 3rem auto;
}

.wp-block-image {
    margin: 3rem auto;
    text-align: center;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ==================================================
   À découvrir aussi
================================================== */

.lpr-related {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid #e5e5e5;
}

.lpr-related-title {
    margin-bottom: 2rem;
    color: var(--lpr-blue);
    font-size: 1.75rem;
    font-weight: 700;
}

.lpr-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.lpr-related-card {
    border-radius: var(--lpr-radius);
}

.lpr-related-card:focus-within {
    outline: 3px solid var(--lpr-blue);
    outline-offset: 4px;
}

.lpr-related-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.lpr-related-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 1rem;
}

.lpr-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lpr-related-category {
    display: inline-block;
    margin-bottom: 0.5rem;

    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;

    color: var(--lpr-blue);
}

.lpr-related-post-title {
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 700;
    margin: 0;
}

.lpr-related-link:hover .lpr-related-post-title,
.lpr-related-link:focus-visible .lpr-related-post-title {
    text-decoration: underline;
}

/* Tablette */

@media (min-width: 768px) {

    .lpr-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* Desktop */

@media (min-width: 1024px) {

    .lpr-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

/* Navigation */

.lpr-post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 2rem;

    margin-top: 4rem;
    padding-top: 2rem;

    border-top: 1px solid #ddd;
}

.lpr-post-navigation a {
    text-decoration: none;
    color: var(--lpr-blue);
    font-weight: 600;
}

/* Mobile */

@media (max-width: 768px) {

    .lpr-title {
        font-size: 2rem;
    }

    .lpr-related-grid {
        grid-template-columns: 1fr;
    }

    .lpr-post-navigation {
        flex-direction: column;
    }
}

