/**
 * Éléments publics réutilisables — VWEB Réglages Entreprise
 * Horaires, bouton fiche Google, bloc NAP.
 * Feuille volontairement légère, chargée sur tout le site.
 */

/* ======================================================================
 * Horaires
 * =================================================================== */

.vw-horaires {
	--vw-h-encre: currentColor;
	--vw-h-douce: currentColor;

	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 15px;
	line-height: 1.45;
	max-width: 340px;
}

.vw-horaires li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

.vw-horaires-jour {
	font-weight: 600;
	white-space: nowrap;
	color: var(--vw-h-encre);
}

.vw-horaires-heure {
	white-space: nowrap;
	text-align: right;
	color: var(--vw-h-douce);
	font-variant-numeric: tabular-nums;
}

.vw-horaires .vw-horaires-ferme .vw-horaires-heure {
	opacity: 0.6;
}

/* Variante blanche, forcée : les thèmes imposent souvent leur couleur de texte. */
.vw-horaires--blanc,
.vw-horaires--blanc li,
.vw-horaires--blanc .vw-horaires-jour,
.vw-horaires--blanc .vw-horaires-heure {
	color: #ffffff !important;
}

.vw-horaires--blanc .vw-horaires-ferme .vw-horaires-heure {
	color: rgba(255, 255, 255, 0.62) !important;
	opacity: 1;
}

/* Version complète : une ligne par jour, un filet discret entre elles. */
.vw-horaires--complet,
.vw-horaires--tableau {
	gap: 0;
	max-width: 380px;
}

.vw-horaires--complet li,
.vw-horaires--tableau li {
	padding: 7px 0;
	border-bottom: 1px solid currentColor;
	border-bottom-color: rgba(128, 128, 128, 0.22);
}

.vw-horaires--complet li:last-child,
.vw-horaires--tableau li:last-child {
	border-bottom: 0;
}

/* ======================================================================
 * Bouton « Notre fiche Google »
 * =================================================================== */

