/* ==========================================================================
   ETM — feuille principale
   Mobile d'abord. Paliers : 600 (grand mobile), 900 (tablette), 1100 (desktop).
   Charte : navy + blanc + sable, orange réservé à l'action principale (~10 %).
   ========================================================================== */

/* ---------------------------------------------------------------- jetons */
:root {
	--navy: #222752;
	--navy-900: #161A3A;
	--navy-700: #252B5C;
	--encre: #12152E;
	--texte: #12152E;
	--texte-2: #3E4258;
	--muet: #555A6E;
	--sable: #ECE8E0;
	--sable-200: #DDD6C9;
	--sable-300: #CFC8B9;
	--sable-50: #F4F1EB;
	--acier: #8C9BB8;
	--orange: #E84622;
	--orange-texte: #B3321A; /* texte orange lisible sur blanc et sable (≥ 4,9:1) */
	--orange-fond: #D33D1D; /* orange des boutons à texte blanc : contraste 4,7:1 (accessibilité AA) */
	--vert: #1E7A46;
	--whatsapp: #25D366;
	--blanc: #FFFFFF;

	--f-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--f-cond: 'IBM Plex Sans Condensed', 'IBM Plex Sans', 'Arial Narrow', sans-serif;
	--f-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

	--gouttiere: 16px;
	--conteneur: 1280px;
	--entete-h: 64px;
	--ombre: 0 10px 30px rgba(18, 21, 46, .14);
	--transition: .2s ease;

	/* ETM Devis / ETM Filtres / ETM Vitrine : on leur prête la charte. */
	--etm-accent: var(--navy);
	--etm-rayon: 0px;
	--etm-f-accent: var(--navy);
	--etm-f-trait: var(--sable-200);
	--etm-f-rayon: 999px;
	--etmv-navy: var(--navy);
	--etmv-orange: var(--orange);
	--etmv-trait: var(--sable-200);
	--etmv-gris: var(--muet);
}

@media (min-width: 900px) { :root { --gouttiere: 24px; } }
@media (min-width: 1100px) { :root { --gouttiere: 40px; --entete-h: 76px; } }

/* ----------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--entete-h) + 16px); }
body {
	margin: 0;
	background: var(--blanc);
	color: var(--texte);
	font-family: var(--f-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--orange-texte); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.etm-sauter {
	position: absolute; left: 8px; top: -60px; z-index: 1000;
	padding: 10px 16px; background: var(--blanc); color: var(--navy); font-weight: 700;
}
.etm-sauter:focus { top: 8px; }

/* ------------------------------------------------------------ utilitaires */
.etm-conteneur { width: 100%; max-width: var(--conteneur); margin-inline: auto; padding-inline: var(--gouttiere); }
.etm-conteneur--etroit { max-width: 780px; }
.etm-section { padding-block: 48px; }
@media (min-width: 900px) { .etm-section { padding-block: 80px; } }

.etm-mono { font-family: var(--f-mono); }

.etm-surtitre {
	display: flex; align-items: center; gap: 12px;
	margin: 0 0 8px;
	font-family: var(--f-mono);
	font-size: 11px; font-weight: 600;
	letter-spacing: .12em; text-transform: uppercase;
	color: var(--muet);
}
.etm-surtitre--clair { color: var(--acier); }

.etm-h1, .etm-h2, .etm-h3 {
	font-family: var(--f-cond);
	font-weight: 700;
	text-transform: uppercase;
	color: var(--navy);
	letter-spacing: -.005em;
}
.etm-h1 { font-size: clamp(30px, 6.5vw, 64px); line-height: 1.02; }
.etm-h2 { font-size: clamp(26px, 4.2vw, 44px); line-height: 1.05; }
.etm-h3 { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.15; }
.etm-clair .etm-h1, .etm-clair .etm-h2, .etm-clair .etm-h3 { color: var(--blanc); }

.etm-chapo { margin-top: 12px; max-width: 640px; font-size: 16px; line-height: 1.6; color: var(--texte-2); }
@media (min-width: 900px) { .etm-chapo { font-size: 18px; } }
.etm-clair .etm-chapo { color: #D9DCE8; }

.etm-pastille {
	display: inline-flex; align-items: center;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--sable);
	font-family: var(--f-mono); font-size: 11px; font-weight: 600;
	letter-spacing: .04em; text-transform: uppercase;
	color: var(--encre);
}

