/*
Theme Name: Pons et Sabot
Theme URI: https://ponsetsabot.fr
Author: Andrés Massa
Description: Thème de blocs sur mesure pour Pons et Sabot, distributeur de fournitures industrielles à Saint-Étienne. Aucune dépendance à une extension payante.
Version: 0.6.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pons-et-sabot
Tags: block-theme, full-site-editing, business
*/

/* -------------------------------------------------------------------------
 * Couleurs, polices et espacements sont dans theme.json.
 * Ce fichier ne contient que ce que theme.json ne sait pas exprimer.
 *
 * Sommaire
 *    1. Typographie et base
 *    2. La règle graduée
 *    3. En-tête
 *    4. Menu déroulant
 *    5. Pictogrammes
 *    6. Pied de page
 *    7. Adaptatif de l'en-tête et du pied
 *    8. Divers
 *    9. En-tête collant
 *   10. Accueil
 *   11. Signature de l'en-tête
 *   12. Sections de contenu
 *   13. Cartes de catalogue
 *   14. Bandeau de marques
 *   15. Comment on travaille
 *   16. Bloc de contact
 *   17. Les trois sections en adaptatif
 *   18. Grille des familles
 *   19. Page de devis
 *   20. Le formulaire
 *   21. La page de devis en adaptatif
 *   22. Page des catalogues, avec filtres
 *   23. Page d'une famille de produits
 *   24. Liste des familles
 *   25. Survol des cartes cliquables
 *   26. Page L'entreprise
 *   27. Fin de page
 *   28. Page Nous rendre visite
 *   29. Corrections de la fiche famille (essai, sans effet)
 *   30. Corrections réelles (fiche famille)
 *   31. Le vrai correctif du bandeau de famille
 *   32. Sections générées en PHP (famille)
 *   33. Fiche produit (WooCommerce, mode catalogue)
 *   34. Liste des produits d'une catégorie
 *   35. Recherche de produits
 * ---------------------------------------------------------------------- */


/* =========================================================================
 * 1. TYPOGRAPHIE ET BASE
 * ====================================================================== */

h1, h2, h3,
.wp-block-post-title,
.ps-titre-etendu {
	font-variation-settings: 'wdth' 112;
	letter-spacing: -0.015em;
}

h1, .wp-block-post-title {
	font-variation-settings: 'wdth' 115;
	letter-spacing: -0.02em;
}

body {
	font-variant-numeric: tabular-nums;
}

/* Rien ne déborde en largeur. « clip » et non « hidden » :
   « hidden » casserait l'en-tête collant. */
html, body {
	overflow-x: clip;
	max-width: 100%;
}


/* =========================================================================
 * 2. LA RÈGLE GRADUÉE — motif signature
 *
 * À appliquer à un bloc Groupe vide via « Classes CSS » (onglet Avancé).
 * La couleur est héritée du texte du conteneur parent.
 * ====================================================================== */

.ps-regle {
	height: 22px;
	background-image:
		repeating-linear-gradient(to right, currentColor 0 1px, transparent 1px 9px),
		repeating-linear-gradient(to right, currentColor 0 1.5px, transparent 1.5px 45px);
	background-size: 100% 7px, 100% 15px;
	background-position: left bottom, left bottom;
	background-repeat: repeat-x;
	opacity: 0.5;
}

.ps-regle-fine {
	height: 14px;
	background-size: 100% 5px, 100% 11px;
	opacity: 0.35;
}


/* =========================================================================
 * 3. EN-TÊTE
 * ====================================================================== */

/* --- Barre utilitaire ----------------------------------------------------
 * Sa hauteur est fixée : l'en-tête collant (section 9) en dépend au pixel
 * près pour que la navigation se colle exactement en haut de l'écran.
 */

.ps-utilitaire {
	height: var(--ps-hauteur-utilitaire, 38px);
	overflow: hidden;
	font-size: 0.8125rem;
}

.ps-utilitaire .wp-block-group {
	min-height: 38px;
	row-gap: 0;
}

.ps-utilitaire p {
	margin: 0;
	line-height: 38px;
	white-space: nowrap;
}

.ps-utilitaire a {
	color: inherit;
	text-decoration: none;
	font-weight: 700;
}

.ps-utilitaire a:hover {
	color: var(--wp--preset--color--jaune);
}


/* --- Barre principale ---------------------------------------------------- */

.ps-nav {
	border-bottom: 1px solid var(--wp--preset--color--alu-fonce);
}

.ps-nav__barre {
	min-height: 96px;
	padding-top: 14px;
	padding-bottom: 14px;
	row-gap: 0;
}

.ps-nav__barre > * {
	min-width: 0;
}

/* La navigation prend l'espace libre et reste centrée */
.ps-nav .wp-block-navigation {
	flex: 1 1 auto;
	justify-content: center;
}

.ps-nav__cta {
	flex: 0 0 auto;
}


/* --- Liens du menu : soulignement jaune animé ---------------------------- */

.ps-nav .wp-block-navigation-item__content {
	position: relative;
	padding: 6px 0;
	color: var(--wp--preset--color--encre);
	text-decoration: none;
}

.ps-nav .wp-block-navigation-item__content::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: var(--wp--preset--color--jaune);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.18s ease;
}

.ps-nav .wp-block-navigation-item__content:hover::after,
.ps-nav .current-menu-item .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}


/* --- Bouton de devis ----------------------------------------------------- */

.ps-nav__cta .wp-block-button__link {
	font-size: 0.9375rem;
	padding: 13px 22px;
	transition: background-color 0.15s ease;
}

.ps-nav__cta .wp-block-button__link:hover {
	background-color: #F2BE00 !important;
}


/* =========================================================================
 * 4. MENU DÉROULANT
 * ====================================================================== */

/* --- Bouton d'ouverture : un carré bleu ---------------------------------- */

.ps-nav .wp-block-navigation__responsive-container-open {
	width: 48px;
	height: 48px;
	padding: 0;
	border-radius: 2px;
	background: var(--wp--preset--color--bleu);
	color: var(--wp--preset--color--blanc);
	align-items: center;
	justify-content: center;
	transition: background-color 0.15s ease;
}

.ps-nav .wp-block-navigation__responsive-container-open:hover {
	background: var(--wp--preset--color--bleu-fonce);
}

.ps-nav .wp-block-navigation__responsive-container-open svg {
	display: none;
}

.ps-nav .wp-block-navigation__responsive-container-open::before {
	content: '';
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	box-shadow:
		0 6px 0 currentColor,
		0 12px 0 currentColor;
	transform: translateY(-6px);
}


/* --- Bouton de fermeture : cercle et croix fine -------------------------- */

.wp-block-navigation__responsive-container-close {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--blanc);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.wp-block-navigation__responsive-container-close:hover {
	border-color: var(--wp--preset--color--jaune);
	background: var(--wp--preset--color--jaune);
	color: var(--wp--preset--color--encre);
}

.wp-block-navigation__responsive-container-close svg {
	display: none;
}

.wp-block-navigation__responsive-container-close::before,
.wp-block-navigation__responsive-container-close::after {
	content: '';
	position: absolute;
	width: 17px;
	height: 1.5px;
	background: currentColor;
	border-radius: 1px;
}

.wp-block-navigation__responsive-container-close::before {
	transform: rotate(45deg);
}

.wp-block-navigation__responsive-container-close::after {
	transform: rotate(-45deg);
}


/* --- Panneau ouvert ------------------------------------------------------ */

.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
}

.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation__responsive-container-content .wp-block-navigation__container {
	gap: 0;
	width: 100%;
	max-width: 520px;
}

.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation-item__content {
	display: block;
	padding: 18px 0;
	font-size: 1.3125rem;
	font-weight: 700;
	color: var(--wp--preset--color--blanc);
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--jaune);
}

.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation-item__content::after {
	display: none;
}


/* =========================================================================
 * 5. PICTOGRAMMES
 * ====================================================================== */

.ps-horaires::before,
.ps-adresse::before,
.ps-tel::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 7px;
	vertical-align: -2px;
	background-repeat: no-repeat;
	background-size: contain;
	opacity: 0.8;
}

/* Horloge */
.ps-horaires::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.2 2'/%3E%3C/svg%3E");
}

/* Épingle de carte */
.ps-adresse::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 21.5S19 15 19 10a7 7 0 1 0-14 0c0 5 7 11.5 7 11.5z'/%3E%3Ccircle cx='12' cy='10' r='2.6'/%3E%3C/svg%3E");
}

/* Combiné téléphonique */
.ps-tel::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFD233'%3E%3Cpath d='M6.6 10.8a15.4 15.4 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.24 11.4 11.4 0 0 0 3.6.58 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11.4 11.4 0 0 0 .57 3.6 1 1 0 0 1-.25 1z'/%3E%3C/svg%3E");
	opacity: 1;
}

.ps-tel a {
	font-size: 0.9375rem;
	letter-spacing: 0.01em;
}

/* Flèche sur le bouton de devis de la navigation */
.ps-nav__cta .wp-block-button__link::after {
	content: '';
	display: inline-block;
	width: 15px;
	height: 15px;
	margin-left: 9px;
	vertical-align: -2px;
	background-repeat: no-repeat;
	background-size: contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317222E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E");
	transition: transform 0.18s ease;
}

.ps-nav__cta .wp-block-button__link:hover::after {
	transform: translateX(3px);
}


/* =========================================================================
 * 6. PIED DE PAGE
 * ====================================================================== */

footer .wp-block-list,
.ps-liste {
	list-style: none;
	margin: 0;
	padding: 0;
}

footer .wp-block-list li {
	margin-bottom: 9px;
}

footer a {
	text-decoration: none;
}

