/* AutoTruck42 Live Chat V2 · scoped CSS, PrestaShop 8.2 */
.at42lc,.at42lc *{box-sizing:border-box}
.at42lc{--at42lc-navy:#091d34;--at42lc-navy2:#102e50;--at42lc-text:#172945;--at42lc-accent:#ff7900;position:fixed;right:24px;bottom:22px;z-index:9998;font-family:inherit;font-size:14px;line-height:1.45;color:var(--at42lc-text)}
.at42lc--left{left:24px;right:auto}
.at42lc [hidden]{display:none!important}
.at42lc button,.at42lc input,.at42lc textarea{font:inherit;letter-spacing:normal}
.at42lc button{cursor:pointer}
.at42lc-launcher{display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;min-height:52px!important;border:1px solid #1e3855!important;border-radius:16px!important;padding:12px 17px!important;background:var(--at42lc-navy)!important;color:#fff!important;font-weight:800!important;box-shadow:0 12px 28px #0b234743!important;text-transform:none!important;transition:transform .16s,box-shadow .16s}
.at42lc-launcher svg{color:var(--at42lc-accent)}
.at42lc-launcher:hover{transform:translateY(-2px);box-shadow:0 16px 30px #0b234763!important}
.at42lc-launcher:focus-visible,.at42lc button:focus-visible,.at42lc a:focus-visible{outline:3px solid #ffae72!important;outline-offset:2px!important}
.at42lc-launcher--active{opacity:.94}
.at42lc-unread{background:#ff7900;color:#fff;border-radius:50%;min-width:18px;line-height:18px;font-size:11px;text-align:center}
.at42lc-panel{position:absolute;bottom:65px;right:0;width:392px;max-width:calc(100vw - 24px);height:min(690px,calc(100dvh - 107px));min-height:420px;background:#fff;border:1px solid #e2e7ef;border-radius:19px;box-shadow:0 18px 64px #05183255;display:flex;flex-direction:column;overflow:hidden;isolation:isolate}
.at42lc--left .at42lc-panel{left:0;right:auto}
.at42lc-head{flex:none;display:flex;justify-content:space-between;align-items:start;gap:12px;background:linear-gradient(135deg,#091b32,#13345a);color:#fff;border-top:3px solid var(--at42lc-accent);padding:15px 17px 14px}
.at42lc-brand{min-width:0}
.at42lc-store-logo{display:block;object-fit:contain;object-position:left center;max-width:205px;max-height:44px;margin:0 0 2px}
.at42lc-logo-fallback{font-weight:900;letter-spacing:-.7px;font-style:italic;font-size:24px;color:#fff;line-height:1.4}
.at42lc-logo-fallback span{color:var(--at42lc-accent)}
.at42lc-headline{font-weight:800;font-size:13px;line-height:1.3;margin-top:2px}
.at42lc-availability{color:#dbe6f6;font-size:11px;display:flex;align-items:center;gap:6px;margin-top:5px}
.at42lc-dot{flex:none;width:8px;height:8px;border-radius:50%;background:#a9b9cc}
.at42lc-dot--online{background:#26ce77;box-shadow:0 0 0 3px #26ce772a}
.at42lc-close{border:0!important;background:transparent!important;color:#fff!important;font-size:28px!important;line-height:1!important;width:32px;height:32px;padding:0!important;border-radius:9px!important}
.at42lc-close:hover{background:#fff2!important}
.at42lc-intro{flex:none;display:flex;align-items:center;gap:11px;padding:12px 15px 10px;background:#fff}
.at42lc-greeting-icon{width:40px;height:40px;flex:none;border-radius:12px;display:flex;align-items:center;justify-content:center;background:var(--at42lc-accent);color:#fff;font-size:8px;letter-spacing:2px;box-shadow:0 5px 10px #ff79002b}
.at42lc-intro strong{font-size:14px;line-height:1.3;color:#10243d}
.at42lc-intro p{font-size:12px;color:#586980;margin:3px 0 0;line-height:1.4}
.at42lc-topic-picker{flex:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:3px 13px 11px}
.at42lc-topic{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:74px;background:#fff!important;border:1px solid #dfe5ec!important;border-radius:12px!important;color:#172945!important;padding:8px 5px!important;text-align:center!important;box-shadow:0 2px 5px #081d3610}
.at42lc-topic span{font-size:23px;line-height:1;color:var(--at42lc-accent);font-weight:800}
.at42lc-topic strong{font-size:11px;line-height:1.3;font-weight:800}
.at42lc-topic:hover,.at42lc-topic--chosen{border-color:var(--at42lc-accent)!important;background:#fff5ec!important}
.at42lc-topic-picker--compact .at42lc-topic{min-height:47px;flex-direction:row;gap:4px;padding:5px!important}
.at42lc-topic-picker--compact .at42lc-topic span{font-size:17px}
.at42lc-product{flex:none;display:flex;gap:9px;align-items:center;margin:0 13px 8px;padding:8px 11px;background:#f0f5fd;border:1px solid #e0e8f5;border-radius:10px;color:#102c51}
.at42lc-product-icon{font-size:19px;color:#153a68}
.at42lc-product>span:nth-child(2){display:flex;flex-direction:column;min-width:0;flex:1}
.at42lc-product small{font-size:10px;color:#5b7394}
.at42lc-product strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.at42lc-product-check{font-weight:900;color:#228459}
.at42lc-messages{min-height:64px;flex:1;overflow-y:auto;overscroll-behavior:contain;background:linear-gradient(#f7f9fc,#fff);padding:9px 13px;display:flex;flex-direction:column;gap:9px}
.at42lc-empty{font-size:12px;color:#74839b;text-align:center;margin:auto 12px}
.at42lc-bubble{max-width:87%;align-self:flex-start;background:#eef1f6;border-radius:14px 14px 14px 4px;padding:8px 11px;color:#20334b;overflow-wrap:anywhere}
.at42lc-bubble--mine{align-self:flex-end;background:#dceaff;border-radius:14px 14px 4px 14px}
.at42lc-bubble p{font-size:12px;line-height:1.46;white-space:pre-wrap;margin:0}
.at42lc-bubble time{display:block;font-size:10px;opacity:.65;text-align:right;margin-top:5px}
.at42lc-offline-note{flex:none;display:flex;gap:9px;align-items:start;padding:10px 13px;font-size:11px;line-height:1.38;background:#fff6ed;border-top:1px solid #fee4cf;color:#83380c}
.at42lc-offline-note>span:first-child{font-size:20px;line-height:1;color:var(--at42lc-accent)}
.at42lc-form{flex:none;margin:0!important;border-top:1px solid #e9edf4;background:#fff;padding:10px 13px!important;display:flex;flex-direction:column;gap:8px}
.at42lc-identity{display:flex;flex-direction:column;gap:4px}
.at42lc-ident-row{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.at42lc-identity input,.at42lc-form textarea{width:100%!important;border:1px solid #d9e1ea!important;border-radius:9px!important;background:#fff!important;color:#1c304b!important;box-shadow:none!important;padding:9px!important;font-size:12px!important;line-height:1.4!important;max-width:100%!important}
.at42lc-identity input{min-height:36px!important}
.at42lc-form textarea{min-height:54px!important;max-height:130px!important;resize:vertical!important;margin:0!important}
.at42lc-identity input:focus,.at42lc-form textarea:focus{border-color:var(--at42lc-accent)!important;outline:2px solid #ffd4b6!important}
.at42lc-field-help{font-size:10px;color:#607188}
.at42lc-send{width:100%!important;min-height:41px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;background:var(--at42lc-accent)!important;color:#fff!important;font-weight:800!important;font-size:13px!important;border:0!important;border-radius:9px!important;padding:9px 13px!important;box-shadow:0 5px 12px #ff790026!important}
.at42lc-send span:first-child{font-size:17px;line-height:1}
.at42lc-send:hover{filter:brightness(.95)}
.at42lc-send:disabled{opacity:.5;cursor:wait}
.at42lc-error{font-size:11px;color:#ad2622}
.at42lc-footer{flex:none;display:flex;flex-direction:column;gap:5px;align-items:center;padding:7px 12px 11px;background:#fff;border-top:1px solid #f0f2f7}
.at42lc-privacy{font-size:10px;color:#8b98ab;text-align:center}
.at42lc-altlinks{display:flex;justify-content:center;gap:16px;font-size:11px}
.at42lc-altlinks a{color:#143b72!important;text-decoration:none!important;font-weight:700!important}
.at42lc-altlinks a:hover{text-decoration:underline!important}
.at42lc-trap{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.at42lc-visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:480px){.at42lc{right:11px;bottom:12px}.at42lc--left{left:11px;right:auto}.at42lc-launcher{min-height:46px!important;padding:9px 13px!important;font-size:12px!important}.at42lc-panel{width:calc(100vw - 22px);height:min(690px,calc(100dvh - 85px));bottom:58px;border-radius:15px}.at42lc-head{padding:10px 14px}.at42lc-topic{min-height:61px}.at42lc-intro{padding:9px 13px}.at42lc-product{margin-bottom:4px}}
@media(max-height:620px){.at42lc-topic{min-height:45px}.at42lc-intro{padding:7px 13px}.at42lc-head{padding:8px 13px}.at42lc-panel{min-height:0;height:calc(100dvh - 85px)}.at42lc-topic-picker{padding-bottom:5px}.at42lc-form{gap:5px;padding:6px 10px!important}.at42lc-footer{padding:4px}}
@media(prefers-reduced-motion:reduce){.at42lc-launcher{transition:none}}

/* Horaires en accord avec la charte visuelle AutoTruck42. */
.at42lc .at42lc-hours { margin-top:5px; font-size:10px; color:#c9d9ec; }
.at42lc .at42lc-hours summary { display:list-item; cursor:pointer; width:max-content; max-width:100%; font-weight:650; }
.at42lc .at42lc-hours span { display:block; max-width:320px; padding:5px 0 0 12px; line-height:1.5; color:#f3f7ff; }
/* Intégration légère à la page contact, sans modifier son formulaire. */
.at42lc-contact-shortcut { display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:space-between; padding:13px 15px; margin:0 0 18px; border:1px solid #cbdcee; border-left:4px solid #ff7900; border-radius:10px; background:#f3f7fc; font-family:inherit; color:#081d33; }
.at42lc-contact-shortcut strong { font-size:15px; }
.at42lc-contact-shortcut span { flex:1; font-size:12px; color:#506a83; }
.at42lc-contact-shortcut button { padding:9px 15px; border:0; border-radius:7px; background:#ff7900; color:white; font:inherit; font-size:12px; font-weight:800; cursor:pointer; }
.at42lc-contact-shortcut button:hover { background:#e56600; }
@media(max-width:640px) {.at42lc-contact-shortcut { align-items:stretch; flex-direction:column; }.at42lc-contact-shortcut button { align-self:flex-start; }}

/* V3 – assistant IA */
.at42lc-ai-note{display:flex;gap:8px;align-items:flex-start;margin:0 14px 8px;padding:8px 10px;border-radius:9px;background:#f1efff;color:#3b2f86;font-size:11.5px;line-height:1.4}
.at42lc-ai-note[hidden]{display:none}
.at42lc-ai-note span:first-child{color:#6c4ee0;font-size:13px;line-height:1.1}
.at42lc-who{display:block;font-size:10px;font-weight:800;letter-spacing:.02em;text-transform:uppercase;color:#6a7a90;margin-bottom:3px}
.at42lc-bubble--ai{background:#f3f1ff}
.at42lc-bubble--ai .at42lc-who{color:#6c4ee0}
.at42lc-human{width:100%!important;margin-top:7px!important;min-height:36px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;background:#fff!important;color:#20334b!important;border:1px solid #c9d3df!important;border-radius:9px!important;font-weight:700!important;font-size:12.5px!important;cursor:pointer}
.at42lc-human[hidden]{display:none!important}
.at42lc-human:hover,.at42lc-human:focus-visible{border-color:var(--at42lc-accent)!important;color:var(--at42lc-accent)!important}
.at42lc-typing{align-self:flex-start;display:inline-flex;gap:4px;padding:10px 12px;border-radius:14px 14px 14px 4px;background:#f3f1ff}
.at42lc-typing span{width:6px;height:6px;border-radius:50%;background:#6c4ee0;opacity:.35;animation:at42lc-typing 1.1s infinite ease-in-out}
.at42lc-typing span:nth-child(2){animation-delay:.18s}
.at42lc-typing span:nth-child(3){animation-delay:.36s}
@keyframes at42lc-typing{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){.at42lc-typing span{animation:none;opacity:.7}}

/* V3 – envoyer un message par e-mail */
.at42lc-mail-open{background:none!important;border:0!important;padding:0!important;color:inherit!important;font:inherit!important;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.at42lc-mailform{display:flex;flex-direction:column;gap:7px;margin:0 14px 10px;padding:11px;border:1px solid #dbe3ec;border-radius:10px;background:#fbfcfe}
.at42lc-mailform[hidden],.at42lc-form[hidden]{display:none!important}
.at42lc-mailform strong{font-size:13px;color:#20334b}
.at42lc-mailform input:not(.at42lc-trap),.at42lc-mailform textarea{width:100%;box-sizing:border-box;border:1px solid #c9d3df;border-radius:8px;padding:8px 10px;font-size:12.5px;font-family:inherit;resize:vertical}
.at42lc-mail-actions{display:flex;gap:8px;justify-content:flex-end}
.at42lc-mail-cancel,.at42lc-mail-send{border-radius:8px!important;padding:7px 14px!important;font-weight:700!important;font-size:12.5px!important;cursor:pointer}
.at42lc-mail-cancel{background:#fff!important;border:1px solid #c9d3df!important;color:#20334b!important}
.at42lc-mail-send{background:var(--at42lc-accent)!important;border:0!important;color:#fff!important}
.at42lc-mail-status{font-size:12px;color:#a3121b}
.at42lc-mail-status--ok{color:#1f7a45}

/* V3 – choix rapides (commandes, connexion) */
.at42lc-choices{align-self:stretch;display:flex;flex-direction:column;gap:6px;padding:10px;border:1px solid #dbe3ec;border-radius:12px;background:#fff}
.at42lc-choices strong{font-size:12.5px;color:#20334b;margin-bottom:2px}
.at42lc-choice{display:flex;flex-direction:column;align-items:flex-start;gap:1px;width:100%;text-align:left;border:1px solid var(--at42lc-accent)!important;border-radius:9px!important;background:#fff8f2!important;color:#20334b!important;padding:7px 10px!important;font-size:12.5px!important;font-weight:700!important;cursor:pointer;text-decoration:none!important}
.at42lc-choice small{font-weight:400;font-size:11px;color:#5b6b80}
.at42lc-choice:hover,.at42lc-choice:focus-visible{background:#ffefe0!important}
.at42lc-choice--secondary{border-color:#c9d3df!important;background:#fff!important;font-weight:600!important}

/* V3 – en-tête compact, zone de discussion agrandie */
.at42lc-panel{height:min(780px,calc(100dvh - 96px));width:400px}
.at42lc-head{align-items:center;padding:9px 12px 9px 15px;border-top-width:2px}
.at42lc-headline{font-size:13.5px;margin:0}
.at42lc-availability{margin-top:2px}
.at42lc-hours{display:inline-block;margin-top:2px}
.at42lc-hours summary{font-size:10.5px}
.at42lc-intro{display:none}
.at42lc-ai-note{margin:8px 12px 6px;padding:6px 9px;font-size:11px;line-height:1.35}
.at42lc-topic-picker{display:flex;gap:6px;padding:0 12px 8px;overflow-x:auto}
.at42lc-topic{flex:1 1 0;flex-direction:row!important;gap:6px!important;min-height:34px!important;padding:5px 8px!important;border-radius:999px!important;box-shadow:none!important;white-space:nowrap}
.at42lc-topic span{font-size:14px}
.at42lc-topic strong{font-size:11px;line-height:1.15}
.at42lc-topic strong br{display:none}
.at42lc-topic-picker--compact .at42lc-topic{min-height:30px!important}
.at42lc-product{margin:0 12px 6px;padding:5px 10px}
.at42lc-product strong{font-size:12px}
.at42lc-messages{min-height:220px;padding:10px 12px}
.at42lc-empty{background:#f3f1ff;color:#3b2f86;border-radius:12px;padding:10px 12px;margin:0 0 auto;text-align:left;font-size:12.5px;line-height:1.45}
.at42lc-form{padding:8px 12px!important;gap:6px}
.at42lc-form textarea{min-height:44px!important}
.at42lc-send{min-height:36px!important}
.at42lc-footer{padding:5px 12px 7px;gap:3px}
.at42lc-privacy{font-size:10px}
@media(max-width:480px){.at42lc-panel{width:calc(100vw - 22px);height:calc(100dvh - 80px)}.at42lc-topic strong{font-size:10.5px}}

.at42lc-topic-picker{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}
.at42lc-topic{white-space:normal;justify-content:center!important;text-align:center!important;border-radius:10px!important}

/* La fenêtre du chat ne recouvre plus l'en-tête du site (logo, compte, panier). */
.at42lc-panel{height:min(700px,calc(100dvh - 215px));min-height:380px}
@media(max-width:480px){.at42lc-panel{height:calc(100dvh - 80px);min-height:0}}

/* La flèche « remonter » du thème passe au-dessus du bouton du chat au lieu d'être cachée derrière. */
body:has(#at42lc) .at42-floating-tools{bottom:86px!important;transition:bottom .2s ease}
@media(max-width:480px){body:has(#at42lc) .at42-floating-tools{bottom:70px!important}}
