/*
Theme Name: VisionSI
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child

*/
/* ==============================
CAPTCHA
============================== */
.grecaptcha-badge {
    visibility: hidden !important;
}
/* ==============================
   TYPOGRAPHIE GLOBALE – SITE VisionSI
   ============================== */

/* Desktop classique (<2000px) */
h1, .elementor-widget-heading h1, .elementor-heading-title {
    font-family: 'Smooch Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 85px !important;
    line-height: 0.9 !important;
    text-transform: uppercase !important;
    color: var(--e-global-color-white, #ffffff) !important;
    margin-bottom: 0em !important;
}

h2, .elementor-widget-heading h2 {
    font-family: 'Smooch Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 65px !important;
    line-height: 0.9 !important;
    text-transform: uppercase !important;
    color: var(--e-global-color-primary) !important;
    margin-bottom: 0.2em !important;
}

h3, .elementor-widget-heading h3 {
    font-family: 'Smooch Sans', sans-serif !important;
    font-weight: 500 !important;
    font-size: 36px !important;
    line-height: 0.9 !important;
    text-transform: uppercase !important;
    color: var(--e-global-color-primary) !important;
    margin-bottom: 0.5em !important;
}

/* Corrige les marges des H3 issus de contenus dynamiques (publications, ACF, etc.) */
.elementor-widget-text-editor h3,
.elementor-widget-theme-post-content h3,
.elementor-widget-theme-post-excerpt h3 {
    margin-top: 1.2em !important;
    margin-bottom: 0.5em !important;
}

/* Supprime la marge haute sur les H3 en tout début de contenu dynamique */
.elementor-widget-text-editor h3:first-child,
.elementor-widget-text-editor .elementor-widget-container > h3:first-child,
.elementor-widget-theme-post-content h3:first-child,
.elementor-widget-theme-post-excerpt h3:first-child,
.elementor-shortcode h3:first-child,
.elementor-shortcode > h3:first-of-type {
    margin-top: 0 !important;
}

/* ============================================
   Correction espace avant accent dans les H3
   Appliquée uniquement quand un ::before décoratif précède un mot accentué
   ============================================ */

/* Assure un flux inline pour le décor */
h3::before {
    display: inline-block;
}

/* Ajoute un léger espace visuel entre ::before et le mot accentué */
h3::before + .accent,
h3::before + .no-transform {
    margin-left: 0.25em;
    display: inline-block;
}

h4, .elementor-widget-heading h4 {
    font-family: 'Smooch Sans', sans-serif !important;
    font-weight: 400 !important;
    font-size: 28px !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
    color: var(--e-global-color-primary) !important;
    margin-bottom: 0.6em !important;
}

h5, .elementor-widget-heading h5 {
    font-family: 'Smooch Sans', sans-serif !important;
    font-weight: 400 !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    color: var(--e-global-color-primary) !important;
    margin-bottom: 0.7em !important;
}

h6, .elementor-widget-heading h6 {
    font-family: 'Smooch Sans', sans-serif !important;
    font-weight: 400 !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    text-transform: uppercase !important;
    color: var(--e-global-color-primary) !important;
    margin-bottom: 0.8em !important;
}

p {
    font-family: 'Titillium Web', sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    color: var(--e-global-color-text) !important;
    margin-bottom: 1.2em !important;
}

p strong,
p b {
    font-weight: 600;
}

/*  Gestion des espacements après les paragraphes */
p + h2 {
    margin-top: 1em;
}

p + h3 {
    margin-top: 1.2em;
}

/* ==============================
   LIENS HYPERTEXTES – CONTENU TEXTE UNIQUEMENT
   ============================== */

/* Liens dans les paragraphes classiques du <main> */
main p a,
    /* Liens dans les paragraphes issus de widgets Elementor */
.elementor-widget-text-editor p a,
    /* Liens dans les publications importées via widgets thème Elementor */
.elementor-widget-theme-post-content p a,
.elementor-widget-theme-post-excerpt p a, .elementor-widget-theme-post-content li a {
    color: var(--e-global-color-primary) !important;
    text-decoration: none !important;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

main p a:hover,
.elementor-widget-text-editor p a:hover,
.elementor-widget-theme-post-content p a:hover,
.elementor-widget-theme-post-excerpt p a:hover, .elementor-widget-theme-post-content li a:hover {
    color: var(--e-global-color-accent, #ffffff) !important;
    text-decoration: underline !important;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}
.custom-white a,
.elementor-widget-text-editor.custom-white p a,
.elementor-widget-theme-post-content.custom-white p a,
.elementor-widget-theme-post-excerpt.custom-white p a {
    color: var(--e-global-color-white, #ffffff) !important;
}

.custom-white a:hover,
.elementor-widget-text-editor.custom-white p a:hover,
.elementor-widget-theme-post-content.custom-white p a:hover,
.elementor-widget-theme-post-excerpt.custom-white p a:hover {
    color: var(--e-global-color-primary) !important;
    text-decoration: underline !important;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

/* ==================================================
   TITRES — LIENS NEUTRES MAIS CLIQUABLES (version Elementor compatible)
   ================================================== */
h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
    all: unset;    /* Supprime tout style par défaut */
    display: inline;          /* Conserve le flux du texte */
    color: inherit !important;           /* Hérite de la couleur du titre */
    font: inherit !important;            /* Hérite de la typo et taille */
    text-decoration: none;    /* Pas de soulignement */
    cursor: pointer !important;          /* ✅ Garde le curseur en forme de main */
    pointer-events: auto;     /* Assure la cliquabilité */
    transition: opacity 0.3s ease;
}

h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover,
h5 a:hover,
h6 a:hover {
    opacity: 0.75 !important;
}
/* ==================================================
   LIENS VIDES (désactivation automatique pour les tags sans lien ACF)
   ================================================== */
a[href=""] {
    pointer-events: none !important; /* Désactive le clic */
    cursor: default !important;      /* Curseur normal */
    opacity: 0.6;                    /* Atténuation visuelle */
    text-decoration: none !important;
    transition: opacity 0.3s ease;
}

a[href=""]:hover {
    opacity: 0.6 !important; /* Empêche le hover de réactiver le style */
}

/* ==============================
   CLASSES UNIVERSELLES
   ============================== */

/* Texte blanc forcé */
h1.custom-white,
h2.custom-white,
h3.custom-white,
h4.custom-white,
h5.custom-white,
h6.custom-white,
p.custom-white,
span.custom-white,
div.custom-white,
.elementor-widget-heading.custom-white .elementor-heading-title,
.elementor-widget-text-editor.custom-white p,
.elementor-widget-text-editor.custom-white h1,
.elementor-widget-text-editor.custom-white h2,
.elementor-widget-text-editor.custom-white h3,
.elementor-widget-text-editor.custom-white h4,
.elementor-widget-text-editor.custom-white h5,
.elementor-widget-text-editor.custom-white h6 {
    color: var(--e-global-color-white, #ffffff) !important;
}


/* Étend la classe custom-white aux descendants */
.custom-white,
.custom-white * {
    color: var(--e-global-color-white, #ffffff) !important;
}

/* Texte accent forcé */
/* Classe utilisée dans le code php qui permet de mettre un texte entre crochets ([...]) */
h1.custom-accent,
h2.custom-accent,
h3.custom-accent,
h4.custom-accent,
h5.custom-accent,
h6.custom-accent,
p.custom-accent,
span.custom-accent,
div.custom-accent,
.elementor-widget-heading.custom-accent .elementor-heading-title,
.elementor-widget-text-editor.custom-accent p,
.elementor-widget-text-editor.custom-accent h1,
.elementor-widget-text-editor.custom-accent h2,
.elementor-widget-text-editor.custom-accent h3,
.elementor-widget-text-editor.custom-accent h4,
.elementor-widget-text-editor.custom-accent h5,
.elementor-widget-text-editor.custom-accent h6 {
    color: var(--e-global-color-accent) !important;
}

/* Neutralise la mise en majuscules forcée */
/* Classe utilisée dans le code php qui permet de mettre un texte entre asterisques (*) */
.no-transform {
    text-transform: none !important;
}

/* =========================================
   🔘 BOUTON GLOBAL — Elementor + Gutenberg
   ========================================= */
.btn,
.wp-block-button__link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;

    /* Spacing */
    padding: 16px 30px !important;

    /* Hauteur flexible */
    height: auto !important;
    min-height: 50px !important;

    /* Multi-ligne propre */
    white-space: normal !important;
    line-height: 1.1 !important;

    /* Apparence */
    background-color: var(--e-global-color-accent) !important;
    color: #fff !important;
    font-family: "Smooch Sans", sans-serif !important;
    font-size: 26px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;

    /* Animation */
    transition: background-color 0.3s ease, transform 0.2s ease !important;
}

/* 🔁 Effet hover/focus partagé */
.btn:hover,
.btn:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
    background-color: var(--e-global-color-primary) !important;
    color: #fff !important;
}

/* 🧩 État désactivé */
.btn[disabled],
.btn.is-disabled,
.wp-block-button__link[disabled],
.wp-block-button__link.is-disabled {
    background-color: #ccc !important;
    cursor: not-allowed !important;
    transform: none !important;
    opacity: 0.6 !important;
}

/* =========================================
   🔘 BOUTON VERSION MINI — Compatible Elementor
   ========================================= */
.btn-mini {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;

    padding: 10px 8px !important;

    /* Hauteur flexible */
    height: auto !important;
    min-height: 30px !important;

    /* Multi-ligne propre */
    white-space: normal !important;
    line-height: 1.1 !important;

    background-color: transparent !important;
    color: #fff !important;
    font-family: "Smooch Sans", sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: 1px solid #ffffff !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;

    transition: background-color 0.3s ease, transform 0.2s ease !important;
    outline: none !important;
}

/* Survol souris */
.btn-mini:hover {
    background-color: var(--e-global-color-accent) !important;
    color: #fff !important;
}

/* Focus clavier */
.btn-mini:focus {
    background-color: transparent !important;
    color: #fff !important;
}

/* Visité */
.btn-mini:visited {
    color: #fff !important;
}

/* Actif */
.btn-mini:active {
    background-color: transparent !important;
    color: #fff !important;
    transform: none !important;
}

/* ==============================
   ELEMENTS DÉCORATIFS ET ANIMATIONS
   ============================== */

/* Animation clignotante */
@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

/* H2 – barre verticale clignotante */
h2 { position: relative; }
h2::after {
    content: '|';
    font-weight: 400 !important;
    color: var(--e-global-color-accent) !important;
    font-size: 1em;
    animation: blink 1s infinite;
}

/* Petits textes au-dessus du H1 */
.upper-h1 {
    font-family: 'Smooch Sans', sans-serif !important;
    font-weight: 400 !important;
    font-size: 36px !important;
    line-height: 0.9 !important;
    color: var(--e-global-color-white, #ffffff) !important;
    text-transform: uppercase !important;
    margin-bottom: 0.2em !important;
}

/* Texte accentué inline */
.accent {
    color: var(--e-global-color-accent) !important;
}

/* H3 et .upper-h1 – éléments décoratifs */
h3, .upper-h1 { position: relative; }
h3::before, .upper-h1::before {
    content: '>\005C';
    margin-right: 4px;
    color: var(--e-global-color-accent) !important;
    font-size: 0.8em;
}
h3::after, .upper-h1::after {
    content: '_';
    margin-left: 4px;
    color: var(--e-global-color-accent) !important;
    font-size: 0.8em;
    animation: blink 1s infinite;
}

/* Neutralisation décorations pour H4, H5, H6 */
h4::before, h4::after,
h5::before, h5::after,
h6::before, h6::after {
    content: none !important;
}

/* ==============================
   Bloc titres ACF --> Alignement forcé à gauche en responsive si besoin
   ============================== */
@media (max-width: 767px) {
    .acf-responsive-title {
        text-align: left !important;
    }
}

/* ==============================
   VIGNETTES MISE EN AVANT — Version Desktop
   ============================== */

/* Grid auto-ajustée */
.mises-en-avant-grid .elementor-loop-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 2em !important;
}

/* Bloc principal */
.mise-en-avant {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Image de fond */
.mise-en-avant .background-mea {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.1);
    transition: transform 0.6s ease, filter 0.6s ease;
    z-index: 1;
}

/* Hover desktop */
.mise-en-avant:hover .background-mea {
    transform: scale(1);
    filter: blur(2px);
}

/* Panneau infos */
.mise-en-avant .infos-mea {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transform: translateY(15%);
    transition: transform 0.6s ease;
    z-index: 2;
}

.mise-en-avant:hover .infos-mea {
    transform: translateY(-55%);
}

/* TITRE */
.mise-en-avant-title {
    font-family: 'Smooch Sans', sans-serif !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    line-height: 0.9 !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    margin-bottom: 0 !important;
}

/* Pas de BEFORE / AFTER */
.mise-en-avant-title::before,
.mise-en-avant-title::after {
    content: none !important;
}

/* TEXTE */
.mise-en-avant-text {
    font-size: 0.95em !important;
    line-height: 1.4 !important;
    color: #fff !important;
    margin: 0 !important;
}

/* ==============================
   TABLETTE (entre 768 et 1023px)
   Toujours en état "hover"
   ============================== */
@media (max-width: 1023px) and (min-width: 768px) {

    /* Image toujours zoom-out + flou */
    .mise-en-avant .background-mea {
        transform: scale(1) !important;
        filter: blur(2px) !important;
    }

    /* Panneau infos toujours remonté */
    .mise-en-avant .infos-mea {
        transform: translateY(-55%) !important;
    }

    /* Optionnel : augmenter la hauteur du panneau */
    .mise-en-avant .infos-mea {
        height: 40% !important;
    }

    /* Titre légèrement smaller pour éviter les coupures */
    .mise-en-avant-title {
        font-size: 30px !important;
    }
}

/* ==============================
   MOBILE (< 768px)
   Version bandes compactes + titres centrés
   ============================== */
@media (max-width: 767px) {

    .mise-en-avant {
        height: 150px !important;
        min-height: 150px !important;
        max-height: 150px !important;
        display: flex !important;
        align-items: center !important;
        position: relative !important;
    }

    .mise-en-avant > * {
        padding: 0 !important;
    }

    .mise-en-avant .background-mea {
        filter: blur(4px) brightness(0.8) !important;
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
        transform: scale(1.1) !important;
    }

    .mise-en-avant .infos-mea {
        position: absolute !important;
        inset: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        padding: 0 1.2em !important;
        height: 100% !important;
        transform: none !important;
    }

    /* TITRE en EM */
    .mise-en-avant-title {
        font-size: 2.125em !important;  /* ≈ 34px */
        line-height: 0.9 !important;
        font-weight: 700 !important;
        margin: 0 !important;
        max-width: 90% !important;
    }

    .mise-en-avant-text {
        display: none !important;
    }
}

/* ==============================
   VIGNETTES ACTU XL (loop carousel)
   ============================== */
.actu-card-xl h3.actu-title-xl::before,
.actu-card-xl h3.actu-title-xl::after {
    content: none !important;
}

/* ==============================
   LOGO CLIENT – Effet over sur image
   ============================== */

/* Transition de base */
.logo-client img {
    transition: transform .35s ease, opacity .35s ease;
}

/* Hover si lien présent — couvre 3 structures possibles */
.logo-client a:hover img,           /* <div class=logo-client><a><img></a></div> */
a:hover .logo-client img,           /* <a><div class=logo-client><img></div></a> */
.logo-client:hover a img {          /* sécurité si hover sur le conteneur */
    transform: scale(0.9);
    opacity: .9;
    cursor: pointer;
}

/* Désactivation si nolink est posé sur le widget image (dans le conteneur) */
.logo-client .nolink img,
.nolink .logo-client img,
.logo-client.nolink img {
    transform: none !important;
    opacity: 1 !important;
    cursor: default !important;
    pointer-events: none;
}


/* ========================================
   🧩 VIGNETTES ACTU — Effet hover sur image
   ======================================== */

/* Style des textes du bloc info en bas de l'image */
.actu-card h3.actu-title {
    text-transform: none !important;
    font-size: 1.8em !important;
    font-weight: 500 !important;
}
.actu-card h3.actu-title::before,
.actu-card h3.actu-title::after {
    content: none !important;
}
.actu-card p.actu-text {
    font-size: 0.86em !important;
}

/* Comportement de l'image de l'actu (roll over et mise en place) */
/* 1️⃣ Carte principale */
.actu-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* 2️⃣ Bloc global (image + contenu texte) */
.actu-card .actu-bloc {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    flex-shrink: 0;
}

/* 3️⃣ Conteneur image */
.actu-card .actu-bloc .actu-img {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

/* 4️⃣ Image à la une */
.actu-card .actu-bloc .actu-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;            /* Remplit sans déformer */
    object-position: center;      /* Centre parfaitement */
    transition: transform 0.8s ease;
}

/* 5️⃣ Fond bleu au survol */
.actu-card .actu-bloc .actu-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--e-global-color-primary);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 2;
}

/* 6️⃣ Hover global sur la carte */
.actu-card:hover .actu-bloc .actu-img::after {
    opacity: 0.9;
}

.actu-card:hover .actu-bloc .actu-img img {
    transform: scale(1.05);
}

/* Petit pictogramme apparition au survol - image svg */

/* Conteneur image déjà existant */
.actu-card .actu-bloc .actu-img {
    position: relative;
    overflow: hidden;
}

/* Picto survol (+) */
.actu-card .actu-bloc .actu-img::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%; /* position initiale, au centre */
    width: 60px;
    height: 60px;
    background: url('/wp-content/uploads/2025/10/Picto-survol-vignette-plus.svg') no-repeat center center;
    background-size: contain;
    opacity: 0;
    transform: translate(-50%, 40px); /* décalé vers le bas */
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 3; /* au-dessus du voile bleu */
}

/* Apparition fluide au survol */
.actu-card:hover .actu-bloc .actu-img::before {
    opacity: 1;
    transform: translate(-50%, -50%);
    top: 50%; /* se centre verticalement */
}

/* ========================================
   🧩 VIGNETTES PROJET ARCHIVES — Effet hover sur image
   ======================================== */

/* Style des textes du bloc info en bas de l'image */
.projet2-card h3.projet2-title {
    text-transform: none !important;
    font-size: 1.8em !important;
    font-weight: 500 !important;
}
.projet2-card h3.projet2-title::before,
.projet2-card h3.projet2-title::after {
    content: none !important;
}
.projet2-card p.projet2-text {
    font-size: 0.86em !important;
}
.projet2-card p.projet2-client {
    font-size: 1.3em !important;
    font-family: 'Smooch Sans', sans-serif !important;
    font-weight: 600 !important; /* plus bold que H3 standard */
    text-transform: uppercase !important;
    color: var(--e-global-color-accent) !important;
    margin: 0 !important;
}

/* Comportement de l'image du projet (roll over et mise en place) */
/* 1️⃣ Carte principale */
.projet2-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* 2️⃣ Bloc global (image + contenu texte) */
.projet2-card .projet2-bloc {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    flex-shrink: 0;
}

/* 4️⃣ Image à la une */
.projet2-card .projet2-bloc .projet2-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;            /* Remplit sans déformer */
    object-position: center;      /* Centre parfaitement */
    transition: transform 0.8s ease;
}

