.methode-hero {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}
.methode-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 40%, rgba(99,102,241,.13) 0%, transparent 70%);
    pointer-events: none;
}
.methode-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6366f1;
    background: rgba(99,102,241,.1);
    border: 1px solid rgba(99,102,241,.25);
    border-radius: 50px;
    padding: .35rem .9rem;
    margin-bottom: 1.25rem;
}
.methode-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
}
.methode-hero h1 span {
    color: #6366f1;
}
.methode-hero-sub {
    font-size: 1.1rem;
    opacity: .75;
    max-width: 540px;
}
/* ── Timeline ── */
.timeline-wrap {
    position: relative;
    padding: 0;
}
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, rgba(99,102,241,.6), rgba(99,102,241,.05));
    transform: translateX(-50%);
}
@media (max-width: 767px) {
    .timeline-line { left: 21px; }
}
.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3.5rem;
    position: relative;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s ease, transform .55s ease;
}
.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}
@media (max-width: 767px) {
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
        padding-left: 0;
    }
}
.timeline-num {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #6366f1;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 0 0 6px rgba(99,102,241,.15);
}
@media (max-width: 767px) {
    .timeline-num {
        position: relative;
        left: auto;
        transform: none;
        width: 42px;
        height: 42px;
        font-size: .9rem;
        flex-shrink: 0;
        margin-top: .2rem;
    }
}
.timeline-card {
    width: calc(50% - 52px);
    border-radius: 1rem;
    padding: 1.75rem;
    border: 1px solid rgba(99,102,241,.15);
    transition: border-color .3s, transform .3s, box-shadow .3s;
}
.timeline-card:hover {
    border-color: rgba(99,102,241,.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(99,102,241,.1);
}
@media (max-width: 767px) {
    .timeline-card {
        width: calc(100% - 54px);
        padding: 1.25rem;
    }
}

[data-bs-theme="dark"] .timeline-card { background: rgba(255,255,255,.04); }
[data-bs-theme="light"] .timeline-card { background: #fff; box-shadow: 0 2px 16px rgba(0,0,0,.06); }
.timeline-card-icon {
    width: 44px;
    height: 44px;
    border-radius: .75rem;
    background: rgba(99,102,241,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: #6366f1;
}
.timeline-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .5rem;
}
.timeline-card p {
    font-size: .9rem;
    opacity: .75;
    margin: 0;
    line-height: 1.6;
}
.timeline-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: 1rem;
}
.timeline-tag {
    font-size: .72rem;
    font-weight: 600;
    padding: .2rem .6rem;
    border-radius: 50px;
    background: rgba(99,102,241,.1);
    color: #6366f1;
    border: 1px solid rgba(99,102,241,.2);
}

/* ── Engagements ── */
.engage-card-h {
    display: flex;
    align-items: center;
    gap: 2rem;
    border-radius: 1rem;
    padding: 1.75rem 2rem;
    border: 1px solid rgba(99,102,241,.12);
    transition: border-color .3s, transform .3s, box-shadow .3s;
}
.engage-card-h:hover {
    border-color: rgba(99,102,241,.4);
    transform: translateX(6px);
    box-shadow: 0 8px 28px rgba(99,102,241,.08);
}
[data-bs-theme="dark"] .engage-card-h { background: rgba(255,255,255,.04); }
[data-bs-theme="light"] .engage-card-h { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.engage-card-h-num {
    font-size: 2.8rem;
    font-weight: 800;
    color: #6366f1;
    opacity: .25;
    line-height: 1;
    flex-shrink: 0;
    width: 64px;
    text-align: center;
    transition: opacity .3s;
}
.engage-card-h:hover .engage-card-h-num {
    opacity: .6;
}
.engage-card-h-right { flex: 1; }
.engage-card-h-right h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .4rem;
}
.engage-card-h-right p {
    font-size: .875rem;
    opacity: .72;
    margin: 0;
    line-height: 1.65;
}
@media (max-width: 575px) {
    .engage-card-h {
        gap: 1.25rem;
        padding: 1.25rem;
    }
    .engage-card-h-num {
        font-size: 2rem;
        width: 44px;
    }
}

/* ----------------------------------
Section "Les Derniers Articles" — refonte
------------------------------------ */
.articles-section .section-divider {
    background: linear-gradient(90deg, #6366f1, #a855f7);
}

/* Carte article */
.article-card {
    border-radius: 1rem !important;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--bs-card-bg);
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.15) !important;
}

/* Image */
.article-card-img-link {
    display: block;
    text-decoration: none;
}

.article-card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.article-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.45s ease;
}

.article-card:hover .article-card-img {
    transform: none;
}

