/**
 * Styles de repli pour les fiches produit EM-Technik.
 * Volontairement minimalistes et neutres : ils rendent la fiche lisible sans
 * template Elementor, et fournissent des classes que le thème/Elementor peut
 * surcharger. Préfixe « emt- » pour éviter toute collision.
 */

.emt-produit-single .emt-container {
	max-width: 920px;
	margin: 0 auto;
	padding: 1.5rem;
}

.emt-titre {
	font-family: "Roboto", sans-serif;
	font-size: 19px;
	font-weight: bold;
	line-height: 1.1;
	margin: 0 0 .5rem;
	/* Couleur volontairement non forcée : héritée de la classe de couleur de catégorie (body.<couleur> h1). */
}

/* Titres de section (charte existante : Roboto 17px bold, violet). */
.emt-specs h2,
.emt-normes h2,
.emt-section h2,
.emt-texte-image h2,
.emt-faq h2 {
	font-family: "Roboto", sans-serif;
	font-size: 17px;
	font-weight: bold;
	color: #94006b;
	text-transform: none;
	line-height: 1.2;
}

/* Sous-titres (provisoire, à valider) : Roboto bold, violet, légèrement plus petit que les H2. */
.emt-liste-bloc h3,
.emt-raccords h3,
.emt-image-technique h3,
.emt-galerie-bloc h3,
.emt-callout__titre,
.emt-faq__question {
	font-family: "Roboto", sans-serif;
	font-size: 16px;
	font-weight: bold;
	color: #94006b;
	line-height: 1.2;
}

.emt-chapo {
	font-family: "Roboto", sans-serif;
	font-size: 16px;
	color: #000;
	margin: 0 0 1.5rem;
}

/* Texte courant : Roboto 16px noir (les titres conservent leur style — spécificité supérieure). */
.emt-paragraphe,
.emt-section,
.emt-liste-bloc {
	font-family: "Roboto", sans-serif;
	font-size: 16px;
	color: #000;
}

/* --- Étiquettes (tags) --- */
.emt-etiquettes {
	margin: 0 0 1.25rem;
}

.emt-etiquettes__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
}

/* Chips alignées sur le widget nuage de tags du site. */
.emt-etiquettes__list a {
	display: inline-block;
	background: #F6F6F6;
	color: #F0960D;
	font-family: "Roboto", sans-serif;
	font-weight: normal;
	font-size: 10pt;
	text-transform: capitalize;
	padding: 0.6em 0.3em; /* = 8px 4px à 10pt */
	margin: 2px;
	text-decoration: none;
	transition: all 200ms ease-in;
	transform: scale(1);
}

.emt-etiquettes__list a:hover {
	background: #ececec;
	transform: scale(1.05);
}

.emt-hero {
	margin: 0 0 1.25rem;
}

.emt-hero img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

/* Modificateurs = valeurs du champ image_position (pleine | droite | gauche). */
.emt-hero--pleine,
.emt-hero--pleine img {
	width: 100%;
}

.emt-hero--droite {
	float: right;
	max-width: 42%;
	margin: 0 0 1rem 1.5rem;
}

.emt-hero--gauche {
	float: left;
	max-width: 42%;
	margin: 0 1.5rem 1rem 0;
}

.emt-clear {
	clear: both;
}

@media (max-width: 600px) {
	.emt-hero--droite,
	.emt-hero--gauche {
		float: none;
		max-width: 100%;
		margin: 0 0 1.25rem;
	}
}

/* --- Spécifications (liste de définitions) --- */
.emt-specs {
	margin: 2rem 0;
}

.emt-specs__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: .25rem;
	margin: 0;
	border-top: 1px solid #e3e3e3;
}

.emt-specs__row {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 1rem;
	padding: .6rem .25rem;
	border-bottom: 1px solid #e3e3e3;
}

.emt-specs__row dt {
	font-family: "Roboto", sans-serif;
	font-size: 16px;
	font-weight: bold;
	color: #94006b;
	margin: 0;
}

/* « : » ajouté après le libellé (espace insécable façon FR). */
.emt-specs__row dt::after {
	content: "\00A0:";
}

.emt-specs__row dd {
	font-family: "Roboto", sans-serif;
	font-size: 16px;
	color: #000;
	margin: 0;
}

