/* =====================================================================================
   Armurerie Loisir — accueil v2 (theme "al"). Charge uniquement sur l'accueil quand l'interrupteur al est actif.
   Mise en page : bandeau "cible" pleine largeur + offre, bande de confiance, rayons en tuiles,
   rangees de produits qui defilent (codes Amazon : bouton jaune, etoiles, prix, "En stock").
   ===================================================================================== */

#al-home {
	--al-ink: #12191d;
	--al-text: #2b363c;
	--al-muted: #5f6c73;
	--al-line: #e3e7ea;
	--al-bg: #f2f4f5;
	--al-card: #ffffff;
	--al-teal: #284753;
	--al-teal-deep: #1b333c;
	--al-red: #e61e27;
	--al-yellow: #fed51a;
	--al-yellow-hover: #f5c707;
	--al-yellow-edge: #f9d10c;
	--al-orange: #fda624;
	--al-green: #087b60;
	--al-radius: 12px;
	--al-font: 'Open Sans', Helvetica, Arial, sans-serif;

	margin: 0 0 32px;
	color: var(--al-text);
	font-family: var(--al-font);
	font-size: 14px;
	line-height: 1.45;
}
#al-home, #al-home *, #al-home *:before, #al-home *:after { box-sizing: border-box; }
#al-home ul, #al-home ol { list-style: none; margin: 0; padding: 0; }
#al-home li { float: none; margin: 0; padding: 0; }
#al-home img { max-width: 100%; border: 0; }
#al-home h1, #al-home h2, #al-home h3 {
	position: static;
	height: auto;
	margin: 0;
	padding: 0;
	overflow: visible;
	border-radius: 0;
	font-family: var(--al-font);
	color: var(--al-ink);
	text-transform: none;
	letter-spacing: normal;
} /* le theme impose h1 { height: 27px; overflow: hidden } */
#al-home h1:before, #al-home h2:before, #al-home h3:before { display: none; content: none; }
#al-home a { color: inherit; }
#al-home a:focus-visible, #al-home button:focus-visible { outline: 3px solid #24619c; outline-offset: 2px; }

/* ---------- Mise en page de l'accueil v2 : colonnes laterales retirees ---------- */
@media screen and (min-width: 551px) {
	#left_column, #right_column { display: none !important; }
	#center_column { float: none !important; width: 100% !important; min-width: 0 !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
}
@media screen and (max-width: 550px) {
	/* La colonne de gauche porte le menu mobile : on ne la touche pas. Les nouveautes sont dans la page. */
	#right_column { display: none !important; }
}

/* ---------- Boutons ---------- */
#al-home .al-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 22px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--al-font);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
#al-home .al-btn:active { transform: translateY(1px); }
#al-home .al-btn--yellow { background: var(--al-yellow); border-color: var(--al-yellow-edge); color: var(--al-ink); box-shadow: 0 2px 5px rgba(213, 217, 217, .5); }
#al-home .al-btn--yellow:hover { background: var(--al-yellow-hover); color: var(--al-ink); text-decoration: none; }
/* bouton secondaire sur le bandeau sombre (base.css impose la couleur encre en !important : texte invisible sans ceci) */
#al-home .al-hero .al-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff !important; box-shadow: none; }
#al-home .al-hero .al-btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff !important; text-decoration: none; }
#al-home .al-showmore.al-btn--ghost { border-color: #c9d1d5; background: #fff; color: var(--al-ink); }
#al-home .al-showmore.al-btn--ghost:hover { border-color: #9aa6ab; background: var(--al-bg); text-decoration: none; }

