/* =============================================
   ARTICLE CONTENT — STYLING PREMIUM
   Cible .page-wraper (template page.php parent)
   et .wpo-blog-content (template single.php child)
   ============================================= */

/* ---- Layout global ---- */
.page-wrap.section-padding {
    padding: 40px 0 60px !important;
    background: var(--gray-50, #fafafa);
}

.page-wrap .container.right-sidebar {
    max-width: 820px !important;
    margin: 0 auto;
}

.page-wrap .col-md-8 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

.page-wrap .col-lg-4 {
    display: none !important;
}

/* Conteneur contenu : les deux templates */
.page-wraper.clearfix,
.wpo-blog-content {
    max-width: 780px;
    margin: 0 auto;
}

/* ---- Intro premier paragraphe (après le hero) ---- */
.page-wraper.clearfix > .article-hero + p,
.page-wraper.clearfix > p:first-child,
.wpo-blog-content > .article-hero + p,
.wpo-blog-content > p:first-child {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--primary-800, #102a43);
    border-left: 4px solid var(--accent, #c9a84c);
    padding-left: 20px;
    margin-bottom: 20px;
    line-height: 1.75;
}

/* ---- Paragraphes ---- */
.page-wraper.clearfix p,
.wpo-blog-content p {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-600, #52525b);
    margin-bottom: 20px;
}

.page-wraper.clearfix a,
.wpo-blog-content a {
    color: var(--accent-dark, #a8872e);
    text-decoration: underline;
    text-decoration-color: rgba(201,168,76,0.4);
    text-underline-offset: 3px;
    transition: 250ms ease;
}

.page-wraper.clearfix a:hover,
.wpo-blog-content a:hover {
    color: var(--accent, #c9a84c);
    text-decoration-color: var(--accent, #c9a84c);
}

/* ---- Strong dans le texte ---- */
.page-wraper.clearfix p strong,
.wpo-blog-content p strong {
    color: var(--primary-800, #102a43);
    font-weight: 600;
}

/* ---- H2 — Sections principales ---- */
.page-wraper.clearfix h2,
.wpo-blog-content h2 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 700;
    color: var(--primary-900, #0a1929);
    margin: 56px 0 24px;
    padding: 20px 0 16px;
    border-top: 1px solid var(--gray-200, #e4e4e7);
    position: relative;
    line-height: 1.3;
}

.page-wraper.clearfix h2::before,
.wpo-blog-content h2::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent, #c9a84c);
}

/* ---- H3 — Sous-sections ---- */
.page-wraper.clearfix h3,
.wpo-blog-content h3 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    font-weight: 700;
    color: var(--primary-800, #102a43);
    margin: 40px 0 16px;
    padding: 16px 20px;
    border-left: 3px solid var(--accent, #c9a84c);
    background: #fff;
    border-radius: 0 var(--radius, 10px) var(--radius, 10px) 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    line-height: 1.4;
}
/* ---- Images ---- */
.page-wraper.clearfix img,
.wpo-blog-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg, 20px);
    margin: 36px auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-200, #e4e4e7);
}

/* ---- Listes UL ---- */
.page-wraper.clearfix ul,
.wpo-blog-content ul {
    list-style: none;
    padding: 0;
    margin: 28px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.page-wraper.clearfix ul li,
.wpo-blog-content ul li {
    background: #fff;
    border: 1px solid var(--gray-200, #e4e4e7);
    border-radius: 14px;
    padding: 16px 20px 16px 48px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray-600, #52525b);
    transition: 250ms ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.page-wraper.clearfix ul li:hover,
.wpo-blog-content ul li:hover {
    border-color: var(--accent, #c9a84c);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transform: translateX(4px);
}

.page-wraper.clearfix ul li::before,
.wpo-blog-content ul li::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent, #c9a84c);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.2);
}

.page-wraper.clearfix ul li strong,
.wpo-blog-content ul li strong {
    color: var(--primary-900, #0a1929);
    font-weight: 600;
}
/* ---- Callout / Table conseil ---- */
.page-wraper.clearfix table,
.wpo-blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    border: none;
}

.page-wraper.clearfix table td,
.wpo-blog-content table td {
    background: linear-gradient(135deg, #f0f7ff 0%, #f8fbff 100%);
    border-left: 4px solid var(--accent, #c9a84c);
    border-radius: 14px;
    padding: 24px 28px;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--gray-700, #3f3f46);
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.page-wraper.clearfix table td p:last-child,
.wpo-blog-content table td p:last-child {
    margin-bottom: 0;
}

.page-wraper.clearfix table td strong,
.wpo-blog-content table td strong {
    color: var(--primary-900, #0a1929);
    font-size: 1rem;
}

/* ---- CTA bandeau ---- */
.page-wraper.clearfix h2:nth-of-type(3)::after,
.wpo-blog-content h2:nth-of-type(3)::after {
    content: '\260E  Besoin d\2019un professionnel ? Appelez le 01 84 60 26 57';
    display: block;
    margin-top: 20px;
    background: var(--primary-900, #0a1929);
    color: #fff;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 18px 24px;
    border-radius: 14px;
    text-align: center;
    letter-spacing: 0.02em;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .page-wrap.section-padding {
        padding: 20px 0 40px !important;
    }

    .page-wrap .container.right-sidebar {
        padding: 0 16px;
    }

    .page-wraper.clearfix h2,
    .wpo-blog-content h2 {
        font-size: 1.4rem;
        margin: 40px 0 18px;
    }

    .page-wraper.clearfix h3,
    .wpo-blog-content h3 {
        font-size: 1.1rem;
        margin: 32px 0 12px;
    }

    .page-wraper.clearfix img,
    .wpo-blog-content img {
        border-radius: 14px;
        margin: 24px auto;
    }

    .page-wraper.clearfix ul li,
    .wpo-blog-content ul li {
        padding: 14px 16px 14px 42px;
    }

    .page-wraper.clearfix ul li::before,
    .wpo-blog-content ul li::before {
        left: 16px;
        top: 18px;
    }

    .page-wraper.clearfix table td,
    .wpo-blog-content table td {
        padding: 18px 20px;
    }

    .page-wraper.clearfix > p:first-child,
    .wpo-blog-content > p:first-child {
        font-size: 1.05rem;
        padding-left: 16px;
    }
}

@media (max-width: 480px) {
    .page-wraper.clearfix h2,
    .wpo-blog-content h2 {
        font-size: 1.25rem;
    }

    .page-wraper.clearfix h3,
    .wpo-blog-content h3 {
        font-size: 1.05rem;
        padding: 14px 16px;
    }

    .page-wraper.clearfix p,
    .wpo-blog-content p {
        font-size: 0.95rem;
    }

    .page-wraper.clearfix h2:nth-of-type(3)::after,
    .wpo-blog-content h2:nth-of-type(3)::after {
        font-size: 0.85rem;
        padding: 14px 16px;
    }
}
/* ---- Article Hero H1 ---- */
.page-wraper.clearfix .article-hero,
.wpo-blog-content .article-hero,
.article-hero {
    background: linear-gradient(135deg, #0a1929 0%, #102a43 100%) !important;
    padding: 48px 36px 40px !important;
    border-radius: 20px !important;
    margin-bottom: 40px !important;
    text-align: center !important;
}

.page-wraper.clearfix .article-hero-badge,
.article-hero-badge {
    display: inline-block !important;
    background: rgba(201,168,76,0.18) !important;
    color: #dfc177 !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    padding: 6px 16px !important;
    border-radius: 50px !important;
    margin-bottom: 16px !important;
}

.page-wraper.clearfix .article-hero-title,
.article-hero-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: clamp(1.6rem, 4vw, 2.4rem) !important;
    font-weight: 700 !important;
    color: #fff !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
}

@media (max-width: 768px) {
    .article-hero {
        padding: 36px 24px 32px;
        margin-bottom: 28px;
        border-radius: 14px;
    }

    .article-hero-title {
        font-size: 1.5rem;
    }
}