footer a:hover {
	color: var(--wp--preset--color--jaune);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* --- Emblème du pied de page --------------------------------------------- */

.ps-pied-embleme {
	margin: 0 0 4px !important;
}

.ps-pied-embleme img {
	display: block;
	width: 84px !important;
	margin-left: 34px;
	border-radius: 50%;
}


/* =========================================================================
 * 7. ADAPTATIF DE L'EN-TÊTE ET DU PIED
 *
 * Les seuils sont dictés par le contenu, pas par des tailles d'appareils.
 * ====================================================================== */

/* --- 1080px : le menu bascule en panneau ---------------------------------
 * WordPress bascule à 600px par défaut, trop tard pour cinq entrées.
 */
@media (max-width: 1080px) {

	.ps-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.ps-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.ps-nav .wp-block-navigation {
		flex: 0 0 auto;
	}

	.ps-nav__barre {
		min-height: 78px;
		gap: var(--wp--preset--spacing--30);
	}

	.ps-adresse { display: none; }
}

/* --- 900px : les horaires cèdent la place -------------------------------- */
@media (max-width: 900px) {
	.ps-horaires { display: none; }
	.ps-utilitaire .wp-block-group { justify-content: center; }

	footer .wp-block-columns { flex-wrap: wrap !important; }
	footer .wp-block-column {
		flex-basis: 45% !important;
		flex-grow: 1;
	}
}

/* --- 860px : le bouton de devis rétrécit --------------------------------- */
@media (max-width: 860px) {
	.ps-nav__cta .wp-block-button__link {
		font-size: 0.875rem;
		padding: 11px 16px;
	}
}

/* --- 720px : libellé court ----------------------------------------------- */
@media (max-width: 720px) {
	.ps-nav__cta .wp-block-button__link {
		font-size: 0;
		padding: 11px 14px;
	}
	.ps-nav__cta .wp-block-button__link::before {
		content: 'Devis';
		font-size: 0.875rem;
	}
	.ps-nav__cta .wp-block-button__link::after {
		margin-left: 6px;
	}
}

/* --- 560px : barre compacte, le bouton de devis reste visible -------------
 * Le logo s'adapte à la place restante (section 11) ; ici le bouton perd
 * sa flèche et ses marges pour que menu et bouton tiennent sur la ligne.
 */
@media (max-width: 560px) {
	.ps-nav__barre {
		min-height: 64px;
		gap: 10px;
	}

	.ps-nav .wp-block-navigation__responsive-container-open {
		width: 44px;
		height: 44px;
	}

	.ps-nav__cta .wp-block-button__link {
		padding: 10px 12px;
	}

	.ps-nav__cta .wp-block-button__link::after {
		display: none;
	}

	footer .wp-block-column { flex-basis: 100% !important; }

	.ps-pied-embleme img {
		margin-left: auto;
		margin-right: auto;
	}
}


/* =========================================================================
 * 8. DIVERS
 * ====================================================================== */

:focus-visible {
	outline: 3px solid var(--wp--preset--color--jaune);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

.ps-lien-fleche {
	text-decoration: none;
	font-weight: 700;
	border-bottom: 2px solid var(--wp--preset--color--jaune);
	padding-bottom: 3px;
	white-space: nowrap;
}


/* =========================================================================
 * 9. EN-TÊTE COLLANT
 *
 * C'est l'élément <header> entier qui colle. Le décalage négatif
 * laisse la barre utilitaire défiler et garde la navigation visible :
 * il vaut donc exactement la hauteur de cette barre, moins la place
 * prise par la barre d'administration WordPress quand on est connecté.
 * ====================================================================== */

header.wp-block-template-part {
	--ps-hauteur-utilitaire: 38px;  /* hauteur exacte de la barre bleue du haut */
	--ps-decalage-admin: 0px;       /* place prise par la barre d'administration */
	position: sticky;
	top: calc(var(--ps-decalage-admin) - var(--ps-hauteur-utilitaire));
	z-index: 100;
}

/* Connecté : la barre d'administration mesure 32px, puis 46px sous 783px.
   Sous 601px elle défile avec la page : elle ne réserve plus de place. */
.admin-bar header.wp-block-template-part {
	--ps-decalage-admin: 32px;
}

@media (max-width: 782px) {
	.admin-bar header.wp-block-template-part {
		--ps-decalage-admin: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar header.wp-block-template-part {
		--ps-decalage-admin: 0px;
	}
}


/* =========================================================================
 * 10. ACCUEIL
 * ====================================================================== */

/* --- Hero ----------------------------------------------------------------
 * Trois couches : le ciel (fond du bloc), la photo (::before),
 * le voile blanc sous le texte (::after).
 *
 * La photo est dimensionnée d'après la largeur de l'écran, pas d'après
 * la hauteur du bloc : le fanion garde la même proportion quel que
 * soit le texte.
 *
 * Mesures relevées sur la photo : format 4,53:1, fanion entre 42,7 %
 * et 65,1 % de la largeur. Les valeurs ci-dessous placent le fanion
 * dans la moitié droite, avec de l'air de chaque côté.
 */

.ps-hero {
	--ps-photo-h: clamp(440px, 34vw, 600px);  /* hauteur de la photo */
	--ps-photo-x: calc(50% + 17.2vw);         /* position du fanion  */
	--ps-colonne: min(600px, 44vw);           /* largeur du texte    */

	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: 580px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: 72px !important;
	padding-bottom: 72px !important;
	background: linear-gradient(90deg, #D2E6F6 0%, #DCEAF7 60%, #EEF4FA 100%);
}

/* Le bloc intérieur occupe toute la grille au lieu d'être centré */
.ps-hero > .wp-block-group {
	width: 100%;
}

/* La photo, posée en bas et fondue vers le ciel en haut */
.ps-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -2;
	background-image: url('assets/images/hero-facade.webp');
	background-repeat: no-repeat;
	background-size: auto var(--ps-photo-h);
	background-position: var(--ps-photo-x) 100%;
	will-change: transform;
	backface-visibility: hidden;
}

/* Le voile blanc, calé sur la colonne de texte */
.ps-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg,
		rgba(252, 252, 251, 0.95) 0,
		rgba(252, 252, 251, 0.95) max(calc(40px + var(--ps-colonne)), 50%),
		rgba(252, 252, 251, 0) max(calc(160px + var(--ps-colonne)), calc(50% + 5vw)));
}


/* --- Texte du hero ------------------------------------------------------- */

.ps-hero__contenu {
	max-width: var(--ps-colonne);
}

.ps-hero__contenu > * {
	margin-top: 0;
	margin-bottom: 0;
}

.ps-hero__contenu h1 {
	font-size: clamp(2.5rem, 3.6vw, 3.5rem);
	line-height: 1.04;
	color: var(--wp--preset--color--encre);
	text-wrap: balance;
}

/* Seconde ligne du titre : plus petite, plus légère */
.ps-hero__h1-suite {
	display: block;
	margin-top: 10px;
	font-size: 0.66em;
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.01em;
	font-variation-settings: 'wdth' 100;
	color: var(--wp--preset--color--graphite);
}

.ps-hero__intro {
	margin-top: 26px !important;
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--wp--preset--color--graphite);
	max-width: 44ch;
}

.ps-hero__recherche {
	margin-top: 30px !important;
}

.ps-hero__actions {
	margin-top: 18px !important;
	gap: 12px;
}


/* --- Une respiration à l'ouverture --------------------------------------- */

@keyframes ps-hero-ouverture {
	from {
		transform: scale(1.14);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

@media (min-width: 1101px) and (prefers-reduced-motion: no-preference) {
	.ps-hero::before {
		animation: ps-hero-ouverture 2.4s cubic-bezier(0.16, 1, 0.3, 1) both;
		transform-origin: 70% 100%;
	}
}


/* --- Boutons réutilisables ----------------------------------------------- */

.ps-bouton-fleche .wp-block-button__link::after {
	content: '';
	display: inline-block;
	width: 15px;
	height: 15px;
	margin-left: 9px;
	vertical-align: -2px;
	background-repeat: no-repeat;
	background-size: contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317222E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E");
	transition: transform 0.18s ease;
}

.ps-bouton-fleche .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

.ps-bouton-fleche .wp-block-button__link:hover {
	background-color: #F2BE00 !important;
}

.ps-bouton-secondaire .wp-block-button__link {
	background: transparent !important;
	color: var(--wp--preset--color--encre) !important;
	border: 2px solid var(--wp--preset--color--encre);
	padding: 12px 22px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ps-bouton-secondaire .wp-block-button__link:hover {
	background: var(--wp--preset--color--encre) !important;
	color: var(--wp--preset--color--blanc) !important;
}


/* --- Bande des chiffres -------------------------------------------------- */

.ps-chiffres .ps-regle {
	opacity: 0.7;
}

.ps-chiffres__grille {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin-top: var(--wp--preset--spacing--40) !important;
}

.ps-chiffres__grille > * {
	margin: 0 !important;
}

.ps-chiffre {
	padding: 6px 24px;
	border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.ps-chiffre:first-child {
	padding-left: 0;
	border-left: 0;
}

.ps-chiffre p {
	margin: 0;
}

.ps-chiffre__valeur {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 800;
	font-variation-settings: 'wdth' 110;
	line-height: 1;
}

.ps-chiffre__libelle {
	margin-top: 8px !important;
	font-size: 0.875rem;
	line-height: 1.4;
	color: var(--wp--preset--color--alu-fonce);
	max-width: 22ch;
}


/* --- Accueil en adaptatif ------------------------------------------------ */

/* Tablette et téléphone : la photo passe au-dessus du texte */
@media (max-width: 1100px) {
	.ps-hero {
		min-height: 0;
		overflow: visible;
		background: var(--wp--preset--color--blanc);
		padding-top: 0 !important;
		padding-bottom: var(--wp--preset--spacing--50) !important;
	}

	.ps-hero::before {
		position: static;
		display: block;
		z-index: auto;
		aspect-ratio: 21 / 9;
		margin:
			0
			calc(-1 * var(--wp--style--root--padding-right, 1.5rem))
			var(--wp--preset--spacing--40)
			calc(-1 * var(--wp--style--root--padding-left, 1.5rem));
		background: url('assets/images/hero-facade.webp') 54% center / cover no-repeat;
		-webkit-mask-image: none;
		mask-image: none;
		animation: none;
		transform: none;
	}

	.ps-hero::after {
		display: none;
	}

	.ps-hero__contenu {
		max-width: 640px;
	}
}

@media (max-width: 900px) {
	.ps-chiffres__grille {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 22px;
	}
	.ps-chiffre:nth-child(3) {
		padding-left: 0;
		border-left: 0;
	}
}

@media (max-width: 780px) {
	.ps-hero::before {
		aspect-ratio: 16 / 10;
	}
	.ps-hero__contenu h1 {
		font-size: clamp(2.125rem, 8vw, 2.5rem);
	}
	.ps-hero__intro {
		font-size: 1.0625rem;
	}
}

/* --- Pictogrammes des chiffres -------------------------------------------
 * Trait fin jaune, même famille que les pictogrammes de la barre du haut.
 */

.ps-chiffre {
	display: grid;
	grid-template-columns: 34px 1fr;
	column-gap: 14px;
	align-items: start;
}

.ps-chiffre > p {
	grid-column: 2;
}

.ps-chiffre::before {
	content: '';
	grid-column: 1;
	grid-row: 1 / 3;
	width: 34px;
	height: 34px;
	margin-top: 1px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	opacity: 0.9;
}

/* 1956 : calendrier */
.ps-chiffre:nth-child(1)::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD233' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='1.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E");
}

/* 400 marques : étiquette */
.ps-chiffre:nth-child(2)::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD233' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12.4V5a1.5 1.5 0 0 1 1.5-1.5h7.4l8.1 8.1a1.5 1.5 0 0 1 0 2.1l-6.3 6.3a1.5 1.5 0 0 1-2.1 0z'/%3E%3Ccircle cx='8.2' cy='8.2' r='1.5'/%3E%3C/svg%3E");
}

/* 700 m² : entrepôt */
.ps-chiffre:nth-child(3)::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD233' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20.5V9.2L12 4l9 5.2v11.3'/%3E%3Cpath d='M7 20.5v-7.5h10v7.5M7 16.8h10'/%3E%3C/svg%3E");
}

/* 24 h : chronomètre */
.ps-chiffre:nth-child(4)::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD233' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='13.5' r='7.5'/%3E%3Cpath d='M12 9.5v4l2.6 1.7M9.8 2.8h4.4M18.2 7.3l1.4-1.4'/%3E%3C/svg%3E");
}

/* =========================================================================
 * 11. SIGNATURE DE L'EN-TÊTE
 *
 * Emblème rond + nom + graduations + activité.
 * Remplace le fanion dans la navigation : le fanion reste
 * réservé à la photo du hero, où il a tout son impact.
 * ====================================================================== */

.ps-nav .ps-marque {
	flex: 0 0 auto;
}

.ps-marque {
	position: relative;
	display: grid;
	grid-template-columns: 48px auto;
	column-gap: 13px;
	align-items: center;
}

/* L'emblème, à gauche, sur la hauteur des deux lignes */
.ps-marque::before {
	content: '';
	grid-column: 1;
	grid-row: 1 / 3;
	width: 48px;
	height: 48px;
	background: url('assets/images/embleme.png') center / contain no-repeat;
}

/* Le nom */
.ps-marque__nom {
	grid-column: 2;
	margin: 0 !important;
	font-size: 1.1875rem;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-variation-settings: 'wdth' 118;
}

.ps-marque__nom a {
	color: var(--wp--preset--color--bleu);
	text-decoration: none;
}

/* Tout le bloc est cliquable, pas seulement le nom */
.ps-marque__nom a::after {
	content: '';
	position: absolute;
	inset: 0;
}

