/* ===== Layout global ===== */
.agency-single {
    background: #eef2f5;
    padding: 32px 16px 60px;
}

.agency-single__container {
    max-width: 1280px;
    margin: 0 auto 50px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.agency-single__content,
.agency-single__sidebar {
    min-width: 0;
}

/* ===== Hero ===== */
/* ===== HERO H1 STYLE ===== */
.agency-hero-banner {
    background: #2f3f90;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    color: #fff;
}



.agency-hero-banner__title {
	color:#ffffff !important;
    margin: 0 0 15px !important;
    font-size: 34px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
}

.agency-hero-banner__meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-category,
.badge-date {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

/* Hover léger (optionnel) */
.badge-category:hover,
.badge-date:hover {
    background: rgba(255,255,255,0.25);
}
.agency-hero {
    margin-bottom: 22px;
}

.agency-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.agency-badge,
.agency-reading-time {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1;
    font-weight: 600;
}

.agency-badge {
    background: #2f3f90;
    color: #fff;
}

.agency-reading-time {
    background: #dfe7ff;
    color: #24356f;
}

.agency-hero__title {
    margin: 0 0 12px;
    font-size: 38px;
    line-height: 1.15;
    color: #1c2b5a;
}

.agency-hero__postmeta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #667085;
    font-size: 14px;
    margin-bottom: 18px;
}

.agency-hero__image {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
}

.agency-hero__image img {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== Carte article ===== */
.agency-article-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.05);
}

/* ===== Contenu article ===== */
.agency-article-content {
    color: #344054;
    font-size: 16px;
    line-height: 1.8;
}

.agency-article-content > *:first-child {
    margin-top: 0;
}

.agency-article-content h2,
.agency-article-content h3,
.agency-article-content h4 {
    color: #243b85;
    line-height: 1.25;
    scroll-margin-top: 120px;
}

.agency-article-content h2 {
    margin-top: 34px !important;
    margin-bottom: 12px !important;
    font-size: 31px !important;
}

.agency-article-content h3 {
    margin-top: 26px !important;
    margin-bottom: 10px !important;
    font-size: 24px !important;
}

.agency-article-content p,
.agency-article-content ul,
.agency-article-content ol,
.agency-article-content blockquote {
    margin-bottom: 18px !important;
}

.agency-article-content ul,
.agency-article-content ol {
    padding-left: 22px !important;
}

.agency-article-content li {
    margin-bottom: 8px !important;
}

.agency-article-content a {
    color: #1546d3 !important;
    text-decoration: none !important;
}

.agency-article-content a:hover {
    text-decoration: underline;
}

.agency-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.agency-article-content figure {
    margin: 26px 0;
}

.agency-article-content blockquote {
    margin: 24px 0;
    padding: 18px 20px;
    background: #f8faff;
    border-left: 4px solid #2f3f90;
    border-radius: 12px;
    color: #243b85;
}

.agency-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    overflow: hidden;
    border-radius: 12px;
    display: block;
    overflow-x: auto;
}

.agency-article-content table th,
.agency-article-content table td {
    border: 1px solid #e5e7eb;
    padding: 12px 14px;
    text-align: left;
}

.agency-article-content table th {
    background: #f9fafb;
    color: #1f2937;
}

/* ===== Sidebar ===== */
.agency-single__sidebar--sticky {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.agency-widget {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.05);
}

.agency-single__sidebar--sticky {
    position: sticky;
    top: 120px;
}
.agency-single__sidebar{
	height: 100% !important
}

/* .agency-widget--cta {
    background: linear-gradient(180deg, #f4f7ff 0%, #eef3ff 100%);
} */

.agency-widget__title {
    margin: 0 0 14px !important;
    color: #243b85 !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
	font-weight: 600 !important;
}

/* ===== Sommaire ===== */
.agency-toc {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.agency-toc__empty {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.agency-toc a {
    display: block;
    color: #344054;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.45;
    padding: 8px 10px;
    border-radius: 10px;
    transition: 0.2s ease;
}

.agency-toc a:hover,
.agency-toc a.is-active {
       background: #009fad;
    color: #ffffff !important;
}

.agency-toc .toc-h3 {
    padding-left: 22px;
    font-size: 13px;
    color: #667085;
}

/* ===== CTA inline ===== */
.agency-inline-cta {
    margin-top: 28px;
}

.agency-inline-cta__inner {
    background: linear-gradient(135deg, #12b9c7 0%, #1496d1 100%);
    color: #fff;
    border-radius: 22px;
    padding: 28px;
    display: grid;
    grid-template-columns: 1.6fr auto;
    gap: 20px;
    align-items: center;
    box-shadow: 0 14px 34px rgba(20, 150, 209, 0.24);
}

.agency-inline-cta__text h2 {
    margin: 0 0 10px !important;
    color: #fff !important;
    font-size: 28px !important;
}

.agency-inline-cta__text p {
    margin: 0;
    color: rgba(255,255,255,0.94);
}

/* ===== Boutons ===== */
.agency-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s ease;
}

.agency-btn--primary {
    background: #243b85 !important;
    color: #fff !important;
}

.agency-btn--primary:hover {
    background: #1d316f !important;
    color: #fff !important;
}

.agency-btn--dark {
    background: #243b85 !important;
    color: #fff !important;
    width: 100% !important;
}

.agency-btn--dark:hover {
    background: #009fad !important;
    color: #fff !important;
}

.agency-btn--secondary {
    background: #eaf0ff !important;
    color: #243b85 !important;
    width: 100% !important;
}

.agency-btn--secondary:hover {
    background: #dbe7ff !important;
    color: #243b85 !important;
}


.agency-share i {
    font-size: 18px;
}

/* ===== Services ===== */
.agency-service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.agency-service-list li + li {
    margin-top: 10px;
}

.agency-service-list a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f7f9fc;
    text-decoration: none;
    color: #344054;
    font-weight: 600;
}

.agency-service-list a:hover {
    background: #edf3ff;
    color: #1546d3;
}

/* ===== Partage ===== */
.agency-share {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.agency-share a {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #edf2ff;
    color: #243b85;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    text-transform: lowercase;
}

.agency-share a:hover {
    background: #dfe8ff;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .agency-single__container {
        grid-template-columns: 1fr 300px;
    }
}

@media (max-width: 991px) {
    .agency-single__container {
        grid-template-columns: 1fr;
    }

    .agency-widget--sticky {
        position: static;
        top: auto;
    }

    .agency-inline-cta__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
	    .agency-hero-banner {
        padding: 20px !important;
    }

    .agency-hero-banner__title {
        font-size: 24px !important;
    }
    .agency-single {
        padding: 20px 12px 40px !important;
    }

    .agency-hero__title {
        font-size: 28px !important;
    }

    .agency-article-card,
    .agency-widget {
        padding: 18px !important;
        border-radius: 14px !important;
    }

    .agency-article-content h2 {
        font-size: 24px !important;
    }

    .agency-article-content h3 {
        font-size: 20px !important;
    }

    .agency-inline-cta__text h2 {
        font-size: 22px !important;
    }
}