/**
 * Vista Pulse — Styles pour les templates single des CPT.
 * Utilisé par single-projet.php, single-service.php, etc.
 */

/* =========================================================================
   COMMUN
   ========================================================================= */

.vp-single {
    color: var(--vp-text);
}

.vp-single__container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.vp-single__container--full {
    max-width: 1600px;
}

/* =========================================================================
   HERO IMMERSIF — full screen, edge-to-edge (sous la pilule nav)
   ========================================================================= */

/* Plus de body padding-top global → le hero démarre au top. La pilule glass
   flotte par-dessus en transparence. On garde un padding-top dans le hero
   pour que le contenu (breadcrumb, titre) ne soit pas mangé par la pilule. */
.vp-single-projet .vp-single__hero {
    padding: 8rem 0 4rem;
}

@media (min-width: 768px) {
    .vp-single-projet .vp-single__hero {
        padding: 10rem 0 5rem;
    }
}

.vp-single__hero {
    position: relative;
    min-height: 720px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    color: #FFFFFF;
}

@media (min-width: 768px) {
    .vp-single__hero {
        min-height: 100vh;
        height: 100vh;
    }
}

.vp-single__hero-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    opacity: 1;
    z-index: 0;
}

/* Gradient overlay : transparent en haut (image bien visible), noir intense en bas (texte lisible) */
.vp-single__hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 35%,
        rgba(0, 0, 0, 0.55) 65%,
        rgba(0, 0, 0, 0.92) 100%
    );
    pointer-events: none;
}

/* Breadcrumb — position absolute top, format Symfony : ol horizontal,
   gray-400, separators "/" en opacity 50%, ellipsis si overflow */
.vp-single__breadcrumb {
    position: absolute;
    top: 6.5rem;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 0 2.5rem;
    pointer-events: none;
}

@media (max-width: 768px) {
    .vp-single__breadcrumb {
        padding: 0 1.5rem;
    }
}

@media (min-width: 768px) {
    .vp-single__breadcrumb {
        top: 9.5rem;
    }
}

.vp-single__breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    max-width: 1600px;
    pointer-events: auto;
    font-size: 0.875rem; /* text-sm */
    color: #9CA3AF; /* gray-400 */
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.vp-single__breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.vp-single__breadcrumb a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 400;
}

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

.vp-single__breadcrumb .sep {
    opacity: 0.5;
    color: #9CA3AF;
    user-select: none;
}

.vp-single__breadcrumb .current {
    color: #FFFFFF;
    font-weight: 500;
}

/* Hero inner — content en bas du hero */
.vp-single__hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (max-width: 768px) {
    .vp-single__hero-inner {
        padding: 0 1.5rem;
    }
}

/* Row du hero : H1+cat (gauche) | Client/Année/Live (droite) */
.vp-single__hero-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

@media (min-width: 768px) {
    .vp-single__hero-row {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 3rem;
    }
}

.vp-single__hero-left {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1;
}

.vp-single__hero-eyebrow {
    display: inline-block;
    align-self: flex-start;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: #FFFFFF;
    color: var(--vp-text);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.vp-single__hero-eyebrow:hover {
    background: var(--vp-primary);
    color: #FFFFFF;
}

.vp-single__hero-title {
    margin: 0;
    color: #FFFFFF;
    font-family: var(--vp-font-display);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.035em;
    word-break: break-word;
}

.vp-single__hero-right {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .vp-single__hero-right {
        align-items: flex-end;
        text-align: right;
    }
}

.vp-single__hero-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.vp-single__hero-info-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.55);
}

.vp-single__hero-info-value {
    font-size: 1.15rem;
    font-weight: 600;
    color: #FFFFFF;
}

.vp-single__hero-live {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    background: var(--vp-primary);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.vp-single__hero-live:hover {
    background: var(--vp-deep);
    transform: translateY(-2px);
}

.vp-single__hero-live svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.25s ease;
}

.vp-single__hero-live:hover svg {
    transform: translate(2px, -2px);
}

/* Excerpt sous le separator — typo Symfony: text-lg → sm:text-2xl → md:text-4xl,
   gray-300, font-light, leading-snug. Effet "déclaration éditoriale". */
