/* ─────────────────────────────────────────────────────────────
   CH Template — storefront-homepage.css
   Scope : .hp  (homepage wrapper)
   Design : propre, neutre, aéré
────────────────────────────────────────────────────────────── */

/* ── Variables locales ─────────────────────────────────────── */
.hp {
	--hp-text:    var(--rmp-text);
	--hp-muted:   var(--rmp-text-soft);
	--hp-line:    #e8e8ed;
	--hp-bg:      var(--rmp-bg, #ffffff);
	--hp-soft:    var(--rmp-bg-gray);
	--hp-accent:  var(--rmp-brand);
	--hp-radius:  20px;
	--hp-ease:    cubic-bezier(0.25, 0, 0, 1);
	font-family: var(--rmp-font);
	color: var(--hp-text);
	background: var(--hp-bg);
}

/* ── Shell ─────────────────────────────────────────────────── */
.hp-shell {
	width: var(--rmp-content-width);
	margin-inline: auto;
	box-sizing: border-box;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hp-hero {
	display: grid;
	grid-template-columns: 1fr minmax(min(700px, 100%), 2fr) 1fr;
	/* stretch (pas center) : .hp-hero-side occupe toute la hauteur du hero
	   pour pouvoir y répartir ses 2 images avec justify-content:space-evenly
	   (voir plus bas) — la répartition suit alors la hauteur RÉELLE du hero
	   sur l'écran de chacun, jamais un décalage fixe en pixels qui pourrait
	   la dépasser. .hp-hero-body garde son propre centrage (align-self). */
	align-items: stretch;
	gap: 0;
	/* Plein écran et sans radius, volontairement : le hero doit continuer le
	   header sans coupure (même --rmp-bg-gray des deux côtés). Pas de marge
	   --rmp-header-gap avant lui non plus (voir l'exception .rmp-sf-front
	   sur .site-content, plus bas) — ce hero est un cas particulier de
	   l'accueil, pas "du contenu" comme les autres pages. */
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-bottom: 10px;
	min-height: 80vh;
	padding: 2rem max(var(--rmp-gutter), calc((100vw - var(--rmp-content-width)) / 2));
	background: var(--rmp-bg-gray);
	box-sizing: border-box;
	/* Garde-fou : même avec une répartition proportionnelle à la hauteur
	   réelle du hero, une image ne doit jamais pouvoir peindre au-dessus
	   de sa propre section (et donc, potentiellement, sous le header). */
	overflow: hidden;
}

.hp-hero-side {
	display: flex;
	flex-direction: column;
	/* Centre le duo d'images dans la hauteur du hero (voir align-items:
	   stretch ci-dessus), plutôt que de les écarter d'un nombre de pixels
	   fixe (ancien --vy, jusqu'à ±70px) qui pouvait les pousser hors de la
	   section sur les écrans larges mais peu hauts.
	   padding-block + gap fixes (pas juste de l'espace distribué en plus,
	   qui pouvait être quasi nul aux hauteurs d'écran courantes où les 2
	   images remplissent presque toute la hauteur dispo) : une respiration
	   garantie en haut du hero, entre les deux images, et en bas — restant
	   dans le fond gris de .hp-hero puisque ce n'est que du padding, pas
	   une marge qui créerait une coupure. */
	justify-content: center;
	gap: 80px;
	padding-block: 25px;
}

.hp-hero-side--left {
	align-items: flex-end;
	padding-right: clamp(1rem, 3vw, 3.5rem);
}

.hp-hero-side--right {
	align-items: flex-start;
	padding-left: clamp(1rem, 3vw, 3.5rem);
}

/* <picture> (source vide sous 960 px) transparent pour la mise en page :
   l'image reste l'élément flex de .hp-hero-side. */
.hp-hero-side > picture {
	display: contents;
}

.hp-hero-img {
	width: clamp(160px, 18vw, 280px);
	height: auto;
	padding: 14px;
	border-radius: 24px;
	background: #fff;
	box-sizing: border-box;
	box-shadow:
		0 2px 8px rgba(0, 0, 0, 0.06),
		0 16px 48px rgba(0, 0, 0, 0.10);
	/* Le placement vertical vient uniquement de .hp-hero-side (space-evenly,
	   voir plus haut) : plus de translateY statique ici (ex---vy, jusqu'à
	   ±70px) qui pouvait pousser l'image hors du hero selon l'écran. Seules
	   la rotation et une légère dérive horizontale restent — sûres à toute
	   hauteur de viewport — pour garder un rendu "posé négligemment". */
	transform: rotate(var(--rot, 0deg)) translateX(var(--hx, 0px));
	animation: hp-float 5s ease-in-out infinite;
	animation-delay: var(--delay, 0s);
	will-change: transform;
}

/* Léger flottement (±8px) autour de la position distribuée par
   space-evenly — purement décoratif, jamais assez grand pour dépasser
   du hero (contrairement à l'ancien flottement basé sur --vy). */
@keyframes hp-float {
	0%, 100% { transform: rotate(var(--rot, 0deg)) translateX(var(--hx, 0px)) translateY(0); }
	50%       { transform: rotate(var(--rot, 0deg)) translateX(var(--hx, 0px)) translateY(-8px); }
}

.hp-hero-body {
	/* Le hero est en align-items:stretch (voir plus haut) pour permettre à
	   .hp-hero-side de répartir ses images sur toute la hauteur — la
	   colonne de texte, elle, reste centrée verticalement comme avant. */
	align-self: center;
	text-align: center;
	padding: 0 2rem;
}

.hp-hero-eyebrow {
	margin: 0 0 1rem;
	font-size: var(--rmp-fs-badge);
	font-weight: 500;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--rmp-text-soft);
}

.hp-hero-title {
	margin: 0 0 1.25rem;
	font-size: clamp(2.4rem, 4.5vw, 4rem) !important;
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.15;
	color: var(--rmp-text);
}

.hp-hero-lead {
	margin: 0 0 2.25rem;
	font-size: clamp(var(--rmp-fs-body), 1.4vw, 1.25rem);
	line-height: 1.65;
	color: var(--rmp-text-soft);
}

.hp-hero-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.hp-hero-btn {
	display: inline-flex;
	align-items: center;
	height: 2.75rem;
	padding: 0 1.5rem;
	background: var(--rmp-brand);
	border: 1px solid var(--rmp-brand);
	color: #fff;
	font-size: var(--rmp-fs-body);
	font-weight: 500;
	border-radius: var(--rmp-btn-radius, var(--rmp-radius));
	text-decoration: none;
	transition: background 0.18s ease;
}
.hp-hero-btn:hover { background: var(--rmp-brand-hover); border-color: var(--rmp-brand-hover); color: #fff; }

.hp-hero-link {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	font-size: var(--rmp-fs-body);
	font-weight: 400;
	color: var(--rmp-brand);
	text-decoration: none;
	transition: opacity 0.15s ease;
}
.hp-hero-link::after { content: " →"; }
.hp-hero-link:hover { opacity: 0.75; color: var(--rmp-brand); }

/* ── Hero responsive ────────────────────────────────────────── */
/* Images visibles uniquement à partir du format ordinateur portable : sur
   tablette, le duo d'images de chaque côté (repositionné en ligne sous le
   texte) rendait mal — même traitement que sur mobile, on les masque et
   on centre le texte. */
@media (max-width: 960px) {
	.hp-hero-side { display: none; }

	.hp-hero {
		grid-template-columns: 1fr;
		min-height: auto;
		padding: 3.5rem max(var(--rmp-gutter), 2rem) 2.5rem;
		gap: 2rem;
	}
}

@media (max-width: 680px) {
	/* Pleine largeur, annuler tout padding/margin parent */
	.hp-hero {
		width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		margin-top: 0;
		margin-bottom: 0;
		padding: 1.5rem var(--rmp-gutter) 2rem;
		border-radius: 0;
	}

	.hp-hero-lead br { display: none; }
}

/* ── En-têtes de section ───────────────────────────────────── */
.hp-section-header {
	margin-bottom: 40px;
}

.hp-section-title,
.hp h2.hp-section-title {
	margin: 0;
	font-size: clamp(1.4rem, 2.2vw, 2rem) !important;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.15;
	color: var(--hp-text);
}

.hp-section-sub {
	margin: 10px 0 0;
	font-size: var(--rmp-fs-body);
	color: var(--hp-muted);
	line-height: 1.55;
	max-width: 48ch;
}

/* ── Section catégories ─────────────────────────────────────── */
.hp-cats {
	padding: calc(60px * var(--rmp-space, 1)) 0 calc(100px * var(--rmp-space, 1)); /* espacement des sections : Styles du site de Design */
}

.hp-cats-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}

.hp-cats-title,
.hp h2.hp-cats-title {
	margin: 0;
	font-size: clamp(1.4rem, 2.2vw, 2rem) !important;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.15;
	color: var(--hp-text);
}

.hp-cats-link {
	flex-shrink: 0;
	font-size: var(--rmp-fs-body);
	font-weight: 400;
	color: var(--hp-accent);
	text-decoration: none;
	white-space: nowrap;
}

.hp-cats-link::after {
	content: " ›";
}

.hp-cats-link:hover {
	text-decoration: underline;
}

.hp-cats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hp-cat-card {
	display: flex;
	flex-direction: column;
	border-radius: 20px;
	background: var(--hp-soft);
	color: var(--hp-text);
	text-decoration: none;
	overflow: hidden;
	transition: transform 0.3s var(--hp-ease);
}

.hp-cat-card:hover {
	transform: scale(1.03);
}

.hp-cat-media {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	height: 200px;
}

.hp-cat-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.hp-cat-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	padding: 20px 20px 24px;
}

