/* ——— Invitation (modal léger) ——— */
/* Splash retiré : le guide démarre directement via guide.js → /tour/demarrer */

/* ——— Coachmarks sur les vrais écrans ——— */
body.gx-tour-on { scroll-behavior: smooth; }

/* Pas de backdrop-filter : ça floute toute la page, y compris la zone surlignée. */
.gx-tour-spot {
    position: fixed;
    z-index: 8999;
    border-radius: 16px;
    box-shadow: 0 0 0 9999px rgba(13, 27, 42, 0.68);
    background: transparent;
    pointer-events: none;
    transition: top 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                left 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.gx-tour-ring {
    position: fixed;
    z-index: 9000;
    border-radius: 18px;
    border: 2px solid var(--gx-accent, #f97316);
    pointer-events: none;
    transition: top 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                left 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.gx-tour-ring--pulse {
    animation: gx-tour-ring-pulse 1.8s ease-in-out infinite;
}

@keyframes gx-tour-ring-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.45); }
    50% { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
}

.gx-tour-target {
    position: relative;
    z-index: 9001 !important;
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.gx-tour-arrow {
    position: fixed;
    z-index: 9002;
    width: 0;
    height: 0;
    pointer-events: none;
    transition: top 0.3s ease, left 0.3s ease;
}

.gx-tour-arrow--up {
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 12px solid #fff;
    filter: drop-shadow(0 -2px 4px rgba(13, 27, 42, 0.12));
}

.gx-tour-arrow--down {
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 12px solid #fff;
    filter: drop-shadow(0 2px 4px rgba(13, 27, 42, 0.12));
}

.gx-tour-pop {
    position: fixed;
    z-index: 9003;
    max-width: 360px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(13, 27, 42, 0.28);
    padding: 16px 16px 14px;
    transition: top 0.35s cubic-bezier(0.22, 1, 0.36, 1), left 0.35s ease;
    border: 1px solid rgba(255, 255, 255, 0.95);
}

.gx-tour-pop--sheet {
    border-radius: 22px 22px 18px 18px;
    max-width: min(420px, calc(100vw - 24px)) !important;
    left: 12px !important;
    right: 12px;
    width: auto !important;
    margin: 0 auto;
}

.gx-tour-pop__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.gx-tour-pop__step {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gx-accent, #f97316);
}

.gx-tour-pop__title {
    margin: 0 0 6px;
    font-family: var(--gx-font-display, 'Poppins', sans-serif);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.25;
    color: var(--gx-night, #0d1b2a);
}

.gx-tour-pop__text {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--gx-text-muted, #475569);
    line-height: 1.5;
}

.gx-tour-pop__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.gx-tour-pop__dots {
    display: none;
}

.gx-tour-pop__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e2e8f0;
}

.gx-tour-pop__dot.is-on {
    background: var(--gx-accent, #f97316);
    width: 18px;
    border-radius: 4px;
}

.gx-tour-pop__skip {
    background: none;
    border: 0;
    color: var(--gx-text-muted, #94a3b8);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 4px;
}

.gx-tour-pop__next {
    background: var(--gx-accent, #f97316);
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    min-height: 42px;
}

.gx-tour-pop__next:hover { background: var(--gx-accent-hover, #ea580c); }

.gx-tour-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9004;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gx-accent, #f97316);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    padding: calc(6px + env(safe-area-inset-top, 0px)) 12px 6px;
    letter-spacing: 0.02em;
}

.gx-tour-banner__quit {
    background: rgba(255, 255, 255, 0.22);
    border: 0;
    color: #fff;
    border-radius: 999px;
    padding: 3px 12px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
}

@media (min-width: 768px) {
    .gx-tour-pop__dots {
        display: flex;
        gap: 5px;
        flex: 1;
        justify-content: flex-end;
        margin-right: 8px;
    }

    .gx-tour-pop__nav {
        justify-content: flex-end;
    }

    .gx-tour-pop__skip {
        margin-right: auto;
    }
}

@media (max-width: 767px) {
    .gx-tour-pop {
        width: calc(100vw - 24px) !important;
        max-width: none !important;
        left: 12px !important;
    }

    .gx-tour-arrow { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    .gx-tour-ring--pulse,
    .gx-tour-spot,
    .gx-tour-pop { animation: none !important; transition: none !important; }
}