.vp-single__hero-excerpt {
    max-width: 56rem;
    color: #D1D5DB; /* gray-300 */
    font-size: 1.125rem; /* text-lg = 18px (mobile) */
    line-height: 1.375; /* leading-snug */
    font-weight: 300;
    letter-spacing: -0.01em;
}

@media (min-width: 640px) {
    .vp-single__hero-excerpt {
        font-size: 1.5rem; /* sm:text-2xl = 24px */
    }
}

@media (min-width: 768px) {
    .vp-single__hero-excerpt {
        font-size: 2.25rem; /* md:text-4xl = 36px */
        line-height: 1.3;
    }
}

.vp-single__hero-excerpt p {
    margin: 0;
}

.vp-single__hero-excerpt p + p {
    margin-top: 0.5em;
}

/* =========================================================================
   MARQUEE — bandeau scrollant horizontal (entre hero et content)
   Style Symfony : grand texte outlined (text-stroke) qui défile en boucle
   ========================================================================= */

.vp-marquee {
    background: var(--vp-dark);
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    white-space: nowrap;
}

.vp-marquee__track {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    animation: vp-marquee-scroll 25s linear infinite;
    will-change: transform;
}

.vp-marquee:hover .vp-marquee__track {
    animation-play-state: paused;
}

@keyframes vp-marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.vp-marquee__item {
    font-family: var(--vp-font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1;
    /* Ghost text : blanc très transparent — pas de stroke (bug rendering),
       rendu net + performant + esthétique éditoriale */
    color: rgba(255, 255, 255, 0.08);
    padding: 0 0.5rem;
    flex-shrink: 0;
}

.vp-marquee__sep {
    font-family: var(--vp-font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    padding: 0 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
    .vp-marquee__track {
        animation: none;
    }
}

/* =========================================================================
   BODY — content centered, max 800px
   ========================================================================= */

.vp-single__body {
    padding: 6rem 0;
    background: #FFFFFF;
}

.vp-single__body .vp-single__container {
    max-width: 1600px;
    padding: 0 1.5rem;
    display: block;
}

@media (min-width: 768px) {
    .vp-single__body .vp-single__container {
        padding: 0 2.5rem;
    }
}

/* =========================================================================
   LAYOUT 2 colonnes : sidebar (client + meta + tech) 1/4 + main 3/4
   ========================================================================= */

.vp-single__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    gap: 3rem;
    align-items: start;
}

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

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

.vp-single__sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 7rem;
}

.vp-single__main {
    min-width: 0;
}

@media (max-width: 960px) {
    .vp-single__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }
    .vp-single__sidebar {
        position: static;
        top: auto;
    }
}

/* Content */
.vp-single__content {
    color: var(--vp-text);
    font-size: 1.0625rem;
    line-height: 1.75;
}

@media (min-width: 768px) {
    .vp-single__content {
        font-size: 1.125rem;
    }
}

/* =========================================================================
   CLIENT BLOCK — carte client compacte verticale dans le sidebar
   ========================================================================= */

.vp-single__client-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.vp-single__client-logo {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.875rem;
    background: #FFFFFF;
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 0.625rem;
    overflow: hidden;
}

.vp-single__client-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.vp-single__client-body {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    width: 100%;
    min-width: 0;
}

.vp-single__client-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--vp-muted);
}

.vp-single__client-name {
    margin: 0;
    font-family: var(--vp-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vp-text);
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.vp-single__client-sector {
    font-size: 0.875rem;
    color: var(--vp-primary);
    font-weight: 600;
}

.vp-single__client-desc {
    margin: 0.5rem 0 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
}

.vp-single__client-website {
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--vp-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    width: fit-content;
    transition: gap 0.2s ease, color 0.2s ease;
}

.vp-single__client-website:hover {
    color: var(--vp-deep);
    gap: 0.625rem;
}

.vp-single__client-website svg {
    width: 0.875rem;
    height: 0.875rem;
}

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

.vp-single__content h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-family: var(--vp-font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--vp-text);
    line-height: 1.2;
}

.vp-single__content h3 {
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    font-family: var(--vp-font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--vp-text);
}

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

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

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

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

