/* FacilPro — visites guidées (moteur : /js/tours/tour-engine.js) */
.fpt-root { position: fixed; inset: 0; z-index: 10100; pointer-events: none; display: none; font-family: inherit; }
.fpt-root.fpt-open { display: block; }
.fpt-blocker { position: fixed; inset: 0; pointer-events: auto; background: transparent; }
.fpt-spot {
    position: fixed; pointer-events: none; border-radius: 10px; opacity: 0;
    box-shadow: 0 0 0 9999px rgba(10, 30, 40, .62), 0 0 0 3px var(--primary-color, #0fb9b1) inset;
    transition: top .22s ease, left .22s ease, width .22s ease, height .22s ease, opacity .15s;
}
.fpt-root:not(.fpt-on) .fpt-spot { opacity: 0 !important; }
/* Aucune cible : fond assombri simple */
.fpt-pop {
    position: fixed; pointer-events: auto; width: min(380px, calc(100vw - 16px));
    background: #fff; color: #2d3748; border-radius: 14px; padding: 16px 18px 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .28); border-top: 4px solid var(--primary-color, #0fb9b1);
    transition: top .22s ease, left .22s ease, opacity .15s; opacity: 0; font-size: .92rem; line-height: 1.5;
}
.fpt-root.fpt-on .fpt-pop { opacity: 1; }
.fpt-root.fpt-busy .fpt-pop { opacity: 0; }
.fpt-root.fpt-open:not(.fpt-on) .fpt-blocker { background: rgba(10, 30, 40, .35); }
.fpt-pop[data-side="center"] { box-shadow: 0 0 0 9999px rgba(10, 30, 40, .62), 0 12px 40px rgba(0, 0, 0, .28); }
.fpt-x { position: absolute; top: 6px; inset-inline-end: 10px; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: #9aa5b1; cursor: pointer; }
.fpt-x:hover { color: #2d3748; }
.fpt-tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--primary-dark, #0a9e96); font-weight: 600; margin-bottom: 4px; padding-inline-end: 22px; }
.fpt-title { font-weight: 700; margin: 0 0 6px; font-size: 1.05rem; }
.fpt-text { color: #4a5568; }
.fpt-text ul, .fpt-text ol { padding-inline-start: 1.2rem; margin: .4rem 0; }
.fpt-text code { background: #eef7f6; color: #0a7d77; padding: 0 4px; border-radius: 4px; font-size: .85em; }
.fpt-text .fpt-note { background: #fff8e1; border-inline-start: 3px solid #f6ad55; padding: 6px 10px; border-radius: 6px; margin-top: 8px; font-size: .86rem; }
.fpt-text .fpt-tip { background: #e6fffa; border-inline-start: 3px solid #0fb9b1; padding: 6px 10px; border-radius: 6px; margin-top: 8px; font-size: .86rem; }
.fpt-hint { display: none; margin-top: 8px; color: #b7791f; font-weight: 600; font-size: .85rem; }
.fpt-bar { height: 4px; background: #e2e8f0; border-radius: 4px; margin: 12px 0 10px; overflow: hidden; }
.fpt-bar span { display: block; height: 100%; background: var(--primary-color, #0fb9b1); transition: width .25s; }
.fpt-foot { display: flex; align-items: center; gap: 6px; }
.fpt-sp { flex: 1; }
.fpt-btn { border: 1px solid #cbd5e0; background: #fff; color: #2d3748; border-radius: 8px; padding: 5px 12px; font-size: .85rem; cursor: pointer; }
.fpt-btn:hover { background: #f7fafc; }
.fpt-btn.fpt-primary { background: var(--primary-color, #0fb9b1); border-color: var(--primary-color, #0fb9b1); color: #fff; font-weight: 600; }
.fpt-btn.fpt-primary:hover { background: var(--primary-dark, #0a9e96); }
.fpt-btn.fpt-ghost { background: #edf2f7; border-color: #edf2f7; color: #718096; }
.fpt-btn.fpt-link { display: block; width: 100%; text-align: start; margin-bottom: 6px; border-color: var(--primary-color, #0fb9b1); color: var(--primary-dark, #0a9e96); }
.fpt-quit { color: #718096; border-color: transparent; background: transparent; }

/* Bouton « Guide » */
.fpt-launcher {
    display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--primary-color, #0fb9b1);
    background: var(--primary-light, #e0f7f6); color: var(--primary-dark, #0a9e96); border-radius: 20px;
    padding: 4px 12px; font-size: .85rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.fpt-launcher:hover { background: var(--primary-color, #0fb9b1); color: #fff; }
.fpt-launcher.in-navbar { margin-inline-end: 10px; }
.fpt-launcher.floating { position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 1040; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
@media (max-width: 576px) { .fpt-launcher span { display: none; } }

/* Panneau Guide */
.fpt-hub { width: min(420px, 100vw) !important; z-index: 10050; }
.fpt-grp { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #718096; font-weight: 700; margin: 16px 0 8px; }
.fpt-card { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 8px; background: #fff; }
.fpt-card.is-done { background: #f0fff4; border-color: #c6f6d5; }
.fpt-card-n { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--primary-light, #e0f7f6); color: var(--primary-dark, #0a9e96); display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; }
.fpt-card.is-done .fpt-card-n { background: #38a169; color: #fff; }
.fpt-card-b { flex: 1; min-width: 0; }
.fpt-card-t { font-weight: 600; font-size: .9rem; }
.fpt-card-d { font-size: .78rem; color: #718096; }
.fpt-card-m { font-size: .72rem; color: #a0aec0; margin-top: 2px; }

@media print { .fpt-root, .fpt-launcher, .fpt-hub { display: none !important; } }
