/**
 * Page d'un mobilier (type de contenu "mobilier").
 * Charge uniquement sur single-mobilier.php, sous le header de la boutique.
 */

.tvmf-mobilier {
	--tvmf-ink: #111111;
	--tvmf-text: #666666;
	--tvmf-lead: #444444;
	--tvmf-line: #e3e3e3;
	--tvmf-muted: #8a8a8a;
	--tvmf-surface: #f6f4f1;
	/* Utilise par les cartes du catalogue (.tvmf-card). */
	--tvmf-accent: #b08d57;

	color: var(--tvmf-ink);
}

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

.tvmf-mobilier__intro {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 28px 24px 40px;
	color: var(--tvmf-text);
	font-weight: 300;
}

/* ------------------------------------------------------------------ */
/* Fil d'ariane                                                        */
/* ------------------------------------------------------------------ */

.tvmf-mobilier__crumbs {
	margin-bottom: 40px;
	color: var(--tvmf-muted);
	font-size: 12px;
}

.tvmf-mobilier__crumbs a {
	color: var(--tvmf-muted);
	text-decoration: none;
}

.tvmf-mobilier__crumbs a:hover,
.tvmf-mobilier__crumbs a:focus {
	color: var(--tvmf-ink);
}

.tvmf-mobilier__crumb-sep {
	margin: 0 6px;
}

.tvmf-mobilier__crumb-current {
	color: var(--tvmf-ink);
}

/* ------------------------------------------------------------------ */
/* Titre et description                                                */
/* ------------------------------------------------------------------ */

.tvmf-mobilier__body {
	max-width: 860px;
	margin: 0 auto;
}

.tvmf-mobilier .tvmf-mobilier__title {
	margin: 0 0 20px;
	padding: 0;
	color: var(--tvmf-ink);
	font-size: 42px;
	font-weight: 700;
	line-height: 1.18;
}

/* Ancres vers les sections Realisations et Produits. */
.tvmf-mobilier__anchors {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 10px;
	margin: 4px 0 36px;
}

/* Boutons pleine largeur : le premier plein, les suivants en contour. */
.tvmf-mobilier__anchor {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	padding: 12px 20px;
	border: 1px solid var(--tvmf-ink);
	border-radius: 0;
	background: #ffffff;
	color: var(--tvmf-ink);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

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

.tvmf-mobilier__anchor:first-child {
	background: var(--tvmf-ink);
	color: #ffffff;
}

.tvmf-mobilier__anchor:first-child:hover,
.tvmf-mobilier__anchor:first-child:focus-visible {
	background: #333333;
	border-color: #333333;
}

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

.tvmf-mobilier__anchor svg {
	flex: 0 0 auto;
}

/* Les ancres ne passent pas sous le bord haut de la fenetre. */
.tvmf-mobilier__band {
	scroll-margin-top: 24px;
}

@media (prefers-reduced-motion: no-preference) {
	html:has(.tvmf-mobilier__anchors) {
		scroll-behavior: smooth;
	}
}

.tvmf-mobilier__content {
	font-size: 16px;
	line-height: 1.75;
}

/* Premier paragraphe : le chapeau. */
.tvmf-mobilier__content > p:first-child {
	margin-bottom: 36px;
	color: var(--tvmf-lead);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.65;
}

.tvmf-mobilier__content p {
	margin: 0 0 20px;
	padding: 0;
}

.tvmf-mobilier__content > :last-child {
	margin-bottom: 0;
}

.tvmf-mobilier__content h2,
.tvmf-mobilier__content h3 {
	margin: 0 0 14px;
	padding: 0;
	color: var(--tvmf-ink);
	font-weight: 700;
	line-height: 1.3;
}

.tvmf-mobilier__content h2 {
	font-size: 26px;
}

.tvmf-mobilier__content h3 {
	font-size: 20px;
}

.tvmf-mobilier__content a {
	color: var(--tvmf-ink);
	text-decoration: underline;
}

.tvmf-mobilier__content a:hover,
.tvmf-mobilier__content a:focus {
	color: var(--tvmf-text);
}

.tvmf-mobilier__content ul,
.tvmf-mobilier__content ol {
	margin: 0 0 40px;
	padding-left: 1.4em;
}

.tvmf-mobilier__content figure {
	margin: 0 0 48px;
}

.tvmf-mobilier__content img {
	display: block;
	max-width: 100%;
	height: auto;
	background: var(--tvmf-surface);
}

.tvmf-mobilier__content figcaption {
	margin-top: 10px;
	color: var(--tvmf-muted);
	font-size: 12px;
	text-align: left;
}

/* ------------------------------------------------------------------ */
/* Sections pleine largeur (Produits...)                               */
/* ------------------------------------------------------------------ */

.tvmf-mobilier__band-inner {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 40px 24px 40px;
}

.tvmf-mobilier__band-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 32px;
}