/* L'activité, sous les graduations de la règle */
.ps-marque__slogan {
	grid-column: 2;
	margin: 5px 0 0 !important;
	padding-top: 11px;
	font-size: 0.625rem;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.17em;
	color: var(--wp--preset--color--graphite);
	white-space: nowrap;
	background-image:
		repeating-linear-gradient(to right, #F2BE00 0 1px, transparent 1px 5px),
		repeating-linear-gradient(to right, #F2BE00 0 1px, transparent 1px 25px);
	background-size: 100% 3px, 100% 7px;
	background-position: 0 4px, 0 0;
	background-repeat: repeat-x;
}

/* --- Téléphone : tout le logo se réduit à la même échelle ------------------
 * Emblème, nom, graduations et activité gardent leurs proportions : une
 * seule taille de référence (font-size du bloc) règle l'ensemble. Elle suit
 * la largeur de l'écran et la marge latérale du thème, pour que le menu
 * et le bouton de devis tiennent toujours sur la même ligne. Le logo
 * garde sa taille pleine (1rem) dès qu'il y a assez de place.
 * 130px = menu + bouton + espaces ; 14.3 = largeur du logo en multiples
 * de la taille de référence (emblème 2.5 + espace 0.625 + activité 11.2).
 */
@media (max-width: 560px) {
	.ps-marque {
		font-size: clamp(0.5rem, calc((100vw - 2 * var(--wp--style--root--padding-left, 1.5rem) - 130px) / 14.3), 1rem);
		grid-template-columns: 2.5em auto;
		column-gap: 0.625em;
	}
	.ps-marque::before {
		width: 2.5em;
		height: 2.5em;
	}
	.ps-marque__nom {
		font-size: 1em;
	}
	.ps-marque__slogan {
		font-size: 0.5625em;
	}
}

/* =========================================================================
 * 12. SECTIONS DE CONTENU
 *
 * En-tête de section réutilisable : titre, phrase, lien, règle graduée.
 * ====================================================================== */

.ps-tete {
	align-items: flex-end;
	row-gap: var(--wp--preset--spacing--30);
}

.ps-tete__texte {
	max-width: 560px;
}

.ps-tete__texte > * {
	margin-top: 0;
	margin-bottom: 0;
}

.ps-tete__intro {
	margin-top: 12px !important;
	font-size: 1.0625rem;
	line-height: 1.55;
	color: var(--wp--preset--color--graphite);
}

.ps-tete__lien {
	margin: 0 !important;
	white-space: nowrap;
}

.ps-section .ps-regle {
	margin-top: 18px !important;
	margin-bottom: var(--wp--preset--spacing--50) !important;
	color: var(--wp--preset--color--encre);
}


/* =========================================================================
 * 13. CARTES DE CATALOGUE
 * ====================================================================== */

.ps-cats {
	gap: var(--wp--preset--spacing--40);
}

.ps-cat {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--wp--preset--color--blanc);
	border: 1px solid var(--wp--preset--color--alu-fonce);
	border-radius: 2px;
}

.ps-cat > * {
	margin: 0 !important;
}

/* --- Haut de carte : couverture et informations -------------------------- */

.ps-cat__haut {
	align-items: flex-start;
	gap: var(--wp--preset--spacing--40);
	padding: 22px;
}

/* La couverture vient de la première page du PDF, générée par WordPress */
.ps-cat__couv {
	flex: 0 0 132px;
	margin: 0 !important;
}

.ps-cat__couv img {
	display: block;
	width: 132px;
	height: auto;
	border: 1px solid var(--wp--preset--color--alu-fonce);
	box-shadow: 0 10px 22px rgba(23, 34, 46, 0.14);
}

.ps-cat__infos {
	min-width: 0;
}

.ps-cat__infos > * {
	margin: 0 !important;
}

/* Le type de document, en étiquette */
.ps-cat__type {
	display: inline-block;
	padding: 5px 9px;
	background: var(--wp--preset--color--aluminium);
	border-radius: 2px;
	font-size: 0.78125rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--wp--preset--color--encre);
}

.ps-cat__type a {
	color: inherit;
	text-decoration: none;
}

.ps-cat__titre {
	margin-top: 12px !important;
	font-size: 1.25rem;
	line-height: 1.25;
	font-weight: 700;
	font-variation-settings: 'wdth' 100;
	letter-spacing: 0;
}

.ps-cat__titre a {
	color: var(--wp--preset--color--encre);
	text-decoration: none;
}

.ps-cat__titre a:hover {
	color: var(--wp--preset--color--bleu);
}

.ps-cat__validite {
	margin-top: 10px !important;
	font-size: 0.875rem;
	line-height: 1.4;
	color: var(--wp--preset--color--graphite);
}


/* --- Bas de carte : les deux actions ------------------------------------- */

.ps-cat__actions {
	margin-top: auto !important;
	display: flex;
	gap: 0;
	border-top: 1px solid var(--wp--preset--color--alu-fonce);
}

.ps-cat__actions .wp-block-button {
	margin: 0;
}

.ps-cat__ouvrir {
	flex: 1 1 auto;
}

.ps-cat__actions .wp-block-button__link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 52px;
	padding: 0 18px;
	border-radius: 0;
	font-size: 0.9375rem;
	font-weight: 700;
	transition: background-color 0.15s ease;
}

.ps-cat__ouvrir .wp-block-button__link {
	background: var(--wp--preset--color--bleu) !important;
	color: var(--wp--preset--color--blanc) !important;
}

.ps-cat__ouvrir .wp-block-button__link:hover {
	background: var(--wp--preset--color--bleu-fonce) !important;
}

.ps-partager .wp-block-button__link {
	background: transparent !important;
	color: var(--wp--preset--color--bleu) !important;
	border-left: 1px solid var(--wp--preset--color--alu-fonce);
	white-space: nowrap;
}

.ps-partager .wp-block-button__link:hover {
	background: var(--wp--preset--color--aluminium) !important;
}

/* Pictogrammes des deux actions */
.ps-cat__ouvrir .wp-block-button__link::before,
.ps-partager .wp-block-button__link::before {
	content: '';
	width: 17px;
	height: 17px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	flex: 0 0 17px;
}

.ps-cat__ouvrir .wp-block-button__link::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FCFCFB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7z'/%3E%3Cpath d='M14 3v4h4'/%3E%3C/svg%3E");
}

.ps-partager .wp-block-button__link::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23034CAA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12v7a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7'/%3E%3Cpath d='M16 6l-4-4-4 4M12 2v13'/%3E%3C/svg%3E");
}

/* Retour visuel quand le lien a été copié faute de partage natif */
.ps-partager a[data-copie]::after {
	content: ' copié';
	font-weight: 600;
}


/* --- Message quand il n'y a rien à afficher ------------------------------ */

.ps-vide {
	padding: 32px;
	background: var(--wp--preset--color--blanc);
	border: 1px dashed var(--wp--preset--color--alu-fonce);
	border-radius: 2px;
	color: var(--wp--preset--color--graphite);
}


/* --- Cartes en adaptatif -------------------------------------------------- */

@media (max-width: 1080px) {
	.ps-cats {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 700px) {
	.ps-cats {
		grid-template-columns: 1fr !important;
	}
	.ps-cat__couv,
	.ps-cat__couv img {
		flex-basis: 96px;
		width: 96px;
	}
	.ps-cat__haut {
		padding: 18px;
		gap: var(--wp--preset--spacing--30);
	}
	.ps-cat__actions .wp-block-button {
		flex: 1 1 0;
	}
}


/* --- Corrections d'en-tête de section et de validité ---------------------- */

.ps-tete__texte {
	max-width: none;
	flex: 1 1 auto;
}

.ps-tete__intro {
	max-width: 520px;
}

.ps-section h2 {
	text-wrap: balance;
}

/* Pictogramme horloge devant la date de validité */
.ps-cat__validite::before {
	content: '';
	display: inline-block;
	width: 15px;
	height: 15px;
	margin-right: 7px;
	vertical-align: -2px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355616B' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.2 2'/%3E%3C/svg%3E");
}

/* =========================================================================
 * 14. BANDEAU DE MARQUES
 *
 * Les logos défilent en continu. La piste est dupliquée par JavaScript,
 * ce qui permet une boucle sans coupure quel que soit le nombre de marques.
 * ====================================================================== */

.ps-titre-moyen {
	font-size: clamp(1.5rem, 2.4vw, 1.75rem) !important;
}

.ps-defile {
	margin-top: var(--wp--preset--spacing--50);
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.ps-defile__piste {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0;
	width: max-content;
}

.ps-defile__piste--anime {
	animation: ps-defile 45s linear infinite;
}

.ps-defile:hover .ps-defile__piste--anime {
	animation-play-state: paused;
}

@keyframes ps-defile {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

.ps-defile__logo {
	flex: 0 0 auto;
	width: 190px;
	height: 92px;
	margin: 0 20px 0 0 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	background: var(--wp--preset--color--blanc);
	border: 1px solid var(--wp--preset--color--alu-fonce);
	border-radius: 2px;
}

.ps-defile__logo figure {
	margin: 0 !important;
}

.ps-defile__logo img {
	max-width: 100%;
	max-height: 60px;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.75;
	transition: filter 0.2s ease, opacity 0.2s ease;
}

.ps-defile__logo:hover img {
	filter: none;
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.ps-defile { overflow-x: auto; }
	.ps-defile__piste { animation: none; }
}


/* =========================================================================
 * 15. COMMENT ON TRAVAILLE
 * ====================================================================== */

.ps-etapes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
}

.ps-etapes > * {
	margin: 0 !important;
}

.ps-etape {
	padding: 8px 40px;
	border-left: 1px solid var(--wp--preset--color--alu-fonce);
}

.ps-etape:first-child {
	padding-left: 0;
	border-left: 0;
}

.ps-etape:last-child {
	padding-right: 0;
}

.ps-etape > * {
	margin: 0 !important;
}

/* Pictogramme au-dessus du rang */
.ps-etape::before {
	content: '';
	display: block;
	width: 32px;
	height: 32px;
	margin-bottom: 14px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.ps-etape:nth-child(1)::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23034CAA' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3Cpath d='M8 9.5h8M8 12.5h5'/%3E%3C/svg%3E");
}

.ps-etape:nth-child(2)::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23034CAA' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='13.5' r='7.5'/%3E%3Cpath d='M12 9.5v4l2.6 1.7M9.8 2.8h4.4'/%3E%3C/svg%3E");
}

.ps-etape:nth-child(3)::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23034CAA' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5h11v9h-11zM13.5 9.5h4l3 3v3h-7'/%3E%3Ccircle cx='6.5' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E");
}

.ps-etape__rang {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--wp--preset--color--bleu);
}

.ps-etape__titre {
	margin-top: 12px !important;
	font-size: 1.3125rem;
	line-height: 1.25;
	font-variation-settings: 'wdth' 105;
}

.ps-etape__texte {
	margin-top: 10px !important;
	font-size: 0.96875rem;
	line-height: 1.6;
	color: var(--wp--preset--color--graphite);
}


/* =========================================================================
 * 16. BLOC DE CONTACT
 * ====================================================================== */

.ps-contact__grille {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40);
}

.ps-contact__grille > * {
	margin: 0 !important;
}

/* --- Panneau bleu --------------------------------------------------------- */

.ps-contact__panneau {
	padding: 48px;
	border-radius: 2px;
}

.ps-contact__panneau > * {
	margin: 0 !important;
}

.ps-contact__panneau h2 {
	color: var(--wp--preset--color--blanc);
}

.ps-contact__texte {
	margin-top: 16px !important;
	font-size: 1.0625rem;
	line-height: 1.55;
	color: var(--wp--preset--color--alu-fonce);
}

.ps-contact__tel {
	margin-top: 22px !important;
}

