/**
 * GazExpress — canvas WhatsApp + panneaux glass perlés + motion.
 * Chargé en fin de cascade (après les CSS de page) pour gagner sur #fff / transparent.
 */

:root {
    --gx-app-bg-image: url("../images/bg/app-canvas.jpg");
    /* Verre perlé : blanc → bleu froid → crème (accorde le canvas bleu/orange) */
    --gx-glass: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.88) 0%,
        rgba(236, 244, 255, 0.78) 48%,
        rgba(255, 248, 240, 0.74) 100%
    );
    --gx-glass-strong: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.94) 0%,
        rgba(242, 247, 255, 0.88) 55%,
        rgba(255, 250, 244, 0.86) 100%
    );
    --gx-glass-soft: linear-gradient(
        160deg,
        rgba(255, 247, 237, 0.72) 0%,
        rgba(255, 255, 255, 0.62) 50%,
        rgba(236, 244, 255, 0.68) 100%
    );
    --gx-glass-tint: rgba(255, 255, 255, 0.72);
    --gx-glass-border: rgba(255, 255, 255, 0.92);
    --gx-glass-border-ink: rgba(29, 78, 216, 0.14);
    --gx-glass-border-accent: rgba(249, 115, 22, 0.38);
    --gx-glass-shadow:
        0 14px 36px rgba(13, 27, 42, 0.09),
        0 2px 0 rgba(255, 255, 255, 0.95) inset,
        0 -1px 0 rgba(29, 78, 216, 0.04) inset;
    --gx-glass-blur: blur(20px) saturate(1.45);
    --gx-glass-radius: 22px;
    --gx-glass-fallback: rgba(255, 255, 255, 0.7);
    --gx-glass-strong-fallback: rgba(255, 255, 255, 0.86);
    --gx-glass-chip-fallback: rgba(255, 255, 255, 0.86);
}

[data-theme="dark"] {
    --gx-glass: linear-gradient(
        155deg,
        rgba(30, 41, 58, 0.94) 0%,
        rgba(19, 28, 43, 0.9) 48%,
        rgba(24, 33, 50, 0.92) 100%
    );
    --gx-glass-strong: linear-gradient(
        155deg,
        rgba(36, 48, 68, 0.96) 0%,
        rgba(22, 32, 48, 0.94) 55%,
        rgba(28, 38, 56, 0.95) 100%
    );
    --gx-glass-soft: linear-gradient(
        160deg,
        rgba(249, 115, 22, 0.12) 0%,
        rgba(19, 28, 43, 0.9) 52%,
        rgba(22, 32, 48, 0.88) 100%
    );
    --gx-glass-tint: rgba(19, 28, 43, 0.9);
    --gx-glass-fallback: rgba(19, 28, 43, 0.88);
    --gx-glass-strong-fallback: rgba(27, 38, 56, 0.92);
    --gx-glass-chip-fallback: rgba(32, 44, 64, 0.9);
    --gx-glass-border: rgba(56, 72, 96, 0.55);
    --gx-glass-border-ink: rgba(38, 50, 71, 0.85);
    --gx-glass-border-accent: rgba(249, 115, 22, 0.42);
    --gx-glass-shadow:
        0 14px 36px rgba(0, 0, 0, 0.42),
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 -1px 0 rgba(0, 0, 0, 0.2) inset;
    --gx-glass-blur: blur(20px) saturate(1.25);
}

/* ——— Canvas pleine page ——— */
body.gx-public-body,
body.gx-client-body,
body.gx-ash-body,
body.vy-body,
body.gxa-body,
body.gx-page-error {
    background-color: #e8eef8 !important;
    background-image:
        linear-gradient(
            168deg,
            rgba(255, 255, 255, 0.28) 0%,
            rgba(232, 240, 254, 0.12) 40%,
            rgba(255, 247, 237, 0.18) 100%
        ),
        var(--gx-app-bg-image) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    --gx-bg: transparent;
    --gx-surface: var(--gx-glass-tint);
    --gx-card-group: rgba(255, 248, 240, 0.55);
    --gx-border: var(--gx-glass-border-ink);
}