.hp-cat-footer span {
	font-size: var(--rmp-fs-body);
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--hp-text);
	line-height: 1;
}

.hp-cat-footer svg {
	width: 32px;
	height: 32px;
	padding: 8px;
	border-radius: 50%;
	background: var(--rmp-text);
	color: #fff;
	flex-shrink: 0;
	box-sizing: border-box;
}

/* ── Section types de pièces ────────────────────────────────── */
.hp-parts {
	border-top: 1px solid var(--hp-line);
}

.hp-parts {
	text-align: center;
}

.hp-parts .hp-section-header {
	padding-top: 64px;
	margin-bottom: 32px;
}

.hp-parts-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

.hp-parts-grid li {
	display: flex;
	justify-content: center;
}

.hp-part-item {
	display: grid;
	grid-template-columns: 52px 1fr;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	border-radius: 12px;
	color: var(--hp-text);
	text-decoration: none;
	transition: background 0.15s var(--hp-ease);
	width: 100%;
	min-width: 0;
}

.hp-part-item:hover .hp-part-label {
	color: var(--hp-accent);
}

.hp-part-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: var(--hp-soft);
	flex-shrink: 0;
}

.hp-part-icon svg {
	width: 22px;
	height: 22px;
	color: var(--hp-text);
}

.hp-part-label {
	font-size: var(--rmp-fs-body);
	font-weight: 500;
	line-height: 1.3;
	color: var(--hp-text);
	min-width: 0;
	word-break: break-word;
}