.ps-contact__tel a {
	font-size: clamp(2rem, 3.4vw, 2.75rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.01em;
	font-variation-settings: 'wdth' 108;
	color: var(--wp--preset--color--jaune);
	text-decoration: none;
}

.ps-contact__tel a:hover {
	color: var(--wp--preset--color--blanc);
}

.ps-contact__horaires {
	margin-top: 18px !important;
	font-size: 0.90625rem;
	line-height: 1.6;
	color: var(--wp--preset--color--alu-fonce);
}

.ps-contact__actions {
	margin-top: 30px !important;
	gap: 12px;
}

/* Bouton à contour clair, sur fond bleu */
.ps-bouton-clair .wp-block-button__link {
	background: transparent !important;
	color: var(--wp--preset--color--blanc) !important;
	border: 2px solid rgba(252, 252, 251, 0.6);
	padding: 12px 22px;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ps-bouton-clair .wp-block-button__link:hover {
	background: var(--wp--preset--color--blanc) !important;
	color: var(--wp--preset--color--encre) !important;
	border-color: var(--wp--preset--color--blanc);
}


/* --- Carte et adresse ----------------------------------------------------- */

.ps-contact__carte {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--blanc);
	border: 1px solid var(--wp--preset--color--alu-fonce);
	border-radius: 2px;
}

.ps-contact__carte > * {
	margin: 0 !important;
}

.ps-contact__carte {
	justify-content: center;
}

.ps-contact__carte .ps-regle {
	color: var(--wp--preset--color--bleu);
}

.ps-contact__carte .ps-contact__adresse {
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 36px 34px;
	row-gap: var(--wp--preset--spacing--40);
}

.ps-contact__adresse > * {
	margin: 0 !important;
}

.ps-contact__lieu {
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--wp--preset--color--encre);
}

.ps-contact__rue {
	margin-top: 6px !important;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--wp--preset--color--graphite);
}


/* =========================================================================
 * 17. LES TROIS SECTIONS EN ADAPTATIF
 * ====================================================================== */

@media (max-width: 980px) {
	.ps-etapes {
		grid-template-columns: 1fr;
	}
	.ps-etape {
		padding: 26px 0;
		border-left: 0;
		border-top: 1px solid var(--wp--preset--color--alu-fonce);
	}
	.ps-etape:first-child {
		padding-top: 0;
		border-top: 0;
	}

	.ps-contact__grille {
		grid-template-columns: 1fr;
	}
	.ps-contact__panneau {
		padding: 32px 26px;
	}
}

@media (max-width: 700px) {
	.ps-defile__logo {
		width: 150px;
		height: 78px;
		margin-right: 12px !important;
	}
	.ps-contact__actions .wp-block-button {
		width: 100%;
	}
	.ps-contact__actions .wp-block-button__link {
		display: block;
		text-align: center;
	}
}



/* =========================================================================
 * 18. GRILLE DES FAMILLES
 *
 * Les cartes sont alimentées par le type de contenu Familles et
 * classées par le « Numéro d'ordre » saisi dans chaque fiche.
 * ====================================================================== */

.ps-familles__grille {
	gap: 1px;
	background: var(--wp--preset--color--alu-fonce);
	border: 1px solid var(--wp--preset--color--alu-fonce);
}

.ps-famille {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 210px;
	padding: 26px 24px;
	background: var(--wp--preset--color--blanc);
	transition: background-color 0.15s ease;
}

.ps-famille:hover {
	background: #FFFFFF;
}

.ps-famille > * {
	margin: 0 !important;
}

.ps-famille__titre {
	margin-top: 10px !important;
	font-size: 1.25rem;
	line-height: 1.2;
	font-weight: 700;
	font-variation-settings: 'wdth' 105;
	letter-spacing: 0;
}

.ps-famille__titre a {
	color: var(--wp--preset--color--encre);
	text-decoration: none;
}

.ps-famille:hover .ps-famille__titre a {
	color: var(--wp--preset--color--bleu);
}

.ps-famille__texte {
	margin-top: 10px !important;
	font-size: 0.90625rem;
	line-height: 1.5;
	color: var(--wp--preset--color--graphite);
}

/* Les marques de la famille, en bas de carte, sous un filet */
.ps-famille__marques {
	margin-top: auto !important;
	padding-top: 14px;
	border-top: 1px solid var(--wp--preset--color--aluminium);
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--wp--preset--color--graphite);
}

/* La carte entière est cliquable */
.ps-famille {
	position: relative;
}

.ps-famille__titre a::after {
	content: '';
	position: absolute;
	inset: 0;
}


/* --- Familles en adaptatif ------------------------------------------------ */

@media (max-width: 1080px) {
	.ps-familles__grille {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

/* Sur téléphone, une liste vaut mieux que huit cartes empilées */
@media (max-width: 620px) {
	.ps-familles__grille {
		grid-template-columns: 1fr !important;
	}

	.ps-famille {
		min-height: 0;
		padding: 18px 16px;
	}

	.ps-famille__texte {
		display: none;
	}

	.ps-famille__titre {
		margin-top: 0 !important;
		font-size: 1.0625rem;
	}

	.ps-famille__marques {
		margin-top: 6px !important;
		padding-top: 0;
		border-top: 0;
	}
}

/* Pas d'espace entre l'en-tête, le contenu et le pied de page */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}


/* =========================================================================
 * 19. PAGE DE DEVIS
 *
 * Trois plans : un bandeau bleu pour le titre, le fond aluminium pour
 * le contenu, la carte blanche du formulaire par-dessus. Le téléphone
 * n'apparaît qu'une fois sur la page, dans la colonne de droite.
 * ====================================================================== */

/* Les pages composent leurs propres sections : pas de marge du modèle */
.page main.wp-block-group {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}


/* --- Le bandeau de titre -------------------------------------------------- */

.ps-devis-bandeau {
	padding-top: var(--wp--preset--spacing--60) !important;
	padding-bottom: 0 !important;
}

.ps-devis-bandeau > * {
	margin: 0 !important;
}

.ps-devis-bandeau h1 {
	color: var(--wp--preset--color--blanc);
	font-size: clamp(2.25rem, 3.4vw, 3.25rem);
	line-height: 1.05;
	text-wrap: balance;
}

/* La seconde ligne, plus petite et plus légère */
.ps-devis-bandeau__suite {
	display: block;
	margin-top: 12px;
	font-size: 0.5em;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.005em;
	font-variation-settings: 'wdth' 100;
	color: #9FB6CF;
}

.ps-devis-bandeau__intro {
	margin-top: 24px !important;
	max-width: 58ch;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--wp--preset--color--alu-fonce);
}

.ps-devis-bandeau .ps-regle {
	margin-top: var(--wp--preset--spacing--50) !important;
	opacity: 0.7;
}


/* --- Le contenu ----------------------------------------------------------- */

.ps-devis {
	padding-top: var(--wp--preset--spacing--60) !important;
	padding-bottom: var(--wp--preset--spacing--70) !important;
}

.ps-devis > * {
	margin: 0 !important;
}

.ps-devis__grille {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: var(--wp--preset--spacing--50);
	align-items: start;
}

.ps-devis__grille > * {
	margin: 0 !important;
}

.ps-devis__form {
	padding: 40px;
	background: var(--wp--preset--color--blanc);
	border: 1px solid var(--wp--preset--color--alu-fonce);
	border-radius: 2px;
}

/* La colonne de droite accompagne le défilement du formulaire */
.ps-devis__cote {
	position: sticky;
	top: 120px;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
}

.ps-devis__cote > * {
	margin: 0 !important;
}


/* --- Le rappel téléphonique ----------------------------------------------- */

.ps-devis__appel {
	padding: 28px;
	border: 1px solid var(--wp--preset--color--alu-fonce);
	border-top: 3px solid var(--wp--preset--color--bleu);
	border-radius: 2px;
}

.ps-devis__appel > * {
	margin: 0 !important;
}

.ps-devis__appel-label {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--wp--preset--color--encre);
}

.ps-devis__appel-num {
	margin-top: 10px !important;
}

.ps-devis__appel-num a {
	font-size: 1.9375rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.01em;
	font-variation-settings: 'wdth' 108;
	color: var(--wp--preset--color--bleu);
	text-decoration: none;
}

.ps-devis__appel-num a:hover {
	color: var(--wp--preset--color--bleu-fonce);
}

.ps-devis__appel-h {
	margin-top: 16px !important;
	padding-top: 14px;
	border-top: 1px solid var(--wp--preset--color--aluminium);
	font-size: 0.875rem;
	line-height: 1.6;
	color: #3E4A55;
}


/* --- Les trois arguments -------------------------------------------------- */

.ps-devis__points {
	display: flex;
	flex-direction: column;
	padding: 0 4px;
}

.ps-devis__point {
	position: relative;
	margin: 0 !important;
	padding: 20px 0 20px 40px;
	border-bottom: 1px solid var(--wp--preset--color--alu-fonce);
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--wp--preset--color--graphite);
}

.ps-devis__point:first-child {
	padding-top: 0;
}

.ps-devis__point:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.ps-devis__point strong {
	display: block;
	margin-bottom: 5px;
	font-size: 1rem;
	color: var(--wp--preset--color--encre);
}

.ps-devis__point::before {
	content: '';
	position: absolute;
	left: 0;
	top: 21px;
	width: 24px;
	height: 24px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.ps-devis__point:first-child::before {
	top: 1px;
}

.ps-devis__point--delai::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23034CAA' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='13.5' r='7.5'/%3E%3Cpath d='M12 9.5v4l2.6 1.7M9.8 2.8h4.4'/%3E%3C/svg%3E");
}

.ps-devis__point--photo::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23034CAA' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5h4l1.5-2.5h7L17 7.5h4v12H3z'/%3E%3Ccircle cx='12' cy='13' r='3.6'/%3E%3C/svg%3E");
}

.ps-devis__point--retrait::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23034CAA' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5h11v9h-11zM13.5 9.5h4l3 3v3h-7'/%3E%3Ccircle cx='6.5' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E");
}


/* =========================================================================
 * 20. LE FORMULAIRE
 *
 * Contact Form 7 : le balisage est le nôtre, donc les styles aussi.
 * ====================================================================== */

.ps-form__mention {
	margin: 0 0 30px !important;
	font-size: 0.875rem;
	color: var(--wp--preset--color--graphite);
}

/* Les deux étapes du formulaire, numérotées */
.ps-groupe {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px !important;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--wp--preset--color--aluminium);
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--wp--preset--color--encre);
}

.ps-groupe--2 {
	margin-top: 12px !important;
}

.ps-groupe__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	background: var(--wp--preset--color--bleu);
	border-radius: 50%;
	font-size: 0.875rem;
	font-weight: 800;
	color: var(--wp--preset--color--blanc);
}

.ps-form__duo {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 20px;
}

.ps-champ {
	margin: 0 0 22px !important;
}

.ps-champ label {
	display: block;
	margin-bottom: 7px;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--wp--preset--color--encre);
}

.ps-facultatif {
	font-weight: 400;
	color: var(--wp--preset--color--graphite);
}

.ps-aide {
	display: block;
	margin-bottom: 9px;
	font-size: 0.84375rem;
	line-height: 1.45;
	color: var(--wp--preset--color--graphite);
}


/* --- Les champs ----------------------------------------------------------- */

.ps-devis input[type="text"],
.ps-devis input[type="email"],
.ps-devis input[type="tel"],
.ps-devis select,
.ps-devis textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 13px 14px;
	background: var(--wp--preset--color--blanc);
	border: 1px solid var(--wp--preset--color--alu-fonce);
	border-radius: 2px;
	font-family: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--encre);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ps-devis input[type="text"]:focus,
.ps-devis input[type="email"]:focus,
.ps-devis input[type="tel"]:focus,
.ps-devis select:focus,
.ps-devis textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--bleu);
	box-shadow: 0 0 0 3px rgba(3, 76, 170, 0.14);
}

.ps-devis textarea {
	resize: vertical;
	min-height: 130px;
	line-height: 1.55;
}

.ps-devis select {
	appearance: none;
	padding-right: 42px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317222E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px;
}


/* --- Le champ de fichier -------------------------------------------------- */

