/*!
Theme Name: met
Theme URI: http://underscores.me/
Author: Flamingo
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: met
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

met is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

@font-face {
    font-family: 'Switzer';
    src: url('./assets/fonts/Switzer-Italic.woff2') format('woff2'),
        url('./assets/fonts/Switzer-Italic.woff') format('woff'),
        url('./assets/fonts/Switzer-Italic.ttf') format('truetype'),
        url('./assets/fonts/Switzer-Italic.svg#Switzer-Italic') format('svg');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Switzer';
    src: url('./assets/fonts/Switzer-Bold.woff2') format('woff2'),
        url('./assets/fonts/Switzer-Bold.woff') format('woff'),
        url('./assets/fonts/Switzer-Bold.ttf') format('truetype'),
        url('./assets/fonts/Switzer-Bold.svg#Switzer-Bold') format('svg');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Switzer';
    src: url('./assets/fonts/Switzer-Medium.woff2') format('woff2'),
        url('./assets/fonts/Switzer-Medium.woff') format('woff'),
        url('./assets/fonts/Switzer-Medium.ttf') format('truetype'),
        url('./assets/fonts/Switzer-Medium.svg#Switzer-Medium') format('svg');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Switzer';
    src: url('./assets/fonts/Switzer-Regular.woff2') format('woff2'),
        url('./assets/fonts/Switzer-Regular.woff') format('woff'),
        url('./assets/fonts/Switzer-Regular.ttf') format('truetype'),
        url('./assets/fonts/Switzer-Regular.svg#Switzer-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Switzer';
    src: url('./assets/fonts/Switzer-Semibold.woff2') format('woff2'),
        url('./assets/fonts/Switzer-Semibold.woff') format('woff'),
        url('./assets/fonts/Switzer-Semibold.ttf') format('truetype'),
        url('./assets/fonts/Switzer-Semibold.svg#Switzer-Semibold') format('svg');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('./assets/fonts/SpaceGrotesk-Regular.woff2') format('woff2'),
        url('./assets/fonts/SpaceGrotesk-Regular.woff') format('woff'),
        url('./assets/fonts/SpaceGrotesk-Regular.ttf') format('truetype'),
        url('./assets/fonts/SpaceGrotesk-Regular.svg#SpaceGrotesk-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('./assets/fonts/SpaceGrotesk-Bold.woff2') format('woff2'),
        url('./assets/fonts/SpaceGrotesk-Bold.woff') format('woff'),
        url('./assets/fonts/SpaceGrotesk-Bold.ttf') format('truetype'),
        url('./assets/fonts/SpaceGrotesk-Bold.svg#SpaceGrotesk-Bold') format('svg');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('./assets/fonts/SpaceGrotesk-Medium.woff2') format('woff2'),
        url('./assets/fonts/SpaceGrotesk-Medium.woff') format('woff'),
        url('./assets/fonts/SpaceGrotesk-Medium.ttf') format('truetype'),
        url('./assets/fonts/SpaceGrotesk-Medium.svg#SpaceGrotesk-Medium') format('svg');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('./assets/fonts/SpaceGrotesk-SemiBold.woff2') format('woff2'),
        url('./assets/fonts/SpaceGrotesk-SemiBold.woff') format('woff'),
        url('./assets/fonts/SpaceGrotesk-SemiBold.ttf') format('truetype'),
        url('./assets/fonts/SpaceGrotesk-SemiBold.svg#SpaceGrotesk-SemiBold') format('svg');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-primary: 'Space Grotesk';
    --font-secondary: 'Switzer';

    --white: #ffffff;

    --slate-50: #F8F8F8;
    --slate-100: #F0F1F2;
    --slate-200: #E4E8EF;
    --slate-300: #CBD5E1;
    --slate-400: #92A3BB;
    --slate-500: #637389;
    --slate-600: #47566C;
    --slate-700: #324155;
    --slate-800: #1D293D;
    --slate-900: #10182B;
    --slate-950: #020617;

    --blue-50: #F0F3F9;
    --blue-100: #D3DBEE;
    --blue-200: #A6B7DD;
    --blue-300: #899FD2;
    --blue-400: #6B87C7;
    --blue-500: #4364B1;
    --blue-600: #385494;
    --blue-700: #273B68;
    --blue-800: #1C2A4A;
    --blue-900: #10182B;

    --red-50: #FCEEEE;
    --red-100: #F6CBCB;
    --red-200: #ED9698;
    --red-300: #E77375;
    --red-400: #DE3F42;
    --red-500: #D12326;
    --red-600: #AE1D20;
    --red-700: #8C181A;
    --red-800: #691213;
    --red-900: #460C0D;
}

html {
    font-size: 16px;
}

body {
    color: var(--slate-900);
}

h1,
.h1-like {
    font-family: var(--font-primary);
    font-size: 4rem;
    line-height: 1.2;
    font-weight: 500;
}

h2,
.h2-like {
    font-family: var(--font-primary);
    font-size: 2.25rem;
    font-weight: 500;
}

h3,
.h3-like {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 500;
}

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

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

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

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

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

p,
a,
li {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

a {
    color: var(--red-500);
}

strong {
    font-weight: 500
}


/*****BOUTONS******/

