/* ==========================================================
   MASQUER COMPLÈTEMENT LE HEADER SALIENT
========================================================== */

#header-outer,
#header-space,
#slide-out-widget-area,
#mobile-menu{
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;

    height:0 !important;
    min-height:0 !important;
    max-height:0 !important;

    overflow:hidden !important;
}

/* Supprimer les espacements ajoutés par Salient */

html,
body,
#ajax-content-wrap,
body[data-header-format] #ajax-content-wrap,
body.material #ajax-content-wrap,
body.ascend #ajax-content-wrap,
body.original #ajax-content-wrap{
    margin-top:0 !important;
    padding-top:0 !important;
}

/* ==========================================================
   HAUTEUR DU HEADER — SOURCE UNIQUE
   Cette variable pilote : la hauteur du header, la
   hauteur des liens du menu, la position du panneau
   mobile et la compensation du body. Elle evite toute
   desynchronisation entre ces valeurs.
========================================================== */

:root{
    --le-header-h:92px;
}

/* Compensation du header fixe.

   NOTE : cette declaration est neutralisee par le
   "padding-top:0 !important" ci-dessus (annulation des
   espacements Salient). Le contenu passe donc sous le
   header fixe : c'est le rendu actuel du site, il est
   conserve tel quel. La regle est simplement branchee
   sur la variable pour rester coherente si le
   !important venait a etre leve. */

body{
    padding-top:var(--le-header-h);
}

/* ==========================================================
   HEADER PRINCIPAL
========================================================== */

.custom-header{
    position:fixed;
    top:0;
    left:0;
    z-index:999999;

    width:100%;
    height:var(--le-header-h);

    overflow:visible;

    color:#ffffff;

    background:
        radial-gradient(
            circle at 12% 0,
            rgba(7,87,249,.15),
            transparent 26%
        ),
        linear-gradient(
            90deg,
            #000b1c 0%,
            #000d20 48%,
            #00132e 100%
        );

    border-bottom:1px solid rgba(255,255,255,.055);

    box-shadow:
        0 6px 25px rgba(0,0,0,.08);

    transition:
        height .3s ease,
        background .35s ease,
        border-color .35s ease,
        box-shadow .35s ease,
        transform .38s cubic-bezier(.22,.61,.36,1);
}

.custom-header::before{
    content:"";

    position:absolute;
    inset:0;

    pointer-events:none;

    background:
        linear-gradient(
            115deg,
            rgba(255,255,255,.045),
            transparent 28%
        );
}

.custom-header::after{
    content:"";

    position:absolute;
    right:0;
    bottom:-1px;
    left:0;

    height:1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(7,87,249,.55),
            rgba(77,140,255,.20),
            transparent
        );

    opacity:.75;
}

/* Halo décoratif */

.custom-header-glow{
    position:absolute;
    top:-180px;
    right:10%;

    width:420px;
    height:300px;

    border-radius:50%;

    background:
        radial-gradient(
            circle,
            rgba(7,87,249,.14),
            transparent 68%
        );

    pointer-events:none;
}


/* Header après défilement */

.custom-header.is-scrolled{
    --le-header-h:82px;

    height:var(--le-header-h);

    background:rgba(0,13,32,.92);

    border-bottom-color:rgba(255,255,255,.09);

    box-shadow:
        0 18px 50px rgba(0,0,0,.28),
        inset 0 1px 0 rgba(255,255,255,.035);

    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
}

/* ==========================================================
   CONTENEUR
========================================================== */

.custom-header-container{
    width:min(1760px,96%);
    margin:auto;
    padding:0 20px;

    display:grid;

    /* logo | menu | boutons */
    grid-template-columns:300px minmax(0,1fr) auto;

    align-items:center;

    column-gap:40px;
}

/* ==========================================================
   LOGO
========================================================== */

.custom-logo{
    position:relative;

    display:flex;
    align-items:center;
    flex-shrink:0;

    text-decoration:none;

    transition:
        transform .3s ease,
        opacity .3s ease;
}