.ps-champ--fichier input[type="file"] {
	width: 100%;
	box-sizing: border-box;
	padding: 14px;
	background: var(--wp--preset--color--aluminium);
	border: 1px dashed var(--wp--preset--color--alu-fonce);
	border-radius: 2px;
	font-family: inherit;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--graphite);
	cursor: pointer;
}

.ps-champ--fichier input[type="file"]::file-selector-button {
	margin-right: 14px;
	padding: 9px 16px;
	background: var(--wp--preset--color--encre);
	border: 0;
	border-radius: 2px;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--wp--preset--color--blanc);
	cursor: pointer;
}


/* --- Consentement et envoi ------------------------------------------------ */

.ps-consentement {
	margin: 4px 0 26px !important;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--wp--preset--color--graphite);
}

.ps-consentement .wpcf7-list-item {
	margin: 0;
}

.ps-consentement input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-right: 10px;
	vertical-align: -3px;
	accent-color: var(--wp--preset--color--bleu);
}

.ps-envoi {
	margin: 0 !important;
}

.ps-devis input[type="submit"] {
	display: inline-flex;
	align-items: center;
	min-height: 54px;
	padding: 0 28px;
	background: var(--wp--preset--color--jaune);
	border: 0;
	border-radius: 2px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	color: var(--wp--preset--color--encre);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.ps-devis input[type="submit"]:hover {
	background: #F2BE00;
}

.ps-devis .wpcf7-spinner {
	margin: 0 0 0 14px;
	vertical-align: middle;
}


/* --- Messages de Contact Form 7 ------------------------------------------- */

.ps-devis .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 0.84375rem;
	font-weight: 600;
	color: #B3261E;
}

.ps-devis .wpcf7-not-valid {
	border-color: #B3261E !important;
}

.ps-devis .wpcf7-response-output {
	margin: 26px 0 0 !important;
	padding: 18px 20px !important;
	border: 0 !important;
	border-left: 4px solid var(--wp--preset--color--bleu) !important;
	background: var(--wp--preset--color--aluminium);
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--wp--preset--color--encre);
}

.ps-devis form.sent .wpcf7-response-output {
	border-left-color: #1E7B3C !important;
}

.ps-devis form.invalid .wpcf7-response-output,
.ps-devis form.failed .wpcf7-response-output {
	border-left-color: #B3261E !important;
}


/* =========================================================================
 * 21. LA PAGE DE DEVIS EN ADAPTATIF
 * ====================================================================== */

@media (max-width: 980px) {
	.ps-devis__grille {
		grid-template-columns: 1fr;
	}
	/* Les arguments passent avant le formulaire : ils donnent envie d'écrire */
	.ps-devis__cote {
		position: static;
		order: -1;
	}
}

@media (max-width: 620px) {
	.ps-devis__form {
		padding: 24px 20px;
	}
	.ps-form__duo {
		grid-template-columns: 1fr;
	}
	.ps-devis input[type="submit"] {
		width: 100%;
		justify-content: center;
	}
	.ps-devis__appel {
		padding: 22px 20px;
	}
}


/* =========================================================================
 * 22. PAGE DES CATALOGUES, AVEC FILTRES
 * ====================================================================== */

/* --- Le bandeau de titre reste dans la grille du site --------------------- */

.ps-devis-bandeau > * {
	max-width: var(--wp--style--global--content-size);
	margin-left: auto !important;
	margin-right: auto !important;
}


/* --- La barre de filtres -------------------------------------------------- */

.ps-liste__filtres {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30);
	padding: 14px;
	background: var(--wp--preset--color--blanc);
	border: 1px solid var(--wp--preset--color--alu-fonce);
	border-radius: 2px;
}

.ps-liste__types {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}


/* --- Les boutons de filtre -----------------------------------------------
 * Le compteur est une pastille alignée au milieu du texte : pas de
 * dépendance à l'alignement du flex, donc pas de chiffre en exposant.
 */

.ps-puce {
	display: block;
	min-height: 44px;
	padding: 12px 18px;
	background: var(--wp--preset--color--blanc);
	border: 1px solid var(--wp--preset--color--alu-fonce);
	border-radius: 2px;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 20px;
	color: var(--wp--preset--color--encre);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ps-puce:hover:not(:disabled) {
	border-color: var(--wp--preset--color--bleu);
	color: var(--wp--preset--color--bleu);
}

.ps-puce.is-actif {
	background: var(--wp--preset--color--bleu);
	border-color: var(--wp--preset--color--bleu);
	color: var(--wp--preset--color--blanc);
}

.ps-puce:disabled {
	opacity: 0.4;
	cursor: default;
}

.ps-puce__n {
	display: inline-block;
	min-width: 20px;
	height: 20px;
	margin-left: 8px;
	padding: 0 6px;
	box-sizing: border-box;
	background: var(--wp--preset--color--aluminium);
	border-radius: 10px;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	color: var(--wp--preset--color--graphite);
	vertical-align: top;
}

.ps-puce.is-actif .ps-puce__n {
	background: rgba(255, 255, 255, 0.22);
	color: var(--wp--preset--color--blanc);
}


/* --- Le choix de la marque ------------------------------------------------ */

.ps-liste__marque {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ps-liste__marque label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wp--preset--color--graphite);
}

.ps-liste__marque select {
	min-height: 44px;
	min-width: 220px;
	padding: 0 42px 0 14px;
	appearance: none;
	background-color: var(--wp--preset--color--blanc);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317222E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px;
	border: 1px solid var(--wp--preset--color--alu-fonce);
	border-radius: 2px;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--wp--preset--color--encre);
}

.ps-liste__marque select:focus {
	outline: none;
	border-color: var(--wp--preset--color--bleu);
	box-shadow: 0 0 0 3px rgba(3, 76, 170, 0.14);
}

/* Le compteur de résultats n'apporte rien : masqué */
.ps-liste__total {
	display: none !important;
}


/* --- La grille ------------------------------------------------------------ */

.ps-liste__grille {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40);
	margin-top: var(--wp--preset--spacing--40);
	align-items: stretch;
}

.ps-liste__grille .ps-cat__titre {
	margin-top: 12px;
	font-size: 1.25rem;
	line-height: 1.25;
	font-weight: 700;
	font-variation-settings: 'wdth' 100;
	letter-spacing: 0;
}

.ps-liste__grille .ps-cat__validite {
	margin: 10px 0 0;
}

.ps-cat__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ps-badge {
	padding: 5px 9px;
	border-radius: 2px;
	font-size: 0.78125rem;
	font-weight: 700;
	line-height: 1.2;
}

.ps-badge--bientot {
	background: var(--wp--preset--color--encre);
	color: var(--wp--preset--color--jaune);
}

.ps-badge--nouveau {
	background: var(--wp--preset--color--bleu);
	color: var(--wp--preset--color--blanc);
}


/* --- Quand rien ne correspond --------------------------------------------- */

.ps-liste__rien {
	margin-top: var(--wp--preset--spacing--40);
	padding: 36px;
	background: var(--wp--preset--color--blanc);
	border: 1px dashed var(--wp--preset--color--alu-fonce);
	border-radius: 2px;
}

.ps-liste__rien p {
	margin: 0 0 10px;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--wp--preset--color--graphite);
}

.ps-liste__rien strong {
	font-size: 1.125rem;
	color: var(--wp--preset--color--encre);
}

.ps-liste__rien .ps-puce {
	margin-top: 8px;
}


/* --- Les filtres en adaptatif --------------------------------------------- */

@media (max-width: 1080px) {
	.ps-liste__grille {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.ps-liste__filtres {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	/* Les types glissent au doigt plutôt que de passer à la ligne */
	.ps-liste__types {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		scrollbar-width: none;
	}

	.ps-liste__types::-webkit-scrollbar {
		display: none;
	}

	.ps-puce {
		flex: 0 0 auto;
		white-space: nowrap;
	}

	.ps-liste__marque {
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
	}

	.ps-liste__marque select {
		min-width: 0;
		width: 100%;
		min-height: 48px;
	}
}

@media (max-width: 700px) {
	.ps-liste__grille {
		grid-template-columns: 1fr;
	}
	.ps-liste__rien {
		padding: 24px 20px;
	}
}


/* =========================================================================
 * 23. PAGE D'UNE FAMILLE DE PRODUITS
 * ====================================================================== */

/* --- Fil d'ariane dans le bandeau ----------------------------------------- */

.ps-fam-fil {
	margin: 0 0 20px !important;
	font-size: 0.875rem;
	color: #9FB6CF;
}

.ps-fam-fil a {
	color: #9FB6CF;
	text-decoration: none;
}

.ps-fam-fil a:hover {
	color: var(--wp--preset--color--jaune);
}

.ps-fam-fil a::after {
	content: '';
	display: inline-block;
	width: 11px;
	height: 11px;
	margin: 0 8px;
	vertical-align: -1px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239FB6CF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
}

.ps-fam-bandeau .wp-block-post-title {
	margin: 0 !important;
	color: var(--wp--preset--color--blanc);
	font-size: clamp(2.25rem, 3.4vw, 3.25rem);
	line-height: 1.05;
	text-wrap: balance;
}

.ps-fam-actions {
	margin-top: var(--wp--preset--spacing--40) !important;
	gap: 12px;
}


/* --- Les sous-familles ---------------------------------------------------- */

.ps-sousfamilles h2,
.ps-fam-marques h2,
.ps-fam-catalogues h2 {
	margin: 0;
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.015em;
	font-variation-settings: 'wdth' 112;
	color: var(--wp--preset--color--encre);
}

.ps-sousfamilles .ps-regle,
.ps-fam-marques .ps-regle,
.ps-fam-catalogues .ps-regle {
	margin: 16px 0 var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--encre);
}

.ps-sousfamilles__grille {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--wp--preset--color--alu-fonce);
	border: 1px solid var(--wp--preset--color--alu-fonce);
}

.ps-sousfamilles__grille li {
	margin: 0;
	padding: 20px 22px;
	background: var(--wp--preset--color--blanc);
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--wp--preset--color--encre);
}


/* --- Le texte technique de la fiche --------------------------------------- */

.ps-fam-texte h2 {
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	line-height: 1.15;
	margin-top: var(--wp--preset--spacing--50);
}

.ps-fam-texte h3 {
	margin-top: var(--wp--preset--spacing--40);
	font-size: 1.25rem;
}

.ps-fam-texte p {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--wp--preset--color--graphite);
}

.ps-fam-texte p:first-child {
	margin-top: 0;
}

/* Les tableaux de choix */
.ps-fam-texte table {
	width: 100%;
	border-collapse: collapse;
	margin: var(--wp--preset--spacing--40) 0;
	font-size: 0.96875rem;
}

.ps-fam-texte thead th {
	padding: 16px 20px;
	background: var(--wp--preset--color--bleu-fonce);
	color: var(--wp--preset--color--blanc);
	text-align: left;
	font-weight: 700;
}

.ps-fam-texte tbody td {
	padding: 16px 20px;
	border-bottom: 1px solid var(--wp--preset--color--alu-fonce);
	color: var(--wp--preset--color--graphite);
	vertical-align: top;
}

.ps-fam-texte tbody tr:nth-child(even) td {
	background: var(--wp--preset--color--aluminium);
}

.ps-fam-texte tbody td:first-child {
	font-weight: 700;
	color: var(--wp--preset--color--encre);
}

/* Le bloc « bon à savoir » : une citation avec filet jaune */
.ps-fam-texte blockquote {
	margin: var(--wp--preset--spacing--40) 0;
	padding: 24px 26px;
	background: var(--wp--preset--color--aluminium);
	border-left: 4px solid var(--wp--preset--color--jaune);
}

.ps-fam-texte blockquote p {
	margin: 0;
	font-size: 0.96875rem;
	line-height: 1.6;
	color: var(--wp--preset--color--encre);
}


/* --- Les marques de la famille -------------------------------------------- */