.uk-button-primary {
    background-color: var(--red-600);
    color: var(--white);
    text-transform: initial;
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1;
    padding: 1rem 1.25rem;
    font-weight: 500;
    transition: all .3s ease-out;
}


.uk-button-primary:hover {
    background-color: var(--blue-600);
}


.uk-button-secondary {
    background-color: var(--slate-50);
    color: var(--slate-900);
    text-transform: initial;
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1;
    padding: 1rem 1.25rem;
    font-weight: 500;
    transition: all .3s ease-out;
}

.uk-button-secondary:hover {
    background-color: var(--blue-600);
}

.uk-button-default {
    color: var(--blue-600);
    text-transform: initial;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all .3s ease-out;
}

.uk-button-primary,
.uk-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    box-sizing: border-box;
    min-height: 3.125rem;
    padding-top: 0;
    padding-bottom: 0;
}


.uk-button-default:hover {
    background-color: var(--blue-600);
    color: var(--white);
    border-color: var(--blue-600);
}

.uk-background-muted {
    background-color: var(--slate-50);
}


/* Filet de sécurité : un élément qui dépasse en largeur élargit la fenêtre de mise
   en page des smartphones (la page se « dézoome ») et les éléments fixes, comme le
   bandeau cookies, deviennent plus larges que l'écran visible.
   « clip » plutôt que « hidden » : ne crée pas de conteneur de défilement, donc
   ne gêne ni le sticky ni Lenis. */
html,
body {
    overflow-x: clip;
}

@supports not (overflow: clip) {
    body {
        overflow-x: hidden;
    }
}

/***********HEADER***********/

header .uk-navbar-sticky {
    background-color: var(--white);
    z-index: 99999;
}

.uk-navbar-container .uk-navbar-nav>li>a {
    text-transform: initial;
    font-family: var(--font-primary);
    color: var(--slate-900);
}


.uk-navbar-dropdown {
    overflow-x: initial !important;
}

.uk-navbar-dropdown-width-container {
    width: 100% !important;
    left: 0 !important;
    box-sizing: border-box;
    padding: 30px 40px;
}

.mobile-nav .uk-sticky {
    background: var(--white)
}

/* ── Cards services & marchés ── */

.uk-navbar-dropdown .uk-card {
    box-shadow: none;
}


#menu-principal .met-mega-card {
    background-color: var(--slate-50);
    border-left: solid 4px var(--blue-600);
    box-shadow: none !important;
    transition: all .3s ease-out
}

#menu-principal .met-mega-card .title-item {
    font-family: var(--font-primary);
    color: var(--slate-900);
    font-size: 1.125rem
}

#menu-principal .met-mega-card .description-item {
    color: var(--slate-600)
}


#menu-principal .met-mega-card:hover {
    transform: translateY(-2px);
    background-color: var(--blue-50);
}

#menu-principal .met-mega-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}