/* Testimonial — full width sous le contenu */
.vp-single__testimonial {
    position: relative;
    margin: 3rem 0 0;
    padding: 2.5rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, var(--vp-dark) 0%, #1E293B 100%);
    color: #FFFFFF;
    quotes: none;
    border: 0;
}

.vp-single__testimonial-mark {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--vp-teal);
    opacity: 0.6;
    margin-bottom: 1rem;
}

.vp-single__testimonial-text {
    margin: 0 0 1.5rem;
    color: #FFFFFF;
    font-size: 1.2rem;
    line-height: 1.6;
    font-style: italic;
    font-weight: 500;
}

.vp-single__testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    font-style: normal;
    color: rgba(255, 255, 255, 0.85);
}

.vp-single__testimonial-author strong {
    font-weight: 700;
    color: #FFFFFF;
}

.vp-single__testimonial-author span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
}

/* =========================================================================
   META CARD — Année / Catégorie / Site dans le sidebar
   ========================================================================= */

.vp-single__meta-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0.5rem 1.75rem;
    border-radius: 1.25rem;
    background: #FFFFFF;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.vp-single__meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.vp-single__meta-row:last-child {
    border-bottom: 0;
}

.vp-single__meta-row dt {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--vp-muted);
    margin: 0;
}

.vp-single__meta-row dd {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--vp-text);
    text-align: right;
    word-break: break-word;
}

