/* ══════════════════════════════
   BLOG + NOTRE PROCESS — styles dédiés
   Réutilise les variables CSS de homepage.css
══════════════════════════════ */

/* ─── BLOG HERO ─────────────────────────────────── */
.vc-blog__hero {
    position: relative;
    text-align: center;
    padding: calc(78px + clamp(72px, 10vw, 140px)) clamp(20px, 5vw, 72px) clamp(48px, 6vw, 80px);
    max-width: var(--max-w);
    margin: 0 auto;
}
.vc-blog__hero .vc-label {
    margin-bottom: 14px;
}
/* H1 aligné sur le style .vc-h2 des sections home (Problem, Offres, etc.) */
.vc-blog__hero h1 {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-weight: 500;
    color: var(--navy);
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin: 0 0 16px;
}
/* Sub : single-line sur desktop, wrap naturel sur mobile */
.vc-blog__hero .vc-sub {
    margin: 0 auto;
    max-width: none;
    white-space: nowrap;
}
@media (max-width: 900px) {
    .vc-blog__hero .vc-sub {
        white-space: normal;
        max-width: 640px;
    }
}
.vc-blog__hero-aside {
    margin: 18px auto 0;
    font-size: .9375rem;
    color: var(--text-muted);
    font-style: italic;
    opacity: .85;
}

/* ─── BLOG LIST (cards) ───────────────────────────── */
.vc-blog__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 2.5vw, 32px);
    margin: clamp(40px, 5vw, 64px) 0 clamp(48px, 6vw, 80px);
}
.vc-blog__card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--gray);
    border-radius: var(--r-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease, border-color .25s ease;
}
.vc-blog__card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-navy);
    border-color: var(--navy);
}
.vc-blog__card-image {
    aspect-ratio: 16 / 10;
    width: 100%;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, rgba(0,12,102,.06) 0%, rgba(248,255,100,.18) 100%);
}
.vc-blog__card-image--placeholder {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(0,12,102,.08) 0%, rgba(248,255,100,.22) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -.02em;
}
.vc-blog__card-body {
    padding: clamp(18px, 2vw, 24px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.vc-blog__card-cat {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 9999px;
    background: rgba(0, 12, 102, .08);
    color: var(--navy);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.vc-blog__card-title {
    font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
    letter-spacing: -.02em;
    margin: 0;
}
.vc-blog__card-excerpt {
    font-size: .9375rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}
.vc-blog__card-meta {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 8px;
    font-size: .8125rem;
    color: var(--text-muted);
}
.vc-blog__card-meta::before { content: ''; }
.vc-blog__card-meta-dot {
    width: 3px; height: 3px;
    background: currentColor;
    border-radius: 50%;
    opacity: .5;
}

/* ─── PAGINATION ─────────────────────────────────── */
.vc-blog__pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: clamp(32px, 4vw, 56px) 0;
    flex-wrap: wrap;
}
.vc-blog__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px; height: 38px;
    padding: 0 12px;
    border-radius: 9999px;
    background: transparent;
    color: var(--text-muted);
    text-decoration: none;
    font-size: .875rem; font-weight: 600;
    transition: background .15s, color .15s;
}
.vc-blog__pagination .page-numbers:hover { background: var(--gray-light); color: var(--navy); }
.vc-blog__pagination .page-numbers.current {
    background: var(--navy);
    color: #fff;
}

/* ─── SINGLE POST HERO ───────────────────────────── */
.vc-blog__post-hero {
    text-align: center;
    padding: calc(78px + clamp(40px, 5vw, 72px)) 0 clamp(28px, 4vw, 48px);
    max-width: 820px;
    margin: 0 auto;
}
.vc-blog__post-hero .vc-blog__card-cat {
    margin-bottom: 18px;
}
.vc-blog__post-hero h1 {
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 500;
    color: var(--navy);
    line-height: 1.1;
    letter-spacing: -0.035em;
    margin: 0 0 18px;
}
.vc-blog__post-meta {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    font-size: .875rem;
    color: var(--text-muted);
}
.vc-blog__post-meta-dot {
    width: 3px; height: 3px;
    background: currentColor;
    border-radius: 50%;
    opacity: .5;
}

/* ─── SINGLE POST FEATURED IMAGE ─────────────────── */
.vc-blog__post-cover {
    max-width: 1080px;
    margin: 0 auto clamp(40px, 5vw, 64px);
    padding: 0 clamp(20px, 5vw, 72px);
}
.vc-blog__post-cover img {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    border-radius: var(--r-md);
    display: block;
}

/* ─── SINGLE POST PROSE BODY ─────────────────────── */
.vc-blog__post-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 32px);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text);
}
.vc-blog__post-body > * + * { margin-top: 1.25em; }
.vc-blog__post-body h2 {
    font-size: clamp(1.5rem, 2.4vw, 1.875rem);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-top: 2em;
    margin-bottom: 0.6em;
}
.vc-blog__post-body h3 {
    font-size: clamp(1.125rem, 1.6vw, 1.375rem);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
    margin-top: 1.6em;
    margin-bottom: 0.5em;
}
.vc-blog__post-body p {
    margin: 0;
}
.vc-blog__post-body a {
    color: var(--navy);
    text-decoration: underline;
    text-decoration-color: rgba(0, 12, 102, .35);
    text-underline-offset: 3px;
    transition: text-decoration-color .15s, color .15s;
}
.vc-blog__post-body a:hover {
    text-decoration-color: var(--navy);
    color: var(--navy);
}
.vc-blog__post-body ul,
.vc-blog__post-body ol {
    padding-left: 1.5em;
    margin: 0;
}
.vc-blog__post-body ul li,
.vc-blog__post-body ol li {
    margin-bottom: .5em;
}
.vc-blog__post-body ul li::marker {
    color: var(--navy);
}
.vc-blog__post-body blockquote {
    margin: 1.5em 0;
    padding: 18px 24px;
    background: rgba(248, 255, 100, .15);
    border-left: 3px solid var(--yellow-dark, #9a8700);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    font-style: normal;
    color: var(--text);
}
.vc-blog__post-body blockquote p { margin: 0; }
.vc-blog__post-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--r-md);
    display: block;
    margin: 1.5em auto;
}
.vc-blog__post-body code {
    background: rgba(0, 12, 102, .06);
    color: var(--navy);
    padding: .15em .35em;
    border-radius: 4px;
    font-size: .9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.vc-blog__post-body pre {
    background: #f6f7fa;
    color: var(--text);
    padding: 18px 22px;
    border-radius: var(--r-md);
    overflow-x: auto;
    font-size: .875rem;
    line-height: 1.6;
}
.vc-blog__post-body pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}
.vc-blog__post-body hr {
    border: none;
    height: 1px;
    background: var(--gray);
    margin: 2.4em 0;
}

