/**
 * Vista Pulse — Blog landing + single article.
 * Parité Symfony templates/blog/index.html.twig + show.html.twig
 */

/* =========================================================================
   COMMON
   ========================================================================= */
.vp-blog__container,
.vp-article__container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .vp-blog__container,
    .vp-article__container {
        padding: 0 2.5rem;
    }
}

/* =========================================================================
   BLOG LANDING — Hero
   ========================================================================= */
.vp-blog__hero {
    position: relative;
    padding: 7rem 0 4rem;
    background: #FFFFFF;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .vp-blog__hero {
        padding: 9rem 0 5rem;
    }
}

.vp-blog__hero-glow {
    position: absolute;
    top: -25%;
    right: -10%;
    width: 800px;
    height: 800px;
    max-width: 80vw;
    max-height: 80vw;
    background: rgba(0, 168, 232, 0.1);
    border-radius: 9999px;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.vp-blog__hero > .vp-blog__container {
    position: relative;
    z-index: 1;
}

.vp-blog__hero-title {
    margin: 0 0 2rem;
    font-family: var(--vp-font-display);
    font-size: clamp(2.5rem, 9vw, 7rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--vp-text);
    text-transform: capitalize;
}

.vp-blog__hero-dot {
    color: var(--vp-primary);
}

.vp-blog__hero-sub {
    max-width: 36rem;
    margin: 0 0 3rem;
    color: #6B7280;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.65;
    font-weight: 300;
}

.vp-blog__filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 640px) {
    .vp-blog__filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 0.25rem;
        margin-right: -1.5rem; /* permet le scroll edge-to-edge */
    }
    .vp-blog__filter::-webkit-scrollbar { display: none; }
}

.vp-blog__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #FFFFFF;
    color: #6B7280;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.vp-blog__pill:hover {
    background: #F8FAFC;
    color: var(--vp-text);
    border-color: rgba(15, 23, 42, 0.2);
    transform: translateY(-1px);
}

.vp-blog__pill.is-active {
    background: var(--vp-text);
    color: #FFFFFF;
    border-color: var(--vp-text);
}

.vp-blog__pill.is-active:hover {
    background: var(--vp-text);
    color: #FFFFFF;
}

/* =========================================================================
   BLOG LANDING — Grid
   ========================================================================= */
.vp-blog__body {
    padding: 3rem 0 6rem;
    background: #F8FAFC;
    min-height: 100vh;
}

.vp-blog__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .vp-blog__grid { gap: 2.5rem; }
    .vp-blog__grid--2-col,
    .vp-blog__grid--3-col,
    .vp-blog__grid--4-col { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .vp-blog__grid { gap: 3rem; }
    .vp-blog__grid--2-col { grid-template-columns: repeat(2, 1fr); }
    .vp-blog__grid--3-col { grid-template-columns: repeat(3, 1fr); }
    .vp-blog__grid--4-col { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1280px) {
    .vp-blog__grid--4-col { gap: 2rem; }
}

/* Fallback si aucun modifier (legacy markup) */
@media (min-width: 1024px) {
    .vp-blog__grid:not([class*="vp-blog__grid--"]) {
        grid-template-columns: repeat(3, 1fr);
    }
}

.vp-blog__empty {
    text-align: center;
    padding: 5rem 0;
    color: #6B7280;
    font-size: 1.25rem;
}

/* =========================================================================
   BLOG CARD (editorial style — image top + body white)
   ========================================================================= */
.vp-blog-card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border-radius: 1.25rem;
    overflow: hidden;
    text-decoration: none;
    color: var(--vp-text);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.vp-blog-card:hover {
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    transform: translateY(-4px);
}

.vp-blog-card__image {
    position: relative;
    height: 16rem;
    overflow: hidden;
    background: #F1F5F9;
}

.vp-blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.vp-blog-card:hover .vp-blog-card__image img {
    transform: scale(1.1);
}

.vp-blog-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--vp-primary) 0%, var(--vp-teal) 100%);
    opacity: 0.85;
}

.vp-blog-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.875rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 9999px;
    color: var(--vp-text);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.vp-blog-card__body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

@media (min-width: 640px) {
    .vp-blog-card__body { padding: 2rem; }
}

.vp-blog-card__date {
    display: block;
    margin: 0 0 0.75rem;
    color: #9CA3AF;
    font-size: 0.75rem;
    font-weight: 500;
}