/* ── Responsive homepage ────────────────────────────────────── */
@media (max-width: 1024px) {
	.hp-cats-grid  { grid-template-columns: repeat(2, 1fr); }
	.hp-parts-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
	.hp-cats { padding: calc(36px * var(--rmp-space, 1)) 0 calc(48px * var(--rmp-space, 1)); }

	.hp-cats-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
		margin-bottom: 18px;
	}

	.hp-cats-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.hp-cat-media {
		height: 150px;
		padding: 24px;
	}

	.hp-cat-footer { padding: 12px 16px 16px; }

	.hp-parts .hp-section-header { padding-top: 40px; }

	.hp-parts-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 6px 10px;
	}

	.hp-part-item {
		padding: 10px 12px;
		gap: 10px;
	}

	.hp-part-icon {
		width: 44px;
		height: 44px;
	}
}

@media (max-width: 400px) {
	.hp-cats-grid { gap: 8px; }

	.hp-cat-media {
		height: 120px;
		padding: 16px;
	}

}


/* ─── Styles hérités (header, footer, panier) ───────────────
   Tout ce qui suit sert au header/footer du thème storefront.
   Ne pas toucher.
──────────────────────────────────────────────────────────── */

:root {
	--rmp-gutter: 24px;
	--rmp-site-width: min(calc(100vw - 2 * var(--rmp-gutter)), 1440px);
	--rmp-bg: #ffffff;
	--rmp-surface: #ffffff;
	--rmp-surface-soft: var(--rmp-bg-gray);
	--rmp-line: var(--rmp-border);
	--rmp-line-strong: #e3e3e3;
	/* Nommé -header pour ne pas entrer en collision avec --rmp-text
	   (style.css, design system unifié) qui définit var(--rmp-text). */
	--rmp-text-header: #202124;
	--rmp-muted: #5f6368;
	--rmp-hover-lift: translateY(-1px);
	--rmp-hover-duration: 0.2s;
	--rmp-hover-ease: cubic-bezier(0.2, 0, 0, 1);
	--rmp-header-title-size: var(--rmp-fs-body);
	/* Slogan sous le nom : 13 px, pour tenir sur une ligne à côté des boutons sur téléphone (demande 2026-10-25). */
	--rmp-header-meta-size: 0.875rem;
	--rmp-header-ui-size: var(--rmp-fs-body);
	/* Marge unique entre le bas du header (en flux normal, non sticky) et
	   le début du contenu — la même valeur fixe partout : accueil, boutique,
	   fiche produit, mon compte, articles, types de contenu personnalisés,
	   archives, pages ch-support... et sur tous les appareils (pas de
	   variante mobile : une seule valeur, jamais une seconde à maintenir). */
	--rmp-header-gap: 30px;
	--rmp-radius-xl: 32px;
	--rmp-radius-lg: 28px;
	--rmp-radius-md: 22px;
	--rmp-shadow: 0 1px 2px rgba(32, 33, 36, 0.04);
}

.rmp-sf-theme {
	background: var(--rmp-bg);
	color: var(--rmp-text-header);
	font-family: var(--rmp-font);
}

.rmp-sf-theme body,
body.rmp-sf-theme {
	background: var(--rmp-bg);
}

.rmp-sf-theme,
.rmp-sf-theme body,
.rmp-sf-theme .site,
.rmp-sf-theme button,
.rmp-sf-theme input,
.rmp-sf-theme select,
.rmp-sf-theme textarea,
.rmp-sf-theme .button,
.rmp-sf-theme p,
.rmp-sf-theme li,
.rmp-sf-theme a,
.rmp-sf-theme span,
.rmp-sf-theme strong,
.rmp-sf-theme small,
.rmp-sf-theme label {
	font-family: var(--rmp-font);
}

/* Titres : police des titres (réglage « Polices », --rmp-font-heading). */
.rmp-sf-theme h1,
.rmp-sf-theme h2,
.rmp-sf-theme h3,
.rmp-sf-theme h4,
.rmp-sf-theme h5,
.rmp-sf-theme h6 {
	font-family: var(--rmp-font-heading, var(--rmp-font));
}

