/*
 * Répliques HTML de la PWA et du back-office, partagées par les variantes de la proposition 4.
 * Jetons repris du produit (apps/web, apps/admin/src/app/globals.css, DESIGN.md), préfixés --lv-
 * pour ne pas dépendre des couleurs de la landing qui les entoure.
 */
:root {
  --lv-bg: #F5F7FD; --lv-text: #0F172A; --lv-muted: #64748B; --lv-line: #E6E9F2; --lv-sep: #EEF1F7; --lv-field: #DAE0EC;
  --lv-primary: #2563EB; --lv-primary-soft: #EAF0FF; --lv-nav: #0F172A; --lv-nav-active: #1E3A8A; --lv-nav-text: #CBD5E1; --lv-nav-muted: #94A3B8;
  --lv-shadow: 0 12px 32px rgba(30,41,90,.07);
  --hero: #0F172A; --hero-accent: #7DD3FC; --usage: #1d4ed8;
}
@keyframes lv-rise { from { opacity: 0; transform: translateY(.2em); } to { opacity: 1; transform: none; } }
.phone svg, .bo svg { display: block; }

/* ---------- Téléphone ---------- */
.phone { position: relative; width: 360px; height: 740px; border-radius: 48px; background: #0B1220; padding: 12px; box-shadow: 0 50px 90px rgba(15,23,42,.28), 0 0 0 1px #1E293B; font-family: Figtree, system-ui, sans-serif; color: var(--lv-text); line-height: 1.5; text-align: left; flex: none; }
.phone.sm { width: 300px; height: 620px; border-radius: 42px; padding: 10px; }
.screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: var(--lv-bg); }
.phone.sm .screen { border-radius: 33px; }
.scroll { height: 100%; overflow: hidden; }
.pwa { font-size: 15px; }
.pwa-hero { background: var(--hero); color: #fff; padding: 22px 20px 64px; display: flex; flex-direction: column; gap: 14px; transition: background .35s; }
.pwa-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pwa-org { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); }
.pwa-logo { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.14); display: grid; place-items: center; color: #fff; }
.pwa-change { border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 700; }
.pwa-eyebrow { font-size: 14px; font-weight: 600; color: var(--hero-accent); transition: color .35s; }
.pwa-hero .lv-h3 { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.pwa-hero p { font-size: 14px; color: rgba(255,255,255,.82); margin: 2px 0 0; }
.pwa-body { margin: -44px 16px 0; display: flex; flex-direction: column; gap: 14px; padding-bottom: 20px; }
.pwa-search { background: #fff; border-radius: 14px; box-shadow: 0 12px 28px rgba(15,23,42,.12); display: flex; align-items: center; gap: 10px; padding: 15px 16px; color: #94A3B8; font-size: 15px; }
.lv-hl { display: flex; align-items: center; gap: 12px; border-radius: 16px; border: 1px solid; padding: 13px 14px; }
.lv-hl .tile { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; flex: none; }
.lv-hl b { display: block; font-size: 15px; }
.lv-hl small { font-size: 12px; opacity: .85; }
.lv-hl.warning { background: #FEF3C7; border-color: #FDE68A; color: #713F12; } .lv-hl.warning .tile { color: #A16207; }
.lv-hl.info { background: var(--lv-primary-soft); border-color: #C3D3FB; color: var(--lv-text); } .lv-hl.info .tile { color: var(--lv-primary); }
.lv-row { display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid var(--lv-line); border-radius: 16px; padding: 13px 14px; animation: lv-rise .35s ease both; }
.lv-badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 14%, white); color: var(--c); }
.lv-row .t { flex: 1; min-width: 0; }
.lv-row b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-row small { font-size: 12px; color: var(--lv-muted); }
.lv-chev { color: #94A3B8; }
.lv-themes-title { font-size: 17px; font-weight: 800; margin-top: 4px; }
.lv-themes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lv-theme { background: #fff; border: 1px solid var(--lv-line); border-radius: 16px; padding: 14px; min-height: 112px; display: flex; flex-direction: column; gap: 12px; animation: lv-rise .35s ease both; }
.lv-theme b { font-size: 15px; display: block; } .lv-theme small { font-size: 12px; color: var(--lv-muted); }

/* Page de contenu, formulaire, contacts */
.pwa-bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--lv-line); background: #fff; font-size: 13px; color: var(--lv-muted); }
.pwa-back { width: 40px; height: 40px; border-radius: 12px; background: #F1F5F9; display: grid; place-items: center; color: var(--lv-text); }
.pwa-page { background: #fff; padding: 18px 18px 24px; display: flex; flex-direction: column; gap: 14px; min-height: 100%; }
.pwa-page .lv-h4 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.pwa-page .lv-h5 { font-size: 17px; font-weight: 800; margin: 6px 0 0; }
.pwa-page p.intro { font-size: 14px; color: var(--lv-muted); margin: 0; }
.lv-step { display: flex; gap: 12px; border: 1px solid var(--lv-line); border-radius: 14px; padding: 13px; }
.lv-step .n { width: 24px; height: 24px; border-radius: 999px; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.lv-step b { display: block; font-size: 14px; } .lv-step span { font-size: 13px; color: #475569; }
.lv-ccard { display: flex; gap: 12px; border: 1px solid color-mix(in srgb, var(--c) 30%, white); background: color-mix(in srgb, var(--c) 5%, white); border-radius: 14px; padding: 13px; }
.lv-ccard b { display: block; font-size: 14px; } .lv-ccard span { font-size: 13px; color: #475569; }
.lv-ccard i { display: inline-block; font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-top: 6px; background: color-mix(in srgb, var(--c) 14%, white); color: var(--c); }
.lv-docbtn { display: flex; align-items: center; gap: 10px; border: 1px solid var(--lv-line); border-radius: 14px; padding: 12px; font-size: 14px; font-weight: 700; }
.lv-flabel { font-size: 13px; font-weight: 700; }
.lv-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lv-choice { border: 1px solid var(--lv-field); border-radius: 12px; padding: 11px 12px; font-size: 13px; font-weight: 600; }
.lv-choice.on { border: 2px solid var(--lv-primary); background: var(--lv-primary-soft); color: #1D4ED8; padding: 10px 11px; }
.lv-check { display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; }
.lv-check i { width: 18px; height: 18px; border: 1.5px solid #94A3B8; border-radius: 5px; }
.lv-area { border: 1px solid var(--lv-field); border-radius: 12px; padding: 12px; height: 84px; font-size: 13px; color: #94A3B8; }
.lv-submit { background: var(--lv-primary); color: #fff; border-radius: 12px; text-align: center; padding: 13px; font-weight: 700; font-size: 14px; }
.lv-contact { display: flex; gap: 12px; align-items: center; border: 1px solid var(--lv-line); border-radius: 14px; padding: 12px; }
.lv-avatar { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; background: color-mix(in srgb, var(--c) 14%, white); color: var(--c); }
.lv-contact .t { flex: 1; } .lv-contact b { display: block; font-size: 14px; } .lv-contact span { font-size: 12px; color: var(--lv-muted); }
.lv-call { width: 38px; height: 38px; border-radius: 999px; background: var(--lv-primary-soft); color: var(--lv-primary); display: grid; place-items: center; }

/* ---------- Back-office ---------- */
.bo-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: #1E293B; margin-bottom: 20px; flex-wrap: wrap; }
.bo-tab { padding: 9px 16px; border-radius: 9px; font: 700 14px Figtree, system-ui, sans-serif; color: var(--lv-nav-text); background: none; border: 0; cursor: pointer; }
.bo-tab[aria-selected="true"] { background: #fff; color: var(--lv-text); }
.bo { display: grid; grid-template-columns: 230px 1fr; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, #F5F6FE, #E8ECFB); color: var(--lv-text); box-shadow: 0 40px 80px rgba(0,0,0,.35); border: 1px solid #1E293B; min-height: 560px; font-family: Figtree, system-ui, sans-serif; line-height: 1.5; text-align: left; }
.bo-side { background: var(--lv-nav); border-right: 1px solid #1E293B; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--lv-nav-text); }
.bo-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; color: #fff; font-size: 14px; padding: 0 6px 12px; }
.bo-brand b { width: 26px; height: 26px; border-radius: 7px; background: var(--lv-primary); display: grid; place-items: center; font-size: 13px; }
.bo-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--lv-nav-muted); padding: 10px 6px 4px; }
.bo-ent { display: flex; align-items: center; gap: 9px; background: #1E293B; border-radius: 10px; padding: 9px; margin-bottom: 8px; }
.bo-ent .lg { width: 28px; height: 28px; border-radius: 7px; background: var(--hero); display: grid; place-items: center; color: #fff; transition: background .35s; font-weight: 800; }
.bo-ent b { display: block; color: #fff; font-size: 13px; } .bo-ent small { color: var(--lv-nav-muted); font-size: 11px; }
.bo-item { display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 8px; border: 1px solid transparent; }
.bo-item.on { background: var(--lv-nav-active); border-color: #3B82F6; color: #fff; }
.bo-main { padding: 26px 28px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bo-crumb { font-size: 12px; color: var(--lv-muted); }
.bo-main .lv-h4 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.bo-desc { font-size: 13px; color: var(--lv-muted); margin: -10px 0 0; }
.lv-card { background: #fff; border: 1px solid var(--lv-line); border-radius: 16px; box-shadow: var(--lv-shadow); }
.bo-tree { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.bo-trow { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--lv-sep); font-size: 13px; }
.bo-trow:first-child { border-top: 0; }
.bo-trow .lv-badge { width: 30px; height: 30px; border-radius: 8px; }
.bo-trow.sub { padding-left: 46px; }
.bo-trow .grow { flex: 1; font-weight: 600; }
.lv-pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.p-content { background: #F1F5F9; color: #475569; } .p-form { background: #DBEAFE; color: #1D4ED8; } .p-doc { background: #FFEDD5; color: #C2410C; }
.p-video { background: #E0E7FF; color: #4338CA; } .p-common { background: var(--lv-primary-soft); color: var(--lv-primary); }
.p-todo { background: #FEF3C7; color: #A16207; } .p-done { background: #DCFCE7; color: #15803D; }
.bo-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--lv-field); background: #fff; border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 600; }
.bo-btn.primary { background: var(--lv-primary); color: #fff; border-color: var(--lv-primary); }
.bo-seg { display: inline-flex; gap: 4px; background: #E8ECF5; border-radius: 10px; padding: 4px; font-size: 13px; font-weight: 600; }
.bo-seg span { padding: 6px 12px; border-radius: 7px; display: flex; gap: 6px; align-items: center; }
.bo-seg span.on { background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.08); }
.bo-seg em { font-style: normal; font-size: 11px; background: #fff; border-radius: 999px; padding: 0 6px; color: var(--lv-muted); }
.bo-seg span.on em { background: var(--lv-primary-soft); color: var(--lv-primary); }
.bo table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bo th { background: var(--lv-nav); color: #fff; text-transform: uppercase; font-size: 11px; letter-spacing: .06em; text-align: left; padding: 10px 14px; }
.bo td { padding: 12px 14px; border-top: 1px solid var(--lv-sep); }
.bo-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bo-kpi { padding: 14px 16px; } .bo-kpi small { display: block; font-size: 12px; font-weight: 600; } .bo-kpi b { font-size: 26px; font-weight: 800; } .bo-kpi span { display: block; font-size: 11px; color: var(--lv-muted); }
.bo-chart { padding: 16px; display: flex; align-items: flex-end; gap: 6px; height: 150px; }
.bo-chart i { flex: 1; background: var(--lv-primary); border-radius: 4px 4px 0 0; opacity: .85; }
.bo-qrwrap { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 20px; align-items: center; }
.lv-qr { width: 150px; display: grid; grid-template-columns: repeat(21, 1fr); padding: 10px; background: #fff; border: 1px solid var(--lv-line); border-radius: 12px; }
.lv-qr i { aspect-ratio: 1; } .lv-qr i.on { background: var(--lv-text); }
.bo-preview { display: flex; flex-direction: column; gap: 10px; padding: 16px; font-size: 13px; color: var(--lv-muted); }

/* Cartes d'entité (écran Entités) */
.lv-ents { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-family: Figtree, system-ui, sans-serif; color: var(--lv-text); text-align: left; }
.lv-ent { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.lv-ent-top { display: flex; gap: 10px; align-items: center; }
.lv-ent-top .lg { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.lv-ent-top b { display: block; font-size: 14px; } .lv-ent-top code { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--lv-muted); }
.lv-ent-bottom { display: flex; gap: 10px; align-items: center; font-size: 12px; font-weight: 600; }
.lv-ent-bottom .lv-qr { width: 56px; padding: 4px; border-radius: 6px; }

@media (max-width: 1020px) {
  .bo { grid-template-columns: 1fr; }
  .bo-side { display: none; }
  .bo-tree { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .phone { width: 100%; max-width: 340px; height: 700px; }
  .phone.sm { max-width: 300px; height: 620px; }
  .bo-kpis, .lv-ents { grid-template-columns: 1fr; }
  .bo-main { padding: 18px 14px; }
  .bo-qrwrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .lv-row, .lv-theme { animation: none; } }