.tvmf-mobilier__eyebrow {
	margin: 0 0 10px;
	padding: 0;
	color: var(--tvmf-muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.1px;
	line-height: 1.4;
	text-transform: uppercase;
}

.tvmf-mobilier .tvmf-mobilier__band-title {
	margin: 0;
	padding: 0;
	color: var(--tvmf-ink);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.25;
}

.tvmf-mobilier__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--tvmf-ink);
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
}

.tvmf-mobilier__more:hover,
.tvmf-mobilier__more:focus {
	color: var(--tvmf-text);
}

/* Trois cartes par rangee, quel que soit leur nombre. */
.tvmf-mobilier__products .tvmf-shop__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

/* Visuels carres, plutot que le format du catalogue. */
.tvmf-mobilier__products .tvmf-card__image img {
	aspect-ratio: 1 / 1;
}

@media (max-width: 980px) {
	.tvmf-mobilier__products .tvmf-shop__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.tvmf-mobilier__products .tvmf-shop__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------------------------------------------ */
/* Realisations                                                        */
/* ------------------------------------------------------------------ */

.tvmf-mobilier__realisations-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.tvmf-realisation-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	color: var(--tvmf-text);
	font-size: 15px;
	line-height: 1.6;
}

.tvmf-realisation-card__image {
	display: block;
	height: 240px;
	overflow: hidden;
	background: var(--tvmf-surface);
}

.tvmf-realisation-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.tvmf-realisation-card:hover .tvmf-realisation-card__image img {
	transform: scale(1.03);
}

.tvmf-mobilier .tvmf-realisation-card__eyebrow {
	margin: 0;
}

.tvmf-mobilier .tvmf-realisation-card__title {
	margin: 0;
	padding: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
}

.tvmf-realisation-card__title a {
	color: var(--tvmf-ink);
	text-decoration: none;
}

.tvmf-realisation-card__title a:hover,
.tvmf-realisation-card__title a:focus {
	text-decoration: underline;
}

.tvmf-mobilier .tvmf-realisation-card__summary {
	margin: 0;
	padding: 0;
	color: var(--tvmf-text);
}

.tvmf-realisation-card__more {
	align-self: flex-start;
	color: var(--tvmf-ink);
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
}

.tvmf-realisation-card__more:hover,
.tvmf-realisation-card__more:focus {
	color: var(--tvmf-text);
}

@media (max-width: 980px) {
	.tvmf-mobilier__realisations-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.tvmf-mobilier__realisations-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.tvmf-mobilier__band-inner {
		padding: 56px 16px;
	}

	.tvmf-mobilier .tvmf-mobilier__band-title {
		font-size: 24px;
	}

	.tvmf-mobilier__intro {
		padding: 20px 16px 56px;
	}

	.tvmf-mobilier__crumbs {
		margin-bottom: 28px;
	}

	.tvmf-mobilier .tvmf-mobilier__title {
		font-size: 30px;
	}

	.tvmf-mobilier__content > p:first-child {
		font-size: 16px;
	}

	.tvmf-mobilier__content h2 {
		font-size: 22px;
	}
}

/* ------------------------------------------------------------------ */
/* Bloc commun en bas de page (contenu du post 340909)                 */
/* ------------------------------------------------------------------ */

/* Largeur et marges : celles de .tvmf-mobilier__band-inner.
   Sections et rangees Divi du contenu : alignees sur ce conteneur, au
   lieu de leur propre largeur (80 %, 1080 px max) et de leurs marges. */
.tvmf-mobilier-footer .et_pb_section {
	padding-right: 0;
	padding-left: 0;
}

.tvmf-mobilier-footer .et_pb_row {
	width: 100%;
	max-width: none;
}
