/* ==========================================================================
   Services / Expertises — Bento Editorial Magazine (proposition WOW)
   ========================================================================== */

/* ---- Layout général ---- */
.services-wow {
    background: var(--bg-soft, #fcfcfc);
    color: #0A0C00;
    overflow: hidden;
    --wow-border: rgba(10, 12, 0, 0.08);
}

/* Fiches détail : ne pas couper le mega-menu du header */
.services-wow.service-detail-page {
    overflow: visible;
}
.services-wow * { box-sizing: border-box; }

/* ============= HERO ============= */
.wow-hero {
    position: relative;
    padding: 180px 0 120px;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid var(--wow-border);
}
.wow-hero__bg {
    display: none;
}
.wow-hero__inner {
    position: relative;
    z-index: 3;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
/* Hero blanc : animation particules autorisée */
.wow-hero > canvas,
.wow-hero #noise-wave-canvas {
    display: block !important;
}
.wow-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--theme-color);
    margin-bottom: 2rem;
}
.wow-hero__eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--theme-color);
}
.wow-hero__title {
    font-family: var(--title-font, "Unbounded"), sans-serif;
    font-size: clamp(3rem, 9.5vw, 8.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.045em;
    margin: 0 0 1.5rem;
    color: #0A0C00;
}
.wow-hero__title em {
    /* Même police que le hero accueil (.hero-title = Unbounded, pas d’italique léger) */
    font-family: var(--title-font, "Unbounded"), sans-serif;
    font-style: normal;
    font-weight: 600;
    letter-spacing: -0.045em;
    color: var(--theme-color);
}
.wow-hero__lead {
    max-width: 620px;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.55;
    color: rgba(10, 12, 0, 0.65);
    margin: 2rem 0 0;
}
.wow-hero__scroll {
    position: absolute;
    z-index: 3;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(10, 12, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}
.wow-hero__scroll::after {
    content: '';
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--theme-color), transparent);
    animation: wowScroll 1.8s ease-in-out infinite;
}
@keyframes wowScroll {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 767px) {
    .wow-hero__scroll {
        /* display: none !important; */
    }
}

/* ============= STICKY PILLAR NAV ============= */
.wow-stickynav {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.wow-stickynav.is-visible { opacity: 1; }
.wow-stickynav__link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: rgba(10, 12, 0, 0.5);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 0;
    transition: color 0.25s ease, transform 0.25s ease;
}
.wow-stickynav__link::before {
    content: '';
    width: 28px;
    height: 1px;
    background: currentColor;
    transition: width 0.25s ease, background 0.25s ease;
}
.wow-stickynav__link:hover,
.wow-stickynav__link.is-current {
    color: var(--theme-color);
    transform: translateX(-4px);
}
.wow-stickynav__link.is-current::before { width: 48px; background: var(--theme-color); }
.wow-stickynav__label { white-space: nowrap; }

@media (max-width: 1199px) { .wow-stickynav { display: none; } }

/* ============= PILLAR SECTION ============= */
.wow-pillar {
    position: relative;
    padding: 100px 0;
    border-top: 1px solid var(--wow-border);
}
/* Toutes les sections ont le même fond clair (plus d'alternance sombre) */
.wow-pillar__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 5rem;
    align-items: start;
}
@media (max-width: 991px) {
    .wow-pillar__inner { grid-template-columns: 1fr; gap: 3rem; }
    .wow-pillar { padding: 70px 0; }
}