/* ─── SINGLE POST TABLES ──────────────────────────── */
.vc-blog__post-body figure.wp-block-table,
.vc-blog__post-body .vc-table-wrap {
    margin: 1.75em 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--r-md);
    border: 1px solid var(--gray);
    background: #fff;
}
.vc-blog__post-body figure.wp-block-table > table,
.vc-blog__post-body .vc-table-wrap > table,
.vc-blog__post-body > table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
    line-height: 1.55;
    background: transparent;
}
.vc-blog__post-body > table {
    margin: 1.75em 0;
    border-radius: var(--r-md);
    border: 1px solid var(--gray);
    overflow: hidden;
}
.vc-blog__post-body table th {
    background: rgba(0, 12, 102, .04);
    color: var(--navy);
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray);
    border-right: 1px solid var(--gray);
    letter-spacing: -0.005em;
}
.vc-blog__post-body table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray);
    border-right: 1px solid var(--gray);
    vertical-align: top;
    color: var(--text);
}
.vc-blog__post-body table th:last-child,
.vc-blog__post-body table td:last-child {
    border-right: none;
}
.vc-blog__post-body table tr:last-child td {
    border-bottom: none;
}
.vc-blog__post-body table tr:nth-child(even) td {
    background: rgba(0, 12, 102, .015);
}
.vc-blog__post-body table strong {
    color: var(--navy);
}
@media (max-width: 640px) {
    .vc-blog__post-body table {
        font-size: .875rem;
    }
    .vc-blog__post-body table th,
    .vc-blog__post-body table td {
        padding: 10px 12px;
    }
    .vc-blog__post-body figure.wp-block-table,
    .vc-blog__post-body .vc-table-wrap,
    .vc-blog__post-body > table {
        /* On garde le scroll horizontal pour que les colonnes restent lisibles. */
        min-width: 100%;
    }
}

/* ─── SINGLE POST RELATED ─────────────────────────── */
.vc-blog__related {
    max-width: var(--max-w);
    margin: clamp(64px, 8vw, 112px) auto clamp(40px, 5vw, 64px);
    padding: 0 clamp(20px, 5vw, 72px);
}
.vc-blog__related-title {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 clamp(20px, 2.5vw, 32px);
    letter-spacing: -0.02em;
}
.vc-blog__related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 2.5vw, 32px);
}

