.herobanner {
    padding-top: 1rem;
}

.herobanner h1 {
    font-size: .875rem;
    margin-bottom: .5rem;
    color: var(--white);
}

.herobanner .background {
    background: url(https://metgroupe.fr/wp-content/uploads/2026/06/herobanner-3006-scaled.webp);
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    background-position: center;
    /* border-radius: .5rem; */
}

.herobanner .background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 10.02);
    background: -webkit-linear-gradient(90deg, rgba(2, 6, 23, 0.32) 0%, rgba(2, 6, 23, 0) 100%);
    background: -moz-linear-gradient(90deg, rgba(2, 6, 23, 0.32) 0%, rgba(2, 6, 23, 0) 100%);
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.32) 0%, rgba(2, 6, 23, 0) 100%);
    z-index: 1;
}

.herobanner .background>* {
    z-index: 2;
    position: relative;
}

@media screen and (max-width:960px) {
    .herobanner .background {
        background: url(https://metgroupe.fr/wp-content/uploads/2026/06/herobanner-3006-mobile-scaled.webp);
        background-size: cover;
    }
}

.h1-like {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0;
    margin-top: 0;
    color: var(--white);
}

.herobanner p {
    color: var(--white);
}

@media screen and (max-width:960px) {

    h1,
    .h1-like {
        font-family: var(--font-primary);
        font-size: 2rem;
    }
}

.cta-buttons {
    gap: 1rem;
}

.contenu {
    padding: 0 3rem;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Configuration du conteneur */
.herobanner .ticker-wrapper {
    width: 100%;
    background: transparent;
    margin-top: 3rem;
    margin-bottom: 3rem;
    /* Ajustez selon votre design */
}

/* Le ruban qui contient les deux blocs */
.ticker-track {
    display: flex;
    width: max-content;
    /* Important : permet au contenu de s'étendre sans limite */
    animation: marquee-infinite 40s linear infinite;
    /* Vitesse réglable (40s) */
}

/* Style du texte */
.ticker-content {
    padding-left: 1rem;
    white-space: nowrap;
    /* Empêche le texte de revenir à la ligne */
    font-size: 2rem;
    /* Ajustez selon vos besoins */
    color: var(--slate-600);
    font-family: var(--font-primary);
    font-weight: 400;
    /* Votre couleur */
}

/* L'animation magique */
@keyframes marquee-infinite {
    0% {
        transform: translateX(0);
    }

    100% {
        /* On déplace de -50% car le deuxième bloc est l'exacte copie du premier */
        transform: translateX(-50%);
    }
}

/* Optionnel : Pause l'animation au survol de la souris */
/* .ticker-wrapper:hover .ticker-track {
    animation-play-state: paused;
} */

/***********REASSURANCE*********/

.reassurance {
    background-color: var(--red-600);
    background-image: url(https://metgroupe.fr/wp-content/uploads/2026/04/fond-porte-1-scaled.webp);
    background-blend-mode: multiply;
    position: relative;
    z-index: 1;
    background-position: center;
    background-size: cover;
}


.reassurance>* {
    color: var(--white);
}

.reassurance .item-reassurance {
    text-align: center;
}

/**************Services*************/
.services {
    background: linear-gradient(to bottom, #f1f5f9 0%, #f8fafc 50%, transparent 50%);
}

.services .item-services {
    padding: 2rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding-top: 6rem;
}

/* Couche image de fond — permet le zoom au survol */
.services .item-services::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.services .item-services-installation::before {
    background-image: url(https://metgroupe.fr/wp-content/uploads/2026/04/installation.webp);
}

.services .item-services-installation {
    background-image: none;
}

.services .item-services-maintenance::before {
    background-image: url(https://metgroupe.fr/wp-content/uploads/2026/04/maintenance.webp);
}

.services .item-services-maintenance {
    background-image: none;
}

.services .item-services-depannage::before {
    background-image: url(https://metgroupe.fr/wp-content/uploads/2026/04/depannage.webp);
}

.services .item-services-depannage {
    background-image: none;
}

/* Overlay en dégradé */
.services .item-services::after {
    content: '';
    background: linear-gradient(to bottom,
            rgba(16, 24, 43, 0.05) 0%,
            rgba(16, 24, 43, 0.55) 55%,
            rgba(16, 24, 43, 0.88) 100%);
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: background 0.4s ease;
}

.services .item-services>* {
    position: relative;
    z-index: 2;
}

.services .item-services:hover {
    text-decoration: none;
}

.services .item-services:hover::before {
    transform: scale(1.06);
}

.services .item-services:hover::after {
    background: linear-gradient(to bottom,
            rgba(16, 24, 43, 0.15) 0%,
            rgba(16, 24, 43, 0.7) 55%,
            rgba(16, 24, 43, 0.95) 100%);
}

/* Icône avec cercle glassmorphism */
.services .item-services img {
    margin-bottom: 1.25rem;

    width: 1.5rem;
    height: 1.5rem;
    box-sizing: border-box;
}


.services .item-services p {
    margin: 0;
}

.services .item-services p.h3-like {
    margin-bottom: .5rem;
    letter-spacing: -0.01em;
}

/* Lien "En savoir plus" avec flèche animée */
.services .more {
    margin-top: 1.25rem !important;
    display: inline-flex;
    align-items: center;
    font-family: var(--font-primary);



    opacity: 0.75;


    transition: opacity 0.3s ease;
}

.services .more::after {
    content: '→';
    display: inline-block;
    margin-left: .4rem;
    transition: transform 0.3s ease;
}

.services .item-services:hover .more {
    opacity: 1;
    border-bottom-color: rgba(255, 255, 255, 0.75);
}

.services .item-services:hover .more::after {
    transform: translateX(5px);
}

/****************MARCHE****************/
.marches .uk-sticky {
    z-index: 1;
}

.marches .item-marche {
    color: var(--slate-900) !important;
    text-decoration: none !important;
    border-bottom: solid 1px var(--slate-200);
    padding-top: 1rem
}

.marches .item-marche img {
    margin-right: .5rem;
}

.marches .item-marche .h3-like {
    margin-top: 0
}

/****************CARTE****************/

.carte {
    position: relative;
    background-image: url(https://metgroupe.fr/wp-content/uploads/2026/04/fond-de-carte.svg);
    min-height: 560px;
    background-size: 100%;
    background-position: center;
}


.carte::before {
    content: '';
    background: #FFFFFF;
    background: -webkit-linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 25%);
    background: -moz-linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 25%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 25%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carte::after {
    content: '';
    background: #FFFFFF;
    background: -webkit-linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 25%);
    background: -moz-linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 25%);
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 25%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carte .h2-like {
    margin-bottom: 0;
}

.carte .pin {
    position: absolute;
    background-color: var(--red-600);
    padding: .5rem;
    border-radius: .25rem;
    cursor: pointer;

}

.carte .pin a {
    z-index: 2;
    position: relative;
}

.carte .pin-28 {
    top: 16%;
    left: 45%;
}

.carte .pin-37 {
    top: 48%;
    left: 40%;
}

.carte .pin-41 {
    top: 42%;
    left: 47%;
}

.carte .pin-45 {
    top: 32%;
    left: 54%;
}

.carte .pin-72 {
    top: 30%;
    left: 34%;
}

.carte .pin-89 {
    top: 40%;
    left: 70%;
}

.pins .pin img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.pins .pin .uk-drop {
    min-width: 360px !important
}

.item-agence-title {
    font-size: 1.5rem;
    font-family: var(--font-primary);
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
        /* Plus de translateX ici */
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width:960px) {

    .carte {
        min-height: 240px;
        background-size: 150%;
    }

    .carte .pin svg {
        width: 2rem;
        height: 2rem;
    }
}

/**********************ENTREPRISE********************/

.entreprise {
    position: relative;
    padding-bottom: 0;
}

.entreprise-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background-color: var(--red-600);
    background-image: url(https://metgroupe.fr/wp-content/uploads/2026/04/fond-porte-1-scaled.webp);
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    z-index: 0;
}

.entreprise .uk-container {
    z-index: 1;
}

.entreprise .item-entreprise-card {
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 2rem;
    text-decoration: none;
    color: var(--white);
    padding-top: 20rem;
}

.entreprise .item-entreprise-card.item-entreprise-societe {
    background-image: url(https://metgroupe.fr/wp-content/uploads/2026/04/societe.webp);
    background-size: cover;
    background-position: center;
}

.entreprise .item-entreprise-card.item-entreprise-recrutement {
    background-image: url(https://metgroupe.fr/wp-content/uploads/2026/06/recrutement.webp);
    background-size: cover;
    background-position: center;
}

.entreprise .item-entreprise-card:hover {
    text-decoration: none;
    color: var(--white);
}

.entreprise .item-entreprise-card .h2-like {
    margin-bottom: 0;
    color: var(--white);
}

.entreprise .item-entreprise-card p {
    flex-grow: 1;
    margin: .75rem 0;
}

.entreprise .item-entreprise-card .button-like {
    display: inline-block;
    background: var(--red-600);
    font-family: var(--font-primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    text-align: center;
    align-self: flex-start;
}

@media screen and (max-width:960px) {
    .herobanner .contenu {
        justify-content: end;
        padding: 0 2rem 2rem 2rem;
        position: relative;
        min-height: 60vh;
    }

    .herobanner .contenu>* {
        position: relative;
        z-index: 2;
    }

    .herobanner .background {
        background-position: 50% 30%;
    }

    .herobanner .contenu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background: rgba(2, 6, 23, 10.02);
        background: -webkit-linear-gradient(0deg, rgba(2, 6, 23, 0.52) 0%, rgba(2, 6, 23, 0) 100%);
        background: -moz-linear-gradient(0deg, rgba(2, 6, 23, 0.52) 0%, rgba(2, 6, 23, 0) 100%);
        background: linear-gradient(0deg, rgba(2, 6, 23, 0.52) 0%, rgba(2, 6, 23, 0) 100%);
    }

    .herobanner .contenu .h1-like {
        margin-bottom: 1rem;
    }

    .herobanner .contenu p:not(.h1-like) {
        display: none;
    }

    .herobanner .uk-button-primary {
        font-size: .875rem;
    }

    .item-entreprise-card {
        margin-top: 2rem;
    }


}