.custom-logo::after{
    content:"";

    position:absolute;
    right:-20px;

    width:1px;
    height:38px;

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(255,255,255,.18),
            transparent
        );
}

.custom-logo:hover{
    transform:translateY(-2px);
}

.custom-logo img{
    display:block;

    width:auto;
    height:84px;
    max-width:280px;

    object-fit:contain;

    filter:drop-shadow(0 8px 18px rgba(0,0,0,.20));

    transition:.3s;
}

.custom-header.is-scrolled .custom-logo img{
    height:74px;
}

/* ==========================================================
   NAVIGATION
========================================================== */

/* Pas de padding lateral ici : il etait symetrique et
   ne deplacait donc pas le menu (centre), mais il
   amputait de 40px la place disponible dans la zone
   1050-1280px. */

.custom-nav{
    min-width:0;

    display:flex;
    justify-content:center;
}

.custom-menu{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:clamp(20px,2vw,39px);

    margin:0;
    padding:0;

    list-style:none;
}

.custom-menu li{
    position:relative;
    list-style:none;
}

.custom-menu > li > a{
    position:relative;

    min-height:var(--le-header-h);

    padding:0 1px;

    display:flex;
    align-items:center;

    color:rgba(255,255,255,.78);

    text-decoration:none;

    font-size:14px;
    font-weight:700;
    line-height:1;
    white-space:nowrap;

    transition:
        color .25s ease,
        transform .25s ease;
}

.custom-menu > li > a:hover{
    color:#ffffff;

    transform:translateY(-1px);
}

/* Ligne sous les liens */

.custom-menu > li > a::after{
    content:"";

    position:absolute;
    right:50%;
    bottom:19px;
    left:50%;

    height:2px;

    border-radius:999px;

    background:
        linear-gradient(
            90deg,
            #0757f9,
            #4d8cff
        );

    box-shadow:
        0 0 13px rgba(7,87,249,.60);

    opacity:0;

    transition:
        right .3s ease,
        left .3s ease,
        opacity .3s ease;
}

.custom-menu > li > a:hover::after,
.custom-menu > .current-menu-item > a::after,
.custom-menu > .current-menu-parent > a::after,
.custom-menu > .current_page_item > a::after{
    right:0;
    left:0;

    opacity:1;
}

.custom-menu > .current-menu-item > a,
.custom-menu > .current-menu-parent > a,
.custom-menu > .current_page_item > a{
    color:#ffffff;
}

/* ==========================================================
   FLÈCHE DES SOUS-MENUS
========================================================== */

.custom-menu > .menu-item-has-children > a{
    gap:7px;
}

.custom-menu > .menu-item-has-children > a::before{
    content:"";

    width:6px;
    height:6px;

    margin-top:-4px;

    border-right:1.5px solid currentColor;
    border-bottom:1.5px solid currentColor;

    order:2;

    transform:rotate(45deg);

    opacity:.65;

    transition:
        transform .25s ease,
        opacity .25s ease;
}

.custom-menu > .menu-item-has-children:hover > a::before{
    opacity:1;

    transform:
        translateY(3px)
        rotate(225deg);
}

/* ==========================================================
   SOUS-MENUS
========================================================== */

.custom-menu .sub-menu{
    position:absolute;
    top:100%;
    margin-top:14px;
    left:50%;
    z-index:999999;

    min-width:270px;

    /* Ne peut jamais depasser la fenetre. */
    max-width:calc(100vw - 32px);

    margin:0;
    padding:10px;

    overflow:hidden;

    border:1px solid rgba(7,87,249,.10);
    border-radius:17px;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(7,87,249,.08),
            transparent 32%
        ),
        rgba(255,255,255,.985);

    box-shadow:
        0 28px 70px rgba(0,13,32,.28),
        inset 0 1px 0 rgba(255,255,255,.95);

    opacity:0;
    visibility:hidden;
    pointer-events:none;

    transform:
        translateX(-50%)
        translateY(15px)
        scale(.97);

    transform-origin:top center;

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .3s cubic-bezier(.22,.61,.36,1);
}

