/* CONTENEUR PRINCIPAL */

.post {
    margin: 0 auto;
    width: 75%;
    padding: 0;
    background: transparent;
}

@media (max-width: 1024px) {
    .post {
        width: 85%;
    }
}

@media (max-width: 768px) {
    .post {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .post {
        width: 100%;
    }
}

/* BANNIÈRE : IMAGE + TITRE */
.post-banner {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 15rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 3rem;
    background-color: transparent;
}

/* Gradient linéaire overlay */
.post-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(271deg, #00516D 8%, #007D66A6 100%);
    z-index: 1;
}

.post-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 95%;
}

.post-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
}

@media (max-width: 1024px) {

    .post-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {

    .post-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .post-banner {
        margin-left: -100vw;
        margin-right: -100vw;
        width: 100vw;
    }

    .post-title {
        font-size: 1.75rem;
    }

    .post-banner-content {
        padding: 1.5rem;
    }
}


.post-info {
    margin-bottom: 2rem;
    padding: 1.5rem 0;
}

.post-info p {
    margin: 0.5rem 0;
    padding: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--lightTextCol, #73676f);
}

.post-date {
    font-weight: 500;
}

.post-categories a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}




.post-meta {
    font-size: 0.85rem;
}

/* CONTENU (Blocs ACF ou fallback) */
.post-entrytext {
    margin: 2rem 0;
    padding: 0;
    line-height: 1.7;
}

/* --- Blocs ACF --- */

.article-content-blocks {
    margin: 2rem 0;
}

.content-block {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
}

.content-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.block-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.block-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.block-content p {
    margin: 0 0 1rem 0;
}

.block-content p:last-child {
    margin-bottom: 0;
}

.block-content strong {
    font-weight: 700;
}

.block-content em {
    font-style: italic;
}

.block-content a {
    text-decoration: underline;
    transition: color 0.3s ease;
}


.block-content ul,
.block-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.block-content li {
    margin-bottom: 0.5rem;
}

.block-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
}

.block-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
}

.block-image {
    margin: 1.5rem 0;
    text-align: center;
    width: 40%;
}

.block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.16);
    transition: transform 0.3s ease;
}

.block-image img:hover {
    transform: scale(1.02);
}

/* PAGINATION */

.pagination {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 4rem;
    padding: 2rem 0;
    list-style: none;
}

.pagination-item {
    border-radius: 8px;
}

.pagination-item a {
    padding: 0.75rem 1rem;
    display: inline-block;
    transition: all 0.2s ease;
    text-decoration: none;
    font-weight: 500;
}

.pagination-item a:hover {
    background-color: #ececec !important;
    border-radius: 10px;
    color: #0DACDA;
}

.pagination-item.pg-active {
    background-color: #0DACDA !important;
}

.pagination-item.pg-active a {
    color: white;
}

.pagination-item.pg-active a:hover {
    background-color: #0000;
}

@media (max-width: 768px) {
    .pagination {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .pagination-item a {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 0.3rem;
        margin-top: 2rem;
        padding: 1.5rem 0;
    }

    .pagination-item a {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
    }
}


@media (max-width: 768px) {
    .post-info p {
        font-size: 0.9rem;
    }

    .block-content {
        font-size: 1rem;
    }

    .block-subtitle {
        font-size: 1.3rem;
    }

    .pagination {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pagination span:last-child {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .post {
        width: 100%;
        margin: 0;
    }

    .post-info {
        margin-bottom: 1.5rem;
        padding: 1rem 0;
    }

    .post-info p {
        font-size: 0.85rem;
    }

    .block-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .block-subtitle {
        font-size: 1.2rem;
    }

    .pagination {
        gap: 1rem;
        margin-top: 2rem;
        padding: 1.5rem 0;
    }

    .pagination a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}