.emt-specs__row dd p {
	margin: 0 0 .4rem;
}

/* --- Normes & certifications --- */
.emt-normes__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.emt-normes__item {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .5rem .75rem;
	border: 1px solid #e3e3e3;
	border-radius: 6px;
}

.emt-normes__picto {
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.emt-normes__ref {
	color: #666;
	font-size: .9em;
}

/* --- Tableaux --- */
/* Repli local de l'utilitaire .responsive-table du thème enfant (au cas où le thème ne serait pas chargé). */
.responsive-table {
	overflow-x: auto;
}

.emt-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0 1.5rem;
}

.emt-table caption {
	caption-side: top;
	text-align: left;
	font-weight: 600;
	margin-bottom: .5rem;
}

.emt-table th,
.emt-table td {
	font-family: Arial, sans-serif;
	font-size: 10pt;
	font-weight: normal;
	text-align: center;
	line-height: 1.5;
	padding: 6px 10px;
	border: 1px solid hsla(0, 0%, 50%, .502);
	vertical-align: middle;
}

/* Cellules centrées (comme les tableaux Word de Marc) ; texte long à gauche,
   valeur courte sur une seule ligne (classes posées par Emtechnik_Table_Import::cell_class). */
.emt-table .emt-cell--texte {
	text-align: left;
}

.emt-table .emt-cell--court {
	white-space: nowrap;
}

/* Charte des tableaux (17/09/2026), alignée sur les tableaux de données du site
   (fiches ETFE) : en-têtes gris, 1re colonne (intitulés de ligne) violet pâle
   tiré du violet #94006B du site, lignes alternées du thème Hello.
   Une couleur choisie dans la fiche (champ couleur, style en ligne) reste prioritaire. */
.emt-table {
	--emt-table-entete: #dcdcdc;
	--emt-table-intitule: #f2e0ed;
}

.emt-table thead th {
	background-color: var(--emt-table-entete);
}

/* Plus précis que « table tbody > tr:nth-child(odd) > th » du thème Hello. */
.emt-table tbody tr > th[scope="row"],
.emt-table tbody tr > th[scope="rowgroup"] {
	background-color: var(--emt-table-intitule);
}

.emt-unit {
	color: #777;
	font-weight: 400;
	font-size: .85em;
}

.emt-tableau__desc,
.emt-tableau__note {
	color: #555;
	font-size: .9rem;
}

/* --- Tableau importé (copier-coller) --- */
.emt-table--importe thead th {
	font-weight: bold;
}

/* Lignes alternées : celles du thème Hello (une ligne impaire sur deux légèrement grisée),
   comme sur les tableaux existants. Option « Lignes alternées » décochée : fond uni. */
.emt-table:not(.emt-table--zebre) tbody > tr:nth-child(odd) > td {
	background-color: transparent;
}

/* Case fusionnée verticalement : fond neutre, elle couvre plusieurs lignes alternées. */
.emt-table tbody tr > td[rowspan] {
	background-color: #fff;
}

.emt-table__ligne-pleine td {
	font-style: italic;
}

/* --- Listes éditoriales --- */
.emt-liste-bloc {
	margin: 1.5rem 0;
}

.emt-liste--sans {
	list-style: none;
	padding-left: 0;
}

/* --- Raccords compatibles --- */
.emt-raccords {
	margin: 2rem 0;
}

.emt-raccords__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}

.emt-raccords__item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: .75rem;
	border: 1px solid #e3e3e3;
	border-radius: 6px;
}

.emt-raccords__img {
	width: 80px;
	height: 80px;
	object-fit: contain;
	flex: 0 0 auto;
}

.emt-raccords__body {
	display: flex;
	flex-direction: column;
	gap: .15rem;
}

.emt-raccords__refs {
	font-size: 1.05rem;
}

/* --- Encadré norme --- */
.emt-callout {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	background: #f5f9ff;
	border-left: 4px solid #3598C6; /* couleur primaire du site */
	padding: 1rem 1.25rem;
	margin: 1.5rem 0;
	border-radius: 4px;
}

.emt-callout__picto {
	width: 56px;
	height: 56px;
	object-fit: contain;
}

.emt-callout__titre {
	margin: 0 0 .25rem;
}