.vp-blog-card__title {
    margin: 0 0 1rem;
    font-family: var(--vp-font-display);
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--vp-text);
    transition: color 0.25s ease;
}

@media (min-width: 640px) {
    .vp-blog-card__title { font-size: 1.5rem; }
}

.vp-blog-card:hover .vp-blog-card__title {
    color: var(--vp-primary);
}

.vp-blog-card__excerpt {
    margin: 0 0 1.5rem;
    color: #6B7280;
    font-size: 0.95rem;
    line-height: 1.65;
    flex: 1;
}

.vp-blog-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--vp-text);
    transition: transform 0.25s ease;
}

.vp-blog-card__cta svg {
    width: 1rem;
    height: 1rem;
}

.vp-blog-card:hover .vp-blog-card__cta {
    transform: translateX(8px);
}

/* =========================================================================
   SINGLE ARTICLE
   ========================================================================= */

/* Reading progress bar */
.vp-article__progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 60;
    pointer-events: none;
}

.vp-article__progress-bar {
    height: 100%;
    background: var(--vp-primary);
    width: 0%;
    transition: width 0.1s ease;
}

/* Hero */
.vp-article__hero {
    position: relative;
    min-height: 60vh;
    padding: 7rem 0 4rem;
    background: #0F172A;
    color: #FFFFFF;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    isolation: isolate;
}

@media (min-width: 768px) {
    .vp-article__hero {
        min-height: 70vh;
        padding: 10rem 0 5rem;
    }
}

.vp-article__hero-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0.7;
    z-index: -2;
}

.vp-article__hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, #0F172A 0%, rgba(15, 23, 42, 0.6) 40%, rgba(15, 23, 42, 0.25) 100%);
    z-index: -1;
}

.vp-article__breadcrumb {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 0 1.5rem;
    pointer-events: none;
}

@media (min-width: 768px) {
    .vp-article__breadcrumb {
        bottom: 2rem;
        padding: 0 2.5rem;
    }
}

.vp-article__breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    pointer-events: auto;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.vp-article__breadcrumb ol::-webkit-scrollbar { display: none; }

.vp-article__breadcrumb li { display: inline-flex; align-items: center; }
.vp-article__breadcrumb li.sep { opacity: 0.4; }

.vp-article__breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.vp-article__breadcrumb a:hover { color: #FFFFFF; }

.vp-article__breadcrumb li.current {
    color: #FFFFFF;
    font-weight: 500;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .vp-article__breadcrumb li.current { max-width: 30rem; }
}

.vp-article__hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .vp-article__hero-inner { padding: 0 2.5rem; gap: 2rem; }
}

.vp-article__hero-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    font-weight: 500;
}

.vp-article__hero-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.vp-article__hero-dot { opacity: 0.6; }

.vp-article__hero-title {
    margin: 0;
    font-family: var(--vp-font-display);
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: #FFFFFF;
}

@media (min-width: 1024px) {
    .vp-article__hero-title { font-size: clamp(3rem, 5vw, 5rem); }
}

.vp-article__hero-author {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    text-align: left;
}

.vp-article__hero-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    object-fit: cover;
    border: 2px solid var(--vp-primary);
}

.vp-article__hero-author-name {
    margin: 0;
    color: #FFFFFF;
    font-weight: 700;
    line-height: 1.2;
}

.vp-article__hero-author-role {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    line-height: 1.2;
}

/* Body 3-col layout */
.vp-article__body {
    padding: 4rem 0;
    background: #FFFFFF;
}

@media (min-width: 768px) {
    .vp-article__body { padding: 5rem 0; }
}

.vp-article__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* Desktop : sidebar 1/4 (TOC + share empilés, sticky) + main 3/4. */
@media (min-width: 1024px) {
    .vp-article__layout {
        grid-template-columns: minmax(14rem, 1fr) minmax(0, 3fr);
        gap: 3rem;
        align-items: start;
    }
}

@media (min-width: 1280px) {
    .vp-article__layout {
        grid-template-columns: minmax(16rem, 1fr) minmax(0, 3fr);
        gap: 4rem;
    }
}

@media (min-width: 1536px) {
    .vp-article__layout {
        gap: 5rem;
    }
}

