/* docs.css : page de démarrage Dolimob (Tailwind 2 CDN + compléments) */
:root { --blue: #2563eb; --blue-d: #1e3a8a; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; }
code { background: #eef2ff; color: #3730a3; padding: 1px 6px; border-radius: 4px; font-size: .9em; word-break: break-all; }

/* Sélecteur de profil */
.role-btn { padding: .7rem 1.2rem; border-radius: .6rem; font-weight: 600; color: #4b5563; transition: .2s; }
.role-btn.active { background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,.3); }
.track { display: none; }
.track.active { display: block; }

/* Stepper */
.stepper { display: flex; justify-content: center; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; counter-reset: s; }
.stepper li { display: flex; align-items: center; gap: .5rem; cursor: pointer; padding: .5rem .9rem; border-radius: 999px; background: #fff; color: #6b7280; font-size: .9rem; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.stepper li .n { width: 26px; height: 26px; border-radius: 50%; background: #e5e7eb; display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.stepper li.done .n { background: #16a34a; color: #fff; }
.stepper li.active { color: var(--blue); }
.stepper li.active .n { background: var(--blue); color: #fff; }
@media (max-width: 640px) { .stepper li .lbl { display: none; } }

.step-panel { display: none; background: #fff; border-radius: 1rem; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.step-panel.active { display: block; animation: fade .25s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel-grid { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 768px) { .panel-grid { grid-template-columns: 1fr 1fr; } }
.step-title { font-size: 1.4rem; font-weight: 700; color: #111827; margin-bottom: .6rem; }
.step-nav { display: flex; justify-content: space-between; margin-top: 1.2rem; }
.step-nav button { padding: .55rem 1.1rem; border-radius: .5rem; font-weight: 600; }
.step-nav .next { background: var(--blue); color: #fff; }
.step-nav .prev { color: #4b5563; }
.step-nav button:disabled { visibility: hidden; }

.checklist li, .numlist li { padding-left: 1.6rem; position: relative; margin-bottom: .55rem; }
.checklist li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; color: #16a34a; }
.numlist { counter-reset: n; }
.numlist li::before { counter-increment: n; content: counter(n); position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .75rem; display: flex; align-items: center; justify-content: center; }
.tip, .warn { margin-top: .8rem; padding: .7rem .9rem; border-radius: .5rem; font-size: .9rem; }
.tip { background: #eff6ff; color: #1e40af; }
.warn { background: #fffbeb; color: #92400e; }
.url-pill { display: inline-block; background: #f3f4f6; padding: .6rem 1rem; border-radius: 999px; font-family: monospace; }
.done { display: flex; align-items: center; margin-top: 1rem; padding: 1rem 1.2rem; background: #f0fdf4; border-radius: .8rem; color: #166534; }
.link-role { color: var(--blue); font-weight: 600; text-decoration: underline; }

/* Onglets */
.tabs { display: inline-flex; background: #f3f4f6; border-radius: .5rem; padding: 3px; margin-bottom: .8rem; }
.tab { padding: .4rem .9rem; border-radius: .4rem; font-size: .9rem; font-weight: 600; color: #6b7280; }
.tab.active { background: #fff; color: var(--blue); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.tab-body { display: none; }
.tab-body.active { display: block; }

/* Captures */
.shot { border-radius: .6rem; overflow: hidden; border: 1px solid #e5e7eb; }
.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.8); z-index: 100; display: flex; align-items: center; justify-content: center; cursor: zoom-out; padding: 1rem; }
.lightbox.hidden { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: .5rem; }

/* Maquettes Dolibarr */
.mock-dolibarr { border: 1px solid #e5e7eb; border-radius: .6rem; padding: 1rem; font-size: .85rem; background: #fff; }
.mock-dolibarr__title { color: #0f766e; font-size: 1rem; margin-bottom: .7rem; }
.mock-dolibarr table { width: 100%; border-collapse: collapse; }
.mock-dolibarr th { background: #f3f4f6; text-align: left; padding: .45rem; font-weight: 500; }
.mock-dolibarr td { padding: .45rem; border-bottom: 1px solid #f3f4f6; vertical-align: top; }
.mock-dolibarr td.req { font-weight: 700; color: #4c1d24; }
.mock-input { display: inline-block; border-bottom: 1px solid #d1d5db; min-width: 160px; padding: 2px 0; }
.mock-actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: .8rem; }
.mock-btn { background: #a78bba; color: #fff; padding: .35rem .7rem; border-radius: .3rem; font-size: .75rem; text-transform: uppercase; font-weight: 700; }
.mock-btn--hl { background: #7c3aed; box-shadow: 0 0 0 3px #fca5a5; }
.mock-msg { margin-top: .8rem; background: #f0fdf4; color: #166534; padding: .5rem; border-radius: .3rem; }
.mock-banner { background: #eff6ff; color: #1e40af; padding: .5rem; border-radius: .3rem; margin-bottom: .6rem; }
.mock-check { display: block; padding-left: 1.3rem; position: relative; }
.mock-check::before { content: ""; position: absolute; left: 0; top: 3px; width: 13px; height: 13px; border: 1px solid #9ca3af; border-radius: 2px; }
.mock-check.on::before { background: var(--blue); border-color: var(--blue); }
.qr-fake { width: 140px; height: 140px; border-radius: .4rem; filter: blur(3px);
  background: repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 0/14px 14px; }

/* Téléphone */
.phone { width: 260px; margin: 0 auto; border: 10px solid #111827; border-radius: 2rem; background: #fff; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,.15); }
.phone__bar { background: #f3f4f6; font-size: .7rem; color: #4b5563; text-align: center; padding: .4rem; }
.phone__screen { min-height: 420px; padding: 1.2rem; }
.otp-icon { width: 56px; height: 56px; border-radius: 50%; background: #dbeafe; color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.otp { display: flex; gap: 6px; justify-content: center; }
.otp input { width: 32px; height: 42px; text-align: center; font-size: 1.1rem; font-weight: 700; border: 2px solid #d1d5db; border-radius: .4rem; text-transform: uppercase; }
.otp input:focus { border-color: var(--blue); outline: none; }
.otp-ok { margin-top: 1rem; color: #166534; background: #f0fdf4; padding: .5rem; border-radius: .4rem; font-size: .85rem; }
.home-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-content: start; background: linear-gradient(160deg, #1e3a8a, #6366f1); }
.app-ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.25); color: #fff; display: flex; align-items: center; justify-content: center; position: relative; }
.app-ico--dm { background: #fff; }
.app-ico--dm img { width: 100%; border-radius: 12px; }
.app-ico--dm span { position: absolute; top: 50px; font-size: .65rem; color: #fff; }
.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 50% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } }

/* Repères */
.hs { position: absolute; width: 24px; height: 24px; border-radius: 50%; background: #ef4444; color: #fff; font-size: .75rem; font-weight: 700; box-shadow: 0 0 0 3px rgba(239,68,68,.35); transform: translateY(-50%); }
.hs.active { background: var(--blue); box-shadow: 0 0 0 5px rgba(37,99,235,.35); }
.hotspot-legend li { padding: .5rem; border-radius: .5rem; cursor: pointer; display: flex; gap: .6rem; align-items: flex-start; }
.hotspot-legend li.active { background: #eff6ff; }
.hs-num { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #ef4444; color: #fff; font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.hotspot-legend li.active .hs-num { background: var(--blue); }

/* FAQ */
.faq details { background: #fff; border-radius: .6rem; margin-bottom: .5rem; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.faq summary { padding: .9rem 1.1rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #9ca3af; transition: .2s; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { padding: 0 1.1rem 1rem; color: #4b5563; }
