/* Live chat widget on /support/ and /fr/soutien/ only. Every rule is scoped to #lc (or #live-chat) so no other page or component is affected. */
#live-chat { scroll-margin-top: 84px; }
#lc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "intro side" "meta side"; grid-template-rows: auto 1fr; column-gap: clamp(28px, 4vw, 64px); align-items: start; color: #0f1f1a; }
#lc .lc-intro { grid-area: intro; }
#lc .lc-points { grid-area: meta; }
#lc .lc-side { grid-area: side; min-width: 0; }
#lc .lc-intro h1 { margin: 6px 0 14px; }
#lc .lc-intro .lead { margin: 0; }
#lc .lc-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid #e7e0d2; list-style: none; }
#lc .lc-facts li { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; font-size: .92rem; color: #0f1f1a; }
#lc .lc-facts svg, #lc .lc-hours svg { width: 18px; height: 18px; flex: none; color: #1d6b53; }
#lc .lc-hours { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; font-size: .92rem; line-height: 1.55; color: #4b5563; }
#lc .lc-hours svg { margin-top: 2px; color: #4b5563; }
#lc .lc-alt { margin: 10px 0 0; text-align: center; font-size: .85rem; color: #4b5563; }
#lc .lc-alt a { color: #14523f; text-decoration: underline; text-underline-offset: 2px; }
#lc [hidden] { display: none !important; }
#lc button { font-family: inherit; }
#lc button:focus-visible, #lc a:focus-visible, #lc select:focus-visible + .lc-ccl { outline: 3px solid #c8952c; outline-offset: 2px; }

/* Card + top bar */
#lc .lc-app { scroll-margin-top: 84px; position: relative; background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; box-shadow: 0 12px 32px rgba(15, 31, 26, .08); overflow: hidden; }
#lc .lc-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: linear-gradient(135deg, #0d3b2e, #14523f); color: #fff; }
#lc .lc-av { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; flex: none; }
#lc .lc-av img { display: block; width: 28px; height: 28px; }
#lc .lc-who { flex: 1; min-width: 0; }
#lc .lc-name { margin: 0; font-weight: 800; font-size: 1.05rem; line-height: 1.25; color: #fff; }
#lc .lc-lock { display: grid; place-items: center; flex: none; color: #fbbf24; }
#lc .lc-lock svg { width: 18px; height: 18px; }
#lc .lc-status { display: flex; align-items: center; flex-wrap: wrap; gap: 0 7px; margin: 3px 0 0; font-size: .8rem; color: rgba(255, 255, 255, .78); }
#lc #lc-hours { margin-left: -4px; }
#lc .lc-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; flex: none; }
#lc .lc-dot { background: #22c55e; }
#lc .lc-status[data-s="on"] .lc-dot { box-shadow: 0 0 0 3px rgba(34, 197, 94, .3); }
#lc .lc-status[data-s="wait"] .lc-dot, #lc .lc-status[data-s="off"] .lc-dot { background: #f59e0b; animation: lc-blink 1s ease-in-out infinite alternate; }
@keyframes lc-blink { to { opacity: .35; } }