/* ── Colonnes solutions : image ── */
#menu-principal .met-sol-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    height: 100px;
    object-fit: cover;
    margin-bottom: 0;

}

#menu-principal .met-mega-card__icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

#menu-principal .met-sol-img--placeholder {
    background: #f0f2f5;
    border: 1px solid #e0e0e0;
}

#menu-principal .item-solution a {
    font-family: var(--font-primary);
    color: var(--slate-900);
    transition: all .3s ease-out
}

#menu-principal .item-solution a:not(.uk-link-heading) {
    font-size: .875rem
}

#menu-principal .item-solution a:hover {
    color: var(--blue-600);
    padding-left: 1rem
}

/* ── Assure que les cards solutions ont la même hauteur ── */
#menu-principal .uk-navbar-dropdown-grid>div {
    display: flex;
    flex-direction: column;
}

.uk-navbar-dropdown-grid>div>.uk-card {
    flex: 1;
}

/* ── Burger : visible sur toutes les tailles (votre choix) ── */
.uk-navbar-toggle {
    color: inherit;
}

.uk-navbar-container .uk-navbar-right {
    gap: 1rem;
}

/* ── Responsive : masquer les items desktop sous 960px zsi besoin ── */
@media (max-width: 959px) {
    .uk-navbar-center {
        display: none;
    }
}

.uk-navbar-container .uk-button-primary {
    padding: 0.75rem 1rem;
    font-size: .875rem;
}

.uk-navbar-container .uk-button-primary,
.uk-navbar-container .uk-button-secondary,
.met-depannage-btn {
    min-height: 2.5rem;
    padding-top: 0;
    padding-bottom: 0;
}

/***********OFFCANVAS — accordéon*************/

.uk-offcanvas-bar {
    background-color: var(--white);
}

/* #offcanvas-nav : offcanvas desktop (accordéon géré par js/offcanvas-nav.js)
   #mobile-nav    : menu de la modale mobile (accordéon géré par UIkit)
   Deux identifiants distincts : un même id ne doit pas apparaître deux fois dans la page. */
#offcanvas-nav,
#offcanvas-nav .uk-nav-sub,
#mobile-nav,
#mobile-nav .uk-nav-sub {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Bordure 1er niveau seulement */
#offcanvas-nav>li,
#mobile-nav>li {
    border-bottom: 1px solid var(--slate-200);
}

#offcanvas-nav>li:last-child,
#mobile-nav>li:last-child {
    border-bottom: none;
}

#offcanvas-nav a,
#mobile-nav a {
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .85rem 0;
    text-decoration: none;
    color: var(--slate-900);
    font-size: 1rem;
    line-height: 1.3;
    transition: color .2s ease;
}

#offcanvas-nav a:hover,
#mobile-nav a:hover {
    color: var(--blue-600);
}

/* Sous-niveaux de l'offcanvas desktop : fermés par défaut + indentation.
   (Pas pour #mobile-nav : UIkit gère lui-même la hauteur des sous-menus.) */
#offcanvas-nav .uk-nav-sub {
    height: 0;
    overflow: hidden;
    transition: height .3s ease;
    padding-left: 1rem;
}

#offcanvas-nav .uk-nav-sub a {
    font-size: .9375rem;
    color: var(--slate-700);
}

/* Icône + sur les parents */
#offcanvas-nav li.uk-parent>a::after {
    content: '';
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2310182b' viewBox='0 0 256 256'%3E%3Cpath d='M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z'%3E%3C/path%3E%3C/svg%3E") center/contain no-repeat;
}

/* Icône − quand ouvert */
#offcanvas-nav li.uk-parent.is-open>a::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2310182b' viewBox='0 0 256 256'%3E%3Cpath d='M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z'%3E%3C/path%3E%3C/svg%3E");
}

#offcanvas-menu .uk-close {
    color: var(--slate-600);
    top: 1.5rem;
    right: 1.5rem;
}

/* =========================================================
   Menu modal mobile (#modal-full > .offcanvas-nav)
   ========================================================= */
#modal-full {
    z-index: 99999;
}

