/* =========================================================
   WELGAR — PRESTATIONS
   Direction : atelier de conception / plan éditorial
   Dépend de assets/css/style.css pour le header/footer commun.
   ========================================================= */

.page-prestations {
    --p-ink: #171817;
    --p-dark: #101212;
    --p-ivory: #ede8dc;
    --p-ivory-hi: #f5f0e7;
    --p-muted: #686b67;
    --p-orange: #e89a64;
    --p-rule: rgba(23, 24, 23, .17);
    --p-rule-soft: rgba(23, 24, 23, .09);
    --p-max: 1460px;
    margin: 0;
    color: var(--p-ink);
    background: var(--p-ivory);
}

.page-prestations *,
.page-prestations *::before,
.page-prestations *::after {
    box-sizing: border-box;
}

.prestations-skip {
    position: fixed;
    z-index: 10000;
    top: 12px;
    left: 12px;
    transform: translateY(-160%);
    padding: 10px 14px;
    color: var(--p-dark);
    background: var(--p-ivory-hi);
    text-decoration: none;
}

.prestations-skip:focus { transform: none; }

.prestations-container {
    width: min(calc(100% - 11vw), var(--p-max));
    margin-inline: auto;
}

.prestations-kicker {
    margin: 0 0 20px;
    color: var(--p-orange);
    font-size: .78rem;
    font-weight: 650;
    letter-spacing: .22em;
}

.prestations-link {
    display: inline-flex;
    gap: 18px;
    align-items: center;
    color: var(--p-ink);
    font-weight: 550;
    text-decoration: none;
}

.prestations-link span {
    color: var(--p-orange);
    transition: transform .25s ease;
}

.prestations-link:hover span,
.prestations-link:focus-visible span {
    transform: translateX(6px);
}

/* ---------- HERO ---------- */

.prestations-hero {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: clamp(120px, 12vh, 160px) 0 82px;
    color: var(--p-ivory);
    background:
        linear-gradient(116deg, transparent 0 64%, rgba(232,154,100,.08) 64.1% 76%, transparent 76.1%),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        var(--p-dark);
    background-size: auto, 72px 72px, 72px 72px, auto;
}

.prestations-hero::before {
    content: "";
    position: absolute;
    right: -10vw;
    bottom: -31vw;
    width: 68vw;
    aspect-ratio: 1;
    border: 1px solid rgba(232,154,100,.55);
    border-radius: 50%;
    pointer-events: none;
}

.prestations-hero::after {
    content: "";
    position: absolute;
    right: 8vw;
    top: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(transparent 5%, var(--p-orange) 32%, rgba(232,154,100,.15) 76%, transparent);
    opacity: .65;
}

.prestations-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr);
    gap: clamp(50px, 8vw, 130px);
    align-items: center;
}

.prestations-hero__content { max-width: 720px; }

.prestations-hero h1 {
    max-width: 12ch;
    margin: 0;
    color: var(--p-ivory-hi);
    font-size: clamp(3.4rem, 5.4vw, 6.6rem);
    font-weight: 430;
    line-height: .96;
    letter-spacing: -.055em;
}

.prestations-hero__lead {
    max-width: 650px;
    margin: 34px 0 0;
    color: rgba(245,240,231,.82);
    font-size: clamp(1.22rem, 1.55vw, 1.55rem);
    line-height: 1.45;
}

.prestations-hero__text {
    max-width: 610px;
    margin: 16px 0 32px;
    color: rgba(245,240,231,.58);
    font-size: 1rem;
    line-height: 1.65;
}

.prestations-hero .prestations-link { color: var(--p-ivory-hi); }

.prestations-blueprint {
    position: relative;
    min-height: 610px;
}

.prestations-blueprint::before,
.prestations-blueprint::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.prestations-blueprint::before {
    inset: 10% 4% 7% 8%;
    border-top: 1px solid rgba(232,154,100,.52);
    border-left: 1px solid rgba(232,154,100,.28);
}

.prestations-blueprint::after {
    left: 0;
    top: 53%;
    width: 100%;
    height: 1px;
    background: rgba(232,154,100,.28);
}

.prestations-blueprint__frame {
    position: absolute;
    inset: 17% 9% 13% 16%;
    border: 1px solid rgba(245,240,231,.42);
    background: rgba(245,240,231,.018);
    box-shadow: 0 40px 90px rgba(0,0,0,.18);
}

.prestations-blueprint__frame::before {
    content: "";
    position: absolute;
    inset: -26px 22px 22px -26px;
    border: 1px solid rgba(232,154,100,.22);
}

.prestations-blueprint__bar,
.prestations-blueprint__block,
.prestations-blueprint__line {
    position: absolute;
    display: block;
}

.prestations-blueprint__bar {
    top: 8%;
    left: 7%;
    width: 86%;
    height: 8%;
    border-bottom: 1px solid rgba(245,240,231,.2);
}

.prestations-blueprint__block--a {
    left: 7%; top: 23%; width: 46%; height: 35%;
    border: 1px solid var(--p-orange);
    background: rgba(232,154,100,.08);
}

.prestations-blueprint__block--b {
    right: 7%; top: 23%; width: 30%; height: 16%;
    border: 1px solid rgba(245,240,231,.34);
}