/* --- Mise en garde / information --- */
.emt-alerte {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	border-left: 4px solid #F0960D;
	background: #fff8ec;
	border-radius: 4px;
	font-family: "Roboto", sans-serif;
	font-size: 16px;
	color: #000;
}

.emt-alerte--information {
	border-left-color: #3598C6;
	background: #f5f9ff;
}

.emt-alerte__titre {
	margin: 0 0 .5rem;
	color: #94006b;
}

.emt-alerte__contenu > :last-child {
	margin-bottom: 0;
}

/* --- FAQ --- */
.emt-faq {
	margin: 2rem 0;
	font-family: "Roboto", sans-serif;
	font-size: 16px;
	color: #000;
}

.emt-faq__item {
	padding: .75rem 0;
	border-bottom: 1px solid #e3e3e3;
}

.emt-faq__question {
	margin: 0 0 .4rem;
}

.emt-faq__reponse > :last-child {
	margin-bottom: 0;
}

/* --- Bouton « Demander un renseignement » --- */
.emt-cta {
	margin: 2.5rem 0 1rem;
	padding: 1.25rem 1.5rem;
	background: #F6F6F6;
	border-radius: 6px;
	text-align: center;
	font-family: "Roboto", sans-serif;
	font-size: 16px;
	color: #000;
}

.emt-cta__texte {
	margin: 0 0 .75rem;
}

/* Double classe : plus précis que les règles de liens du thème (ex. « .elementor-container p a »). */
.emt-cta .emt-cta__bouton {
	display: inline-block;
	padding: .7em 1.4em;
	background: #94006b;
	color: #fff;
	font-weight: bold;
	text-decoration: none;
	border-radius: 4px;
	transition: background 200ms ease-in;
}

.emt-cta .emt-cta__bouton:hover,
.emt-cta .emt-cta__bouton:focus {
	background: #F0960D;
	color: #fff;
	text-decoration: none;
}

/* Téléphone et e-mail : couleur des liens du thème, comme sur la page Contact. */
.emt-cta__coordonnees {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}

.emt-cta__coordonnees li {
	margin: 0;
}

.emt-cta__coordonnees a {
	display: inline-block;
	padding: .25em 0;
	font-weight: bold;
	overflow-wrap: anywhere;
}

.emt-cta__action {
	margin: 0;
}

/* Texte lu par les lecteurs d'écran seulement (ex. « nouvel onglet »). */
.emt-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* --- Image technique --- */
.emt-image-technique {
	margin: 2rem 0;
}

.emt-image-technique figure {
	margin: 0;
}

.emt-image-technique img {
	max-width: 100%;
	height: auto;
}

.emt-image-technique figcaption {
	color: #666;
	font-size: .9rem;
	margin-top: .4rem;
}

/* --- Texte + image (largeur de l'image pilotée par --emt-media-w) --- */
.emt-texte-image {
	--emt-media-w: 40%;
	margin: 2rem 0;
	font-family: "Roboto", sans-serif;
	font-size: 16px;
	color: #000;
}

.emt-texte-image--w33 {
	--emt-media-w: 33.333%;
}

.emt-texte-image--w50 {
	--emt-media-w: 50%;
}

.emt-texte-image__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--emt-media-w);
	gap: 1.5rem;
	align-items: start;
}

.emt-texte-image--gauche .emt-texte-image__grid {
	grid-template-columns: var(--emt-media-w) minmax(0, 1fr);
}

.emt-texte-image--gauche .emt-texte-image__media {
	order: -1;
}

.emt-texte-image--sans-image .emt-texte-image__grid {
	grid-template-columns: minmax(0, 1fr);
}

.emt-texte-image__texte > :first-child {
	margin-top: 0;
}

.emt-texte-image__media {
	margin: 0;
}

.emt-texte-image__media img {
	display: block;
	max-width: 100%;
	height: auto;
}

.emt-texte-image__media figcaption {
	color: #666;
	font-size: .9rem;
	margin-top: .4rem;
}

@media (max-width: 600px) {
	.emt-texte-image .emt-texte-image__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* --- Galerie --- */
.emt-galerie-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: .75rem;
}

.emt-galerie-grid img {
	width: 100%;
	height: auto;
	border-radius: 4px;
}

@media (max-width: 600px) {
	.emt-specs__row {
		grid-template-columns: 1fr;
		gap: .15rem;
	}
}
