/* =========================================================
   WELGAR — CONTACT
   Desktop 1920 × 1080 :
   50 % ivoire / 50 % graphite, axe central = pointe du footer.
   Le footer SVG reste celui de style.css.
   ========================================================= */

.page-contact {
    --c-ink: #171817;
    --c-dark: #101212;
    --c-ivory: #ede8dc;
    --c-ivory-hi: #f5f0e7;
    --c-muted: #686b67;
    --c-orange: #e89a64;
    --c-rule: rgba(23,24,23,.17);
    --c-max: var(--container, 1540px);

    margin: 0;
    color: var(--c-ink);
    background: var(--c-ivory-hi);
    overflow-x: hidden;
}

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

.contact-container {
    width: min(calc(100% - 110px), var(--c-max));
    margin-inline: auto;
}

.contact-skip {
    position: fixed;
    z-index: 9999;
    top: 12px;
    left: 12px;
    padding: .7rem 1rem;
    background: #fff;
    color: #111;
    transform: translateY(-180%);
}
.contact-skip:focus { transform: translateY(0); }

/* =========================================================
   HERO — 50 / 50 EXACT
   ========================================================= */

.page-contact main {
    background:
        linear-gradient(
            90deg,
            var(--c-ivory-hi) 0,
            var(--c-ivory-hi) 50%,
            var(--c-dark) 50%,
            var(--c-dark) 100%
        );
}

.contact-hero {
    position: relative;
    display: flex;
    align-items: center;

    /*
       À 1920×1080 le footer commun vaut 130px.
       On laisse le header en overlay : Hero + footer = viewport.
    */
    height: calc(100vh - var(--footer-svg-h, 130px));
    min-height: 0;
    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            var(--c-ivory-hi) 0,
            var(--c-ivory-hi) 50%,
            var(--c-dark) 50%,
            var(--c-dark) 100%
        );
}

.contact-hero::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0 0 0 50%;
    pointer-events: none;
    background:
        linear-gradient(118deg,
            transparent 0 45%,
            rgba(232,154,100,.065) 45.1% 57%,
            transparent 57.1%),
        linear-gradient(118deg,
            transparent 0 67%,
            rgba(255,255,255,.025) 67.1% 79%,
            transparent 79.1%),
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: auto, auto, 72px 72px, 72px 72px;
}

.contact-hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: -8%;
    left: 67%;
    width: 1px;
    height: 120%;
    background: rgba(232,154,100,.28);
    transform: rotate(11deg);
    transform-origin: center;
}

.contact-hero__grid {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 0;
    align-items: center;

    padding-top: 76px;
    padding-bottom: 18px;
}

/* =========================================================
   FORMULAIRE — centré dans la moitié gauche
   ========================================================= */

.contact-form {
    position: relative;
    justify-self: start;

    width: calc(100% - clamp(52px, 5vw, 96px));
    max-width: 650px;

    margin-right: clamp(52px, 5vw, 96px);
    padding: 26px 36px 23px;

    background: rgba(237,232,220,.56);
    border: 1px solid var(--c-rule);
    box-shadow: 0 20px 60px rgba(16,18,18,.045);
}

.contact-form::before {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 66px;
    height: 66px;
    border-top: 2px solid var(--c-orange);
    border-right: 2px solid var(--c-orange);
    pointer-events: none;
}

.contact-kicker {
    margin: 0 0 .62rem;
    color: var(--c-orange);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
}

