/* CamsLAB — fenêtres de dialogue */
.clabd { position: fixed; inset: 0; z-index: 2147483647; display: grid; place-items: center; padding: 20px; background: rgba(43, 37, 34, .45);
    font-family: inherit; animation: clabd-in .16s ease-out; }
.clabd.clabd-out { opacity: 0; transition: opacity .15s; }
.clabd-box { width: min(420px, 100%); padding: 24px 22px 18px; border-radius: 18px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); text-align: center; color: #2B2522; }
.clabd-box.clabd-large { width: min(860px, 100%); padding: 14px; }
.clabd-box.clabd-large iframe { max-width: 100%; aspect-ratio: 16 / 9; height: auto !important; border: 0; border-radius: 10px; }
.clabd-ico { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 15px; background: #F7E8F2; color: #9A3A7B; }
.clabd-ico.clabd-attention { background: #FDF0E4; color: #A0522D; }
.clabd-t { margin: 0 0 6px; font-size: 18px; font-weight: 700; line-height: 1.3; color: #2B2522; text-transform: none; letter-spacing: 0; }
.clabd-c { margin: 0 0 18px; font-size: 14.5px; line-height: 1.55; color: #6B6158; }
.clabd-c b, .clabd-c strong { color: #2B2522; }
.clabd-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.clabd-b { flex: 1 1 140px; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 11px; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; text-transform: none; letter-spacing: 0; }
.clabd-prim { background: #B54892; color: #fff; }
.clabd-prim:hover { background: #9A3A7B; }
.clabd-danger { background: #B3261E; color: #fff; }
.clabd-sec { background: #F4EFE8; color: #2B2522; }
.clabd-sec:hover { background: #ECE4D9; }
.clabd-b:focus-visible { outline: 3px solid rgba(181, 72, 146, .35); outline-offset: 2px; }
@keyframes clabd-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 480px) { .clabd { align-items: end; padding: 0; } .clabd-box { width: 100%; border-radius: 18px 18px 0 0; padding-bottom: max(18px, env(safe-area-inset-bottom)); } }

/* Maquettes clients */
#clab-partager { border: 1px solid #B54892; border-radius: 22px; padding: 9px 18px; margin-left: 10px; background: #fff; color: #9A3A7B; font-size: 14px; font-weight: 700; cursor: pointer; vertical-align: middle; }
#clab-partager:hover { background: #F7E8F2; }
#clab-equipe-badge { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 40; max-width: 92vw; padding: 6px 16px; border-radius: 14px; background: #2B2522; color: #fff; font-size: 12px; text-align: center; line-height: 1.4; pointer-events: none; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
#clab-equipe-badge b { font-weight: 800; }
#clab-equipe-badge span { display: block; font-size: 11px; color: #E9D7E3; }
.clab-pt-box { text-align: left; }
.clab-pt-box .clabd-t, .clab-pt-box .clabd-c { text-align: center; }
.clab-pt-l { display: block; margin: 0 0 16px; font-size: 13px; font-weight: 700; color: #2B2522; }
.clab-pt-l small { font-weight: 400; color: #6B6158; }
.clab-pt-l input, .clab-pt-lien input { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 11px 13px; border: 1px solid #DDD3C6; border-radius: 11px; font-size: 14px; color: #2B2522; }
.clab-pt-lien { display: flex; gap: 8px; align-items: stretch; margin: 0 0 16px; }
.clab-pt-lien input { margin: 0; font-size: 12.5px; }
.clab-pt-lien .clabd-b { flex: 0 0 auto; }
a.clabd-b { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
#clab-serie { border: 1px solid #2B2522; border-radius: 22px; padding: 9px 18px; margin-left: 8px; background: #2B2522; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; vertical-align: middle; }
#clab-serie:hover { background: #000; }
.clab-se-ts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.clab-se-t { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 10px; border: 1px solid #DDD3C6; border-radius: 9px; font-weight: 600; cursor: pointer; }
.clab-pt-l textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 10px 12px; border: 1px solid #DDD3C6; border-radius: 11px; font: inherit; font-size: 14px; resize: vertical; }
.clab-se-imp { display: block; margin: -6px 0 10px; font-size: 12px; color: #6B6158; }
.clab-se-imp input { display: block; margin-top: 4px; }
.clab-se-n { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: #9A3A7B; text-align: center; }
.clab-se-barre { height: 8px; margin: 0 0 16px; border-radius: 999px; background: #F4EFE8; overflow: hidden; }
.clab-se-barre i { display: block; height: 100%; width: 0; border-radius: 999px; background: #B54892; transition: width .3s; }
.clab-pt-box { max-height: 92vh; overflow: auto; }

.clab-pt-cli { margin: -6px 0 10px; font-size: 13px; color: #6B6158; }
.clab-pt-chk { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
.clab-pt-chk input { margin-top: 2px; }
.clab-se-etapes { display: flex; gap: 6px; justify-content: center; margin: -6px 0 14px; padding: 0; list-style: none; counter-reset: e; }
.clab-se-etapes li { counter-increment: e; padding: 3px 10px; border-radius: 999px; background: #F4EFE8; color: #6B6158; font-size: 12px; font-weight: 700; }
.clab-se-etapes li::before { content: counter(e) ". "; }
.clab-se-etapes li.on { background: #B54892; color: #fff; }
.clab-se-imp-l { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: -6px 0 6px; font-size: 12.5px; }
.clab-se-imp-l .clab-se-imp { margin: 0; }
.clab-se-imp-l .clab-check { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; cursor: pointer; }
.clab-se-map { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: 13px; }
.clab-se-map th { text-align: left; padding: 7px 8px 7px 0; font-weight: 600; color: #2B2522; border-bottom: 1px solid #F0E9E0; }
.clab-se-map td { padding: 5px 0; border-bottom: 1px solid #F0E9E0; }
.clab-se-map select { width: 100%; padding: 7px 9px; border: 1px solid #DDD3C6; border-radius: 9px; font: inherit; font-size: 13px; background: #fff; }
.clab-se-qr th { color: #9A3A7B; }
.clab-se-nf { margin: -8px 0 10px; font-size: 12px; color: #6B6158; }
.clab-se-ex { margin: 0 0 12px; font-size: 13px; color: #2B2522; text-align: left; }
.clab-se-ex b { color: #9A3A7B; }

/* ---------- Commande groupée (client) ---------- */
#clab-grp-carte { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px dashed #D9A9C8; border-radius: 12px; background: #FDF7FA; text-align: left; }
#clab-grp-carte .clab-grp-ic { flex: 0 0 auto; color: #9A3A7B; line-height: 0; margin-top: 2px; }
#clab-grp-carte b { display: block; font-size: 14.5px; color: #2B2522; }
#clab-grp-carte span { display: block; font-size: 12.5px; color: #6B6158; line-height: 1.45; margin: 2px 0 8px; }
#clab-grp-ouvrir { border: 1px solid #B54892; background: #fff; color: #9A3A7B; border-radius: 10px; padding: 8px 14px; font: 600 13.5px inherit; font-family: inherit; cursor: pointer; }
#clab-grp-ouvrir:hover { background: #F7E8F2; }
.clabd-box.clab-grp-box { width: min(900px, 100%); max-height: calc(100vh - 40px); overflow: auto; text-align: left; position: relative; }
.clab-grp-box.clab-grp-gen { width: min(460px, 100%); }
.clab-grp-x { position: absolute; right: 12px; top: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #F4EFE8; font-size: 20px; line-height: 1; cursor: pointer; color: #2B2522; }
.clab-grp-intro, .clab-grp-note { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: #6B6158; }
.clab-grp-outils { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.clab-grp-b { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid #DDD3C6; border-radius: 10px; background: #fff; color: #2B2522; font: 600 13.5px inherit; font-family: inherit; cursor: pointer; margin: 0; }
.clab-grp-b:hover { border-color: #B54892; color: #9A3A7B; }
.clab-grp-b.clab-grp-prim { background: #B54892; border-color: #B54892; color: #fff; }
.clab-grp-coller { margin: 0 0 12px; }
.clab-grp-coller textarea { width: 100%; box-sizing: border-box; border: 1px solid #DDD3C6; border-radius: 10px; padding: 10px; font: 14px/1.5 inherit; font-family: inherit; }
.clab-grp-coller-a { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.clab-grp-table-w { max-height: 52vh; overflow: auto; border: 1px solid #ECE4D9; border-radius: 12px; }
.clab-grp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.clab-grp-table th { position: sticky; top: 0; z-index: 1; background: #F6F1E9; text-align: left; font-weight: 700; padding: 8px; color: #2B2522; }
.clab-grp-table td { padding: 6px 8px; border-top: 1px solid #F1EAE0; vertical-align: middle; }
.clab-grp-n { color: #9A3A7B; font-weight: 800; width: 28px; }
.clab-grp-t { width: 100%; min-width: 120px; box-sizing: border-box; height: 36px; border: 1px solid #DDD3C6; border-radius: 8px; padding: 0 10px; font: 14px inherit; font-family: inherit; }
.clab-grp-t:focus, .clab-grp-q:focus, .clab-grp-ps:focus { outline: 2px solid rgba(181, 72, 146, .35); border-color: #B54892; }
.clab-grp-q { width: 64px; height: 36px; border: 1px solid #DDD3C6; border-radius: 8px; text-align: center; font: 600 14px inherit; font-family: inherit; }
.clab-grp-ph { display: flex; align-items: center; gap: 8px; min-width: 190px; }
.clab-grp-vig { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 8px; background: #F6F1E9 center/cover no-repeat; border: 1px solid #ECE4D9; display: grid; place-items: center; text-align: center; font-size: 8.5px; line-height: 1.1; color: #6B6158; }
.clab-grp-ps { flex: 1 1 auto; min-width: 0; height: 36px; border: 1px solid #DDD3C6; border-radius: 8px; padding: 0 6px; font: 13px inherit; font-family: inherit; background: #fff; }
.clab-grp-suppr { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #F4EFE8; color: #B3261E; font-size: 17px; cursor: pointer; }
.clab-grp-suppr:disabled { opacity: .35; cursor: default; }
.clab-grp-total { margin: 10px 0 14px; font-size: 13.5px; color: #6B6158; }
.clab-grp-total b { color: #2B2522; }
.clab-grp-etat { margin: 0 0 12px; font-size: 14.5px; color: #2B2522; }
.clab-grp-barre { height: 8px; margin: 0 0 14px; border-radius: 999px; background: #F4EFE8; overflow: hidden; }
.clab-grp-barre i { display: block; height: 100%; width: 0; border-radius: 999px; background: #B54892; transition: width .3s; }
a.clabd-b { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
@media (max-width: 600px) { .clab-grp-ph { min-width: 150px; } .clab-grp-t { min-width: 100px; } }

/* ---------- Voir chez moi (réalité augmentée) ---------- */
.clabd-box.clab-ar-box { width: min(520px, 100%); text-align: left; position: relative; }
.clab-ar-p, .clab-ar-aide { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: #6B6158; }
.clab-ar-aide b { color: #2B2522; }
.clab-ar-vue { position: relative; height: min(56vh, 420px); border-radius: 14px; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #fff 0%, #F1EAE0 80%); margin-bottom: 12px; }
.clab-ar-vue model-viewer { width: 100%; height: 100%; --poster-color: transparent; }
.clab-ar-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #6B6158; font-size: 14px; }
.clab-ar-load span { width: 18px; height: 18px; border: 2px solid #DDD3C6; border-top-color: #B54892; border-radius: 50%; animation: clabArSpin .8s linear infinite; }
@keyframes clabArSpin { to { transform: rotate(360deg); } }
.clab-ar-go { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px;
    background: #B54892; color: #fff; font: 700 15px inherit; font-family: inherit; padding: 12px 20px; box-shadow: 0 8px 22px rgba(181, 72, 146, .35); cursor: pointer; white-space: nowrap; }
.clab-ar-err { padding: 24px; text-align: center; color: #B3261E; }
#clab-ar-btn { gap: 8px; }
.clabd-box { box-sizing: border-box; }
@media (max-width: 480px) { .clabd-box.clab-ar-box, .clabd-box.clab-grp-box { padding: 20px 16px max(16px, env(safe-area-inset-bottom)) !important; } }

/* ---------- QR codes (téléphone) ---------- */
.clab-tel-box { text-align: center; }
.clab-tel-box .clab-ar-p, .clab-tel-box .clab-ar-aide { text-align: center; }
.clab-tel-qr { position: relative; width: 240px; height: 240px; margin: 4px auto 12px; border-radius: 14px; background: #fff; border: 1px solid #ECE4D9; display: grid; place-items: center; overflow: hidden; }
.clab-tel-qr img { width: 224px; height: 224px; image-rendering: pixelated; display: block; }
.clab-tel-etat { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #F6F1E9; font-size: 13.5px; color: #6B6158; }
.clab-tel-etat.ok { background: #EAF5EE; color: #24613D; }
.clab-tel-etat b { color: inherit; }
#clab-tel-btn svg { flex: 0 0 auto; }
#clab-tel-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2147483646; display: flex; align-items: center; gap: 8px; background: #2B2522; color: #fff;
    padding: 10px 16px; border-radius: 12px; font: 600 14px -apple-system, "Segoe UI", Roboto, sans-serif; box-shadow: 0 10px 28px rgba(0, 0, 0, .25); transition: opacity .3s; }
#clab-tel-toast.out { opacity: 0; }
.clab-tel-code { margin: 0 0 12px; padding: 10px 12px; border: 1px dashed #DDD3C6; border-radius: 12px; font-size: 13px; color: #6B6158; }
.clab-tel-code span { display: block; margin-bottom: 4px; }
.clab-tel-code b { color: #2B2522; }
.clab-tel-code strong { display: block; font: 800 28px ui-monospace, Menlo, Consolas, monospace; letter-spacing: 6px; color: #2B2522; }
.clab-tel-code small { display: block; margin-top: 6px; font-size: 12px; color: #6B6158; }
