/* Recherche IA Web-to-Print – fenêtre flottante « Votre sélection » */
.wtp-dock {
	--wtp-accent: #fa027b;
	--wtp-dock-bg: #fff;
	--wtp-dock-ink: #1b1d22;
	--wtp-dock-muted: #6b7280;
	--wtp-dock-rule: #e5e7eb;
	position: fixed;
	right: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 9990;
	width: 360px;
	max-width: calc(100vw - 32px);
	background: var(--wtp-dock-bg);
	color: var(--wtp-dock-ink);
	border: 1px solid var(--wtp-dock-rule);
	border-top: 3px solid var(--wtp-accent);
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
	font-size: 15px;
	line-height: 1.4;
	animation: wtp-dock-in .25s ease-out;
}
.wtp-dock *, .wtp-dock *::before, .wtp-dock *::after { box-sizing: border-box; }
@keyframes wtp-dock-in { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wtp-dock { animation: none; } }

.wtp-dock__head { display: flex; align-items: stretch; }
.wtp-dock .wtp-dock__toggle {
	flex: 1; min-width: 0; display: flex; align-items: center; gap: .7rem;
	padding: .75rem .4rem .75rem .9rem; margin: 0;
	background: none; border: 0; border-radius: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
	box-shadow: none; text-transform: none; letter-spacing: normal;
}
.wtp-dock__dots { display: inline-flex; gap: 3px; flex: none; }
.wtp-dock__dots i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.wtp-dock__dots i:nth-child(1) { background: #0299dd; }
.wtp-dock__dots i:nth-child(2) { background: #fa027b; }
.wtp-dock__dots i:nth-child(3) { background: #480379; }
.wtp-dock__label { min-width: 0; display: flex; flex-direction: column; }
.wtp-dock__label small { font-size: .78rem; color: var(--wtp-dock-muted); }
.wtp-dock__label strong { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wtp-dock__count { flex: none; min-width: 1.6rem; height: 1.6rem; padding: 0 .4rem; border-radius: 999px; background: var(--wtp-accent); color: #fff; font-size: .82rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.wtp-dock__chev { flex: none; width: 9px; height: 9px; margin: 0 .3rem 0 .1rem; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(-45deg) translateY(2px); transition: transform .2s; }
.wtp-dock.is-open .wtp-dock__chev { transform: rotate(135deg) translateY(2px); }
.wtp-dock .wtp-dock__close { flex: none; width: 44px; margin: 0; padding: 0; background: none; border: 0; border-left: 1px solid var(--wtp-dock-rule); border-radius: 0; color: var(--wtp-dock-muted); font: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: none; }
.wtp-dock .wtp-dock__close:hover { color: var(--wtp-dock-ink); }
.wtp-dock :focus-visible { outline: 3px solid var(--wtp-accent); outline-offset: -3px; }

.wtp-dock__panel { border-top: 1px solid var(--wtp-dock-rule); max-height: min(60vh, 460px); overflow-y: auto; overscroll-behavior: contain; }
.wtp-dock__list { list-style: none; margin: 0; padding: .3rem 0; }
.wtp-dock__list li { margin: 0; padding: 0; }
.wtp-dock__list a { display: flex; align-items: center; gap: .7rem; padding: .5rem .9rem; color: inherit; text-decoration: none; }
.wtp-dock__list a:hover { background: color-mix(in srgb, var(--wtp-accent) 7%, transparent); }
.wtp-dock__list li.is-current a { background: color-mix(in srgb, var(--wtp-accent) 10%, transparent); }
.wtp-dock__list img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; flex: none; }
.wtp-dock__info { min-width: 0; display: flex; flex-direction: column; }
.wtp-dock__name { font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wtp-dock__meta { display: flex; flex-wrap: wrap; gap: .1rem .6rem; font-size: .8rem; color: var(--wtp-dock-muted); }
.wtp-dock__meta b { color: var(--wtp-accent); font-weight: 600; }
.wtp-dock__meta em { font-style: normal; font-weight: 600; color: #1e8a4c; }

.wtp-dock__gammes { display: flex; flex-direction: column; gap: .4rem; padding: .4rem .9rem .2rem; }
.wtp-dock__gamme { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; padding: .55rem .7rem; border: 1px dashed var(--wtp-dock-rule); border-radius: 5px; color: inherit; text-decoration: none; font-size: .88rem; font-weight: 600; }
.wtp-dock__gamme:hover { border-color: var(--wtp-accent); }
.wtp-dock__gamme small { font-weight: 400; color: var(--wtp-dock-muted); white-space: nowrap; }

.wtp-dock__back { display: block; margin: .5rem .9rem .9rem; padding: .65rem; border-radius: 5px; background: var(--wtp-accent); color: #fff; text-align: center; font-weight: 700; text-decoration: none; }
.wtp-dock__back:hover { filter: brightness(1.08); color: #fff; }

@media (max-width: 640px) {
	.wtp-dock { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; }
	.wtp-dock__panel { max-height: 55vh; }
}
@media print { .wtp-dock { display: none; } }