.contact-form h1 {
    max-width: 10ch;
    margin: 0 0 .95rem;
    color: var(--c-ink);
    font-size: clamp(2.6rem, 2.9vw, 3.55rem);
    font-weight: 620;
    line-height: .96;
    letter-spacing: -.05em;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.contact-field { margin-bottom: 13px; }

.contact-field label,
.contact-project legend {
    display: block;
    margin: 0 0 5px;
    color: var(--c-ink);
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.contact-field__optional {
    margin-left: .4rem;
    color: var(--c-muted);
    font-size: .60rem;
    font-weight: 500;
    letter-spacing: .03em;
    text-transform: none;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 7px 2px;
    border: 0;
    border-bottom: 1px solid rgba(23,24,23,.30);
    border-radius: 0;
    outline: none;
    background: transparent;
    color: var(--c-ink);
    font: inherit;
    transition: border-color .2s ease, background-color .2s ease;
}

.contact-field textarea {
    min-height: 76px;
    resize: vertical;
    line-height: 1.45;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-bottom-color: var(--c-orange);
    background: rgba(255,255,255,.16);
}

.contact-field textarea::placeholder {
    color: rgba(23,24,23,.36);
}

.contact-project {
    margin: 0 0 13px;
    padding: 0;
    border: 0;
}

.contact-project__choices {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
}

.contact-project label {
    position: relative;
    cursor: pointer;
}

.contact-project input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contact-project label span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    border: 1px solid var(--c-rule);
    color: var(--c-ink);
    font-size: .75rem;
    transition: border-color .2s ease, background-color .2s ease;
}

.contact-project input:checked + span {
    border-color: var(--c-orange);
    background: rgba(232,154,100,.13);
}

.contact-project input:focus-visible + span {
    outline: 2px solid var(--c-ink);
    outline-offset: 3px;
}

.contact-consent {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 10px;
    align-items: start;
    margin: 0 0 12px;
    color: var(--c-muted);
    font-size: .67rem;
    line-height: 1.4;
}

.contact-consent input {
    margin: 2px 0 0;
    accent-color: var(--c-orange);
}

.contact-consent a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.contact-submit {
    width: 100%;
    min-height: 45px;
    padding: 0 20px;
    border: 1px solid var(--c-orange);
    background: var(--c-orange);
    color: var(--c-dark);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease;
}

.contact-submit:hover { transform: translateY(-2px); }

.contact-submit:focus-visible {
    outline: 2px solid var(--c-ink);
    outline-offset: 4px;
}

.contact-form__required {
    margin: 7px 0 0;
    color: var(--c-muted);
    font-size: .63rem;
}

/* =========================================================
   HERO DROIT — centré dans sa moitié
   ========================================================= */

.contact-hero__content {
    position: relative;
    justify-self: end;

    width: calc(100% - clamp(52px, 5vw, 96px));
    max-width: 650px;

    margin-left: clamp(52px, 5vw, 96px);

    color: #fff;
}

.contact-hero__content .contact-kicker {
    color: var(--c-orange);
}

.contact-hero__content h2 {
    max-width: 12ch;
    margin: 0;
    color: #fff;
    font-size: clamp(3rem, 3.65vw, 4.45rem);
    font-weight: 620;
    line-height: .98;
    letter-spacing: -.05em;
}

.contact-hero__lead {
    max-width: 560px;
    margin: 1.35rem 0 0;
    color: rgba(255,255,255,.86);
    font-size: clamp(1rem, 1.05vw, 1.16rem);
    line-height: 1.55;
}

.contact-hero__text {
    max-width: 560px;
    margin: .72rem 0 0;
    color: rgba(255,255,255,.58);
    line-height: 1.6;
}

.contact-response {
    display: grid;
    grid-template-columns: 11px 1fr;
    gap: 16px;
    align-items: start;
    max-width: 520px;
    margin-top: 1.45rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255,255,255,.16);
}

.contact-response > span {
    width: 8px;
    height: 8px;
    margin-top: 5px;
    background: var(--c-orange);
    transform: rotate(45deg);
}

.contact-response strong {
    color: #fff;
    font-size: .87rem;
}

.contact-response p {
    margin: .28rem 0 0;
    color: rgba(255,255,255,.52);
    font-size: .81rem;
    line-height: 1.5;
}

.contact-hero__drawing {
    position: relative;
    width: min(100%,520px);
    height: 72px;
    margin-top: 1.25rem;
}

.contact-hero__drawing::before {
    content: "";
    position: absolute;
    left: 0;
    top: 30px;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,.13);
}

.contact-hero__line {
    position: absolute;
    display: block;
    height: 1px;
    transform-origin: left center;
}

.contact-hero__line--01 {
    left: 2%;
    top: 14px;
    width: 45%;
    background: rgba(232,154,100,.65);
    transform: rotate(8deg);
}