/* Sidebar : wrapper sticky contenant TOC (haut) + share (bas). */
.vp-article__sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .vp-article__sidebar {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        position: sticky;
        top: 7rem;
        height: fit-content;
        max-height: calc(100vh - 9rem);
        overflow-y: auto;
        padding-right: 0.25rem;
    }
    .vp-article__sidebar::-webkit-scrollbar { width: 4px; }
    .vp-article__sidebar::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.12); border-radius: 4px; }
}

/* Social share — icônes horizontales sous la TOC. */
.vp-article__share {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .vp-article__share { display: flex; }
}

.vp-article__share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: #F1F5F9;
    color: #6B7280;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.vp-article__share-btn svg { width: 1.125rem; height: 1.125rem; }

.vp-article__share-btn[href*="twitter"]:hover { background: #1DA1F2; color: #FFFFFF; }
.vp-article__share-btn[href*="linkedin"]:hover { background: #0077B5; color: #FFFFFF; }
.vp-article__share-btn[data-controller="copy-link"]:hover { background: var(--vp-text); color: #FFFFFF; transform: translateY(-1px); }
.vp-article__share-btn[data-controller="copy-link"].is-copied { background: var(--vp-teal); color: #FFFFFF; }

/* Main content (prose) — colonne 3/4 sur desktop. */
.vp-article__main {
    min-width: 0;
    width: 100%;
    margin: 0 auto;
}

.vp-article__content {
    color: var(--vp-text);
    font-size: 1.125rem;
    line-height: 1.75;
}

.vp-article__content > * + * { margin-top: 1.25rem; }

.vp-article__content h2,
.vp-article__content h3,
.vp-article__content h4 {
    font-family: var(--vp-font-display);
    font-weight: 700;
    color: var(--vp-text);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.vp-article__content h2 { margin-top: 3rem; margin-bottom: 1rem; font-size: 1.875rem; }
.vp-article__content h3 { margin-top: 2.5rem; margin-bottom: 0.75rem; font-size: 1.5rem; }
.vp-article__content h4 { margin-top: 2rem; margin-bottom: 0.5rem; font-size: 1.25rem; }

.vp-article__content p,
.vp-article__content ul,
.vp-article__content ol { color: #374151; }

.vp-article__content a {
    color: var(--vp-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.vp-article__content img {
    max-width: 100%;
    height: auto;
    border-radius: 1.25rem;
    margin: 2rem 0;
}

.vp-article__content ul,
.vp-article__content ol { padding-left: 1.5rem; }

.vp-article__content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 1.75rem;
    border-left: 4px solid var(--vp-primary);
    background: #F8FAFC;
    border-radius: 0 1rem 1rem 0;
    color: var(--vp-text);
    font-style: italic;
    font-size: 1.125rem;
}

.vp-article__content pre,
.vp-article__content code {
    font-family: 'SF Mono', Menlo, monospace;
    background: #0F172A;
    color: #E2E8F0;
    border-radius: 0.5rem;
}

.vp-article__content code { padding: 0.125rem 0.375rem; font-size: 0.9em; }
.vp-article__content pre { padding: 1.25rem; overflow-x: auto; font-size: 0.875rem; line-height: 1.6; }
.vp-article__content pre code { padding: 0; background: transparent; }

.vp-article__divider {
    margin: 3rem 0;
    border: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

/* Author bio box */
.vp-article__author-box {
    padding: 2rem;
    border-radius: 1.25rem;
    background: #F8FAFC;
    border: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .vp-article__author-box {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }
}

.vp-article__author-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(0, 168, 232, 0.18);
}

.vp-article__author-name {
    margin: 0 0 0.25rem;
    font-family: var(--vp-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--vp-text);
}

.vp-article__author-role {
    margin: 0 0 0.75rem;
    color: var(--vp-primary);
    font-size: 0.875rem;
    font-weight: 500;
}

.vp-article__author-bio {
    margin: 0.5rem 0 0;
    color: #6B7280;
    font-style: italic;
    line-height: 1.6;
}

.vp-article__author-dates {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.625rem;
    margin: 0;
    color: #6B7280;
    font-size: 0.85rem;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .vp-article__author-dates {
        justify-content: center;
    }
}

.vp-article__author-date {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.vp-article__author-date svg {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
    color: #9CA3AF;
}

.vp-article__author-date time {
    color: var(--vp-text);
    font-weight: 600;
}

.vp-article__author-date--update {
    color: var(--vp-primary);
}

.vp-article__author-date--update svg {
    color: var(--vp-primary);
}

.vp-article__author-date--update time {
    color: var(--vp-primary);
}

.vp-article__author-sep {
    color: rgba(15, 23, 42, 0.2);
    user-select: none;
}

/* TOC (dans la sidebar gauche en haut — sticky est géré par le parent .vp-article__sidebar). */
.vp-article__toc {
    display: none;
}

@media (min-width: 1024px) {
    .vp-article__toc { display: block; }
}

.vp-article__toc-label {
    margin: 0 0 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #9CA3AF;
}

.vp-article__toc-nav {
    border-left: 2px solid rgba(15, 23, 42, 0.06);
}

.vp-article__toc-nav a {
    display: block;
    padding: 0.5rem 0 0.5rem 1rem;
    margin-left: -2px;
    border-left: 2px solid transparent;
    color: #6B7280;
    font-size: 0.875rem;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.vp-article__toc-nav a:hover {
    color: var(--vp-text);
}

.vp-article__toc-nav a.is-active {
    color: var(--vp-primary);
    border-left-color: var(--vp-primary);
    font-weight: 600;
}

.vp-article__toc-nav a.is-h3 {
    padding-left: 1.75rem;
    font-size: 0.8125rem;
}

/* =========================================================================
   RELATED SECTION — header centré + grille adaptative + CTA dramatique
   ========================================================================= */
.vp-article__related {
    position: relative;
    padding: 5rem 0 6rem;
    background: #0F172A;
    color: #FFFFFF;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

@media (min-width: 768px) {
    .vp-article__related { padding: 7rem 0 8rem; }
}

/* Glow décoratif derrière la section */
.vp-article__related::before {
    content: "";
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 600px;
    max-width: 90vw;
    background: radial-gradient(ellipse at center, rgba(0, 168, 232, 0.18) 0%, transparent 65%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.vp-article__related > .vp-article__container {
    position: relative;
    z-index: 1;
}

/* Header centré */
.vp-article__related-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .vp-article__related-header {
        margin-bottom: 4.5rem;
    }
}

.vp-article__related-eyebrow {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    background: rgba(0, 168, 232, 0.15);
    color: var(--vp-primary);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    border: 1px solid rgba(0, 168, 232, 0.3);
}

.vp-article__related-title {
    margin: 0;
    font-family: var(--vp-font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

.vp-article__related-sub {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Grille adaptative selon le nombre d'articles liés */
.vp-article__related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .vp-article__related-grid {
        gap: 2rem;
    }
    .vp-article__related-grid--with-1 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
    .vp-article__related-grid--with-2 {
        grid-template-columns: repeat(3, 1fr);
    }
    /* Cas spécial : aucun article lié → CTA full-width centré */
    .vp-article__related-grid--cta-only {
        grid-template-columns: minmax(0, 720px);
        justify-content: center;
    }
}

/* Card article lié */
.vp-article__related-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    overflow: hidden;
    text-decoration: none;
    color: #FFFFFF;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.vp-article__related-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
}

.vp-article__related-image {
    position: relative;
    height: 12rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--vp-primary), var(--vp-teal));
}

.vp-article__related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.6s ease, opacity 0.3s ease;
}

.vp-article__related-card:hover .vp-article__related-image img {
    transform: scale(1.08);
    opacity: 1;
}

.vp-article__related-badge-img {
    position: absolute;
    top: 0.875rem;
    left: 0.875rem;
    padding: 0.375rem 0.75rem;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 9999px;
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.vp-article__related-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.vp-article__related-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.vp-article__related-name {
    margin: 0;
    font-family: var(--vp-font-display);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #FFFFFF;
    flex: 1;
    transition: color 0.25s ease;
}

.vp-article__related-card:hover .vp-article__related-name {
    color: var(--vp-primary);
}

.vp-article__related-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--vp-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: transform 0.25s ease;
}

.vp-article__related-arrow svg { width: 1rem; height: 1rem; }

.vp-article__related-card:hover .vp-article__related-arrow {
    transform: translateX(6px);
}

/* CTA card — dramatique, gradient cyan-teal, prend toute la largeur en cta-only */
.vp-article__related-cta {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.875rem;
    padding: 2.5rem 1.75rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, var(--vp-primary) 0%, var(--vp-teal) 100%);
    color: #FFFFFF;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vp-article__related-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.vp-article__related-cta > * {
    position: relative;
    z-index: 1;
}

.vp-article__related-cta:hover {
    transform: translateY(-4px);
    color: #FFFFFF;
    box-shadow: 0 20px 50px rgba(0, 168, 232, 0.35);
}

/* Mode cta-only : padding + texte plus généreux */
.vp-article__related-grid--cta-only .vp-article__related-cta {
    padding: 4rem 2rem;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .vp-article__related-grid--cta-only .vp-article__related-cta {
        padding: 5rem 3rem;
    }
}

.vp-article__related-cta-eyebrow {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.vp-article__related-cta-title {
    margin: 0;
    font-family: var(--vp-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
}

.vp-article__related-grid--cta-only .vp-article__related-cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    max-width: 18em;
}

.vp-article__related-cta-desc {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 28rem;
}

.vp-article__related-grid--cta-only .vp-article__related-cta-desc {
    font-size: 1.05rem;
}

.vp-article__related-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: #FFFFFF;
    color: var(--vp-text);
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.vp-article__related-cta-btn svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.25s ease;
}

.vp-article__related-cta:hover .vp-article__related-cta-btn {
    background: var(--vp-text);
    color: #FFFFFF;
}

.vp-article__related-cta:hover .vp-article__related-cta-btn svg {
    transform: translateX(4px);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .vp-blog-card,
    .vp-blog-card__image img,
    .vp-blog-card__cta,
    .vp-blog-card__title,
    .vp-article__related-image img,
    .vp-article__related-cta {
        transition: none !important;
    }
    .vp-blog-card:hover,
    .vp-article__related-cta:hover { transform: none !important; }
}

/* =========================================================================
   404 PAGE
   ========================================================================= */
.vp-404 {
    position: relative;
}

.vp-404__hero {
    position: relative;
    min-height: 80vh;
    background: #0F172A;
    color: #FFFFFF;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 7rem 1.5rem 5rem;
}

@media (min-width: 768px) {
    .vp-404__hero { padding: 10rem 2rem 6rem; }
}

.vp-404__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.vp-404__blob {
    position: absolute;
    border-radius: 9999px;
    filter: blur(100px);
}

.vp-404__blob--1 {
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(0, 168, 232, 0.25);
}

.vp-404__blob--2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(168, 85, 247, 0.18);
}

.vp-404__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.vp-404__eyebrow {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    background: rgba(0, 168, 232, 0.15);
    color: var(--vp-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    border: 1px solid rgba(0, 168, 232, 0.3);
}

.vp-404__title {
    margin: 0;
    font-family: var(--vp-font-display);
    font-size: clamp(3rem, 9vw, 6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #FFFFFF;
}

.vp-404__title-gradient {
    display: inline-block;
    background: linear-gradient(90deg, var(--vp-primary) 0%, #C084FC 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.vp-404__sub {
    margin: 0;
    max-width: 32rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.65;
    font-weight: 300;
}

.vp-404__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.875rem;
    margin-top: 1rem;
}

.vp-404__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.vp-404__cta svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

.vp-404__cta--primary {
    background: var(--vp-primary);
    color: #FFFFFF;
    box-shadow: 0 14px 30px -12px rgba(0, 168, 232, 0.5);
}

.vp-404__cta--primary:hover {
    background: var(--vp-deep);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.vp-404__cta--primary:hover svg { transform: translateX(4px); }

.vp-404__cta--secondary {
    background: transparent;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.vp-404__cta--secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

.vp-404__shortcuts {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.vp-404__shortcuts-label {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.vp-404__shortcuts ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
}

.vp-404__shortcuts a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.vp-404__shortcuts a:hover {
    color: var(--vp-primary);
}

/* =========================================================================
   SEARCH PAGE — form de saisie sous le hero
   ========================================================================= */
.vp-search__form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
    max-width: 600px;
}

.vp-search__input {
    flex: 1 1 14rem;
    min-width: 0;
    padding: 0.875rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    background: #FFFFFF;
    color: var(--vp-text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vp-search__input:focus {
    outline: none;
    border-color: var(--vp-primary);
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.15);
}

.vp-search__submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 9999px;
    background: var(--vp-text);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.vp-search__submit:hover {
    background: var(--vp-primary);
    transform: translateY(-1px);
}

.vp-search__submit svg {
    width: 1.05rem;
    height: 1.05rem;
}

@media (max-width: 480px) {
    .vp-search__submit span { display: none; }
}
