/*
 * Menu du haut 2026 — maquette validée par Jérémy le 29/11/2026.
 *
 * Chargée par includes/menu-2026.php APRÈS toutes les règles du menu (chrome-v2.css,
 * mega-menu.css, finitions, styles écrits dans l'en-tête) : chaque règle commence par
 * « html body.cjh-v2 #top-menu nav.cjm.cjm26 » pour passer devant elles.
 * La classe .cjm26 n'est posée sur le <nav> que si le menu 2026 est actif :
 * add_filter( 'cyberjay_menu_2026', '__return_false' ) rend l'ancien menu tel quel.
 *
 * Rien ici ne touche au CONTENU des panneaux (.cjm-panel) : photos, prix, textes,
 * formulaire Rachat restent ceux d'avant.
 */

/* Éléments propres au tiroir : jamais sur ordinateur. */
html body.cjh-v2 #top-menu nav.cjm.cjm26 .cjm26-services,
html body.cjh-v2 #top-menu nav.cjm.cjm26 .cjm26-bas,
html body.cjh-v2 #top-menu .cjm26-voile { display: none; }
/* Le calque de la capsule (posé par le script) : hors du flux, jamais sous 992 px. */
html body.cjh-v2 #top-menu .cjm26-fx { position: absolute; pointer-events: none; }
@media (max-width: 991.98px) {
    html body.cjh-v2 #top-menu .cjm26-fx { display: none !important; }
}

/* ==========================================================================
   1. ORDINATEUR (≥ 992 px)
   ========================================================================== */