.custom-menu .sub-menu::before{
    content:"";

    position:absolute;
    top:0;
    left:22px;
    right:22px;

    height:2px;

    border-radius:0 0 999px 999px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #0757f9,
            transparent
        );
}

.custom-menu li:hover > .sub-menu,
.custom-menu li:focus-within > .sub-menu{
    opacity:1;
    visibility:visible;
    pointer-events:auto;

    transform:
        translateX(-50%)
        translateY(0)
        scale(1);
}

.custom-menu .sub-menu li{
    width:100%;
}

.custom-menu .sub-menu a{
    position:relative;

    width:100%;

    padding:13px 15px;

    border-radius:10px;

    display:flex;
    align-items:center;

    color:#30415d;

    font-size:13px;
    font-weight:700;
    line-height:1.35;
    text-decoration:none;

    transition:
        color .25s ease,
        background .25s ease,
        padding-left .25s ease;
}

.custom-menu .sub-menu a::before{
    content:"";

    width:0;
    height:1px;

    margin-right:0;

    background:#0757f9;

    transition:
        width .25s ease,
        margin-right .25s ease;
}

.custom-menu .sub-menu a:hover{
    padding-left:18px;

    color:#0757f9;
    background:#f1f6ff;
}

.custom-menu .sub-menu a:hover::before{
    width:9px;
    margin-right:8px;
}

/* ==========================================================
   ACTIONS HEADER
========================================================== */

.custom-header-actions{
    display:flex;
    align-items:center;
    gap:11px;
}

/* ==========================================================
   MA SÉLECTION
========================================================== */

.le-header-selection{
    position:relative;

    min-height:54px;
    padding:6px 9px 6px 7px;

    border:1px solid rgba(255,255,255,.12);
    border-radius:14px;

    display:flex;
    align-items:center;
    gap:10px;

    color:#ffffff;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.075),
            rgba(255,255,255,.035)
        );

    text-decoration:none;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.055);

    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);

    transition:
        color .3s ease,
        background .3s ease,
        border-color .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
}

.le-header-selection:hover{
    color:#ffffff;

    border-color:rgba(77,140,255,.48);

    background:
        linear-gradient(
            135deg,
            rgba(7,87,249,.19),
            rgba(37,99,235,.10)
        );

    transform:translateY(-3px);

    box-shadow:
        0 16px 34px rgba(0,0,0,.20),
        inset 0 1px 0 rgba(255,255,255,.10);
}

