/* Onboarding tour — v0.20.3 */

.lcc-tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    pointer-events: auto;
    animation: lcc-tour-fade-in 0.32s ease;
}
.lcc-tour-overlay--no-target {
    background: rgba(15, 30, 61, 0.78);
}

@keyframes lcc-tour-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Spotlight : trou autour de la cible, le reste de l'écran assombri
   via un énorme box-shadow rgba */
.lcc-tour-spotlight {
    position: fixed;
    z-index: 99999;
    border-radius: 12px;
    box-shadow:
        0 0 0 9999px rgba(15, 30, 61, 0.78),
        0 0 0 3px #D4B16A,
        0 0 30px rgba(212, 177, 106, 0.5);
    pointer-events: none;
    transition: all 0.32s ease;
}

/* Tooltip */
.lcc-tour-tooltip {
    position: fixed;
    z-index: 100000;
    background: #FAF7F0;
    color: #1A2848;
    border: 1px solid rgba(212, 177, 106, 0.4);
    border-radius: 14px;
    padding: 22px 24px 18px;
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.35);
    min-width: 280px;
    font-family: Georgia, serif;
    animation: lcc-tour-tooltip-in 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lcc-tour-tooltip-in {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.lcc-tour-tooltip[style*="transform: translate(-50%, -50%)"] {
    animation-name: lcc-tour-tooltip-in-center;
}
@keyframes lcc-tour-tooltip-in-center {
    from { opacity: 0; transform: translate(-50%, -45%) scale(0.96); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.lcc-tour-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8B6914;
    font-weight: 600;
    margin-bottom: 6px;
}
.lcc-tour-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    color: #0F1E3D;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 10px;
}
.lcc-tour-body {
    font-size: 14.5px;
    line-height: 1.55;
    color: #3A4865;
    margin-bottom: 18px;
}
.lcc-tour-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
}
.lcc-tour-actions-right {
    display: flex;
    gap: 8px;
    align-items: center;
}
.lcc-tour-skip,
.lcc-tour-prev,
.lcc-tour-next {
    font-family: inherit;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-block;
    transition: all 0.15s ease;
}
.lcc-tour-skip {
    background: transparent;
    color: #6B7593;
    border-color: transparent;
}
.lcc-tour-skip:hover { color: #1A2848; background: rgba(15, 30, 61, 0.05); }
.lcc-tour-prev {
    background: transparent;
    color: #1A2848;
    border-color: rgba(15, 30, 61, 0.2);
}
.lcc-tour-prev:hover { background: rgba(15, 30, 61, 0.05); border-color: rgba(15, 30, 61, 0.35); }
.lcc-tour-next {
    background: #D4B16A;
    color: #0F1E3D;
    font-weight: 600;
    border-color: #D4B16A;
}
.lcc-tour-next:hover { background: #c69c4a; border-color: #c69c4a; }
.lcc-tour-progress {
    font-size: 11px;
    color: #8B95B0;
    text-align: right;
    margin-top: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Mobile — v0.69
 *
 * Bug v0.20.3 : le JS pose `transform: translate(-50%, -50%)` inline sur la
 * tooltip centrée (étape intro) pour la centrer. En mobile, le CSS force
 * `left: 16px !important`, mais le transform persistait et décalait la
 * tooltip de -50% de sa largeur vers la GAUCHE → tooltip hors-écran.
 *
 * Fix : on override le transform avec `translateY(-50%) !important` pour
 * ne garder que le centrage vertical. Et on remplace l'animation par une
 * version mobile qui ne touche pas au transform (sinon les keyframes
 * écraseraient notre override pendant 0.32s → glitch visuel).
 */
@media (max-width: 600px) {
    .lcc-tour-tooltip {
        max-width: calc(100vw - 32px) !important;
        left: 16px !important;
        right: 16px !important;
        padding: 18px 18px 14px;
        /* Animation mobile : juste fade, pas de transform → évite les conflits
           avec notre override de translateY(-50%) ci-dessous. */
        animation: lcc-tour-tooltip-fade-mobile 0.25s ease !important;
    }
    @keyframes lcc-tour-tooltip-fade-mobile {
        from { opacity: 0; }
        to   { opacity: 1; }
    }
    /* Étape intro (centrée verticalement) : annule le translate horizontal
       du JS, garde seulement le centrage vertical. */
    .lcc-tour-tooltip[style*="translate(-50%, -50%)"] {
        transform: translateY(-50%) !important;
    }
    .lcc-tour-title { font-size: 19px; }
    .lcc-tour-body { font-size: 14px; }
    /* Boutons un peu plus gros pour tactile */
    .lcc-tour-skip,
    .lcc-tour-prev,
    .lcc-tour-next {
        padding: 10px 14px;
        font-size: 13px;
    }
    /* Sur petit écran, les 3 boutons côte-à-côte peuvent déborder.
       On laisse skip à gauche et empile prev/next verticalement si besoin. */
    .lcc-tour-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    .lcc-tour-actions-right {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

/* Très petit écran (iPhone SE et < 380px) : on serre encore */
@media (max-width: 380px) {
    .lcc-tour-tooltip {
        padding: 14px 14px 12px;
    }
    .lcc-tour-title { font-size: 17px; }
    .lcc-tour-body  { font-size: 13.5px; line-height: 1.45; }
    .lcc-tour-skip,
    .lcc-tour-prev,
    .lcc-tour-next {
        padding: 8px 12px;
        font-size: 12.5px;
    }
}