.prestations-blueprint__block--c {
    right: 7%; top: 45%; width: 30%; height: 31%;
    border: 1px solid rgba(245,240,231,.18);
}

.prestations-blueprint__line {
    left: 7%;
    height: 1px;
    background: rgba(245,240,231,.26);
}

.prestations-blueprint__line--a { bottom: 28%; width: 42%; }
.prestations-blueprint__line--b { bottom: 21%; width: 34%; }
.prestations-blueprint__line--c { bottom: 14%; width: 24%; }

.prestations-blueprint__label {
    position: absolute;
    z-index: 3;
    color: rgba(245,240,231,.42);
    font-size: .64rem;
    letter-spacing: .18em;
}

.prestations-blueprint__label--01 { left: 3%; top: 8%; }
.prestations-blueprint__label--02 { right: 0; top: 49%; transform: rotate(90deg); }
.prestations-blueprint__label--03 { left: 12%; bottom: 7%; }

/* ---------- SECTIONS COMMUNES ---------- */

.prestations-section {
    position: relative;
    overflow: hidden;
    padding: clamp(105px, 10vw, 175px) 0;
    background: var(--p-ivory);
}

.prestations-section + .prestations-section {
    border-top: 1px solid rgba(23,24,23,.055);
}

.prestations-index {
    display: grid;
    grid-template-columns: auto 14px minmax(80px, 650px);
    gap: 18px;
    align-items: center;
    width: min(62%, 760px);
    margin-bottom: 34px;
    color: var(--p-orange);
    font-size: .82rem;
}

.prestations-index i {
    width: 7px;
    height: 7px;
    background: var(--p-orange);
    transform: rotate(45deg);
}

.prestations-index b {
    height: 1px;
    background: var(--p-rule);
}

.prestations-section__head {
    max-width: 880px;
    margin-bottom: clamp(55px, 6vw, 90px);
}

.prestations-section__head--right {
    margin-left: auto;
    max-width: 960px;
}

.prestations-section h2,
.prestations-cta h2 {
    margin: 0;
    color: var(--p-ink);
    font-size: clamp(3rem, 4.5vw, 5.4rem);
    font-weight: 430;
    line-height: 1;
    letter-spacing: -.05em;
}

.prestations-section__head > p:last-child {
    max-width: 720px;
    margin: 25px 0 0;
    color: var(--p-muted);
    font-size: clamp(1.08rem, 1.25vw, 1.25rem);
    line-height: 1.58;
}

/* ---------- 01 CRÉATION ---------- */

.prestations-section--creation {
    background:
        linear-gradient(135deg, transparent 0 74%, rgba(232,154,100,.055) 74.1% 86%, transparent 86.1%),
        var(--p-ivory);
}

.creation-workbench {
    display: grid;
    grid-template-columns: .78fr 1.22fr;
    gap: clamp(60px, 8vw, 140px);
    align-items: center;
}

.creation-copy {
    max-width: 500px;
}

.creation-copy h3,
.refonte-copy h3 {
    margin: 0 0 20px;
    font-size: clamp(1.55rem, 2vw, 2.15rem);
    font-weight: 500;
    letter-spacing: -.025em;
}

.creation-copy p,
.refonte-copy p {
    margin: 0 0 18px;
    color: var(--p-muted);
    line-height: 1.65;
}

.creation-copy .prestations-link,
.refonte-copy .prestations-link { margin-top: 14px; }

.creation-canvas {
    position: relative;
    min-height: 520px;
    border-top: 1px solid var(--p-rule);
    border-left: 1px solid var(--p-rule);
    background:
        linear-gradient(90deg, var(--p-rule-soft) 1px, transparent 1px),
        linear-gradient(var(--p-rule-soft) 1px, transparent 1px);
    background-size: 46px 46px;
}

.creation-canvas::before,
.creation-canvas::after {
    content: "";
    position: absolute;
    background: var(--p-orange);
}

.creation-canvas::before { width: 9px; height: 9px; left: -5px; top: -5px; transform: rotate(45deg); }
.creation-canvas::after { width: 1px; height: 86%; right: 8%; bottom: -12%; opacity: .55; }

.creation-canvas__browser {
    position: absolute;
    left: 13%;
    top: 12%;
    width: 74%;
    height: 72%;
    border: 2px solid var(--p-ink);
    background: color-mix(in srgb, var(--p-ivory-hi) 34%, transparent);
    box-shadow: 28px 28px 0 rgba(23,24,23,.035);
}

.creation-canvas__nav {
    position: absolute;
    inset: 0 0 auto;
    height: 12%;
    border-bottom: 1px solid var(--p-rule);
}

.creation-canvas__hero {
    position: absolute;
    left: 7%; top: 20%;
    width: 48%; height: 28%;
    border: 1px solid var(--p-orange);
    background: rgba(232,154,100,.055);
}

.creation-canvas__copy {
    position: absolute;
    left: 7%; top: 57%;
    width: 38%; height: 20%;
    border-top: 5px solid var(--p-ink);
    border-bottom: 1px solid var(--p-rule);
}

.creation-canvas__cta {
    position: absolute;
    left: 7%; bottom: 10%;
    width: 21%; height: 7%;
    background: var(--p-orange);
}

.creation-canvas__media {
    position: absolute;
    right: 7%; top: 20%;
    width: 34%; height: 57%;
    border: 1px solid var(--p-ink);
}