/* Liens */
#modal-full #mobile-nav a {
    font-family: var(--font-primary);
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 0;
    text-decoration: none;
    color: var(--slate-900);
}

/* Indicateur parent : + (fermé) / − (ouvert)
   uk-parent = item avec enfants
   uk-open   = item déplié (classe ajoutée par UIkit) */
#modal-full li.uk-parent>a::after {
    content: '';
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2310182b' viewBox='0 0 256 256'%3E%3Cpath d='M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#modal-full li.uk-parent.uk-open>a::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2310182b' viewBox='0 0 256 256'%3E%3Cpath d='M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z'%3E%3C/path%3E%3C/svg%3E");
}

/* Sous-menus */
#modal-full .uk-nav-sub {
    padding-left: 1rem;
}

#modal-full .uk-nav-sub a {
    font-size: .95rem;
    color: var(--slate-900);
}


/*************ARTICLE**************/
.card-article a {
    text-decoration: none !important;
    color: var(--slate-900);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;

}

@media screen and (max-width:960px) {
    .card-article a {
        gap: 0;
    }
}

.card-article .h3-like {
    margin-top: 1.5rem
}

.card-article .card-article__thumb img {
    object-fit: cover;
    aspect-ratio: 16/9;
}

.card-article .read-more {
    color: var(--red-600);
    display: flex;
    align-items: center;
    gap: .25rem;
    margin: 0;
    font-family: var(--font-primary);
    font-weight: 500;
}

/*************SEO Section**************/

.seo-section h2 {
    font-size: 1.125rem;
    margin-bottom: 0;
}

@media screen and (max-width:960px) {
    .seo-section h2 {
        font-size: 1rem;
    }
}

.seo-section {
    padding: 4rem 0;
}

@media screen and (max-width:960px) {
    .seo-section {
        padding: 2rem 0;
    }
}

.seo-section .uk-accordion li {
    border-bottom: solid 1px var(--slate-200);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}


.seo-section .uk-accordion li:last-child {
    border-bottom: none;
}

/*************FAQ Section**************/

.faq-section {
    padding: 4rem 0;
}

.faq-section a {
    font-family: var(--font-primary);
    margin-bottom: 0;
}

.faq-section .uk-accordion-default .uk-accordion-title {
    font-family: var(--font-primary);
    margin-bottom: 0;
    font-size: 1.125rem;
    font-weight: 500;
}

.faq-section .uk-accordion li {
    border-bottom: solid 1px var(--slate-200);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}


.faq-section .uk-accordion li:last-child {
    border-bottom: none;
}

@media screen and (max-width:960px) {
    .faq-section {
        padding: 2rem 0;
    }

    .faq-section .uk-accordion-default .uk-accordion-title {
        font-size: 1rem;
    }
}

/*************Footer**************/

footer {
    background-color: var(--red-600);
    position: relative;
    padding: 3rem 0;
}

footer::before {
    content: '';
    background-image: url(https://metgroupe.fr/wp-content/uploads/2026/04/fond-porte-1-scaled.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    mix-blend-mode: multiply;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.5;
}

footer>* {
    position: relative;
    z-index: 1;
    color: var(--white)
}

footer p {
    margin-top: 0;
    margin-bottom: 0
}

footer a {
    color: var(--white);
}

footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

footer .menu a {
    font-family: var(--font-primary);
    font-weight: 500;
}


footer .title {
    font-family: var(--font-primary);
    margin-top: 1rem;
    margin-bottom: .5rem;
}

footer .reseaux-sociaux {
    gap: .5rem;
    margin: 1rem 0;
}

footer .depannage {
    background-image: url(https://metgroupe.fr/wp-content/uploads/2026/04/besoin-depannage.webp);
    background-size: cover;
    background-repeat: no-repeat;
    padding: 2rem;
    padding-top: 6rem;
    border-radius: .5rem
}

footer .sub-footer {
    margin-top: 2rem;
}

/*CTA*/

.cta {
    padding: 4rem 0;
}

.cta .img-cta img {
    object-fit: cover;
    aspect-ratio: 16/9;
}

@media screen and (max-width:960px) {
    .cta {
        padding: 2rem 0;
    }
}

/**************MULTIMARQUE**********/

.multimarque {
    padding: 4rem 0;
}

.multimarque img {
    max-width: 8rem;
    width: auto;
    height: fit-content;
}

@media screen and (max-width:960px) {
    .multimarque img {
        height: initial;
    }
}

/****************carte-left PAGE ENFANT***************/


/****************carte-left****************/

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

}

.carte-left img.carte-left-fond {
    width: 100%;
    height: auto;
    display: block;
}

.carte-left .pins {
    position: absolute;
    inset: 0;
}

.carte-left .pin svg {
    width: 2.5rem;
    height: 2.5rem
}

.carte-left::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-left::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-left .h2-like {
    margin-bottom: 0;
}

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

}

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

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

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

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

