/* ============================================================
 * axialys-nav.css  |  v1.0
 * Navigation pill Axialys — Desktop + Mobile
 *
 * Dépendances (chargées avant via wp_enqueue_scripts) :
 *   1. tokens.css      → --ax-color-*, --ax-radius-*, etc.
 *   2. tabler-icons    → polices ti-*
 *
 * INDEX
 *   0.  Reset Elementor header
 *   1.  Nav shell (conteneur global fixed centré)
 *   2.  Navbar pill (frosted glass)
 *   3.  Logo
 *   4.  Items de navigation + chevron
 *   5.  CTA "Réserver une démo"
 *   6.  Recherche desktop
 *   7.  Overlay desktop
 *   8.  Dropdown — base + animation
 *   9.  Dropdown — layout mega (3 colonnes)
 *  10.  Dropdown — items (icône / nom / description)
 *  11.  Mobile — nav pill
 *  12.  Mobile — search pill
 *  13.  Mobile — overlay
 *  14.  Mobile — bottom sheet
 *  15.  Mobile — slider + panels
 *  16.  Mobile — items liste + sous-panel
 *  17.  Responsive (1094 / 954 / 768px)
 * ============================================================ */


/* ─── 0. RESET ELEMENTOR HEADER ─────────────────────────────
 * Neutralise les styles injectés par Elementor Theme Builder
 * sur le wrapper .elementor-location-header et ses enfants.
 * Le positionnement réel est géré par .ax-nav-shell (§1).
 * ─────────────────────────────────────────────────────────── */
.elementor-location-header {
    background:  transparent !important;
    border:      none        !important;
    box-shadow:  none        !important;
    padding:     0           !important;
    margin:      0           !important;
    min-height:  0           !important;
}
.elementor-location-header .e-con,
.elementor-location-header .e-con-inner,
.ax-header-root,
.ax-header-root > .e-con-inner {
    background: transparent !important;
    padding:    0           !important;
    margin:     0           !important;
    max-width:  none        !important;
    min-height: 0           !important;
    width:      100%        !important;
}


/* ─── 1. NAV SHELL ───────────────────────────────────────────
 * Conteneur fixe, centré horizontalement, top: 20px.
 * Regroupe le pill navbar + bouton loupe (détaché).
 * ─────────────────────────────────────────────────────────── */
.ax-nav-shell {
    position:  fixed;
    top:       20px;
    left:      50%;
    transform: translateX(-50%);
    z-index:   100;
    display:   flex;
    align-items: center;
    gap:       12px;
    width:     max-content;
    max-width: calc(100% - 40px);
}
/* Mode recherche ouverte : largeur étendue pour la barre */
.ax-nav-shell.search-open {
    width:     800px;
    max-width: calc(100% - 40px);
}
/* En search-open, le navbar pill est caché */
.ax-nav-shell.search-open .ax-navbar {
    display: none;
}


/* ─── 2. NAVBAR PILL ─────────────────────────────────────────
 * Pill frosted glass — conteneur principal du menu desktop.
 * ─────────────────────────────────────────────────────────── */
.ax-navbar {
    display:      flex;
    align-items:  center;
    height:       56px;
    padding:      8px 8px 8px 20px;
    background:   rgba(255, 255, 255, 0.65);
    backdrop-filter:         blur(0.75rem);
    -webkit-backdrop-filter: blur(0.75rem);
    border-radius: var(--ax-radius-full, 9999px);
    box-shadow:
        0 2px 16px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    width:       max-content;
    transition:
        background       0.2s ease,
        backdrop-filter  0.2s ease,
        box-shadow       0.2s ease;
}
/* Navbar en état "dropdown ouvert" → fond blanc opaque */
.ax-navbar.nav-open {
    background:              #ffffff;
    backdrop-filter:         none;
    -webkit-backdrop-filter: none;
    box-shadow:
        0 2px 20px rgba(0, 0, 0, 0.10),
        0 0 0 1px rgba(0, 0, 0, 0.06);
}