.creation-canvas__measure {
    position: absolute;
    color: var(--p-orange);
    font-size: .62rem;
    letter-spacing: .2em;
}

.creation-canvas__measure--x { left: 13%; top: 5%; }
.creation-canvas__measure--y { right: -4%; top: 48%; transform: rotate(90deg); }

/* ---------- 02 REFONTE ---------- */

.prestations-section--refonte {
    background:
        linear-gradient(105deg, rgba(23,24,23,.035) 0 18%, transparent 18.1%),
        var(--p-ivory-hi);
}

.refonte-stage {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: clamp(60px, 8vw, 130px);
    align-items: center;
}

.refonte-stage__screen {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 470px;
    border: 2px solid var(--p-ink);
    overflow: hidden;
    background: var(--p-ivory);
}

.refonte-stage__old,
.refonte-stage__new {
    position: relative;
    padding: 70px 42px 40px;
}

.refonte-stage__old {
    background:
        repeating-linear-gradient(0deg, rgba(23,24,23,.025) 0 1px, transparent 1px 24px),
        rgba(23,24,23,.025);
    opacity: .62;
}

.refonte-stage__new {
    background:
        linear-gradient(145deg, transparent 0 65%, rgba(232,154,100,.09) 65.1%),
        var(--p-ivory-hi);
}

.refonte-stage__axis {
    position: absolute;
    z-index: 5;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--p-orange);
}

.refonte-stage__axis::after {
    content: "";
    position: absolute;
    top: 48%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--p-orange);
    transform: translate(-50%,-50%) rotate(45deg);
}

.refonte-stage__tag {
    position: absolute;
    top: 25px;
    left: 32px;
    color: var(--p-orange);
    font-size: .68rem;
    letter-spacing: .2em;
}

.refonte-stage__old i,
.refonte-stage__new i {
    display: block;
    margin-bottom: 24px;
    border: 1px solid currentColor;
}

.refonte-stage__old i:nth-of-type(1) { width: 72%; height: 50px; }
.refonte-stage__old i:nth-of-type(2) { width: 92%; height: 105px; }
.refonte-stage__old i:nth-of-type(3) { width: 55%; height: 34px; }
.refonte-stage__old i:nth-of-type(4) { width: 84%; height: 62px; }

.refonte-stage__new i:nth-of-type(1) { width: 58%; height: 54px; border-color: var(--p-orange); }
.refonte-stage__new i:nth-of-type(2) { width: 100%; height: 145px; }
.refonte-stage__new i:nth-of-type(3) { width: 36%; height: 38px; background: var(--p-orange); border: 0; }
.refonte-stage__new i:nth-of-type(4) { width: 68%; height: 44px; }

/* ---------- 03 LAYERS ---------- */

.prestations-section--layers {
    background:
        linear-gradient(160deg, transparent 0 62%, rgba(23,24,23,.035) 62.1% 72%, transparent 72.1%),
        var(--p-ivory);
}

.layers {
    position: relative;
    max-width: 1180px;
    margin-left: auto;
}

.layer {
    position: relative;
    display: grid;
    grid-template-columns: 85px 1fr auto;
    gap: 28px;
    align-items: center;
    min-height: 130px;
    padding: 24px 34px;
    border: 1px solid var(--p-rule);
    background: rgba(245,240,231,.48);
}

.layer + .layer { margin-top: 16px; }
.layer--02 { margin-left: 4%; }
.layer--03 { margin-left: 8%; }
.layer--04 { margin-left: 12%; }

.layer__number {
    color: var(--p-orange);
    font-size: 1rem;
    letter-spacing: .15em;
}

.layer h3 {
    margin: 0 0 7px;
    font-size: clamp(1.25rem, 1.5vw, 1.6rem);
    font-weight: 500;
}

.layer p {
    max-width: 700px;
    margin: 0;
    color: var(--p-muted);
    line-height: 1.55;
}

.layer__note {
    color: rgba(23,24,23,.36);
    font-size: .65rem;
    letter-spacing: .18em;
    writing-mode: vertical-rl;
}

.prestations-included {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 34px;
    align-items: center;
    max-width: 1180px;
    margin: 38px 0 0 auto;
    padding-top: 26px;
    border-top: 1px solid var(--p-rule);
    color: var(--p-muted);
}

.prestations-included p { margin: 0 auto 0 0; }
.prestations-included span {
    color: var(--p-ink);
    font-size: .9rem;
}

/* ---------- 04 APPROCHE ---------- */

.prestations-section--approche {
    background: var(--p-ivory-hi);
}

.approche-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(70px, 10vw, 170px);
    align-items: end;
}

.approche-grid h2 { max-width: 12ch; }

.approche-copy {
    padding-bottom: 10px;
    color: var(--p-muted);
    font-size: clamp(1.05rem, 1.2vw, 1.2rem);
    line-height: 1.65;
}

.approche-copy p { margin: 0 0 18px; }

.approche-path {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
    gap: 18px;
    align-items: center;
    margin-top: 95px;
    color: var(--p-ink);
    font-size: .7rem;
    letter-spacing: .15em;
}

.approche-path i {
    position: relative;
    height: 1px;
    background: var(--p-rule);
}