.ps-fam-marques__grille {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.ps-fam-marques__item {
	width: 190px;
	height: 92px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	background: var(--wp--preset--color--blanc);
	border: 1px solid var(--wp--preset--color--alu-fonce);
	border-radius: 2px;
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--graphite);
}

.ps-fam-marques__item img {
	max-width: 100%;
	max-height: 60px;
	width: auto;
	height: auto;
	object-fit: contain;
}


/* --- L'appel final -------------------------------------------------------- */

.ps-fam-final__grille {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--50);
}

.ps-fam-final__grille > * {
	margin: 0 !important;
}

.ps-fam-final h2 {
	margin: 0 !important;
	color: var(--wp--preset--color--blanc);
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	line-height: 1.15;
}

.ps-fam-final__texte {
	margin-top: 14px !important;
	max-width: 52ch;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--wp--preset--color--alu-fonce);
}

.ps-fam-final__actions {
	gap: 12px;
}


/* --- La page de famille en adaptatif -------------------------------------- */

@media (max-width: 980px) {
	.ps-sousfamilles__grille {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.ps-sousfamilles__grille {
		grid-template-columns: 1fr;
	}
	.ps-fam-marques__item {
		width: calc(50% - 10px);
		height: 78px;
	}
	.ps-fam-texte table {
		display: block;
		overflow-x: auto;
	}
	.ps-fam-actions .wp-block-button,
	.ps-fam-final__actions .wp-block-button {
		width: 100%;
	}
	.ps-fam-actions .wp-block-button__link,
	.ps-fam-final__actions .wp-block-button__link {
		display: block;
		text-align: center;
	}
}


/* =========================================================================
 * 24. LISTE DES FAMILLES (page « Nos produits »)
 * ====================================================================== */

/* Cartes plus grandes que sur l'accueil : trois par ligne */
.ps-familles--archive .ps-famille {
	min-height: 240px;
	padding: 30px 28px;
}

.ps-familles--archive .ps-famille__titre {
	font-size: 1.4375rem;
}

.ps-familles--archive .ps-famille__texte {
	font-size: 0.96875rem;
}

@media (max-width: 1080px) {
	.ps-familles--archive {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 620px) {
	.ps-familles--archive {
		grid-template-columns: 1fr !important;
	}
	.ps-familles--archive .ps-famille {
		min-height: 0;
		padding: 20px 18px;
	}
	/* Sur la page dédiée, la description reste utile en mobile */
	.ps-familles--archive .ps-famille__texte {
		display: block;
	}
}


/* =========================================================================
 * 25. SURVOL DES CARTES CLIQUABLES
 *
 * Un fond bleuté et un filet latéral : assez visible pour signaler que
 * la carte entière est cliquable, assez discret pour ne pas clignoter.
 * ====================================================================== */

.ps-famille {
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.ps-famille:hover,
.ps-famille:focus-within {
	background: #EDF3FB;
	box-shadow: inset 3px 0 0 var(--wp--preset--color--bleu);
}

.ps-famille:hover .ps-famille__titre a,
.ps-famille:focus-within .ps-famille__titre a {
	color: var(--wp--preset--color--bleu);
}

/* Même signal sur les cartes de catalogue */
.ps-cat {
	transition: box-shadow 0.15s ease;
}

.ps-cat:hover {
	box-shadow: 0 6px 18px rgba(23, 34, 46, 0.09);
}


/* =========================================================================
 * 26. PAGE L'ENTREPRISE
 * ====================================================================== */

/* --- L'histoire de famille ------------------------------------------------ */

.ps-histoire__grille {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: var(--wp--preset--spacing--60);
	align-items: center;
}

.ps-histoire__grille > * {
	margin: 0 !important;
}

.ps-histoire h2 {
	margin: 0 !important;
	font-size: clamp(1.625rem, 2.8vw, 2.25rem);
	line-height: 1.15;
	max-width: 22ch;
}

.ps-histoire__texte {
	margin-top: 22px !important;
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--wp--preset--color--graphite);
}

/* Emplacement de la photo, en attendant les vraies images */
.ps-histoire__photo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	padding: 24px;
	background: var(--wp--preset--color--aluminium);
	border: 1px dashed var(--wp--preset--color--alu-fonce);
	border-radius: 2px;
	text-align: center;
	font-size: 0.875rem;
	color: var(--wp--preset--color--graphite);
}

.ps-histoire__photo p {
	margin: 0 !important;
}


/* --- La chronologie -------------------------------------------------------
 * Un axe vertical gradué, comme une règle posée sur le temps.
 */

.ps-chrono h2,
.ps-constantes h2,
.ps-geadis h2 {
	margin: 0 !important;
	font-size: clamp(1.625rem, 2.8vw, 2.25rem);
	line-height: 1.15;
}

.ps-chrono .ps-regle,
.ps-constantes .ps-regle {
	margin: 16px 0 var(--wp--preset--spacing--60) !important;
	color: var(--wp--preset--color--encre);
}

.ps-chrono__liste {
	position: relative;
	padding-left: 148px;
}

/* L'axe gradué, à gauche des jalons */
.ps-chrono__liste::before {
	content: '';
	position: absolute;
	left: 118px;
	top: 6px;
	bottom: 6px;
	width: 9px;
	background-image:
		linear-gradient(var(--wp--preset--color--alu-fonce), var(--wp--preset--color--alu-fonce)),
		repeating-linear-gradient(to bottom, var(--wp--preset--color--alu-fonce) 0 1px, transparent 1px 10px);
	background-size: 1px 100%, 9px 100%;
	background-position: left top, left top;
	background-repeat: no-repeat, repeat-y;
}

.ps-chrono__liste > * {
	margin: 0 !important;
}

.ps-jalon {
	position: relative;
	padding: 0 0 var(--wp--preset--spacing--50) 0;
}

.ps-jalon:last-child {
	padding-bottom: 0;
}

.ps-jalon > * {
	margin: 0 !important;
}

/* L'année, à gauche de l'axe */
.ps-jalon__annee {
	position: absolute;
	left: -148px;
	top: -2px;
	width: 108px;
	text-align: right;
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1.2;
	font-variation-settings: 'wdth' 110;
	color: var(--wp--preset--color--graphite);
}

/* Le point sur l'axe */
.ps-jalon::before {
	content: '';
	position: absolute;
	left: -35px;
	top: 6px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--wp--preset--color--aluminium);
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--graphite);
}

.ps-jalon__titre {
	font-size: 1.1875rem;
	line-height: 1.25;
	font-variation-settings: 'wdth' 105;
	color: var(--wp--preset--color--encre);
}

.ps-jalon__texte {
	margin-top: 8px !important;
	max-width: 62ch;
	font-size: 0.96875rem;
	line-height: 1.65;
	color: var(--wp--preset--color--graphite);
}

/* Les quatre jalons qui marquent un changement d'étape */
.ps-jalon--fort .ps-jalon__annee {
	font-size: 1.875rem;
	color: var(--wp--preset--color--bleu);
}

.ps-jalon--fort::before {
	left: -37px;
	width: 15px;
	height: 15px;
	top: 5px;
	background: var(--wp--preset--color--jaune);
	box-shadow: inset 0 0 0 3px var(--wp--preset--color--bleu);
}

.ps-jalon--fort .ps-jalon__titre {
	font-size: 1.375rem;
}


/* --- Le groupement --------------------------------------------------------- */

.ps-geadis__grille {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: var(--wp--preset--spacing--60);
	align-items: start;
}

.ps-geadis__grille > * {
	margin: 0 !important;
}

.ps-geadis__texte {
	margin-top: 20px !important;
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--wp--preset--color--graphite);
}

.ps-geadis__texte--fort {
	padding-left: 20px;
	border-left: 3px solid var(--wp--preset--color--jaune);
	font-weight: 600;
	color: var(--wp--preset--color--encre);
}

.ps-geadis__chiffres {
	display: flex;
	flex-direction: column;
	padding: 30px;
	background: var(--wp--preset--color--aluminium);
	border-radius: 2px;
}

.ps-geadis__chiffres > * {
	margin: 0 !important;
}

.ps-geadis__chiffre {
	padding: 18px 0;
	border-bottom: 1px solid var(--wp--preset--color--alu-fonce);
	font-size: 0.90625rem;
	line-height: 1.45;
	color: var(--wp--preset--color--graphite);
}

.ps-geadis__chiffre:first-child {
	padding-top: 0;
}

.ps-geadis__chiffre:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.ps-geadis__chiffre strong {
	display: block;
	margin-bottom: 4px;
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1;
	font-variation-settings: 'wdth' 110;
	color: var(--wp--preset--color--bleu);
}


/* --- L'entreprise en adaptatif -------------------------------------------- */

@media (max-width: 980px) {
	.ps-histoire__grille,
	.ps-geadis__grille {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--50);
	}

	.ps-histoire__photo {
		min-height: 240px;
	}
}

/* Sur téléphone, l'année passe au-dessus du titre */
@media (max-width: 700px) {
	.ps-chrono__liste {
		padding-left: 28px;
	}

	.ps-chrono__liste::before {
		left: 0;
	}

	.ps-jalon__annee {
		position: static;
		width: auto;
		text-align: left;
		margin-bottom: 4px !important;
	}

	.ps-jalon::before,
	.ps-jalon--fort::before {
		left: -34px;
		top: 8px;
	}
}


/* =========================================================================
 * 27. FIN DE PAGE
 *
 * La bande d'appel finale reste sur fond clair : trois blocs bleus
 * d'affilée (bandeau, appel, pied de page) se confondraient.
 * ====================================================================== */

.ps-fam-final {
	background: var(--wp--preset--color--aluminium) !important;
	border-top: 1px solid var(--wp--preset--color--alu-fonce);
}

.ps-fam-final h2 {
	color: var(--wp--preset--color--encre) !important;
}

.ps-fam-final__texte {
	color: var(--wp--preset--color--graphite) !important;
}

.ps-fam-final .ps-bouton-clair .wp-block-button__link {
	color: var(--wp--preset--color--encre) !important;
	border-color: var(--wp--preset--color--encre);
}

.ps-fam-final .ps-bouton-clair .wp-block-button__link:hover {
	background: var(--wp--preset--color--encre) !important;
	color: var(--wp--preset--color--blanc) !important;
}


/* --- La photo du showroom, servie depuis le thème ------------------------- */

.ps-histoire__photo {
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 2px;
	aspect-ratio: 4 / 3;
	background-image: url('assets/images/showroom.webp');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.ps-histoire__photo p {
	display: none;
}


/* =========================================================================
 * 28. PAGE NOUS RENDRE VISITE
 * ====================================================================== */

.ps-visite__grille {
	display: grid;
	grid-template-columns: 380px minmax(0, 1fr);
	gap: var(--wp--preset--spacing--40);
	align-items: stretch;
}

.ps-visite__grille > * {
	margin: 0 !important;
}


/* --- Les trois blocs d'information ---------------------------------------- */

.ps-visite__infos {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
}

.ps-visite__infos > * {
	margin: 0 !important;
}

.ps-visite__bloc {
	position: relative;
	padding: 26px 26px 26px 66px;
	background: var(--wp--preset--color--blanc);
	border: 1px solid var(--wp--preset--color--alu-fonce);
	border-radius: 2px;
}

.ps-visite__bloc > * {
	margin: 0 !important;
}

/* Le pictogramme de chaque bloc */
.ps-visite__bloc::before {
	content: '';
	position: absolute;
	left: 26px;
	top: 27px;
	width: 24px;
	height: 24px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.ps-visite__bloc--adresse::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23034CAA' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21.5S19 15 19 10a7 7 0 1 0-14 0c0 5 7 11.5 7 11.5z'/%3E%3Ccircle cx='12' cy='10' r='2.6'/%3E%3C/svg%3E");
}

.ps-visite__bloc--horaires::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23034CAA' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.2 2'/%3E%3C/svg%3E");
}