/* 5️⃣ Fond bleu au survol */
.projet2-card .projet2-bloc .projet2-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--e-global-color-primary);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 2;
}

/* 6️⃣ Hover global sur la carte */
.projet2-card:hover .projet2-bloc .projet2-img::after {
    opacity: 0.9;
}

.projet2-card:hover .projet2-bloc .projet2-img img {
    transform: scale(1.05);
}

/* Petit pictogramme apparition au survol - image svg */

/* Conteneur image déjà existant */
.projet2-card .projet2-bloc .projet2-img {
    position: relative;
    overflow: hidden;
}

/* Picto survol (+) */
.projet2-card .projet2-bloc .projet2-img::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%; /* position initiale, au centre */
    width: 60px;
    height: 60px;
    background: url('/wp-content/uploads/2025/10/Picto-survol-vignette-plus.svg') no-repeat center center;
    background-size: contain;
    opacity: 0;
    transform: translate(-50%, 40px); /* décalé vers le bas */
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 3; /* au-dessus du voile bleu */
}

/* Apparition fluide au survol */
.projet2-card:hover .projet2-bloc .projet2-img::before {
    opacity: 1;
    transform: translate(-50%, -50%);
    top: 50%; /* se centre verticalement */
}

/* ==============================
   VIGNETTES PROJETS en Homepage (Loop Carousel)
   ============================== */