.contact-hero__line--02 {
    left: 37%;
    top: 38px;
    width: 42%;
    background: rgba(255,255,255,.25);
    transform: rotate(-10deg);
}

.contact-hero__line--03 {
    right: 0;
    top: 26px;
    width: 28%;
    background: rgba(232,154,100,.48);
    transform: rotate(16deg);
}

.contact-hero__marker {
    position: absolute;
    left: 48%;
    top: 25px;
    width: 8px;
    height: 8px;
    background: var(--c-orange);
    transform: rotate(45deg);
}

.contact-hero__drawing small {
    position: absolute;
    left: 0;
    bottom: 0;
    color: rgba(255,255,255,.36);
    font-size: .6rem;
    letter-spacing: .16em;
}

/* =========================================================
   FOOTER INDEX — SVG CLASSIQUE
   La pointe centrale coïncide avec le split 50 / 50.
   ========================================================= */

.page-contact .site-footer {
    background: transparent !important;
}

/* © 2026 + WELGAR : moitié claire */
.page-contact .site-footer__copyright,
.page-contact .site-footer__brand {
    color: #111 !important;
}

/* liens légaux : moitié sombre */
.page-contact .site-footer__links a {
    color: rgba(255,255,255,.82) !important;
}

.page-contact .site-footer__links a::before {
    color: rgba(255,255,255,.52) !important;
}

.page-contact .site-footer__links a:hover,
.page-contact .site-footer__links a:focus-visible {
    color: #fff !important;
}

.page-contact .site-footer__links a:focus-visible {
    outline-color: rgba(255,255,255,.7) !important;
}

/* =========================================================
   1920 × 1080 — verrouillage de la composition
   ========================================================= */

@media (min-width: 1600px) and (min-height: 950px) {
    .contact-hero {
        height: calc(100vh - var(--footer-svg-h, 130px));
    }

    .contact-hero__grid {
        padding-top: 72px;
        padding-bottom: 12px;
    }
}

/* Desktop bas : toujours sans scroll */
@media (min-width: 1101px) and (max-height: 900px) {
    .contact-hero__grid {
        padding-top: 64px;
        padding-bottom: 8px;
    }

    .contact-form {
        padding: 18px 28px 17px;
    }

    .contact-form h1 {
        margin-bottom: .7rem;
        font-size: clamp(2.25rem,2.6vw,3rem);
    }

    .contact-field { margin-bottom: 9px; }
    .contact-project { margin-bottom: 9px; }
    .contact-field textarea { min-height: 58px; }
    .contact-consent { margin-bottom: 9px; }
    .contact-submit { min-height: 40px; }

    .contact-hero__content h2 {
        font-size: clamp(2.75rem,3.35vw,4rem);
    }

    .contact-hero__drawing {
        height: 58px;
        margin-top: .9rem;
    }
}

/* =========================================================
   TABLETTE
   À partir d'ici le scroll est naturel.
   ========================================================= */

