/**
 * Menu pages V2 — coque Sprint 0 (structure Yango Sprint 5)
 */
.gx-menu-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 8px;
}

.gx-menu-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: var(--gx-touch-min);
    height: var(--gx-touch-min);
    border: 0;
    background: transparent;
    text-decoration: none;
    color: var(--gx-night);
}

.gx-menu-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.gx-menu-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gx-avatar-placeholder);
    object-fit: cover;
}

.gx-menu-avatar--placeholder {
    display: block;
}

.gx-menu-name {
    margin: 0;
    font-family: var(--gx-font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--gx-night);
}

.gx-menu-phone {
    margin: 0;
    font-size: 14px;
    color: var(--gx-text-muted);
}

.gx-menu-cta {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 0;
    border-radius: var(--gx-radius-md);
    background: var(--gx-accent);
    color: var(--gx-surface);
    font-family: var(--gx-font-sans);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.gx-menu-cta-sub {
    margin: -8px 0 0;
    font-size: 13px;
    color: var(--gx-text-muted);
    text-align: center;
}

.gx-menu-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.gx-menu-shortcut {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--gx-night);
    font-size: 11px;
    font-weight: 500;
    text-align: center;
}

.gx-menu-shortcut-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gx-card-group);
}

.gx-menu-card {
    border-radius: var(--gx-radius-lg);
    background: var(--gx-card-group);
    overflow: hidden;
}

.gx-menu-card--promo {
    background: var(--gx-night);
}

.gx-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--gx-night);
    border-bottom: 1px solid var(--gx-border);
}

.gx-menu-card--promo .gx-menu-link {
    color: var(--gx-surface);
    border-bottom: 0;
}

.gx-menu-link:last-child {
    border-bottom: 0;
}

.gx-menu-link-label {
    flex: 1;
    font-weight: 500;
    font-size: 15px;
}