@media (max-width: 991.98px) {
    body.gx-public-body,
    body.gx-client-body,
    body.gx-ash-body,
    body.vy-body,
    body.gxa-body,
body.gx-page-error {
        background-attachment: scroll !important;
    }
}

/* Lueur animée (bleu / orange du canvas) */
body.gx-public-body::before,
body.gx-client-body::before,
body.gx-ash-body::before,
body.vy-body::before,
body.gxa-body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 42% 34% at 10% 12%, rgba(37, 99, 235, 0.18), transparent 70%),
        radial-gradient(ellipse 38% 32% at 92% 88%, rgba(249, 115, 22, 0.2), transparent 68%),
        radial-gradient(ellipse 28% 24% at 78% 8%, rgba(251, 146, 60, 0.12), transparent 70%),
        radial-gradient(ellipse 30% 22% at 18% 78%, rgba(59, 130, 246, 0.1), transparent 72%);
    animation: gx-app-glow 16s ease-in-out infinite alternate;
}

/* Points + capsules flottantes (écho du canvas) */
body.gx-public-body::after,
body.gx-client-body::after,
body.gx-ash-body::after,
body.vy-body::after,
body.gxa-body::after {
    content: '';
    position: fixed;
    width: 56px;
    height: 18px;
    right: 11%;
    top: 18%;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        -36vw 42vh 0 -4px rgba(249, 115, 22, 0.55),
        22vw 52vh 0 -6px rgba(37, 99, 235, 0.45),
        -12vw 68vh 0 -5px rgba(251, 146, 60, 0.4),
        8vw 28vh 0 2px rgba(29, 78, 216, 0.28),
        -48vw 18vh 0 1px rgba(249, 115, 22, 0.35);
    animation: gx-app-float 14s ease-in-out infinite alternate;
    opacity: 0.85;
}

@keyframes gx-app-glow {
    from { opacity: 0.7; transform: scale(1); }
    to { opacity: 1; transform: scale(1.05); }
}

@keyframes gx-app-float {
    from { transform: translate(0, 0) rotate(-6deg); }
    to { transform: translate(-16px, 22px) rotate(4deg); }
}

/* ——— Confettis / pétales flottants (injectés par gx-app-motion.js) ——— */
.gx-bg-drift {
    position: fixed;
    inset: 0;
    pointer-events: none !important;
    z-index: 50;
    overflow: hidden;
}

/* ——— Flammes GazExpress (décoratif, ne bloque jamais les clics) ——— */
.gx-bg-flames {
    position: fixed;
    inset: 0;
    pointer-events: none !important;
    z-index: 50;
    overflow: hidden;
}

