/* ================================================================
   ACTUALITÉS — CPT styles
   À ajouter dans css/style.css ou Apparence → CSS additionnel
   ================================================================ */

/* ── Pagination WP ── */
.page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.page-numbers li a,
.page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid #e3e6f0;
    background: #fff;
    color: var(--navy);
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    transition: .2s;
}
.page-numbers li a:hover {
    border-color: var(--gold);
    color: var(--navy);
    background: rgba(244,178,35,.08);
}
.page-numbers li .current {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}
.page-numbers li .dots {
    border: none;
    background: transparent;
    color: var(--muted);
}

/* ── Contenu de l'article (generated by Gutenberg / Classic Editor) ── */
.aid-article-content {
    font-size: 1.05rem;
    color: #3a4163;
    line-height: 1.8;
}
.aid-article-content p {
    margin: 0 0 20px;
}
.aid-article-content h2 {
    font-size: 1.7rem;
    color: var(--navy);
    margin: 40px 0 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}
.aid-article-content h3 {
    font-size: 1.3rem;
    color: var(--navy);
    margin: 30px 0 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}
.aid-article-content h4 {
    font-size: 1.1rem;
    color: var(--navy);
    margin: 24px 0 10px;
}
.aid-article-content ul,
.aid-article-content ol {
    padding-left: 24px;
    margin: 0 0 20px;
}
.aid-article-content ul li,
.aid-article-content ol li {
    margin-bottom: 8px;
}
.aid-article-content blockquote {
    border-left: 4px solid var(--gold);
    padding: 10px 22px;
    margin: 24px 0;
    background: var(--bg);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--navy);
    font-size: 1.05rem;
}
.aid-article-content a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(244,178,35,.4);
    transition: .2s;
}
.aid-article-content a:hover {
    color: var(--navy);
}
.aid-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 20px 0;
}
.aid-article-content figure {
    margin: 24px 0;
}
.aid-article-content figcaption {
    text-align: center;
    font-size: .82rem;
    color: var(--muted);
    margin-top: 8px;
    font-style: italic;
}
.aid-article-content .wp-block-image {
    margin: 24px 0;
}
.aid-article-content .wp-block-quote {
    border-left: 4px solid var(--gold);
    padding: 10px 22px;
    margin: 24px 0;
    background: var(--bg);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--navy);
}
.aid-article-content strong {
    color: var(--navy);
    font-weight: 700;
}
.aid-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: .95rem;
}
.aid-article-content table th {
    background: var(--navy);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}
.aid-article-content table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eef0f7;
    color: #3a4163;
}
.aid-article-content table tr:nth-child(even) td {
    background: var(--bg);
}

/* ── Newsletter dans le wrapper dark ── */
.newsletter-band .newsletter-wrap .wpcf7-form p {
    margin: 0;
    padding: 0;
    display: contents;
}
.newsletter-band .newsletter-wrap .wpcf7-form br {
    display: none;
}
.newsletter-band .newsletter-wrap .wpcf7-form {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
    flex-wrap: wrap;
    position: relative;
}
.newsletter-band .newsletter-wrap .wpcf7-form-control-wrap {
    flex: 1;
    min-width: 220px;
    display: block;
}
.newsletter-band .newsletter-wrap input[type="email"] {
    width: 100%;
    flex: 1;
    min-width: 220px;
    padding: 16px 22px;
    border-radius: 50px;
    border: none;
    font-size: .95rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    background: rgba(255,255,255,.95);
    color: var(--text);
    box-sizing: border-box;
}
.newsletter-band .newsletter-wrap input[type="email"]:focus {
    box-shadow: 0 0 0 3px rgba(244,178,35,.4);
}
.newsletter-band .newsletter-wrap input[type="submit"] {
    white-space: nowrap;
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: .9rem;
    cursor: pointer;
    transition: .25s;
    font-family: 'Poppins', sans-serif;
    flex-shrink: 0;
}
.newsletter-band .newsletter-wrap input[type="submit"]:hover {
    background: #fff;
    color: var(--navy);
    transform: translateY(-2px);
}
.newsletter-band .newsletter-wrap .wpcf7-response-output {
    width: 100%;
    margin: 10px 0 0;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: .85rem;
    border: none !important;
    text-align: center;
}
.newsletter-band .newsletter-wrap .wpcf7-form.sent .wpcf7-response-output {
    background: rgba(255,255,255,.15);
    color: #fff;
    font-weight: 600;
}
@media (max-width: 520px) {
    .newsletter-band .newsletter-wrap .wpcf7-form {
        flex-direction: column;
    }
    .newsletter-band .newsletter-wrap .wpcf7-form-control-wrap,
    .newsletter-band .newsletter-wrap input[type="email"],
    .newsletter-band .newsletter-wrap input[type="submit"] {
        width: 100%;
        min-width: 100%;
    }
}

/* ── Filtre catégories ── */
.filters a {
    transition: .2s;
    cursor: pointer;
}
.filters a:hover {
    background: var(--navy) !important;
    color: #fff !important;
    border-color: var(--navy) !important;
}

/* ── news-side-card cliquable ── */
.news-side-card {
    cursor: pointer;
    transition: .2s;
}
.news-side-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* ── Related card ── */
.related-card {
    display: block;
    text-decoration: none;
    color: inherit;
}