.vp-single__meta-row dd a {
    color: var(--vp-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.vp-single__meta-row dd a:hover {
    color: var(--vp-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =========================================================================
   TECH STACK — chip list dans le sidebar
   ========================================================================= */

.vp-single__tech-stack {
    margin: 0;
    padding: 1.5rem 1.75rem;
    border-radius: 1.25rem;
    background: #FFFFFF;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.vp-single__stack-label {
    margin: 0 0 1rem;
    font-family: var(--vp-font-display);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--vp-muted);
}

.vp-single__stack-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.vp-single__stack-chip {
    display: inline-block;
    padding: 0.4rem 0.875rem;
    border-radius: 0.625rem;
    background: #F1F5F9;
    color: var(--vp-text);
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid rgba(15, 23, 42, 0.04);
}

/* =========================================================================
   SECTIONS RELATED
   ========================================================================= */

.vp-single__related-services,
.vp-single__more {
    padding: 5rem 0;
    background: #FFFFFF;
}

.vp-single__more {
    background: var(--vp-bg);
}

.vp-single__related-title {
    margin: 0 0 2.5rem;
    font-family: var(--vp-font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--vp-text);
    text-align: center;
    letter-spacing: -0.02em;
}

.vp-single__services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .vp-single__services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.vp-single__service-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    border-radius: 1.5rem;
    background: #FFFFFF;
    border: 1px solid rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.vp-single__service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 168, 232, 0.3);
    box-shadow: 0 16px 32px -16px rgba(0, 168, 232, 0.25);
}

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

.vp-single__service-desc {
    margin: 0;
    color: var(--vp-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    flex: 1;
}

.vp-single__service-cta {
    color: var(--vp-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.vp-single__service-cta span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.vp-single__service-card:hover .vp-single__service-cta span {
    transform: translateX(4px);
}

/* =========================================================================
   CTA SECTION
   ========================================================================= */

.vp-single__cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--vp-dark) 0%, #1E293B 100%);
    color: #FFFFFF;
    text-align: center;
}

.vp-single__cta-title {
    margin: 0 0 1rem;
    font-family: var(--vp-font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.15;
}

.vp-single__cta-desc {
    margin: 0 auto 2rem;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    line-height: 1.6;
}

.vp-single__cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1.125rem 2.25rem;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--vp-secondary) 0%, var(--vp-warm) 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 10px 30px -10px rgba(232, 163, 23, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vp-single__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px -10px rgba(232, 163, 23, 0.6);
}

.vp-single__cta-button svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.25s ease;
}

.vp-single__cta-button:hover svg {
    transform: translateX(4px);
}

/* =========================================================================
   HERO VARIANT : gradient (services / expertises / technologies)
   Pas d'image fond, contenu centré au lieu de hero-row.
   ========================================================================= */

.vp-single__hero--gradient {
    background: linear-gradient(90deg, #00A8E8 0%, #00C9A7 100%);
    min-height: 60vh !important;
    height: auto !important;                /* override le 100vh fixe du hero de base */
    justify-content: center !important;     /* override le flex-end (image projet) → centrer verticalement */
    /* Note : si une image hero existe, le modifier --with-image (ci-dessous)
       remplace le gradient solide par un overlay coloré semi-transparent. */
    /* Les classes utilitaires .vp-grad-* (vista-tokens.css) sont conçues pour
       les TEXT-GRADIENTS sur des <span> : elles imposent background-clip:text
       + -webkit-text-fill-color:transparent. Quand on les applique sur la
       section pour un BG gradient, ça rend tous les textes enfants invisibles.
       On reset ces propriétés ici. */
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: currentColor !important;
    color: #FFFFFF !important;
}

@media (min-width: 768px) {
    .vp-single__hero--gradient {
        min-height: 70vh !important;
        height: auto !important;
    }
}

.vp-single__hero--gradient .vp-single__hero-inner {
    align-items: flex-start;
    text-align: left;
    padding-top: 9rem;
    padding-bottom: 6rem;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .vp-single__hero--gradient .vp-single__hero-inner {
        padding-top: 7rem;
        padding-bottom: 4rem;
    }
}

.vp-single__hero-center {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 1100px;
    width: 100%;
}

.vp-single__hero--gradient .vp-single__hero-eyebrow {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.vp-single__hero--gradient .vp-single__hero-eyebrow:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

.vp-single__hero.vp-single__hero--gradient .vp-single__hero-title,
.vp-single-expertise .vp-single__hero-title,
.vp-single-technologie .vp-single__hero-title,
.vp-single-service .vp-single__hero-title {
    display: block;
    text-align: left;
    color: #FFFFFF;
    font-family: var(--vp-font-display);
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0;
    padding: 0;
    visibility: visible;
    opacity: 1;
    word-break: break-word;
}

.vp-single__hero-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1.0625rem, 1.6vw, 1.35rem);
    font-weight: 300;
    line-height: 1.55;
    max-width: 760px;
}

.vp-single__hero-logo {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.25rem;
    background: #FFFFFF;
    padding: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
}

.vp-single__hero-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Variantes gradient — référencent les utilitaires globaux vista-tokens.css */
.vp-single__hero.vp-grad-services {
    background: linear-gradient(90deg, #EC4899 0%, #8B5CF6 50%, #3B82F6 100%);
}
.vp-single__hero.vp-grad-agence {
    background: linear-gradient(135deg, #A855F7 0%, #6366F1 100%);
}
.vp-single__hero.vp-grad-home {
    background: linear-gradient(90deg, #00A8E8 0%, #00C9A7 100%);
}
.vp-single__hero.vp-grad-portfolio {
    background: linear-gradient(90deg, #06B6D4 0%, #4CB051 100%);
}

/* =========================================================================
   ICON CARD / LEAD / LIST BLOCKS / STEPS / FAQ / SIDEBAR CTA
   Réutilisés par single-service / single-expertise / single-technologie
   ========================================================================= */

.vp-single__icon-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1.25rem;
    background: #FFFFFF;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.vp-single__icon-card .vp-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 0.875rem;
    flex-shrink: 0;
}

.vp-single__icon-card .vp-card__icon svg,
.vp-single__icon-card .vp-card__icon img {
    width: 36px;
    height: 36px;
}

.vp-single__icon-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    flex: 1;
}

.vp-single__icon-card-title {
    margin: 0;
    font-family: var(--vp-font-display, system-ui), sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--vp-text);
    letter-spacing: -0.01em;
}

.vp-single__icon-card-desc {
    margin: 0;
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.5;
    /* Limite à 3 lignes pour rester compact dans la sidebar */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vp-single__sidebar-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
    border-radius: 1.25rem;
    background: var(--vp-text);
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

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

.vp-single__sidebar-cta-label {
    line-height: 1.3;
}

.vp-single__sidebar-cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.vp-single__sidebar-cta:hover .vp-single__sidebar-cta-arrow {
    background: rgba(255, 255, 255, 0.22);
    transform: translateX(4px);
}

/* Lead paragraph (1er paragraphe gras) */
.vp-single__lead {
    margin: 0 0 1.75rem;
    font-size: 1.25rem;
    line-height: 1.55;
    color: var(--vp-text);
    font-weight: 500;
}

@media (max-width: 640px) {
    .vp-single__lead { font-size: 1.125rem; }
}

/* List blocks — séparation et titre */
.vp-single__list-block {
    margin-top: 3.5rem;
}

.vp-single__list-title {
    margin: 0 0 1.5rem;
    font-family: var(--vp-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vp-text);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* Check list (Pour qui / Livrables / Use cases / Avantages) */
.vp-single__check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .vp-single__check-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.vp-single__check-list li {
    position: relative;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    background: #F8FAFC;
    border-radius: 0.875rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: var(--vp-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.vp-single__check-list li::before {
    content: "";
    position: absolute;
    left: 0.875rem;
    top: 50%;
    width: 1.25rem;
    height: 1.25rem;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300A8E8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Steps (Méthodologie) */
.vp-single__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.vp-single__steps li {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #F8FAFC;
    border-radius: 1.125rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.vp-single__step-num {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.875rem;
    background: var(--vp-text);
    color: #FFFFFF;
    font-family: var(--vp-font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.vp-single__step-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.vp-single__step-body strong {
    font-family: var(--vp-font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--vp-text);
}

.vp-single__step-body p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* FAQ — details/summary natifs */
.vp-single__faq {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vp-single__faq-item {
    background: #F8FAFC;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: background-color 0.2s ease;
}

.vp-single__faq-item[open] {
    background: #FFFFFF;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.vp-single__faq-item summary {
    cursor: pointer;
    padding: 1.125rem 1.5rem;
    font-family: var(--vp-font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--vp-text);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.vp-single__faq-item summary::-webkit-details-marker {
    display: none;
}

.vp-single__faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.06);
    font-weight: 400;
    font-size: 1.25rem;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.vp-single__faq-item[open] summary::after {
    transform: rotate(45deg);
    background: var(--vp-primary);
    color: #FFFFFF;
}

.vp-single__faq-item p {
    margin: 0;
    padding: 0 1.5rem 1.25rem;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Stack chips — version cliquable pour single-expertise */
a.vp-single__stack-chip {
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

a.vp-single__stack-chip:hover {
    background: var(--vp-text);
    color: #FFFFFF;
    transform: translateY(-1px);
}

/* =========================================================================
   BUDGET VISUEL — icônes € colorées (projets + services)
   ========================================================================= */
.vp-budget {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.04) 0%, rgba(245, 158, 11, 0.01) 100%);
}

.vp-budget__icons {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    font-family: var(--vp-font-display, system-ui), sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.vp-budget__euro {
    color: #F59E0B;
    transition: transform 0.15s ease;
}

.vp-budget__euro--off {
    color: rgba(15, 23, 42, 0.18);
}

.vp-budget:hover .vp-budget__euro:not(.vp-budget__euro--off) {
    transform: translateY(-1px);
}

.vp-budget__label {
    margin: 0;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
}

/* =========================================================================
   HERO GRADIENT + IMAGE — modifier `--with-image`
   Quand un service / expertise / technologie a une image à la une, l'image
   passe en fond du hero. L'overlay reprend le style du single article :
   image légèrement assombrie + dégradé sombre du bas vers le haut pour la
   lisibilité du texte. Pas de tint coloré.
   ========================================================================= */

.vp-single__hero--gradient.vp-single__hero--with-image {
    /* L'image (<img class="vp-single__hero-img">) devient le fond.
       Fallback sombre #0F172A si l'image ne charge pas. */
    background: #0F172A !important;
}

/* Image hero : assombrie à 70% comme sur le single article */
.vp-single__hero--gradient.vp-single__hero--with-image .vp-single__hero-img {
    opacity: 0.7;
}

/* Overlay sombre dégradé du bas vers le haut (parité single article).
   Override le ::after standard du hero qui était plus agressif. */
.vp-single__hero--gradient.vp-single__hero--with-image::after {
    background: linear-gradient(to top,
        #0F172A 0%,
        rgba(15, 23, 42, 0.6) 40%,
        rgba(15, 23, 42, 0.25) 100%
    );
}