@media (max-width: 1100px) {
    .contact-container {
        width: calc(100% - 64px);
    }

    .page-contact main {
        background: var(--c-ivory-hi);
    }

    .contact-hero {
        display: block;
        height: auto;
        min-height: 0;
        overflow: hidden;
        background:
            linear-gradient(
                180deg,
                var(--c-ivory-hi) 0,
                var(--c-ivory-hi) 51%,
                var(--c-dark) 51%,
                var(--c-dark) 100%
            );
    }

    .contact-hero::before {
        inset: 51% 0 0;
    }

    .contact-hero::after {
        display: none;
    }

    .contact-hero__grid {
        grid-template-columns: 1fr;
        gap: 96px;
        padding-top: 130px;
        padding-bottom: 90px;
    }

    .contact-form,
    .contact-hero__content {
        width: min(100%,760px);
        max-width: 760px;
        margin: 0;
        justify-self: start;
    }

    .contact-hero__content {
        padding-top: 18px;
    }

    .contact-hero__content h2 {
        max-width: 11ch;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {
    .contact-container {
        width: calc(100% - 36px);
    }

    .contact-hero {
        /*
           Le passage clair → sombre est placé après le formulaire.
           La page redevient volontairement scrollable.
        */
        background:
            linear-gradient(
                180deg,
                var(--c-ivory-hi) 0,
                var(--c-ivory-hi) 55%,
                var(--c-dark) 55%,
                var(--c-dark) 100%
            );
    }

    .contact-hero::before {
        inset: 55% 0 0;
    }

    .contact-hero__grid {
        display: block;
        padding-top: 105px;
        padding-bottom: 72px;
    }

    .contact-form {
        width: 100%;
        padding: 25px 20px 22px;
    }

    .contact-form h1 {
        max-width: 10ch;
        font-size: clamp(2.55rem,12vw,3.6rem);
    }

    .contact-form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-project__choices {
        grid-template-columns: 1fr;
    }

    .contact-project label span {
        justify-content: flex-start;
        min-height: 40px;
        padding-inline: 14px;
    }

    .contact-field textarea {
        min-height: 108px;
    }

    .contact-hero__content {
        width: 100%;
        margin-top: 105px;
        padding-top: 0;
    }

    .contact-hero__content h2 {
        max-width: 10ch;
        font-size: clamp(2.7rem,12vw,3.9rem);
    }

    .contact-hero__drawing {
        display: none;
    }

    /*
       Footer mobile commun : identité noire à gauche,
       liens blancs sur la partie sombre.
    */
    .page-contact .site-footer__copyright,
    .page-contact .site-footer__brand {
        color: #111 !important;
    }

    .page-contact .site-footer__links a {
        color: #fff !important;
    }
}

@media (max-width: 390px) {
    .contact-container {
        width: calc(100% - 28px);
    }

    .contact-form {
        padding-inline: 17px;
    }

    .contact-form h1 {
        font-size: 2.45rem;
    }
}

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


/* =========================================================
   CONTACT — CORRECTIONS FINALES DE STRUCTURE
   ========================================================= */

/* 1. Split exact : graphite jusqu'au bas de la page/footer. */
.page-contact {
    background:
        linear-gradient(
            90deg,
            var(--c-ivory-hi) 0,
            var(--c-ivory-hi) 50%,
            var(--c-dark) 50%,
            var(--c-dark) 100%
        ) !important;
}

.page-contact main,
.page-contact .contact-hero {
    background:
        linear-gradient(
            90deg,
            var(--c-ivory-hi) 0,
            var(--c-ivory-hi) 50%,
            var(--c-dark) 50%,
            var(--c-dark) 100%
        ) !important;
}

/* 2. Footer : STRICTEMENT les SVG communs présents dans assets/svg/ui.
      Aucun fond local ajouté par Contact. */
.page-contact .site-footer {
    background: transparent !important;
    background-image: none !important;
}

.page-contact .site-footer::before {
    background:
        url("../svg/ui/welgar-footer-transition.svg")
        center bottom / 100% 100%
        no-repeat !important;
}

@media (min-width: 901px) {
    .page-contact .site-footer::before {
        background-image:
            url("../svg/ui/welgar-footer-transition-desktop.svg") !important;
    }
}

/* Le graphite continue derrière la moitié droite du SVG jusqu'au bas. */
.page-contact .site-footer::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 0 50%;
    background: var(--c-dark);
    pointer-events: none;
}

/* Footer : identité noire côté clair, légal blanc côté graphite. */
.page-contact .site-footer__copyright,
.page-contact .site-footer__brand {
    color: #000 !important;
}

.page-contact .site-footer__links a {
    color: rgba(255,255,255,.86) !important;
}

.page-contact .site-footer__links a::before {
    color: rgba(255,255,255,.56) !important;
}

/* Responsive : empilement clair puis graphite, footer commun conservé. */
@media (max-width: 1100px) {
    .page-contact,
    .page-contact main,
    .page-contact .contact-hero {
        background: var(--c-ivory-hi) !important;
    }

    .page-contact .contact-hero {
        background:
            linear-gradient(
                180deg,
                var(--c-ivory-hi) 0,
                var(--c-ivory-hi) 51%,
                var(--c-dark) 51%,
                var(--c-dark) 100%
            ) !important;
    }
}

@media (max-width: 600px) {
    .page-contact .contact-hero {
        background:
            linear-gradient(
                180deg,
                var(--c-ivory-hi) 0,
                var(--c-ivory-hi) 55%,
                var(--c-dark) 55%,
                var(--c-dark) 100%
            ) !important;
    }
}


/* =========================================================
   CONTACT — COMPOSITION DROITE CONTINUE JUSQU'AU BAS DU FOOTER
   On ne change rien au Hero : le footer reprend exactement
   grille + diagonales + trait cuivre derrière son SVG.
   ========================================================= */

.page-contact .site-footer {
    overflow: hidden !important;
    background: transparent !important;
}

/*
   Fond graphique sous le SVG.
   Même moitié droite, même grille 72 px, mêmes deux bandes
   et même trait cuivre que dans le Hero.
*/
.page-contact .site-footer::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 0 50%;
    pointer-events: none;

    background:
        /* trait cuivre */
        linear-gradient(
            101deg,
            transparent 0 26.8%,
            rgba(232,154,100,.28) 26.9% 27.05%,
            transparent 27.15%
        ),

        /* première diagonale */
        linear-gradient(
            118deg,
            transparent 0 20%,
            rgba(232,154,100,.065) 20.1% 32%,
            transparent 32.1%
        ),

        /* deuxième diagonale */
        linear-gradient(
            118deg,
            transparent 0 42%,
            rgba(255,255,255,.025) 42.1% 54%,
            transparent 54.1%
        ),

        /* grille horizontale */
        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),

        /* grille verticale */
        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),

        var(--c-dark);

    background-size:
        auto,
        auto,
        auto,
        72px 72px,
        72px 72px,
        auto;

    /*
       Décalage vertical de la grille pour que la trame continue
       au lieu de redémarrer visuellement au début du footer.
    */
    background-position:
        center,
        center,
        center,
        0 calc(-1 * (100vh - var(--footer-svg-h, 130px))),
        0 calc(-1 * (100vh - var(--footer-svg-h, 130px))),
        center;
}