.rmp-sf-theme b,
.rmp-sf-theme strong {
	font-weight: 400;
}

.rmp-sf-theme .site {
	background: var(--rmp-bg, #fff);
	overflow-x: hidden;
}

.rmp-sf-theme .site-header {
	/* Non sticky : le header reste en flux normal et défile avec la page. */
	width: 100%;
	padding-top: 0;
	padding-bottom: 0;
	margin-bottom: 0 !important;
	/* Opaque et STRICTEMENT la même couleur que --rmp-bg-gray (#f8f9fa),
	   utilisée par .rmp-sf-entrybar et .hp-hero. Un rgba(...,0.96) laissait
	   le blanc de .site transparaître d'une nuance : visible comme un
	   liseré clair sur les ~10px de padding-bottom du header (zone où seul
	   le fond du header est peint, sans le gris de l'entrybar par-dessus). */
	background: var(--rmp-bg-gray);
	border-bottom: 0;
}

.rmp-sf-theme .site-content,
.rmp-sf-theme .content-area,
.rmp-sf-theme .site-main,
.rmp-sf-theme .hentry {
	margin: 0;
	padding: 0;
	background: transparent;
}

/* Marge entre le header et le contenu — véritable espace neutre (pas une
   couleur de fond), la même valeur partout : boutique, fiche produit, mon
   compte, articles, types de contenu personnalisés, archives, pages
   ch-support... et sur tous les appareils. Volontairement PAS ajoutée en
   padding-bottom sur le header : le header a son propre fond gris, alors
   qu'un espace entre deux éléments doit rester neutre — sinon il ne se
   distingue pas d'un header simplement plus grand sur les pages dont le
   premier bloc n'a pas exactement la même couleur que le header.
   Exceptions (padding-top: 0) :
   — Les pages DÉDIÉES du plugin ch-support (page d'assistance, ticket,
     doc — get_header()/get_footer() directement autour du template du
     plugin) gèrent elles-mêmes ce même espace en interne (--top-space,
     voir ch-support/assets/frontend.css). Volontairement exclu de
     l'onglet "Mes demandes" de Mon compte (:not(.woocommerce-account)) :
     là, .chsp-page n'est qu'un fragment niché dans
     .woocommerce-MyAccount-content à côté d'une sidebar toujours rendue
     par le thème (nom du client, nav) — zéroter le padding sur toute la
     page décalerait le haut de cette sidebar, pas seulement le fragment
     du plugin.
   — L'accueil (.rmp-sf-front) : cas particulier volontaire. Son .hp-hero
     est plein écran et exactement du même gris que le header (--rmp-bg-gray)
     — il doit le continuer sans coupure, pas s'en démarquer comme "du
     contenu". Cette exception ne s'applique qu'à l'accueil : toutes les
     AUTRES pages, y compris celles qu'on créera plus tard, gardent la
     marge normale par défaut. */
.rmp-sf-theme .site-content {
	padding-top: var(--rmp-header-gap);
}
body.rmp-sf-theme:not(.woocommerce-account) .site-content:has(.chsp-page),
body.rmp-sf-front .site-content {
	padding-top: 0;
}

/* Pages ch-support (aide, articles, tutoriels, documentation, forum) : le
   plugin ajoute sa propre marge latérale (1rem sur mobile, --rmp-gutter
   ailleurs) alors qu'elles sont déjà dans .col-full, qui porte la gouttière
   du thème → texte deux fois plus loin du bord que sur les pages produit et
   les archives (30 px au lieu de 14 px sur mobile, retour utilisateur
   2026-10-08). On garde la seule gouttière du thème. */
.rmp-sf-theme .col-full .chsp-page .chsp-shell,
.rmp-sf-theme .col-full .chsp-page .chsp-content,
.rmp-sf-theme .col-full .chsp-page .chsp-forum-header,
.rmp-sf-theme .col-full .chsp-page.chsp-single,
.rmp-sf-theme .col-full .chsp-page .chsp-single {
	padding-left: 0;
	padding-right: 0;
}

/* Storefront imprime [woocommerce_messages] (storefront_content_top) sur
   CHAQUE page, même sans notice : <div class="woocommerce"></div> et/ou
   <div class="woocommerce-notices-wrapper"></div> vides, systématiquement en
   tout premier enfant de .col-full. Vides, leur propre margin-bottom (ex.
   1rem sur .woocommerce-notices-wrapper en page produit) "s'échappe" par
   collapsing de marges à travers .col-full jusqu'à repousser le premier
   contenu réel — un second espace en plus de --rmp-header-gap, dont la
   présence dépend du viewport et du type de page. Les masquer quand vides
   élimine cette marge fantôme partout, y compris sur les futures pages qui
   utiliseraient les mêmes hooks WooCommerce — sans toucher au margin-bottom
   voulu quand une notice est réellement affichée. */
.rmp-sf-theme .woocommerce:empty,
.rmp-sf-theme .woocommerce-notices-wrapper:empty {
	display: none;
}

.rmp-sf-theme .page .entry-header,
.rmp-sf-front .type-page .entry-header,
.rmp-sf-front .page-header {
	display: none;
}

.rmp-sf-front .entry-content {
	margin: 0;
	padding: 0;
	max-width: none;
}

.rmp-sf-theme .col-full,
.rmp-sf-shell,
.rmp-sf-header-shell .col-full {
	width: var(--rmp-site-width);
	margin-inline: auto;
}

/* Empilement de l'en-tête : la ligne du menu (sous-menus déroulants) passe au-dessus de la barre de recherche
   et de ses suggestions (CH Search les accroche au formulaire en position absolue), et tout l'en-tête passe
   au-dessus du contenu de la page (barre d'achat mobile z-index 90). Panier latéral, bannière de cookies et
   chercheur de modèle restent au-dessus (hors de l'en-tête, z-index plus élevés). */
.rmp-sf-header-shell {
	position: relative;
	z-index: 100;
	padding-top: 6px;
	padding-bottom: 10px;
}

.rmp-sf-header {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 18px;
	padding: 12px 18px;
	background: var(--rmp-bg-gray);
	border-radius: var(--rmp-radius-xl);
}

.rmp-sf-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--rmp-text-header);
	text-decoration: none;
	min-width: 0;
}