.project-card {
    display: flex !important;
    align-items: stretch !important;
    position: relative !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    overflow: hidden !important;
}
.project-card .project-text {
    background: var(--e-global-color-primary) !important;
    padding: 2em !important;
    flex: 0 0 40% !important;
    z-index: 2 !important;
    transform: translateX(-40px) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}
.project-card .project-client {
    display: inline-block !important;
    font-family: 'Smooch Sans', sans-serif !important;
    background: var(--e-global-color-accent) !important;
    color: var(--e-global-color-primary) !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 0em 0.5em !important;
}
.project-card h3.project-title,
.project-card .elementor-widget-heading h3.project-title {
    font-family: 'Smooch Sans', sans-serif !important;
    font-size: 40px !important;
    font-weight: 500 !important;
    line-height: 0.9 !important;
    color: #ffffff !important;
    margin-bottom: 0.2em !important;
    position: relative !important;
    text-align: right !important;
}
.project-card h3.project-title::before,
.project-card h3.project-title::after {
    content: none !important;
}
.project-card .project-excerpt,
.project-card p.project-excerpt {
    font-size: 16px !important;
    line-height: 1.4 !important;
    color: var(--e-global-color-white, #ffffff) !important;
    margin-bottom: 0 !important;
    text-align: right !important;
}
.project-card .project-visual {
    flex: 1 !important;
    position: relative !important;
}
.project-card .project-visual img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover !important;
}