/* Le SVG classique assets/svg/ui reste strictement au-dessus. */
.page-contact .site-footer::before {
    z-index: 0 !important;
}

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


/* =========================================================
   CONTACT — RACCORD HERO / FOOTER — OVERRIDE FINAL
   ========================================================= */

@media (min-width: 1101px) {

    /* Le décor appartient au Hero jusqu'au dernier pixel de l'écran. */
    .page-contact .contact-hero {
        position: relative !important;
        height: 100vh !important;
        min-height: 100vh !important;
        padding-bottom: 130px !important;
        overflow: hidden !important;
    }

    /* Le décor droit couvre donc aussi les 130 px qui seront occupés
       visuellement par le footer. */
    .page-contact .contact-hero::before {
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 50% !important;
        height: auto !important;
    }

    .page-contact .contact-hero::after {
        bottom: 0 !important;
        height: 120% !important;
    }

    /* Le footer vient se POSER sur les 130 derniers px du Hero. */
    .page-contact .site-footer {
        --footer-svg-h: 130px !important;
        height: 130px !important;
        margin-top: -130px !important;
        position: relative !important;
        z-index: 20 !important;
        background: transparent !important;
        background-image: none !important;
        overflow: visible !important;
    }

    /* Aucun deuxième décor dans le footer. */
    .page-contact .site-footer::after {
        content: none !important;
        display: none !important;
        background: none !important;
    }

    /* Uniquement le SVG classique, posé au-dessus du décor du Hero. */
    .page-contact .site-footer::before {
        content: "" !important;
        position: absolute !important;
        z-index: 1 !important;
        inset: 0 !important;
        width: 100% !important;
        height: 130px !important;
        background:
            url("../svg/ui/welgar-footer-transition-desktop.svg")
            center bottom / 100% 100%
            no-repeat !important;
        pointer-events: none !important;
    }

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


/* =========================================================
   CONTACT — RESPONSIVE FINAL PROPRE
   Desktop >= 1101 px : STRICTEMENT INCHANGÉ.
   Ce bloc devient l'unique autorité sous 1101 px.
   ========================================================= */

@media (max-width: 1100px) {

    html,
    body.page-contact {
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto !important;
    }

    body.page-contact {
        background: var(--c-ivory-hi) !important;
    }

    .page-contact main {
        display: block !important;
        min-height: 0 !important;
        background: transparent !important;
    }

    .page-contact .contact-container {
        width: min(calc(100% - 64px), 760px) !important;
        margin-inline: auto !important;
    }

    /* On abandonne totalement la mécanique desktop 100vh + footer chevauché. */
    .page-contact .contact-hero {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        overflow: visible !important;

        background:
            linear-gradient(
                to bottom,
                var(--c-ivory-hi) 0,
                var(--c-ivory-hi) 50%,
                var(--c-dark) 50%,
                var(--c-dark) 100%
            ) !important;
    }

    .page-contact .contact-hero::before,
    .page-contact .contact-hero::after {
        content: none !important;
        display: none !important;
    }

    .page-contact .contact-hero__grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;

        width: min(calc(100% - 64px), 760px) !important;
        margin-inline: auto !important;
        padding: calc(var(--header-height, 76px) + 42px) 0 0 !important;
    }

    /* ---------- partie claire / formulaire ---------- */

    .page-contact .contact-form {
        display: block !important;
        position: relative !important;
        z-index: 2 !important;

        width: 100% !important;
        max-width: none !important;
        margin: 0 0 90px !important;
        padding: 30px 34px 28px !important;

        background: rgba(237,232,220,.62) !important;
        color: var(--c-ink) !important;
    }

    .page-contact .contact-form h1 {
        font-size: clamp(2.7rem, 7vw, 3.7rem) !important;
    }

    /* ---------- partie graphite / texte ---------- */

    .page-contact .contact-hero__content {
        display: block !important;
        position: relative !important;
        z-index: 2 !important;

        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 92px 0 105px !important;

        color: #fff !important;
    }

    /*
       Le graphite est porté par un pseudo-fond plein écran.
       Il ne dépend donc plus d'un pourcentage arbitraire du Hero.
    */
    .page-contact .contact-hero__content::before {
        content: "" !important;
        display: block !important;
        position: absolute !important;
        z-index: -1 !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 50% !important;
        width: 100vw !important;
        transform: translateX(-50%) !important;

        background:
            linear-gradient(118deg,
                transparent 0 47%,
                rgba(232,154,100,.065) 47.1% 58%,
                transparent 58.1%),
            linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
            var(--c-dark) !important;

        background-size: auto, 72px 72px, 72px 72px, auto !important;
        pointer-events: none !important;
    }

    .page-contact .contact-hero__content h2 {
        color: #fff !important;
        max-width: 11ch !important;
    }

    .page-contact .contact-hero__lead {
        color: rgba(255,255,255,.86) !important;
    }

    .page-contact .contact-hero__text {
        color: rgba(255,255,255,.58) !important;
    }

    .page-contact .contact-response {
        border-top-color: rgba(255,255,255,.16) !important;
    }

    .page-contact .contact-response strong {
        color: #fff !important;
    }

    .page-contact .contact-response p {
        color: rgba(255,255,255,.52) !important;
    }

    /* ---------- footer : retour au flux normal ---------- */

    .page-contact .site-footer {
        position: relative !important;
        z-index: 5 !important;
        height: var(--footer-svg-h) !important;
        margin-top: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: var(--c-dark) !important;
    }

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

    .page-contact .site-footer::before {
        z-index: 1 !important;
        background:
            url("../svg/ui/welgar-footer-transition.svg")
            center bottom / 100% 100%
            no-repeat !important;
    }

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


/* =========================================================
   MOBILE <= 600 px
   ========================================================= */

@media (max-width: 600px) {

    .page-contact .contact-container,
    .page-contact .contact-hero__grid {
        width: calc(100% - 36px) !important;
    }

    .page-contact .contact-hero__grid {
        padding-top: calc(var(--header-height, 76px) + 28px) !important;
    }

    .page-contact .contact-form {
        margin-bottom: 70px !important;
        padding: 25px 20px 22px !important;
    }

    .page-contact .contact-form h1 {
        max-width: 10ch !important;
        margin-bottom: 1rem !important;
        font-size: clamp(2.5rem, 12vw, 3.45rem) !important;
    }

    .page-contact .contact-form__row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .page-contact .contact-project__choices {
        grid-template-columns: 1fr !important;
    }

    .page-contact .contact-project label span {
        justify-content: flex-start !important;
        min-height: 40px !important;
        padding-inline: 14px !important;
    }

    .page-contact .contact-field textarea {
        min-height: 105px !important;
    }

    .page-contact .contact-hero__content {
        margin: 0 !important;
        padding: 74px 0 88px !important;
    }

    .page-contact .contact-hero__content h2 {
        max-width: 10ch !important;
        font-size: clamp(2.65rem, 12vw, 3.75rem) !important;
    }

    .page-contact .contact-hero__lead {
        margin-top: 1.25rem !important;
        font-size: 1rem !important;
    }

    .page-contact .contact-hero__drawing {
        display: none !important;
    }

    /* Footer mobile commun. */
    .page-contact .site-footer {
        --footer-svg-h: 110px !important;
        height: 110px !important;
        background: var(--c-dark) !important;
    }
}


/* =========================================================
   PETITS MOBILES
   ========================================================= */

@media (max-width: 390px) {
    .page-contact .contact-container,
    .page-contact .contact-hero__grid {
        width: calc(100% - 28px) !important;
    }

    .page-contact .contact-form {
        padding-inline: 17px !important;
    }

    .page-contact .contact-form h1 {
        font-size: 2.4rem !important;
    }
}


/* =========================================================
   CONTACT — AJOUTS FORMULAIRE FINAL
   Composition existante volontairement inchangée.
   ========================================================= */
.contact-upload { margin: 0 0 12px; }
.contact-upload__heading { display:flex; justify-content:space-between; gap:16px; margin-bottom:6px; color:var(--c-ink); font-size:.67rem; letter-spacing:.08em; text-transform:uppercase; }
.contact-upload__heading strong { font-weight:700; }
.contact-upload__heading span { color:var(--c-muted); font-size:.60rem; font-weight:500; letter-spacing:.03em; text-transform:none; }
.contact-upload__dropzone { display:flex; align-items:center; gap:12px; min-height:58px; padding:9px 13px; border:1px dashed rgba(23,24,23,.28); cursor:pointer; transition:border-color .2s ease,background-color .2s ease; }
.contact-upload__dropzone:hover,.contact-upload__dropzone.is-dragover { border-color:var(--c-orange); background:rgba(232,154,100,.07); }
.contact-upload__dropzone:focus-within { outline:2px solid var(--c-ink); outline-offset:3px; }
.contact-upload__dropzone input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.contact-upload__plus { color:var(--c-orange); font-size:1.35rem; line-height:1; }
.contact-upload__dropzone > span:last-child { display:grid; gap:2px; color:var(--c-ink); font-size:.72rem; }
.contact-upload__dropzone small { color:var(--c-muted); font-size:.64rem; font-weight:400; }
.contact-upload__files { display:grid; gap:3px; margin-top:6px; }
.contact-upload__file { display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--c-muted); font-size:.65rem; }
.contact-upload__file button { border:0; padding:1px 4px; background:transparent; color:var(--c-muted); cursor:pointer; font:inherit; }
.contact-upload__file button:hover,.contact-upload__file button:focus-visible { color:var(--c-ink); }
.contact-guidance { max-width:560px; margin-top:1.35rem; }
.contact-guidance__intro { margin:0 0 .95rem; color:#fff; font-weight:650; font-size:.94rem; }
.contact-guidance__items { display:grid; grid-template-columns:1fr 1fr; gap:12px 26px; }
.contact-guidance__item strong { display:block; margin-bottom:2px; color:var(--c-orange); font-size:.65rem; letter-spacing:.12em; text-transform:uppercase; }
.contact-guidance__item span { color:rgba(255,255,255,.58); font-size:.78rem; line-height:1.42; }
.contact-guidance__closing { margin:1rem 0 0; color:rgba(255,255,255,.82); font-size:.82rem; line-height:1.5; }
@media (min-width:1101px) and (max-height:900px) { .contact-upload__dropzone { min-height:48px; padding-block:6px; } .contact-guidance { margin-top:1rem; } .contact-guidance__items { gap:8px 22px; } .contact-guidance__closing { margin-top:.7rem; } }
@media (max-width:600px) { .contact-guidance__items { grid-template-columns:1fr; gap:14px; } .contact-upload__dropzone { min-height:62px; } }

/* Contact : dimensions souples, sans couper le formulaire. */
.page-contact .contact-form,
.page-contact .contact-hero__content,
.page-contact .contact-field,
.page-contact .contact-project { min-width: 0; }
.page-contact .contact-guidance__item p { margin: 0; color: rgba(255,255,255,.75); font-size: .85rem; line-height: 1.5; }
.page-contact .contact-upload__dropzone input { position: static; width: 100%; min-width: 0; height: auto; opacity: 1; pointer-events: auto; font-size: .8rem; }
.page-contact .contact-upload__dropzone input::file-selector-button { min-height: 44px; margin-right: 8px; border: 1px solid var(--c-rule); background: transparent; color: var(--c-ink); cursor: pointer; }
.page-contact .contact-file { display: flex; align-items: center; gap: 12px; font-size: .8rem; }
.page-contact .contact-file__info { flex: 1; min-width: 0; }
.page-contact .contact-file__name { overflow-wrap: anywhere; }
.page-contact .contact-file__size { display: block; color: var(--c-muted); }
.page-contact .contact-file__remove { flex-shrink: 0; min-width: 44px; min-height: 44px; cursor: pointer; }
@media (min-width: 1101px) {
    .page-contact .contact-hero { height: auto !important; min-height: 100svh !important; }
    .page-contact .contact-hero__grid { padding-top: calc(var(--header-height) + 28px); padding-bottom: 32px; }
}
@media (max-width: 1100px) {
    .page-contact .contact-hero { background: var(--c-ivory) !important; }
    .page-contact .contact-form { margin-bottom: 36px !important; }
    .page-contact .contact-hero__content { padding-block: 56px !important; }
    .page-contact .contact-field input,
    .page-contact .contact-field textarea { font-size: 16px; }
    .page-contact .contact-field input { min-height: 44px; }
    .page-contact .site-footer__copyright,
    .page-contact .site-footer__brand,
    .page-contact .site-footer a { color: #fff !important; }
}

@media (max-width: 900px) {
    body.page-contact.nav-open { overflow: hidden !important; }
}
@media (max-width: 600px) {
    .page-contact .contact-form h1 { font-size: clamp(2rem, 9vw, 3rem) !important; }
    .page-contact .contact-hero__content h2 { font-size: clamp(2rem, 9vw, 3rem) !important; }
    .page-contact .contact-project__choices label { min-height: 44px; }
    .page-contact .contact-hero__lead br { display: none; }
    .page-contact .contact-consent { font-size: .8rem; }
}

/* Mobile : un seul décor continu derrière le contenu et le footer. */
@media (max-width: 900px) {
    .page-contact { --contact-footer-extension: clamp(80px, 11vw, 100px); }
    .page-contact .contact-hero__content::before {
        bottom: calc(-1 * var(--contact-footer-extension)) !important;
    }
    .page-contact .site-footer {
        --footer-svg-h: var(--contact-footer-extension) !important;
        background: transparent !important;
    }
}
@media (max-width: 600px) {
    .page-contact { --contact-footer-extension: 110px; }
}

.contact-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.contact-form__status {
    display: block;
    width: 100%;
    margin: 16px 0 4px;
    padding: 12px 16px;
    font-size: 0.82rem;
    line-height: 1.5;
    border-radius: 4px;
}

.contact-form__status:empty {
    display: none;
}

.contact-form__status.is-success {
    color: #355f3d;
    background: rgba(53, 95, 61, 0.08);
}

.contact-form__status.is-error {
    color: #8b2e2e;
    background: rgba(139, 46, 46, 0.08);
}