@media (min-width: 992px) {

    /* --- la capsule : les 7 rubriques, collées, sur un même fond lavande --- */
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav { gap: 0 !important; }

    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-cap {
        display: flex;
        align-items: center;
        height: auto !important;
        margin: 0 !important;
        padding: 4px 0 !important;
        background: #f6f1ff;
        border-top: 1px solid #ebe1fb;
        border-bottom: 1px solid #ebe1fb;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-cap:first-child {
        padding-left: 4px !important;
        border-left: 1px solid #ebe1fb;
        border-radius: 17px 0 0 17px;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-cap:nth-child(7) {
        padding-right: 4px !important;
        border-right: 1px solid #ebe1fb;
        border-radius: 0 17px 17px 0;
    }

    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-cap > a.cjm-top {
        position: relative !important;
        z-index: 1;
        display: flex;
        align-items: center;
        gap: 0;
        height: 42px !important;
        min-height: 0 !important;
        padding: 0 10px !important;
        border: 0 !important;
        border-radius: 13px !important;
        background: transparent !important;
        box-shadow: none !important;
        font-family: Poppins, sans-serif;
        font-size: 13.6px !important;
        font-weight: 700 !important;
        letter-spacing: -.005em;
        color: #1c1629 !important;
        white-space: nowrap;
        transition: color .2s ease;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-cap > a.cjm-top:hover,
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-cap > a.cjm-top:focus-visible,
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-cap > a.cjm-top.cjm26-survol,
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-cap > a.cjm-top[aria-expanded="true"] {
        color: #7a0fe0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    /* Le petit point violet sous la rubrique survolée. */
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-cap > a.cjm-top::after {
        content: "";
        display: block !important;
        position: absolute;
        left: 50%;
        right: auto;
        top: auto;
        bottom: 5px;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: #8f15ff;
        transform: translateX(-50%) scale(0);
        transform-origin: center;
        transition: transform .3s cubic-bezier(.34, 1.45, .64, 1);
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-cap > a.cjm-top:hover::after,
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-cap > a.cjm-top:focus-visible::after,
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-cap > a.cjm-top.cjm26-survol::after {
        transform: translateX(-50%) scale(1);
    }

    /* Petite flèche ⌄ après le libellé, SEULEMENT sur les rubriques qui ouvrent un
       panneau au survol (li.cjm-has-panel) : même style pour toutes, couleur du texte.
       Survol ou panneau ouvert : elle pivote vers le haut et passe en violet.
       Ajout validé par Jérémy le 29/11/2026 (tâche #2400). */
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-cap .cjm-chev { display: none !important; }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm-has-panel.cjm26-cap > a.cjm-top > .cjm-chev {
        display: block !important;
        flex: none;
        width: 10px !important;
        height: 10px !important;
        margin: 1px 0 0 4px !important;
        padding: 0 !important;
        color: inherit;
        opacity: 1 !important;
        transform: rotate(0deg);
        transform-origin: 50% 50%;
        transition: transform .2s ease, color .2s ease;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm-has-panel.cjm26-cap > a.cjm-top:hover > .cjm-chev,
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm-has-panel.cjm26-cap > a.cjm-top:focus-visible > .cjm-chev,
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm-has-panel.cjm26-cap > a.cjm-top.cjm26-survol > .cjm-chev,
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm-has-panel.cjm26-cap > a.cjm-top[aria-expanded="true"] > .cjm-chev {
        color: #8f15ff;
        transform: rotate(180deg);
    }

    /* Focus clavier bien visible. */
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li > a.cjm-top:focus-visible {
        outline: 2px solid #8f15ff !important;
        outline-offset: 2px !important;
    }

    /* Sans le script : la pastille blanche reste posée sous la rubrique survolée. */
    html body.cjh-v2 #top-menu nav.cjm.cjm26:not(.cjm26-js) > ul.cjm-nav > li.cjm26-cap > a.cjm-top:hover,
    html body.cjh-v2 #top-menu nav.cjm.cjm26:not(.cjm26-js) > ul.cjm-nav > li.cjm26-cap > a.cjm-top:focus-visible {
        background: #fff !important;
        box-shadow: 0 8px 18px -10px rgba(100, 20, 200, .6) !important;
    }

    /* --- la pastille, le halo et le liseré (calque posé par js/menu-2026.js) --- */
    html body.cjh-v2 #top-menu .cjm26-fx {
        position: absolute;
        z-index: 0;
        pointer-events: none;
        border-radius: 17px;
    }
    html body.cjh-v2 #top-menu .cjm26-halo,
    html body.cjh-v2 #top-menu .cjm26-lisere {
        position: absolute;
        inset: 0;
        border-radius: 17px;
        opacity: 0;
        transition: opacity .3s ease;
    }
    html body.cjh-v2 #top-menu .cjm26-halo {
        overflow: hidden;
        background: radial-gradient(150px circle at var(--mx, 50%) var(--my, 50%), rgba(143, 21, 255, .17), rgba(143, 21, 255, 0) 70%);
    }
    html body.cjh-v2 #top-menu .cjm26-lisere {
        padding: 1.4px;
        background: radial-gradient(150px circle at var(--mx, 50%) var(--my, 50%), rgba(143, 21, 255, 1), rgba(170, 90, 255, .55) 35%, rgba(143, 21, 255, 0) 70%);
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        mask-composite: exclude;
    }
    html body.cjh-v2 #top-menu .cjm26-pastille {
        position: absolute;
        top: 5px;
        left: 0;
        width: 0;
        height: 42px;
        border-radius: 13px;
        background: #fff;
        box-shadow: 0 8px 18px -10px rgba(100, 20, 200, .6);
        opacity: 0;
        transition: left .42s cubic-bezier(.34, 1.45, .64, 1), width .42s cubic-bezier(.34, 1.45, .64, 1), opacity .25s ease;
    }
    html body.cjh-v2 #top-menu .cjm26-fx.cjm26-actif .cjm26-halo,
    html body.cjh-v2 #top-menu .cjm26-fx.cjm26-actif .cjm26-lisere,
    html body.cjh-v2 #top-menu .cjm26-fx.cjm26-actif .cjm26-pastille { opacity: 1; }
    html body.cjh-v2 #top-menu .cjm26-fx.cjm26-clavier .cjm26-halo,
    html body.cjh-v2 #top-menu .cjm26-fx.cjm26-clavier .cjm26-lisere { opacity: 0; }
    html body.cjh-v2 #top-menu .cjm26-fx.cjm26-sans-glisse .cjm26-pastille { transition: opacity .25s ease; }

    /* --- Blog, Espace pro, Carte de fidélité : hors capsule, style actuel, texte en gras --- */
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-blog > a.cjm-top,
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li#espacePro > a.cjm-top.cjh-pro,
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li#carteFidelite > a.cjm-top.cjh-club {
        height: 40px !important;
        min-height: 0 !important;
        margin-left: 6px !important;
        padding: 0 9px !important;
        border-width: 1.1px !important;
        border-style: solid !important;
        border-radius: 12px !important;
        font-weight: 700 !important;
        white-space: nowrap;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-blog > a.cjm-top,
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li#carteFidelite > a.cjm-top.cjh-club { border-color: #8f15ff !important; }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li#espacePro > a.cjm-top.cjh-pro { border-color: #140d22 !important; gap: 6px; }
    /* La mallette d'Espace pro reste affichée (elle disparaissait sous 1 400 px). */
    html body.cjh-v2 #top-menu nav.cjm.cjm26 .cjh-pro .cjm-i { display: block !important; width: 16px; height: 16px; }

    /* --- le panneau : apparition douce, bords arrondis, légère ombre --- */
    html body.cjh-v2 #top-menu nav.cjm.cjm26 .cjm-panel.cjh-panneau {
        border-radius: 22px;
        box-shadow: 0 26px 50px -30px rgba(40, 10, 80, .38), 0 2px 8px -4px rgba(40, 10, 80, .12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px) scale(.985);
        transform-origin: 50% 0;
        transition: opacity .25s ease, transform .25s cubic-bezier(.2, .7, .3, 1), visibility 0s linear .25s;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 .cjm-top[aria-expanded="true"] + .cjm-panel.cjh-panneau {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity .25s ease, transform .25s cubic-bezier(.2, .7, .3, 1), visibility 0s linear 0s;
    }
}