/* Accroche affichée au-dessus du bouton. Disparaît avec lui si le lien manque. */
.vw-google-bloc {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.vw-google-bloc--centre {
	align-items: center;
	text-align: center;
}

.vw-google-bloc--droite {
	align-items: flex-end;
	text-align: right;
}

/*
 * Taille verrouillée : les thèmes et les widgets Elementor imposent volontiers
 * leur propre échelle typographique aux paragraphes qu'ils contiennent.
 */
.vw-google-bloc .vw-google-titre {
	margin: 0 !important;
	font-size: var(--vw-google-taille, 15px) !important;
	font-weight: 600 !important;
	line-height: 1.45 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}

.vw-google-titre--blanc {
	color: #ffffff !important;
}

.vw-btn-google {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 24px;
	border-radius: 9px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none !important;
	border: 1px solid transparent;
	transition: box-shadow 0.15s ease, transform 0.08s ease, background-color 0.15s ease;
	max-width: 100%;
}

.vw-btn-google .vw-icone-google {
	flex: 0 0 auto;
	display: block;
}

.vw-btn-google span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vw-btn-google:active {
	transform: translateY(1px);
}

.vw-btn-google:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* Clair : fond blanc, texte sombre — lisible sur un fond foncé. */
.vw-btn-google--clair,
.vw-btn-google--clair:link,
.vw-btn-google--clair:visited,
.vw-btn-google--clair:hover,
.vw-btn-google--clair:focus,
.vw-btn-google--clair:active {
	background-color: #ffffff !important;
	color: #1a1a1c !important;
	border-color: #ffffff !important;
}

.vw-btn-google--clair:hover {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

/* Sombre : l'inverse, pour un fond clair. */
.vw-btn-google--sombre,
.vw-btn-google--sombre:link,
.vw-btn-google--sombre:visited,
.vw-btn-google--sombre:hover,
.vw-btn-google--sombre:focus,
.vw-btn-google--sombre:active {
	background-color: #1a1a1c !important;
	color: #ffffff !important;
	border-color: #1a1a1c !important;
}

.vw-btn-google--sombre:hover {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Contour : transparent, bordure fine, prend la couleur du texte environnant. */
.vw-btn-google--contour,
.vw-btn-google--contour:link,
.vw-btn-google--contour:visited,
.vw-btn-google--contour:hover,
.vw-btn-google--contour:focus,
.vw-btn-google--contour:active {
	background-color: transparent !important;
	color: inherit !important;
	border-color: currentColor !important;
}

.vw-btn-google--contour:hover {
	background-color: rgba(128, 128, 128, 0.12) !important;
}

/* ======================================================================
 * Bloc de coordonnées complet  [vw_bloc_contact]
 * =================================================================== */

.vw-contact {
	--vw-c-accent: var(--e-global-color-accent, #e8a33d);
	--vw-c-rayon: 10px;
	--vw-c-largeur: 620px;

	box-sizing: border-box;
	max-width: var(--vw-c-largeur);
	margin-left: auto;
	margin-right: auto;
	overflow: hidden;
	border-radius: var(--vw-c-rayon);
}

/*
 * Écran large : la fiche et la carte se placent côte à côte, chacune sur la
 * moitié de la largeur. En dessous de 900 px, tout revient en colonne.
 */
@media (min-width: 900px) {
	.vw-contact--horizontal {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: stretch;
	}

	.vw-contact--horizontal .vw-contact-fiche {
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 46px 42px;
	}

	.vw-contact--horizontal .vw-contact-map {
		height: 100%;
		min-height: var(--vw-map-h, 230px);
	}

	.vw-contact--carte-gauche .vw-contact-map {
		order: -1;
	}
}

@media (min-width: 1200px) {
	.vw-contact--horizontal .vw-contact-fiche {
		padding: 54px 52px;
	}
}

.vw-contact *,
.vw-contact *::before,
.vw-contact *::after {
	box-sizing: border-box;
}

.vw-contact--sombre {
	--vw-c-fond: #1d1d1f;
	--vw-c-encre: #ffffff;
	--vw-c-douce: #b4b4b8;
	--vw-c-bord: rgba(255, 255, 255, 0.16);
	--vw-c-btn-fond: rgba(255, 255, 255, 0.09);
}

.vw-contact--clair {
	--vw-c-fond: #f5f5f4;
	--vw-c-encre: #1a1a1c;
	--vw-c-douce: #5d5d63;
	--vw-c-bord: rgba(0, 0, 0, 0.12);
	--vw-c-btn-fond: rgba(0, 0, 0, 0.06);
}

.vw-contact-fiche {
	background: var(--vw-c-fond);
	color: var(--vw-c-encre);
	padding: 36px 28px 32px;
	text-align: center;
}

.vw-contact-surtitre {
	margin: 0 0 10px;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--vw-c-douce);
}

.vw-contact-titre {
	margin: 0 0 6px;
	color: var(--vw-c-encre);
	font-size: clamp(21px, 2.2vw, 27px);
	line-height: 1.25;
	font-weight: 700;
}

.vw-contact-metier {
	margin: 0 0 20px;
	color: var(--vw-c-douce);
	font-size: 15px;
}

.vw-contact-adresse {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0 0 22px;
	font-style: normal;
	font-size: 16px;
	line-height: 1.5;
	color: var(--vw-c-encre);
}

.vw-contact-raison {
	font-weight: 600;
}

/* Le téléphone est l'élément dominant du bloc. */
.vw-contact-tel,
.vw-contact-tel:link,
.vw-contact-tel:visited,
.vw-contact-tel:hover,
.vw-contact-tel:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0 0 6px;
	color: var(--vw-c-encre) !important;
	font-size: clamp(28px, 4.4vw, 40px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-decoration: none !important;
	white-space: nowrap;
}

.vw-contact-tel:hover {
	color: var(--vw-c-accent) !important;
}

.vw-contact-tel-icone {
	flex: 0 0 auto;
	color: var(--vw-c-accent);
	width: 0.65em;
	height: 0.65em;
}

.vw-contact-urgence {
	margin: 0 0 16px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--vw-c-accent);
}

.vw-contact-tel2,
.vw-contact-mail {
	margin: 0 0 6px;
	font-size: 15px;
	color: var(--vw-c-douce);
}

.vw-contact-tel2 a,
.vw-contact-mail a {
	color: var(--vw-c-encre);
	text-decoration: none;
	border-bottom: 1px solid var(--vw-c-bord);
}

.vw-contact-tel2 a:hover,
.vw-contact-mail a:hover {
	color: var(--vw-c-accent);
	border-bottom-color: currentColor;
}

.vw-contact-etiquette {
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: 700;
	color: var(--vw-c-douce);
	margin-right: 7px;
}

.vw-contact-etiquette--bloc {
	display: block;
	margin: 0 0 9px;
}

.vw-contact-horaires {
	margin: 22px auto 0;
	padding-top: 20px;
	border-top: 1px solid var(--vw-c-bord);
	max-width: 300px;
}

.vw-contact-horaires .vw-horaires {
	margin: 0 auto;
	font-size: 14.5px;
}

.vw-contact-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 24px;
	padding-top: 22px;
	border-top: 1px solid var(--vw-c-bord);
}

.vw-contact-btn,
.vw-contact-btn:link,
.vw-contact-btn:visited,
.vw-contact-btn:hover,
.vw-contact-btn:focus,
.vw-contact-btn:active {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border-radius: 9px;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	background-color: var(--vw-c-btn-fond) !important;
	color: var(--vw-c-encre) !important;
	border: 1px solid var(--vw-c-bord) !important;
	box-shadow: none !important;
	transition: filter 0.15s ease, transform 0.08s ease;
}

.vw-contact-btn--principal,
.vw-contact-btn--principal:link,
.vw-contact-btn--principal:visited,
.vw-contact-btn--principal:hover,
.vw-contact-btn--principal:focus,
.vw-contact-btn--principal:active {
	background-color: var(--vw-c-accent) !important;
	border-color: var(--vw-c-accent) !important;
	/* Blanc forcé en permanence, quel que soit le thème du site. */
	color: #ffffff !important;
}

.vw-contact-btn:hover {
	filter: brightness(1.1);
}

.vw-contact-btn:active {
	transform: translateY(1px);
}

.vw-contact .vw-btn-google {
	padding: 12px 22px;
	font-size: 14.5px;
	font-weight: 600;
}

@media (max-width: 479px) {
	.vw-contact-fiche {
		padding: 28px 18px 26px;
	}

	.vw-contact-actions {
		flex-direction: column;
	}

	.vw-contact-btn,
	.vw-contact .vw-btn-google {
		width: 100%;
	}
}

/* --- La carte ---------------------------------------------------------- */

.vw-contact-map {
	height: var(--vw-map-h, 230px);
	line-height: 0;
	background: #e8eaed;
}

.vw-contact-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.vw-contact-map--facade {
	background:
		radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), transparent 55%),
		repeating-linear-gradient(45deg, #e6e8ea 0 13px, #eef0f2 13px 26px);
}