.rmp-sf-brand-mark {
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	display: block;
	object-fit: contain;
}

.rmp-sf-brand-copy {
	display: grid;
	gap: 2px;
	line-height: 1.15;
}

.rmp-sf-brand-copy strong {
	font-size: var(--rmp-header-title-size);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.rmp-sf-brand-copy small {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: var(--rmp-header-meta-size);
	line-height: 1.2;
	white-space: nowrap;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--rmp-muted);
}

.rmp-sf-trust-dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	flex: 0 0 12px;
	background-color: #fbbc04;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m12 2.5 2.2 5.3 5.3 2.2-5.3 2.2L12 17.5l-2.2-5.3-5.3-2.2 5.3-2.2z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m12 2.5 2.2 5.3 5.3 2.2-5.3 2.2L12 17.5l-2.2-5.3-5.3-2.2 5.3-2.2z'/%3E%3C/svg%3E");
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.rmp-sf-header-nav {
	min-width: 0;
}

.rmp-sf-header-nav-list {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rmp-sf-nav-item {
	position: relative;
}

.rmp-sf-nav-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 0 12px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	/* Graisse normale (500 paraissait flou et chargé avec 9 éléments dans l'en-tête) ; gris un peu plus foncé pour
	   que le trait reste net. */
	color: #3c4043;
	font-size: var(--rmp-header-ui-size);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	cursor: pointer;
	transition: transform var(--rmp-hover-duration) var(--rmp-hover-ease), background-color var(--rmp-hover-duration) var(--rmp-hover-ease), color var(--rmp-hover-duration) var(--rmp-hover-ease);
}

.rmp-sf-nav-trigger:hover,
.rmp-sf-nav-item.is-open .rmp-sf-nav-trigger {
	transform: var(--rmp-hover-lift);
	background: var(--rmp-surface-soft);
	color: var(--rmp-text-header);
}

.rmp-sf-nav-caret {
	width: 8px;
	height: 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-1px) rotate(45deg);
}

.rmp-sf-nav-panel {
	position: absolute;
	top: calc(100% + 14px);
	left: 50%;
	width: min(320px, calc(100vw - 48px));
	padding: 12px;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10), 0 1px 4px rgba(0, 0, 0, 0.06);
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%) translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.rmp-sf-nav-item.is-open .rmp-sf-nav-panel,
.rmp-sf-nav-item:focus-within .rmp-sf-nav-panel {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

@media (hover: hover) {
	.rmp-sf-nav-item:hover .rmp-sf-nav-panel {
		opacity: 1;
		visibility: visible;
		transform: translateX(-50%) translateY(0);
	}
}

.rmp-sf-nav-panel-header {
	padding: 6px 10px 8px;
	border-bottom: 1px solid #f0f0f0;
	margin-bottom: 6px;
}

.rmp-sf-nav-panel-title {
	font-size: var(--rmp-fs-badge);
	font-weight: 600;
	color: var(--rmp-muted);
	text-decoration: none;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.rmp-sf-nav-panel-title:hover {
	color: var(--rmp-text-header);
}

.rmp-sf-nav-panel-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2px;
}

.rmp-sf-nav-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	color: var(--rmp-text-header);
	text-decoration: none;
	border-radius: 12px;
	transition: background var(--rmp-hover-duration) var(--rmp-hover-ease);
}

.rmp-sf-nav-card:hover {
	background: var(--rmp-bg-gray);
}

.rmp-sf-nav-card-media {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: #eef2f3;
	flex-shrink: 0;
	overflow: hidden;
}

.rmp-sf-nav-card-media--empty {
	background: transparent;
}

