/* -------------------------------------------------------------------------
   Pages détail services — wow + conversion (agency-first)
   ------------------------------------------------------------------------- */

body.swx[data-page="service-detail"] {
    --svc-border: #c4b0f0;
    --svc-ink: #1c1624;
    --svc-muted: #2f243c;
}

/* Hero */
.swx-svc-hero {
    padding: clamp(5.5rem, 10vw, 7.5rem) 0 clamp(3rem, 6vw, 4.5rem);
    background:
        radial-gradient(ellipse 70% 55% at 88% 12%, rgba(138, 92, 245, 0.16), transparent 55%),
        radial-gradient(ellipse 45% 40% at 8% 80%, rgba(138, 92, 245, 0.08), transparent 50%),
        #f7f6f3;
    border-bottom: 1px solid rgba(28, 22, 36, 0.08);
}

.swx-svc-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: end;
}

.swx-svc-hero__copy .swx-back-link {
    display: inline-flex;
    margin-bottom: 1.35rem;
}

.swx-svc-hero__copy .swx-eyebrow {
    display: inline-block;
    margin-bottom: 0.85rem;
    color: var(--studio-purple, #8A5CF5);
    border: 0;
    padding-left: 0;
}

.swx-svc-hero__title {
    margin: 0;
    max-width: 14ch;
    font-family: var(--swx-font-display);
    font-size: clamp(2.5rem, 5.4vw, 4.4rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.08;
    color: var(--svc-ink);
}

.swx-svc-hero__lead {
    margin: 1.25rem 0 0;
    max-width: 36rem;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.65;
    color: var(--svc-muted);
}

.swx-svc-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.85rem;
}

.swx-svc-hero__panel {
    position: relative;
    padding: 1.75rem 1.5rem 1.6rem;
    border: 1.5px solid var(--svc-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 28px 50px -34px rgba(88, 45, 170, 0.45);
    transform: rotate(-1.2deg);
}

.swx-svc-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1.1rem;
    border-radius: 10px;
    color: #5b2fc9;
    background: rgba(138, 92, 245, 0.14);
}

.swx-svc-hero__icon svg {
    width: 1.55rem;
    height: 1.55rem;
    display: block;
}

.swx-svc-hero__panel-text {
    margin: 0;
    font-family: var(--swx-font-display);
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    font-weight: 600;
    font-style: italic;
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: var(--svc-ink);
}

.swx-section-head--svc {
    max-width: 40rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.swx-section-head--svc .swx-eyebrow {
    color: var(--studio-purple, #8A5CF5);
}

/* Scopes — besoins couverts dans le pilier */
.swx-svc-scope-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.swx-svc-scope {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 100%;
    padding: 1.35rem 1.25rem 1.3rem;
    border: 1.5px solid var(--svc-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 36px -28px rgba(88, 45, 170, 0.35);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.swx-svc-scope:hover {
    border-color: #8A5CF5;
    transform: translateY(-2px);
    box-shadow: 0 22px 40px -24px rgba(138, 92, 245, 0.4);
}

.swx-svc-scope__title {
    margin: 0;
    font-family: var(--swx-font-display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--svc-ink);
}

.swx-svc-scope__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--svc-muted);
}

/* Pains — 2×2 (jamais 3+1) */
.swx-svc-pain-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
}

.swx-svc-pain {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
    padding: 1.4rem 1.3rem 1.35rem;
    border: 1.5px solid var(--svc-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 36px -28px rgba(88, 45, 170, 0.35);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.swx-svc-pain:hover {
    border-color: #8A5CF5;
    transform: translateY(-2px);
    box-shadow: 0 22px 40px -24px rgba(138, 92, 245, 0.4);
}

.swx-svc-pain__n {
    font-family: var(--swx-font-display);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #8A5CF5;
}

.swx-svc-pain p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--svc-ink);
    font-weight: 600;
}

/* Outcomes */
.swx-svc-outcomes {
    background: #f0ecf8;
    border-block: 1px solid rgba(138, 92, 245, 0.18);
}

.swx-svc-outcome-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
    max-width: 46rem;
}

.swx-svc-outcome {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.15rem;
    border-radius: 10px;
    background: #fff;
    border: 1.5px solid var(--svc-border);
    color: var(--svc-ink);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.45;
}

.swx-svc-outcome__mark {
    flex-shrink: 0;
    width: 0.65rem;
    height: 0.65rem;
    margin-top: 0.45rem;
    border-radius: 2px;
    background: #8A5CF5;
    box-shadow: 0 0 0 4px rgba(138, 92, 245, 0.18);
}

/* Fit */
.swx-svc-fit__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.swx-svc-triggers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.swx-svc-triggers li {
    position: relative;
    padding: 1.05rem 1.15rem 1.05rem 1.35rem;
    border-left: 3px solid #8A5CF5;
    background: #fff;
    border-radius: 0 10px 10px 0;
    border: 1.5px solid var(--svc-border);
    border-left-width: 3px;
    border-left-color: #8A5CF5;
    color: var(--svc-ink);
    font-weight: 600;
    line-height: 1.5;
}

.swx-svc-audience {
    padding: 1.5rem 1.35rem;
    border-radius: 14px;
    background: #1c1624;
    color: #f4f1fa;
    box-shadow: 0 24px 48px -28px rgba(28, 22, 36, 0.7);
}

.swx-svc-audience__title {
    margin: 0 0 1rem;
    font-family: var(--swx-font-display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #c4b0f0;
}

.swx-svc-audience ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.swx-svc-audience li {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #f4f1fa;
    padding-left: 1rem;
    position: relative;
}

.swx-svc-audience li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 1px;
    background: #8A5CF5;
}

/* Process steps */
.swx-svc-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(28, 22, 36, 0.14);
}