.ps-visite__bloc--contact::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23034CAA'%3E%3Cpath d='M6.6 10.8a15.4 15.4 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.24 11.4 11.4 0 0 0 3.6.58 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11.4 11.4 0 0 0 .57 3.6 1 1 0 0 1-.25 1z'/%3E%3C/svg%3E");
}

.ps-visite__titre {
	font-size: 1.0625rem !important;
	font-weight: 700;
	line-height: 1.2;
	font-variation-settings: 'wdth' 105;
	letter-spacing: 0;
	color: var(--wp--preset--color--encre);
}

.ps-visite__texte {
	margin-top: 12px !important;
	font-size: 0.96875rem;
	line-height: 1.6;
	color: var(--wp--preset--color--graphite);
}

.ps-visite__texte a {
	color: var(--wp--preset--color--bleu);
	text-decoration: none;
}

.ps-visite__lien {
	margin-top: 16px !important;
}

.ps-visite__tel {
	margin-top: 12px !important;
}

.ps-visite__tel a {
	font-size: 1.625rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.01em;
	font-variation-settings: 'wdth' 108;
	color: var(--wp--preset--color--bleu);
	text-decoration: none;
}

/* Le tableau des horaires */
.ps-visite__horaires {
	margin: 12px 0 0 !important;
}

.ps-visite__horaires table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.ps-visite__horaires td {
	padding: 9px 0;
	border-bottom: 1px solid var(--wp--preset--color--aluminium);
	color: var(--wp--preset--color--graphite);
	border-left: 0;
	border-right: 0;
	border-top: 0;
}

.ps-visite__horaires tr:last-child td {
	border-bottom: 0;
}

.ps-visite__horaires td:first-child {
	font-weight: 600;
	color: var(--wp--preset--color--encre);
}

.ps-visite__horaires td:last-child {
	text-align: right;
	font-variant-numeric: tabular-nums;
}


/* --- La carte -------------------------------------------------------------- */

.ps-visite__carte {
	display: flex;
	min-height: 440px;
	background: var(--wp--preset--color--blanc);
	border: 1px solid var(--wp--preset--color--alu-fonce);
	border-radius: 2px;
	overflow: hidden;
}

.ps-visite__carte > * {
	margin: 0 !important;
	width: 100%;
}


/* --- En arrivant ----------------------------------------------------------- */

.ps-arrivee h2 {
	margin: 0 !important;
	font-size: clamp(1.625rem, 2.8vw, 2.25rem);
	line-height: 1.15;
}

.ps-arrivee .ps-regle {
	margin: 16px 0 var(--wp--preset--spacing--50) !important;
	color: var(--wp--preset--color--encre);
}

.ps-arrivee__grille {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--wp--preset--spacing--60);
	align-items: center;
}

.ps-arrivee__grille > * {
	margin: 0 !important;
}

.ps-arrivee__photo {
	aspect-ratio: 16 / 10;
	border-radius: 2px;
	background-image: url('assets/images/hero-facade.webp');
	background-size: cover;
	background-position: 54% center;
	background-repeat: no-repeat;
}

.ps-arrivee__texte > * {
	margin: 0 !important;
}

.ps-arrivee__point {
	position: relative;
	padding: 20px 0 20px 42px;
	border-bottom: 1px solid var(--wp--preset--color--alu-fonce);
	font-size: 0.96875rem;
	line-height: 1.6;
	color: var(--wp--preset--color--graphite);
}

.ps-arrivee__point:first-child {
	padding-top: 0;
}

.ps-arrivee__point:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.ps-arrivee__point strong {
	display: block;
	margin-bottom: 5px;
	font-size: 1.0625rem;
	color: var(--wp--preset--color--encre);
}

.ps-arrivee__point::before {
	content: '';
	position: absolute;
	left: 0;
	top: 21px;
	width: 24px;
	height: 24px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.ps-arrivee__point:first-child::before {
	top: 1px;
}

/* Fanion */
.ps-arrivee__point--enseigne::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23034CAA' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4v17'/%3E%3Cpath d='M4 5h16l-6 4.5L20 14H4z'/%3E%3C/svg%3E");
}

/* Voiture */
.ps-arrivee__point--parking::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23034CAA' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 16.5v2.5M20 16.5v2.5M3 16.5h18v-4l-2-4.5H5L3 12.5z'/%3E%3Cpath d='M6.5 12.5h11'/%3E%3C/svg%3E");
}

/* Porte */
.ps-arrivee__point--entree::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23034CAA' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V4.5a1 1 0 0 1 .8-1l10-1.4a1 1 0 0 1 1.2 1V21'/%3E%3Cpath d='M3 21h18M13.5 12.5v1.5'/%3E%3C/svg%3E");
}

/* Étagères */
.ps-arrivee__point--showroom::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23034CAA' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4v16M21 4v16M3 9.5h18M3 15h18'/%3E%3C/svg%3E");
}


/* --- La visite en adaptatif ------------------------------------------------ */

@media (max-width: 980px) {
	.ps-visite__grille {
		grid-template-columns: 1fr;
	}

	.ps-visite__carte {
		min-height: 320px;
	}

	.ps-arrivee__grille {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--50);
	}
}

@media (max-width: 620px) {
	.ps-visite__bloc {
		padding: 22px 20px 22px 58px;
	}

	.ps-visite__bloc::before {
		left: 20px;
	}

	.ps-visite__horaires td:last-child {
		text-align: left;
	}

	.ps-visite__horaires tr {
		display: flex;
		flex-direction: column;
		padding: 8px 0;
		border-bottom: 1px solid var(--wp--preset--color--aluminium);
	}

	.ps-visite__horaires td {
		padding: 2px 0;
		border: 0;
	}
}


/* =========================================================================
 * 29. CORRECTIONS DE LA FICHE FAMILLE
 * ====================================================================== */

/* Le titre du bandeau suit la même grille que le reste de la page */
.ps-fam-bandeau > * {
	max-width: var(--wp--style--global--content-size);
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Les sections marques et catalogues n'occupent pas de place si elles sont vides */
.ps-fam-marques:empty,
.ps-fam-catalogues:empty {
	display: none;
}

.ps-section:has(.ps-fam-marques:empty),
.ps-section:has(.ps-fam-catalogues:empty) {
	display: none;
}


/* =========================================================================
 * 30. CORRECTIONS RÉELLES (fiche famille)
 *
 * Les deux essais précédents visaient les mauvais éléments :
 * un groupe alignfull totalement vide, et le titre natif WordPress.
 * ====================================================================== */

/* Le titre natif suit la grille, avec la bonne spécificité */
h1.wp-block-post-title {
	max-width: var(--wp--style--global--content-size);
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Un groupe alignfull totalement vide ne prend plus de place */
.ps-section.alignfull:empty {
	display: none !important;
	padding: 0 !important;
}


/* =========================================================================
 * 31. LE VRAI CORRECTIF DU BANDEAU DE FAMILLE
 *
 * Il manquait le groupe intérieur à largeur fixe, celui que la home
 * utilise déjà (.ps-hero > .wp-block-group). Sans lui, le contenu
 * du bandeau full-width n'était jamais recentré.
 * ====================================================================== */

.ps-fam-bandeau__interieur {
	max-width: var(--wp--style--global--content-size);
	margin-left: auto !important;
	margin-right: auto !important;
}


/* =========================================================================
 * 32. SECTIONS GÉNÉRÉES EN PHP (marques et catalogues de la famille)
 *
 * Ces deux sections sont désormais écrites par ps-famille.php, qui
 * n'affiche la balise <section> que s'il y a quelque chose à montrer.
 * Une famille sans marque associée ne laisse donc aucune trace dans
 * la page, contrairement au groupe de blocs fixe utilisé avant.
 * ====================================================================== */

.ps-section--marques,
.ps-section--catalogues-famille {
	display: block;
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

.ps-section--marques {
	background: var(--wp--preset--color--aluminium);
}

.ps-section--catalogues-famille {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
	background: var(--wp--preset--color--blanc);
}

.ps-section--marques > *,
.ps-section--catalogues-famille > * {
	max-width: var(--wp--style--global--content-size);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--wp--preset--spacing--40);
	padding-right: var(--wp--preset--spacing--40);
	box-sizing: content-box;
}


/* =========================================================================
 * 33. FICHE PRODUIT (WooCommerce, mode catalogue)
 *
 * Le bandeau est celui des autres pages (section 19). Le fil d'ariane, la
 * photo, les références et l'appel à l'action sont écrits par
 * inc/ps-mode-catalogue.php.
 * ====================================================================== */

.ps-produit__grille {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: var(--wp--preset--spacing--60);
	align-items: start;
}

/* --- Le fil d'ariane du bandeau --------------------------------------------
 * La section 23 lui impose « margin: 0 0 20px !important » : seul un
 * « !important » plus spécifique peut le recentrer sur la grille du site.
 */

.ps-devis-bandeau .ps-fam-fil {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	row-gap: 4px;
	max-width: var(--wp--style--global--content-size);
	margin-left: auto !important;
	margin-right: auto !important;
}

.ps-fam-fil [aria-current="page"] {
	color: var(--wp--preset--color--blanc);
}


/* --- La photo -------------------------------------------------------------- */

.ps-produit__visuel {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	margin: 0;
	padding: 24px;
	box-sizing: border-box;
	background: var(--wp--preset--color--blanc);
	border: 1px solid var(--wp--preset--color--alu-fonce);
	border-radius: 2px;
}

.ps-produit__image {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Avec photo (la sienne ou celle de la catégorie) : mention dessous */
.ps-produit__visuel--photo {
	flex-direction: column;
	gap: 12px;
}

.ps-produit__visuel--photo .ps-produit__image {
	flex: 1 1 auto;
	min-height: 0;
}

.ps-produit__mention {
	flex: 0 0 auto;
	font-size: 0.75rem;
	line-height: 1.4;
	text-align: center;
	color: var(--wp--preset--color--graphite);
}

/* Sans photo : le pictogramme de la famille, avec la mention dessous */
.ps-produit__visuel--vide {
	flex-direction: column;
	gap: 14px;
	background: transparent;
	border-style: dashed;
	font-size: 0.875rem;
	text-align: center;
	color: var(--wp--preset--color--graphite);
}

.ps-produit__icone {
	width: 96px;
	height: 96px;
	color: var(--wp--preset--color--bleu);
	opacity: 0.55;
}


/* --- Marque, résumé et références ------------------------------------------ */

.ps-produit__infos > * {
	margin: 0;
}

.ps-produit__resume {
	margin-top: 18px;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--wp--preset--color--graphite);
}

.ps-produit__resume p {
	margin: 0 0 0.75em;
}

.ps-produit__fiche {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--wp--preset--color--alu-fonce);
}

.ps-produit__resume + .ps-produit__fiche {
	margin-top: 28px;
}

.ps-produit__ligne {
	display: grid;
	grid-template-columns: 11rem minmax(0, 1fr);
	gap: 16px;
	padding: 13px 0;
	border-bottom: 1px solid var(--wp--preset--color--alu-fonce);
	font-size: 0.96875rem;
}

.ps-produit__ligne dt {
	margin: 0;
	font-weight: 600;
	color: var(--wp--preset--color--graphite);
}

.ps-produit__ligne dd {
	margin: 0;
	font-weight: 700;
	color: var(--wp--preset--color--encre);
	overflow-wrap: anywhere;
}


/* --- L'appel à l'action ---------------------------------------------------- */

.ps-produit-cta {
	margin-top: 32px;
	padding: 26px 28px;
	background: var(--wp--preset--color--blanc);
	border: 1px solid var(--wp--preset--color--alu-fonce);
	border-top: 3px solid var(--wp--preset--color--bleu);
	border-radius: 2px;
}

.ps-produit-cta > * {
	margin: 0;
}

.ps-produit-cta__bouton {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	max-width: 100%;
	min-height: 54px;
	padding: 0 28px;
	background: var(--wp--preset--color--jaune);
	border-radius: 2px;
	font-size: 1rem;
	font-weight: 700;
	color: var(--wp--preset--color--encre);
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.ps-produit-cta__bouton:hover {
	background: #F2BE00;
	color: var(--wp--preset--color--encre);
}

.ps-produit-cta__tel {
	margin-top: 16px;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--graphite);
}

.ps-produit-cta__tel a {
	font-size: 1.375rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	font-variation-settings: 'wdth' 108;
	color: var(--wp--preset--color--bleu);
	text-decoration: none;
}

.ps-produit-cta__tel a:hover {
	color: var(--wp--preset--color--bleu-fonce);
}

/* Sans bouton, le numéro est seul dans l'encadré */
.ps-produit-cta--seul .ps-produit-cta__tel {
	margin-top: 0;
}


/* --- La fiche produit en adaptatif ----------------------------------------- */

@media (max-width: 980px) {
	.ps-produit__grille {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--50);
	}
}