.gx-menu-logout {
    display: block;
    width: 100%;
    padding: 16px;
    border: 0;
    background: transparent;
    color: var(--gx-danger);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

/* ===================================================================
 * Menu visiteur V2 — style Yango (icônes + sous-titres + promos image)
 * Ajouts additifs : n'altèrent pas le menu client existant.
 * =================================================================== */

.gx-menu-cta {
    transition: background-color 0.15s ease, transform 0.1s ease;
}
.gx-menu-cta:hover { background: var(--gx-accent-hover); }
.gx-menu-cta:active { transform: scale(0.985); }

/* Ligne de carte : badge icône + texte (titre + sous-titre) + chevron */
.gx-menu-link {
    transition: background-color 0.15s ease;
}
.gx-menu-link:hover { background: rgba(15, 23, 42, 0.035); }
.gx-menu-link:active { background: rgba(15, 23, 42, 0.06); }

.gx-menu-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: var(--gx-radius-md);
    background: var(--gx-surface);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.gx-menu-link-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gx-menu-link-sub {
    font-size: 12.5px;
    line-height: 1.35;
    color: var(--gx-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gx-menu-chevron { flex-shrink: 0; }

/* Cartes promo illustrées (image en arrière-plan, style Yango) */
.gx-menu-promo {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100px;
    padding: 16px 18px;
    border-radius: var(--gx-radius-lg);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--gx-shadow-card);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gx-menu-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}
.gx-menu-promo:active { transform: translateY(0) scale(0.99); }

.gx-menu-promo--livreur { background: linear-gradient(105deg, #fff1e6 0%, #ffffff 62%); }
.gx-menu-promo--depot { background: linear-gradient(105deg, #e9f2ec 0%, #ffffff 62%); }

.gx-menu-promo__text {
    position: relative;
    z-index: 1;
    max-width: 64%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gx-menu-promo__title {
    font-family: var(--gx-font-display);
    font-weight: 600;
    font-size: 16px;
    color: var(--gx-night);
}

.gx-menu-promo__sub {
    font-size: 12.5px;
    line-height: 1.35;
    color: var(--gx-text-muted);
}

.gx-menu-promo__img {
    position: absolute;
    top: 0;
    right: 4px;
    height: 100%;
    width: auto;
    max-width: 46%;
    object-fit: contain;
    object-position: right center;
    pointer-events: none;
}

.gx-menu-promo__chev {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gx-surface);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
}

/* Accessibilité : anneau de focus visible */
.gx-menu-cta:focus-visible,
.gx-menu-link:focus-visible,
.gx-menu-promo:focus-visible {
    outline: 2px solid var(--gx-primary);
    outline-offset: 2px;
}

/* Responsive : tablette / desktop — page centrée (spec §2, max 480 px) */
@media (min-width: 768px) {
    .gx-menu-page {
        max-width: 480px;
        margin-inline: auto;
        gap: 16px;
        padding-top: 16px;
    }
    .gx-menu-promo { min-height: 112px; }
}

@media (prefers-reduced-motion: reduce) {
    .gx-menu-cta,
    .gx-menu-link,
    .gx-menu-promo { transition: none; }
    .gx-menu-promo:hover { transform: none; }
}

/* ============================================================
   Espace client — menu (3 points) façon Yango — juin 2026
   ============================================================ */
.gx-page-menu .gx-public-main { background: transparent; padding-top: 8px; }
.gx-cmenu { max-width: 560px; margin: 0 auto; padding: 4px 4px 28px; }

/* Profil */
.gx-cmenu__profile {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    text-decoration: none; padding: 12px 0 22px;
}
.gx-cmenu__avatar {
    width: 104px; height: 104px; border-radius: 50%; overflow: hidden; background: #e2e8f0;
    display: grid; place-items: center; margin-bottom: 14px; box-shadow: 0 6px 18px rgba(15,23,42,.12);
}
.gx-cmenu__avatar img { width: 100%; height: 100%; object-fit: cover; }
.gx-cmenu__name { font-size: 22px; font-weight: 800; color: var(--gx-night, #0d1b2a); }
.gx-cmenu__name-chev { font-style: normal; color: var(--gx-night, #0d1b2a); }
.gx-cmenu__phone { margin-top: 2px; font-size: 15px; color: var(--gx-text-muted, #94a3b8); }

/* Raccourcis ronds */
.gx-cmenu__shortcuts {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px;
}
.gx-cmenu__sc {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    text-decoration: none; color: var(--gx-night, #0d1b2a); font-size: 12.5px; font-weight: 600;
}
.gx-cmenu__sc-ico {
    width: 58px; height: 58px; border-radius: 50%; background: var(--gx-surface, #fff);
    display: grid; place-items: center; box-shadow: 0 3px 10px rgba(15,23,42,.07);
}
.gx-cmenu__sc-ico svg { width: 26px; height: 26px; color: var(--gx-night, #0d1b2a); }
.gx-cmenu__sc:active .gx-cmenu__sc-ico { background: #fff5ec; }

/* Groupes de lignes */
.gx-cmenu__group {
    background: var(--gx-surface, #fff); border-radius: 18px; overflow: hidden;
    margin-bottom: 14px; box-shadow: 0 3px 12px rgba(15,23,42,.05);
}
.gx-cmenu__row {
    display: flex; align-items: center; gap: 14px; padding: 15px 16px; text-decoration: none;
    color: var(--gx-night, #0d1b2a); position: relative;
    width: 100%; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer;
}
.gx-cmenu__row + .gx-cmenu__row::before {
    content: ''; position: absolute; top: 0; left: 56px; right: 16px; height: 1px; background: var(--gx-border, #eef2f6);
}
.gx-cmenu__row-ico {
    width: 30px; flex-shrink: 0; display: grid; place-items: center; color: var(--gx-night, #0d1b2a);
}
.gx-cmenu__row-ico svg { width: 24px; height: 24px; }
.gx-cmenu__row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gx-cmenu__row-title { font-size: 16px; font-weight: 600; }
.gx-cmenu__row-sub { font-size: 13px; color: var(--gx-text-muted, #94a3b8); }
.gx-cmenu__row-chev { color: #cbd5e1; font-size: 22px; line-height: 1; }
.gx-cmenu__row:active { background: #f8fafc; }

/* Carte mise en avant (sombre, façon "Travaillez comme conducteur") */
.gx-cmenu__feature {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px;
    background: var(--gx-night, #0d1b2a); color: #fff; border-radius: 18px; margin-bottom: 14px;
    text-decoration: none; box-shadow: 0 6px 18px rgba(13,27,42,.25);
}
.gx-cmenu__feature-ico {
    width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
    background: var(--gx-accent, #f97316); display: grid; place-items: center;
}
.gx-cmenu__feature-ico svg { width: 22px; height: 22px; color: #fff; }
.gx-cmenu__feature-label { flex: 1; font-size: 16.5px; font-weight: 700; }
.gx-cmenu__feature-chev { color: var(--gx-accent, #f97316); font-size: 24px; font-weight: 700; }

/* Intitulé de section (menu admin/dépôt) */
.gx-cmenu__section {
    margin: 20px 4px 8px; font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; color: var(--gx-text-muted, #64748b);
}

/* Déconnexion */
.gx-cmenu__logout {
    display: block; text-align: center; margin-top: 18px; padding: 14px;
    color: #ef4444; font-weight: 700; font-size: 15px; text-decoration: none;
}

/* Retour site vitrine */
.gx-menu-vitrine,
.gx-cmenu__vitrine {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 4px;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    background: #fff7ed;
    border: 1.5px solid rgba(249, 115, 22, 0.28);
    box-sizing: border-box;
    max-width: 100%;
}
.gx-menu-vitrine__ico,
.gx-cmenu__vitrine-ico {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #ffedd5;
    color: #ea580c;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.gx-cmenu__vitrine-ico svg { width: 22px; height: 22px; }
.gx-menu-vitrine__text,
.gx-cmenu__vitrine-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.gx-menu-vitrine__text strong,
.gx-cmenu__vitrine-text strong {
    font-size: 15px;
    font-weight: 800;
    color: var(--gx-night, #0d1b2a);
}
.gx-menu-vitrine__text span,
.gx-cmenu__vitrine-text span {
    font-size: 12.5px;
    color: var(--gx-text-muted, #64748b);
    line-height: 1.35;
}
.gx-menu-vitrine__chev {
    color: #ea580c;
    font-size: 22px;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .gx-menu-page,
    .gx-cmenu {
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 2px;
        padding-right: 2px;
    }
    .gx-menu-card,
    .gx-menu-promo,
    .gx-cmenu__group,
    .gx-cmenu__feature,
    .gx-cmenu__promo {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* ============================================================
   Menu visiteur — variante gx-cmenu (glass + promos illustrées)
   ============================================================ */
.gx-cmenu--visitor .gx-cmenu__profile--visitor {
    text-decoration: none;
    cursor: default;
    padding-bottom: 18px;
}

.gx-cmenu__avatar--placeholder {
    background: linear-gradient(145deg, #e2e8f0, #f8fafc);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.gx-cmenu__cta {
    display: block;
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    padding: 14px 16px;
    border: 0;
    border-radius: var(--gx-radius-md, 12px);
    background: var(--gx-accent, #f97316);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.gx-cmenu__cta:hover { background: var(--gx-accent-hover, #ea580c); }
.gx-cmenu__cta:active { transform: scale(0.985); }

.gx-cmenu__cta-sub {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--gx-text-muted, #64748b);
    max-width: 28rem;
}

.gx-cmenu__promo {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 104px;
    margin-bottom: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(13, 27, 42, 0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gx-cmenu__promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(13, 27, 42, 0.14);
}

.gx-cmenu__promo:active { transform: translateY(0) scale(0.99); }

.gx-cmenu__promo--livreur {
    background: linear-gradient(105deg, rgba(255, 241, 230, 0.95) 0%, rgba(255, 255, 255, 0.88) 62%);
}

.gx-cmenu__promo--depot {
    background: linear-gradient(105deg, rgba(233, 242, 236, 0.95) 0%, rgba(255, 255, 255, 0.88) 62%);
}

.gx-cmenu__promo-text {
    position: relative;
    z-index: 1;
    max-width: 62%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gx-cmenu__promo-title {
    font-family: var(--gx-font-display, 'Poppins', sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--gx-night, #0d1b2a);
}

.gx-cmenu__promo-sub {
    font-size: 12.5px;
    line-height: 1.35;
    color: var(--gx-text-muted, #64748b);
}

.gx-cmenu__promo-img {
    position: absolute;
    top: 50%;
    right: 0;
    width: 112px;
    height: 112px;
    object-fit: contain;
    transform: translateY(-50%);
    pointer-events: none;
}

.gx-cmenu__promo-chev {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    color: var(--gx-accent, #f97316);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.gx-cmenu--visitor .gx-cmenu__row {
    animation: gx-app-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gx-cmenu--visitor .gx-cmenu__group:nth-child(2) .gx-cmenu__row:nth-child(1) { animation-delay: 0.04s; }
.gx-cmenu--visitor .gx-cmenu__group:nth-child(2) .gx-cmenu__row:nth-child(2) { animation-delay: 0.08s; }
.gx-cmenu--visitor .gx-cmenu__group:nth-child(3) .gx-cmenu__row:nth-child(1) { animation-delay: 0.12s; }
.gx-cmenu--visitor .gx-cmenu__group:nth-child(3) .gx-cmenu__row:nth-child(2) { animation-delay: 0.16s; }
.gx-cmenu--visitor .gx-cmenu__group:nth-child(3) .gx-cmenu__row:nth-child(3) { animation-delay: 0.2s; }
.gx-cmenu--visitor .gx-cmenu__promo--livreur { animation-delay: 0.24s; }
.gx-cmenu--visitor .gx-cmenu__promo--depot { animation-delay: 0.28s; }
.gx-cmenu--visitor .gx-cmenu__group:nth-child(6) .gx-cmenu__row:nth-child(1) { animation-delay: 0.32s; }
.gx-cmenu--visitor .gx-cmenu__group:nth-child(6) .gx-cmenu__row:nth-child(2) { animation-delay: 0.36s; }
.gx-cmenu--visitor .gx-cmenu__group:nth-child(7) .gx-cmenu__row { animation-delay: 0.4s; }

.gx-cmenu--visitor .gx-cmenu__promo {
    animation: gx-app-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gx-cmenu--visitor .gx-cmenu__row:focus-visible,
.gx-cmenu--visitor .gx-cmenu__promo:focus-visible,
.gx-cmenu--visitor .gx-cmenu__cta:focus-visible {
    outline: 2px solid var(--gx-accent, #f97316);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .gx-cmenu--visitor .gx-cmenu__row,
    .gx-cmenu--visitor .gx-cmenu__promo { animation: none; }
}

/* ============================================================
   Menu client connecté — variante gx-cmenu--client
   ============================================================ */
.gx-cmenu--client {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.gx-cmenu--client .gx-cmenu__profile--client {
    padding: 8px 0 20px;
}

.gx-cmenu--client .gx-cmenu__avatar {
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.gx-cmenu--client .gx-cmenu__name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--gx-font-display, 'Poppins', sans-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--gx-night, #0d1b2a);
}

.gx-cmenu--client .gx-cmenu__name-chev {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    font-style: normal;
    color: var(--gx-text-muted, #94a3b8);
}

.gx-cmenu--client .gx-cmenu__name-chev svg {
    width: 16px;
    height: 16px;
}

.gx-cmenu--client .gx-cmenu__profile-hint {
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--gx-accent, #f97316);
}

.gx-cmenu--client .gx-cmenu__sc-ico {
    width: 56px;
    height: 56px;
    background: var(--gx-card-group, #f1f5f9);
    box-shadow: none;
    transition: background 0.15s ease, transform 0.12s ease;
}

.gx-cmenu--client .gx-cmenu__sc span:last-child {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.gx-cmenu--client .gx-cmenu__sc:active .gx-cmenu__sc-ico {
    background: #ffedd5;
    transform: scale(0.96);
}

/* CTA principal — mission « commander » */
.gx-cmenu__command {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding: 16px 18px;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--gx-accent, #f97316) 0%, #ea580c 100%);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
    transition: transform 0.12s ease, box-shadow 0.15s ease;
}

.gx-cmenu__command:hover {
    box-shadow: 0 14px 32px rgba(249, 115, 22, 0.42);
}

.gx-cmenu__command:active {
    transform: scale(0.985);
}

.gx-cmenu__command-ico {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
}

.gx-cmenu__command-ico svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.gx-cmenu__command-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gx-cmenu__command-text strong {
    font-family: var(--gx-font-display, 'Poppins', sans-serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}

.gx-cmenu__command-text span {
    font-size: 13px;
    opacity: 0.92;
}

.gx-cmenu__command-chev {
    flex-shrink: 0;
    opacity: 0.9;
}

.gx-cmenu__command-chev svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.gx-cmenu__section-label {
    margin: 0 6px 10px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gx-text-muted, #64748b);
}

.gx-cmenu__row-badge {
    flex-shrink: 0;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 11px;
    background: var(--gx-danger, #dc2626);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

/* Promo livreur — surbrillance forte */
.gx-cmenu--client .gx-cmenu__promo--spotlight {
    position: relative;
    min-height: 112px;
    margin: 6px 0 22px;
    padding: 18px 20px;
    overflow: hidden;
    border: 2px solid rgba(251, 146, 60, 0.55);
    background: linear-gradient(125deg, #0f172a 0%, #1e293b 42%, #c2410c 165%);
    box-shadow:
        0 0 0 1px rgba(249, 115, 22, 0.12),
        0 16px 40px rgba(249, 115, 22, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.gx-cmenu--client .gx-cmenu__promo-glow {
    position: absolute;
    inset: -40% -20% auto auto;
    width: 70%;
    height: 140%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.45) 0%, transparent 68%);
    pointer-events: none;
    animation: gx-client-livreur-glow 4s ease-in-out infinite;
}

@keyframes gx-client-livreur-glow {
    0%, 100% { opacity: 0.55; transform: translate(0, 0); }
    50% { opacity: 0.95; transform: translate(-6px, 4px); }
}

.gx-cmenu--client .gx-cmenu__promo--spotlight::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(108deg, transparent 35%, rgba(255, 255, 255, 0.12) 50%, transparent 65%);
    transform: translateX(-120%);
    animation: gx-client-livreur-shine 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gx-client-livreur-shine {
    0%, 75%, 100% { transform: translateX(-120%); }
    40% { transform: translateX(120%); }
}

.gx-cmenu--client .gx-cmenu__promo-kicker {
    display: inline-block;
    margin-bottom: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.22);
    color: #fdba74;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gx-cmenu--client .gx-cmenu__promo--spotlight .gx-cmenu__promo-text {
    position: relative;
    z-index: 2;
    max-width: 68%;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.gx-cmenu--client .gx-cmenu__promo--spotlight .gx-cmenu__promo-title {
    color: #fff;
    font-size: 17px;
}

.gx-cmenu--client .gx-cmenu__promo--spotlight .gx-cmenu__promo-sub {
    color: rgba(255, 255, 255, 0.88);
}

.gx-cmenu--client .gx-cmenu__promo--spotlight .gx-cmenu__promo-kicker {
    background: rgba(249, 115, 22, 0.35);
    color: #ffedd5;
}

.gx-cmenu--client .gx-cmenu__promo--spotlight .gx-cmenu__promo-chev {
    color: #fdba74;
    bottom: 16px;
}

.gx-cmenu--client .gx-cmenu__promo--spotlight .gx-cmenu__promo-img {
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
}

.gx-cmenu--client .gx-cmenu__promo--spotlight:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(249, 115, 22, 0.2),
        0 20px 48px rgba(249, 115, 22, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Animations d'entrée */
.gx-cmenu--client .gx-cmenu__profile,
.gx-cmenu--client .gx-cmenu__shortcuts,
.gx-cmenu--client .gx-cmenu__command,
.gx-cmenu--client .gx-cmenu__section-label,
.gx-cmenu--client .gx-cmenu__group,
.gx-cmenu--client .gx-cmenu__promo,
.gx-cmenu--client .gx-cmenu__logout {
    animation: gx-app-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gx-cmenu--client .gx-cmenu__profile { animation-delay: 0.02s; }
.gx-cmenu--client .gx-cmenu__shortcuts { animation-delay: 0.06s; }
.gx-cmenu--client .gx-cmenu__command { animation-delay: 0.1s; }
.gx-cmenu--client .gx-cmenu__section-label:nth-of-type(1) { animation-delay: 0.14s; }
.gx-cmenu--client .gx-cmenu__group:nth-of-type(1) { animation-delay: 0.18s; }
.gx-cmenu--client .gx-cmenu__promo { animation-delay: 0.24s; }
.gx-cmenu--client .gx-cmenu__section-label:nth-of-type(2) { animation-delay: 0.28s; }
.gx-cmenu--client .gx-cmenu__group:nth-of-type(2) { animation-delay: 0.32s; }
.gx-cmenu--client .gx-cmenu__logout { animation-delay: 0.38s; }

.gx-cmenu--client .gx-cmenu__row:focus-visible,
.gx-cmenu--client .gx-cmenu__command:focus-visible,
.gx-cmenu--client .gx-cmenu__promo:focus-visible,
.gx-cmenu--client .gx-cmenu__sc:focus-visible {
    outline: 2px solid var(--gx-accent, #f97316);
    outline-offset: 2px;
}

[data-theme="dark"] .gx-cmenu--client .gx-cmenu__sc-ico {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .gx-cmenu--client .gx-cmenu__promo--spotlight {
    border-color: rgba(251, 146, 60, 0.45);
}

/* Bascule mode sombre (menu visiteur + client) */
.gx-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}

.gx-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.gx-switch__track {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #cbd5e1;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.gx-switch__track::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.gx-switch input:checked + .gx-switch__track {
    background: var(--gx-accent, #f97316);
}

.gx-switch input:checked + .gx-switch__track::before {
    transform: translateX(20px);
}

.gx-cmenu__group--prefs {
    margin-bottom: 14px;
}

.gx-cmenu__row--theme {
    cursor: default;
}

.gx-cmenu__row--pref {
    cursor: default;
}

.gx-cmenu__row--theme .gx-cmenu__row-ico--theme,
.gx-cmenu__row--pref .gx-cmenu__row-ico--pref {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.gx-cmenu__row--theme .gx-cmenu__row-ico--theme {
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    color: var(--gx-accent, #f97316);
}

.gx-cmenu__row--pref .gx-cmenu__row-ico--flames {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #ea580c;
}

.gx-cmenu__row--pref .gx-cmenu__row-ico--drift {
    background: linear-gradient(135deg, #eff6ff, #e0f2fe);
    color: #2563eb;
}

.gx-cmenu__row--pref .gx-cmenu__row-ico--motion {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    color: #7c3aed;
}

[data-theme="dark"] .gx-cmenu__row--theme .gx-cmenu__row-ico--theme {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(30, 41, 59, 0.9));
    color: #fdba74;
}

[data-theme="dark"] .gx-cmenu__row--pref .gx-cmenu__row-ico--flames {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(30, 41, 59, 0.85));
    color: #fdba74;
}

[data-theme="dark"] .gx-cmenu__row--pref .gx-cmenu__row-ico--drift {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(30, 41, 59, 0.85));
    color: #93c5fd;
}

[data-theme="dark"] .gx-cmenu__row--pref .gx-cmenu__row-ico--motion {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(30, 41, 59, 0.85));
    color: #c4b5fd;
}

.gx-switch--menu {
    flex-shrink: 0;
}

.gx-cmenu__group--prefs .gx-cmenu__row:active {
    background: transparent;
}

[data-theme="dark"] .gx-cmenu--visitor .gx-cmenu__promo--livreur,
[data-theme="dark"] .gx-cmenu--visitor .gx-cmenu__promo--depot {
    background: var(--gx-surface);
    border-color: var(--gx-border);
}

[data-theme="dark"] .gx-cmenu--visitor .gx-cmenu__vitrine {
    background: var(--gx-surface);
    border-color: var(--gx-border);
}

@media (prefers-reduced-motion: reduce) {
    .gx-cmenu--client .gx-cmenu__profile,
    .gx-cmenu--client .gx-cmenu__shortcuts,
    .gx-cmenu--client .gx-cmenu__command,
    .gx-cmenu--client .gx-cmenu__section-label,
    .gx-cmenu--client .gx-cmenu__group,
    .gx-cmenu--client .gx-cmenu__promo,
    .gx-cmenu--client .gx-cmenu__logout,
    .gx-cmenu--client .gx-cmenu__promo-glow,
    .gx-cmenu--client .gx-cmenu__promo--spotlight::after {
        animation: none;
    }
}

