/* WS CTA : bouton d'appel collant. Variables posées par l'extension :
   --wscta-bg, --wscta-fg, --wscta-offset. Classes préfixées .wscta uniquement. */

.wscta .wscta__btn {
	position: fixed;
	z-index: 9990;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-sizing: border-box;
	margin: 0;
	padding: 14px 24px;
	border: 0;
	border-radius: 999px;
	background: var(--wscta-bg, #1F2937);
	color: var(--wscta-fg, #FFFFFF);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	text-decoration: none !important;
	text-transform: none;
	box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .45);
	transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
	-webkit-tap-highlight-color: transparent;
}

.wscta .wscta__btn:hover,
.wscta .wscta__btn:focus-visible {
	color: var(--wscta-fg, #FFFFFF);
	filter: brightness(1.08);
	transform: translateY(-2px);
	box-shadow: 0 14px 32px -10px rgba(0, 0, 0, .5);
}

.wscta .wscta__btn:focus-visible {
	outline: 3px solid var(--wscta-fg, #FFFFFF);
	outline-offset: 3px;
}

.wscta .wscta__icon {
	flex: none;
	width: 20px;
	height: 20px;
}

/* Bouton arrondi (ordinateur, et téléphone en mode « bulle ») */
.wscta--right .wscta__btn { right: 20px; bottom: var(--wscta-offset, 20px); }
.wscta--left .wscta__btn { left: 20px; bottom: var(--wscta-offset, 20px); }

/* Téléphone en mode « barre » (toute la largeur, collée en bas) : ses règles sont
   posées par l'extension dans une media query à la largeur de bascule choisie. */

@media (prefers-reduced-motion: reduce) {
	.wscta .wscta__btn { transition: none; }
	.wscta .wscta__btn:hover,
	.wscta .wscta__btn:focus-visible { transform: none; }
}

@media print {
	.wscta { display: none !important; }
}

/* ==========================================================================
   Format « barre d'offre » : collée en bas, elle arrive après un peu de
   défilement (classe est-visible posée par le script). Sans script, la balise
   noscript la laisse affichée : elle porte le bouton d'appel.
   ========================================================================== */
.wscta--bar .wscta-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	padding: 10px 22px calc(10px + env(safe-area-inset-bottom, 0px));
	background: var(--wscta-bar-bg, #FFFFFF);
	border-top: 1px solid rgba(0, 0, 0, .08);
	box-shadow: 0 -6px 24px rgba(0, 0, 0, .10);
	transform: translateY(115%);
	opacity: 0;
	visibility: hidden;
	transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .35s ease, visibility 0s linear .35s;
}
.wscta--bar .wscta-bar.est-visible {
	transform: none;
	opacity: 1;
	visibility: visible;
	transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .35s ease, visibility 0s;
}
.wscta--bar.wscta--closed .wscta-bar { display: none; }

.wscta-bar__in {
	position: relative;
	display: flex;
	align-items: center;
	gap: 18px;
	width: 100%;
	max-width: 1200px;
}
.wscta-bar__img {
	flex: none;
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 10px;
}
.wscta-bar__txt { flex: 1 1 auto; min-width: 0; }
.wscta-bar p { margin: 0; padding: 0; }
.wscta-bar__title {
	color: var(--wscta-bar-title, #1F2937);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
}
.wscta-bar__text {
	margin-top: 2px !important;
	color: var(--wscta-bar-text, #4B5563);
	font-size: 14.5px;
	line-height: 1.4;
}
.wscta-bar__hl {
	flex: none;
	color: var(--wscta-bar-title, #1F2937);
	font-size: 19px;
	font-weight: 700;
	white-space: nowrap;
}
.wscta-bar__btns { flex: none; }

/* Dans la barre, les boutons ne flottent plus : ils prennent leur place dans la rangée. */
.wscta-bar .wscta__btn {
	position: static;
	box-shadow: none;
	padding: 12px 22px;
}
.wscta-bar .wscta__btn:hover,
.wscta-bar .wscta__btn:focus-visible { transform: none; box-shadow: none; }

.wscta-bar__close {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .06);
	color: #4B5563;
	font: 400 20px/1 sans-serif;
	cursor: pointer;
}
.wscta-bar__close:hover,
.wscta-bar__close:focus-visible { background: rgba(0, 0, 0, .12); color: #111827; }

@media (prefers-reduced-motion: reduce) {
	.wscta--bar .wscta-bar,
	.wscta--bar .wscta-bar.est-visible { transition: none; }
}

/* ==========================================================================
   Deux boutons sur ordinateur (appel + contact) : côte à côte dans la barre,
   l'un au-dessus de l'autre en format bouton. L'appel passe alors en second plan.
   ========================================================================== */
.wscta-bar__btns { display: flex; gap: 10px; align-items: center; }
.wscta .wscta__btn--alt,
.wscta .wscta__btn--alt:hover,
.wscta .wscta__btn--alt:focus-visible {
	background: var(--wscta-bar-bg, #FFFFFF);
	color: var(--wscta-bg, #1F2937);
	box-shadow: inset 0 0 0 2px var(--wscta-bg, #1F2937);
}
.wscta--right .wscta__btn--alt,
.wscta--left .wscta__btn--alt { bottom: calc(var(--wscta-offset, 20px) + 62px); }