/* ---------- Bandeau d'accueil ---------- */
#al-home .al-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 32px;
	align-items: center;
	padding: 44px 44px 72px;
	border-radius: 16px;
	background: #132a31; /* meme vert que le bandeau de recherche, sans degrade (demande Nicolas 23/11) */
	color: #fff;
	overflow: hidden;
}
#al-home .al-hero--solo { grid-template-columns: minmax(0, 1fr); }
#al-home .al-hero__target {
	position: absolute;
	right: -120px;
	bottom: -170px;
	width: 560px;
	height: 560px;
	color: #fff;
	opacity: .07;
	pointer-events: none;
}
#al-home .al-hero--solo .al-hero__target { right: -60px; opacity: .1; }
#al-home .al-hero__main { position: relative; max-width: 620px; }
#al-home .al-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .8);
}
#al-home .al-eyebrow:before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--al-red); box-shadow: 0 0 0 3px rgba(230, 30, 39, .3); }
#al-home .al-hero__title {
	margin: 0 0 14px;
	color: #fff;
	font-size: 42px;
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -.01em;
	text-wrap: balance;
}
#al-home .al-hero__sub { max-width: 54ch; margin: 0 0 26px; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .86); }
#al-home .al-hero__sub strong { color: #fff; }
#al-home .al-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Offre en cours */
#al-home .al-offer {
	position: relative;
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	grid-template-areas: "img head" "code code" "link link";
	gap: 14px 16px;
	align-items: center;
	padding: 20px;
	border-radius: var(--al-radius);
	background: #fff;
	color: var(--al-text);
	box-shadow: 0 22px 50px rgba(5, 20, 26, .38);
}
#al-home .al-offer--noimg { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "code" "link"; }
#al-home .al-offer__img {
	grid-area: img;
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	background: var(--al-media);
	overflow: hidden;
}
#al-home .al-offer__img img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
#al-home .al-offer__badge {
	position: absolute;
	top: 6px;
	left: 6px;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--al-red);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}
#al-home .al-offer__head { grid-area: head; min-width: 0; }
#al-home .al-offer__title { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--al-red); }
#al-home .al-offer__lead { margin: 0 0 4px; font-size: 20px; font-weight: 700; line-height: 1.2; color: var(--al-ink); text-wrap: balance; }
#al-home .al-offer__rest { margin: 0; font-size: 13px; color: var(--al-muted); }
#al-home .al-ticket {
	grid-area: code;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 6px 6px 14px;
	border: 2px dashed #c9d0d5;
	border-radius: 12px;
	background: var(--al-bg);
}
#al-home .al-ticket__label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--al-muted); }
#al-home .al-ticket__code {
	flex: 1 1 auto;
	min-width: 0;
	font-family: Menlo, Consolas, 'Courier New', monospace;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: .12em;
	color: var(--al-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
#al-home .al-ticket .al-btn { min-height: 38px; padding: 0 16px; font-size: 14px; }
#al-home .al-ticket.is-copied { border-style: solid; border-color: var(--al-green); }
#al-home .al-offer__link { grid-area: link; justify-self: start; font-size: 14px; font-weight: 700; color: var(--al-teal); text-decoration: underline; text-underline-offset: 3px; }
#al-home .al-offer__link:hover { color: var(--al-ink); }

/* ---------- Bande de confiance ---------- */
#al-home .al-trust {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: -36px 24px 40px;
	padding: 6px;
	border: 1px solid var(--al-line);
	border-radius: var(--al-radius);
	background: #fff;
	box-shadow: 0 10px 28px rgba(18, 25, 29, .1);
}
#al-home .al-trust__item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 16px; }
#al-home .al-trust__item + .al-trust__item { border-left: 1px solid var(--al-line); }
#al-home .al-trust__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #eaf0f2;
	color: var(--al-teal);
}
#al-home .al-trust__icon svg { width: 22px; height: 22px; }
#al-home .al-trust__text { min-width: 0; }
#al-home .al-trust__title { display: block; font-size: 14px; font-weight: 700; color: var(--al-ink); }
#al-home .al-trust__sub { display: block; font-size: 12.5px; color: var(--al-muted); }
#al-home .al-trust__sub a { color: var(--al-teal); font-weight: 700; text-decoration: underline; }
#al-home .al-trust__link { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
#al-home a.al-trust__link:hover .al-trust__title { text-decoration: underline; }
/* tuile avis : note reelle dans la pastille, etoiles + « Société des Avis Garantis » dessous */
#al-home .al-trust__icon--note { flex-direction: column; gap: 0; width: 44px; height: 44px; background: #eaf0f2; color: var(--al-ink); line-height: 1; font-variant-numeric: tabular-nums; }
#al-home .al-trust__icon--note b { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
#al-home .al-trust__icon--note small { margin-top: 2px; color: var(--al-muted); font-size: 10px; font-weight: 600; }
#al-home .al-trust__sub--rate { --sag-star: #f7b500; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 2px; }
#al-home .al-trust__sub--rate .al-avis__rstars { width: 70px; height: 13px; -webkit-mask-size: 14px 13px; mask-size: 14px 13px; }