.swx-svc-step {
    padding: clamp(1.5rem, 3vw, 2.25rem) clamp(0.9rem, 2vw, 1.35rem);
    border-right: 1px solid rgba(28, 22, 36, 0.12);
}

.swx-svc-step:last-child {
    border-right: 0;
}

.swx-svc-step__n {
    display: block;
    margin-bottom: 1rem;
    font-family: var(--swx-font-display);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #8A5CF5;
}

.swx-svc-step__title {
    margin: 0 0 0.45rem;
    font-family: var(--swx-font-display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--svc-ink);
}

.swx-svc-step__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--svc-muted);
}

/* Notes */
.swx-svc-notes {
    padding-block: clamp(1.5rem, 3vw, 2.25rem);
}

.swx-svc-notes__grid {
    display: grid;
    gap: 0.85rem;
    max-width: 52rem;
}

.swx-svc-note {
    margin: 0;
    padding: 1rem 1.15rem;
    border-radius: 10px;
    background: #fff;
    border: 1.5px solid rgba(28, 22, 36, 0.12);
    color: var(--svc-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.swx-svc-note strong {
    color: var(--svc-ink);
}

/* Ghost on dark CTA */
.swx-cta .swx-btn--ghost,
.swx-btn--on-dark {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.swx-cta .swx-btn--ghost:hover,
.swx-btn--on-dark:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* Hub — catalogue 5 offres */
.swx-svc-catalog {
    list-style: none;
    margin: 2.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.swx-svc-catalog__card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.4rem 1.3rem 1.25rem;
    border: 1.5px solid var(--svc-border, #c4b0f0);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 18px 36px -28px rgba(88, 45, 170, 0.35);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.swx-svc-catalog__card:hover {
    border-color: #8A5CF5;
    transform: translateY(-2px);
    box-shadow: 0 22px 40px -24px rgba(138, 92, 245, 0.4);
}

.swx-svc-catalog__icon {
    display: inline-flex;
    width: 2.6rem;
    height: 2.6rem;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #5b2fc9;
    background: rgba(138, 92, 245, 0.14);
}

.swx-svc-catalog__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.swx-svc-catalog__title {
    margin: 0;
    font-family: var(--swx-font-display);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1c1624;
}

.swx-svc-catalog__text {
    margin: 0;
    flex: 1;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #2f243c;
}

.swx-svc-catalog__cta {
    font-weight: 700;
    font-size: 0.88rem;
    color: #8A5CF5;
}

@media (max-width: 900px) {
    .swx-svc-hero__grid,
    .swx-svc-fit__grid {
        grid-template-columns: 1fr;
    }

    .swx-svc-hero__panel {
        transform: none;
        max-width: 28rem;
    }

    .swx-svc-pain-grid,
    .swx-svc-steps,
    .swx-svc-scope-grid,
    .swx-svc-catalog {
        grid-template-columns: 1fr;
    }

    .swx-svc-step {
        border-right: 0;
        border-bottom: 1px solid rgba(28, 22, 36, 0.12);
    }

    .swx-svc-step:last-child {
        border-bottom: 0;
    }
}

@media (min-width: 901px) and (max-width: 1100px) {
    .swx-svc-scope-grid {
        grid-template-columns: 1fr 1fr;
    }

    .swx-svc-steps {
        grid-template-columns: 1fr 1fr;
    }

    .swx-svc-step:nth-child(2) {
        border-right: 0;
    }
}