.gx-bg-flame {
    position: absolute;
    width: var(--gx-flame-size, 34px);
    height: var(--gx-flame-size, 34px);
    opacity: 0;
    background: url('../images/brand/flame.png') center / contain no-repeat;
    will-change: transform, opacity;
    pointer-events: none;
    transform: translateZ(0);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.gx-bg-flame--sm {
    filter: drop-shadow(0 1px 6px rgba(249, 115, 22, 0.15));
}

.gx-bg-flame--md {
    filter: drop-shadow(0 2px 10px rgba(249, 115, 22, 0.18));
}

.gx-bg-flame--lg {
    filter: drop-shadow(0 3px 14px rgba(249, 115, 22, 0.2));
}

.gx-bg-flame--xl {
    filter: drop-shadow(0 4px 18px rgba(249, 115, 22, 0.22));
}

/* Gauche → droite */
.gx-bg-flame--lr {
    top: var(--gx-flame-pos, 50%);
    left: -10%;
    animation-name: gx-flame-lr;
}

/* Droite → gauche */
.gx-bg-flame--rl {
    top: var(--gx-flame-pos, 50%);
    right: -10%;
    left: auto;
    animation-name: gx-flame-rl;
}

/* Haut → bas */
.gx-bg-flame--tb {
    left: var(--gx-flame-pos, 50%);
    top: -10%;
    animation-name: gx-flame-tb;
}

/* Bas → haut */
.gx-bg-flame--bt {
    left: var(--gx-flame-pos, 50%);
    bottom: -10%;
    top: auto;
    animation-name: gx-flame-bt;
}

@keyframes gx-flame-lr {
    0%   { transform: translate3d(-6vw, 0, 0) rotate(var(--gx-flame-rot, -8deg)) scale(0.82); opacity: 0; }
    7%   { opacity: var(--gx-flame-opacity, 0.14); }
    93%  { opacity: var(--gx-flame-opacity, 0.14); }
    100% { transform: translate3d(106vw, 0, 0) rotate(calc(var(--gx-flame-rot, -8deg) * -1)) scale(1); opacity: 0; }
}

@keyframes gx-flame-rl {
    0%   { transform: translate3d(6vw, 0, 0) rotate(var(--gx-flame-rot, 8deg)) scale(0.82); opacity: 0; }
    7%   { opacity: var(--gx-flame-opacity, 0.14); }
    93%  { opacity: var(--gx-flame-opacity, 0.14); }
    100% { transform: translate3d(-106vw, 0, 0) rotate(calc(var(--gx-flame-rot, 8deg) * -1)) scale(1); opacity: 0; }
}

@keyframes gx-flame-tb {
    0%   { transform: translate3d(0, -6vh, 0) rotate(var(--gx-flame-rot, -6deg)) scale(0.82); opacity: 0; }
    7%   { opacity: var(--gx-flame-opacity, 0.14); }
    93%  { opacity: var(--gx-flame-opacity, 0.14); }
    100% { transform: translate3d(0, 106vh, 0) rotate(calc(var(--gx-flame-rot, -6deg) * -1)) scale(1); opacity: 0; }
}

@keyframes gx-flame-bt {
    0%   { transform: translate3d(0, 6vh, 0) rotate(var(--gx-flame-rot, 6deg)) scale(0.82); opacity: 0; }
    7%   { opacity: var(--gx-flame-opacity, 0.14); }
    93%  { opacity: var(--gx-flame-opacity, 0.14); }
    100% { transform: translate3d(0, -106vh, 0) rotate(calc(var(--gx-flame-rot, 6deg) * -1)) scale(1); opacity: 0; }
}

@media (min-width: 992px) {
    .gx-bg-flame--sm {
        filter: drop-shadow(0 2px 8px rgba(249, 115, 22, 0.13));
    }

    .gx-bg-flame--md {
        filter: drop-shadow(0 3px 11px rgba(249, 115, 22, 0.15));
    }

    .gx-bg-flame--lg {
        filter: drop-shadow(0 4px 14px rgba(249, 115, 22, 0.17));
    }

    .gx-bg-flame--xl {
        filter: drop-shadow(0 5px 18px rgba(249, 115, 22, 0.19));
    }
}

.gx-bg-drift__bit {
    position: absolute;
    top: -12%;
    opacity: 0.55;
    transform: translate3d(0, 0, 0) scale(var(--gx-drift-scale, 1));
    animation-name: gx-bg-drift-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform, opacity;
}

.gx-bg-drift__bit--petal {
    width: 14px;
    height: 10px;
    border-radius: 60% 40% 60% 40%;
    background: linear-gradient(135deg, #fb923c, #f97316);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

.gx-bg-drift__bit--dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3b82f6;
}

.gx-bg-drift__bit--paper {
    width: 11px;
    height: 14px;
    border-radius: 2px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(226, 232, 240, 0.85));
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 2px 6px rgba(13, 27, 42, 0.08);
}

.gx-bg-drift__bit--spark {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fdba74;
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.55);
}