.etm-badge {
	min-width: 18px; height: 18px; padding: 0 5px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 9px;
	background: var(--orange-fond); color: var(--blanc);
	font-size: 11px; font-weight: 700; line-height: 1;
}
.etm-badge.est-anime { animation: etm-pop .45s ease; }
@keyframes etm-pop { 40% { transform: scale(1.35); } }

/* --------------------------------------------------------------- boutons */
.etm-boutons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.etm-bouton {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 0 22px;
	border: 1.5px solid transparent;
	font-size: 15px; font-weight: 700; line-height: 1.2;
	text-align: center;
	transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.etm-bouton--orange { background: var(--orange-fond); color: var(--blanc); }
.etm-bouton--orange:hover { background: #B8341A; color: var(--blanc); }
.etm-bouton--navy { background: var(--navy); color: var(--blanc); }
.etm-bouton--navy:hover { background: var(--navy-900); color: var(--blanc); }
.etm-bouton--contour { border-color: var(--navy); color: var(--navy); background: transparent; }
.etm-bouton--contour:hover { background: var(--navy); color: var(--blanc); }
.etm-bouton--contour-clair { border-color: rgba(255,255,255,.7); color: var(--blanc); }
.etm-bouton--contour-clair:hover { background: var(--blanc); color: var(--navy); }
.etm-bouton--blanc { background: var(--blanc); color: var(--navy); }
.etm-bouton--large { width: 100%; }
@media (max-width: 599px) { .etm-boutons .etm-bouton { width: 100%; } }

/* --------------------------------------------------------------- en-tête */
.etm-entete {
	position: sticky; top: 0; z-index: 900;
	background: var(--navy);
	color: var(--blanc);
}
.admin-bar .etm-entete { top: 46px; }
@media (min-width: 783px) { .admin-bar .etm-entete { top: 32px; } }

.etm-entete__barre {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas: "logo actions" "recherche recherche";
	align-items: center;
	gap: 10px 8px;
	max-width: 1440px; margin-inline: auto;
	padding: 10px var(--gouttiere) 14px;
}
.etm-entete__logo { grid-area: logo; display: block; }
.etm-entete__logo img { height: 34px; width: auto; transition: height var(--transition); }
.etm-entete__nav { display: none; grid-area: nav; }
.etm-entete__recherche { grid-area: recherche; min-width: 0; }
.etm-entete__actions { grid-area: actions; display: flex; align-items: center; justify-content: flex-end; gap: 2px; margin-right: -8px; }

.etm-entete__appeler {
	display: inline-flex; align-items: center; gap: 7px;
	height: 40px; padding: 0 12px;
	border: 1.5px solid rgba(255,255,255,.7);
	color: var(--blanc); font-size: 14px; font-weight: 700;
	white-space: nowrap;
}
.etm-entete__appeler:hover { background: var(--blanc); color: var(--navy); }
.etm-entete__appeler-numero { display: none; font-family: var(--f-mono); font-weight: 600; }
.etm-entete__appeler-legende { display: none; }

.etm-entete__demande {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 44px; height: 44px; padding: 0 6px;
	color: var(--blanc);
}
.etm-entete__demande:hover { color: var(--blanc); opacity: .85; }
.etm-entete__demande-texte { display: none; font-size: 14px; font-weight: 700; }
.etm-entete__demande .etm-badge { position: absolute; top: 3px; right: 1px; }

.etm-entete__burger {
	width: 48px; height: 48px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 0; background: transparent; color: var(--blanc);
}

/* Réduction au défilement (mobile) : une seule ligne. */
@media (max-width: 899px) {
	.etm-entete.est-compact .etm-entete__barre {
		grid-template-columns: auto 1fr auto;
		grid-template-areas: "logo recherche actions";
		padding-block: 6px;
	}
	.etm-entete.est-compact .etm-entete__logo img { height: 28px; }
}

/* Tablette : une ligne, recherche au centre. */
@media (min-width: 900px) {
	.etm-entete__barre {
		grid-template-columns: auto 1fr auto;
		grid-template-areas: "logo recherche actions";
		padding-block: 12px;
		gap: 24px;
	}
	.etm-entete__logo img { height: 40px; }
	.etm-entete__demande-texte { display: inline; }
	.etm-entete__demande .etm-badge { position: static; }
	.etm-entete__demande { padding: 0 10px; }
}

/* Desktop : 3 niveaux (infos · logo + recherche + Ma demande · navigation). */
.etm-entete__infos, .etm-entete__navbar { display: none; }
@media (min-width: 1100px) {
	:root { --infos-h: 38px; }
	/* La barre d'infos défile avec la page, les deux autres niveaux restent collés. */
	.etm-entete { top: calc(-1 * var(--infos-h)); }
	.admin-bar .etm-entete { top: calc(32px - var(--infos-h)); }

	.etm-entete__infos { display: block; background: var(--navy-900); border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; }
	.etm-entete__infos-interieur {
		max-width: 1440px; margin-inline: auto; padding-inline: var(--gouttiere);
		height: var(--infos-h); display: flex; align-items: center; justify-content: space-between; gap: 24px;
	}
	.etm-entete__coordonnees, .etm-entete__liens { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
	.etm-entete__infos a { display: inline-flex; align-items: center; gap: 7px; color: #C9CEDD; white-space: nowrap; }
	.etm-entete__infos a:hover { color: var(--blanc); }
	.etm-entete__infos .etm-icone { color: var(--acier); }
	.etm-entete__infos .etm-mono { font-weight: 600; letter-spacing: .02em; }
	.etm-entete__liens > li + li { padding-left: 22px; border-left: 1px solid rgba(255,255,255,.14); }
	.etm-entete__reseaux { display: flex; gap: 2px; }
	.etm-entete__reseaux a { width: 30px; height: 30px; justify-content: center; }
	.etm-entete__reseaux .etm-icone { color: #C9CEDD; }
	.etm-entete__reseaux a:hover .etm-icone { color: var(--blanc); }
	.etm-entete__reseaux a[aria-label="WhatsApp"] .etm-icone { color: var(--whatsapp); }

	/* Recherche centrée sur la page : logo et actions occupent des colonnes égales de part et d'autre. */
	.etm-entete__barre {
		grid-template-columns: minmax(0, 1fr) minmax(420px, 680px) minmax(0, 1fr);
		grid-template-areas: "logo recherche actions";
		gap: 40px;
		padding-block: 14px;
	}
	.etm-entete__logo { justify-self: start; }
	.etm-entete__logo img { height: 46px; }
	.etm-entete__recherche { width: 100%; }
	.etm-entete__burger { display: none; }
	.etm-entete__actions { justify-self: end; margin-right: 0; gap: 26px; }

	/* Actions condensées, même style : icône + petite légende + valeur. */
	.etm-entete__appeler, .etm-entete__demande {
		display: grid; grid-template-columns: 22px auto; column-gap: 10px; align-items: center;
		height: auto; min-width: 0; padding: 0; border: 0; background: none; color: var(--blanc);
		text-align: left; white-space: nowrap;
	}
	.etm-entete__appeler:hover, .etm-entete__demande:hover { background: none; color: var(--blanc); opacity: 1; }
	.etm-entete__appeler .etm-icone, .etm-entete__demande .etm-icone { grid-row: 1 / 3; grid-column: 1; width: 22px; min-width: 22px; height: 22px; color: var(--acier); transition: color var(--transition); }
	.etm-entete__appeler:hover .etm-icone, .etm-entete__demande:hover .etm-icone { color: var(--orange); }
	.etm-entete__appeler-texte { display: none; }
	.etm-entete__appeler-legende, .etm-entete__demande-texte small { display: block; font-size: 11px; font-weight: 500; line-height: 1.2; color: var(--acier); }
	.etm-entete__appeler-numero { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
	.etm-entete__demande-texte { display: flex; flex-direction: column; font-size: 15px; font-weight: 700; line-height: 1.25; }
	.etm-entete__demande .etm-badge { position: absolute; top: -7px; left: 12px; right: auto; }
	.etm-entete__actions > * + * { padding-left: 26px; border-left: 1px solid rgba(255,255,255,.14); }

	.etm-entete__navbar { display: block; background: var(--navy); border-top: 1px solid rgba(255,255,255,.1); }
	.etm-entete__navbar-interieur { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1440px; margin-inline: auto; padding-inline: calc(var(--gouttiere) - 12px) var(--gouttiere); }
	.etm-entete__nav { display: block; }
	.etm-entete__introuvable { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #C9CEDD; white-space: nowrap; }
	.etm-entete__introuvable strong { color: var(--blanc); }
	.etm-entete__introuvable .etm-icone { color: var(--orange); transition: transform var(--transition); }
	.etm-entete__introuvable:hover { color: var(--blanc); }
	.etm-entete__introuvable:hover .etm-icone { transform: translateX(3px); }
	.etm-nav__liste { gap: 8px; }
	.etm-nav__lien { height: 50px; padding-inline: 12px; }

}
@media (min-width: 1100px) and (max-width: 1279px) {
	.etm-entete__infos-interieur { font-size: 12px; }
	.etm-entete__coordonnees, .etm-entete__liens { gap: 14px; }
	.etm-entete__liens > li + li { padding-left: 14px; }
	.etm-entete__coordonnees li:nth-child(3) { display: none; }
	.etm-entete__introuvable > strong { display: none; }
}

/* ---- Recherche ETM Vitrine dans l'en-tête */
.etm-entete .etmv-rh { width: 100%; }

@media (max-width: 899px) {
	/* La loupe devient un faux champ blanc en pleine largeur. */
	.etm-entete .etmv-rh__loupe {
		width: 100%; height: 48px;
		justify-content: flex-start; gap: 10px;
		padding: 0 16px;
		border: 0; border-radius: 20px;
		background: var(--blanc);
		color: var(--muet);
		font-size: 15px;
	}
	.etm-entete .etmv-rh__loupe::after { content: 'Référence ou nom de pièce…'; }
	.etm-entete .etmv-rh__loupe svg { width: 20px; height: 20px; stroke: var(--navy); }

	.etm-entete.est-compact .etmv-rh__loupe {
		width: 44px; height: 44px; margin-left: auto;
		justify-content: center; padding: 0;
		background: transparent;
	}
	.etm-entete.est-compact .etmv-rh__loupe::after { content: none; }
	.etm-entete.est-compact .etmv-rh__loupe svg { stroke: var(--blanc); }
}

@media (min-width: 900px) {
	.etm-entete .etmv-rh__barre {
		height: 46px;
		border: 0; border-radius: 999px;
		background: var(--blanc);
	}
}

/* ---- Navigation desktop + méga-menu */
.etm-nav__liste { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.etm-nav__lien {
	display: inline-flex; align-items: center; gap: 4px;
	height: 44px; padding: 0 10px;
	border: 0; background: none;
	color: var(--blanc); font-size: 15px; font-weight: 600;
	white-space: nowrap;
}
.etm-nav__lien:hover, .etm-nav__item.est-actif > .etm-nav__lien { color: var(--blanc); box-shadow: inset 0 -2px 0 var(--orange); }
.etm-nav__declencheur[aria-expanded="true"] .etm-icone { transform: rotate(180deg); }

.etm-mega {
	position: absolute; left: 0; right: 0; top: 100%;
	background: var(--blanc); color: var(--texte);
	box-shadow: var(--ombre);
	border-top: 3px solid var(--orange);
}
.etm-mega__interieur {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 24px 36px;
	max-width: var(--conteneur); margin-inline: auto;
	padding: 32px var(--gouttiere) 28px;
}
.etm-mega__titre {
	display: block; margin-bottom: 10px;
	font-family: var(--f-cond); font-size: 18px; font-weight: 700; text-transform: uppercase;
	color: var(--navy);
}
.etm-mega__titre--neutre { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--muet); }
.etm-mega ul { margin: 0; padding: 0; list-style: none; }
.etm-mega li a { display: block; padding: 6px 0; color: var(--texte-2); font-size: 15px; }
.etm-mega li a:hover { color: var(--orange-texte); }
.etm-mega__tout {
	grid-column: 1 / -1;
	display: inline-flex; align-items: center; gap: 10px; justify-self: start;
	padding-top: 16px; border-top: 1px solid var(--sable);
	font-weight: 700; color: var(--navy);
}

/* ---- Tiroir mobile (écrans successifs) */
.etm-tiroir {
	position: fixed; inset: 0; z-index: 1000;
	display: flex; flex-direction: column;
	background: var(--blanc); color: var(--texte);
	animation: etm-glisse .22s ease-out;
}
@keyframes etm-glisse { from { transform: translateX(24px); opacity: 0; } }
.etm-tiroir__haut {
	flex: 0 0 auto;
	display: flex; align-items: center; gap: 4px;
	height: 64px; padding: 0 8px 0 16px;
	border-bottom: 1px solid var(--sable-200);
}
.etm-tiroir__retour { margin-left: -12px; }
.etm-tiroir__retour, .etm-tiroir__fermer {
	width: 48px; height: 48px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 0; background: transparent; color: var(--navy);
}
.etm-tiroir__titre {
	flex: 1; min-width: 0;
	font-family: var(--f-cond); font-size: 20px; font-weight: 700; text-transform: uppercase;
	color: var(--navy);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.etm-tiroir__fil {
	padding: 12px 16px 0;
	font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
	color: var(--muet);
}
.etm-tiroir__corps { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 4px 0 12px; }
.etm-tiroir__panneau.est-entrant { animation: etm-glisse .22s ease-out; }
.etm-tiroir__liste { margin: 0; padding: 0; list-style: none; }
.etm-tiroir__branche, .etm-tiroir__lien {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	width: 100%; min-height: 56px; padding: 0 16px;
	border: 0; border-bottom: 1px solid var(--sable);
	background: var(--blanc);
	color: var(--encre); font-size: 17px; font-weight: 600; text-align: left;
}
.etm-tiroir__lien { font-weight: 500; }
.etm-tiroir__compte { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; color: var(--muet); }
.etm-tiroir__compte .etm-icone { color: var(--navy); }
.etm-tiroir__tout {
	display: flex; align-items: center; justify-content: space-between;
	margin: 10px 16px 6px; min-height: 52px; padding: 0 16px;
	background: var(--navy); color: var(--blanc); font-size: 16px; font-weight: 600;
}
.etm-tiroir__tout:hover { color: var(--blanc); background: var(--navy-900); }
.etm-tiroir__bas {
	flex: 0 0 auto;
	display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
	padding: 12px 16px 18px;
	border-top: 1px solid var(--sable-200);
}
.etm-tiroir__bas .etm-bouton { min-height: 52px; padding: 0 12px; }
.etm-tiroir__adresse { grid-column: 1 / -1; text-align: center; font-family: var(--f-mono); font-size: 11px; color: var(--muet); }
body.etm-sans-defilement { overflow: hidden; }
@media (min-width: 1100px) { .etm-tiroir { display: none !important; } }

/* --------------------------------------------------------------- titres de page */
.etm-titre-page { padding: 28px 0 32px; }
.etm-titre-page--sable { background: var(--sable); }
@media (min-width: 900px) { .etm-titre-page { padding: 56px 0 64px; } }
.etm-ariane ol, .woocommerce-breadcrumb {
	display: flex; flex-wrap: wrap; gap: 4px 6px;
	margin: 0 0 12px; padding: 0; list-style: none;
	font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
	color: var(--muet);
}
.etm-ariane li + li::before { content: '›'; margin-right: 6px; }
.etm-ariane a, .woocommerce-breadcrumb a { color: var(--muet); }

/* --------------------------------------------------------------- articles */
.etm-grille-articles { display: grid; gap: 14px; }
@media (min-width: 700px) { .etm-grille-articles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1100px) { .etm-grille-articles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.etm-grille-articles--compacte { margin-top: 20px; }

.etm-carte-article__lien { display: flex; flex-direction: column; height: 100%; background: var(--sable); color: var(--encre); }
.etm-carte-article__lien:hover { color: var(--encre); }
.etm-carte-article__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.etm-carte-article__texte { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; flex: 1; }
.etm-carte-article .etm-pastille { background: var(--blanc); }
.etm-carte-article__titre { font-size: 18px; font-weight: 600; line-height: 1.3; }
.etm-carte-article__suite { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--orange-texte); }

.etm-carte-article--vedette .etm-carte-article__lien { position: relative; min-height: 340px; background: var(--navy-700); color: var(--blanc); }
.etm-carte-article--vedette .etm-carte-article__media { position: absolute; inset: 0; }
.etm-carte-article--vedette .etm-carte-article__media img { height: 100%; aspect-ratio: auto; }
.etm-carte-article--vedette .etm-carte-article__texte {
	position: relative; margin-top: auto; flex: 0 0 auto;
	background: linear-gradient(transparent, rgba(18,21,46,.88) 35%);
	padding-top: 80px;
}
.etm-carte-article--vedette .etm-carte-article__titre { font-family: var(--f-cond); font-size: 26px; font-weight: 700; text-transform: uppercase; line-height: 1.08; }
.etm-carte-article--vedette .etm-carte-article__suite { color: var(--blanc); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 700px) { .etm-carte-article--vedette { grid-column: span 2; } }

.etm-progression { position: sticky; top: var(--entete-h); z-index: 800; height: 3px; background: var(--sable); }
.etm-progression span { display: block; height: 3px; width: 0; background: var(--orange); }

.etm-article__entete { padding-top: 24px; }
.etm-article__entete .etm-pastille { margin-bottom: 12px; }
.etm-article__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 12px; text-transform: uppercase; color: var(--muet); }
.etm-article__image { margin: 24px 0 0; }
.etm-article__image img { width: 100%; max-height: 560px; object-fit: cover; }
.etm-article__corps { padding-block: 24px 48px; }

.etm-sommaire { margin-bottom: 8px; border: 1px solid var(--sable-200); }
.etm-sommaire summary { min-height: 52px; padding: 0 14px; display: flex; align-items: center; background: var(--sable); font-weight: 700; color: var(--navy); cursor: pointer; }
.etm-sommaire ol { margin: 0; padding: 12px 14px 14px 34px; display: grid; gap: 8px; }

.etm-prose { font-size: 17px; line-height: 1.75; color: #2A2E45; }
.etm-prose > * + * { margin-top: 16px; }
.etm-prose h2 { margin-top: 40px; font-family: var(--f-cond); font-size: 26px; font-weight: 700; text-transform: uppercase; line-height: 1.1; color: var(--navy); }
.etm-prose h3 { margin-top: 28px; font-size: 20px; font-weight: 700; color: var(--navy); }
.etm-prose a { text-decoration: underline; text-underline-offset: 3px; }
.etm-prose ul, .etm-prose ol { padding-left: 22px; }
.etm-prose li + li { margin-top: 6px; }
.etm-prose blockquote { margin: 28px 0; padding: 18px 20px; background: var(--sable); border: 0; font-size: 18px; }
.etm-prose img { height: auto; }
.etm-prose figure { margin: 24px 0; }
.etm-prose figcaption { margin-top: 6px; font-size: 13px; color: var(--muet); }

.etm-partage { display: flex; align-items: center; gap: 10px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--sable-200); }
.etm-partage .etm-surtitre { margin: 0 auto 0 0; }
.etm-partage a { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--sable-200); }

/* --------------------------------------------------------------- pied de page */
.etm-pied { background: var(--encre); color: #B9C1D6; font-size: 14px; }
.etm-pied a { color: #D6DBE8; }
.etm-pied a:hover { color: var(--blanc); }
.etm-pied__grille { display: grid; gap: 32px; padding-block: 44px 28px; }
@media (min-width: 700px) { .etm-pied__grille { grid-template-columns: 1.3fr 1fr 1.2fr; gap: 48px; padding-block: 64px 40px; } }
.etm-pied__marque img { height: 52px; width: auto; }
.etm-pied__marque p { margin-top: 16px; max-width: 340px; line-height: 1.7; }
.etm-pied__reseaux { display: flex; gap: 10px; margin-top: 18px; }
.etm-pied__reseaux a { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.2); }
.etm-pied__titre { margin-bottom: 14px; font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blanc); }
.etm-pied__liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.etm-pied__contact li { display: flex; gap: 10px; align-items: flex-start; }
.etm-pied__contact .etm-icone { flex: 0 0 auto; margin-top: 3px; color: var(--acier); }
.etm-pied__itineraire { margin-top: 18px; min-height: 46px; font-size: 14px; }
.etm-pied__bas {
	display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
	padding-block: 18px 96px;
	border-top: 1px solid rgba(255,255,255,.1);
	font-size: 12px; color: #8A90AA;
}
@media (min-width: 900px) { .etm-pied__bas { padding-bottom: 24px; } }
.etm-pied__legal { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; list-style: none; }

/* --------------------------------------------------------------- bulle WhatsApp */
.etm-whatsapp {
	position: fixed; right: 16px; bottom: 16px; z-index: 850;
	display: inline-flex; align-items: center; gap: 10px;
	height: 56px; padding: 0 7px 0 18px;
	border-radius: 999px;
	background: var(--blanc); color: var(--encre);
	box-shadow: 0 8px 24px rgba(18, 21, 46, .22);
	font-size: 14px; font-weight: 700;
	transition: transform var(--transition);
}
.etm-whatsapp:hover { color: var(--encre); transform: translateY(-2px); }
.etm-whatsapp__pastille {
	width: 42px; height: 42px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--whatsapp); color: var(--blanc);
}
/* Sur la fiche produit, la barre d'action reprend WhatsApp : la bulle se réduit à la pastille. */
.etm-avec-barre .etm-whatsapp { bottom: 84px; padding: 0 7px; }
.etm-avec-barre .etm-whatsapp__texte { display: none; }

/* --------------------------------------------------------------- impression */
@media print {
	.etm-entete, .etm-tiroir, .etm-whatsapp, .etm-pied { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Plugins ETM présents sur toutes les pages : panneau « Ma demande » (ETM Devis)
   et recherche (ETM Vitrine). Variables posées sur body pour primer sur les
   valeurs injectées par les plugins.
   ========================================================================== */
body {
	--etm-accent: var(--navy);
	--etm-encre: var(--encre);
	--etm-gris: var(--muet);
	--etm-trait: var(--sable-200);
	--etm-fond-doux: var(--sable-50);
	--etm-rayon: 0px;
	--etm-f-accent: var(--navy);
	--etm-f-trait: var(--sable-200);
	--etmv-navy: var(--navy);
	--etmv-orange: var(--orange);
	--etmv-trait: var(--sable-200);
	--etmv-gris: var(--muet);
}
.etm-panneau { font-family: var(--f-sans); }
.etm-panneau__titre { font-family: var(--f-cond); font-size: 22px; font-weight: 700; text-transform: uppercase; color: var(--navy); }
.etm-panneau__compteur { background: var(--orange-fond); color: var(--blanc); }
.etm-liste__ref { font-family: var(--f-mono); font-weight: 600; color: var(--navy); }
.etm-btn { min-height: 50px; font-weight: 700; }
.etm-btn--primaire { background: var(--orange-fond); border-color: var(--orange-fond); color: var(--blanc); }
.etm-btn--primaire:hover { background: #B8341A; color: var(--blanc); }

/* Recherche ETM Vitrine : boutons du formulaire. */
.etmv-rh__envoi { background-color: var(--orange-fond); }
@media (max-width: 899px) {
	/* Recherche ouverte (mobile) : « Filtres » en toutes lettres avec son icône, loupe sur le bouton orange.
	   Les règles !important d'ETM Vitrine effacent les icônes : on les rétablit ici. */
	.etmv-rh .etmv-rh__envoi .etmv-rh__envoi-texte {
		display: block !important; position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
	}
	.etmv-rh .etmv-rh__filtres .etmv-rh__filtres-texte { display: inline !important; }
	.etmv-rh .etmv-rh__filtres {
		width: auto !important; min-width: 0 !important; padding: 0 12px 0 32px !important;
		background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222752' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E") 11px center / 16px no-repeat !important;
		font-size: 13px !important;
	}
	.etmv-rh .etmv-rh__envoi {
		width: 40px !important; min-width: 40px !important; padding: 0 !important;
		background: var(--orange-fond) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / 18px no-repeat !important;
	}
}


.etm-entete__logo { min-width: max-content; }
.etm-entete .etm-icone { flex: none; }



/* Apparition au défilement (classe posée par main.js, seulement sous la ligne de flottaison). */
.etm-apparait { opacity: 0; transform: translateY(22px); transition: opacity .6s ease var(--etm-delai, 0ms), transform .6s cubic-bezier(.2, .7, .2, 1) var(--etm-delai, 0ms); }
.etm-apparait.est-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .etm-apparait { opacity: 1; transform: none; transition: none; } }
.etm-pied__bas a { text-decoration: underline; text-underline-offset: 3px; }

/* Mobile / tablette : en-tête fixe. La place est réservée en haut de la page, donc quand l'en-tête
   se réduit au défilement le contenu ne bouge pas (pas de saut, pas de clignotement). */
@media (max-width: 1099px) {
	.etm-entete { position: fixed; top: 0; left: 0; right: 0; }
	.admin-bar .etm-entete { top: 46px; }
	body { padding-top: var(--etm-entete-plein, 130px); }
}
@media (min-width: 783px) and (max-width: 1099px) { .admin-bar .etm-entete { top: 32px; } }
@media (max-width: 600px) { .admin-bar .etm-entete { top: 0; } } /* la barre d'admin défile sur petit écran */
@media (max-width: 1099px) { .etm-entete__demande-texte small { display: none; } }