.vw-map-declencheur {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 100%;
	height: 100%;
	padding: 16px;
	border: 0;
	background: transparent;
	color: #2a2a2e;
	font: inherit;
	line-height: 1.45;
	cursor: pointer;
	text-align: center;
}

.vw-map-declencheur:hover {
	background: rgba(255, 255, 255, 0.4);
}

.vw-map-declencheur svg {
	color: #c5221f;
}

.vw-map-titre {
	font-size: 15px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.vw-map-adresse {
	font-size: 13px;
	opacity: 0.75;
}

/* ======================================================================
 * Badge d'appel flottant
 *
 * Ciblé par son identifiant : un sélecteur d'ID l'emporte sur les classes
 * du thème, ce qui évite que la couleur de survol soit écrasée.
 * =================================================================== */

#vw-badge,
#vw-badge:link,
#vw-badge:visited,
#vw-badge:hover,
#vw-badge:focus,
#vw-badge:active {
	position: fixed;
	bottom: calc(var(--vw-badge-bas, 20px) + env(safe-area-inset-bottom, 0px));
	z-index: 9990;

	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;

	margin: 0;
	padding: 14px 24px;
	border-radius: 999px;

	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.01em;
	text-align: center;
	text-decoration: none !important;
	text-transform: none;

	background-color: var(--vw-badge-fond, #8b1a1a) !important;
	background-image: none !important;
	color: var(--vw-badge-encre, #fff) !important;
	border: 0 !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.26) !important;

	transition: background-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

#vw-badge.vw-badge--droite {
	right: 20px;
	left: auto;
}

#vw-badge.vw-badge--gauche {
	left: 20px;
	right: auto;
}