/* ─── 3. LOGO ────────────────────────────────────────────────*/
.ax-nav-logo {
    flex-shrink:     0;
    display:         flex;
    align-items:     flex-end;
    gap:             10px;
    text-decoration: none;
    padding-right:   28px;
}
.ax-nav-logo-icon {
    height:     35px;
    width:      35px;
    display:    block;
    flex-shrink: 0;
}
.ax-nav-logo-stack {
    display:        flex;
    flex-direction: column;
    gap:            3px;
    width:          130px;
}
.ax-nav-logo-text {
    width:  100%;
    height: auto;
    display: block;
}
.ax-nav-logo-tagline {
    display:        block;
    width:          100%;
    font-size:      6.5px;
    font-weight:    400;
    color:          var(--ax-color-neutral-700, #495057);
    line-height:    1.3;
    letter-spacing: 0.01em;
}


/* ─── 4. ITEMS DE NAVIGATION + CHEVRON ──────────────────────*/
.ax-nav-items {
    display:      flex;
    align-items:  center;
    gap:          4px;
    padding-right: 16px;
}
.ax-nav-item-wrap {
    position: relative;
}
/* Lien / bouton item — même style */
.ax-nav-item {
    display:     inline-flex;
    align-items: center;
    gap:         4px;
    font-size:   14px;
    font-weight: 500;
    color:       var(--ax-color-neutral-700, #495057);
    padding:     8px 14px;
    border-radius:   var(--ax-radius-full, 9999px);
    text-decoration: none;
    white-space:     nowrap;
    cursor:          pointer;
    background:      transparent;
    border:          none;
    font-family:     inherit;
    line-height:     1.4;
    transition: background var(--ax-duration-fast)   var(--ax-ease-standard),
            color      var(--ax-duration-fast)   var(--ax-ease-standard);
}
.ax-nav-item:hover,
.ax-nav-item-wrap.is-open > .ax-nav-item {
    background: rgba(33, 29, 109, 0.07);
    color:      var(--ax-color-primary-500, #211D6D);
}
/* Chevron animé */
.ax-nav-chevron {
    font-size:    13px;
    opacity:      0.6;
    display:      inline-block;
    transition: transform var(--ax-duration-slow) var(--ax-ease-standard),
            opacity   var(--ax-duration-slow) var(--ax-ease-standard);
}
.ax-nav-item-wrap.is-open .ax-nav-chevron {
    transform: rotate(-180deg);
    opacity:   1;
}


/* ─── 5. CTA "RÉSERVER UNE DÉMO" ────────────────────────────
 * Le style visuel est géré par .ax-btn.ax-btn-primary
 * (axialys-elementor.css, actif via body.ax-scope).
 * Ce bloc gère uniquement les propriétés propres à la nav.
 * ─────────────────────────────────────────────────────────── */
.ax-nav-cta {
    flex-shrink: 0;
    padding:     10px 20px;  /* taille spécifique nav — entre ax-btn et ax-btn-sm */
}


/* ─── 6. RECHERCHE DESKTOP ───────────────────────────────────
 * Bouton loupe (pill indépendant détaché)
 * + Barre de recherche qui remplace le navbar en search-open
 * ─────────────────────────────────────────────────────────── */

/* Bouton loupe */
.ax-nav-search-btn {
    flex-shrink:     0;
    width:           44px;
    height:          44px;
    border-radius:   var(--ax-radius-full, 9999px);
    border:          none;
    background:      rgba(255, 255, 255, 0.65);
    backdrop-filter:         blur(0.75rem);
    -webkit-backdrop-filter: blur(0.75rem);
    color:       var(--ax-color-neutral-700, #495057);
    font-size:   18px;
    display:     inline-flex;
    align-items: center;
    justify-content: center;
    cursor:      pointer;
    box-shadow:
        0 2px 16px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.ax-nav-search-btn:hover {
    background: var(--ax-color-neutral-50, #F8FAFB);
    color:      var(--ax-color-primary-500, #211D6D);
}
.ax-nav-shell.search-open .ax-nav-search-btn {
    background: #fff;
    color:      var(--ax-color-primary-500, #211D6D);
}

/* Animation d'entrée de la barre */
@keyframes ax-search-bounce-in {
    0%   { transform: scale(0.82) translateY(-6px); opacity: 0; }
    55%  { transform: scale(1.04) translateY(1px);  opacity: 1; }
    75%  { transform: scale(0.98) translateY(0);               }
    100% { transform: scale(1)    translateY(0);               }
}

/* Barre de recherche (caché par défaut) */
.ax-nav-search-wrap {
    display:      none;
    align-items:  center;
    height:       56px;
    padding:      8px 8px 8px 20px;
    background:   #ffffff;
    border-radius: var(--ax-radius-full, 9999px);
    box-shadow:
        0 2px 16px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    min-width: 0;
}
.ax-nav-shell.search-open .ax-nav-search-wrap {
    display:   flex;
    flex:      1;
    animation: ax-search-bounce-in var(--ax-duration-slower) var(--ax-ease-bounce) both;
}
.ax-nav-search-icon {
    font-size:   16px;
    color:       var(--ax-color-neutral-500, #ADB5BD);
    flex-shrink: 0;
    margin-right: 4px;
}
.ax-nav-search-input {
    flex:       1;
    height:     40px;
    border:     none;
    outline:    none;
    background: transparent;
    font-size:  14px;
    color:      var(--ax-color-neutral-700, #495057);
    padding:    0 16px;
    min-width:  0;
    font-family: inherit;
}
.ax-nav-search-input::placeholder {
    color: var(--ax-color-neutral-400, #CED4DA);
}
/* Style visuel géré par .ax-btn.ax-btn-primary (axialys-elementor.css via body.ax-scope).
 * Ce bloc gère uniquement les propriétés de mise en page propres à la barre de recherche. */
.ax-nav-search-submit {
    flex-shrink:  0;
    margin-right: 8px;
    white-space:  nowrap;
    padding:      10px 20px; /* taille spécifique nav */
}


/* ─── 7. OVERLAY DESKTOP ─────────────────────────────────────
 * Fond sombre + flou derrière dropdown et recherche.
 * z-index 99 — sous le dropdown (101), au-dessus du contenu.
 * ─────────────────────────────────────────────────────────── */
.ax-nav-overlay {
    position:   fixed;
    inset:      0;
    background: rgba(0, 0, 0, 0.40);
    backdrop-filter:         blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index:    99;
    opacity:    0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.ax-nav-overlay.is-visible {
    opacity:    1;
    visibility: visible;
}


/* ─── 8. DROPDOWN — BASE + ANIMATION ────────────────────────
 * Position: fixed, largeur + left calculés par axialys-nav.js.
 * z-index 101 — au-dessus de l'overlay (99) et du navbar (100).
 * ─────────────────────────────────────────────────────────── */
.ax-dropdown {
    position:   fixed;
    top:        76px;   /* 20px (shell top) + 56px (navbar height) = 76px */
    /* left  : défini dynamiquement par syncWidth() dans axialys-nav.js */
    /* width : défini dynamiquement par syncWidth() dans axialys-nav.js */
    padding-top: 12px;  /* espace entre navbar et carte */
    background:  transparent;
    z-index:     101;
    opacity:     0;
    visibility:  hidden;
    transform:   translateY(-6px);
    transition:
        opacity    0.22s ease,
        visibility 0.22s ease,
        transform  0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.ax-dropdown.is-visible {
    opacity:    1;
    visibility: visible;
    transform:  translateY(0);
}
/* Carte blanche du dropdown */
.ax-dropdown-card {
    background:    #fff;
    border-radius: 20px;
    box-shadow:
        0 12px 48px rgba(10, 8, 40, 0.14),
        0 0 0 1px rgba(10, 8, 40, 0.06);
    padding: 20px;
}


/* ─── 9. DROPDOWN — MEGA (multi-colonnes) ────────────────────
 * Activé quand le menu WP contient des séparateurs "—".
 * Le PHP détecte les groupes et ajoute la classe --cols.
 * ─────────────────────────────────────────────────────────── */
.ax-dropdown-card--cols {
    display: grid;
    grid-template-columns: 230px 1fr 1fr;
}
/* Colonnes */
.ax-drop-col {
    padding: 4px 16px;
}
.ax-drop-col--first {
    padding-left: 4px;
    border-right: 1px solid rgba(10, 8, 40, 0.07);
}
.ax-drop-col:last-child {
    padding-right: 4px;
}
/* Titre de section (ex : "Produits voix") */
.ax-drop-heading {
    font-size:      10.5px;
    font-weight:    700;
    color:          var(--ax-color-neutral-400, #CED4DA);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding:        0 10px 8px;
}


/* ─── 10. DROPDOWN — ITEMS ───────────────────────────────────
 * Lien avec icône + nom + description courte.
 * ─────────────────────────────────────────────────────────── */
.ax-drop-item {
    display:     flex;
    align-items: flex-start;
    gap:         11px;
    padding:     9px 10px;
    border-radius:   12px;
    text-decoration: none;
    margin-bottom:   2px;
    transition:  background 0.14s;
}
.ax-drop-item:last-child { margin-bottom: 0; }
.ax-drop-item:hover {
    background: rgba(33, 29, 109, 0.05);
}

/* Icône */
.ax-drop-icon {
    flex-shrink:     0;
    width:           36px;
    height:          36px;
    border-radius:   var(--ax-radius-lg, 12px);
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       18px;
    margin-top:      1px;
}
/* Colonne 1 — item 1 (Pourquoi Axialys) */
.ax-drop-icon--primary {
    background: var(--ax-color-primary-100, #E2E1F7);
    color:      var(--ax-color-primary-500, #211D6D);
}
/* Colonne 1 — item 2 (Contactez-nous) */
.ax-drop-icon--accent {
    background: var(--ax-color-accent-100, #FDE0C8);
    color:      var(--ax-color-accent-600, #D85E1B);
}
/* Colonnes produits — icône seule, bleu Axialys */
.ax-drop-icon--bare {
    background:    transparent;
    color: var(--ax-color-blue-500);
    font-size:     22px;
    width:         30px;
    height:        30px;
    border-radius: 0;
}

/* Textes */
.ax-drop-name {
    display:       block;
    font-size:     14px;
    font-weight:   600;
    color:         var(--ax-color-neutral-800, #343A40);
    line-height:   1.3;
    margin-bottom: 2px;
}
.ax-drop-desc {
    display:     block;
    font-size:   12px;
    font-weight: 400;
    color:       var(--ax-color-neutral-500, #ADB5BD);
    line-height: 1.45;
}

/* Dropdown simple (sans colonnes) — padding légèrement réduit */
.ax-dropdown-card:not(.ax-dropdown-card--cols) {
    min-width: 220px;
}
.ax-dropdown-card:not(.ax-dropdown-card--cols) .ax-drop-item {
    border-radius: 10px;
    padding:       9px 12px;
}


/* ══════════════════════════════════════════════════════════
   MOBILE  (toutes les règles ci-dessous sont dans @media)
   ══════════════════════════════════════════════════════════ */

/* Masquer les éléments mobile sur desktop */
.ax-mob-nav,
.ax-mob-search-pill,
.ax-mob-overlay,
.ax-mob-sheet {
    display: none;
}


/* ─── 11. MOBILE — NAV PILL ──────────────────────────────────
 * Même style frosted glass que le desktop, mais full-width.
 * ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Masquer le nav desktop */
    .ax-nav-shell { display: none !important; }

    /* ── Nav pill mobile ── */
    .ax-mob-nav {
        display:      flex;
        position:     fixed;
        top:          20px;
        left:         50%;
        transform:    translateX(-50%);
        width:        calc(100% - 40px);
        height:       56px;
        padding:      8px 8px 8px 20px;
        align-items:  center;
        justify-content: space-between;
        background:      rgba(255, 255, 255, 0.65);
        backdrop-filter:         blur(0.75rem);
        -webkit-backdrop-filter: blur(0.75rem);
        border-radius: var(--ax-radius-full, 9999px);
        box-shadow:
            0 2px 16px rgba(0, 0, 0, 0.08),
            0 0 0 1px rgba(0, 0, 0, 0.05);
        z-index:     100;
        transition:  opacity 0.18s;
    }
    /* Caché (sans display:none pour garder la place) quand search ouverte */
    .ax-mob-nav.is-hidden {
        opacity:        0;
        pointer-events: none;
    }
    .ax-mob-nav-logo {
        display:         flex;
        align-items:     center;
        gap:             10px;
        text-decoration: none;
    }
    .ax-mob-nav-logo img:first-child { width: 30px; height: 30px; }
    .ax-mob-nav-logo img:last-child  { height: 15px; width: auto;  }
    .ax-mob-nav-actions {
        display:     flex;
        align-items: center;
        gap:         4px;
    }
    .ax-mob-nav-btn {
        width:           40px;
        height:          40px;
        border-radius:   50%;
        border:          none;
        background:      transparent;
        cursor:          pointer;
        display:         flex;
        align-items:     center;
        justify-content: center;
        color:     var(--ax-color-neutral-700, #495057);
        font-size: 20px;
        transition: background 0.15s;
    }
    .ax-mob-nav-btn:hover,
    .ax-mob-burger.is-active {
        background: rgba(0, 0, 0, 0.06);
    }


/* ─── 12. MOBILE — SEARCH PILL ───────────────────────────────
 * Remplace le nav pill quand la recherche est ouverte.
 * ─────────────────────────────────────────────────────────── */
    .ax-mob-search-pill {
        position:      fixed;
        top:           20px;
        left:          20px;
        width:         calc(100% - 40px);
        height:        56px;
        padding:       8px 8px 8px 20px;
        align-items:   center;
        gap:           8px;
        background:    #fff;
        border-radius: var(--ax-radius-full, 9999px);
        box-shadow:
            0 2px 16px rgba(0, 0, 0, 0.10),
            0 0 0 1px rgba(0, 0, 0, 0.05);
        z-index:   160;
        animation: ax-search-bounce-in var(--ax-duration-slower) var(--ax-ease-bounce) both;
        /* caché par défaut, affiché via .is-open */
    }
    .ax-mob-search-pill.is-open { display: flex; }

    .ax-mob-search-pill > i {
        font-size:   16px;
        color:       var(--ax-color-neutral-500, #ADB5BD);
        flex-shrink: 0;
    }
    .ax-mob-search-pill input {
        flex:       1;
        border:     none;
        outline:    none;
        background: transparent;
        font-size:  14px;
        font-family: inherit;
        color:      var(--ax-color-neutral-800, #343A40);
        min-width:  0;
    }
    .ax-mob-search-pill input::placeholder {
        color: var(--ax-color-neutral-400, #CED4DA);
    }
    #ax-mob-search-close {
        width:           32px;
        height:          32px;
        border-radius:   50%;
        border:          none;
        background:      var(--ax-color-neutral-100, #F1F3F5);
        cursor:          pointer;
        display:         flex;
        align-items:     center;
        justify-content: center;
        color:     var(--ax-color-neutral-600, #868E96);
        font-size: 16px;
        flex-shrink: 0;
    }


/* ─── 13. MOBILE — OVERLAY ───────────────────────────────────
 * z-index 150 — sous search pill (160) et sheet (200).
 * ─────────────────────────────────────────────────────────── */
    .ax-mob-overlay {
        display:    block;
        position:   fixed;
        inset:      0;
        background: rgba(0, 0, 0, 0.40);
        backdrop-filter:         blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index:    150;
        opacity:    0;
        visibility: hidden;
        transition: opacity 0.28s, visibility 0.28s;
    }
    .ax-mob-overlay.is-visible {
        opacity:    1;
        visibility: visible;
    }


/* ─── 14. MOBILE — BOTTOM SHEET ──────────────────────────────
 * Drawer depuis le bas — hauteur = 100dvh - 100px.
 * z-index 200 — au-dessus de l'overlay (150).
 * ─────────────────────────────────────────────────────────── */
    .ax-mob-sheet {
        display:        flex;
        flex-direction: column;
        position:       fixed;
        bottom:         0;
        left:           0;
        right:          0;
        height:         calc(100dvh - 100px);
        background:     #fff;
        border-radius:  24px 24px 0 0;
        transform:      translateY(105%);
        transition:     transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
        z-index:        200;
        overflow:       hidden;
        box-shadow:     0 -4px 40px rgba(0, 0, 0, 0.14);
    }
    .ax-mob-sheet.is-open {
        transform: translateY(0);
    }
    /* Poignée drag (pseudo-element) */
    .ax-mob-sheet::before {
        content:       '';
        display:       block;
        flex-shrink:   0;
        width:         36px;
        height:        4px;
        background:    var(--ax-color-neutral-200, #E9ECEF);
        border-radius: 2px;
        margin:        12px auto 8px;
    }


/* ─── 15. MOBILE — SLIDER + PANELS ──────────────────────────
 * Slider horizontal : panel principal + sous-panels.
 * Les sous-panels glissent par-dessus le panel principal.
 * ─────────────────────────────────────────────────────────── */
    .ax-mob-slider {
        flex:     1;
        position: relative;
        overflow: hidden;
        min-height: 0;
    }
    /* Panel de base */
    .ax-mob-panel {
        width:      100%;
        height:     100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 100px; /* espace pour le CTA sticky */
        box-sizing: border-box;
    }
    /* Sous-panels : cachés, glissent depuis la droite */
    .ax-mob-panel--sub {
        position:   absolute;
        top:        0;
        left:       0;
        right:      0;
        bottom:     0;
        background: #fff;
        transform:  translateX(100%);
        transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
        z-index:    1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 40px;
    }
    .ax-mob-panel--sub.is-active {
        transform: translateX(0);
    }


/* ─── 16. MOBILE — ITEMS LISTE + SOUS-PANEL ─────────────────*/

    /* ── Liste principale ── */
    .ax-mob-list {
        display:        flex;
        flex-direction: column;
        padding:        0 12px 8px;
        gap:            2px;
    }
    .ax-mob-item {
        display:         flex;
        align-items:     center;
        justify-content: space-between;
        padding:         14px 16px;
        border-radius:   14px;
        font-size:       16px;
        font-weight:     500;
        color:           var(--ax-color-neutral-800, #343A40);
        text-decoration: none;
        background:      transparent;
        border:          none;
        width:           100%;
        text-align:      left;
        cursor:          pointer;
        font-family:     inherit;
        transition: background 0.15s;
    }
    .ax-mob-item:hover { background: var(--ax-color-neutral-50, #F8FAFB); }
    .ax-mob-item i     { font-size: 18px; color: var(--ax-color-neutral-400, #CED4DA); }
    /* Item avec sous-menu */
    .ax-mob-item--sub {
        color:       var(--ax-color-primary-500, #211D6D);
        font-weight: 600;
    }
    .ax-mob-item--sub i { color: var(--ax-color-primary-400, #6B67CF); }

    /* ─── FOOTER CTA ─────────────────────────────────────────
     * Position absolute dans .ax-mob-sheet (overflow:hidden).
     * Frosted glass superposé : visible pendant TOUS les panels.
     * z-index 5 → au-dessus des panels (z-index: 1) et sous-panels.
     * ─────────────────────────────────────────────────────── */
    .ax-mob-sheet-footer {
        position:    absolute;
        bottom:      0;
        left:        0;
        right:       0;
        display:     flex;
        justify-content: center;
        padding:     16px 16px max(20px, env(safe-area-inset-bottom));
        background:  rgba(255, 255, 255, 0.88);
        backdrop-filter:         blur(0.75rem);
        -webkit-backdrop-filter: blur(0.75rem);
        z-index:     5;
    }
    /* CTA dans le footer — style visuel via .ax-btn.ax-btn-primary */
    .ax-mob-cta {
        display:      flex !important;
        align-items:  center;
        justify-content: center;
        width:        100%;
        max-width:    400px;
        padding:      16px 32px;
        font-size:    var(--ax-font-size-base);
        text-align:   center;
    }

    /* ── Sous-panel : bouton retour ── */
    /* width: auto → cliquable seulement sur le contenu, pas toute la ligne */
    /* sticky/border gérés par .ax-mob-panel-header parent */
    .ax-mob-panel-back {
        display:      flex;
        align-items:  center;
        gap:          8px;
        border:       none;
        background:   transparent;
        cursor:       pointer;
        font-family:  inherit;
        font-size:    15px;
        font-weight:  600;
        color:        var(--ax-color-primary-500, #211D6D);
        padding:      8px 14px 8px 10px;
        border-radius: 12px;
        width:        auto;
        transition:   background 0.15s;
    }
    .ax-mob-panel-back:hover { background: var(--ax-color-neutral-50, #F8FAFB); }
    .ax-mob-panel-back i     { font-size: 18px; }

    /* ── Sous-menu headings ── */
    .ax-mob-sub-heading {
        font-size:      11px;
        font-weight:    700;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        color:          var(--ax-color-neutral-400, #CED4DA);
        padding:        16px 14px 8px;
    }

    /* ── Sous-menu liste ── */
    .ax-mob-sub-list {
        list-style: none;
        margin:     0;
        padding:    0 12px 8px;
    }
    .ax-mob-sub-item {
        display:         block;
        padding:         12px 14px;
        border-radius:   14px;
        font-size:       14px;
        font-weight:     400;
        color:           var(--ax-color-neutral-800, #343A40);
        text-decoration: none;
        transition:      background 0.15s;
    }
    .ax-mob-sub-item:hover {
        background: var(--ax-color-neutral-50, #F8FAFB);
        color:      var(--ax-color-primary-500, #211D6D);
    }

    /* ─── Panel structure (sous-menu riche avec icônes) ───────
     * Utilisé par les sous-panneaux ayant des items mega-dropdown.
     * Réutilise les classes desktop .ax-drop-icon / -name / -desc.
     * ─────────────────────────────────────────────────────── */
    .ax-mob-panel-header {
        display:       flex;
        align-items:   center;
        padding:       12px 16px;
        border-bottom: 1px solid var(--ax-color-neutral-100, #F1F3F5);
        position:      sticky;
        top:           0;
        background:    #fff;
        z-index:       1;
    }
    .ax-mob-panel-body {
        padding: 4px 12px 120px; /* 120px : espace pour le footer CTA */
    }
    .ax-mob-panel-section {
        margin-bottom: 8px;
    }
    .ax-mob-panel-section-title {
        font-size:      11px;
        font-weight:    700;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        color:          var(--ax-color-neutral-400, #CED4DA);
        padding:        16px 14px 8px;
    }
    .ax-mob-panel-item {
        display:         flex;
        align-items:     flex-start;
        gap:             11px;
        padding:         9px 10px;
        border-radius:   12px;
        text-decoration: none;
        margin-bottom:   2px;
        color:           var(--ax-color-neutral-800, #343A40);
        transition:      background 0.14s;
    }
    .ax-mob-panel-item:hover {
        background: rgba(33, 29, 109, 0.05);
    }

    /* ─── Lien Accueil mobile ─────────────────────────────────
     * Séparateur fin + item avec icône home, navy, pour repérage.
     * ─────────────────────────────────────────────────────── */
    .ax-mob-list-sep {
        height:     1px;
        background: var(--ax-color-neutral-100, #F1F3F5);
        margin:     6px 16px;
    }
    .ax-mob-item--home .ax-mob-item-label {
        display:     flex;
        align-items: center;
        gap:         10px;
    }
    .ax-mob-item--home .ax-mob-item-label i {
        font-size: 20px;
    }

} /* fin @media (max-width: 768px) */


/* ─── 17. RESPONSIVE DESKTOP INTERMÉDIAIRE ──────────────────*/

/* ≤ 1094px : masquer le bloc texte du logo (tagline + nom) */
@media (max-width: 1094px) and (min-width: 955px) {
    .ax-nav-logo-stack { display: none; }
}

/* ≤ 954px : masquer le texte logo + le CTA */
@media (max-width: 954px) and (min-width: 769px) {
    .ax-nav-logo-stack { display: none; }
    .ax-nav-cta        { display: none; }
}
/* ============================================================
 * PATCH — Overrides de spécificité
 * (corrige heritage couleur theme Hello Elementor / Elementor global)
 * ============================================================ */

/* ── 1. Items nav desktop : forcer couleur grise ──────────────── */
.ax-nav-shell .ax-nav-item,
.ax-nav-shell a.ax-nav-item,
.ax-nav-shell button.ax-nav-item {
  color: var(--ax-color-neutral-700) !important;
  font-weight: var(--ax-font-weight-medium) !important;  /* 500 — comme la maquette */
  text-decoration: none !important;
}

.ax-nav-shell .ax-nav-item:hover,
.ax-nav-shell .ax-nav-item:focus,
.ax-nav-shell .ax-nav-item[aria-expanded="true"] {
  color: var(--ax-color-primary-500) !important;   /* navy au hover */
  background: rgba(0, 0, 0, 0.05) !important;
}

/* Chevron : même couleur que le texte parent */
.ax-nav-shell .ax-nav-item .ax-nav-chevron {
  color: inherit !important;
}

/* ── 2. Bouton loupe (desktop) : fond frosted + ombre, icône neutre ──── */
.ax-nav-shell .ax-nav-search-btn,
.ax-nav-shell button.ax-nav-search-btn {
  background:       rgba(255, 255, 255, 0.65) !important;
  background-color: rgba(255, 255, 255, 0.65) !important;
  color:      var(--ax-color-neutral-700) !important;
  border:     none !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
}

.ax-nav-shell .ax-nav-search-btn:hover,
.ax-nav-shell .ax-nav-search-btn:focus {
  background:       var(--ax-color-neutral-50, #F8FAFB) !important;
  background-color: var(--ax-color-neutral-50, #F8FAFB) !important;
  color:      var(--ax-color-primary-500) !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
}

/* ── 3. Boutons burger + loupe (mobile) : transparent, hover gris ── */
.ax-mob-nav .ax-mob-nav-btn,
.ax-mob-nav button.ax-mob-nav-btn {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--ax-color-neutral-700) !important;
  border: none !important;
  box-shadow: none !important;
}

.ax-mob-nav .ax-mob-nav-btn:hover,
.ax-mob-nav .ax-mob-nav-btn:focus,
.ax-mob-nav .ax-mob-nav-btn:active {
  background: rgba(0, 0, 0, 0.05) !important;
  color: var(--ax-color-primary-500) !important;
  box-shadow: none !important;
}

/* ── 4. Icône bleue (drop items) : token au lieu de hardcode ──── */
.ax-drop-icon--bare {
  color: var(--ax-color-blue-500) !important;
}

/* ── 5. Transitions → tokens ───────────────────────────────── */
.ax-nav-item,
.ax-nav-search-btn,
.ax-mob-nav-btn {
  transition:
    color var(--ax-duration-fast) var(--ax-ease-standard),
    background var(--ax-duration-fast) var(--ax-ease-standard) !important;
}

.ax-dropdown {
  transition:
    opacity var(--ax-duration-slow) var(--ax-ease-standard),
    transform var(--ax-duration-slow) var(--ax-ease-standard),
    visibility var(--ax-duration-slow) var(--ax-ease-standard) !important;
}

.ax-mob-sheet {
  /* cubic-bezier(0.32, 0.72, 0, 1) = glissement fluide sans rebond */
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1) !important;
}

/* ── 7. Mobile sheet — items menu : annuler héritage orange du thème ── */
.ax-mob-sheet .ax-mob-item,
.ax-mob-sheet a.ax-mob-item,
.ax-mob-sheet button.ax-mob-item {
  background:       transparent !important;
  background-color: transparent !important;
  color:            var(--ax-color-neutral-800, #343A40) !important;
  text-decoration:  none !important;
  border:           none !important;
  box-shadow:       none !important;
}
.ax-mob-sheet .ax-mob-item:hover {
  background: var(--ax-color-neutral-50, #F8FAFB) !important;
}
/* Items avec sous-menu → même apparence que les items réguliers */
.ax-mob-sheet .ax-mob-item--sub,
.ax-mob-sheet button.ax-mob-item--sub {
  color:       var(--ax-color-neutral-800, #343A40) !important;
  font-weight: 500 !important;
}
/* Chevrons : même couleur pour tous les items */
.ax-mob-sheet .ax-mob-item i,
.ax-mob-sheet .ax-mob-item--sub i {
  color: var(--ax-color-neutral-400, #CED4DA) !important;
}

/* ── 8. Back button (header du sous-panel) ─────────────────── */
.ax-mob-sheet .ax-mob-panel-back,
.ax-mob-sheet button.ax-mob-panel-back {
  background:       #fff !important;
  background-color: #fff !important;
  color:            var(--ax-color-primary-500, #211D6D) !important;
  border:           none !important;
  box-shadow:       none !important;
}
.ax-mob-sheet .ax-mob-panel-back:hover {
  background:       var(--ax-color-neutral-50, #F8FAFB) !important;
  background-color: var(--ax-color-neutral-50, #F8FAFB) !important;
}

/* ── 9. Panel items (sous-panel avec icônes) ───────────────── */
.ax-mob-sheet .ax-mob-panel-item,
.ax-mob-sheet a.ax-mob-panel-item {
  text-decoration: none !important;
  background:      transparent !important;
}
.ax-mob-sheet .ax-mob-panel-item:hover {
  background: rgba(33, 29, 109, 0.05) !important;
}
.ax-mob-sheet .ax-drop-name {
  color: var(--ax-color-neutral-800, #343A40) !important;
}
.ax-mob-sheet .ax-drop-desc {
  color: var(--ax-color-neutral-500, #ADB5BD) !important;
}

/* ── 10. États actifs — page courante ─────────────────────────
 * Injectés par PHP via la classe .is-active sur les éléments.
 * ─────────────────────────────────────────────────────────── */

/* Desktop — item de premier niveau actif (hover permanent) */
.ax-nav-shell .ax-nav-item.is-active,
.ax-nav-shell a.ax-nav-item.is-active {
  background: rgba(33, 29, 109, 0.07) !important;
  color:      var(--ax-color-primary-500, #211D6D) !important;
}
/* Le chevron NE tourne PAS sur l'actif (seulement sur is-open) */
.ax-nav-shell .ax-nav-item.is-active .ax-nav-chevron {
  transform: none !important;
  opacity:   1 !important;
}

/* Desktop — sous-item actif dans le dropdown */
.ax-dropdown .ax-drop-item.is-active {
  background: rgba(33, 29, 109, 0.05) !important;
}
.ax-dropdown .ax-drop-item.is-active .ax-drop-name {
  color: var(--ax-color-primary-500, #211D6D) !important;
}

/* Mobile — item de premier niveau actif */
.ax-mob-sheet .ax-mob-item.is-active {
  background:  rgba(33, 29, 109, 0.05) !important;
  color:       var(--ax-color-primary-500, #211D6D) !important;
  font-weight: 600 !important;
}
.ax-mob-sheet .ax-mob-item.is-active i {
  color: var(--ax-color-primary-400, #6B67CF) !important;
}

/* Mobile — lien Accueil : navy + bold pour le distinguer des items réguliers */
.ax-mob-sheet .ax-mob-item--home,
.ax-mob-sheet a.ax-mob-item--home {
  color:       var(--ax-color-primary-500, #211D6D) !important;
  font-weight: 600 !important;
}
.ax-mob-sheet .ax-mob-item--home .ax-mob-item-label i {
  color: var(--ax-color-primary-500, #211D6D) !important;
}
/* Flèche droite (différente du chevron des autres items = plus "lien" que "menu") */
.ax-mob-sheet .ax-mob-item--home > i.ti-arrow-right {
  color: var(--ax-color-primary-400, #6B67CF) !important;
  font-size: 18px !important;
}

/* Mobile — sous-item actif dans le sous-panel */
.ax-mob-sheet .ax-mob-panel-item.is-active {
  background: rgba(33, 29, 109, 0.05) !important;
}
.ax-mob-sheet .ax-mob-panel-item.is-active .ax-drop-name {
  color:       var(--ax-color-primary-500, #211D6D) !important;
  font-weight: 600 !important;
}