/* Start (phone number) */
#lc .lc-start, #lc .lc-verify, #lc .lc-denied { margin: 0; padding: 22px 20px 20px; }
#lc .lc-h { margin: 0 0 6px; font-weight: 800; font-size: 1.25rem; line-height: 1.3; color: #0f1f1a; }
#lc .lc-hello { margin: 0 0 18px; font-size: 1rem; line-height: 1.6; color: #374151; }
#lc .lc-empty { margin: 8px 6px 12px; padding: 14px 16px; border: 1px dashed #cbd2db; border-radius: 14px; background: #fff; font-size: .92rem; line-height: 1.55; color: #374151; }
#lc .lc-lbl { display: block; margin: 0 0 7px; font-weight: 700; font-size: .92rem; color: #0f1f1a; }
#lc .lc-phone { display: flex; align-items: stretch; border: 1.5px solid #cbd2db; border-radius: 12px; background: #fff; overflow: hidden; }
#lc .lc-phone:focus-within { border-color: #0f1f1a; box-shadow: 0 0 0 3px rgba(15, 31, 26, .12); }
#lc .lc-cc { position: relative; display: flex; align-items: center; flex: none; min-width: 96px; background: #f3f6fa; border-right: 1.5px solid #e5e7eb; }
#lc .lc-cc select { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; font-size: 16px; }
#lc .lc-ccl { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0 12px 0 14px; font-weight: 700; font-size: 1rem; white-space: nowrap; pointer-events: none; }
#lc .lc-ccl::after { content: ""; width: 7px; height: 7px; margin: -4px 0 0 auto; border-right: 2px solid #4b5563; border-bottom: 2px solid #4b5563; transform: rotate(45deg); }
#lc .lc-phone input { flex: 1; width: auto; min-width: 0; margin: 0; padding: 14px; border: 0; border-radius: 0; outline: 0; box-shadow: none; background: transparent; font: inherit; font-size: 1.12rem; letter-spacing: .02em; color: #0f1f1a; }
#lc .lc-hint { margin: 7px 0 0; font-size: .82rem; color: #4b5563; }
#lc .lc-go { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; margin: 16px 0 0; padding: 14px 18px; border: 0; border-radius: 12px; background: #0d3b2e; color: #fff; font-weight: 700; font-size: 1.05rem; cursor: pointer; transition: background .15s; }
#lc .lc-go:hover { background: #0d3b2e; }
#lc .lc-go:disabled { opacity: .75; cursor: progress; }
#lc .lc-err { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fef2f2; color: #991b1b; font-size: .9rem; line-height: 1.45; }
#lc .lc-fine { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; font-size: .85rem; line-height: 1.5; color: #4b5563; }
#lc .lc-fine svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* Verify / denied */
#lc .lc-verify p, #lc .lc-denied p { margin: 0 0 14px; line-height: 1.55; color: #374151; }
#lc .lc-code { display: block; width: 100%; margin: 0; padding: 12px; border: 1.5px solid #cbd2db; border-radius: 12px; background: #fff; font: inherit; font-size: 1.6rem; letter-spacing: .45em; text-align: center; color: #0f1f1a; }
#lc .lc-code:focus { outline: 0; border-color: #0f1f1a; box-shadow: 0 0 0 3px rgba(15, 31, 26, .12); }
#lc .lc-wait { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #f6ecd4; color: #0f1f1a; }
#lc .lc-links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 12px; }
#lc .lc-link { padding: 8px 0; border: 0; background: none; color: #14523f; font-size: .92rem; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-align: left; }

/* Chat */
#lc .lc-chat { display: flex; flex-direction: column; height: min(68vh, 620px); height: min(68dvh, 620px); min-height: 420px; }
#lc .lc-meline { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 16px; border-bottom: 1px solid #eef0f3; background: #fff; font-size: .82rem; color: #4b5563; }
#lc .lc-meline b { color: #0f1f1a; white-space: nowrap; }
#lc .lc-meline .lc-link { padding: 4px 0; font-size: .82rem; white-space: nowrap; }
#lc .lc-tw { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; background: #faf7f1; }
#lc .lc-thread { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px 6px; }
#lc .lc-row { display: flex; margin: 0 0 8px; }
#lc .lc-row--me { justify-content: flex-end; }
#lc .lc-row--sys { justify-content: center; }
#lc .lc-b { max-width: 82%; padding: 9px 12px 6px; border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15, 31, 26, .05); }
#lc .lc-row--them .lc-b { border-bottom-left-radius: 5px; }
#lc .lc-row--me .lc-b { background: #0f1f1a; border-color: #0f1f1a; color: #fff; border-bottom-right-radius: 5px; }
#lc .lc-row--sys .lc-b { max-width: 92%; padding: 10px 14px; background: #fffbeb; border-color: #fde68a; color: #374151; font-size: .9rem; }
#lc .lc-txt { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .98rem; line-height: 1.45; }
#lc .lc-meta { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 3px; font-size: .72rem; color: #4b5563; }
#lc .lc-row--me .lc-meta { color: rgba(255, 255, 255, .78); }
#lc .lc-tick.is-read { color: #7dd3fc; }
#lc .lc-copy { padding: 2px 0; border: 0; background: none; color: #14523f; font-size: .72rem; text-decoration: underline; cursor: pointer; }
#lc .lc-img img { display: block; max-width: 100%; max-height: 240px; margin-bottom: 4px; border-radius: 10px; object-fit: cover; }
#lc .lc-file { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: inherit; text-decoration: underline; }
#lc .lc-fname { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#lc .lc-more, #lc .lc-new { display: block; padding: 7px 14px; border: 1px solid #d1d5db; border-radius: 999px; background: #fff; color: #0f1f1a; font-size: .82rem; cursor: pointer; }
#lc .lc-more { margin: 0 auto 12px; }
#lc .lc-new { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: #0f1f1a; border-color: #0f1f1a; color: #fff; box-shadow: 0 6px 16px rgba(15, 31, 26, .2); }
#lc .lc-loading { padding: 24px 8px; text-align: center; font-size: .9rem; color: #4b5563; }
#lc .lc-typing { display: inline-flex; align-items: center; gap: 9px; margin: 2px 0 8px; padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; font-size: .82rem; color: #4b5563; }
#lc .lc-dots { display: inline-flex; gap: 3px; }
#lc .lc-dots i { width: 6px; height: 6px; border-radius: 50%; background: #9ca3af; animation: lc-bounce 1.2s infinite ease-in-out; }
#lc .lc-dots i:nth-child(2) { animation-delay: .15s; }
#lc .lc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes lc-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
#lc .lc-quick { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px 2px; background: #fff; border-top: 1px solid #eef0f3; scrollbar-width: none; }
#lc .lc-quick::-webkit-scrollbar { display: none; }
#lc .lc-quick button { flex: none; padding: 8px 13px; border: 1px solid #cbd2db; border-radius: 999px; background: #fff; color: #0f1f1a; font-size: .85rem; white-space: nowrap; cursor: pointer; }
#lc .lc-quick button:hover { border-color: #0f1f1a; background: #faf7f1; }
#lc .lc-toast { margin: 0; padding: 8px 14px; border-top: 1px solid #fecaca; background: #fef2f2; color: #991b1b; font-size: .85rem; }
#lc .lc-att { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: #f6ecd4; font-size: .85rem; }
#lc .lc-att span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
#lc .lc-att button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
#lc .lc-send { display: flex; align-items: flex-end; gap: 8px; margin: 0; padding: 10px 12px; border-top: 1px solid #eef0f3; background: #fff; }
#lc .lc-clip, #lc .lc-sendbtn { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; }
#lc .lc-clip { background: #f1f3f6; color: #374151; }
#lc .lc-sendbtn { background: #0f1f1a; color: #fff; }
#lc .lc-clip:disabled, #lc .lc-sendbtn:disabled { opacity: .45; cursor: default; }
#lc .lc-clip svg, #lc .lc-sendbtn svg { width: 20px; height: 20px; }
#lc .lc-send textarea { flex: 1; width: auto; min-width: 0; min-height: 44px; max-height: 120px; margin: 0; padding: 10px 14px; border: 1.5px solid #cbd2db; border-radius: 22px; background: #fff; box-shadow: none; resize: none; font: inherit; font-size: 16px; line-height: 1.35; color: #0f1f1a; }
#lc .lc-send textarea:focus { outline: 0; border-color: #0f1f1a; box-shadow: 0 0 0 3px rgba(15, 31, 26, .12); }
#lc .lc-notif { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; padding: 8px 14px; background: #f0fdf4; color: #14532d; font-size: .85rem; }
#lc .lc-notif .lc-link { padding: 2px 0; font-size: .85rem; }