.carte-left .pin-45 {
    top: 38%;
    left: 58%;
}

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

.carte-left .pin-89 {
    top: 44%;
    left: 80%;
}

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

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

.carte-enfant .item-agence-title {
    font-size: 1.5rem;
    font-family: var(--font-primary);
    margin-bottom: .5rem
}

.carte-enfant p {
    margin-top: 0
}


@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-left {
        min-height: 240px;
        background-size: 150%;
    }

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


.card-produit {
    text-decoration: none !important;
    display: block;
    color: inherit;
}

.card-produit__inner {
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: flex-end;

}

/* Image de fond */
.card-produit .card-produit__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.card-produit:hover .card-produit__bg {
    transform: scale(1.05);
}

.card-produit .card-produit__content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    background-color: var(--white);
    width: 100%;
    margin: 1rem;
    border-top: 4px solid var(--blue-600);
    transition: all .3s ease-out
}

.card-produit:hover .card-produit__content {
    background: var(--blue-600);
    color: var(--white)
}

.card-produit .h3-like {
    margin-bottom: 0.5rem;
}


.card-produit .card-produit__cta {
    font-family: var(--font-primary);
    color: var(--blue-600);
}

.card-produit:hover .card-produit__cta {
    color: var(--white)
}

/**
 * MET Groupe — depannage-modal.css
 * Dépendances : UIkit (uk-* classes déjà chargées par le thème)
 * Breakpoint UIkit @m = 960px (même valeur que uk-visible@m / uk-hidden@m)
 */

/* =============================================
   BOUTON NAVBAR
   ============================================= */

.met-depannage-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1rem;
    font-size: .875rem;
}

.met-btn-icon {
    flex-shrink: 0;
    /* hérite la couleur du bouton via currentColor dans le SVG fill */
}


/* =============================================
   BOUTON FIXE MOBILE BAS D'ÉCRAN
   uk-hidden@m gère déjà le masquage ≥960px
   ============================================= */

.met-depannage-fixed-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    /* au-dessus de la navbar UIkit (z-index: 980) */
    background-color: var(--red-600);
    color: #fff;
    text-decoration: none;
    gap: 10px;
    padding: 15px 24px;
    font-family: var(--font-primary);
    font-size: .875rem;
    border: 0;
    transition: background-color 0.2s ease;
}

.met-depannage-fixed-mobile:hover,
.met-depannage-fixed-mobile:focus {
    background-color: var(--red-800);
    color: #fff;
    text-decoration: none;
}

.met-modal-container {
    max-height: 90vh;
    /* borne la hauteur → permet au body de scroller */
    overflow: hidden;
    /* le scroll se fait dans .met-modal-body, pas ici */
    padding: 0;
    /* le padding est porté par header/body, pas le dialog */
}

/* Header fixe */
.met-modal-header {
    flex: 0 0 auto;
    padding-block: 30px;
}

.met-modal-header .met-modal-eyebrow {
    margin-bottom: 0.5rem;
}

/* Body scrollable */
.met-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* scroll fluide iOS */
}

/* Transitions d'étapes (inchangé) */
.met-modal-step {
    transition: opacity .25s ease, transform .25s ease;
}

.met-modal-step.met-fade-out,
.met-modal-step.met-fade-in {
    opacity: 0;
    transform: translateY(8px);
}