@keyframes gx-bg-drift-fall {
    0% {
        transform: translate3d(0, -10vh, 0) rotate(0deg) scale(var(--gx-drift-scale, 1));
        opacity: 0;
    }
    8% { opacity: 0.6; }
    50% {
        transform: translate3d(var(--gx-drift-x, 20px), 50vh, 0) rotate(var(--gx-drift-rot, 120deg)) scale(var(--gx-drift-scale, 1));
        opacity: 0.5;
    }
    100% {
        transform: translate3d(calc(var(--gx-drift-x, 20px) * -0.6), 110vh, 0) rotate(calc(var(--gx-drift-rot, 120deg) * 1.6)) scale(var(--gx-drift-scale, 1));
        opacity: 0;
    }
}

[data-theme="dark"] .gx-bg-drift,
.gx-reduced-motion .gx-bg-drift,
html.gx-pref-drift-off .gx-bg-drift {
    display: none !important;
}

html.gx-pref-flames-off .gx-bg-flames {
    display: none !important;
}

[data-theme="dark"] .gx-bg-flames {
    opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
    .gx-bg-drift { display: none !important; }
}

.gx-public-app,
.gxa-shell,
.gx-shell,
.gx-ash-app,
.gx-ash,
.vy-shell,
[data-vy-shell] {
    position: relative;
    z-index: 2;
}

/* ——— Panneaux glass (fond plein, lisible, canvas visible) ——— */
.gx-glass,
.gx-chercher__card,
.gx-chercher__search-dock,
.gx-chercher__empty,
.gx-chercher__pane-idle,
.gx-chercher__addr,
.gx-hub__where,
.gx-hub__places,
.gx-hub__banniere,
.gx-hub__active-pill,
.gx-menu-card:not(.gx-menu-card--promo),
.gx-adresse-card,
.gx-adresse__panel,
.gx-pd__hero,
.gx-pd__summary,
.gx-pd__variant,
.gx-cl-card,
.gx-card,
.gx-v2-card,
.gx-ash-card,
.gx-ash-panel,
.gx-depot-card,
.gx-cmenu__group,
.gx-cmenu__feature,
.gx-cmenu__promo,
.gx-cmenu__profile,
.gx-cmenu__sc,
.gx-pg__card,
.gx-params__group,
.gx-recap__card,
.gxa-card,
.gxa-google,
.gx-recap__panel,
.gx-depots__journey,
.gx-depots__facts,
.gx-depots__summary-ico,
.gx-pay__row,
.gx-contact__row,
.vy-cities-teaser__inner,
.vy-zone__glass,
.vy-hub-cities__card,
.vy-hub-cities__foot,
.vy-info__panel,
.gx-depots__panel,
.gx-how__step,
.gx-how__hero,
.gx-track__point,
.gx-set2__card,
.gx-cmd2__card,
.gx-cmd2__search,
.gx-cmd2__sort,
.gx-cmd2__empty,
.gx-addr2__card,
.gx-addr2__empty,
.gx-addr2__sheet,
.gx-support2__form,
.gx-support2__urgence {
    background: var(--gx-glass) !important;
    background-color: var(--gx-glass-fallback) !important;
    border: 1px solid var(--gx-glass-border) !important;
    box-shadow: var(--gx-glass-shadow) !important;
    backdrop-filter: var(--gx-glass-blur) !important;
    -webkit-backdrop-filter: var(--gx-glass-blur) !important;
}

.gx-chercher__back,
.gxa-back,
.gx-chercher__chip,
.gx-chercher__clear,
.gx-chercher__field,
.gx-hub__place-map,
.gx-menu-shortcut,
.gx-menu-link-icon,
.gx-menu-promo__chev,
.gx-depots__back {
    background: var(--gx-glass-strong) !important;
    background-color: var(--gx-glass-strong-fallback) !important;
    border: 1px solid var(--gx-glass-border) !important;
    box-shadow: 0 8px 22px rgba(13, 27, 42, 0.07) !important;
    backdrop-filter: blur(14px) saturate(1.3) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.3) !important;
}