/* Badge catégorie sur l'image */
.article-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3em 0.75em;
    border-radius: 2rem;
    min-width: unset;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* Méta (likes, commentaires, date) */
.article-card-meta {
    font-size: 0.82rem;
}

.article-card-meta i {
    font-size: 1rem;
    color: #6366f1;
}

/* Titre */
.article-title-link {
    color: var(--bs-body-color);
    transition: color 0.2s ease;
    line-height: 1.35;
}

.article-title-link:hover {
    color: #6366f1;
}

/* Extrait */
.article-card-preview {
    line-height: 1.55;
}

/* Animation scroll — entrée décalée */
.article-card-wrap {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transition-delay: var(--card-delay, 0s);
}

.article-card-wrap.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile : toujours visible, pas d'animation */
@media (max-width: 991.98px) {
    .article-card-wrap {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Dark mode */
[data-bs-theme="dark"] .article-card {
    background: #1e2139;
    border: 1px solid rgba(99, 102, 241, 0.12) !important;
}

[data-bs-theme="dark"] .article-card:hover {
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.22) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
}

[data-bs-theme="dark"] .article-title-link {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .article-title-link:hover {
    color: #a5b4fc;
}

/* Light mode */
[data-bs-theme="light"] .article-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06) !important;
}

[data-bs-theme="light"] .article-card:hover {
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.12) !important;
}

/* Mobile */
@media (max-width: 767.98px) {
    .article-card-img-wrap {
        height: 240px;
    }

    .article-card-title {
        font-size: 1rem;
    }

    .article-card-preview {
        font-size: 0.85rem;
    }

    .articles-section h2.h1 {
        font-size: 1.6rem;
    }

    .articles-section > .text-center > p {
        font-size: 0.92rem;
    }
}

/* ── Swiper articles ── */
.articles-swiper {
    padding-bottom: 2rem !important;
}
.articles-swiper .swiper-slide {
    height: auto;
    padding: 4px;
}
.articles-swiper .swiper-pagination-bullet {
    background: #6366f1;
    opacity: .3;
}
.articles-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

/* ── FAQ ── */
.faq-sticky {
    position: sticky;
    top: 100px;
}
.faq-accordion .faq-item {
    border: 1px solid rgba(99,102,241,.12) !important;
    border-radius: .85rem !important;
    overflow: hidden;
    transition: border-color .3s, box-shadow .3s;
}
.faq-accordion .faq-item:has(.accordion-button:not(.collapsed)) {
    border-color: rgba(99,102,241,.4) !important;
    box-shadow: 0 6px 24px rgba(99,102,241,.08);
}
[data-bs-theme="dark"] .faq-item { background: rgba(255,255,255,.04); }
[data-bs-theme="light"] .faq-item { background: #fff; }
.faq-btn {
    font-size: .95rem;
    font-weight: 600;
    padding: 1.1rem 1.25rem;
    background: transparent !important;
    color: inherit !important;
}
.faq-btn:not(.collapsed) {
    color: #6366f1 !important;
}
.faq-btn::after {
    filter: invert(40%) sepia(80%) saturate(500%) hue-rotate(210deg);
}
.faq-body {
    font-size: .88rem;
    line-height: 1.7;
    opacity: .78;
    padding-top: 0;
    padding-bottom: 1.25rem;
}


/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    .article-card-wrap {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .article-card:hover {
        transform: none;
    }
}


/* ── CTA final ── */
.cta-final {
    position: relative;
    border-radius: 1.5rem;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, rgba(99,102,241,.15) 0%, rgba(99,102,241,.04) 100%);
    border: 1px solid rgba(99,102,241,.25);
    overflow: hidden;
}
.cta-final-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,.18) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}
.cta-final-badge {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #6366f1;
    background: rgba(99,102,241,.1);
    border: 1px solid rgba(99,102,241,.25);
    border-radius: 50px;
    padding: .3rem .9rem;
}
.cta-final-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
}
.cta-final-sub {
    font-size: 1rem;
    opacity: .72;
    max-width: 480px;
}
.cta-final-box {
    background: rgba(99,102,241,.06);
    border: 1px solid rgba(99,102,241,.15);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}
.cta-final-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .92rem;
    font-weight: 500;
}
.cta-final-item i {
    color: #6366f1;
    font-size: 1.1rem;
    flex-shrink: 0;
}
@media (max-width: 767px) {
    .cta-final {
        padding: 2.5rem 1.5rem;
    }
    .cta-final-glow {
        width: 250px;
        height: 250px;
        top: -60px;
        right: -60px;
    }
    .cta-final-sub {
        max-width: 100%;
    }
}