/* ============================================================
   MODAL DÉPANNAGE — plein écran sur mobile (< 960px)
   ============================================================ */
@media (max-width: 960px) {
    #met-depannage-modal {
        padding: 0 !important;
        z-index: 9999;
    }

    #met-depannage-modal #met-modal-title {
        font-size: 1.5rem;
    }

    /* Le dialog occupe tout l'écran */
    #met-depannage-modal .met-modal-container {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        /* gère la barre d'URL mobile (fallback ci-dessus) */
        max-height: 100vh;
        max-height: 100dvh;
        margin: 0;
        /* annule uk-margin-auto-vertical */
        border-radius: 0;
        padding: 0;
        z-index: 9999;
    }

    /* L'overlay ne centre plus verticalement */
    #met-depannage-modal.uk-flex-top {
        align-items: stretch;
    }

    /* Le body prend toute la hauteur restante et scrolle */
    #met-depannage-modal .met-modal-body {
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* --- Grille agences --- */
.met-agence-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .15rem;
    padding: .9rem 1.1rem;
    background: #fff;
    border: 1px solid var(--slate-900, #1e293b);
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: background .15s ease, color .15s ease;
}

.met-agence-btn:hover {
    background: var(--slate-900, #1e293b);
}

.met-agence-nom {
    font-weight: 600;
    color: var(--slate-900);
    font-size: 1.125rem;
    font-family: var(--font-primary);
}

.met-agence-ville {
    font-size: .875rem;
    color: var(--slate-600);
    line-height: 1.5;
}

.met-agence-btn:hover .met-agence-nom,
.met-agence-btn:hover .met-agence-ville {
    color: #fff;
}

/* --- Contact --- */
.met-back-btn {
    background: none;
    border: 0;
    padding: 0;
    margin-bottom: .75rem;
    cursor: pointer;
    color: var(--blue-600, #2563eb);
}

.met-agence-label {
    font-weight: 400;
    margin-bottom: .75rem;
    font-size: 1.125rem;
    font-family: var(--font-primary);
}

.met-modal-call svg {
    margin-right: .5rem;
}

.met-modal-divider {
    margin: 1.25rem 0;
    gap: .75rem;
}

.met-modal-divider::before,
.met-modal-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, .12);
}

.met-modal-divider span {
    font-size: .8rem;
    color: rgba(0, 0, 0, .55);
}

.met-modal-container .met-modal-form p {
    margin-bottom: .25rem;
}

/* =============================================
   SECTION AGENCES
   ============================================= */

.met-agencies {
    background-color: var(--slate-50);
}



/* =============================================
   CARTE AGENCE
   ============================================= */

.met-agency-card {
    background: #fff;
    overflow: hidden;
    border: 1px solid var(--slate-200);
    display: flex;
    flex-direction: column;
}

.met-agency-body {
    padding: 1.5rem;
}

/* Image */
.met-agency-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.met-agency-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

}


/* Placeholder si pas d'image */
.met-agency-img-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--slate-100);
    color: var(--slate-300);
    aspect-ratio: 16 / 9;
}

/* Nom de l'agence */
.met-agency-name {
    margin-bottom: 0.75rem;
}

.met-agency-name a {
    font-size: 1.25rem;
    color: var(--slate-900);
    margin-bottom: 0;
}

/* Liste infos */
.met-agency-details {
    margin: 0;
    padding: 0;
    flex: 1;
}

.met-agency-details li {
    gap: 8px;
    color: var(--slate-700);
    padding: 0;
    margin-bottom: 0;
    margin-top: .25rem !important;
}

.met-agency-details a {
    color: var(--slate-700);
}

.met-agency-details svg {
    color: var(--red-500);
}


/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 960px) {

    .met-contact-hero {
        padding-top: 32px;
        padding-bottom: 40px;
    }

    /* Sur mobile, les infos de contact passent au-dessus du formulaire */
    .met-contact-hero .uk-grid {
        flex-direction: column;
    }

    .met-agencies {
        padding-top: 40px;
        padding-bottom: 48px;
    }
}

