:root {
    --dark: #111818;
    --dark-soft: #151c1c;
    --light: #f3f3f1;
    --muted: #e7e7e4;
    --green: #87bf42;
    --green-dark: #6da332;
    --text: #111111;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--light);
    font-family: "Montserrat", Arial, sans-serif;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 8px 5%;
    background: var(--dark);
}

.logo {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
}

.logo img {
    width: 118px;
    height: auto;
}

.separator {
    display: block;
    width: 3px;
    height: 34px;
    background: var(--green);
}

.navhead {
    display: flex;
    align-items: center;
    gap: 44px;
}

.navhead a {
    position: relative;
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    text-decoration: none;
}

.navhead a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.navhead a:hover::after {
    transform: scaleX(1);
}

@media (min-width: 761px) {
    .navhead a::after {
        top: calc(50% + 9px);
        bottom: auto;
    }
}

.navhead .btn-contact,
.btn-primary,
.btn-secondary,
.service-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
}

.navhead .btn-contact,
.btn-primary,
.service-card a {
    color: var(--text);
    background: var(--green);
}

.navhead .btn-contact {
    border: 2px solid transparent;
    transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.navhead .btn-contact:hover,
.navhead .btn-contact[aria-current="page"] {
    color: var(--white);
    background: var(--dark);
    border-color: var(--green);
}

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

.btn-secondary {
    color: var(--text);
    background: transparent;
    border: 2px solid var(--green);
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.btn-secondary:hover {
    color: var(--white);
    background: var(--green);
}

.burger,
.navburgerdiscret {
    display: none;
}

/* FOOTER */

.footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 34px;
    row-gap: 0;
    padding: 30px 5% 0;
    color: var(--white);
    background: var(--dark);
}

.mainfootlogo {
    width: 230px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.logofoot {
    display: block;
    margin-left: -24px;
}

.logofoot img {
    width: 145px;
}

.textlogofoot {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
}

.separatorfoot {
    width: 3px;
    height: 122px;
    background: var(--green);
    border-radius: 999px;
}

.navfoot {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.navfoot a {
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
}

.plugfoot-wrap {
    position: relative;
    width: 32px;
    height: 122px;
    overflow: hidden;
    flex: 0 0 32px;
    margin-inline: 0;
    transform: translateY(31px);
}

.plugfoot {
    position: absolute;
    top: -22px;
    left: 50%;
    width: 230px;
    height: auto;
    max-width: none;
    transform: translateX(-50%);
}

.footer-contact {
    min-width: 330px;
}

.footer-contact h2 {
    display: inline-block;
    margin: 0 0 14px;
    padding-bottom: 5px;
    border-bottom: 3px solid var(--green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.2px;
}

.footer-contact a {
    color: var(--white);
    text-decoration: none;
}

.footer-contact img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.artisanfoot {
    width: 160px;
    height: 130px;
    object-fit: contain;
}

.navdiscret {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    flex: 0 0 calc(100% + 10vw);
    gap: 8px;
    margin: 30px -5vw 0;
    padding: 7px 5vw;
    background: var(--green);
}

.navdiscret a,
.navdiscret span {
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
}

.navdiscret a::after {
    content: "|";
    margin-left: 8px;
}

/* Protection d’usage des images */
img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* SHARED CTA */

.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);
}