.rmp-sf-nav-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.rmp-sf-nav-card-copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.rmp-sf-nav-card-copy strong {
	font-size: var(--rmp-fs-body);
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rmp-sf-header-actions {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0;
	flex-wrap: wrap;
	margin-right: -8px;
}

/* !important nécessaire : même spécificité que .rmp-sf-iconbutton (display: inline-flex),
   qui vient après dans la cascade et gagnerait sinon sur desktop. */
.rmp-sf-burger {
	display: none !important;
}

.rmp-sf-burger-bars,
.rmp-sf-burger-close {
	width: 20px;
	height: 20px;
	display: block;
	transition: opacity 0.15s ease;
}

.rmp-sf-burger-close { display: none; }

body.rmp-nav-open .rmp-sf-burger-bars  { display: none; }
body.rmp-nav-open .rmp-sf-burger-close { display: block; }

/* ── Sélecteur de langue (CH Translate) ──
   Dans la barre d'actions ; sur téléphone (≤ 560px), à la fin du menu mobile : à côté du logo et de son
   slogan, il n'y a pas la place d'un quatrième bouton (les actions passaient sur trois lignes). */
.rmp-sf-header-lang { display: inline-flex; align-items: center; margin: 0 4px; }
/* Même arrondi que la recherche et les boutons (variable de CH Translate 1.6.4, pilule par défaut). */
.rmp-sf-header-lang .ch-tr-switcher,
.rmp-sf-nav-lang .ch-tr-switcher { --ch-tr-radius: var(--rmp-radius, 10px); }
.rmp-sf-nav-lang { display: none; }

.rmp-sf-iconlink,
.rmp-sf-iconbutton {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 999px;
	border: 0;
	background: transparent;
	color: #111214;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: transform var(--rmp-hover-duration) var(--rmp-hover-ease), opacity var(--rmp-hover-duration) var(--rmp-hover-ease);
}

.rmp-sf-iconlink:hover,
.rmp-sf-iconbutton:hover,
.rmp-sf-iconlink:focus-visible,
.rmp-sf-iconbutton:focus-visible,
.rmp-sf-iconbutton:active,
.rmp-sf-iconlink:active {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	transform: var(--rmp-hover-lift);
	opacity: 0.72;
	outline: none;
}

.rmp-sf-svgicon {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	stroke-width: 2.2;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rmp-sf-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 16px;
	height: 16px;
	padding: 0 5px;
	position: absolute;
	top: -2px;
	right: -3px;
	border-radius: 999px;
	background: #111214;
	color: #fff;
	font-size: var(--rmp-fs-badge);
	font-weight: 700;
}

.rmp-sf-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: var(--rmp-btn-radius, var(--rmp-radius));
	font-size: var(--rmp-header-ui-size);
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	letter-spacing: -0.01em;
	transition: transform var(--rmp-hover-duration) var(--rmp-hover-ease), opacity var(--rmp-hover-duration) var(--rmp-hover-ease);
}

.rmp-sf-button:hover {
	transform: var(--rmp-hover-lift);
}

.rmp-sf-button:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--rmp-brand) 25%, transparent);
}

.rmp-sf-button--dark {
	background: var(--rmp-brand);
	border-color: var(--rmp-brand);
	color: #fff;
}

.rmp-sf-button--soft {
	background: #ffffff;
	border-color: var(--rmp-border);
	color: var(--rmp-text-header);
}

.rmp-sf-entrybar {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: stretch;
	gap: 16px;
	padding: 10px 14px;
	background: var(--rmp-bg-gray);
	border-radius: var(--rmp-radius);
}

.rmp-sf-search {
	display: flex;
	align-items: stretch;
	gap: 10px;
}

.rmp-sf-search--header {
	margin: 0;
}

.rmp-sf-search input[type="search"] {
	width: 100%;
	height: 46px;
	padding: 0 18px;
	border: 1px solid var(--rmp-border);
	border-radius: var(--rmp-radius);
	background: #ffffff;
	color: var(--rmp-text-header);
	font-size: var(--rmp-header-ui-size);
	font-weight: 400;
	line-height: 1;
	box-shadow: none;
}

.rmp-sf-search input[type="search"]::placeholder {
	color: #80868b;
}

.rmp-sf-search input[type="search"]:focus {
	outline: none;
	background: #ffffff;
	border-color: var(--rmp-brand);
}

.rmp-sf-search button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	padding: 0 18px;
	border: 1px solid var(--rmp-brand);
	border-radius: var(--rmp-btn-radius, var(--rmp-radius));
	background: var(--rmp-brand);
	color: #fff;
	font-size: var(--rmp-header-ui-size);
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

.rmp-sf-entrycta {
	display: flex;
	align-items: stretch;
	justify-content: flex-end;
	justify-self: end;
	align-self: stretch;
}

.rmp-sf-entrycta .rmp-sf-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	min-height: 46px;
	padding: 0 18px;
	gap: 10px;
	font-weight: 400;
	border: 1px solid var(--rmp-border);
}

