/* Ligardes Outils — formulaires, téléphones simulés, appli de gestion, admin. */
.lgo-card [hidden], .lgo-app [hidden], .lgo-admin [hidden] { display: none !important; }
.lgo-card, .lgo-app, .lgo-admin, .lgo-interesse { --lgo-ink: #014A77; --lgo-blue: #00599B; --lgo-yellow: #FBE329; --lgo-line: #D5DEE6; --lgo-muted: #4A5560; --lgo-tint: #E3F0F8; }
.lgo-card { background: #fff; border: 1px solid var(--lgo-line); border-radius: 24px; padding: 40px; font-family: Inter, system-ui, sans-serif; color: var(--lgo-ink); }
.lgo-h1 { margin: 0 0 10px; font-family: Archivo, sans-serif; font-weight: 800; font-size: 40px; line-height: 1.05; color: var(--lgo-ink); }
.lgo-lead { margin: 0 0 24px; color: var(--lgo-muted); font-size: 17px; line-height: 1.55; }
.lgo-form { display: flex; flex-direction: column; gap: 22px; }
.lgo-fieldset { border: 0; margin: 0; padding: 0; }
.lgo-fieldset legend { font-weight: 600; font-size: 16px; margin-bottom: 12px; }
.lgo-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.lgo-choices-row { display: flex; flex-wrap: wrap; }
.lgo-choice { position: relative; cursor: pointer; }
.lgo-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.lgo-choice span { display: flex; align-items: center; min-height: 50px; padding: 0 16px; border: 1px solid #B9C6D1; border-radius: 12px; background: #fff; font-weight: 600; font-size: 15px; }
.lgo-choice input:checked + span { border: 2px solid var(--lgo-ink); background: var(--lgo-tint); }
.lgo-choice input:focus-visible + span { outline: 3px solid var(--lgo-blue); outline-offset: 2px; }
.lgo-field { display: flex; flex-direction: column; gap: 6px; }
.lgo-field label { font-weight: 600; font-size: 14px; }
.lgo-field input, .lgo-field textarea, .lgo-field select { min-height: 48px; border: 1px solid #B9C6D1; border-radius: 12px; padding: 10px 14px; font: inherit; font-size: 16px; color: #14202B; background: #fff; box-sizing: border-box; width: 100%; }
.lgo-field textarea { resize: vertical; }
.lgo-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.lgo-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lgo-consent, .lgo-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--lgo-muted); line-height: 1.4; }
.lgo-check { color: var(--lgo-ink); font-weight: 500; font-size: 15px; }
.lgo-consent input, .lgo-check input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; }
.lgo-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 12px; border: 0; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; }
.lgo-btn-yellow { background: var(--lgo-yellow); color: var(--lgo-ink) !important; }
.lgo-btn-line { background: #fff; border: 1.5px solid var(--lgo-ink); color: var(--lgo-ink) !important; font-weight: 600; }
.lgo-btn-full { width: 100%; }
.lgo-btn[disabled] { opacity: .6; cursor: wait; }
.lgo-form .lgo-btn { align-self: flex-start; }
.lgo-form .lgo-btn-full { align-self: stretch; }
.lgo-link { align-self: flex-start; background: none; border: 0; padding: 4px 0; color: var(--lgo-blue); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.lgo-error { margin: 0; color: #B42318; font-weight: 600; }
.lgo-warn { background: #FFF6D6; border-radius: 12px; padding: 14px; }
.lgo-demo-note { background: var(--lgo-tint); border-radius: 12px; padding: 12px 16px; margin: 0 0 20px; font-size: 14px; color: var(--lgo-ink); }
.lgo-muted { color: var(--lgo-muted); }

/* Téléphones simulés */
.lgo-phones { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }
.lgo-phone { flex: 1 1 260px; max-width: 340px; background: #0B1620; border-radius: 34px; padding: 14px; box-shadow: 0 16px 40px rgba(1, 74, 119, .18); font-family: Inter, system-ui, sans-serif; }
.lgo-phone-head { background: #F2F4F7; border-radius: 22px 22px 0 0; padding: 14px 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; border-bottom: 1px solid #E1E5EA; }
.lgo-phone-name { font-weight: 600; font-size: 14px; color: #14202B; }
.lgo-phone-sub { font-size: 12px; color: #5C6B78; }
.lgo-sms-list { background: #fff; border-radius: 0 0 22px 22px; min-height: 280px; max-height: 460px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.lgo-phone-empty { margin: auto; color: #8A97A3; font-size: 13px; }
.lgo-sms { display: flex; flex-direction: column; gap: 4px; animation: lgo-in .35s ease; }
.lgo-sms-to { font-size: 11px; color: #5C6B78; }
.lgo-sms-bubble { align-self: flex-start; max-width: 92%; background: #E9EDF1; color: #14202B; border-radius: 18px 18px 18px 4px; padding: 10px 13px; font-size: 14px; line-height: 1.4; white-space: pre-line; word-break: break-word; }
.lgo-sms-bubble a { color: #00599B; }
.lgo-sms-time { font-size: 11px; color: #8A97A3; }
.lgo-typing { align-self: flex-start; background: #E9EDF1; border-radius: 18px; padding: 12px 14px; display: flex; gap: 4px; }
.lgo-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8A97A3; animation: lgo-dot 1s infinite; }
.lgo-typing i:nth-child(2) { animation-delay: .15s; }
.lgo-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes lgo-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes lgo-dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lgo-sms, .lgo-typing i { animation: none; } }

/* Appli de gestion (pensée pour le téléphone) */
.lgo-app { max-width: 440px; margin: 0 auto; background: #fff; border: 1px solid var(--lgo-line); border-radius: 24px; overflow: hidden; font-family: Inter, system-ui, sans-serif; color: var(--lgo-ink); }
.lgo-app-head { background: var(--lgo-ink); color: #fff; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lgo-app-head strong { font-family: Archivo, sans-serif; font-size: 18px; }
.lgo-app-head span { font-size: 13px; opacity: .85; }
.lgo-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--lgo-line); }
.lgo-tab { min-height: 50px; background: #fff; border: 0; border-bottom: 3px solid transparent; font: inherit; font-weight: 600; font-size: 14px; color: var(--lgo-muted); cursor: pointer; }
.lgo-tab.is-on { color: var(--lgo-ink); border-bottom-color: var(--lgo-yellow); }
.lgo-app-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.lgo-app .lgo-form { gap: 16px; }
.lgo-photo { position: relative; display: flex; align-items: center; justify-content: center; height: 170px; border: 2px dashed #B9C6D1; border-radius: 16px; background: #F7FAFC; cursor: pointer; overflow: hidden; }
.lgo-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lgo-photo-txt { font-weight: 600; color: var(--lgo-blue); }
.lgo-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.lgo-result { background: #EAF7EE; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.lgo-result p { margin: 0; font-weight: 600; color: #1F6B3A; }
.lgo-result a { font-weight: 600; }
.lgo-fb { border: 1px solid #DADDE1; border-radius: 10px; overflow: hidden; background: #fff; }
.lgo-fb-head { padding: 10px 12px; font-size: 13px; color: #65676B; border-bottom: 1px solid #EEF0F2; }
.lgo-fb-head strong { color: #050505; }
.lgo-fb-body { padding: 10px 12px; font-size: 14px; color: #050505; white-space: pre-line; }
.lgo-fb img { display: block; width: 100%; max-height: 220px; object-fit: cover; }
.lgo-results { display: flex; flex-direction: column; gap: 10px; }
.lgo-item { display: flex; gap: 12px; align-items: center; border: 1px solid var(--lgo-line); border-radius: 14px; padding: 10px; }
.lgo-item img, .lgo-item .lgo-noimg { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #E8EEF3; flex-shrink: 0; }
.lgo-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lgo-item-name { font-weight: 600; font-size: 14px; }
.lgo-item-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.lgo-pill { min-height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid #B9C6D1; background: #fff; font: inherit; font-size: 12px; font-weight: 600; color: var(--lgo-ink); cursor: pointer; }
.lgo-pill.is-on { background: var(--lgo-yellow); border-color: var(--lgo-yellow); }

/* Fiche produit en mode catalogue */
.lgo-interesse { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 20px 0; }
.lgo-interesse p { flex-basis: 100%; margin: 0 0 4px; color: var(--lgo-muted); }

/* Admin */
.lgo-admin h2 { font-size: 16px; margin: 0 0 14px; }
.lgo-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 16px 0 20px; }
.lgo-kpi { background: #fff; border: 1px solid #DCDCDE; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 4px; color: #3C434A; }
.lgo-kpi-n { font-size: 30px; font-weight: 700; color: #014A77; }
.lgo-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; align-items: start; }
.lgo-box { background: #fff; border: 1px solid #DCDCDE; border-radius: 12px; padding: 18px; margin-bottom: 20px; }
.lgo-bar { display: grid; grid-template-columns: 150px 1fr 32px; gap: 10px; align-items: center; margin: 8px 0; }
.lgo-bar-t { height: 12px; background: #EEF2F5; border-radius: 6px; overflow: hidden; }
.lgo-bar-f { display: block; height: 100%; background: #00599B; border-radius: 6px; }
.lgo-bar-n { text-align: right; font-weight: 600; }
.lgo-admin .lgo-phone { margin-top: 8px; }

@media (max-width: 600px) {
	.lgo-card { padding: 22px; border-radius: 18px; }
	.lgo-h1 { font-size: 30px; }
	.lgo-grid2 { grid-template-columns: 1fr; }
	.lgo-app { border-radius: 0; border-left: 0; border-right: 0; }
}

.lgo-pill-edit { background: #014A77; border-color: #014A77; color: #fff !important; }
.lgo-editform .lgo-check { font-size: 14px; }
.lgo-view { align-self: center; }

.lgo-row { display: flex; gap: 8px; }
.lgo-row input { flex: 1; min-width: 0; }
.lgo-row .lgo-btn { min-height: 48px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
.lgo-lookup-msg { margin: 4px 0 0; font-size: 13px; }
.lgo-specs { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 14px; }
.lgo-specs th, .lgo-specs td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #E8EEF3; vertical-align: top; }
.lgo-specs th { width: 45%; font-weight: 500; color: #4A5560; }

/* Onglets défilants (5 onglets sur mobile) */
.lgo-tabs { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; }
.lgo-tab { padding: 0 6px; white-space: nowrap; min-height: 46px; border-bottom: 1px solid var(--lgo-line); }
.lgo-tab.is-on { border-bottom: 3px solid var(--lgo-yellow); }
.lgo-pill { display: inline-block; min-width: 20px; padding: 1px 6px; margin-left: 4px; border-radius: 10px; background: #D62828; color: #fff; font-size: 12px; line-height: 18px; }

/* Dépannages */
.lgo-filters { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; }
.lgo-filter { flex: 0 0 auto; height: 36px; padding: 0 14px; border: 1px solid var(--lgo-line); border-radius: 18px; background: #fff; font: inherit; font-size: 14px; color: var(--lgo-muted); cursor: pointer; }
.lgo-filter.is-on { background: var(--lgo-ink); border-color: var(--lgo-ink); color: #fff; }
.lgo-demandes { display: flex; flex-direction: column; gap: 12px; }
.lgo-dem { border: 1px solid var(--lgo-line); border-left: 5px solid var(--lgo-blue); border-radius: 12px; padding: 14px; background: #fff; }
.lgo-dem.is-urgent { border-left-color: #D62828; }
.lgo-dem-top { display: flex; justify-content: space-between; gap: 8px; color: var(--lgo-ink); }
.lgo-dem-date { font-size: 13px; color: var(--lgo-muted); }
.lgo-dem-urg { font-size: 13px; color: var(--lgo-muted); margin-top: 2px; }
.lgo-dem.is-urgent .lgo-dem-urg { color: #D62828; font-weight: 600; }
.lgo-dem-nom { font-weight: 600; margin-top: 8px; }
.lgo-dem-desc { margin: 4px 0 6px; font-size: 14px; }
.lgo-dem-adr { font-size: 14px; color: var(--lgo-muted); }
.lgo-dem-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.lgo-dem-btns .lgo-btn { justify-content: center; text-align: center; text-decoration: none; }
.lgo-dem-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; font-size: 14px; }
.lgo-dem-foot select { margin-left: 6px; height: 36px; border-radius: 8px; border: 1px solid var(--lgo-line); font: inherit; }
.lgo-dem-msg { margin: 8px 0 0; font-size: 13px; }

/* Fiches */
.lgo-fiches-log { margin-top: 14px; font-size: 13px; display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; }

/* Adresse détaillée */
.lgo-sublabel { margin: 4px 0 -4px; font-weight: 600; color: var(--lgo-ink); }
.lgo-grid-cp { display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
@media (max-width: 600px) { .lgo-grid-keep { grid-template-columns: 1fr; } }
.lgo-geo { width: 100%; justify-content: center; margin-bottom: 4px; }
.lgo-geo-msg { margin: 0; font-size: 14px; }
.lgo-gps { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: var(--lgo-tint); color: var(--lgo-ink); font-size: 12px; }

/* Réalisations */
.lgo-real-items { margin-top: 14px; }
.lgo-res { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border: 1px solid var(--lgo-line); border-radius: 14px; padding: 10px; background: #fff; font: inherit; color: var(--lgo-ink); cursor: pointer; }
.lgo-res img, .lgo-res-noimg { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #E8EEF3; flex-shrink: 0; }
.lgo-res span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lgo-res small { color: var(--lgo-muted); font-size: 13px; }

/* Sous-onglets */
.lgo-subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.lgo-sub { flex: 0 0 auto; height: 36px; padding: 0 14px; border: 1px solid var(--lgo-line); border-radius: 18px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--lgo-muted); cursor: pointer; }
.lgo-sub.is-on { background: var(--lgo-ink); border-color: var(--lgo-ink); color: #fff; }
.lgo-tab { font-size: 14px; }
@media (max-width: 380px) { .lgo-tab { font-size: 12.5px; padding: 0 2px; } }

/* Envoi au technicien */
.lgo-dem-tech { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; flex-wrap: wrap; }
.lgo-dem-tech label { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--lgo-muted); }
.lgo-dem-tech select { height: 40px; border-radius: 8px; border: 1px solid var(--lgo-line); font: inherit; font-size: 14px; color: var(--lgo-ink); padding: 0 8px; }
.lgo-dem-tech .lgo-btn { height: 40px; padding: 0 14px; }
.lgo-dem-envoi { margin: 8px 0 0; font-size: 13px; color: #1E7B3A; font-weight: 600; }
.lgo-dem-sms { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: #E9F2E4; color: #1F2A1A; white-space: pre-line; font-size: 13px; }