/* ---------- Sections ---------- */
#al-home .al-section { margin: 0 0 44px; }
#al-home .al-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
#al-home .al-section__titles { min-width: 0; }
#al-home .al-section__title { font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--al-ink); text-wrap: balance; }
#al-home .al-section__sub { margin: 4px 0 0; font-size: 14px; color: var(--al-muted); }
#al-home .al-section__tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
#al-home .al-more { font-size: 14px; font-weight: 700; color: var(--al-teal); text-decoration: none; white-space: nowrap; }
#al-home .al-more:after { content: " \2192"; }
#al-home .al-more:hover { color: var(--al-ink); text-decoration: underline; }
#al-home .al-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--al-line);
	border-radius: 50%;
	background: #fff;
	color: var(--al-ink);
	cursor: pointer;
	transition: background-color .15s ease, opacity .15s ease;
}
#al-home .al-arrow:hover { background: var(--al-bg); }
#al-home .al-arrow[disabled] { opacity: .35; cursor: default; }
#al-home .al-arrow svg { width: 16px; height: 16px; }

/* ---------- Rayons ---------- */
#al-home .al-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
#al-home .al-tile {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid var(--al-line);
	border-radius: var(--al-radius);
	background: #fff;
	text-decoration: none;
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
#al-home .al-tile:hover { transform: translateY(-3px); border-color: #cfd6da; box-shadow: 0 12px 26px rgba(18, 25, 29, .1); text-decoration: none; }
#al-home .al-tile__media { display: block; aspect-ratio: 4 / 3; padding: 14px; background: var(--al-media); }
#al-home .al-tile__media img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
#al-home .al-tile__body { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; }
#al-home .al-tile__name { font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--al-ink); }
#al-home .al-tile__go {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--al-yellow);
	color: var(--al-ink);
	font-size: 15px;
	font-weight: 700;
	transition: transform .18s ease;
}
#al-home .al-tile:hover .al-tile__go { transform: translateX(3px); }

/* ---------- Cartes produit ---------- */
#al-home .al-row {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 2px;
	padding: 2px 2px 14px;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}
#al-home .al-row > .al-card { flex: 0 0 216px; scroll-snap-align: start; }
#al-home .al-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

#al-home .al-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	/* carte sans cadre (demande Nicolas 23/11) : la photo repose sur un fond gris clair arrondi.
	   base.css definit aussi .al-card (carte blanche a ombre) : neutralise ici */
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}
#al-home .al-card__media { position: relative; display: block; aspect-ratio: 1 / 1; padding: 14px; border-radius: 14px; background: var(--al-media); overflow: hidden; }
#al-home .al-card__media img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .25s ease; }
#al-home .al-card:hover .al-card__media img { transform: scale(1.035); }
#al-home .al-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
	padding: 3px 9px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
}
#al-home .al-badge--deal { background: var(--al-red); color: #fff; }
#al-home .al-badge--new { background: var(--al-teal); color: #fff; }
#al-home .al-card__body { display: flex; flex-direction: column; flex: 1 1 auto; gap: 6px; padding: 10px 2px 6px; }
#al-home .al-card__body > .al-rating { margin: -2px 0 -3px; } /* espace resserre autour des avis (demande Nicolas 23/11) */
/* sans avis : pas d'emplacement vide ; prix et dispo suivent le nom, seul le bouton est cale en bas (boutons alignes) */
#al-home .al-card__body > .al-rating:empty { display: none; }
#al-home .al-card__body > .al-price { margin-top: 0; }
#al-home .al-card__body > .al-stock { margin-bottom: 8px; }
#al-home .al-card__body > form,
#al-home .al-card .al-card__body > .al-card__cta { margin-top: auto !important; }
#al-home .al-card__title {
	display: -webkit-box;
	min-height: 2.7em;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	color: var(--al-ink);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
	text-decoration: none;
}
#al-home .al-card__title:hover { color: #c45226; text-decoration: underline; }
#al-home .al-rating { display: flex; align-items: center; gap: 6px; min-height: 16px; font-size: 12.5px; line-height: 16px; color: #0a6f80; }
#al-home .al-stars {
	position: relative;
	display: inline-block;
	width: 80px;
	height: 16px;
	background: linear-gradient(90deg, var(--al-orange) var(--pct, 0%), #d4d8da var(--pct, 0%));
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 .8l2.2 4.6 5 .7-3.6 3.5.9 5L8 12.2 3.5 14.6l.9-5L.8 6.1l5-.7z'/%3E%3C/svg%3E") 0 0 / 16px 16px repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 .8l2.2 4.6 5 .7-3.6 3.5.9 5L8 12.2 3.5 14.6l.9-5L.8 6.1l5-.7z'/%3E%3C/svg%3E") 0 0 / 16px 16px repeat-x;
}
#al-home .al-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: auto; padding-top: 4px; }
#al-home .al-price__now { font-size: 20px; font-weight: 700; line-height: 1.1; color: var(--al-ink); font-variant-numeric: tabular-nums; }
#al-home .al-price__was { font-size: 13px; color: var(--al-muted); text-decoration: line-through; }
#al-home .al-stock { font-size: 13px; font-weight: 700; color: var(--al-green); }
#al-home .al-stock--out { color: var(--al-muted); font-weight: 400; }