.rmp-sf-entrycta .rmp-sf-button::before {
	content: "";
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	border-radius: 999px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%231a73e8'/%3E%3Crect x='11' y='10' width='2' height='7' rx='1' fill='white'/%3E%3Ccircle cx='12' cy='7.4' r='1.3' fill='white'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

/* ── Bouton du chercheur de modèle (toggle finder) ──────────── */
.rmp-sf-entrycta .rmp-sf-button[aria-expanded] {
	gap: 8px;
	transition:
		background var(--rmp-hover-duration) var(--rmp-hover-ease),
		transform   var(--rmp-hover-duration) var(--rmp-hover-ease);
}

.rmp-sf-entrycta .rmp-sf-button.is-active {
	background: var(--rmp-brand);
	color: #fff;
	border-color: var(--rmp-brand);
}

.rmp-finder-toggle-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* Panel finder + modale EMC → voir plugin rmp-compatibility/assets/finder.css */

/* ── Fil d'ariane (catégories + fiches produit uniquement — voir le
   remove_action global dans functions.php pour le reste du site) ─────
   Défini ici plutôt que dans shop.css/product.css : ces deux feuilles se
   chargent dans des contextes mutuellement exclusifs (page boutique vs
   fiche produit), alors que ce composant est utilisé dans les deux. */
.rmp-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0 0 1rem;
	font-size: var(--rmp-fs-crumb);
}

.rmp-breadcrumb a {
	color: var(--rmp-text-soft);
	text-decoration: none;
	transition: color 0.15s;
}
.rmp-breadcrumb a:hover { color: var(--rmp-text); }

.rmp-breadcrumb span[aria-current] {
	color: var(--rmp-text);
	font-weight: 500;
}

.rmp-breadcrumb-sep {
	width: 0.65rem;
	height: 0.65rem;
	flex-shrink: 0;
	color: var(--rmp-text-soft);
}

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

/* ── Responsive header ──────────────────────────────────────── */

/* Tablette large : nav panel passe en left-anchored */
@media (max-width: 1180px) {
	.rmp-sf-nav-panel {
		left: 0;
		width: min(720px, calc(100vw - 32px));
		transform: translateX(0) translateY(8px);
	}

	.rmp-sf-nav-item.is-open .rmp-sf-nav-panel,
	.rmp-sf-nav-item:focus-within .rmp-sf-nav-panel {
		transform: translateX(0) translateY(0);
	}
}

/* Tablette : burger, entrybar plein-largeur */
@media (max-width: 820px) {
	.rmp-sf-burger { display: inline-flex !important; }

	/* 3 colonnes fixes : brand | espace | actions
	   La nav s'insère en ligne 2 sans déplacer les icônes */
	.rmp-sf-header {
		grid-template-columns: auto 1fr auto;
		grid-template-rows: auto auto;
		justify-content: unset;
		padding: 12px 16px;
	}

	/* Le padding horizontal du header passe à 16px ici (contre 18px au-dessus
	   de 820px) : --rmp-content-width suit la même valeur pour rester aligné
	   avec le logo/la nav à ce format aussi. */
	:root {
		--rmp-content-width: calc(var(--rmp-site-width) - 32px);
	}

	.rmp-sf-header-nav {
		grid-column: 1 / -1;
		grid-row: 2;
		display: none;
		border-top: 1px solid #e8e8ed;
		padding-top: 8px;
		margin-top: 4px;
		max-height: 70vh;
		overflow-y: auto;
	}

	body.rmp-nav-open .rmp-sf-header-nav { display: block; }

	.rmp-sf-header-actions { justify-content: flex-end; }

	/* Nav items full-width */
	.rmp-sf-nav-item { width: 100%; }

	.rmp-sf-nav-trigger {
		width: 100%;
		justify-content: space-between;
		padding: 0 14px;
		min-height: 44px;
		background: var(--rmp-bg-gray);
		border-radius: 12px;
	}

	.rmp-sf-nav-panel {
		position: static;
		width: 100%;
		margin-top: 4px;
		padding: 6px;
		border-radius: 14px;
		box-shadow: none;
		border: 1px solid var(--rmp-border);
		transform: none;
		display: none;
		opacity: 1;
		visibility: visible;
	}

	.rmp-sf-nav-item.is-open .rmp-sf-nav-panel { display: block; }

	.rmp-sf-nav-panel-grid { grid-template-columns: 1fr; }

	.rmp-sf-nav-card {
		padding: 10px 12px;
		min-height: 44px;
	}

	/* Entrybar : recherche + CTA empilés */
	.rmp-sf-entrybar {
		grid-template-columns: 1fr;
		padding: 8px 12px;
		gap: 8px;
	}

	.rmp-sf-search { gap: 8px; }

	/* Cache le bouton "Rechercher" (inutile sur mobile) */
	.rmp-sf-search button[type="submit"] { display: none; }

	.rmp-sf-search input[type="search"] {
		height: 44px;
		border-radius: var(--rmp-radius);
	}

	.rmp-sf-entrycta { width: 100%; }

	.rmp-sf-entrycta .rmp-sf-button {
		width: 100%;
		height: 44px;
		min-height: 44px;
		justify-content: center;
	}

}