@media (max-width: 620px) {
	.ps-produit__ligne {
		grid-template-columns: 1fr;
		gap: 2px;
	}
	.ps-produit-cta {
		padding: 22px 20px;
	}
	.ps-produit-cta__bouton {
		width: 100%;
		justify-content: center;
	}
}


/* =========================================================================
 * 34. LISTE DES PRODUITS D'UNE CATÉGORIE
 *
 * Bandeau : celui des autres pages (section 19). Les sous-catégories, la
 * grille et la pagination sont écrites par inc/ps-categorie-produits.php.
 * ====================================================================== */

/* --- Les sous-catégories --------------------------------------------------- */

.ps-souscats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 var(--wp--preset--spacing--40);
	padding: 0;
	list-style: none;
}

.ps-souscats a {
	display: block;
	min-height: 44px;
	padding: 12px 16px;
	box-sizing: border-box;
	background: var(--wp--preset--color--blanc);
	border: 1px solid var(--wp--preset--color--alu-fonce);
	border-radius: 2px;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 20px;
	color: var(--wp--preset--color--encre);
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.ps-souscats a:hover {
	border-color: var(--wp--preset--color--bleu);
	color: var(--wp--preset--color--bleu);
}

.ps-souscats a span {
	margin-left: 8px;
	font-weight: 600;
	color: var(--wp--preset--color--graphite);
}


/* --- La grille de produits ------------------------------------------------- */

.ps-produits__grille {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--wp--preset--color--alu-fonce);
	border: 1px solid var(--wp--preset--color--alu-fonce);
}

.ps-prod {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	background: var(--wp--preset--color--blanc);
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.ps-prod:hover,
.ps-prod:focus-within {
	background: #EDF3FB;
	box-shadow: inset 3px 0 0 var(--wp--preset--color--bleu);
}

.ps-prod__visuel {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	padding: 16px;
	box-sizing: border-box;
	border-bottom: 1px solid var(--wp--preset--color--aluminium);
}

.ps-prod__image {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.ps-prod__visuel .ps-produit__icone {
	width: 56px;
	height: 56px;
}

.ps-prod__infos {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px 22px;
}

.ps-prod__marque {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--bleu);
}

.ps-prod__titre {
	margin: 0;
	font-size: 1rem;
	line-height: 1.3;
	font-weight: 700;
	font-variation-settings: 'wdth' 100;
	letter-spacing: 0;
}

.ps-prod__titre a {
	color: var(--wp--preset--color--encre);
	text-decoration: none;
}

/* La carte entière est cliquable */
.ps-prod__titre a::after {
	content: '';
	position: absolute;
	inset: 0;
}

.ps-prod:hover .ps-prod__titre a,
.ps-prod:focus-within .ps-prod__titre a {
	color: var(--wp--preset--color--bleu);
}

.ps-prod__ref {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--graphite);
}


/* --- La pagination --------------------------------------------------------- */

.ps-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: var(--wp--preset--spacing--50);
}

.ps-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	box-sizing: border-box;
	background: var(--wp--preset--color--blanc);
	border: 1px solid var(--wp--preset--color--alu-fonce);
	border-radius: 2px;
	font-weight: 700;
	color: var(--wp--preset--color--encre);
	text-decoration: none;
}

.ps-pagination a.page-numbers:hover {
	border-color: var(--wp--preset--color--bleu);
	color: var(--wp--preset--color--bleu);
}

.ps-pagination .page-numbers.current {
	background: var(--wp--preset--color--bleu);
	border-color: var(--wp--preset--color--bleu);
	color: var(--wp--preset--color--blanc);
}


/* --- Les sous-familles de la page de famille, devenues des liens ----------- */

.ps-sousfamilles__grille li {
	position: relative;
}

.ps-sousfamilles__grille li a {
	color: inherit;
	text-decoration: none;
}

.ps-sousfamilles__grille li a::after {
	content: '';
	position: absolute;
	inset: 0;
}

.ps-sousfamilles__grille li:hover,
.ps-sousfamilles__grille li:focus-within {
	box-shadow: inset 3px 0 0 var(--wp--preset--color--bleu);
}

.ps-sousfamilles__grille li:hover a,
.ps-sousfamilles__grille li:focus-within a {
	color: var(--wp--preset--color--bleu);
}


/* --- La liste de produits en adaptatif ------------------------------------- */

@media (max-width: 1080px) {
	.ps-produits__grille {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 780px) {
	.ps-produits__grille {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.ps-produits__grille {
		grid-template-columns: 1fr;
	}
}


/* =========================================================================
 * 35. RECHERCHE DE PRODUITS
 *
 * Le champ vit dans la barre utilitaire de l'en-tête (section 3, hauteur
 * fixée à 38px) ; la page de résultats reprend le bandeau de la section 19
 * et la grille de la section 34. Écrit par inc/ps-recherche.php.
 * ====================================================================== */

.ps-recherche {
	display: flex;
	align-items: center;
	gap: 0;
	margin: 0;
}

.ps-recherche__etiquette {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ps-recherche__champ {
	width: 240px;
	height: 30px;
	margin: 0;
	padding: 0 10px;
	box-sizing: border-box;
	background: var(--wp--preset--color--blanc);
	border: 1px solid var(--wp--preset--color--blanc);
	border-radius: 2px 0 0 2px;
	font: inherit;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--encre);
}

.ps-recherche__champ::placeholder {
	color: var(--wp--preset--color--graphite);
}

.ps-recherche__champ:focus-visible {
	outline: 2px solid var(--wp--preset--color--jaune);
	outline-offset: 1px;
}

.ps-recherche__bouton {
	height: 30px;
	margin: 0;
	padding: 0 12px;
	box-sizing: border-box;
	background: var(--wp--preset--color--jaune);
	border: 1px solid var(--wp--preset--color--jaune);
	border-radius: 0 2px 2px 0;
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--wp--preset--color--encre);
	cursor: pointer;
}

.ps-recherche__bouton:hover {
	background: var(--wp--preset--color--blanc);
	border-color: var(--wp--preset--color--blanc);
}

.ps-recherche__bouton:focus-visible {
	outline: 2px solid var(--wp--preset--color--blanc);
	outline-offset: 1px;
}

/* --- Page de résultats ------------------------------------------------------ */

.ps-produits .ps-recherche {
	max-width: 560px;
	margin-bottom: var(--wp--preset--spacing--40);
}

.ps-hero__recherche .ps-recherche {
	max-width: 460px;
}

.ps-produits .ps-recherche__champ,
.ps-hero__recherche .ps-recherche__champ {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	height: 48px;
	padding: 0 14px;
	border-color: var(--wp--preset--color--alu-fonce);
	font-size: 1rem;
}

.ps-produits .ps-recherche__bouton,
.ps-hero__recherche .ps-recherche__bouton {
	height: 48px;
	padding: 0 20px;
	font-size: 1rem;
}

.ps-resultats__compte {
	margin: 0 0 var(--wp--preset--spacing--30);
	font-weight: 700;
	color: var(--wp--preset--color--graphite);
}

@media (max-width: 620px) {

	.ps-recherche__champ {
		width: 170px;
	}
}


/* =========================================================================
 * PICTOGRAMMES ET FILET DES CARTES DE FAMILLE
 * ====================================================================== */

/* L'en-tête de la carte porte uniquement le pictogramme, à gauche */
.ps-famille__entete {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
}

/* Flèche de lien : signale la carte cliquable sans survol (utile au tactile) */
.ps-famille__entete::after {
	content: '\2192';
	content: '\2192' / '';
	font-size: 1.25rem;
	line-height: 1;
	color: var(--wp--preset--color--bleu);
	transition: transform 0.18s ease;
}

.ps-famille:hover .ps-famille__entete::after,
.ps-famille:focus-within .ps-famille__entete::after {
	transform: translateX(4px);
}

.ps-famille__icone {
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	color: var(--wp--preset--color--bleu);
	transition: transform 0.18s ease;
}

.ps-famille:hover .ps-famille__icone {
	transform: translateY(-2px);
}

/* Le filet au-dessus des marques, en jaune */
.ps-famille__marques {
	border-top: 2px solid #F2BE00 !important;
}


/* =========================================================================
 * PAGES LÉGALES
 * Colonne de lecture étroite, titres sobres, texte confortable.
 * ====================================================================== */

.ps-legal h2 {
	margin-top: var(--wp--preset--spacing--50) !important;
	font-size: 1.375rem;
	line-height: 1.25;
	font-variation-settings: 'wdth' 105;
	letter-spacing: 0;
}

.ps-legal p,
.ps-legal li {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--wp--preset--color--graphite);
}

.ps-legal strong {
	color: var(--wp--preset--color--encre);
}

.ps-legal a {
	color: var(--wp--preset--color--bleu);
}

.ps-legal__maj {
	font-size: 0.875rem !important;
	font-style: italic;
}

/* =========================================================================
 * EXTRAIT DES CARTES DE CATALOGUE
 * Texte court entre le titre et la validité, limité à trois lignes
 * pour que toutes les cartes gardent la même hauteur.
 * ====================================================================== */

.ps-cat__extrait,
.ps-cat__extrait p {
	margin: 8px 0 0 !important;
	font-size: 0.90625rem;
	line-height: 1.5;
	color: var(--wp--preset--color--graphite);
}

.ps-cat__extrait p,
p.ps-cat__extrait {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}


/* =========================================================================
 * CARTES DE CATALOGUE GÉNÉRÉES EN PHP (page des catalogues, fiche famille)
 * ====================================================================== */

/* Le filtre masque les cartes avec l'attribut « hidden » : sans cette règle,
   le display:flex des cartes l'emporte et aucune carte ne disparaît. */
.ps-cat[hidden],
.ps-liste__rien[hidden] {
	display: none !important;
}

/* Couverture à gauche, texte à droite, comme sur l'accueil */
.ps-liste__grille .ps-cat__haut,
.ps-fam-catalogues .ps-cat__haut {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 20px;
}

.ps-liste__grille .ps-cat__couv,
.ps-fam-catalogues .ps-cat__couv {
	flex: 0 0 150px;
	margin: 0;
}

.ps-liste__grille .ps-cat__couv img,
.ps-fam-catalogues .ps-cat__couv img {
	width: 150px;
	height: auto;
}

.ps-liste__grille .ps-cat__infos,
.ps-fam-catalogues .ps-cat__infos {
	flex: 1;
	min-width: 0;
}

.ps-liste__grille .ps-cat__titre,
.ps-fam-catalogues .ps-cat__titre {
	font-size: 1.125rem;
}

@media (max-width: 700px) {
	.ps-liste__grille .ps-cat__couv,
	.ps-fam-catalogues .ps-cat__couv {
		flex-basis: 110px;
	}

	.ps-liste__grille .ps-cat__couv img,
	.ps-fam-catalogues .ps-cat__couv img {
		width: 110px;
	}
}