/* ─── SINGLE POST CTA ─────────────────────────────── */
.vc-blog__post-cta {
    max-width: 880px;
    margin: clamp(48px, 6vw, 80px) auto;
    padding: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 56px);
    text-align: center;
    background: linear-gradient(160deg, rgba(0,12,102,.04) 0%, rgba(248,255,100,.18) 100%);
    border-radius: var(--r-lg);
    border: 1px solid rgba(0, 12, 102, .08);
}
.vc-blog__post-cta h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 500;
    color: var(--navy);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.vc-blog__post-cta p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

/* ─── RESPONSIVE BLOG ─────────────────────────────── */
@media (max-width: 1024px) {
    .vc-blog__list,
    .vc-blog__related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .vc-blog__list,
    .vc-blog__related-grid {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════
   PAGE NOTRE PROCESS — timeline éditoriale
══════════════════════════════ */
.vc-process-page__hero {
    text-align: center;
    padding: calc(78px + clamp(48px, 6vw, 96px)) 0 clamp(48px, 6vw, 80px);
    max-width: 820px;
    margin: 0 auto;
}
.vc-process-page__hero .vc-label { margin-bottom: 14px; }
.vc-process-page__hero h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 500;
    color: var(--navy);
    line-height: 1.1;
    letter-spacing: -0.035em;
    margin: 0 0 18px;
}
.vc-process-page__hero .vc-sub {
    margin: 0 auto;
    max-width: 640px;
}

.vc-process-page__timeline {
    position: relative;
    max-width: 920px;
    margin: clamp(40px, 5vw, 72px) auto clamp(60px, 7vw, 96px);
    padding: 0 clamp(20px, 5vw, 32px);
    display: flex;
    flex-direction: column;
    gap: clamp(48px, 6vw, 80px);
    box-sizing: border-box;
}

/* Track gris faible : barre permanente qui sert de rail. */
.vc-process-page__timeline::before {
    content: '';
    position: absolute;
    top: 96px;
    height: var(--vc-bar-height, 0px);
    left: calc(clamp(20px, 5vw, 32px) + 38px);
    width: 2px;
    background: var(--gray);
    border-radius: 1px;
    z-index: 0;
    -webkit-mask-image:
        radial-gradient(circle 44px at 50% var(--vc-cut1, -500px), transparent 99%, #000 100%),
        radial-gradient(circle 44px at 50% var(--vc-cut2, -500px), transparent 99%, #000 100%),
        radial-gradient(circle 44px at 50% var(--vc-cut3, -500px), transparent 99%, #000 100%),
        radial-gradient(circle 44px at 50% var(--vc-cut4, -500px), transparent 99%, #000 100%);
            mask-image:
        radial-gradient(circle 44px at 50% var(--vc-cut1, -500px), transparent 99%, #000 100%),
        radial-gradient(circle 44px at 50% var(--vc-cut2, -500px), transparent 99%, #000 100%),
        radial-gradient(circle 44px at 50% var(--vc-cut3, -500px), transparent 99%, #000 100%),
        radial-gradient(circle 44px at 50% var(--vc-cut4, -500px), transparent 99%, #000 100%);
    -webkit-mask-composite: source-in;
            mask-composite: intersect;
}

.vc-process-page__step {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: clamp(20px, 3vw, 48px);
    align-items: start;
    position: relative;
}

/* Barre de progression mouse-bound : navy, se trace par-dessus le track gris. */
.vc-process-page__progress {
    position: absolute;
    top: 96px;
    height: var(--vc-bar-height, 0px);
    left: calc(clamp(20px, 5vw, 32px) + 38px);
    width: 2px;
    z-index: 1;
    pointer-events: none;
    border-radius: 1px;
    -webkit-mask-image:
        radial-gradient(circle 44px at 50% var(--vc-cut1, -500px), transparent 99%, #000 100%),
        radial-gradient(circle 44px at 50% var(--vc-cut2, -500px), transparent 99%, #000 100%),
        radial-gradient(circle 44px at 50% var(--vc-cut3, -500px), transparent 99%, #000 100%),
        radial-gradient(circle 44px at 50% var(--vc-cut4, -500px), transparent 99%, #000 100%);
            mask-image:
        radial-gradient(circle 44px at 50% var(--vc-cut1, -500px), transparent 99%, #000 100%),
        radial-gradient(circle 44px at 50% var(--vc-cut2, -500px), transparent 99%, #000 100%),
        radial-gradient(circle 44px at 50% var(--vc-cut3, -500px), transparent 99%, #000 100%),
        radial-gradient(circle 44px at 50% var(--vc-cut4, -500px), transparent 99%, #000 100%);
    -webkit-mask-composite: source-in;
            mask-composite: intersect;
}
.vc-process-page__progress-fill {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--navy);
    transform-origin: top center;
    transform: scaleY(var(--vc-progress, 0));
    border-radius: 1px;
    will-change: transform;
}

/* Numéros : halos jaunes statiques style home page (radial gradient large via ::before) */
.vc-process-page__step-num {
    width: 78px; height: 78px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -.02em;
    position: relative;
    z-index: 3;
}
/* Halo identique à la home page (.vc-process__step::before) : .6 opacity max, fade vers transparent à 68% */
.vc-process-page__step-num::before {
    content: '';
    position: absolute;
    inset: -42px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(248, 255, 100, .6) 0%, transparent 68%);
    z-index: -1;
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    .vc-process-page__progress-fill { transition: none; }
}
.vc-process-page__step-content {
    padding-top: 16px;
}
.vc-process-page__step-title {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: 0 0 14px;
}
.vc-process-page__step-desc {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 24px;
    max-width: 600px;
}
.vc-process-page__step-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.vc-process-page__step-block {
    background: var(--white);
    border: 1px solid rgba(0, 12, 102, .08);
    border-radius: var(--r-md);
    padding: 18px 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 1px 3px rgba(0, 12, 102, .04);
}
.vc-process-page__step-block-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 12px;
    letter-spacing: -.01em;
}
.vc-process-page__step-block ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .9375rem;
    color: var(--text);
    line-height: 1.5;
}
.vc-process-page__step-block ul li {
    padding-left: 16px;
    position: relative;
}
.vc-process-page__step-block ul li::before {
    content: '';
    position: absolute;
    left: 0; top: .55em;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--navy);
}
.vc-process-page__step-block-text {
    font-size: .9375rem;
    color: var(--text);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 640px) {
    /* Sur mobile, on retire la timeline verticale (barre mouse-bound + track gris) :
       elle est mal alignée en stack et inutile sans souris. Les halos jaunes
       suffisent à séquencer visuellement les 4 étapes. */
    .vc-process-page__timeline::before,
    .vc-process-page__progress { display: none !important; }

    .vc-process-page__timeline {
        padding: 0 20px;
        gap: 40px;
    }

    .vc-process-page__step {
        grid-template-columns: 1fr;
        gap: 12px;
        justify-items: center;
        text-align: center;
    }
    .vc-process-page__step-num {
        width: 60px; height: 60px;
        font-size: 1.375rem;
        margin: 0 auto;
    }
    .vc-process-page__step-num::before { inset: -32px; }

    .vc-process-page__step-content {
        padding-top: 4px;
        width: 100%;
    }
    .vc-process-page__step-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    .vc-process-page__step-desc {
        font-size: 1rem;
        margin: 0 auto 20px;
        max-width: none;
    }
    .vc-process-page__step-blocks {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 18px;
        text-align: left;
    }
    .vc-process-page__step-block { padding: 16px 18px; }
}

/* ─── NOTRE PROCESS — section pourquoi ce process ─── */
.vc-process-page__why {
    max-width: 920px;
    margin: clamp(60px, 7vw, 96px) auto;
    padding: 0 clamp(20px, 5vw, 32px);
}
.vc-process-page__why-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(32px, 4vw, 48px);
}
.vc-process-page__why-head h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 500;
    color: var(--navy);
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0 0 16px;
}
.vc-process-page__why-head .vc-sub {
    max-width: 640px;
    margin: 0 auto;
}
.vc-process-page__why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 2.5vw, 32px);
}
.vc-process-page__why-card {
    background: var(--white);
    border: 1px solid var(--gray);
    border-radius: var(--r-md);
    padding: clamp(24px, 3vw, 36px);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.vc-process-page__why-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-navy);
    border-color: var(--navy);
}
.vc-process-page__why-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 12px;
    letter-spacing: -.015em;
}
.vc-process-page__why-card p {
    font-size: .9375rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}
@media (max-width: 900px) {
    .vc-process-page__why-grid { grid-template-columns: 1fr; }
}

/* ─── NOTRE PROCESS — CTA final ─── */
.vc-process-page__cta {
    max-width: 880px;
    margin: clamp(48px, 6vw, 80px) auto clamp(72px, 9vw, 120px);
    padding: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 56px);
    text-align: center;
    background: linear-gradient(160deg, rgba(0,12,102,.04) 0%, rgba(248,255,100,.18) 100%);
    border-radius: var(--r-lg);
    border: 1px solid rgba(0, 12, 102, .08);
}
.vc-process-page__cta h2 {
    font-size: clamp(1.625rem, 2.8vw, 2.25rem);
    font-weight: 500;
    color: var(--navy);
    margin: 0 0 12px;
    letter-spacing: -.02em;
    line-height: 1.2;
}
.vc-process-page__cta p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 24px;
    line-height: 1.6;
}