/* Mobile */
@media (max-width: 560px) {
	:root {
		--rmp-gutter: 14px;
		/* Annule le retrait de 36px de --rmp-content-width (voir style.css) :
		   rendu mobile volontairement inchangé, comme demandé. */
		--rmp-content-width: var(--rmp-site-width);
	}

	.rmp-sf-header-shell { padding: 4px 0 0; }

	.rmp-sf-header-lang { display: none; }
	.rmp-sf-nav-lang { display: flex; justify-content: center; padding: 12px 0 4px; }
	/* Boutons toujours sur une ligne : sur un écran étroit (360px, 320px), c'est le slogan qui passe à la ligne. */
	.rmp-sf-header-actions { flex-wrap: nowrap; }

	/* Écart de colonnes réduit : logo + slogan et les trois boutons (menu, compte, panier) tiennent sur
	   une ligne à 375px sans couper le slogan. */
	.rmp-sf-header {
		padding: 11px 14px 0;
		border-radius: 20px;
		gap: 12px 6px;
	}

	/* Sous-titre « slogan » gardé sur mobile : c'est un
	   repère de confiance (ancienneté), comme sur l'ancien site. */
	.rmp-sf-brand-copy small { font-size: var(--rmp-header-meta-size); }
	.rmp-sf-brand-copy { min-width: 0; }

	.rmp-sf-entrybar {
		padding: 3px 10px 8px;
		border-radius: 20px;
		gap: 7px;
	}

	/* Input search + bouton Identifier plus compacts sur mobile */
	.rmp-sf-search input[type="search"] {
		height: 40px;
	}

	.rmp-sf-entrycta .rmp-sf-button {
		min-height: 40px;
		height: 40px;
		font-size: var(--rmp-fs-body);
		padding: 0 14px;
	}

	.rmp-sf-nav-panel-grid { grid-template-columns: 1fr; }
}


/* ═══ CH Template — éléments ajoutés par les réglages du thème ═══════════ */

/* Barre d'annonce (Réglages du thème › En-tête) */
.ch-tpl-announce {
	background: var(--rmp-text);
	color: var(--rmp-bg, #fff);
	text-align: center;
	font-size: var(--rmp-fs-sm);
	line-height: 1.4;
	padding: 9px var(--rmp-gutter);
}
.ch-tpl-announce a,
.ch-tpl-announce a:visited {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Barre de recherche seule (chercheur de modèle absent) */
.rmp-sf-entrybar--solo {
	grid-template-columns: minmax(0, 1fr);
}

/* Panier de l'en-tête sans extension de panier coulissant */
.ch-tpl-cart .rmp-sf-svgicon {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ch-tpl-cart__count {
	position: absolute;
	top: 2px;
	right: 0;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--rmp-brand);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
}

/* Produits mis en avant */
.hp-products {
	padding: calc(64px * var(--rmp-space, 1)) 0;
	border-top: 1px solid var(--hp-line);
}
.hp-products ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
}
.hp-products ul.products::before,
.hp-products ul.products::after {
	display: none;
}
.hp-products ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	text-align: left;
}
.hp-products ul.products li.product img {
	border-radius: 16px;
	background: var(--hp-soft);
}

/* Réassurance */
.hp-trust {
	padding: calc(40px * var(--rmp-space, 1)) 0;
}
.hp-trust-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 24px;
	margin: 0;
	padding: 28px;
	list-style: none;
	border-radius: var(--hp-radius);
	background: var(--hp-soft);
}
.hp-trust-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}
.hp-trust-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--hp-bg);
	color: var(--rmp-brand);
}
.hp-trust-icon svg {
	width: 22px;
	height: 22px;
}
.hp-trust-copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.hp-trust-copy strong {
	font-weight: 600;
	color: var(--hp-text);
}
.hp-trust-copy span {
	color: var(--hp-muted);
	font-size: var(--rmp-fs-sm);
}

/* Derniers articles */
.hp-posts {
	padding: calc(64px * var(--rmp-space, 1)) 0;
}
.hp-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hp-post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: var(--hp-radius);
	background: var(--hp-soft);
	overflow: hidden;
	color: var(--hp-text);
	text-decoration: none;
}
.hp-post-media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}
.hp-post-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px 22px;
}
.hp-post-body time {
	font-size: var(--rmp-fs-sm);
	color: var(--hp-muted);
}
.hp-post-body strong {
	font-weight: 600;
	line-height: 1.35;
}
.hp-post-card:hover strong {
	color: var(--rmp-brand);
}

@media (max-width: 960px) {
	.hp-products ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.hp-posts-grid { grid-template-columns: minmax(0, 1fr); }
	.hp-products, .hp-posts { padding: calc(40px * var(--rmp-space, 1)) 0; }
}

/* Très petit téléphone (≤ 400 px) : slogan en 12 px et boutons d'action un peu plus serrés, pour que le slogan tienne
   en entier avant le bouton du menu (360 px). */
@media (max-width: 400px) {
	.rmp-sf-brand-copy small { font-size: 0.8125rem; }
	.rmp-sf-header-actions .rmp-sf-iconlink,
	.rmp-sf-header-actions .rmp-sf-iconbutton { width: 36px; }
}

/* 320 px : le slogan passe à la ligne plutôt que d'être coupé. */
@media (max-width: 340px) {
	.rmp-sf-brand-copy small { white-space: normal; }
}