.gx-chercher__field {
    border-color: var(--gx-glass-border-accent) !important;
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.14), 0 1px 0 rgba(255, 255, 255, 0.95) inset !important;
}

[data-theme="dark"] .gx-chercher__field {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), 0 1px 0 rgba(255, 255, 255, 0.04) inset !important;
}

[data-theme="dark"] .gx-chercher__back,
[data-theme="dark"] .gxa-back,
[data-theme="dark"] .gx-chercher__chip,
[data-theme="dark"] .gx-chercher__clear,
[data-theme="dark"] .gx-hub__place-map,
[data-theme="dark"] .gx-menu-shortcut,
[data-theme="dark"] .gx-menu-link-icon,
[data-theme="dark"] .gx-depots__back {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28) !important;
}

.gx-chercher__card.is-selected,
.gx-pd__variant.is-active,
.gx-hub__place.is-selected {
    background: linear-gradient(145deg, rgba(255, 247, 237, 0.95), rgba(255, 255, 255, 0.82)) !important;
    border-color: var(--gx-glass-border-accent) !important;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2), var(--gx-glass-shadow) !important;
}

[data-theme="dark"] .gx-chercher__card.is-selected,
[data-theme="dark"] .gx-pd__variant.is-active,
[data-theme="dark"] .gx-hub__place.is-selected {
    background: linear-gradient(145deg, rgba(249, 115, 22, 0.16), rgba(19, 28, 43, 0.92)) !important;
    background-color: rgba(24, 33, 50, 0.92) !important;
    border-color: var(--gx-glass-border-accent) !important;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.22), var(--gx-glass-shadow) !important;
}

/* Desktop chercher : une seule vitre catalogue + cartes légères (moins de divisions) */
@media (min-width: 992px) {
    .gx-chercher__catalog,
    .gx-chercher__pane {
        background: var(--gx-glass) !important;
        background-color: var(--gx-glass-fallback) !important;
        border: 1px solid var(--gx-glass-border) !important;
        box-shadow: var(--gx-glass-shadow) !important;
        backdrop-filter: var(--gx-glass-blur) !important;
        -webkit-backdrop-filter: var(--gx-glass-blur) !important;
    }

    .gx-chercher__card {
        background: var(--gx-glass-soft) !important;
        background-color: var(--gx-glass-chip-fallback) !important;
        border: 1px solid var(--gx-glass-border-ink) !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        animation: none !important;
    }

    .gx-chercher__pane-idle,
    .gx-chercher__empty {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

.gx-chercher__chip.is-active {
    background: linear-gradient(135deg, #fb923c, #f97316) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35) !important;
}

.gx-chercher__addr,
.gx-hub__banniere {
    background: var(--gx-glass-soft) !important;
    border-color: var(--gx-glass-border-accent) !important;
}

/* Headers vitreux */
.gx-public-header,
.gx-clh,
.gx-ash-topbar,
.gx-ash-head {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(236, 244, 255, 0.62)) !important;
    border-bottom: 1px solid var(--gx-glass-border) !important;
    box-shadow: 0 10px 28px rgba(13, 27, 42, 0.05) !important;
    backdrop-filter: blur(18px) saturate(1.3) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.3) !important;
}

[data-theme="dark"] .gx-public-header,
[data-theme="dark"] .gx-clh,
[data-theme="dark"] .gx-ash-topbar,
[data-theme="dark"] .gx-ash-head {
    background: linear-gradient(180deg, rgba(28, 38, 56, 0.94), rgba(19, 28, 43, 0.88)) !important;
    border-bottom-color: var(--gx-glass-border) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32) !important;
}

.gx-public-main--commander,
.gx-public-main,
.gx-content,
.gx-ash-main {
    background: transparent !important;
    box-shadow: none !important;
}