/* Libellé court « Fidélité » et bouton d'appel rond sous 1 560 px : à 1 440 px,
   « Fidélité » touchait l'icône du compte. Le numéro reste écrit dans le bandeau
   du haut et dans le lien (lu par les lecteurs d'écran). */
@media (max-width: 1559.98px) and (min-width: 992px) {
    html body.cjh-v2 #top-menu nav.cjm.cjm26 #carteFidelite > a.cjm-top.cjh-club .cjh-club-debut { display: none !important; }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 #carteFidelite > a.cjm-top.cjh-club { text-transform: capitalize !important; }
    html body.cjh-v2 #top-menu #tools li a.cjh-appel { width: 42px !important; padding: 0 !important; justify-content: center; border-radius: 50% !important; }
    html body.cjh-v2 #top-menu #tools .cjh-appel-txt {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        clip: rect(0 0 0 0) !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 1359.98px) and (min-width: 992px) {
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-cap > a.cjm-top {
        padding: 0 8px !important;
        font-size: 13.2px !important;
    }
}

/* Paliers de secours posés par le script SEULEMENT si la barre déborde encore
   (police plus large, zoom du navigateur…) : on resserre, jamais de chevauchement. */
@media (min-width: 992px) {
    html body.cjh-v2 #top-menu.cjm26-p1 nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-cap > a.cjm-top { padding: 0 8px !important; font-size: 13.2px !important; }
    html body.cjh-v2 #top-menu.cjm26-p1 nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-blog > a.cjm-top,
    html body.cjh-v2 #top-menu.cjm26-p1 nav.cjm.cjm26 > ul.cjm-nav > li#espacePro > a.cjm-top.cjh-pro,
    html body.cjh-v2 #top-menu.cjm26-p1 nav.cjm.cjm26 > ul.cjm-nav > li#carteFidelite > a.cjm-top.cjh-club { margin-left: 4px !important; font-size: 13.2px !important; }
    html body.cjh-v2 #top-menu.cjm26-p2 nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-cap > a.cjm-top { padding: 0 6px !important; font-size: 12.8px !important; }
    html body.cjh-v2 #top-menu.cjm26-p2 nav.cjm.cjm26 .cjh-pro .cjm-i { display: none !important; }
    html body.cjh-v2 #top-menu.cjm26-p2 nav.cjm.cjm26 #carteFidelite > a.cjm-top.cjh-club .cjh-club-debut { display: none !important; }
    html body.cjh-v2 #top-menu.cjm26-p2 nav.cjm.cjm26 #carteFidelite > a.cjm-top.cjh-club { text-transform: capitalize !important; }
    html body.cjh-v2 #top-menu.cjm26-p2 #tools li a.cjh-appel { width: 42px !important; padding: 0 !important; justify-content: center; border-radius: 50% !important; }
    html body.cjh-v2 #top-menu.cjm26-p2 #tools .cjh-appel-txt { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
    html body.cjh-v2 #top-menu.cjm26-p2 nav.cjm.cjm26 > ul.cjm-nav > li.cjm-has-panel.cjm26-cap > a.cjm-top > .cjm-chev { margin-left: 3px !important; }
    html body.cjh-v2 #top-menu.cjm26-p3 nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-cap > a.cjm-top { padding: 0 5px !important; font-size: 12.4px !important; }
    html body.cjh-v2 #top-menu.cjm26-p3 nav.cjm.cjm26 > ul.cjm-nav > li.cjm-has-panel.cjm26-cap > a.cjm-top > .cjm-chev { width: 9px !important; height: 9px !important; margin-left: 2px !important; }
    html body.cjh-v2 #top-menu.cjm26-p3 nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-blog > a.cjm-top,
    html body.cjh-v2 #top-menu.cjm26-p3 nav.cjm.cjm26 > ul.cjm-nav > li#espacePro > a.cjm-top.cjh-pro,
    html body.cjh-v2 #top-menu.cjm26-p3 nav.cjm.cjm26 > ul.cjm-nav > li#carteFidelite > a.cjm-top.cjh-club { margin-left: 3px !important; padding: 0 7px !important; font-size: 12.4px !important; }}

/* ==========================================================================
   2. IPAD ET IPHONE (< 992 px)
   ========================================================================== */

@media (max-width: 991.98px) {

    /* --- la barre du haut : boutons de 40-42 px, centrés --- */
    html body.cjh-v2 #top-menu > .container { align-items: center; }
    html body.cjh-v2 #top-menu #tools ul { align-items: center; }
    html body.cjh-v2 #top-menu #tools li { display: flex; align-items: center; }
    html body.cjh-v2 #top-menu #tools .cjh-appel-li { margin-left: 2px !important; }
    html body.cjh-v2 #top-menu #tools .cjh-appel-li > a { width: 40px !important; height: 40px !important; }
    html body.cjh-v2 #top-menu #open-mobile {
        display: grid;
        place-items: center;
        flex: none;
        width: 42px;
        height: 42px;
        margin-left: 4px;
        border-radius: 13px;
        background: #f6f1ff;
        cursor: pointer;
    }
    html body.cjh-v2 #top-menu #open-mobile img { display: block !important; width: 22px !important; height: auto; margin: 0 !important; }
    html body.cjh-v2 #top-menu #open-mobile:focus-visible {
        outline: 2px solid #8f15ff;
        outline-offset: 2px;
    }

    /* --- le tiroir : glisse depuis la droite, une bande de la page reste visible --- */
    html body.cjh-v2 #top-menu nav.cjm.cjm26 {
        left: auto !important;
        right: 0 !important;
        top: 0 !important;
        width: 86% !important;
        max-width: 360px !important;
        height: 100vh !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 0 18px calc(28px + env(safe-area-inset-bottom, 0px)) !important;
        border-radius: 26px 0 0 26px;
        background: #fff !important;
        box-shadow: -30px 0 60px -30px rgba(20, 7, 42, .55);
        transform: translateX(104%) !important;
        visibility: hidden;
        transition: transform .55s cubic-bezier(.32, .72, 0, 1), visibility 0s linear .55s !important;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26.active {
        transform: none !important;
        visibility: visible !important;
        transition: transform .55s cubic-bezier(.32, .72, 0, 1), visibility 0s linear 0s !important;
    }

    /* Le fond flouté derrière ; le toucher ferme le menu (js/menu-2026.js). */
    html body.cjh-v2 #top-menu .cjm26-voile {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 999999;
        background: rgba(20, 7, 42, .38);
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .45s ease, visibility 0s linear .45s;
    }
    html body.cjh-v2 #top-menu.cjm26-ouvert .cjm26-voile {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity .45s ease, visibility 0s linear 0s;
    }
    html.cjm26-verrou,
    html.cjm26-verrou body { overflow: hidden !important; }

    /* --- en haut : le logo à gauche, le bouton fermer à droite --- */
    html body.cjh-v2 #top-menu nav.cjm.cjm26 #mobile-tools {
        position: sticky;
        top: 0;
        z-index: 6;
        margin: 0 -18px 4px !important;
        padding: 14px 18px 12px !important;
        background: #fff !important;
        border-bottom: 1px solid #f0eaf9 !important;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 #mobile-tools .row { margin: 0 0 12px !important; }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 #mobile-tools .row > .col-7 {
        position: relative;
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: row-reverse;
        justify-content: space-between !important;
        align-items: center;
        min-height: 42px;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 #mobile-tools a > img[alt="logo"] { height: 40px !important; }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 #mobile-tools #close-mobile {
        position: static !important;
        display: grid;
        place-items: center;
        flex: none;
        width: 42px !important;
        height: 42px !important;
        margin: 0;
        padding: 0 !important;
        border: 0;
        border-radius: 13px;
        background: #f6f1ff;
        color: #8f15ff;
        transform: none !important;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 #mobile-tools #close-mobile svg { display: block; width: 18px; height: 18px; }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 #mobile-tools #close-mobile:active { background: #ebdfff; }

    /* --- le champ « Rechercher une réparation… » --- */
    html body.cjh-v2 #top-menu nav.cjm.cjm26 #mobile-tools form { position: relative; margin: 0 !important; }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 #mobile-tools form::before {
        left: 15px;
        top: 50%;
        width: 20px;
        height: 20px;
        line-height: 0;
        transform: translateY(-50%);
        z-index: 1;
        pointer-events: none;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 #mobile-tools input[type="search"] {
        width: 100%;
        height: 48px !important;
        padding: 0 16px 0 46px !important;
        border: 1px solid #ebe1fb !important;
        border-radius: 15px !important;
        background: #f6f1ff !important;
        box-shadow: none !important;
        font-family: Poppins, sans-serif;
        font-size: 16px !important;
        color: #1c1629;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 #mobile-tools input[type="search"]::placeholder { color: #6f6287; opacity: 1; }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 #mobile-tools input[type="search"]:focus {
        outline: 0;
        border-color: #8f15ff !important;
        background: #fff !important;
        box-shadow: 0 0 0 4px rgba(143, 21, 255, .14) !important;
    }

    /* --- « NOS SERVICES » --- */
    html body.cjh-v2 #top-menu nav.cjm.cjm26 .cjm26-services {
        display: block;
        margin: 16px 2px 2px;
        font-size: 11.5px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: #7c6c98;
    }

    /* --- la liste : 7 rubriques, puis Espace pro, puis Blog et Fidélité côte à côte --- */
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0 10px !important;
        justify-items: stretch !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li {
        display: block !important;
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        list-style: none;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-cap {
        grid-column: 1 / -1;
        border-bottom: 1px solid #f0eaf9 !important;
    }

    /* Une rubrique = une grosse ligne, rond violet clair avec chevron à droite. */
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-cap > a.cjm-top {
        position: relative;
        display: flex !important;
        align-items: center;
        justify-content: space-between !important;
        gap: 12px;
        width: 100%;
        height: auto !important;
        min-height: 60px !important;
        margin: 0 !important;
        padding: 8px 2px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        font-family: Poppins, sans-serif;
        font-size: 17px !important;
        font-weight: 700 !important;
        line-height: 1.25;
        letter-spacing: -.01em;
        text-align: left;
        color: #1c1629 !important;
        transition: color .2s ease;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-cap > a.cjm-top:hover,
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-cap > a.cjm-top:focus-visible,
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-cap > a.cjm-top[aria-expanded="true"] {
        border: 0 !important;
        background: transparent !important;
        color: #7a0fe0 !important;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-cap > a.cjm-top:focus-visible {
        outline: 2px solid #8f15ff;
        outline-offset: -2px;
        border-radius: 12px !important;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-cap > a.cjm-top .cjm-chev { display: none !important; }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-cap > a.cjm-top::after {
        content: "";
        display: block !important;
        position: static;
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #f3ecff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f15ff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / 15px 15px no-repeat;
        transform: none;
        transition: transform .3s cubic-bezier(.32, .72, 0, 1), background-color .2s ease;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-cap > a.cjm-top[aria-expanded="true"]::after {
        transform: rotate(90deg);
        background-color: #e9dcff;
    }

    /* Les rubriques arrivent l'une après l'autre (45 ms). */
    html body.cjh-v2 #top-menu nav.cjm.cjm26.active > ul.cjm-nav > li.cjm26-cap,
    html body.cjh-v2 #top-menu nav.cjm.cjm26.active > ul.cjm-nav > li#espacePro,
    html body.cjh-v2 #top-menu nav.cjm.cjm26.active > ul.cjm-nav > li.cjm26-blog,
    html body.cjh-v2 #top-menu nav.cjm.cjm26.active > ul.cjm-nav > li#carteFidelite,
    html body.cjh-v2 #top-menu nav.cjm.cjm26.active .cjm26-bas {
        animation: cjm26-ligne .5s cubic-bezier(.32, .72, 0, 1) both;
        animation-delay: .5s;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26.active > ul.cjm-nav > li.cjm26-cap:nth-child(1) { animation-delay: .12s; }
    html body.cjh-v2 #top-menu nav.cjm.cjm26.active > ul.cjm-nav > li.cjm26-cap:nth-child(2) { animation-delay: .165s; }
    html body.cjh-v2 #top-menu nav.cjm.cjm26.active > ul.cjm-nav > li.cjm26-cap:nth-child(3) { animation-delay: .21s; }
    html body.cjh-v2 #top-menu nav.cjm.cjm26.active > ul.cjm-nav > li.cjm26-cap:nth-child(4) { animation-delay: .255s; }
    html body.cjh-v2 #top-menu nav.cjm.cjm26.active > ul.cjm-nav > li.cjm26-cap:nth-child(5) { animation-delay: .3s; }
    html body.cjh-v2 #top-menu nav.cjm.cjm26.active > ul.cjm-nav > li.cjm26-cap:nth-child(6) { animation-delay: .345s; }
    html body.cjh-v2 #top-menu nav.cjm.cjm26.active > ul.cjm-nav > li.cjm26-cap:nth-child(7) { animation-delay: .39s; }
    html body.cjh-v2 #top-menu nav.cjm.cjm26.active > ul.cjm-nav > li#espacePro { animation-delay: .435s; }
    html body.cjh-v2 #top-menu nav.cjm.cjm26.active > ul.cjm-nav > li.cjm26-blog,
    html body.cjh-v2 #top-menu nav.cjm.cjm26.active > ul.cjm-nav > li#carteFidelite { animation-delay: .48s; }

    /* --- l'accordéon : le panneau de l'ordinateur, dans le flux, sans cadre --- */
    html body.cjh-v2 #top-menu nav.cjm.cjm26 .cjm-panel.cjh-panneau {
        position: static !important;
        width: auto !important;
        max-height: none !important;
        margin: 0 0 16px !important;
        padding: 0 !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 .cjh-panneau .cjh-grille { display: block !important; }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 .cjh-panneau .cjh-zone,
    html body.cjh-v2 #top-menu nav.cjm.cjm26 .cjh-panneau .cjh44-in {
        padding: 2px 0 6px !important;
        border: 0 !important;
        background: transparent !important;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 .cjh-panneau .cjh-zone + .cjh-zone { margin-top: 10px; }

    /* Les petits titres : « RÉPARER PAR APPAREIL », « PANNES COURANTES »… */
    html body.cjh-v2 #top-menu nav.cjm.cjm26 .cjh-panneau .cjm-zone.cjh44-titre {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin: 4px 0 10px !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
        letter-spacing: .12em !important;
        text-transform: uppercase;
        text-align: left;
        color: #7c6c98 !important;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 .cjh-panneau .cjm-zone.cjh44-titre .cjh44-emoji { display: none !important; }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 .cjh-panneau .cjm-zone.cjh44-titre .cjh44-voir {
        margin-left: auto;
        padding: 6px 0;
        font-size: 12.5px !important;
        font-weight: 700;
        letter-spacing: 0;
        text-transform: none;
        color: #7a0fe0 !important;
    }

    /* Les vraies vignettes en grille : 2 colonnes (iPhone), 3 (iPad). */
    html body.cjh-v2 #top-menu nav.cjm.cjm26 .cjh-panneau .cjh44-vignettes,
    html body.cjh-v2 #top-menu nav.cjm.cjm26 .cjh-panneau .cjh44-vignettes.cjh44-centre {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: none !important;
        gap: 8px !important;
        flex-wrap: wrap;
        overflow: visible !important;
        margin: 0;
        padding: 0 !important;
        scroll-snap-type: none;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 .cjh-panneau .cjh44-vignettes > .cjh-tuile {
        flex: none !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 .cjh-panneau .cjh44-tuile > a {
        height: 100%;
        min-height: 0;
        border-radius: 16px !important;
    }

    /* Cascade des cartes à l'ouverture (rang posé par le script). */
    html body.cjh-v2 #top-menu nav.cjm.cjm26 .cjm-top[aria-expanded="true"] + .cjm-panel .cjh-tuile {
        animation: cjm26-carte .42s cubic-bezier(.32, .72, 0, 1) both;
        animation-delay: calc(var(--cjm26-i, 0) * 35ms);
    }

    /* « Voir tout / Tout le … → » */
    html body.cjh-v2 #top-menu nav.cjm.cjm26 .cjh-panneau .cjm-all { margin: 12px 0 0 !important; text-align: center; }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 .cjh-panneau .cjm-all a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        font-weight: 700;
        color: #7a0fe0 !important;
    }

    /* --- en bas : Espace pro sur toute la largeur, Blog et Fidélité côte à côte --- */
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li#espacePro {
        grid-column: 1 / -1;
        order: 1;
        margin-top: 20px !important;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-blog,
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li#carteFidelite {
        order: 2;
        margin-top: 10px !important;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li#espacePro > a.cjm-top,
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-blog > a.cjm-top,
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li#carteFidelite > a.cjm-top {
        display: flex !important;
        align-items: center;
        justify-content: center;
        height: 50px !important;
        min-height: 50px !important;
        margin: 0 !important;
        padding: 0 10px !important;
        font-size: 15.5px !important;
        font-weight: 700 !important;
        white-space: nowrap;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li#carteFidelite > a.cjm-top .cjh-club-debut { display: none; }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li#carteFidelite > a.cjm-top { text-transform: capitalize !important; }

    /* --- le grand bouton d'appel et « Sans rendez-vous · Devis gratuit » --- */
    html body.cjh-v2 #top-menu nav.cjm.cjm26 .cjm26-bas { display: block; margin: 18px 0 0; }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 a.cjm26-appel {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        height: 58px;
        overflow: hidden;
        border-radius: 18px;
        background: linear-gradient(135deg, #a84bff 0%, #8f15ff 45%, #6a0fd1 100%);
        box-shadow: 0 16px 30px -16px rgba(106, 15, 209, .9), inset 0 1px 0 rgba(255, 255, 255, .35);
        color: #fff !important;
        font-family: Poppins, sans-serif;
        font-size: 19px;
        font-weight: 700;
        letter-spacing: .03em;
        text-decoration: none !important;
        -webkit-tap-highlight-color: transparent;
    }
    /* Le reflet : un voile clair en haut, et un éclat qui passe de temps en temps. */
    html body.cjh-v2 #top-menu nav.cjm.cjm26 a.cjm26-appel::before {
        content: "";
        position: absolute;
        inset: 0 0 50% 0;
        background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0));
        pointer-events: none;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 a.cjm26-appel::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: -60%;
        width: 45%;
        background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .38), rgba(255, 255, 255, 0));
        transform: skewX(-20deg);
        animation: cjm26-reflet 4.2s ease-in-out 1s infinite;
        pointer-events: none;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 a.cjm26-appel svg {
        position: relative;
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        color: #fff;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 a.cjm26-appel span { position: relative; }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 a.cjm26-appel:active { transform: scale(.985); }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 a.cjm26-appel:focus-visible { outline: 2px solid #8f15ff; outline-offset: 3px; }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 p.cjm26-sans-rdv {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        margin: 12px 0 0;
        font-size: 11.5px;
        font-weight: 700;
        line-height: 1.3;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: #3b2a5c;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 p.cjm26-sans-rdv svg { flex: none; }
}

