/* SERVICES PAGE */

.services-page {
    position: relative;
    overflow: hidden;
    background: #ededeb;
}

/* Éclairs décoratifs en arrière-plan, sans impact sur le contenu. */
.services-page::before,
.services-page::after {
    display: none;
    content: "";
    position: absolute;
    z-index: 10;
    width: 150px;
    height: 228px;
    opacity: .62;
    pointer-events: none;
}
.services-page::before { left: -115px; top: 270px; width: 360px; height: 520px; }
.services-page::after { display: none; }
.services-page > * { position: relative; z-index: 1; }

.services-intro,
.service-catalog-electric,
.plumbing-section {
    width: min(1120px, 90%);
    margin-inline: auto;
}

#electricite,
#plomberie {
    scroll-margin-top: 90px;
}

.services-intro {
    display: grid;
    grid-template-columns: 360px 1fr;
    align-items: center;
    gap: 70px;
    padding: 76px 0 54px;
}

.services-intro > p {
    max-width: 620px;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}

.service-title-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.service-title-row img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.service-title-row h1,
.service-title-row h2 {
    flex: 0 0 auto;
    margin: 0;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
}

.service-title-row span {
    width: 90px;
    height: 2px;
    background: var(--green);
}

.service-tool-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 110px;
    margin: 70px 0 54px;
    overflow: hidden;
    clip-path: none;
}

.service-tool-divider img {
    position: absolute;
    top: 50%;
    right: -20px;
    width: min(760px, 64vw);
    height: auto;
    max-width: none;
    display: block;
    transform: translateY(-50%);
    transition: transform 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-tool-divider.is-reveal-ready img {
    transform: translate(110%, -50%);
}

.service-tool-divider.is-reveal-ready.is-visible img {
    transform: translate(0, -50%);
}

.plumbing-section > .service-title-row {
    margin-bottom: 54px;
}

.plumbing-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(420px, 560px) 1fr;
    gap: 70px;
    align-items: center;
}

.service-catalog-plumbing {
    position: relative;
    z-index: 1;
}

.water-decoration {
    position: relative;
    z-index: 0;
    min-height: 360px;
    pointer-events: none;
}