@media (min-width: 700px) { #lc .lc-quick { flex-wrap: wrap; overflow: visible; } }
@media (max-width: 900px) { #lc { grid-template-columns: 1fr; grid-template-areas: "intro" "side" "meta"; grid-template-rows: none; row-gap: 20px; } #lc .lc-facts { margin-top: 0; } }
@media (max-width: 600px) {
  #lc .lc-app { border-radius: 14px; }
  #lc .lc-start, #lc .lc-verify, #lc .lc-denied { padding: 18px 16px 16px; }
  #lc .lc-bar { padding: 12px 14px; }
  #lc .lc-chat { height: min(78vh, 640px); height: min(78dvh, 640px); min-height: 380px; }
  #lc .lc-b { max-width: 88%; }
  #lc .lc-cc { min-width: 88px; }
}
@media (prefers-reduced-motion: reduce) { #lc .lc-dots i, #lc .lc-status .lc-dot { animation: none; } }

/* IPTV Rich additions (still scoped to #lc / #live-chat) */
#live-chat.lc-hero { padding: 28px 0 56px; background: radial-gradient(1200px 380px at 85% -60px, rgba(200, 149, 44, .16), transparent 70%), var(--paper, #faf7f1); }
#lc .crumbs { margin: 0 0 14px; }
#lc .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
#lc .lc-intro h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.08; letter-spacing: -.01em; color: #0f1f1a; }
#lc .lc-welcome { margin: 16px 0 0; padding: 14px 16px; border-left: 4px solid #c8952c; border-radius: 0 12px 12px 0; background: #fff; font-size: 1.02rem; line-height: 1.6; color: #0f1f1a; box-shadow: 0 1px 2px rgba(15, 31, 26, .05); }
#lc .lc-how { counter-reset: lc; display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
#lc .lc-how li { counter-increment: lc; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: start; margin: 0; }
#lc .lc-how li::before { content: counter(lc); grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #0d3b2e; color: #f6ecd4; font-weight: 700; }
#lc .lc-how b { color: #0f1f1a; }
#lc .lc-how span { color: #4b5563; font-size: .93rem; line-height: 1.5; }
#lc .lc-remember { display: flex; gap: 10px; margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: #f6ecd4; color: #5c4210; font-size: .92rem; line-height: 1.55; }
#lc .lc-remember svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
#lc .lc-powered { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px 0 0; font-size: .8rem; color: #6b7a74; }
#lc .lc-powered svg { width: 14px; height: 14px; }
#lc .lc-quick button { border-color: #e2b04a; }
#lc .lc-row--me .lc-b { background: #0d3b2e; color: #fff; }