/* PROJECT CARD — Responsive Mobile  */
@media (max-width: 767px) {

    .project-card {
        flex-direction: column !important;
        max-width: 100% !important;
        transform: none !important;
    }

    /* Zone texte */
    .project-card .project-text {
        flex: none !important;
        padding: 1.2em !important;
        transform: none !important;
        box-shadow: none !important;
        text-align: center !important;
    }

    .project-card .project-client {
        font-size: 20px !important;
        padding: 0.2em 0.4em !important;
        margin-bottom: 0.6em !important;
    }

    .project-card h3.project-title,
    .project-card .elementor-widget-heading h3.project-title {
        font-size: 26px !important;
        line-height: 1.1 !important;
        text-align: center !important;
    }

    .project-card .project-excerpt,
    .project-card p.project-excerpt {
        font-size: 14px !important;
        text-align: center !important;
        line-height: 1.4 !important;
        margin-top: 0.5em !important;
    }

    /* Image en haut */
    .project-card .project-visual {
        order: -1 !important;
        width: 100% !important;
        margin-bottom: 0.8em !important;
    }

    .project-card .project-visual img {
        height: auto !important;
        border-radius: 8px !important;
    }
}

/* ==============================
   VIGNETTES PROJETS sur CPT Client
   ============================== */

.project-card2 h3.project-title,
.project-card2 .elementor-widget-heading h3.project-title {
    font-family: 'Smooch Sans', sans-serif !important;
    font-size: 40px !important;
    font-weight: 500 !important;
    line-height: 0.9 !important;
    color: var(--e-global-color-primary) !important;
    margin-bottom: 0.2em !important;
    /*  position: relative !important; */
    text-align: left !important;
}
.project-card2 h3.project-title::before,
.project-card2 h3.project-title::after {
    content: none !important;
}
.project-card2 .project-excerpt,
.project-card2 p.project-excerpt {
    font-size: 16px !important;
    line-height: 1.4 !important;
    color: var(--e-global-color-text) !important;
    margin-bottom: 0 !important;
    text-align: left !important;
}

/* ==============================
   VIGNETTES OFFRE
   ============================== */

.offre-card h3.offre-title,
.offre-card .elementor-widget-heading h3.offre-title {
    font-family: 'Smooch Sans', sans-serif !important;
    font-size: 40px !important;
    font-weight: 500 !important;
    line-height: 0.9 !important;
    color: var(--e-global-color-primary) !important;
    margin-bottom: 0.2em !important;
    /*  position: relative !important; */
    text-align: left !important;
}
.offre-card h3.offre-title::before,
.offre-card h3.offre-title::after {
    content: none !important;
}
.offre-card .offre-type {
    display: inline-block; /* permet la forme arrondie */
    background-color: var(--e-global-color-primary) !important;
    color: #fff !important;
    font-family: 'Smooch Sans', sans-serif !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
    padding: 6px 16px !important;
    border-radius: 999px !important; /* forme de pastille */
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    margin-bottom: 0.8em !important;
    text-align: center !important;
    white-space: nowrap !important; /* empêche le retour à la ligne */
}

/* ==============================
   VIGNETTES SERVICES (loop carousel)
   ============================== */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease; /* animation fluide */
}
.service-card:hover {
    transform: translateY(-6px); /* petit mouvement vers le haut */
    box-shadow: 0 6px 20px rgba(0,0,0,0.15); /* ombre légère pour effet de flottement */
}
.service-card h3.service-title {
    text-transform: none !important;
    font-size: 1.8em !important;
    font-weight: 500 !important;
}
.service-card h3.service-title::before,
.service-card h3.service-title::after {
    content: none !important;
}
.service-card p.service-text {
    font-size: 0.86em !important;
}

/* ==============================
   VIGNETTES TEAM (loop grid)
   ============================== */
.team-card {
    text-align: center !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
    padding: 1.2em 1em !important;
    line-height: 1.2 !important;
}
.team-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08) !important;
}

/* Nom complet */
.team-card .name {
    font-family: var(--e-global-typography-primary-font-family, inherit) !important;
    font-weight: 600 !important;
    font-size: 1.4em !important;
    color: var(--e-global-color-primary) !important;
    text-transform: uppercase !important;
    margin-top: 0.6em !important;
    margin-bottom: 0.15em !important;
    line-height: 1.25 !important;
}

/* Fonction */
.team-card .fonction {
    font-family: var(--e-global-typography-text-font-family, inherit) !important;
    font-size: 0.88em !important;
    color: color-mix(in srgb, var(--e-global-color-primary) 70%, white) !important;
    margin-bottom: 0.25em !important;
    line-height: 1.3 !important;
}

/* Pôles (Service(s) du membre) */
.team-card .poles {
    font-family: var(--e-global-typography-text-font-family, inherit) !important;
    font-weight: 600 !important;
    font-size: 0.75em !important;
    color: var(--e-global-color-accent) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    margin-top: 0.2em !important;
}

/* ==============================
   VIGNETTES CLIENTS (loop carousel)
   ============================== */
.client-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease; /* animation fluide */
}
.client-card:hover {
    transform: translateY(-6px); /* petit mouvement vers le haut */
    box-shadow: 0 6px 20px rgba(0,0,0,0.15); /* ombre légère pour effet de flottement */
}
.client-card h3.client-title {
    text-transform: none !important;
    font-size: 1.8em !important;
    font-weight: 500 !important;
}
.client-card h3.client-title::before,
.client-card h3.client-title::after {
    content: none !important;
}
.client-card p.client-text {
    font-size: 0.86em !important;
}

/* ==============================
   VIGNETTES RÉASSURANCE
   ============================== */

