.contact-bg {
    background: #f6f7fb; /* ou ton gradient */
}


/* =========================================================
   ARTICLES / ACTUALITÉS — VERSION PROPRE
========================================================= */

/* ----- CONTENU GLOBAL ----- */
.article-content {
    background: #ffffff;
    color: #0f172a;
    font-size: 1.075rem;
    line-height: 1.9;
    letter-spacing: 0.005em;
}

/* ----- LIEN RETOUR ----- */
.article-back-wrapper {
    width: 100%;
    text-align: right;
    margin-bottom: 1.5rem;
}

.article-back-link {
    color: #2563EB;
    font-size: 1.375rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s ease;
}

.article-back-link:hover {
    color: #1E40AF;
}

/* =========================================================
   TITRE PRINCIPAL (H1 — TEMPLATE UNIQUEMENT)
========================================================= */
.article-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1e3f9d;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2.5rem; /* 50% de 3rem */
    }
}

/* =========================================================
   TITRES INTERNES (MARKDOWN)
========================================================= */
/* H2 — sections principales */
.article-content h2 {
    font-size: 1.9rem;
    font-weight: 700;
    margin: 5rem 0 2rem;
}

/* H3 — sous-sections */
.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 5rem 0 2rem;
}


.article-content h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 5rem 0 2rem;
}

.article-content h5 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 5rem 0 2rem;
}

/* =========================================================
   TEXTE
========================================================= */
.article-content p {
    margin: 1.35rem 0;
    text-align: justify;
    hyphens: auto;
}

/* =========================================================
   LISTES
========================================================= */
.article-content ul,
.article-content ol {
    margin: 1rem 0;
    padding: 0;
    list-style: none; /* on neutralise tout */
}

/* Base LI */
.article-content li {
    position: relative;
    padding-left: 80px;        /* 40 + 40 */
    margin: .25rem 0;          /* espacement vertical réduit */

    /* TEXTE — EXACTEMENT TES VALEURS */
    font-size: 1.125rem;
    line-height: 1.625;
    color: #475569;
    font-weight: 400;
}

/* BULLET UL — GARANTI */
.article-content ul > li::before {
    content: "•";
    position: absolute;
    left: 10px;                /* bullet à 40px du bord */
    top: 0;
    line-height: 1.625;
    font-size: 1.125rem;
    color: #475569;
}

/* NUMÉROS OL — OPTIONNEL MAIS COHÉRENT */
.article-content ol {
    counter-reset: n1m_list;
}

.article-content ol > li::before {
    counter-increment: n1m_list;
    content: counter(n1m_list) ".";
    position: absolute;
    left: 10px;
    top: 0;
    line-height: 1.625;
    font-size: 1.125rem;
    color: #475569;
}

/* Sécurité si un <p> traîne dans <li> */
.article-content li p {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.625;
    color: #475569;
}

/* =========================================================
   CITATIONS
========================================================= */
.article-content blockquote {
    margin: 1.75rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid #dbeafe;
    background: #f8fafc;
    color: #334155;
    border-radius: .5rem;
}

/* =========================================================
   IMAGES
========================================================= */
.article-content img {
    display: block;
    height: auto;
    margin: 1.25rem auto;
    max-width: 100%; /* mobile par défaut */
    padding-top: 20px;
}

/* Desktop */
@media (min-width: 1024px) {
    .article-content img {
        max-width: 60%;
    }
}

/* Dans un encadré : même règle */
@media (min-width: 1024px) {
    .article-box img {
        max-width: 60%;
    }
}

/* =========================================================
   LÉGENDE D’ARTICLE — FINAL
========================================================= */

.article-content p.article-caption {
    margin: .6rem auto 5.4rem;
    max-width: 60vw;

    text-align: center;      /* override justify */
    font-style: italic;

    font-size: .95rem;
    line-height: 1.45;
    color: #475569;
}

/* Mobile */
@media (max-width: 1023px) {
    .article-content p.article-caption {
        max-width: 100%;
    }
}

/* =========================================================
   encadré
========================================================= */

.article-box{
    margin: 5rem auto;
    padding: 1.6rem 1.75rem;
    max-width: 900px;
    width: calc(100% - 2rem);

    background: #f6f7fb;
    border: 1px solid hsl(214.3 31.8% 91.4%);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(37,99,235,.08);
}

.article-box h3 {
    margin-top: 0;        /* supprime l’espace du haut */
    margin-bottom: 1.25rem; /* espace raisonnable avant le contenu */
    padding-left: 0;
    margin-left: 0;
    text-align: center;
}

/* =========================================================
   DIVERS
========================================================= */
.article-content hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 2.5rem 0;
}

.article-content a {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content code {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: .15rem .4rem;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .9em;
}

/* =========================================================
   ARTICLE INFO
========================================================= */

/* =========================================================
   ARTICLE INFO — VERSION PREMIUM
========================================================= */

.article-info {
    background: #f6f7fb;
    padding: 1.4rem 1.75rem 1.2rem;
    margin: -2.5rem auto 2.5rem;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15,23,42,.06);
    max-width: 1100px;
}

.article-info-bar {
    display: flex;
    align-items: center;
    gap: .85rem;
    font-size: .95rem;
    color: #475569;
    flex-wrap: wrap;
}

.article-info-back {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}

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

.article-info-sep {
    width: 1px;
    height: 14px;
    background: #cbd5e1;
}

.article-info-meta {
    white-space: nowrap;
}

.article-info-share {
    margin-left: auto;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .45rem 1rem;
    font-size: .9rem;
    cursor: pointer;
}

.article-info-share:hover {
    background: #1e40af;
}

/* TAGS */
.article-info-tags {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: .9rem;
    flex-wrap: wrap;
}

.article-info-tag {
    background: #fb923c;
    color: #fff;
    font-size: .75rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    white-space: nowrap;
}

