/* onboarding.css — Visites guidées (js/tour.js) + checklist « Premiers pas » (js/onboarding.js)
 * Gestion Pro v4.10.23
 * Palette : navy #0b1628 (texte), orange #f47920 (accent). Police : pile existante
 * 'Outfit', system-ui (aucun chargement de police ajouté). Fond blanc : rendu identique
 * sur tous les thèmes. Classes préfixées gp-tour- / gp-onb- : aucune règle globale. */

/* ══════════════════════════════════════════
   MOTEUR DE VISITE
   ══════════════════════════════════════════ */
.gp-tour-root { display: none; position: fixed; inset: 0; font-family: 'Outfit', system-ui, -apple-system, sans-serif; }
.gp-tour-root.gp-tour-open { display: block; }

/* Bloque les clics sur l'appli pendant la visite ; assombrit si pas de cible */
.gp-tour-blocker { position: fixed; inset: 0; background: transparent; transition: background .2s; }
.gp-tour-blocker.gp-tour-dim { background: rgba(11, 22, 40, .62); }

/* Projecteur : l'ombre géante assombrit tout sauf la cible */
.gp-tour-spot {
    display: none; position: fixed; border-radius: 10px; pointer-events: none;
    box-shadow: 0 0 0 200vmax rgba(11, 22, 40, .62), 0 0 0 3px #f47920;
    transition: left .2s ease, top .2s ease, width .2s ease, height .2s ease;
}

