/**
 * Header de la boutique "New Shop" : logo, Devis, Votre compte, Panier.
 * Charge uniquement sur le catalogue et la fiche produit du template.
 */

.tvmf-header {
	--tvmf-ink: #111111;
	--tvmf-line: #e3e3e3;
	--tvmf-accent: #b08d57;

	position: relative;
	z-index: 100;
	background: #ffffff;
	border-bottom: 1px solid var(--tvmf-line);
}

.tvmf-header *,
.tvmf-header *::before,
.tvmf-header *::after {
	box-sizing: border-box;
}

/* Divi decale le contenu pour son header fixe, absent ici. */
.tvmf-has-shop-header #page-container {
	padding-top: 0 !important;
}

.tvmf-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	width: 100%;
	max-width: 1360px;
	min-height: 84px;
	margin: 0 auto;
	padding: 14px 24px;
}

/* --- Logo --- */

.tvmf-header__logo {
	display: block;
	flex: 0 1 auto;
	min-width: 0;
}

.tvmf-header__logo img {
	display: block;
	width: auto;
	max-width: 260px;
	height: 52px;
}

/* --- Devis / Votre compte / Panier --- */

.tvmf-header__actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.tvmf-header__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	border: 1px solid var(--tvmf-ink);
	background: #ffffff;
	color: var(--tvmf-ink);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.tvmf-header__btn:hover,
.tvmf-header__btn:focus-visible {
	background: var(--tvmf-ink);
	color: #ffffff;
}

.tvmf-header__btn:focus-visible {
	outline: 2px solid var(--tvmf-accent);
	outline-offset: 2px;
}

.tvmf-header__btn--solid {
	background: var(--tvmf-ink);
	color: #ffffff;
}

.tvmf-header__btn--solid:hover,
.tvmf-header__btn--solid:focus-visible {
	background: #333333;
	color: #ffffff;
}

.tvmf-header__icon {
	flex: 0 0 auto;
}

.tvmf-header__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 50px;
	background: var(--tvmf-accent);
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.tvmf-header__count.is-empty {
	background: rgba(255, 255, 255, 0.2);
}

/* --- Responsive --- */

@media (max-width: 980px) {
	.tvmf-header__inner {
		min-height: 72px;
		padding: 12px 20px;
	}

	.tvmf-header__logo img {
		max-width: 200px;
		height: 42px;
	}
}

/* Sur mobile, les boutons ne gardent que leur pictogramme. */
@media (max-width: 767px) {
	.tvmf-header__inner {
		gap: 12px;
		min-height: 64px;
		padding: 10px 16px;
	}

	.tvmf-header__logo img {
		max-width: 150px;
		height: 34px;
	}

	.tvmf-header__actions {
		gap: 6px;
	}

	.tvmf-header__btn {
		gap: 6px;
		padding: 9px 10px;
	}

	.tvmf-header__label {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}
}