/* Promos photo : rim léger seulement (ne pas écraser l’image) */
.gx-hub__pcard,
.gx-menu-promo {
    box-shadow: 0 16px 40px rgba(13, 27, 42, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

/* ——— Motion : desktop + mobile ——— */
/* Motion catalogue : révélation au scroll (pas d'animation globale au chargement) */
.gx-chercher__search-dock,
.gx-hub__where,
.gx-hub__places,
.gx-menu-card:not(.gx-menu-card--promo),
.gx-menu-promo,
.gx-cmenu__promo,
.gx-hub__pcard,
.gx-cl-card,
.gx-card,
.gx-adresse-card,
.gx-pd__hero,
.gx-pd__summary {
    animation: gx-app-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.28s ease,
        border-color 0.22s ease;
}

.gx-hub__where { animation-delay: 0.06s; }
.gx-hub__places { animation-delay: 0.12s; }
.gx-hub__pcard { animation-delay: 0.16s; }
.gx-menu-promo { animation-delay: 0.08s; }

@keyframes gx-app-rise {
    from { opacity: 0; transform: translateY(16px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (hover: hover) and (min-width: 992px) {
    .gx-chercher__card:hover,
    .gx-menu-card:not(.gx-menu-card--promo):hover,
    .gx-cl-card:hover,
    .gx-card:hover,
    .gx-hub__where:hover,
    .gx-adresse-card:hover {
        transform: translateY(-5px);
        box-shadow:
            0 22px 48px rgba(13, 27, 42, 0.14),
            0 1px 0 rgba(255, 255, 255, 0.98) inset !important;
        border-color: rgba(249, 115, 22, 0.32) !important;
    }

    .gx-hub__pcard:hover,
    .gx-menu-promo:hover {
        transform: translateY(-5px) scale(1.01);
        box-shadow: 0 24px 52px rgba(13, 27, 42, 0.2) !important;
    }

    .gx-chercher__field:focus-within {
        border-color: rgba(249, 115, 22, 0.58) !important;
        box-shadow: 0 10px 28px rgba(249, 115, 22, 0.16) !important;
    }
}

/* Feedback tactile mobile */
@media (max-width: 991.98px) {
    .gx-chercher__card:active,
    .gx-hub__where:active,
    .gx-hub__place:active,
    .gx-menu-card:active,
    .gx-menu-promo:active,
    .gx-cl-card:active,
    .gx-card:active {
        transform: scale(0.978);
        transition-duration: 0.12s;
    }

    .gx-chercher__search-dock,
    .gx-hub__where,
    .gx-hub__places {
        animation-duration: 0.45s;
    }
}

/* Splash : fond dégradé géré dans gx-loader.css */
.gx-splash {
    z-index: 9000;
}

/* Dark : ne pas forcer le verre clair — fond nuit + flammes visibles */
[data-theme="dark"] body.gx-public-body,
[data-theme="dark"] body.gx-client-body,
[data-theme="dark"] body.gx-ash-body,
[data-theme="dark"] body.gxa-body,
[data-theme="dark"] body.gx-pin-v2 {
    background-color: #0b1220 !important;
    background-image:
        linear-gradient(
            168deg,
            rgba(11, 18, 32, 0.92) 0%,
            rgba(15, 23, 42, 0.88) 45%,
            rgba(28, 18, 10, 0.85) 100%
        ),
        var(--gx-app-bg-image) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    --gx-surface: var(--gx-glass-tint);
    --gx-card-group: rgba(27, 38, 56, 0.78);
    --gx-border: var(--gx-glass-border-ink);
}

[data-theme="dark"] body.gx-public-body::before,
[data-theme="dark"] body.gx-client-body::before,
[data-theme="dark"] body.gx-ash-body::before,
[data-theme="dark"] body.gxa-body::before {
    display: block !important;
    opacity: 0.45;
    background:
        radial-gradient(ellipse 42% 34% at 10% 12%, rgba(37, 99, 235, 0.14), transparent 70%),
        radial-gradient(ellipse 38% 32% at 92% 88%, rgba(249, 115, 22, 0.22), transparent 68%),
        radial-gradient(ellipse 28% 24% at 78% 8%, rgba(251, 146, 60, 0.14), transparent 70%);
}

[data-theme="dark"] body.gx-public-body::after,
[data-theme="dark"] body.gx-client-body::after,
[data-theme="dark"] body.gx-ash-body::after,
[data-theme="dark"] body.gxa-body::after {
    display: none !important;
}

[data-theme="dark"] .gx-bg-flames {
    opacity: 0.78;
}

[data-theme="dark"] .gx-bg-flame--sm,
[data-theme="dark"] .gx-bg-flame--md,
[data-theme="dark"] .gx-bg-flame--lg,
[data-theme="dark"] .gx-bg-flame--xl {
    filter: drop-shadow(0 2px 12px rgba(249, 115, 22, 0.35));
}

[data-theme="dark"] .gx-bg-flame--sm,
[data-theme="dark"] .gx-bg-flame--md,
[data-theme="dark"] .gx-bg-flame--lg,
[data-theme="dark"] .gx-bg-flame--xl {
    filter: drop-shadow(0 2px 12px rgba(249, 115, 22, 0.35));
}

[data-theme="dark"] .gx-cmenu__row:active,
[data-theme="dark"] .gx-cmenu__group--prefs .gx-cmenu__row:active {
    background: rgba(255, 255, 255, 0.04);
}

html.gx-pref-motion-off .gx-auto-reveal,
html.gx-pref-motion-off .gx-chercher__search-dock,
html.gx-pref-motion-off .gx-hub__where,
html.gx-pref-motion-off .gx-hub__places,
html.gx-pref-motion-off .gx-menu-card,
html.gx-pref-motion-off .gx-menu-promo,
html.gx-pref-motion-off .gx-cmenu__promo,
html.gx-pref-motion-off .gx-hub__pcard,
html.gx-pref-motion-off .gx-cl-card,
html.gx-pref-motion-off .gx-card,
html.gx-pref-motion-off .gx-adresse-card,
html.gx-pref-motion-off .gx-pd__hero,
html.gx-pref-motion-off .gx-pd__summary,
html.gx-reduced-motion .gx-auto-reveal,
html.gx-reduced-motion .gx-chercher__search-dock,
html.gx-reduced-motion .gx-hub__where,
html.gx-reduced-motion .gx-hub__places,
html.gx-reduced-motion .gx-menu-card,
html.gx-reduced-motion .gx-menu-promo,
html.gx-reduced-motion .gx-cmenu__promo,
html.gx-reduced-motion .gx-hub__pcard,
html.gx-reduced-motion .gx-cl-card,
html.gx-reduced-motion .gx-card,
html.gx-reduced-motion .gx-adresse-card,
html.gx-reduced-motion .gx-pd__hero,
html.gx-reduced-motion .gx-pd__summary {
    animation: none !important;
    transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
    body.gx-public-body::before,
    body.gx-client-body::before,
    body.gx-ash-body::before,
    body.vy-body::before,
    body.gx-public-body::after,
    body.gx-client-body::after,
    body.gx-ash-body::after,
    body.vy-body::after,
    .gx-chercher__search-dock,
    .gx-hub__board,
    .gx-chercher__card,
    .gx-hub__where,
    .gx-hub__places,
    .gx-menu-card,
    .gx-menu-promo,
    .gx-cl-card,
    .gx-card {
        animation: none !important;
    }

    .gx-chercher__card:hover,
    .gx-menu-card:hover,
    .gx-cl-card:hover,
    .gx-card:hover,
    .gx-hub__where:hover {
        transform: none !important;
    }
}

/* Pages auth legacy / PIN / état compte : canvas unifié à la place des fonds dédiés */
body.gxa-body.auth-body .auth-page {
    background-image: none !important;
    background-color: transparent !important;
}

body.gxa-body.gx-pin-v2 {
    background: transparent !important;
}

body.gxa-body.gx-state-page {
    background: transparent !important;
}

body.gxa-body.gx-state-page .gx-state-shell {
    position: relative;
    z-index: 2;
}