.gp-tour-bubble {
    position: fixed; box-sizing: border-box; width: 340px; max-width: calc(100vw - 24px);
    background: #fff; color: #0b1628; border-radius: 14px; padding: 16px 16px 14px;
    box-shadow: 0 18px 40px rgba(11, 22, 40, .35); border-top: 4px solid #f47920;
}
.gp-tour-busy .gp-tour-bubble { opacity: .55; }
.gp-tour-head { display: flex; align-items: center; justify-content: space-between; min-height: 22px; margin-bottom: 4px; }
.gp-tour-count { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6b7280; }
.gp-tour-x { border: none; background: transparent; color: #6b7280; cursor: pointer; padding: 4px; border-radius: 6px; line-height: 0; }
.gp-tour-x:hover { background: #f3f4f6; color: #0b1628; }
.gp-tour-title { font-size: 16px; font-weight: 700; color: #0b1628; margin-bottom: 4px; }
.gp-tour-text { font-size: 14px; line-height: 1.5; color: #374151; }
.gp-tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.gp-tour-nav { display: flex; gap: 8px; margin-left: auto; }
.gp-tour-skip { border: none; background: transparent; color: #6b7280; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 8px 4px; }
.gp-tour-skip:hover { color: #0b1628; text-decoration: underline; }
.gp-tour-prev, .gp-tour-next {
    display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 13px; font-weight: 700;
    border-radius: 9px; padding: 9px 14px; cursor: pointer; min-height: 40px;
}
.gp-tour-prev { background: #fff; color: #0b1628; border: 1px solid #d1d5db; }
.gp-tour-prev:hover { background: #f9fafb; }
.gp-tour-next { background: #f47920; color: #fff; border: 1px solid #f47920; }
.gp-tour-next:hover { background: #dd6812; border-color: #dd6812; }
.gp-tour-next:focus-visible, .gp-tour-prev:focus-visible, .gp-tour-skip:focus-visible, .gp-tour-x:focus-visible {
    outline: 3px solid rgba(244, 121, 32, .45); outline-offset: 2px;
}

/* Mobile : panneau ancré en bas (ou en haut si la cible est basse), safe-area */
.gp-tour-bubble.gp-tour-mobile {
    width: auto; max-width: none; left: 12px !important; right: 12px !important; top: auto !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
}
.gp-tour-bubble.gp-tour-mobile.gp-tour-top {
    bottom: auto !important; top: calc(12px + env(safe-area-inset-top, 0px)) !important;
}
@media (prefers-reduced-motion: reduce) {
    .gp-tour-spot, .gp-tour-blocker { transition: none; }
}

/* ══════════════════════════════════════════
   CHECKLIST « PREMIERS PAS » (Dashboard)
   ══════════════════════════════════════════ */
#onboarding-checklist:empty { display: none; }
.gp-onb-card {
    background: #fff; color: #0b1628; border-radius: 12px; padding: 18px 20px; margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2); font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    border-top: 4px solid #f47920;
}
.gp-onb-head { display: flex; align-items: center; gap: 12px; }
.gp-onb-head-ico { width: 38px; height: 38px; border-radius: 10px; background: #fff3e8; color: #f47920; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gp-onb-titles { flex: 1; min-width: 0; }
.gp-onb-title { font-size: 17px; font-weight: 700; color: #0b1628; }
.gp-onb-sub { font-size: 13px; color: #6b7280; margin-top: 2px; }
.gp-onb-iconbtn { border: 1px solid #e5e7eb; background: #fff; color: #374151; border-radius: 8px; width: 36px; height: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gp-onb-iconbtn:hover { background: #f9fafb; }

.gp-onb-bar { display: block; height: 8px; border-radius: 8px; background: #f1f5f9; overflow: hidden; margin: 14px 0 6px; }
.gp-onb-bar > span { display: block; height: 100%; background: #f47920; border-radius: 8px; transition: width .4s ease; }

.gp-onb-list { list-style: none; margin: 8px 0 0; padding: 0; }
.gp-onb-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid #f1f5f9; }
.gp-onb-item:first-child { border-top: none; }
.gp-onb-check { color: #cbd5e1; line-height: 0; flex-shrink: 0; }
.gp-onb-item.is-done .gp-onb-check { color: #16a34a; }
.gp-onb-body { flex: 1; min-width: 0; }
.gp-onb-label { font-size: 14px; font-weight: 600; color: #0b1628; }
.gp-onb-item.is-done .gp-onb-label { color: #6b7280; text-decoration: line-through; text-decoration-color: #cbd5e1; }
.gp-onb-tag { display: inline-block; margin-top: 3px; font-size: 11px; font-weight: 600; color: #9a4a0b; background: #fff3e8; padding: 1px 7px; border-radius: 6px; }
.gp-onb-item.is-skipped .gp-onb-tag { color: #4b5563; background: #f3f4f6; }
.gp-onb-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.gp-onb-donetxt { font-size: 12px; font-weight: 700; color: #16a34a; }
.gp-onb-btn {
    display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 13px; font-weight: 700;
    background: #f47920; color: #fff; border: none; border-radius: 8px; padding: 8px 12px; cursor: pointer; min-height: 36px;
}
.gp-onb-btn:hover { background: #dd6812; }
.gp-onb-btn-ghost { font: inherit; font-size: 13px; font-weight: 600; background: #fff; color: #374151; border: 1px solid #d1d5db; border-radius: 8px; padding: 7px 10px; cursor: pointer; min-height: 36px; }
.gp-onb-btn-ghost:hover { background: #f9fafb; }
.gp-onb-foot { margin-top: 10px; text-align: right; }
.gp-onb-link { display: inline-flex; align-items: center; gap: 5px; border: none; background: transparent; color: #6b7280; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; padding: 6px 2px; }
.gp-onb-link:hover { color: #0b1628; text-decoration: underline; }
.gp-onb-btn:focus-visible, .gp-onb-btn-ghost:focus-visible, .gp-onb-link:focus-visible, .gp-onb-iconbtn:focus-visible, .gp-onb-compact-main:focus-visible {
    outline: 3px solid rgba(244, 121, 32, .45); outline-offset: 2px;
}

/* Barre compacte (repliée) */
.gp-onb-compact { display: flex; align-items: center; gap: 10px; padding: 10px 14px; flex-wrap: wrap; }
.gp-onb-compact-main { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; border: none; background: transparent; cursor: pointer; font: inherit; color: #0b1628; padding: 4px 0; text-align: left; }
.gp-onb-compact-ico { color: #f47920; line-height: 0; }
.gp-onb-compact-label { font-size: 14px; font-weight: 700; white-space: nowrap; }
.gp-onb-bar-mini { flex: 1; margin: 0; height: 6px; min-width: 60px; }
.gp-onb-compact-chev { color: #6b7280; line-height: 0; }

/* Félicitations */
.gp-onb-congrats { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gp-onb-congrats-ico { width: 46px; height: 46px; border-radius: 12px; background: #fff3e8; color: #f47920; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gp-onb-congrats-body { flex: 1; min-width: 200px; }

@media (max-width: 600px) {
    .gp-onb-card { padding: 14px; }
    .gp-onb-item { flex-wrap: wrap; }
    .gp-onb-actions { width: 100%; justify-content: flex-start; padding-left: 32px; }
}