/* Bouton d'ajout : classes du theme conservees (ajax-cart.js), habillage Amazon */
#al-home .al-card form { margin: 6px 0 0; }
#al-home .al-card input.ajax_add_to_cart_button,
#al-home .al-card .al-card__cta {
	display: block;
	width: 100% !important;
	min-width: 0 !important;
	height: 40px !important;
	min-height: 40px !important; /* base.css impose 46px aux input.exclusive : boutons alignes sur ceux des categories (demande Nicolas 24/11) */
	margin: 0 !important;
	padding: 0 12px !important;
	border: 1px solid var(--al-yellow-edge) !important;
	border-radius: 999px !important;
	background: var(--al-yellow) !important;
	color: var(--al-ink) !important;
	font-family: var(--al-font) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 38px !important;
	text-align: center;
	text-decoration: none !important;
	text-transform: none !important;
	box-shadow: 0 2px 5px rgba(213, 217, 217, .5);
	cursor: pointer;
}
#al-home .al-card input.ajax_add_to_cart_button:hover,
#al-home .al-card .al-card__cta:hover { background: var(--al-yellow-hover) !important; color: var(--al-ink) !important; }
#al-home .al-card .al-card__cta--soft { border-color: #d4d8da !important; background: #fff !important; box-shadow: none; }
#al-home .al-card .al-card__cta--soft:hover { background: var(--al-bg) !important; }

/* ---------- Bouton panier flottant (PC) + notification ---------- */
#al-cartfab {
	position: fixed;
	right: max(20px, env(safe-area-inset-right, 0px));
	bottom: max(20px, env(safe-area-inset-bottom, 0px));
	z-index: 9990;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 52px;
	padding: 0 20px 0 16px;
	border-radius: 999px;
	background: #284753;
	color: #fff;
	font-family: 'Open Sans', Helvetica, Arial, sans-serif;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 12px 30px rgba(5, 20, 26, .35);
	transition: transform .15s ease, background-color .15s ease;
}
#al-cartfab:hover { background: #1b333c; color: #fff; text-decoration: none; transform: translateY(-2px); }
#al-cartfab svg { width: 22px; height: 22px; }
#al-cartfab .al-cartfab__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: #fed51a;
	color: #12191d;
	font-size: 12px;
	font-weight: 700;
}
#al-cartfab .al-cartfab__count.is-zero { display: none; }
#al-cartfab .al-cartfab__total { font-weight: 400; opacity: .9; font-variant-numeric: tabular-nums; }
#al-cartfab .al-cartfab__total:empty { display: none; }

#al-toast {
	position: fixed;
	right: max(20px, env(safe-area-inset-right, 0px));
	bottom: max(20px, env(safe-area-inset-bottom, 0px));
	z-index: 9991;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: calc(100vw - 32px);
	padding: 12px 16px;
	border-radius: 12px;
	background: #12191d;
	color: #fff;
	font-family: 'Open Sans', Helvetica, Arial, sans-serif;
	font-size: 14px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
	opacity: 0;
	transform: translateY(8px);
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}
#al-toast.is-on { opacity: 1; transform: none; pointer-events: auto; }
#al-toast .al-toast__ok { color: #6fd14a; font-weight: 700; }
#al-toast a { color: #fed51a; font-weight: 700; text-decoration: underline; }