/* iPad : tiroir de 440 px, lignes plus grandes, vignettes sur 3 colonnes. */
@media (min-width: 600px) and (max-width: 991.98px) {
    html body.cjh-v2 #top-menu nav.cjm.cjm26 {
        width: 440px !important;
        max-width: 440px !important;
        padding-left: 22px !important;
        padding-right: 22px !important;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 #mobile-tools { margin: 0 -22px 4px !important; padding: 16px 22px 12px !important; }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li.cjm26-cap > a.cjm-top { font-size: 19px !important; min-height: 64px !important; }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 .cjh-panneau .cjh44-vignettes,
    html body.cjh-v2 #top-menu nav.cjm.cjm26 .cjh-panneau .cjh44-vignettes.cjh44-centre { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* Petit téléphone : l'icône du compte peut partir pour que tout tienne. */
@media (max-width: 419.98px) {
    html body.cjh-v2 #top-menu #tools ul li:first-child { display: none !important; }
}

@keyframes cjm26-ligne {
    from { opacity: 0; transform: translateX(22px); }
    to { opacity: 1; transform: none; }
}
@keyframes cjm26-carte {
    from { opacity: 0; transform: translateY(8px) scale(.97); }
    to { opacity: 1; transform: none; }
}
@keyframes cjm26-reflet {
    0% { left: -60%; }
    40%, 100% { left: 130%; }
}

/* ==========================================================================
   3. Mouvement réduit : aucune animation
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html body.cjh-v2 #top-menu nav.cjm.cjm26,
    html body.cjh-v2 #top-menu nav.cjm.cjm26.active,
    html body.cjh-v2 #top-menu nav.cjm.cjm26 .cjm-panel.cjh-panneau,
    html body.cjh-v2 #top-menu nav.cjm.cjm26 .cjm-top[aria-expanded="true"] + .cjm-panel.cjh-panneau,
    html body.cjh-v2 #top-menu .cjm26-voile,
    html body.cjh-v2 #top-menu.cjm26-ouvert .cjm26-voile,
    html body.cjh-v2 #top-menu .cjm26-pastille,
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li > a.cjm-top,
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li > a.cjm-top::after,
    html body.cjh-v2 #top-menu nav.cjm.cjm26 > ul.cjm-nav > li > a.cjm-top > .cjm-chev {
        transition: none !important;
    }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 .cjm-panel.cjh-panneau { transform: none; }
    html body.cjh-v2 #top-menu nav.cjm.cjm26 *,
    html body.cjh-v2 #top-menu nav.cjm.cjm26 *::before,
    html body.cjh-v2 #top-menu nav.cjm.cjm26 *::after {
        animation: none !important;
    }
    html body.cjh-v2 #top-menu .cjm26-halo,
    html body.cjh-v2 #top-menu .cjm26-lisere { display: none; }
}