/* Conteneur global de la vignette */
.reassurance-card {
    text-align: center !important;
    justify-content: top !important;
    align-items: center !important;
}

/* Pictogrammes — chargés via shortcode ou image directe */
.picto-reassurance,
img.picto-reassurance,
.reassurance-card .elementor-shortcode img {
    display: block;
    height: 70px;          /* Hauteur fixe uniforme */
    width: auto;           /* Largeur auto proportionnelle */
    margin: 0 auto 10px;   /* Centrage horizontal + espace bas */
    object-fit: contain;   /* Conserve le ratio d’origine */
    max-width: none;       /* Évite l’écrasement par un parent flex */
}

/* Titre */
.reassurance-card h3.reassurance-title {
    font-size: 1.9em !important;
    font-weight: 600 !important;
    color: var(--e-global-color-accent) !important;
}
.reassurance-card h3.reassurance-title::before,
.reassurance-card h3.reassurance-title::after {
    content: none !important;
}

/* Texte */
.reassurance-card p.reassurance-text {
    font-size: 0.86em !important;
}

/* ==============================
   TÉLÉPHONE (Footer / Contact)
   ============================== */
.telephone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-size: clamp(0.9em, 1.2vw, 1em);
    font-weight: 600 !important;
    color: var(--e-global-color-white, #ffffff) !important;
    text-decoration: none;
    background-color: var(--e-global-color-accent, #a6ba7b);
    border: 2px solid transparent;
    border-radius: 9999px;
    padding: 0.5em 0.8em;
    transition: all 0.3s ease;
    line-height: 1;
    white-space: nowrap;
}

/* Icône téléphone blanche et sobre */
.telephone::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    background: #ffffff; /* Toujours blanc, même au hover */
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M6.62 10.79a15.464 15.464 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.01-.24c1.12.37 2.33.57 3.58.57a1 1 0 0 1 1 1v3.49a1 1 0 0 1-1 1A17.93 17.93 0 0 1 2 6a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.46.57 3.58a1 1 0 0 1-.24 1.01l-2.21 2.2z"/></svg>') center / contain no-repeat;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M6.62 10.79a15.464 15.464 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.01-.24c1.12.37 2.33.57 3.58.57a1 1 0 0 1 1 1v3.49a1 1 0 0 1-1 1A17.93 17.93 0 0 1 2 6a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.46.57 3.58a1 1 0 0 1-.24 1.01l-2.21 2.2z"/></svg>') center / contain no-repeat;
}

/* Hover : inversion bleu/vert + bordure accent */
.telephone:hover {
    background-color: var(--e-global-color-primary, #0d3b6f);
    border-color: var(--e-global-color-accent, #a6ba7b);
    color: #ffffff !important;
}


/* ==============================
   MENU BURGER --> Correctif couleur auto elementor
   ============================== */
/* Empêche Elementor de mettre un fond sur le bouton burger */
.e-n-menu-toggle,
.e-n-menu-toggle:hover,
.e-n-menu-toggle:focus,
.e-n-menu-toggle[aria-expanded="true"] {
    background: transparent !important;
    box-shadow: none !important;
}
/* ==============================
   MENU MOBILE — Style personnalisé
   ============================== */
@media (max-width: 1024px) {
    .e-n-menu-wrapper {
        transform: scale(.95) !important;
        transform-origin: top center !important;
        border-radius: 20px !important;
    }
}


/* ==============================
   MENU XL
   ============================== */

/* Gestion du background du header à l'ouverture du menu XL
/* Couleur du fond du menu XL gérée dans le conteneur elementor directement */
#site-header {
    background: transparent !important;
    transition: background 0s ease;
}
/* Quand le menu XL est ouvert */
#site-header.menu-xl-open {
    background: var(--e-global-color-secondary) !important;
}
.menu-xl {
    display: flex;
    gap: 3em; /* espace entre colonnes */
    padding: 2em;
}

/* Titres de colonnes (visuellement = H4 mais en <p>) */
.menu-xl .colonne-title p {
    font-family: 'Smooch Sans', sans-serif !important;
    font-weight: 600 !important; /* un peu plus marqué que H4 standard */
    font-size: 26px !important;  /* même hiérarchie que H4 */
    line-height: 0 !important;
    text-transform: uppercase !important;
    color: var(--e-global-color-accent) !important; /* couleur accent */
    margin-bottom: 0.8em !important;
}

/* Items cliquables (hérités du widget menu WP) */
.menu-xl .colonne-item a {
    font-family: 'Titillium Web', sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 0 !important;
    color: #ffffff !important; /* blanc défini ici */
    text-decoration: none !important;
    display: block !important;
    margin-bottom: 0em !important;
    transition: color 0.3s ease;
}

.menu-xl .colonne-item a:hover {
    color: var(--e-global-color-accent) !important; /* accent au survol */
}

/* ==============================
   FIL D’ARIANE – STYLING
   ============================== */
.fil-ariane {
    font-family: 'Titillium Web', sans-serif;
    font-size: 0.85em;
    color: var(--e-global-color-white, #ffffff);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4em;
}

.fil-ariane a {
    color: var(--e-global-color-white, #ffffff);
    text-decoration: none;
    transition: color 0.3s ease;
}

.fil-ariane a:hover {
    color: var(--e-global-color-accent);
}

/* Séparateur (chevron) */
.fil-ariane a::after {
    content: "›";
    margin: 0 0.4em;
    color: var(--e-global-color-white, #ffffff);
    font-size: 1.1em; /* ⇦ augmente ici la taille du chevron */
    opacity: 0.8;
}

/* Cache le chevron sur le dernier élément */
.fil-ariane span::before {
    content: "›";
    margin: 0 0.4em;
    color: var(--e-global-color-white, #ffffff);
    opacity: 0.4;
    display: none;
}

/* Élément actif (page courante) */
.fil-ariane span {
    color: var(--e-global-color-accent);
    font-weight: 600;
}

/* ==============================
   FILTRE DE TAXONOMIES ACCUEIL CLIENTS
   ============================== */

.client-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8em;
    justify-content: center;
    margin-bottom: 2em;
}

.client-filter .filter-link {
    font-size: 0.9em; /* légèrement plus petit que <p> */
    color: var(--e-global-color-primary);
    text-decoration: none;
    border: 1px solid var(--e-global-color-accent);
    padding: 0.35em 0.9em;
    border-radius: 4px;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    line-height: 1.4;
}

.client-filter .filter-link:hover {
    background: var(--e-global-color-accent);
    color: #fff;
    border-color: var(--e-global-color-accent);
    /* pas de font-weight ici */
}

.client-filter .filter-link.active {
    background: var(--e-global-color-accent);
    color: #fff;
    border-color: var(--e-global-color-accent);
    font-weight: 600; /* gras uniquement sur l’actif */
}

/* ==============================
   FILTRE DE TAXONOMIES ACCUEIL SERVICES
   ============================== */

.service-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8em;
    justify-content: center;
    margin-bottom: 2em;
}

.service-filter .filter-link {
    font-size: 0.9em; /* légèrement plus petit que <p> */
    color: var(--e-global-color-primary);
    text-decoration: none;
    border: 1px solid var(--e-global-color-accent);
    padding: 0.35em 0.9em;
    border-radius: 4px;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    line-height: 1.4;
}

.service-filter .filter-link:hover {
    background: var(--e-global-color-accent);
    color: #fff;
    border-color: var(--e-global-color-accent);
    /* pas de font-weight ici */
}

.service-filter .filter-link.active {
    background: var(--e-global-color-accent);
    color: #fff;
    border-color: var(--e-global-color-accent);
    font-weight: 600; /* gras uniquement sur l’actif */
}

/* ==============================
   FILTRE DE TAXONOMIES ACCUEIL ACTUALITES
   ============================== */

.post-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8em;
    justify-content: center;
    margin-bottom: 2em;
}

.post-filter .filter-link {
    font-size: 0.9em; /* légèrement plus petit que <p> */
    color: var(--e-global-color-primary);
    text-decoration: none;
    border: 1px solid var(--e-global-color-accent);
    padding: 0.35em 0.9em;
    border-radius: 4px;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    line-height: 1.4;
}

.post-filter .filter-link:hover {
    background: var(--e-global-color-accent);
    color: #fff;
    border-color: var(--e-global-color-accent);
    /* pas de font-weight ici */
}

.post-filter .filter-link.active {
    background: var(--e-global-color-accent);
    color: #fff;
    border-color: var(--e-global-color-accent);
    font-weight: 600; /* gras uniquement sur l’actif */
}

/* ==============================
   FILTRE DE TAXONOMIES ACCUEIL PROJETS
   ============================== */

.projet-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8em;
    justify-content: center;
    margin-bottom: 2em;
}

