/* Louis, bulle de l'assistant — v5 (06/12/2026), mobile d'abord : moins de boutons, une seule action par reponse, clavier pris en compte.
   Historique : v4 epuree. Tokens du site : encre #21141F, papier #F7EFE6, accent #FF8DB1, marque #E82B67.
   Quatre zones seulement : en-tete, conversation, raccourcis, saisie. Une entree au chargement (le bouton), une ouverture, une arrivee par message.
   Tout mouvement s'eteint sous prefers-reduced-motion. */
.lou-botlaunch,.lou-botpanel,.lou-botpanel *{box-sizing:border-box}
.lou-botlaunch{position:fixed;right:20px;bottom:88px;z-index:70;display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:0 20px 0 16px;border-radius:999px;border:1px solid rgba(255,141,177,.5);background:#21141F;color:#F7EFE6;font:600 14px/1 inherit;font-family:inherit;cursor:pointer;box-shadow:0 10px 30px rgba(18,8,16,.45);transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s,border-color .25s;animation:lou-rise .7s cubic-bezier(.2,.8,.2,1) 1.1s both}
.lou-botlaunch::before{content:"";width:9px;height:9px;border-radius:50%;background:#FF8DB1;flex:none;animation:lou-pulse 2.8s ease-out 2s infinite}
.lou-botlaunch:hover{transform:translateY(-2px);border-color:#FF8DB1;box-shadow:0 16px 38px rgba(18,8,16,.55)}
.lou-botlaunch:active{transform:scale(.98)}
.lou-botlaunch[aria-expanded="true"]::before{animation:none}
.lou-botlaunch:focus-visible,.lou-botpanel :focus-visible{outline:2px solid #FF8DB1;outline-offset:3px}

.lou-botpanel{position:fixed;right:20px;bottom:152px;z-index:71;width:384px;max-width:calc(100vw - 24px);height:min(620px,calc(100dvh - 176px));display:flex;flex-direction:column;overflow:hidden;border-radius:22px;background:#FDFAF6;color:#21141F;font:15px/1.5 inherit;font-family:inherit;box-shadow:0 30px 80px rgba(18,8,16,.5),0 0 0 1px rgba(114,90,104,.28);transform-origin:calc(100% - 60px) 100%;animation:lou-pop .3s cubic-bezier(.2,.9,.25,1) both}
.lou-botpanel[hidden]{display:none}

.lou-bothead{flex:none;display:flex;align-items:center;gap:12px;padding:14px 12px 14px 16px;background:#21141F;color:#F7EFE6}
.lou-bothead::before{content:"L";flex:none;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#FF8DB1;color:#21141F;font:600 17px/1 "Bodoni Moda",Didot,serif}
.lou-bothead>div{flex:1;min-width:0}
.lou-bothead b{display:block;font-size:15.5px;font-weight:600;line-height:1.25}
.lou-bothead small{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.lou-bothead button{flex:none;width:36px;height:36px;border-radius:50%;border:0;background:rgba(247,239,230,.1);color:#F7EFE6;font-size:19px;line-height:1;cursor:pointer;transition:background .2s}
.lou-bothead button:hover{background:rgba(247,239,230,.2)}

.lou-botlog{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 16px 8px;display:flex;flex-direction:column;gap:10px;scrollbar-width:thin;scrollbar-color:#E2D3D9 transparent}
.lou-bubble{max-width:90%;padding:11px 14px;border-radius:18px 18px 18px 6px;background:#fff;color:#21141F;font-size:15px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;align-self:flex-start;box-shadow:0 0 0 1px rgba(114,90,104,.13);animation:lou-msg .32s cubic-bezier(.2,.8,.2,1) both}
.lou-bubble.user{align-self:flex-end;border-radius:18px 18px 6px 18px;background:#21141F;color:#F7EFE6;box-shadow:none}
.lou-bubble a{display:inline-block;margin:10px 8px 0 0;padding:5px 11px;border-radius:999px;background:#F6ECEA;color:#21141F;font-size:12.5px;font-weight:500;text-decoration:none;transition:background .2s}
.lou-bubble a:hover{background:#FF8DB1}
.lou-bubble a.lou-inline{display:inline;margin:0;padding:0;border-radius:0;background:none;font-size:inherit;font-weight:600;color:#C21E55;text-decoration:underline;text-underline-offset:3px}
.lou-bubble.lou-typing{display:inline-flex;gap:5px;align-items:center;padding:15px 16px}
.lou-bubble.lou-typing i{width:6px;height:6px;border-radius:50%;background:#B79AA8;animation:lou-dot 1.1s ease-in-out infinite}
.lou-bubble.lou-typing i:nth-child(2){animation-delay:.15s}.lou-bubble.lou-typing i:nth-child(3){animation-delay:.3s}

/* Raccourcis : tous visibles a l'ouverture, puis une seule ligne defilable une fois la conversation lancee. */
.lou-botsuggest{flex:none;display:flex;flex-wrap:wrap;gap:8px;padding:8px 16px 14px}
.lou-botpanel.lou-started .lou-botsuggest{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-top:4px;-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent)}
.lou-botsuggest::-webkit-scrollbar{display:none}
.lou-botsuggest button{flex:none;min-height:38px;padding:0 14px;border-radius:999px;border:0;background:#F6ECEA;color:#21141F;font:500 13.5px/1 inherit;font-family:inherit;white-space:nowrap;cursor:pointer;transition:background .2s,color .2s}
.lou-botsuggest button:hover{background:#21141F;color:#F7EFE6}
.lou-botsuggest button:disabled{opacity:.5;cursor:default}

.lou-botform{flex:none;display:flex;gap:6px;align-items:center;margin:0 12px;padding:5px 5px 5px 16px;border-radius:999px;background:#fff;box-shadow:0 0 0 1px rgba(114,90,104,.28);transition:box-shadow .2s}
.lou-botform:focus-within{box-shadow:0 0 0 2px #21141F}
.lou-botform input{flex:1;min-width:0;height:42px;padding:0;border:0;background:transparent;color:#21141F;font:16px/1.2 inherit;font-family:inherit}
.lou-botform input::placeholder{color:#9A8791}
.lou-botform input:focus{outline:none}
.lou-botform button{flex:none;width:42px;height:42px;border-radius:50%;border:0;background:#FF8DB1;color:#21141F;font-size:18px;cursor:pointer;transition:background .2s,opacity .2s,transform .2s}
.lou-botform button:hover{background:#E82B67;color:#fff}
.lou-botform button:disabled,.lou-botform.lou-empty button{opacity:.35;cursor:default}

.lou-botprivacy{order:12;flex:none;margin:0;padding:9px 16px calc(11px + env(safe-area-inset-bottom,0px));color:#A2909A;font-size:11px;line-height:1.35;text-align:center}
#lou-bot-direct-actions,.lou-bothuman{display:none}

@keyframes lou-rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes lou-pop{from{opacity:0;transform:translateY(14px) scale(.95)}to{opacity:1;transform:none}}
@keyframes lou-sheet{from{transform:translateY(100%)}to{transform:none}}
@keyframes lou-msg{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes lou-pulse{0%{box-shadow:0 0 0 0 rgba(255,141,177,.6)}70%,100%{box-shadow:0 0 0 10px rgba(255,141,177,0)}}
@keyframes lou-dot{0%,60%,100%{transform:none;opacity:.5}30%{transform:translateY(-4px);opacity:1}}

@media(max-width:600px),(max-height:520px){
 .lou-botlaunch{right:12px;bottom:82px;min-height:48px}
 html.lou-lock,html.lou-lock body{overflow:hidden}
 .lou-botpanel{left:0;right:0;bottom:0;width:auto;max-width:none;height:auto;max-height:min(78dvh,640px);border-radius:24px 24px 0 0;z-index:72;box-shadow:0 -20px 60px rgba(18,8,16,.45),0 0 0 100vmax rgba(18,8,16,.38);animation:lou-sheet .36s cubic-bezier(.2,.9,.25,1) both;transition:height .32s cubic-bezier(.2,.9,.25,1)}
 .lou-botpanel.lou-started{height:min(78dvh,640px)}
 .lou-botpanel.lou-kb{transition:none;border-radius:20px 20px 0 0}
 .lou-bubble a.lou-page:not(.lou-inline){display:none}
 .lou-bothead{position:relative;padding:20px 12px 12px 16px;touch-action:none}
 .lou-bothead::after{content:"";position:absolute;top:7px;left:50%;width:38px;height:4px;margin-left:-19px;border-radius:2px;background:rgba(247,239,230,.28)}
 .lou-bothead b{font-size:15px}
 .lou-botlog{padding:16px 14px 6px}
 .lou-bubble{max-width:92%;font-size:16px;line-height:1.45}
 /* Raccourcis : quatre au plus, jamais pendant la saisie ni apres la premiere question. */
 .lou-botsuggest{gap:8px;padding:8px 14px 14px}
 .lou-botsuggest button:nth-child(n+5){display:none}
 .lou-botpanel.lou-started .lou-botsuggest,.lou-botpanel.lou-kb .lou-botsuggest{display:none}
 .lou-botpanel.lou-kb .lou-botlog{padding-bottom:10px}
 .lou-botsuggest button{min-height:42px;font-size:14px}
 .lou-botform{margin:0 10px}
 .lou-botprivacy{padding:8px 16px calc(10px + env(safe-area-inset-bottom,0px))}
 .lou-botpanel.lou-kb .lou-botprivacy{padding-bottom:8px}
}
@media(prefers-reduced-motion:reduce){
 .lou-botlaunch,.lou-botlaunch::before,.lou-botpanel,.lou-bubble,.lou-bubble.lou-typing i{animation:none!important;opacity:1;transform:none}
 .lou-botlaunch,.lou-bothead button,.lou-botform,.lou-botform button,.lou-botsuggest button{transition:none}
}
@media print{.lou-botlaunch,.lou-botpanel{display:none}}
.lou-bubble a.lou-act{background:#21141F;color:#F7EFE6}.lou-bubble a.lou-act:hover{background:#E82B67;color:#fff}
.lou-bubble a:not(.lou-inline){display:block;width:fit-content;margin:10px 0 0}
.lou-bubble a:not(.lou-inline)+a:not(.lou-inline){margin-top:6px}
.lou-bubble a.lou-xtra{display:none}.lou-bubble.lou-open a.lou-xtra{display:block}
.lou-bubble button.lou-more{display:block;margin:8px 0 0;padding:4px 0;border:0;background:none;color:#7B6672;font:500 13px/1.2 inherit;font-family:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.lou-bubble.lou-open button.lou-more{display:none}
/* Accueil : les raccourcis suivent directement le message de bienvenue. */
.lou-botpanel:not(.lou-started) .lou-botlog{flex:none;padding-bottom:6px}
.lou-botpanel:not(.lou-started) .lou-botsuggest{flex:1;align-content:flex-start;padding-top:10px}
/* Mobile : zones tactiles de 44 px minimum (recommandation Apple). */
@media(max-width:600px),(max-height:520px){
 .lou-bothead button{width:44px;height:44px}
 .lou-botform{padding-right:4px}.lou-botform button{width:44px;height:44px}
 .lou-botsuggest button{min-height:44px}
 .lou-bubble a:not(.lou-inline){display:flex;align-items:center;min-height:44px;padding:0 16px;font-size:14px}
 .lou-bubble a.lou-page:not(.lou-inline){display:none}
 .lou-bubble.lou-open a.lou-xtra{display:flex}
 .lou-bubble a.lou-xtra{display:none}
 .lou-bubble button.lou-more{min-height:44px;margin:0;padding:0 2px}
}

/* Paysage et ecrans bas avec clavier : en-tete compact, pas de mention sous la saisie, la conversation garde la place. */
@media(max-height:520px){
 .lou-botpanel.lou-kb .lou-bothead{padding:4px 8px 4px 12px}
 .lou-botpanel.lou-kb .lou-bothead::before,.lou-botpanel.lou-kb .lou-bothead::after{display:none}
 .lou-botpanel.lou-kb .lou-bothead b{font-size:14px}
 .lou-botpanel.lou-kb .lou-botprivacy{display:none}
 .lou-botpanel.lou-kb .lou-botlog{padding:8px 14px 4px}
 .lou-botpanel.lou-kb .lou-botform{margin-bottom:6px}
}
/* Telephone en paysage : feuille ancree a droite, pleine hauteur utile. */
@media(min-width:601px) and (max-height:520px){
 .lou-botpanel{left:auto;right:12px;width:min(560px,calc(100% - 24px));max-height:calc(100dvh - 8px)}
 .lou-botpanel.lou-started{height:calc(100dvh - 8px)}
 .lou-botlaunch{right:12px;bottom:12px}
}
.lou-botpanel.lou-kb:not(.lou-started) .lou-botlog{flex:1 1 auto;min-height:0}