.approche-path i::after {
    content: "";
    position: absolute;
    right: -4px;
    top: -4px;
    width: 9px;
    height: 9px;
    background: var(--p-orange);
    transform: rotate(45deg);
}

/* ---------- CTA ---------- */

.prestations-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(110px, 11vw, 175px) 0 clamp(150px, 14vw, 220px);
    color: var(--p-ivory);
    background:
        linear-gradient(125deg, transparent 0 63%, rgba(232,154,100,.16) 63.1% 73%, transparent 73.1%),
        var(--p-dark);
}

.prestations-cta::before {
    content: "";
    position: absolute;
    right: -13%;
    top: -45%;
    width: 58%;
    aspect-ratio: 1;
    border: 1px solid rgba(232,154,100,.5);
    transform: rotate(45deg);
}

.prestations-cta__inner {
    position: relative;
    z-index: 2;
}

.prestations-cta h2 {
    max-width: 13ch;
    color: var(--p-ivory-hi);
}

.prestations-cta p:not(.prestations-kicker) {
    max-width: 650px;
    margin: 28px 0 0;
    color: rgba(245,240,231,.64);
    font-size: 1.08rem;
    line-height: 1.6;
}

.prestations-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: center;
    margin-top: 38px;
}

.prestations-btn {
    display: inline-flex;
    gap: 34px;
    align-items: center;
    min-height: 58px;
    padding: 15px 25px;
    border: 1px solid var(--p-orange);
    color: var(--p-dark);
    background: var(--p-orange);
    text-decoration: none;
    font-weight: 600;
}

.prestations-btn span { transition: transform .25s ease; }
.prestations-btn:hover span,
.prestations-btn:focus-visible span { transform: translateX(6px); }

.prestations-link--light { color: var(--p-ivory-hi); }


/* ---------- RESPONSIVE ---------- */

@media (max-width: 1050px) {
    .prestations-hero__grid {
        grid-template-columns: 1fr;
    }

    .prestations-blueprint {
        min-height: 480px;
    }

    .creation-workbench,
    .refonte-stage,
    .approche-grid {
        grid-template-columns: 1fr;
    }

    .creation-copy,
    .refonte-copy {
        max-width: 720px;
    }

    .refonte-copy { order: -1; }

    .layer--02,
    .layer--03,
    .layer--04 { margin-left: 0; }
}

