/* OAcom Template - Enjeux Article Styles */
/* Single-column blog article layout */

/* =========================================================
   Page Texture (background)
   ========================================================= */
.page-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

.texture-image {
    width: 100%;
    height: 100%;
    background-image: url('/images/maj/413eacfbb03b509dd7e3fa2a0b5030242f610297.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.texture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-beige);
    mix-blend-mode: soft-light;
    opacity: 0.6;
}

/* =========================================================
   Article wrapper
   ========================================================= */
.article.enjeux {
    overflow-x: hidden;
    max-width: 780px;
    margin: 0 auto;
    padding: 0h 2.5rem 4rem;
}

/* =========================================================
   Header
   ========================================================= */
.enjeux-header {
    margin-bottom: 2.5rem;
}

.enjeux-header__surtitle {
    margin-bottom: 0.75rem;
}

.enjeux-header__surtitle h1 {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--color-dark);
    opacity: 0.5;
    font-weight: 400;
    overflow-wrap: break-word;
    word-wrap: break-word;
    margin: 0;
}

.enjeux-header__title {
    margin-bottom: 1.25rem !important;
}

.layout-perspectives h1.policeprincipale.enjeux-header__title,
h1.policeprincipale.enjeux-header__title {
    font-size: 4rem !important;
    line-height: 1.05 !important;
}

.enjeux-header__meta {
    font-size: 0.85rem;
    color: var(--color-dark);
    opacity: 0.6;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.enjeux-header__soustitre {
    font-size: 1.25rem;
    margin-top: 0.75rem;
    color: var(--color-dark);
    opacity: 0.8;
}

.enjeux-header__category {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.enjeux-header__category a {
    color: var(--color-primary, inherit);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.enjeux-header__category a:hover {
    opacity: 0.7;
}

.enjeux-header__date {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-dark);
    opacity: 0.6;
}

.enjeux-header__image {
    position: relative;
    margin: 2rem auto 3rem;
    max-width: 1200px;
    height: clamp(260px, 38vh, 440px);
    overflow: hidden;
    border-radius: 16px;
}

.enjeux-header__image img {
    display: block;
    width: 100%;
    height: 140%;
    object-fit: cover;
    will-change: transform;
    transform: translateY(var(--enjeux-parallax, -20%));
}

.enjeux-header__image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* =========================================================
   Content body
   ========================================================= */
.enjeux-content {
    margin-bottom: 3rem;
}

.enjeux-content__body {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-dark);
}

.enjeux-content__body h2 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin: 2.5rem 0 1rem;
}

.enjeux-content__body h3 {
    font-size: 1.35rem;
    line-height: 1.3;
    margin: 2rem 0 0.75rem;
}

.enjeux-content__body p {
    margin-bottom: 1.25rem;
}

.enjeux-content__body p:last-child {
    margin-bottom: 0;
}

.enjeux-content__body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.enjeux-content__body ul,
.enjeux-content__body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

/* =========================================================
   Related articles (sidebar content, now below)
   ========================================================= */
.enjeux-related {
    margin-bottom: 2rem;
}

.enjeux-related__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.article-banniere {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    padding: 4rem 1.5rem;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    transition: transform 0.3s ease;
}

.article-banniere:hover {
    transform: scale(1.02);
}

.article-banniere::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.55));
    border-radius: 12px;
}

.article-banniere h3 {
    position: relative;
    z-index: 1;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    margin-bottom: 1rem;
    font-size: 1.6rem !important;
    line-height: 1.15 !important;
}

.article-banniere .btn {
    position: relative;
    z-index: 1;
}

.article-banniere--tall {
    min-height: 320px;
}

/* =========================================================
   CTA section
   ========================================================= */
.enjeux-cta {
    text-align: center;
    margin-top: 1rem;
}

/* =========================================================
   Tablet (max-width: 992px)
   ========================================================= */
@media (max-width: 992px) {
    .article.enjeux {
        padding-top: 14vh;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .layout-perspectives h1.policeprincipale.enjeux-header__title,
    h1.policeprincipale.enjeux-header__title {
        font-size: 3.2rem !important;
    }
}

/* =========================================================
   Mobile (max-width: 768px)
   ========================================================= */
@media (max-width: 768px) {
    .article.enjeux {
        padding: 10vh 1.25rem 2.5rem;
        max-width: 100%;
    }

    .layout-perspectives h1.policeprincipale.enjeux-header__title,
    h1.policeprincipale.enjeux-header__title {
        font-size: 2.2rem !important;
        line-height: 1.1 !important;
    }

    .enjeux-header {
        margin-bottom: 1.75rem;
    }

    .enjeux-content__body {
        padding: 1.5rem;
        font-size: 1rem;
        line-height: 1.65;
    }

    .enjeux-content__body h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    .enjeux-content__body h3 {
        font-size: 1.2rem;
    }

    .enjeux-related__grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .article-banniere {
        padding: 3rem 1.25rem;
        min-height: 220px;
    }

    .article-banniere--tall {
        min-height: 240px;
    }

    .article-banniere h3 {
        font-size: 1.4rem !important;
    }
}

/* =========================================================
   Mobile Small (max-width: 480px)
   ========================================================= */
@media (max-width: 480px) {
    .article.enjeux {
        padding: 8vh 1rem 2rem;
    }

    .layout-perspectives h1.policeprincipale.enjeux-header__title,
    h1.policeprincipale.enjeux-header__title {
        font-size: 1.9rem !important;
    }

    .enjeux-content__body {
        padding: 1.25rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .article-banniere {
        padding: 2.5rem 1rem;
        min-height: 200px;
    }

    .article-banniere h3 {
        font-size: 1.25rem !important;
    }
}