/* Colonne intro : suit le bento au scroll (sticky) */
.wow-pillar__head {
    position: sticky;
    top: 120px;
    align-self: start;
}
@media (max-width: 991px) {
    .wow-pillar__head {
        position: static;
        top: auto;
    }
}
.wow-pillar__num {
    font-family: var(--title-font, "Unbounded"), sans-serif;
    font-size: clamp(7rem, 14vw, 14rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.05em;
    margin: 0 0 1rem;
    background: linear-gradient(180deg, #d0d0d0, transparent 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    user-select: none;
}
.wow-pillar__title {
    font-family: var(--title-font, "Unbounded"), sans-serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0 0 1.5rem;
}
.wow-pillar__intro {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 2rem;
    opacity: 0.75;
    max-width: 460px;
}
.wow-pillar__count {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.5;
}
.wow-pillar__count strong { font-size: 1.5rem; font-weight: 900; opacity: 1; color: var(--theme-color); }

/* Bento grid des sous-services */
.wow-bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: var(--wow-border);
    border: 1px solid var(--wow-border);
}

.wow-bento__card {
    position: relative;
    grid-column: span 3;
    padding: 2rem 1.75rem;
    background: #fff;
    text-decoration: none !important;
    color: inherit !important;
    transition: background 0.35s ease, color 0.35s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

/* Pattern de tailles : 1ère card = wide, 4e = wide, autres = small */
.wow-bento__card:nth-child(1) { grid-column: span 6; min-height: 220px; }
.wow-bento__card:nth-child(4) { grid-column: span 6; min-height: 200px; }
.wow-bento__card:nth-child(5),
.wow-bento__card:nth-child(6),
.wow-bento__card:nth-child(7) { grid-column: span 2; }

@media (max-width: 767px) {
    .wow-bento { grid-template-columns: 1fr; }
    .wow-bento__card,
    .wow-bento__card:nth-child(n) { grid-column: span 1 !important; min-height: 160px; }
}

/* Effet hover : background passe à la couleur d'accent, texte blanc */
.wow-bento__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--theme-color), #000 22%) 0%,
        var(--theme-color) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}
.wow-bento__card > * { position: relative; z-index: 1; }
.wow-bento__card:hover,
.wow-bento__card:hover * { color: #fff !important; }
.wow-bento__card:hover::before { opacity: 1; }

.wow-bento__num {
    font-family: var(--title-font, "Unbounded"), sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    opacity: 0.4;
    margin-bottom: 0.5rem;
}
.wow-bento__card:hover .wow-bento__num { opacity: 0.85; }

.wow-bento__title {
    font-family: var(--title-font, "Unbounded"), sans-serif;
    font-size: clamp(1.05rem, 1.5vw, 1.4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.6rem;
}
.wow-bento__excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1.2rem;
    opacity: 0.7;
    max-height: 4.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.wow-bento__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: auto;
}
.wow-bento__cta-arrow {
    display: inline-block;
    transform: translateX(0);
    transition: transform 0.3s ease;
}
.wow-bento__card:hover .wow-bento__cta-arrow { transform: translateX(8px); }

/* ============= ANIMATIONS AU SCROLL ============= */
.wow-fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.wow-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.wow-fade-in[data-delay="1"] { transition-delay: 0.1s; }
.wow-fade-in[data-delay="2"] { transition-delay: 0.2s; }
.wow-fade-in[data-delay="3"] { transition-delay: 0.3s; }
.wow-fade-in[data-delay="4"] { transition-delay: 0.4s; }

/* ============= BLOC IA (ex-Parlons IA) sur /solutions ============= */
.wow-solutions-ia {
    padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem);
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.wow-solutions-ia__inner {
    max-width: 1180px;
    margin: 0 auto;
}
.wow-solutions-ia__title {
    font-family: var(--font-heading, 'Unbounded', sans-serif);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 1.25rem;
}
.wow-solutions-ia__lead {
    font-size: 1.125rem;
    line-height: 1.65;
    color: #4b5563;
    max-width: 52rem;
    margin: 0 0 1rem;
}
.wow-solutions-ia__body {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    max-width: 52rem;
    margin-bottom: 2.5rem;
}
.wow-solutions-ia__body p { margin-bottom: 1rem; }
.wow-solutions-ia__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}
@media (max-width: 991px) {
    .wow-solutions-ia__cards { grid-template-columns: 1fr; }
}
.wow-solutions-ia__card {
    padding: 2rem 1.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fafafa;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.wow-solutions-ia__card:hover {
    border-color: var(--theme-color);
    transform: translateY(-4px);
}
.wow-solutions-ia__card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}
.wow-solutions-ia__card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}
.wow-solutions-ia__approach-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
}
.wow-solutions-ia__steps {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem;
    display: grid;
    gap: 1.25rem;
    max-width: 40rem;
}
.wow-solutions-ia__step {
    padding-left: 1.25rem;
    border-left: 3px solid var(--theme-color);
}
.wow-solutions-ia__step strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}
.wow-solutions-ia__step span {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.55;
}
.wow-solutions-ia__cta {
    padding: 2.5rem 2rem;
    background: var(--theme-color);
    color: #fff;
    text-align: center;
}
.wow-solutions-ia__cta h3 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 0 0.75rem;
}
.wow-solutions-ia__cta p {
    opacity: 0.9;
    max-width: 36rem;
    margin: 0 auto 1.5rem;
}
.wow-solutions-ia__cta-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #fff;
    color: #111;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
}