/* ---------- Ecrans moyens ---------- */
@media screen and (max-width: 1199px) {
	#al-home .al-hero { grid-template-columns: minmax(0, 1fr) 340px; padding: 36px 32px 68px; }
	#al-home .al-hero__title { font-size: 36px; }
	#al-home .al-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media screen and (max-width: 991px) {
	#al-home .al-hero { grid-template-columns: minmax(0, 1fr); }
	#al-home .al-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#al-home .al-trust__item:nth-child(3) { border-left: 0; }
	#al-home .al-trust__item:nth-child(n+3) { border-top: 1px solid var(--al-line); }
	#al-home .al-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Mobile ---------- */
@media screen and (max-width: 550px) {
	#al-home { margin-top: 0; padding: 0 8px; font-size: 14px; }
	/* carte d'accueil bord a bord, collee sous le bandeau sombre (plus de liseré blanc autour, demande Nicolas 23/11) */
	#al-home .al-hero { gap: 20px; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 26px 22px 56px; border-radius: 0; }
	/* .al-chips et #left_column de l'accueil : regles deplacees dans layout.css (charge dans <head>, pas de flash au chargement) */
	#al-home .al-hero__target { width: 340px; height: 340px; right: -110px; bottom: auto; top: -90px; }
	#al-home .al-hero__title { font-size: 28px; }
	#al-home .al-hero__sub { margin-bottom: 20px; font-size: 15px; }
	#al-home .al-hero__cta .al-btn { flex: 1 1 100%; }
	#al-home .al-offer { grid-template-columns: 88px minmax(0, 1fr); padding: 16px; }
	#al-home .al-offer__lead { font-size: 18px; }
	#al-home .al-ticket__code { font-size: 18px; }
	#al-home .al-trust { margin: -32px 10px 32px; }
	#al-home .al-trust__item, #al-home .al-trust__link { flex-direction: column; align-items: flex-start; gap: 8px; }
	#al-home .al-trust__item { padding: 12px; }
	#al-home .al-trust__title { font-size: 13px; }
	#al-home .al-trust__sub { font-size: 12px; }
	#al-home .al-section { margin-bottom: 34px; }
	#al-home .al-section__title { font-size: 21px; }
	#al-home .al-section__head { align-items: center; }
	#al-home .al-arrow { display: none; }
	#al-home .al-tiles { gap: 10px; }
	#al-home .al-tile__media { padding: 10px; }
	#al-home .al-tile__body { padding: 10px 12px; }
	#al-home .al-tile__name { font-size: 14px; }
	#al-home .al-tile__go { display: none; }
	#al-home .al-row { gap: 10px; margin: 0 -8px; padding: 2px 8px 12px; scroll-padding: 0 8px; }
	#al-home .al-row > .al-card { flex-basis: 47%; }
	#al-home .al-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	#al-home .al-card__media { padding: 8px; }
	#al-home .al-card__body { padding: 2px 2px 12px; } /* texte aligne sur la photo */
	#al-home .al-card__title { font-size: 13.5px; }
	#al-home .al-price__now { font-size: 18px; }
	#al-home .al-stars { width: 70px; height: 14px; -webkit-mask-size: 14px 14px; mask-size: 14px 14px; }
	#al-cartfab { display: none; }
	#al-toast { left: 16px; right: 16px; bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + var(--al-cookie-h, 0px)); }
}

/* ---------- Audit 24/11 (agent global) ---------- */
/* Selection du moment : 6 produits sur mobile puis « Voir plus » (home.js), la page restait tres longue */
#al-home .al-showmore { display: none; }
@media screen and (max-width: 550px) {
	#al-home .al-grid.is-capped > li:nth-child(n+7) { display: none; }
	#al-home .al-showmore { display: flex; width: 100%; margin: 16px 0 0; }
}
#al-home .al-nowrap { white-space: nowrap; }
@media screen and (max-width: 1199px) { #al-home .al-trust .al-nowrap { display: none; } } /* colonne etroite : horaires dans le pied de page */
/* fin de page : pas de double marge avant « Nos references » */
#al-home { margin-bottom: 0; }
#al-home > .al-section:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
	#al-home *, #al-cartfab, #al-toast { transition: none !important; }
}
#al-home .al-card input.ajax_add_to_cart_button.is-added { border-color: #f9d10c !important; background: var(--al-yellow) !important; box-shadow: 0 2px 5px rgba(213, 180, 0, .3) !important; color: var(--al-ink) !important; font-weight: 600 !important; } /* « Ajoute » reste jaune (demande Nicolas 24/11) */
/* « Tout voir » : zone tactile confortable sans changer l'alignement */
#al-home .al-more { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; margin: -12px 0; padding: 0 4px; }
#al-home .al-more:after { content: "\2192"; }

/* grille « Selection » : plus d espace entre les lignes (retour Nicolas 24/11) */
#al-home .al-grid { row-gap: 40px; }
@media screen and (max-width: 550px) { #al-home .al-grid { row-gap: 28px; } }

/* boutons « Ajouter au panier » : memes dimensions que sur les pages de categorie (40px PC, 42px mobile, texte 600) */
@media screen and (max-width: 550px) {
	#al-home .al-card input.ajax_add_to_cart_button, #al-home .al-card .al-card__cta { height: 42px !important; min-height: 42px !important; padding: 0 8px !important; line-height: 40px !important; }
}