.projet-filter .filter-link {
    font-size: 0.9em; /* légèrement plus petit que <p> */
    color: var(--e-global-color-primary);
    text-decoration: none;
    border: 1px solid var(--e-global-color-accent);
    padding: 0.35em 0.9em;
    border-radius: 4px;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    line-height: 1.4;
}

.projet-filter .filter-link:hover {
    background: var(--e-global-color-accent);
    color: #fff;
    border-color: var(--e-global-color-accent);
}

.projet-filter .filter-link.active {
    background: var(--e-global-color-accent);
    color: #fff;
    border-color: var(--e-global-color-accent);
    font-weight: 600; /* gras uniquement sur l’actif */
}

/* ==============================
   ÉTIQUETTES
   ============================== */
.etiquette-tags {
    margin-top: 1.5em !important;
}

/* Liste principale */
.etiquette-tags .elementor-post-info__terms-list {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    font-size: 0 !important; /* masque les virgules textuelles */
}

/* Chaque élément devient un bloc espacé manuellement */
.etiquette-tags .elementor-post-info__terms-list > * {
    display: inline-block !important;
    font-size: 0.85rem !important;
    margin-right: 0.6em !important;   /* espace horizontal */
}
.etiquette-tags .elementor-post-info__terms-list > *:last-child {
    margin-right: 0 !important;       /* supprime l’espace après le dernier */
}

/* Styles communs */
.etiquette-tags a,
.etiquette-tags .elementor-post-info__terms-list-item {
    background: rgba(var(--e-global-color-accent-rgb,255,255,255),0.05) !important;
    border: 1px solid var(--e-global-color-accent) !important;
    border-radius: 20px !important;
    padding: 0.25em 1em !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    transition: background .25s ease, color .25s ease, border-color .25s ease, opacity .25s ease !important;
}

/* Liens actifs */
.etiquette-tags a {
    color: var(--e-global-color-primary) !important;
}
.etiquette-tags a:hover {
    background: var(--e-global-color-accent) !important;
    color: #fff !important;
    border-color: var(--e-global-color-accent) !important;
}

/* Étiquettes inactives */
.etiquette-tags .elementor-post-info__terms-list-item:not(a) {
    color: rgba(var(--e-global-color-primary-rgb,0,0,0),0.6) !important;
    border: 1px solid rgba(var(--e-global-color-accent-rgb,255,255,255),0.4) !important;
    opacity: 0.6 !important;
    pointer-events: none !important;
    cursor: default !important;
}

/* Étiquettes inactives (sans lien ACF) */
.etiquette-tags .elementor-post-info__terms-list-item:not(a) {
    color: rgba(var(--e-global-color-primary-rgb, 0, 0, 0), 0.6) !important;
    background: rgba(var(--e-global-color-accent-rgb, 255,255,255), 0.03) !important;
    border: 1px solid rgba(var(--e-global-color-primary-rgb, 0, 0, 0), 0.25) !important; /* ✅ contour gris */
    border-radius: 20px !important;
    padding: 0.25em 1em !important;
    opacity: 0.6 !important;
    pointer-events: none !important;
    cursor: default !important;
}

/* ===========================================================
   STYLES DU MENU XL (zones déroulantes du header)
   =========================================================== */

.menu-xl-zone {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
    backdrop-filter: blur(10px); /* Ajout d'un léger flou d'arrière plan
    /* Amélioration du rendu de flou si temps de chargement long */
    will-change: backdrop-filter;
    transition: backdrop-filter 0.3s ease;
}

/* Arrondi sur l'image du menu XL */
.menu-xl-img img {
    border-radius: 6px;
    overflow: hidden;
    display: block;
}

