/* Assistant de personnalisation.fr : bulle en bas à droite et fenêtre de discussion. Préfixe pa-. */
.pa-bulle, .pa-fenetre, .pa-depuis-fiche { --pa-marine: #083a60; --pa-ciel: #1f9ad6; --pa-pale: #e8f4fb; --pa-texte: #1b2530; --pa-doux: #5b6773; --pa-filet: #dde6ee;
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; box-sizing: border-box; }
.pa-bulle svg, .pa-fenetre svg, .pa-depuis-fiche svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pa-bulle { position: fixed; right: 20px; bottom: 20px; z-index: 960; display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px;
	background: var(--pa-marine); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 10px 28px rgba(8, 58, 96, .28); transition: transform .2s, bottom .25s; }
.pa-bulle:hover { transform: translateY(-2px); }
.pa-bulle--ouverte { display: none; }
/* au-dessus de la barre fixe de la fiche (perso-boutique) ; le bouton « haut de page » du thème monte au-dessus de la bulle */
body.pb-barre-active .pa-bulle { bottom: 92px; }
body.pa-present #scroll-top { bottom: 84px !important; }
body.pa-present.pb-barre-active #scroll-top { bottom: 156px !important; }

.pa-fenetre { position: fixed; right: 20px; bottom: 20px; z-index: 99970; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 40px)); display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--pa-filet); border-radius: 16px; overflow: hidden; color: var(--pa-texte); box-shadow: 0 24px 60px rgba(8, 58, 96, .25); }
.pa-fenetre[hidden] { display: none; }
.pa-tete { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 16px; background: var(--pa-marine); color: #fff; }
.pa-tete > div { flex: 1; min-width: 0; }
.pa-tete b { display: block; font-size: 15px; }
.pa-tete small { font-size: 12.5px; opacity: .8; }
.pa-tete__icone { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: grid; place-items: center; flex: none; }
.pa-tete button { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.pa-tete button:hover { background: rgba(255, 255, 255, .14); }
.pa-fil { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f7fafc; }
.pa-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.pa-msg p { margin: 0 0 6px; } .pa-msg p:last-child { margin-bottom: 0; }
.pa-msg ul { margin: 4px 0 6px; padding-left: 18px; list-style: disc; } .pa-msg li { margin: 2px 0; }
.pa-msg a { color: var(--pa-marine); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pa-msg--assistant { align-self: flex-start; background: #fff; border: 1px solid var(--pa-filet); border-bottom-left-radius: 4px; }
.pa-msg--visiteur { align-self: flex-end; background: var(--pa-marine); color: #fff; border-bottom-right-radius: 4px; }
.pa-cartes { display: grid; gap: 6px; margin-top: 8px; }
.pa-carte { display: flex; gap: 10px; align-items: center; padding: 6px; border: 1px solid var(--pa-filet); border-radius: 10px; background: #fff; text-decoration: none !important; color: var(--pa-texte) !important; font-weight: 400 !important; }
.pa-carte:hover { border-color: var(--pa-ciel); }
.pa-carte img { width: 52px; height: 52px; object-fit: contain; border-radius: 6px; flex: none; }
.pa-carte b { display: block; font-size: 13px; line-height: 1.3; color: var(--pa-marine); }
.pa-carte small { font-size: 12px; color: var(--pa-doux); }
.pa-attente { display: flex; gap: 5px; padding: 14px; }
.pa-attente span { width: 7px; height: 7px; border-radius: 50%; background: var(--pa-doux); animation: pa-point 1s infinite ease-in-out; }
.pa-attente span:nth-child(2) { animation-delay: .15s; } .pa-attente span:nth-child(3) { animation-delay: .3s; }
@keyframes pa-point { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.pa-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px; background: #f7fafc; }
.pa-suggestions:not(:empty) { padding-bottom: 10px; }
.pa-suggestions button { padding: 7px 12px; border: 1px solid var(--pa-ciel); border-radius: 999px; background: #fff; color: var(--pa-marine); font: inherit; font-size: 13px; cursor: pointer; }
.pa-suggestions button:hover { background: var(--pa-pale); }
.pa-saisie { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--pa-filet); background: #fff; margin: 0; }
.pa-saisie textarea { flex: 1; min-height: 42px; max-height: 120px; padding: 10px 12px; border: 1px solid var(--pa-filet) !important; border-radius: 12px !important; font: inherit; font-size: 14.5px; line-height: 1.4; resize: none; color: var(--pa-texte); background: #fff; }
.pa-saisie textarea:focus { outline: 2px solid var(--pa-ciel); outline-offset: 0; }
.pa-saisie button { width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: var(--pa-marine); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.pa-mention { margin: 0; padding: 0 14px 10px; background: #fff; font-size: 11.5px; line-height: 1.4; color: var(--pa-doux); }
.pa-mention a { color: var(--pa-marine); font-weight: 600; text-decoration: none; white-space: nowrap; }
/* fiche produit : à côté du téléphone, dans « Une question ? » */
.pa-depuis-fiche { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--pa-ciel); border-radius: 999px; background: #fff; color: var(--pa-marine); font-size: 13px; font-weight: 600; cursor: pointer; }
.pa-depuis-fiche svg { width: 16px; height: 16px; }
.pa-depuis-fiche:hover { background: var(--pa-pale); }

@media (max-width: 600px) {
	.pa-bulle { right: 14px; bottom: 14px; width: 54px; height: 54px; padding: 0; justify-content: center; }
	.pa-bulle span { display: none; }
	.pa-bulle svg { width: 24px; height: 24px; }
	body.pb-barre-active .pa-bulle { bottom: 84px; }
	.pa-fenetre { inset: 0; width: 100%; height: 100%; border-radius: 0; border: 0; }
	body.pa-ouvert { overflow: hidden; }
}
@media print { .pa-bulle, .pa-fenetre, .pa-depuis-fiche { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .pa-bulle { transition: none; } .pa-attente span { animation: none; opacity: .6; } }