/* ========== Slider produits — navigation arrows ========== */
.met-slider-nav {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.2s ease;
    z-index: 10;
}

.met-slider-nav:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.met-slider-nav svg {
    display: block;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .met-slider-nav {
        width: 36px;
        height: 36px;
    }

    .met-slider-nav svg {
        width: 16px;
        height: 16px;
    }
}

.marches .read-more {
    font-family: var(--font-primary);
    display: block;
    font-weight: 500;
    color: var(--red-600);
}

/* La boîte de dialogue occupe exactement la hauteur de l'écran
   pour que la zone uk-overflow-auto calcule l'espace restant */
.mobile-modal-menu .uk-modal-dialog {
    height: 100vh;
}

.btn-contact-mobile {
    background-color: var(--red-600);
    margin-right: 1rem;
    padding: .75rem;
}

.uk-modal-close-full {
    color: var(--red-600);
    top: 3rem;
    right: 1.25rem;
}

/* Bordure uniquement sur les parents de 1er niveau (Nos services, Nos solutions, Nos marchés, Nos agences) */
#offcanvas-nav>li.uk-parent,
#mobile-nav>li.uk-parent {
    border-bottom: 1px solid var(--slate-200);
}

/* =========================================================
   Pagination — #actualites-pagination
   ========================================================= */
#actualites-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .5rem;
}

#actualites-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 .75rem;
    font-family: var(--font-primary);
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1;
    color: var(--slate-900);
    background-color: transparent;
    border: 1px solid var(--slate-200);
    border-radius: 4px;
    text-decoration: none;
    transition: background-color .2s ease,
        color .2s ease,
        border-color .2s ease;
}

/* Survol / focus sur les liens */
#actualites-pagination a.page-numbers:hover,
#actualites-pagination a.page-numbers:focus-visible {
    background-color: var(--slate-900);
    border-color: var(--slate-900);
    color: #fff;
    outline: none;
}

/* Page courante */
#actualites-pagination .page-numbers.current {
    background-color: var(--slate-900);
    border-color: var(--slate-900);
    color: #fff;
    cursor: default;
}

/* Liens "Précédent" / "Suivant" : un peu plus larges, pas de min-width carré */
#actualites-pagination .prev.page-numbers,
#actualites-pagination .next.page-numbers {
    min-width: auto;
    padding: 0 1rem;
    font-weight: 500;
}

/* Points de suspension (…) si beaucoup de pages */
#actualites-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: var(--slate-500, #64748b);
    cursor: default;
}

/* Adaptation mobile : tout un peu plus compact */
@media (max-width: 480px) {
    #actualites-pagination {
        gap: .25rem;
    }

    #actualites-pagination .page-numbers {
        min-width: 2.25rem;
        height: 2.25rem;
        padding: 0 .5rem;
        font-size: .875rem;
    }

    #actualites-pagination .prev.page-numbers,
    #actualites-pagination .next.page-numbers {
        padding: 0 .75rem;
    }
}

/* Message de retour CF7 */
.wpcf7 form .wpcf7-response-output {
    margin: 1.25rem 0 0;
    padding: .875rem 1.125rem;
    border: 0;
    border-left: 4px solid #1e293b;
    border-radius: 4px;
    background: #f8fafc;
    color: #1e293b;
    font-size: .9375rem;
    line-height: 1.5;
}

.wpcf7 form .wpcf7-response-output:empty {
    display: none;
}

/* Envoi réussi */
.wpcf7 form.sent .wpcf7-response-output {
    border-left-color: #15803d;
    background: #f0fdf4;
    color: #14532d;
}

/* Erreurs : champs invalides, consentement manquant, échec d'envoi, spam */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
    border-left-color: #dc2626;
    background: #fef2f2;
    color: #7f1d1d;
}

/* Messages sous les champs */
.wpcf7 .wpcf7-not-valid-tip {
    margin-top: .25rem;
    font-size: .875rem;
    color: #b91c1c;
}

.wpcf7 .wpcf7-not-valid {
    border-color: #dc2626;
}