/* Titre de colonne (type H3 vignette mais sans before/after) */
.menu-xl-title {
    font-family: 'Smooch Sans', sans-serif !important;
    font-weight: 500;
    font-size: 22px !important;
    line-height: 1.2;
    color: var(--e-global-color-accent);
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

/* Liste de liens (relation ACF) */
.menu-xl-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-xl-list li {
    margin: 0.15rem 0;
}

.menu-xl-list a {
    display: inline-block;
    font-family: 'Titillium Web', sans-serif;
    font-size: clamp(0.9rem, 1vw, 1rem);
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.menu-xl-list a:hover {
    color: var(--e-global-color-accent);
}


/* ==============================
   RESPONSIVE
   ============================== */

/* Grands écrans ≥2000px */
@media (min-width: 2000px) {
    h1, .elementor-widget-heading h1, .elementor-heading-title { font-size: 110px !important; }
    h2, .elementor-widget-heading h2 { font-size: 74px !important; }
    h3, .elementor-widget-heading h3 { font-size: 40px !important; }
    h4, .elementor-widget-heading h4 { font-size: 32px !important; }
    h5, .elementor-widget-heading h5 { font-size: 26px !important; }
    h6, .elementor-widget-heading h6 { font-size: 22px !important; }
    .upper-h1 { font-size: 40px !important; }
    p { font-size: 18px !important; }

    /* Fil d’Ariane */
    .fil-ariane {
        font-size: 1em;
        gap: 0.6em;
    }
    .fil-ariane a::after {
        font-size: 1.3em;
    }
}

/* Tablettes ≤1024px */
@media (max-width: 1024px) {
    h1, .elementor-widget-heading h1, .elementor-heading-title { font-size: 65px !important; }
    h2, .elementor-widget-heading h2 { font-size: 50px !important; }
    h3, .elementor-widget-heading h3 { font-size: 28px !important; }
    h4, .elementor-widget-heading h4 { font-size: 24px !important; }
    h5, .elementor-widget-heading h5 { font-size: 20px !important; }
    h6, .elementor-widget-heading h6 { font-size: 18px !important; }
    .upper-h1 { font-size: 28px !important; }
    p { font-size: 15px !important; }

    /* Fil d’Ariane */
    .fil-ariane {
        font-size: 0.8em;
        gap: 0.3em;
    }
    .fil-ariane a::after {
        font-size: 1em;
    }
}

/* Mobiles ≤768px */
@media (max-width: 768px) {
    h1, .elementor-widget-heading h1, .elementor-heading-title { font-size: 50px !important; }
    h2, .elementor-widget-heading h2 { font-size: 38px !important; }
    h3, .elementor-widget-heading h3 { font-size: 26px !important; }
    h4, .elementor-widget-heading h4 { font-size: 21px !important; }
    h5, .elementor-widget-heading h5 { font-size: 18px !important; }
    h6, .elementor-widget-heading h6 { font-size: 16px !important; }
    .upper-h1 { font-size: 24px !important; }
    p { font-size: 15.5px !important; }

    /* Ajustement vignette "mise en avant" pour petits écrans */
    .mise-en-avant .infos-mea {
        transform: translateY(15%);
        padding: 1em;
    }

    /* Fil d’Ariane : compact et centré */
    .fil-ariane {
        font-size: 0.75em;
        justify-content: left;
        gap: 0.2em;
    }

    .fil-ariane a::after {
        font-size: 0.9em;
    }

    /* Option : masque les niveaux intermédiaires sur mobile pour alléger */
    .fil-ariane a:nth-last-child(n+3),
    .fil-ariane span:nth-last-child(n+3) {
        display: none;
    }

    /* Affiche uniquement : Accueil › Page courante */
    .fil-ariane a:first-of-type::after {
        content: "›";
        margin: 0 0.3em;
    }
}

/* ==============================
   FILTRE DE TAXONOMIES – RESPONSIVE
   ============================== */

/* Tablettes ≤1024px */
@media (max-width: 1024px) {
    .client-filter {
        gap: 0.6em;
        justify-content: center; /* conserve le centrage */
        margin-bottom: 1.8em;
    }

    .client-filter .filter-link {
        font-size: 0.85em;
        padding: 0.3em 0.8em;
    }
}

/* Mobiles ≤768px */
@media (max-width: 768px) {
    .client-filter {
        flex-wrap: nowrap;
        justify-content: center; /* centré par défaut */
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth; /* défilement fluide */
        -webkit-overflow-scrolling: touch; /* inertie mobile iOS */
        gap: 0.6em;
        margin: 0 -1em 1.6em; /* petit débord pour effet plein écran */
        padding: 0 1em;
    }

    .client-filter::-webkit-scrollbar {
        display: none; /* masque la barre pour un rendu épuré */
    }

    .client-filter .filter-link {
        flex: 0 0 auto;
        scroll-snap-align: start;
        font-size: 0.85em;
        padding: 0.4em 0.9em;
        white-space: nowrap;
        transition: background 0.25s ease, color 0.25s ease;
    }

    /* équilibre visuel à droite quand peu d’éléments */
    .client-filter::after {
        content: "";
        flex: 0 0 1em;
    }
}

/* ========================================================== */
/*   BLOC INTRO ACTUALITE --> suppression des marges Elementor */
/* ========================================================== */

/* 1) Supprime les <p> vides ou les marges des vrais <p> */
.intro-actu .elementor-shortcode > p {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 2) Supprime la marge des H2/H3/H4 quelle que soit la classe */
.intro-actu .elementor-shortcode h1,
.intro-actu .elementor-shortcode h2,
.intro-actu .elementor-shortcode h3,
.intro-actu .elementor-shortcode h4,
.intro-actu .elementor-shortcode h5,
.intro-actu .elementor-shortcode h6 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 3) Le conteneur du shortcode ne doit pas ajouter de marge */
.intro-actu .elementor-shortcode {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ==============================
   BOX STICKY LATÉRALE
   ============================== */

/* Titre de la box */
.box-title {
    font-family: 'Smooch Sans', sans-serif !important;
    font-weight: 500 !important;
    font-size: 20px !important;
    text-transform: uppercase !important;
    color: var(--e-global-color-primary) !important;
    text-align: right !important;
}

/* Supprime uniquement les marges automatiques d’Elementor */
.box-items-wrapper .elementor-widget,
.box-items-wrapper .elementor-widget-container,
.box-items-wrapper .elementor-text-editor,
.box-items-wrapper .elementor-element {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Style visuel des lignes projet/service */
.box-items {
    border-bottom: 1px solid rgba(255,255,255,.25) !important;
    font-family: 'Smooch Sans', sans-serif !important;
    font-weight: 400 !important;
    font-size: 19px !important;
    line-height: 1.1 !important;
    color: #fff !important;
    text-align: right !important;
    display: block;
    padding: 0em 0 0.55em 0 !important;
    transition: all 0.25s ease-in-out !important;
}

/* Effet de survol */
.box-items:hover {
    color: #d4e2b0 !important; /* Vert clair ou couleur accent */
    border-bottom-color: rgba(255,255,255,.45) !important;
    transform: translateX(-3px);
    letter-spacing: 0.3px; /* subtil effet d’ouverture */
    opacity: 0.95;
}

/* Texte d’incitation (bas de box) */
.box-footer {
    font-family: 'Smooch Sans', sans-serif !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    color: var(--e-global-color-accent) !important;
    opacity: 1;
    text-align: right !important;
    margin-top: 1.5em !important;
}

/* Effet de survol */
.box-footer:hover {
    color: #fff !important; /* blanc */
    transition: all 0.25s ease-in-out !important;
}

/* Effet elastique de la Box au scroll de la page - associé au snippet STICKY BOX ANIMATION */
.box-sticky {
    will-change: transform;
}

/* STICKY NATIF UNIQUEMENT EN DESKTOP */
@media (min-width: 1025px) {
    .box-sticky {
        position: sticky;
        top: 120px; /* ajuste selon tes besoins visuels */
    }
}

/* VERSION MOBILE : box dans le flux */
@media (max-width: 1024px) {
    .box-sticky {
        position: static !important;
        top: auto !important;
        transform: none !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .box-sticky img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* ======================================
   LOGOS DANS TOUTES LES BOX LATÉRALES
   (Projet + Client)
   ====================================== */

/* Version desktop — limite la hauteur des logos */
.box-sticky .elementor-widget-image img,
.box-sticky img.client-logo {
    display: block;
    height: auto;
    max-height: 120px !important;   /* Hauteur maximum desktop */
    width: auto !important;          /* Empêche Elementor d'imposer width:100% */
    margin: 0 auto 1.2em auto;       /* Centre horizontalement */
    object-fit: contain;             /* Sécurité anti-déformation */
}

/* ======================================
   VERSION MOBILE (<1024px)
   ====================================== */
@media (max-width: 1024px) {

    /* Logo un peu plus large en mobile si besoin */
    .box-sticky .elementor-widget-image img,
    .box-sticky img.client-logo {
        max-height: 160px !important;
    }

    /* Désactivation totale de l'effet floaty */
    .box-sticky {
        transform: none !important;
    }
}

/* =============================================
   Vignettes Reassurances - Formats Responsives Mobiles et tablettes
============================================= */
/* Tablette format Portrait */
@media (max-width: 1024px) {
    .reassurance-card h3.reassurance-title {
        font-size: 1.6em !important;
        line-height: 1.2em !important;
        --e-global-typography-h3-font-size: 1.6em !important;
    }

    .reassurance-card p.reassurance-text {
        font-size: 0.9em !important;
        --e-global-typography-text-font-size: 0.9em !important;
    }

    .reassurance-card {
        margin-bottom: 25px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .reassurance-card h3.reassurance-title {
        font-size: 1.4em !important;
        --e-global-typography-h3-font-size: 1.4em !important;
    }

    .reassurance-card p.reassurance-text {
        font-size: 0.86em !important;
        --e-global-typography-text-font-size: 0.86em !important;
    }

    .reassurance-card {
        max-width: 95% !important;
        margin: 0 auto 20px !important;
        text-align: left !important;
    }

    .picto-reassurance {
        height: 60px !important;
    }
}

/* Mobile étroit */
@media (max-width: 480px) {
    .reassurance-card h3.reassurance-title {
        font-size: 1.2em !important;
        --e-global-typography-h3-font-size: 1.2em !important;
    }

    .reassurance-card p.reassurance-text {
        font-size: 0.8em !important;
        --e-global-typography-text-font-size: 0.8em !important;
    }

    .picto-reassurance {
        height: 50px !important;
    }
}

/* ============================= */
/*   FORMULAIRE NEWSLETTER CF7   */
/* ============================= */

.newsletter-form {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background-color: var(--e-global-color-accent) !important;
    border-radius: 45px !important;
    max-width: 380px !important;
    width: 100% !important;
    margin-inline: auto !important;
    padding: 0.25em !important;
    gap: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: visible !important; /* permet aux messages de sortir */
}

/* Nettoyage du markup CF7 */
.newsletter-form > p {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
}
.newsletter-form br {
    display: none !important;
}

/* Champ email */
.newsletter-input {
    flex: 1 1 auto !important;
    background-color: #fff !important;
    border: none !important;
    border-radius: 45px !important;
    padding: 0.7em 2.4em 0.7em 1em !important;
    font-size: 0.95em !important;
    color: var(--e-global-color-primary) !important;
    outline: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    line-height: 1.1 !important;
}

.newsletter-input::placeholder {
    color: color-mix(in srgb, var(--e-global-color-primary) 60%, white) !important;
}

/* Bouton Newsletter dans footer */
.newsletter-submit {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 1.2em !important;
    cursor: pointer !important;
    border-radius: 45px !important;
    padding: 0 1.1em !important;
    transition: opacity 0.3s ease, transform 0.2s ease !important;
    height: 100% !important;
    text-align: center !important;
    margin-left: 0.3em !important;
    position: relative !important;
}

.newsletter-submit:hover {
    opacity: 0.85 !important;
    transform: translateY(-1px) !important;
}

/* Spinner CF7 intégré au bouton OK */
.newsletter-form .wpcf7-spinner {
    position: absolute !important;
    right: 0.8em !important;
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    top: 50% !important;
    display: none !important;
    filter: brightness(180%) contrast(120%) !important;
}

.wpcf7-form.submitting .wpcf7-spinner {
    display: block !important;
}

/* ============================= */
/*   MESSAGES ERREUR / SUCCÈS    */
/* ============================= */

/* Message d’erreur sous le champ */
.wpcf7-not-valid-tip {
    position: absolute !important;
    bottom: -1.8em !important; /* sort visuellement du fond vert */
    left: 1.2em !important;
    font-size: 0.85em !important;
    color: #fff !important;
    line-height: 1.5 !important;
    opacity: 0.9 !important;
    margin: 0 !important;
}

/* Message global (erreur ou succès) */
div.wpcf7-response-output {
    margin-top: 2.2em !important; /* espace suffisant après le bloc vert */
    margin-left: 1.2em !important;
    color: #fff !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-size: 0.85em !important;
    text-align: left !important;
    line-height: 1.5 !important;
    opacity: 0.9 !important;
    max-width: 90% !important;
}

/* === Responsive du formulaire Newsletter=== */
@media (max-width: 767px) {

    .newsletter-form {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0.5em !important;
        border-radius: 30px !important;
    }

    .newsletter-input {
        border-radius: 30px !important;
        padding: 0.7em 2.4em 0.7em 1em !important;
        font-size: 0.9em !important;
    }

    .newsletter-submit {
        /* bouton reste sur la même ligne */
        width: auto !important;
        border-radius: 30px !important;
        padding: 0 0.9em !important;
        font-size: 1em !important;
        margin-left: 0.3em !important;
    }

    .newsletter-form .wpcf7-spinner {
        right: 0.8em !important;
        transform: translateY(-50%) !important;
    }

    .wpcf7-not-valid-tip,
    div.wpcf7-response-output {
        margin-left: 0.6em !important;
        font-size: 0.8em !important;
    }
}


/* =========================
   PAGE 404 – STYLE "UPPER-H1 XXL"
   ========================= */

.text-404 {
    font-family: 'Smooch Sans', sans-serif !important;
    font-weight: 600 !important;
    font-size: clamp(80px, 12vw, 160px) !important;
    line-height: 0.9 !important;
    text-transform: uppercase !important;
    position: relative; /* indispensable pour before/after */
    color: var(--e-global-color-white);
    margin-bottom: 0.1em !important;
}

/* Décorations avant/après (copiées depuis .upper-h1) */
.text-404::before {
    content: '>\005C';
    margin-right: 4px;
    color: var(--e-global-color-accent) !important;
    font-size: 0.8em;
}

.text-404::after {
    content: '_';
    margin-left: 4px;
    color: var(--e-global-color-accent) !important;
    font-size: 0.8em;
    animation: blink 1s infinite;
}


/* Normalisation des SVG dans les vignettes */
.client-card img,
    /* .service-card img, /* à réactiver si besoin */ */
.project-card img {
    width: 100% !important;
    height: auto !important;
    max-height: 100px !important;
    object-fit: contain !important;
}

/* Forcer les SVG à se comporter comme des images normales */
.client-card img[src$=".svg"] {
    width: 100% !important;
    height: auto !important;
    max-height: 80px !important;
    display: block !important;
}