@media (max-width: 760px) {
    .prestations-container {
        width: min(calc(100% - 40px), var(--p-max));
    }

    .prestations-hero {
        min-height: auto;
        padding-top: 130px;
    }

    .prestations-hero h1 {
        font-size: clamp(3rem, 14vw, 4.8rem);
    }

    .prestations-blueprint {
        min-height: 390px;
    }

    .prestations-blueprint__frame {
        inset: 14% 2% 10% 8%;
    }

    .prestations-section {
        padding: 92px 0;
    }

    .prestations-section h2,
    .prestations-cta h2 {
        font-size: clamp(2.7rem, 12vw, 4.4rem);
    }

    .prestations-index {
        width: 100%;
    }

    .creation-canvas {
        min-height: 390px;
    }

    .creation-canvas__browser {
        left: 7%;
        width: 86%;
    }

    .refonte-stage__screen {
        min-height: 380px;
    }

    .refonte-stage__old,
    .refonte-stage__new {
        padding: 60px 18px 24px;
    }

    .layer {
        grid-template-columns: 54px 1fr;
        padding: 22px 20px;
    }

    .layer__note { display: none; }

    .prestations-included {
        display: grid;
        grid-template-columns: 1fr;
    }

    .approche-path {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 58px;
    }

    .approche-path i {
        width: 1px;
        height: 28px;
        margin-left: 6px;
    }

    .approche-path i::after {
        right: -4px;
        top: auto;
        bottom: -4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-prestations *,
    .page-prestations *::before,
    .page-prestations *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* =========================================================
   AJUSTEMENT — RYTHME VERTICAL + FOOTER TYPE TARIFS
   ========================================================= */

/* Entre deux chapitres clairs : respiration équivalente à
   environ deux lignes du H1, sans agrandir inutilement le
   contenu interne de chaque section. */
@media (min-width: 901px) {
    .prestations-section {
        padding-block: clamp(7.2rem, 9vw, 10.8rem);
    }
}

/* Le CTA est déjà noir : comme sur Tarifs, le footer devient
   transparent pour laisser le même fond graphite se poursuivre. */
.page-prestations {
    background-color: var(--p-dark);
}

.page-prestations .prestations-cta,
.page-prestations .site-footer {
    background-color: var(--p-dark);
}

.page-prestations .site-footer {
    background-image: none !important;
    color: #fff;
}

.page-prestations .site-footer__inner,
.page-prestations .site-footer__brand,
.page-prestations .site-footer__links a,
.page-prestations .site-footer__links a::before {
    color: #fff;
}

.page-prestations .site-footer__links a:focus-visible {
    outline-color: #fff;
}

@media (max-width: 900px) {
    .prestations-section {
        padding-block: clamp(5.4rem, 13vw, 7rem);
    }
}


/* =========================================================
   V3 — CADRAGE 1920 × 1080
   01 / 02 / 03 : chaque chapitre tient dans un écran.
   04 + CTA + footer : composés comme un seul dernier écran.
   ========================================================= */

@media (min-width: 1200px) and (min-height: 850px) {

    /* 01 / 02 / 03 : un chapitre = une vue */
    .prestations-section--creation,
    .prestations-section--refonte,
    .prestations-section--layers {
        height: 100vh;
        min-height: 760px;
        max-height: 1080px;
        padding-block: clamp(58px, 6vh, 72px);
        display: flex;
        align-items: center;
    }

    .prestations-section--creation > .prestations-container,
    .prestations-section--refonte > .prestations-container,
    .prestations-section--layers > .prestations-container {
        width: min(calc(100% - 11vw), var(--p-max));
    }

    .prestations-index {
        margin-bottom: clamp(18px, 2.2vh, 26px);
    }

    .prestations-section__head {
        margin-bottom: clamp(30px, 4vh, 44px);
    }

    .prestations-section__head > p:last-child {
        margin-top: 18px;
    }

    .creation-workbench,
    .refonte-stage {
        gap: clamp(54px, 6vw, 105px);
    }

    .creation-canvas {
        min-height: 390px;
        height: min(43vh, 465px);
    }

    .refonte-stage__screen {
        min-height: 365px;
        height: min(42vh, 450px);
    }

    .refonte-stage__old,
    .refonte-stage__new {
        padding-top: 60px;
        padding-bottom: 24px;
    }

    .refonte-stage__old i,
    .refonte-stage__new i {
        margin-bottom: 17px;
    }

    .refonte-stage__old i:nth-of-type(2) { height: 86px; }
    .refonte-stage__old i:nth-of-type(4) { height: 48px; }
    .refonte-stage__new i:nth-of-type(2) { height: 112px; }
    .refonte-stage__new i:nth-of-type(4) { height: 36px; }

    .layer {
        min-height: 100px;
        padding-block: 18px;
    }

    .layer + .layer {
        margin-top: 10px;
    }

    .prestations-included {
        margin-top: 24px;
        padding-top: 18px;
    }

    /* -----------------------------------------------------
       DERNIER ÉCRAN : 04 + CTA + FOOTER = 100vh
       04 ≈ 47% / CTA ≈ 43% / footer ≈ 10%
       ----------------------------------------------------- */

    .prestations-section--approche {
        height: 47vh;
        min-height: 0;
        padding: clamp(42px, 5vh, 58px) 0 clamp(30px, 3.5vh, 42px);
        display: flex;
        align-items: center;
    }

    .prestations-section--approche .prestations-index {
        margin-bottom: clamp(16px, 1.8vh, 22px);
    }

    .approche-grid {
        gap: clamp(60px, 8vw, 135px);
    }

    .approche-copy {
        font-size: clamp(.98rem, 1.05vw, 1.08rem);
        line-height: 1.52;
    }

    .approche-copy p {
        margin-bottom: 12px;
    }

    .approche-path {
        margin-top: clamp(28px, 3.5vh, 40px);
    }

    .prestations-cta {
        height: 43vh;
        min-height: 0;
        padding: clamp(46px, 5.5vh, 64px) 0 clamp(34px, 4vh, 48px);
        display: flex;
        align-items: center;
        background-color: var(--p-dark);
        background-image:
            linear-gradient(125deg,
                transparent 0 63%,
                rgba(232,154,100,.16) 63.1% 73%,
                transparent 73.1%);
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }

    .prestations-cta h2 {
        font-size: clamp(2.8rem, 3.7vw, 4.45rem);
    }

    .prestations-cta p:not(.prestations-kicker) {
        margin-top: 18px;
    }

    .prestations-cta__actions {
        margin-top: 26px;
    }

    /* Le footer reprend le même fond que le CTA.
       Le décor géométrique du CTA est répété avec le même repère
       afin qu'il ne s'arrête plus brutalement au changement de bloc. */
    .page-prestations .site-footer {
        height: 10vh;
        min-height: 88px;
        max-height: 108px;
        background-color: var(--p-dark) !important;
        background-image:
            linear-gradient(125deg,
                transparent 0 63%,
                rgba(232,154,100,.16) 63.1% 73%,
                transparent 73.1%) !important;
        background-repeat: no-repeat !important;
        background-size: 100% 430% !important;
        background-position: center bottom !important;
    }

    /* On conserve le SVG/liseré du footer commun au-dessus du fond. */
    .page-prestations .site-footer::before {
        z-index: 1;
    }

    .page-prestations .site-footer__inner {
        z-index: 2;
    }
}

/* À 1080 px exactement, verrouillage du dernier écran à 1080 px :
   508 + 464 + 108 = 1080. */
@media (min-width: 1200px) and (height: 1080px) {
    .prestations-section--approche { height: 508px; }
    .prestations-cta { height: 464px; }
    .page-prestations .site-footer { height: 108px; }
}


/* =========================================================
   V4 — RESPONSIVE COMPLET
   Desktop large : conserve le cadrage 1920×1080.
   Laptop / tablette / mobile : les hauteurs fixes sont libérées.
   ========================================================= */

/* ---------- LAPTOP / PETIT DESKTOP ---------- */
@media (min-width: 901px) and (max-width: 1199px) {
    .prestations-container {
        width: min(calc(100% - 72px), var(--p-max));
    }

    .prestations-hero {
        min-height: 760px;
        padding: 120px 0 72px;
    }

    .prestations-hero__grid {
        grid-template-columns: minmax(0, .95fr) minmax(390px, 1.05fr);
        gap: 48px;
    }

    .prestations-hero h1 {
        font-size: clamp(3.6rem, 6vw, 5.3rem);
    }

    .prestations-blueprint {
        min-height: 480px;
    }

    .prestations-section,
    .prestations-section--creation,
    .prestations-section--refonte,
    .prestations-section--layers,
    .prestations-section--approche {
        height: auto;
        min-height: 0;
        max-height: none;
        padding: 88px 0;
        display: block;
    }

    .creation-workbench,
    .refonte-stage {
        gap: 52px;
    }

    .creation-canvas {
        min-height: 420px;
        height: auto;
    }

    .refonte-stage__screen {
        min-height: 420px;
        height: auto;
    }

    .prestations-cta {
        height: auto;
        min-height: 520px;
        padding: 88px 0 120px;
    }

    .page-prestations .site-footer {
        height: var(--footer-svg-h);
        min-height: 0;
        max-height: none;
    }
}

/* ---------- TABLETTE / NAV MOBILE ---------- */
@media (max-width: 900px) {
    .page-prestations {
        overflow-x: hidden;
    }

    .prestations-container {
        width: min(calc(100% - 48px), var(--p-max));
    }

    .prestations-hero {
        min-height: auto;
        padding: 118px 0 78px;
    }

    .prestations-hero__grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .prestations-hero__content {
        max-width: 720px;
    }

    .prestations-hero h1 {
        max-width: 11ch;
        font-size: clamp(3.4rem, 9vw, 5.3rem);
    }

    .prestations-hero__lead {
        max-width: 620px;
    }

    .prestations-blueprint {
        width: min(100%, 680px);
        min-height: 430px;
        margin-inline: auto;
    }

    .prestations-section,
    .prestations-section--creation,
    .prestations-section--refonte,
    .prestations-section--layers,
    .prestations-section--approche {
        height: auto;
        min-height: 0;
        max-height: none;
        padding: 82px 0;
        display: block;
    }

    .prestations-section__head,
    .prestations-section__head--right {
        max-width: 760px;
        margin: 0 0 48px;
    }

    .prestations-section h2,
    .prestations-cta h2 {
        font-size: clamp(2.9rem, 8vw, 4.6rem);
    }

    .creation-workbench,
    .refonte-stage,
    .approche-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .creation-copy,
    .refonte-copy {
        max-width: 680px;
    }

    .refonte-copy {
        order: -1;
    }

    .creation-canvas {
        width: min(100%, 720px);
        min-height: 430px;
        height: auto;
        margin-inline: auto;
    }

    .refonte-stage__screen {
        width: min(100%, 720px);
        min-height: 420px;
        height: auto;
        margin-inline: auto;
    }

    .layers {
        max-width: 760px;
        margin-inline: auto;
    }

    .layer,
    .layer--02,
    .layer--03,
    .layer--04 {
        margin-left: 0;
    }

    .prestations-included {
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
    }

    .approche-path {
        margin-top: 58px;
    }

    .prestations-cta {
        height: auto;
        min-height: 0;
        padding: 84px 0 118px;
        display: block;
        background-color: var(--p-dark);
        background-image:
            linear-gradient(125deg,
                transparent 0 61%,
                rgba(232,154,100,.16) 61.1% 74%,
                transparent 74.1%);
        background-size: 100% 100%;
    }

    .page-prestations .site-footer {
        height: var(--footer-svg-h);
        min-height: 0;
        max-height: none;
        background-color: var(--p-dark) !important;
        background-image:
            linear-gradient(125deg,
                transparent 0 61%,
                rgba(232,154,100,.16) 61.1% 74%,
                transparent 74.1%) !important;
        background-size: 100% 420% !important;
        background-position: center bottom !important;
    }
}

/* ---------- MOBILE ---------- */
@media (max-width: 600px) {
    .prestations-container {
        width: calc(100% - 36px);
    }

    .prestations-kicker {
        margin-bottom: 14px;
        font-size: .68rem;
        letter-spacing: .19em;
    }

    .prestations-hero {
        padding: 106px 0 62px;
    }

    .prestations-hero::before {
        right: -48vw;
        bottom: -28vw;
        width: 115vw;
    }

    .prestations-hero::after {
        right: 18px;
    }

    .prestations-hero h1 {
        max-width: 10ch;
        font-size: clamp(2.8rem, 14vw, 4.15rem);
        line-height: .98;
    }

    .prestations-hero__lead {
        margin-top: 25px;
        font-size: 1.08rem;
        line-height: 1.48;
    }

    .prestations-hero__text {
        margin: 13px 0 26px;
        font-size: .94rem;
    }

    .prestations-blueprint {
        min-height: 310px;
        margin-top: 4px;
    }

    .prestations-blueprint__frame {
        inset: 13% 4% 11% 9%;
    }

    .prestations-blueprint__label--02 {
        right: -22px;
    }

    .prestations-section,
    .prestations-section--creation,
    .prestations-section--refonte,
    .prestations-section--layers,
    .prestations-section--approche {
        padding: 68px 0;
    }

    .prestations-index {
        grid-template-columns: auto 10px 1fr;
        gap: 12px;
        width: 100%;
        margin-bottom: 22px;
    }

    .prestations-index i {
        width: 6px;
        height: 6px;
    }

    .prestations-section__head,
    .prestations-section__head--right {
        margin-bottom: 38px;
    }

    .prestations-section h2,
    .prestations-cta h2 {
        font-size: clamp(2.55rem, 12.5vw, 3.75rem);
        line-height: 1.01;
    }

    .prestations-section__head > p:last-child {
        margin-top: 18px;
        font-size: 1rem;
        line-height: 1.55;
    }

    .creation-workbench,
    .refonte-stage,
    .approche-grid {
        gap: 34px;
    }

    .creation-copy h3,
    .refonte-copy h3 {
        font-size: 1.45rem;
    }

    .creation-copy p,
    .refonte-copy p,
    .approche-copy {
        font-size: .96rem;
        line-height: 1.58;
    }

    .creation-canvas {
        min-height: 310px;
        background-size: 34px 34px;
    }

    .creation-canvas__browser {
        left: 7%;
        top: 13%;
        width: 86%;
        height: 72%;
        box-shadow: 14px 14px 0 rgba(23,24,23,.035);
    }

    .creation-canvas__measure--x {
        left: 7%;
        top: 5%;
    }

    .creation-canvas__measure--y {
        right: -28px;
    }

    .refonte-stage__screen {
        min-height: 320px;
        grid-template-columns: 1fr 1fr;
    }

    .refonte-stage__old,
    .refonte-stage__new {
        padding: 52px 13px 18px;
    }

    .refonte-stage__tag {
        top: 18px;
        left: 13px;
        font-size: .56rem;
    }

    .refonte-stage__old i,
    .refonte-stage__new i {
        margin-bottom: 13px;
    }

    .refonte-stage__old i:nth-of-type(1),
    .refonte-stage__new i:nth-of-type(1) { height: 34px; }

    .refonte-stage__old i:nth-of-type(2) { height: 68px; }
    .refonte-stage__new i:nth-of-type(2) { height: 86px; }

    .refonte-stage__old i:nth-of-type(3),
    .refonte-stage__new i:nth-of-type(3) { height: 28px; }

    .refonte-stage__old i:nth-of-type(4),
    .refonte-stage__new i:nth-of-type(4) { height: 34px; }

    .layer {
        grid-template-columns: 40px 1fr;
        gap: 13px;
        min-height: 0;
        padding: 20px 16px;
    }

    .layer + .layer {
        margin-top: 10px;
    }

    .layer__number {
        align-self: start;
        padding-top: 3px;
        font-size: .78rem;
    }

    .layer h3 {
        font-size: 1.16rem;
    }

    .layer p {
        font-size: .9rem;
        line-height: 1.5;
    }

    .layer__note {
        display: none;
    }

    .prestations-included {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
        margin-top: 25px;
        padding-top: 20px;
    }

    .prestations-included p {
        margin-bottom: 4px;
    }

    .approche-grid {
        align-items: start;
    }

    .approche-path {
        grid-template-columns: 1fr;
        gap: 9px;
        margin-top: 42px;
    }

    .approche-path i {
        width: 1px;
        height: 22px;
        margin-left: 5px;
    }

    .approche-path i::after {
        top: auto;
        right: -4px;
        bottom: -4px;
    }

    .prestations-cta {
        padding: 70px 0 92px;
    }

    .prestations-cta::before {
        right: -55%;
        top: -12%;
        width: 120%;
    }

    .prestations-cta p:not(.prestations-kicker) {
        margin-top: 19px;
        font-size: .98rem;
    }

    .prestations-cta__actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        margin-top: 28px;
    }

    .prestations-btn {
        width: 100%;
        justify-content: space-between;
    }

    .page-prestations .site-footer {
        background-size: 100% 650% !important;
    }
}

/* ---------- TRÈS PETIT MOBILE ---------- */
@media (max-width: 390px) {
    .prestations-container {
        width: calc(100% - 28px);
    }

    .prestations-hero h1 {
        font-size: clamp(2.55rem, 13.5vw, 3.2rem);
    }

    .prestations-blueprint {
        min-height: 270px;
    }

    .creation-canvas {
        min-height: 275px;
    }

    .refonte-stage__screen {
        min-height: 285px;
    }

    .prestations-section h2,
    .prestations-cta h2 {
        font-size: clamp(2.35rem, 12vw, 3rem);
    }
}

/* ---------- PAYSAGE BAS : aucune hauteur fixe ---------- */
@media (orientation: landscape) and (max-height: 760px) {
    .prestations-hero,
    .prestations-section,
    .prestations-section--creation,
    .prestations-section--refonte,
    .prestations-section--layers,
    .prestations-section--approche,
    .prestations-cta {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .prestations-hero {
        padding-top: 110px;
    }

    .prestations-section {
        padding-block: 72px;
    }
}


/* =========================================================
   MOBILE — VISUELS RETIRÉS
   Hero + sections 01 et 02 : priorité au contenu texte.
   ========================================================= */
@media (max-width: 600px) {

    /* Hero : suppression de la composition graphique */
    .prestations-blueprint {
        display: none !important;
    }

    .prestations-hero__grid {
        display: block;
    }

    /* 01 — Création : suppression du visuel de construction */
    .creation-canvas {
        display: none !important;
    }

    .creation-workbench {
        display: block;
    }

    /* 02 — Refonte : suppression du comparatif graphique */
    .refonte-stage__screen {
        display: none !important;
    }

    .refonte-stage {
        display: block;
    }

    /* Les sections n'ont plus besoin de l'espace réservé aux visuels */
    .prestations-hero {
        padding-bottom: 68px;
    }

    .prestations-section--creation,
    .prestations-section--refonte {
        padding-block: 68px;
    }
}


/* =========================================================
   PRESTATIONS — RACCORD CTA → FOOTER — CORRECTION FINALE
   Le décor du CTA ne redémarre plus dans le footer :
   le footer se pose physiquement SUR la fin du CTA.
   ========================================================= */

/* Aucun décor "copié" dans le footer. */
.page-prestations .site-footer {
    position: relative !important;
    z-index: 5 !important;
    background: transparent !important;
    background-image: none !important;
    overflow: visible !important;
}

.page-prestations .site-footer::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

.page-prestations .site-footer::before {
    z-index: 1 !important;
}

.page-prestations .site-footer__inner {
    z-index: 2 !important;
}


/* ---------------------------------------------------------
   GRAND DESKTOP
   04 + CTA + footer restent exactement dans un écran.
   Ancien calcul : 47vh + 43vh + 10vh = 100vh.
   Nouveau calcul : 47vh + 53vh + footer superposé 10vh = 100vh.
   Le contenu du CTA est remonté de 5vh pour conserver EXACTEMENT
   sa position visuelle précédente.
   --------------------------------------------------------- */
@media (min-width: 1200px) and (min-height: 850px) {

    .prestations-cta {
        position: relative !important;
        z-index: 1 !important;
        height: 53vh !important;
        min-height: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;

        /* Le décor original du CTA couvre maintenant aussi
           la zone située derrière le footer. */
        background-color: var(--p-dark) !important;
        background-image:
            linear-gradient(
                125deg,
                transparent 0 63%,
                rgba(232,154,100,.16) 63.1% 73%,
                transparent 73.1%
            ) !important;
        background-repeat: no-repeat !important;
        background-size: 100% 100% !important;
    }

    .prestations-cta__inner {
        transform: translateY(-5vh);
    }

    .page-prestations .site-footer {
        height: 10vh !important;
        min-height: 88px !important;
        max-height: 108px !important;
        margin-top: -10vh !important;
    }
}


/* Verrouillage exact 1920 × 1080 :
   508 + 572 + 108 - 108 = 1080. */
@media (min-width: 1200px) and (height: 1080px) {

    .prestations-section--approche {
        height: 508px !important;
    }

    .prestations-cta {
        height: 572px !important;
    }

    .prestations-cta__inner {
        transform: translateY(-54px) !important;
    }

    .page-prestations .site-footer {
        --footer-svg-h: 108px !important;
        height: 108px !important;
        min-height: 108px !important;
        max-height: 108px !important;
        margin-top: -108px !important;
    }
}


/* ---------------------------------------------------------
   LAPTOP / TABLETTE
   Hauteur libre : on réserve simplement la hauteur du footer
   DANS le CTA puis on superpose le footer dessus.
   --------------------------------------------------------- */
@media (min-width: 601px) and (max-width: 1199px) {

    .prestations-cta {
        position: relative !important;
        z-index: 1 !important;
        height: auto !important;
        min-height: 0 !important;
        padding-bottom: calc(118px + var(--footer-svg-h)) !important;
        overflow: hidden !important;
    }

    .prestations-cta__inner {
        transform: none !important;
    }

    .page-prestations .site-footer {
        height: var(--footer-svg-h) !important;
        min-height: 0 !important;
        max-height: none !important;
        margin-top: calc(-1 * var(--footer-svg-h)) !important;
    }
}


/* ---------------------------------------------------------
   MOBILE
   Même principe, avec le footer commun de 110 px.
   Aucun background-size 650%, aucun raccord artificiel.
   --------------------------------------------------------- */
@media (max-width: 600px) {

    .prestations-cta {
        position: relative !important;
        z-index: 1 !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 70px 0 202px !important; /* 92px existants + 110px footer */
        overflow: hidden !important;

        background-color: var(--p-dark) !important;
        background-image:
            linear-gradient(
                125deg,
                transparent 0 61%,
                rgba(232,154,100,.16) 61.1% 74%,
                transparent 74.1%
            ) !important;
        background-repeat: no-repeat !important;
        background-size: 100% 100% !important;
    }

    .prestations-cta__inner {
        transform: none !important;
    }

    .page-prestations .site-footer {
        --footer-svg-h: 110px !important;
        height: 110px !important;
        min-height: 110px !important;
        max-height: 110px !important;
        margin-top: -110px !important;
        background: transparent !important;
        background-image: none !important;
    }
}


/* Le SVG commun reste le SEUL dessin du footer. */
.page-prestations .site-footer::before {
    background:
        url("../svg/ui/welgar-footer-transition.svg")
        center bottom / 100% 100%
        no-repeat !important;
}

@media (min-width: 901px) {
    .page-prestations .site-footer::before {
        background:
            url("../svg/ui/welgar-footer-transition-desktop.svg")
            center bottom / 100% 100%
            no-repeat !important;
    }
}