#vw-badge:hover,
#vw-badge:focus {
	background-color: var(--vw-badge-survol, #6f1515) !important;
	color: var(--vw-badge-encre, #fff) !important;
	transform: translateY(-2px);
	box-shadow: 0 7px 22px rgba(0, 0, 0, 0.32) !important;
}

#vw-badge:active {
	transform: translateY(0);
}

#vw-badge:focus-visible {
	outline: 3px solid var(--vw-badge-encre, #fff);
	outline-offset: 3px;
}

#vw-badge .vw-badge-icone {
	flex: 0 0 auto;
	display: block;
	color: currentColor;
}

#vw-badge .vw-badge-texte {
	white-space: nowrap;
}

/* --- Écrans étroits ---------------------------------------------------- */

@media (max-width: 600px) {
	/* Compact : même bouton, en plus discret. */
	#vw-badge.vw-badge--m-compact {
		padding: 11px 17px;
		font-size: 13.5px;
		gap: 7px;
		box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3) !important;
	}

	#vw-badge.vw-badge--m-compact .vw-badge-icone {
		width: 17px;
		height: 17px;
	}

	#vw-badge.vw-badge--m-compact.vw-badge--droite {
		right: 14px;
	}

	#vw-badge.vw-badge--m-compact.vw-badge--gauche {
		left: 14px;
	}

	/* Rond : pastille icône seule, l'encombrement minimal. */
	#vw-badge.vw-badge--m-rond {
		width: 54px;
		height: 54px;
		padding: 0;
		gap: 0;
	}

	#vw-badge.vw-badge--m-rond .vw-badge-texte {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	#vw-badge.vw-badge--m-rond .vw-badge-icone {
		width: 23px;
		height: 23px;
	}

	#vw-badge.vw-badge--m-rond.vw-badge--droite {
		right: 14px;
	}

	#vw-badge.vw-badge--m-rond.vw-badge--gauche {
		left: 14px;
	}

	/* Barre : pleine largeur en bas d'écran. */
	#vw-badge.vw-badge--m-barre {
		left: 12px;
		right: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom, 0px));
		padding: 15px 18px;
		border-radius: 12px;
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#vw-badge,
	#vw-badge:hover,
	#vw-badge:focus {
		transition: background-color 0.15s ease;
		transform: none;
	}
}

@media print {
	#vw-badge {
		display: none !important;
	}
}

/* ======================================================================
 * Bloc NAP
 * =================================================================== */

.vw-nap {
	display: flex;
	flex-direction: column;
	gap: 4px;
	line-height: 1.5;
}

.vw-nap a {
	color: inherit;
	text-decoration: none;
}

.vw-nap a:hover {
	text-decoration: underline;
}

.vw-villes,
.vw-certifications {
	margin: 0;
	padding-left: 18px;
}