.le-header-selection-icon{
    width:39px;
    height:39px;
    flex:0 0 39px;

    border-radius:11px;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#ffffff;

    background:
        radial-gradient(
            circle at 30% 20%,
            rgba(255,255,255,.22),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #2879ff,
            #0757f9
        );

    box-shadow:
        0 10px 22px rgba(7,87,249,.26);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.le-header-selection:hover .le-header-selection-icon{
    transform:
        rotate(-4deg)
        scale(1.04);

    box-shadow:
        0 14px 28px rgba(7,87,249,.34);
}

.le-header-selection-icon svg{
    width:21px;
    height:21px;

    fill:none;
    stroke:currentColor;
    stroke-width:1.9;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.le-header-selection-text{
    min-width:82px;

    display:flex;
    flex-direction:column;
}

.le-header-selection-text small{
    color:rgba(255,255,255,.49);

    font-size:8.5px;
    font-weight:750;
    line-height:1.1;
    letter-spacing:.55px;
    text-transform:uppercase;
}

.le-header-selection-text strong{
    margin-top:3px;

    color:#ffffff;

    font-size:12px;
    font-weight:900;
    line-height:1.15;
}

.le-selection-count{
    min-width:23px;
    height:23px;

    padding:0 6px;

    border-radius:999px;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#0757f9;
    background:#ffffff;

    font-size:10px;
    font-weight:950;

    box-shadow:
        0 7px 17px rgba(0,0,0,.17);

    transition:
        color .3s ease,
        background .3s ease,
        transform .3s ease;
}

.le-selection-count.is-empty{

    margin-left:10px;

    color:rgba(255,255,255,.58);
    background:rgba(255,255,255,.10);

    box-shadow:none;

}

.le-selection-count.is-updated{
    animation:leSelectionCountPop .45s ease;
}

@keyframes leSelectionCountPop{

    0%{
        transform:scale(1);
    }

    45%{
        color:#ffffff;
        background:#22a45d;

        transform:scale(1.38);
    }

    100%{
        transform:scale(1);
    }

}

/* ==========================================================
   BOUTON CONTACT
========================================================== */

.custom-contact-btn{
    position:relative;

    min-height:54px;
    padding:6px 14px 6px 7px;

    overflow:hidden;

    border:1px solid rgba(255,255,255,.10);
    border-radius:14px;

    display:flex;
    align-items:center;
    gap:10px;

    color:#ffffff;

    background:
        linear-gradient(
            135deg,
            #1f73ff,
            #0757f9 58%,
            #0048d5
        );

    text-decoration:none;

    box-shadow:
        0 14px 30px rgba(7,87,249,.25),
        inset 0 1px 0 rgba(255,255,255,.17);

    transition:
        color .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
}

.custom-contact-btn::before{
    content:"";

    position:absolute;
    inset:0;

    background:
        linear-gradient(
            120deg,
            transparent 28%,
            rgba(255,255,255,.18) 48%,
            transparent 68%
        );

    transform:translateX(-115%);

    transition:transform .6s ease;
}

.custom-contact-btn:hover::before{
    transform:translateX(115%);
}

.custom-contact-btn:hover{
    color:#ffffff;

    transform:translateY(-3px);

    box-shadow:
        0 20px 40px rgba(7,87,249,.36),
        inset 0 1px 0 rgba(255,255,255,.19);
}

.custom-contact-btn > *{
    position:relative;
    z-index:2;
}

.custom-contact-icon{
    width:39px;
    height:39px;
    flex:0 0 39px;

    border-radius:11px;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#ffffff;
    background:rgba(255,255,255,.13);

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.10);

    transition:
        transform .3s ease,
        background .3s ease;
}

.custom-contact-icon svg{
    width:20px;
    height:20px;

    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.custom-contact-btn:hover .custom-contact-icon{
    background:rgba(255,255,255,.20);

    transform:
        rotate(-7deg)
        scale(1.04);
}

.custom-contact-text{
    min-width:85px;

    display:flex;
    flex-direction:column;
}

.custom-contact-text small{
    color:rgba(255,255,255,.67);

    font-size:8.5px;
    font-weight:750;
    line-height:1.1;
    letter-spacing:.55px;
    text-transform:uppercase;
}

.custom-contact-text strong{
    margin-top:3px;

    color:#ffffff;

    font-size:12px;
    font-weight:900;
    line-height:1.15;
}

.custom-contact-arrow{
    width:18px;
    height:18px;

    fill:none;
    stroke:currentColor;
    stroke-width:2.2;
    stroke-linecap:round;
    stroke-linejoin:round;

    transition:transform .3s ease;
}

.custom-contact-btn:hover .custom-contact-arrow{
    transform:translateX(4px);
}

/* ==========================================================
   BURGER
========================================================== */

.custom-burger{
    position:relative;

    display:none;

    width:46px;
    height:46px;

    padding:0;

    border:1px solid rgba(255,255,255,.12);
    border-radius:12px;

    color:#ffffff;
    background:rgba(255,255,255,.055);

    cursor:pointer;

    transition:
        background .3s ease,
        border-color .3s ease;
}

.custom-burger:hover{
    border-color:rgba(77,140,255,.48);
    background:rgba(7,87,249,.16);
}

.custom-burger span{
    position:absolute;
    left:50%;

    width:22px;
    height:2px;

    border-radius:999px;

    background:#ffffff;

    transform:translateX(-50%);

    transition:
        top .3s ease,
        opacity .25s ease,
        transform .3s ease;
}

.custom-burger span:nth-child(1){
    top:14px;
}

.custom-burger span:nth-child(2){
    top:21px;
}

.custom-burger span:nth-child(3){
    top:28px;
}

.custom-burger.active span:nth-child(1){
    top:21px;

    transform:
        translateX(-50%)
        rotate(45deg);
}

.custom-burger.active span:nth-child(2){
    opacity:0;
}

.custom-burger.active span:nth-child(3){
    top:21px;

    transform:
        translateX(-50%)
        rotate(-45deg);
}

/* ==========================================================
   ÉLÉMENTS UNIQUEMENT MOBILES
========================================================== */

.custom-nav-mobile-heading,
.custom-nav-mobile-actions,
.custom-submenu-toggle{
    display:none;
}

/* ==========================================================
   FOCUS CLAVIER
   Le header ne montrait aucun indicateur de focus : la
   navigation au clavier etait invisible.
========================================================== */

.custom-header a:focus-visible,
.custom-header button:focus-visible{
    outline:2px solid #4d8cff;
    outline-offset:3px;
}

/* ==========================================================
   RESPONSIVE — ORDINATEURS MOYENS
========================================================== */

@media (max-width:1550px){

    .custom-header-container{

        grid-template-columns:300px minmax(0,1fr) auto;

        column-gap:26px;

    }

    .custom-menu{
        gap:18px;
    }

    .custom-menu > li > a{
        font-size:13px;
    }

    /* Bouton Ma sélection en version compacte */

    .le-header-selection-text{
        display:none;
    }

    .le-header-selection{

        padding-right:7px;
        gap:0;

        min-height:50px;

    }

    .le-header-selection-icon{

        width:36px;
        height:36px;
        flex-basis:36px;

    }

    .le-header-selection-icon svg{

        width:19px;
        height:19px;

    }

    /* Petit espace avec le bouton Contact */

    .custom-contact-btn{

        min-height:50px;

        padding:5px 12px 5px 7px;

    }

}

@media (max-width:1280px){

    .custom-header-container{

        width:min(1850px,98%);
        padding:0 20px;

        grid-template-columns:260px minmax(0,1fr) auto;

        column-gap:22px;

    }

    .custom-menu{
        gap:clamp(10px,1.25vw,16px);
    }

    .custom-menu > li > a{
        font-size:12.5px;
    }

    .custom-contact-text{
        display:none;
    }

    .custom-contact-btn{

        padding-right:7px;
        gap:0;

    }

    .custom-contact-arrow{
        display:none;
    }

}


/* ==========================================================
   RESPONSIVE — TABLETTE ET MOBILE
========================================================== */

@media(max-width:1050px){

    /* Une seule valeur a maintenir : elle pilote le
       header, les liens et le panneau mobile. */

    :root{
        --le-header-h:82px;
    }

    .custom-header-container{
        width:100%;
        padding:0 22px;

        /* Le header passe en mode navigation (burger) :
           on aere legerement le haut du conteneur. */
        padding-top:10px;

        grid-template-columns:auto 1fr auto;
        gap:13px;
    }

    .custom-logo::after{
        display:none;
    }

    .custom-logo img,
    .custom-header.is-scrolled .custom-logo img{
        height:66px;
        max-width:220px;
    }
    
    .custom-header-actions{
        margin-left:auto;
    }

    .custom-contact-btn{
        display:none;
    }

    .le-header-selection{
        min-height:46px;
        padding:4px;
    }

    .le-header-selection-icon{
        width:38px;
        height:38px;
        flex-basis:38px;
    }

    .le-header-selection-text{
        display:none;
    }

    .le-selection-count{
        position:absolute;
        top:-7px;
        right:-7px;

        min-width:21px;
        height:21px;

        padding:0 5px;

        font-size:9px;
    }

    .custom-burger{
        display:block;
    }

    /* CAUSE DU BUG DU MENU MOBILE

       "backdrop-filter" (ajoute par ".is-scrolled")
       transforme le header en bloc conteneur pour ses
       descendants "position:fixed". Des que la page
       etait defilee, le panneau ".custom-nav" n'etait
       donc plus cale sur le viewport mais sur la boite
       du header (82px de haut), qui le rognait selon le
       moteur : une partie de la navigation devenait
       invisible ou inatteignable.

       Sur mobile le fond du header scrolle est deja
       quasi opaque : on retire le flou (aucun impact
       visuel notable) et le panneau redevient un
       element fixe reellement cale sur le viewport.
       Le desktop conserve son flou. */

    .custom-header.is-scrolled{
        background:#000d20;

        backdrop-filter:none;
        -webkit-backdrop-filter:none;
    }

    /* Panneau mobile */

    .custom-nav{
        position:fixed;
        top:var(--le-header-h);
        right:0;
        left:0;
        z-index:999998;

        /* Hauteur reelle de la fenetre.

           Cascade de replis, du moins fiable au plus
           fiable : "100vh" (viewport large : le bas du
           panneau passe sous la barre d'outils mobile),
           puis "100dvh" (viewport dynamique, absent
           avant iOS 16.4), puis "--le-viewport-h" pose
           par header.js a partir de window.innerHeight,
           qui est exact sur tous les navigateurs.

           Sans ce dernier repli, sur un Safari ancien la
           fin du menu (sous-menus et boutons d'action)
           restait sous la barre d'outils, donc
           inatteignable meme en faisant defiler le
           panneau. */
        height:calc(100vh - var(--le-header-h));
        height:calc(100dvh - var(--le-header-h));

        padding:24px 22px 32px;

        /* Encoche et barre gestuelle iOS : sans cela le
           dernier bouton du menu tombait sous
           l'indicateur d'accueil. */
        padding-right:calc(22px + env(safe-area-inset-right, 0px));
        padding-bottom:calc(32px + env(safe-area-inset-bottom, 0px));
        padding-left:calc(22px + env(safe-area-inset-left, 0px));

        display:block;

        overflow-y:auto;
        overflow-x:hidden;
        overscroll-behavior:contain;
        -webkit-overflow-scrolling:touch;

        background:
            radial-gradient(
                circle at 100% 0,
                rgba(7,87,249,.16),
                transparent 30%
            ),
            linear-gradient(
                160deg,
                #000b1c,
                #000d20 55%,
                #001535
            );

        border-top:1px solid rgba(255,255,255,.07);

        opacity:0;
        visibility:hidden;
        pointer-events:none;

        transform:translateY(-15px);

        transition:
            opacity .3s ease,
            visibility .3s ease,
            transform .35s cubic-bezier(.22,.61,.36,1);
    }

    /* Valeur exacte posee par header.js.

       Isolee dans un @supports pour que le repli de
       var() reste une longueur valide dans les deux cas.
       Ecrite directement dans la regle ci-dessus, un
       navigateur sans "dvh" et sans variable calculerait
       "height:auto" au lieu de retomber sur 100vh. */

    @supports (height:100dvh){

        .custom-nav{
            height:calc(
                var(--le-viewport-h, 100dvh)
                - var(--le-header-h)
            );
        }

    }

    @supports not (height:100dvh){

        .custom-nav{
            height:calc(
                var(--le-viewport-h, 100vh)
                - var(--le-header-h)
            );
        }

    }

    .custom-nav.active{
        opacity:1;
        visibility:visible;
        pointer-events:auto;

        transform:translateY(0);
    }

    .custom-nav-mobile-heading{
        display:block;

        margin-bottom:24px;
        padding-bottom:20px;

        border-bottom:1px solid rgba(255,255,255,.08);
    }

    .custom-nav-mobile-heading span{
        display:block;

        margin-bottom:5px;

        color:#4d8cff;

        font-size:10px;
        font-weight:900;
        letter-spacing:2.5px;
        text-transform:uppercase;
    }

    .custom-nav-mobile-heading small{
        display:block;

        color:rgba(255,255,255,.52);

        font-size:12px;
        font-weight:500;
        line-height:1.5;
    }

    .custom-menu{
        width:100%;

        flex-direction:column;
        align-items:stretch;
        gap:0;
    }

    .custom-menu > li{
        width:100%;

        border-bottom:1px solid rgba(255,255,255,.075);
    }

    .custom-menu > li > a,
    .custom-header.is-scrolled .custom-menu > li > a{
        width:100%;
        min-height:auto;

        padding:18px 2px;

        justify-content:space-between;

        color:rgba(255,255,255,.88);

        font-size:16px;
        font-weight:800;
    }

    .custom-menu > li > a::after{
        display:none;
    }

    .custom-menu > .current-menu-item > a,
    .custom-menu > .current-menu-parent > a,
    .custom-menu > .current_page_item > a{
        color:#4d8cff;
    }

    /* Sous-menu mobile */

    .custom-menu .sub-menu{
        position:static;

        min-width:100%;

        margin:0 0 15px;
        padding:8px;

        border-color:rgba(255,255,255,.07);
        border-radius:12px;

        display:none;

        background:rgba(255,255,255,.045);

        box-shadow:none;

        opacity:1;
        visibility:visible;
        pointer-events:auto;

        transform:none;
    }

    .custom-menu .sub-menu::before{
        display:none;
    }

    /* Plus aucune dependance au :hover, qui reste
       "colle" au tactile et n'ouvre de toute facon
       jamais un sous-menu (taper le lien parent
       navigue). L'ouverture passe par un bouton dedie,
       le lien parent reste donc cliquable. */

    .custom-menu li:hover > .sub-menu,
    .custom-menu li:focus-within > .sub-menu{
        display:none;
        transform:none;
    }

    .custom-menu li.is-open > .sub-menu{
        display:block;
        transform:none;
    }

    .custom-menu .sub-menu a{
        color:rgba(255,255,255,.67);

        font-size:13px;
    }

    .custom-menu .sub-menu a:hover{
        color:#ffffff;
        background:rgba(255,255,255,.07);
    }

    /* Bouton d'ouverture des sous-menus */

    .custom-menu .menu-item-has-children > a::before{
        display:none;
    }

    .custom-menu li.menu-item-has-children{
        display:flex;
        flex-wrap:wrap;
        align-items:center;
    }

    .custom-menu li.menu-item-has-children > a{
        width:auto;
        min-width:0;
        flex:1 1 0;
    }

    .custom-menu li.menu-item-has-children > .sub-menu{
        flex:0 0 100%;
    }

    .custom-submenu-toggle{
        flex:0 0 44px;

        width:44px;
        height:44px;

        margin-left:8px;
        padding:0;

        border:1px solid rgba(255,255,255,.10);
        border-radius:10px;

        display:flex;
        align-items:center;
        justify-content:center;

        color:rgba(255,255,255,.88);
        background:rgba(255,255,255,.05);

        cursor:pointer;

        transition:
            background .25s ease,
            border-color .25s ease;
    }

    .custom-submenu-toggle:hover{
        border-color:rgba(77,140,255,.45);
        background:rgba(7,87,249,.16);
    }

    .custom-submenu-toggle::before{
        content:"";

        width:7px;
        height:7px;

        margin-top:-3px;

        border-right:2px solid currentColor;
        border-bottom:2px solid currentColor;

        transform:rotate(45deg);

        transition:transform .25s ease;
    }

    .custom-menu li.is-open > .custom-submenu-toggle::before{
        margin-top:3px;

        transform:rotate(225deg);
    }

    /* Actions menu mobile */

    .custom-nav-mobile-actions{
        margin-top:28px;

        display:grid;
        gap:11px;
    }

    .custom-mobile-simulator,
    .custom-mobile-contact{
        min-height:56px;
        padding:0 19px;

        border-radius:11px;

        display:flex;
        align-items:center;
        justify-content:center;
        gap:11px;

        color:#ffffff;

        font-size:14px;
        font-weight:900;
        text-decoration:none;
    }

    .custom-mobile-simulator{
        background:
            linear-gradient(
                135deg,
                #1f73ff,
                #0757f9
            );

        box-shadow:
            0 16px 35px rgba(7,87,249,.25);
    }

    .custom-mobile-contact{
        border:1px solid rgba(255,255,255,.18);
        background:rgba(255,255,255,.055);
    }

    .custom-mobile-simulator svg,
    .custom-mobile-contact svg{
        width:21px;
        height:21px;

        fill:none;
        stroke:currentColor;
        stroke-width:2.2;
        stroke-linecap:round;
        stroke-linejoin:round;
    }

}

/* ==========================================================
   RESPONSIVE — PETITS MOBILES
========================================================== */

@media(max-width:576px){

    .custom-header-container{
        grid-template-columns:auto 1fr auto;
        gap:9px;
        padding:0 12px;
        padding-top:10px;
    }

    .custom-logo img,
    .custom-header.is-scrolled .custom-logo img{
        height:48px;
        max-width:145px;
    }

    .custom-header-actions{
        display:flex;
        align-items:center;
        gap:8px;
        margin-left:auto;
    }

    .le-header-selection{
        position:relative;

        display:flex;
        align-items:center;
        justify-content:center;

        width:44px;
        height:44px;
        min-height:44px;

        padding:0;
        border-radius:12px;
    }

    .le-header-selection-icon{
        width:36px;
        height:36px;
        flex:0 0 36px;
    }

    .le-header-selection-icon svg{
        width:19px;
        height:19px;
    }

    .le-header-selection-text{
        display:none;
    }

    .le-selection-count{
        position:absolute;
        top:-6px;
        right:-6px;

        min-width:20px;
        height:20px;
        padding:0 5px;

        font-size:9px;
    }

    .custom-burger{
        width:44px;
        height:44px;
        flex-shrink:0;
    }

}

/* ==========================================================
   ÉCRANS COURTS ET PAYSAGE MOBILE

   En paysage il ne reste que ~300px sous le header : le
   panneau defilait deja, mais l'entete "Navigation" et
   les espacements pleine hauteur consommaient presque
   tout l'espace utile. On compacte, le menu reste
   integralement atteignable.
   Le seuil de largeur reste 1050px : la synchronisation
   CSS / JS du breakpoint mobile n'est pas modifiee.
========================================================== */

@media(max-width:1050px) and (max-height:560px){

    /* Les deux declarations doivent rester alignees :
       ".is-scrolled" repose la variable sur le header et
       elle est heritee par le panneau mobile. Un ecart
       entre les deux desynchroniserait le "top" du
       panneau et la hauteur reelle du header. */

    :root{
        --le-header-h:64px;
    }

    .custom-header.is-scrolled{
        --le-header-h:64px;
    }

    .custom-logo img,
    .custom-header.is-scrolled .custom-logo img{
        height:46px;
        max-width:170px;
    }

    .custom-nav{
        padding-top:16px;
        padding-bottom:calc(20px + env(safe-area-inset-bottom, 0px));
    }

    .custom-nav-mobile-heading{
        display:none;
    }

    .custom-menu > li > a,
    .custom-header.is-scrolled .custom-menu > li > a{
        padding:12px 2px;

        font-size:15px;
    }

    .custom-menu .sub-menu{
        margin-bottom:10px;
    }

    .custom-submenu-toggle{
        flex-basis:38px;

        width:38px;
        height:38px;
    }

    .custom-nav-mobile-actions{
        margin-top:16px;

        grid-template-columns:1fr 1fr;
    }

    .custom-mobile-simulator,
    .custom-mobile-contact{
        min-height:46px;
        padding:0 12px;

        font-size:13px;
    }

}

/* ==========================================================
   BODY MENU OUVERT
   "overflow:hidden" sur le seul body ne suffit pas
   partout : sur plusieurs moteurs c'est l'element
   racine qui porte le defilement. On verrouille les
   deux, et "overscroll-behavior" empeche la page de
   reprendre le defilement quand on atteint le bas du
   panneau.
========================================================== */

html.custom-menu-open{
    overflow:hidden;
}

body.custom-menu-open{
    overflow:hidden;
    overscroll-behavior:none;
}

/* ==========================================================
   ACCESSIBILITÉ
========================================================== */

@media(prefers-reduced-motion:reduce){

    .custom-header,
    .custom-header *,
    .custom-nav,
    .custom-nav *{
        animation:none !important;
        transition:none !important;
    }

}

.custom-header{

    overflow:visible !important;

}

.custom-header-container{

    overflow:visible;

}

.custom-menu li{

    overflow:visible;

}