.water-decoration span {
    position: absolute;
    width: 280px;
    height: 350px;
    background-image: url("../images/services/fond/goutte d'eau.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 150% auto;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.85)) drop-shadow(0 14px 24px rgba(17, 24, 24, 0.08));
    opacity: 0.95;
    transform: rotate(0deg);
}

.water-decoration span::before {
    content: none;
}

.water-decoration span:first-child {
    top: 18px;
    right: 0;
    left: auto;
}

.services-contact-band {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 350px;
    margin: 74px 0 32px;
    padding: 50px 5%;
    color: var(--white);
    text-align: center;
    background: linear-gradient(90deg, rgba(15, 20, 20, 0.28), rgba(15, 20, 20, 0.9), rgba(15, 20, 20, 0.28)), url("../images/services/fond/contact-cmelec.webp") center / cover;
}

.services-contact-band h2 {
    margin: 0 0 26px;
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: 0;
}

.services-contact-band a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 8px 18px;
    color: var(--text);
    background: var(--green);
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.services-contact-band a:hover {
    color: var(--white);
    background: var(--dark);
    border-color: var(--green);
}

/* RESPONSIVE */

@media (max-width: 1000px) {
    .footer {
        display: grid;
        grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr);
        align-items: start;
        justify-content: stretch;
        column-gap: 48px;
        row-gap: 26px;
        padding: 34px 6% 0;
    }

    .mainfootlogo {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
    }

    .navfoot {
        grid-column: 1;
        grid-row: 2;
    }

    .footer-contact {
        grid-column: 2;
        grid-row: 1 / span 2;
        min-width: 0;
    }

    .separatorfoot,
    .plugfoot-wrap,
    .artisanfoot {
        display: none;
    }

    .navdiscret {
        grid-column: 1 / -1;
        grid-row: 3;
        width: auto;
        flex-basis: auto;
        margin: 4px -6vw 0;
        padding-right: 6vw;
        padding-left: 6vw;
    }

    .services-intro {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .services-intro > p {
        text-align: left;
    }

.plumbing-layout {
        grid-template-columns: 1fr;
    }

    .water-decoration {
        position: absolute;
        top: 34px;
        right: -8%;
        display: block;
        width: min(360px, 50vw);
        min-height: 320px;
        opacity: 0.38;
    }

    .water-decoration span:first-child {
        top: 0;
        right: 0;
        left: auto;
    }

    .about-hero {
        min-height: 390px;
        padding-inline: 6%;
        background-position: center;
    }

    .about-story {
        grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
        gap: 48px;
        width: min(920px, 88%);
    }

    .about-values-grid {
        gap: 28px;
    }

    .navhead {
        position: fixed;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;
        padding: 150px 8% 45px;
        gap: 32px;
        background: linear-gradient(90deg, rgba(17, 24, 24, 0.72), rgba(17, 24, 24, 0.95));
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
        z-index: 999;
    }

    .navhead.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .navhead a {
        font-size: 16px;
        letter-spacing: 2px;
        text-align: right;
    }

    .navhead .btn-contact {
        padding: 14px 24px;
    }

    .navburgerdiscret {
        display: none;
    }

    .navburgerdiscret a {
        font-size: 13px;
        font-weight: 400;
    }

    .navburgerdiscret a::after {
        display: none;
    }

    .burger {
        position: relative;
        z-index: 1001;
        display: block;
        padding: 8px;
        color: var(--white);
        background: transparent;
        border: 0;
        font-size: 30px;
        cursor: pointer;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 58px 6% 38px;
    }

    .hero-media {
        min-height: 320px;
    }

    .services-grid,
    .zone-panel,
    .reviews-slider {
        grid-template-columns: 1fr;
    }

    .services-grid {
        gap: 46px;
    }

    .service-card {
        width: min(100%, 260px);
        aspect-ratio: 1 / 1;
        min-height: 0;
        margin: 0 auto;
        padding: 46px 28px 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .service-card ul {
        min-height: 0;
        padding-left: 0;
        list-style-position: inside;
        text-align: center;
    }

    .reviews-slider {
        max-width: 420px;
    }

    .slider-arrow {
        display: none;
    }
}

@media (min-width: 761px) and (max-width: 1000px) {
    .navhead {
        position: static;
        inset: auto;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        padding: 0;
        gap: 24px;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
        z-index: auto;
    }

    .navhead a {
        font-size: 9px;
        letter-spacing: 1.2px;
    }

    .navhead .btn-contact {
        padding: 8px 14px;
    }

    .burger,
    .navburgerdiscret {
        display: none;
    }
}

@media (max-width: 760px) {
    .navhead {
        transition: none;
    }

    .navhead.active {
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .navhead .btn-contact,
    .navhead .btn-contact[aria-current="page"] {
        display: inline;
        min-height: auto;
        padding: 0;
        color: var(--white);
        background: transparent;
        border: 0;
        border-radius: 0;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 2px;
        text-align: right;
    }

    .navhead .btn-contact:hover {
        color: var(--white);
        background: transparent;
        border-color: transparent;
    }

    .navhead .btn-contact::after {
        display: block;
    }

.services-intro {
        padding: 52px 0 38px;
    }

    .service-title-row {
        gap: 12px;
    }

    .service-title-row h1,
    .service-title-row h2 {
        font-size: 21px;
    }

    .service-title-row span {
        flex: 1 1 auto;
        width: auto;
    }

.catalog-card {
        width: min(100%, 340px);
        margin-inline: auto;
    }

    .service-tool-divider {
        margin: 50px 0 40px;
    }

    .service-tool-divider img {
        width: 78vw;
        right: -14px;
    }

    .service-tool-divider {
        height: 82px;
    }

    .plumbing-layout {
        display: block;
    }

    .water-decoration {
        top: 70px;
        right: -18%;
        width: 300px;
        min-height: 280px;
        opacity: 0.2;
    }

    .services-contact-band {
        min-height: 280px;
    }

    .about-hero {
        min-height: 430px;
        padding: 72px 7%;
        background:
            linear-gradient(90deg, rgba(6, 9, 9, 0.92) 0%, rgba(6, 9, 9, 0.78) 55%, rgba(6, 9, 9, 0.3) 100%),
            url("../images/accueil/camion.webp") center / cover no-repeat;
    }

    .about-hero::after {
        right: 18px;
        width: 52px;
        height: 86px;
    }

    .about-story {
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 54px 0 58px;
    }

    .about-story-image {
        width: min(100%, 330px);
        margin: 0 auto;
    }

    .about-story-text {
        text-align: left;
    }

    .about-values {
        padding: 54px 6% 58px;
    }

    .about-values-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        width: min(340px, 100%);
    }

    .about-stats {
        grid-template-columns: 1fr;
        padding: 22px 7%;
    }

    .about-stats div {
        min-height: 94px;
    }

    .about-stats div + div {
        border-top: 2px solid rgba(255, 255, 255, 0.88);
        border-left: 0;
    }

    .contact-page {
        padding: 52px 6% 66px;
    }

    .contact-panel {
        padding: 24px 20px 26px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contact-actions {
        flex-direction: column;
        gap: 16px;
    }

    .contact-submit {
        width: 100%;
    }

    .legal-hero {
        padding: 52px 6% 48px;
    }

    .legal-layout {
        display: block;
        width: 88%;
        padding: 48px 0 65px;
    }

    .legal-summary {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-bottom: 50px;
    }

    .legal-summary strong {
        grid-column: 1 / -1;
    }

    .legal-section,
    .legal-section + .legal-section {
        padding-left: 38px;
    }

    .legal-section h2 {
        font-size: 21px;
    }

    .legal-details div {
        display: block;
    }

    .legal-table > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .legal-details dt {
        margin-bottom: 2px;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .services-section {
        margin-top: 0;
    }

    .zone-section {
        padding: 70px 4% 70px;
    }

    .zone-panel {
        padding: 18px;
    }

    .zone-map {
        min-height: 300px;
    }

    .footer {
        display: grid;
        grid-template-columns: 1fr;
        align-items: flex-start;
        gap: 28px;
        padding: 30px 7% 0;
    }

    .separatorfoot,
    .plugfoot-wrap,
    .artisanfoot {
        display: none;
    }

    .mainfootlogo,
    .footer-contact,
    .navfoot {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
        min-width: 0;
    }

    .navfoot {
        gap: 10px;
    }

    .navfoot a {
        font-size: 11px;
    }

    .footer-contact h2 {
        margin-bottom: 10px;
    }

    .footer-contact p {
        gap: 8px;
        font-size: 10px;
        line-height: 1.5;
    }

    .footer-contact p,
    .navdiscret {
        flex-wrap: wrap;
    }

    .navdiscret {
        grid-column: 1;
        grid-row: auto;
        justify-content: center;
        width: auto;
        margin: 4px -7vw 0;
        padding: 10px 7vw;
        gap: 6px;
        text-align: center;
    }

    .navdiscret a,
    .navdiscret span {
        font-size: 8px;
        line-height: 1.5;
    }

    .navdiscret a::after {
        margin-left: 6px;
    }
}

.service-catalog { display: grid; gap: 42px; }
.service-catalog-electric { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-catalog-plumbing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.catalog-card { position: relative; z-index: 1; min-width: 0; overflow: hidden; background: var(--white); border: 1px solid transparent; border-radius: 18px; box-shadow: 0 16px 30px rgba(0,0,0,.08); cursor: default; transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.catalog-card-accent { border-color: transparent; }
.catalog-card:hover { z-index: 1101; border-color: var(--green); box-shadow: 0 24px 48px rgba(0,0,0,.3); transform: scale(1.07); }
.catalog-photo { position: relative; height: 205px; overflow: hidden; background-color: #d8dcda; }
.catalog-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.owned-photo img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
.catalog-card-body { min-height: 190px; padding: 24px 22px 26px; }
.catalog-card h2, .catalog-card h3 { margin: 0 0 18px; font-size: 13px; font-weight: 800; line-height: 1.3; letter-spacing: 1px; text-align: center; text-transform: uppercase; }
.catalog-card ul { margin: 0; padding-left: 16px; font-size: 11px; font-weight: 500; line-height: 1.45; }
@media (max-width: 1000px) { .service-catalog-electric { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
 .service-catalog-electric, .service-catalog-plumbing { grid-template-columns: minmax(0, 1fr); gap: 20px; }
 .catalog-card { width: auto; margin: 0; }
 .services-page::before { left: -34px; top: 360px; width: 100px; height: 160px; font-size: 130px; opacity: .55; }
 .services-page::after { display: none; }
}

/* Les prestations sont consultables au survol uniquement. */
.catalog-card-body p { margin: 0 0 18px; font-size: 14px; line-height: 1.65; }
.catalog-card {
    cursor: default;
}
