/**
 * Salam — Page d'accueil (maquette Figma salam-v2, frame 1:189)
 * Blocs : hero, gamme, recettes (rouge), à propos + communauté.
 * Styles partagés produit/recette : main.css.
 *
 * Grille Figma : 1440px · contenu 1248px · padding 96px.
 */

/* ── Décors réutilisables ──────────────────────────────────────────── */

.salam-mark {
	display: block;
	width: 64px;
	height: 78px;
	background: var(--salam-img-mark) center / contain no-repeat;
}

/* ── Titre de section à fioritures ─────────────────────────────────── */

.home-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	margin: 0;
	font-family: var(--salam-font-display);
	font-weight: 800;
	font-size: clamp(1.75rem, 4vw, 2.375rem);
	line-height: 1.2;
	letter-spacing: -0.05em;
	text-align: center;
	text-wrap: balance;
}

.home-title::before,
.home-title::after {
	content: "";
	flex: none;
	width: 22px;
	height: 40px;
	background: var(--salam-img-flourish) center / contain no-repeat;
}

.home-title::after {
	transform: scaleX(-1);
}

.home-title--red {
	color: var(--salam-color-heading-red);
}

.home-title--white {
	color: #fff;
}

/* ── Pastilles / bannières or ──────────────────────────────────────── */

.salam-tab,
.salam-banner-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-sizing: border-box;
	padding: 0 1.25rem;
	background-color: var(--salam-btn-fill);
	background-image: var(--salam-img-btn-centre);
	background-position: center;
	background-size: auto 100%;
	background-repeat: repeat-x;
	border: 0;
	color: #fff;
	font-family: var(--salam-font-open);
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
}

.salam-tab {
	height: var(--salam-tab-height);
	min-height: var(--salam-tab-height);
	max-height: var(--salam-tab-height);
	font-size: clamp(1rem, 2vw, 1.5rem);
	font-weight: 400;
	transition: height var(--salam-transition), min-height var(--salam-transition), max-height var(--salam-transition);
}

.salam-tab:hover,
.salam-tab:focus-visible {
	height: var(--salam-tab-height-hover);
	min-height: var(--salam-tab-height-hover);
	max-height: var(--salam-tab-height-hover);
}

.salam-tab.is-active {
	font-weight: 700;
	font-size: clamp(1.125rem, 2.4vw, 1.6875rem);
}

.salam-banner-btn {
	min-height: var(--salam-btn-height);
	font-weight: 700;
	font-size: clamp(1.125rem, 2vw, 1.375rem);
	letter-spacing: -0.04em;
	color: #fff;
	transform-origin: center;
	transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.salam-tab::before,
.salam-tab::after,
.salam-banner-btn::before,
.salam-banner-btn::after {
	content: "";
	position: absolute;
	top: 0;
	width: var(--salam-btn-cap-width);
	height: 100%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	pointer-events: none;
}

.salam-tab::before,
.salam-banner-btn::before {
	inset-inline-end: 100%;
	margin-inline-end: calc(-1 * var(--salam-btn-cap-overlap));
	background-image: var(--salam-img-btn-gauche);
}

.salam-tab::after,
.salam-banner-btn::after {
	inset-inline-start: 100%;
	margin-inline-start: calc(-1 * var(--salam-btn-cap-overlap));
	background-image: var(--salam-img-btn-droite);
}

.salam-tab__label,
.salam-banner-btn__label {
	position: relative;
	z-index: 1;
}

.salam-banner-btn .fa-solid {
	font-size: 0.7em;
}

.salam-banner-btn:hover,
.salam-banner-btn:focus-visible {
	color: #fff;
	transform: scale(1.04);
}

.salam-banner-btn:active {
	color: #fff;
	transform: scale(0.98);
	transition-duration: 0.15s;
}

/* ══════════════════════════════════════════════════════════════════
   Hero
   ══════════════════════════════════════════════════════════════════ */

.hero-carousel {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: calc(100svh - var(--salam-header-bg-height) + 50px);
	min-height: var(--salam-hero-min-height);
	margin-top: -80px;
	border-bottom: 12px solid #e3b441;
	overflow: hidden;
}

.hero-carousel .swiper,
.hero-carousel__swiper {
	width: 100%;
	height: 100%;
}

.hero-carousel__slide {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	width: 100%;
	height: 100%;
}

.hero-carousel__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero-carousel__media img,
.hero-carousel__media video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
}

.hero-carousel__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		var(--salam-overlay-hero-start) 0%,
		transparent 54%,
		var(--salam-overlay-hero-end) 90%
	);
	z-index: 1;
}

.hero-carousel__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding-bottom: 5.5rem;
	color: #fff;
	text-align: center;
}

.hero-carousel__title {
	max-width: 739px;
	margin: 0;
	font-family: var(--salam-font-display);
	font-weight: 800;
	font-size: clamp(1.75rem, 4.5vw, 2.375rem);
	line-height: 1.2;
	letter-spacing: -0.05em;
	color: #fff;
}

.hero-carousel__subtitle {
	max-width: 640px;
	margin: 0;
	font-family: var(--salam-font-open);
	font-size: clamp(0.9375rem, 2vw, 1.125rem);
	line-height: 1.4;
	letter-spacing: -0.02em;
	color: #fff;
}

.hero-carousel__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	color: inherit;
	text-decoration: none;
}

.hero-carousel__nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition:
		opacity 0.35s ease,
		transform 0.35s ease;
}

.hero-carousel__nav::before {
	content: "";
	display: block;
	width: 1.125rem;
	height: 1.125rem;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transition: opacity 0.2s ease;
}

.hero-carousel__nav--prev {
	left: clamp(1rem, 3vw, 2.5rem);
	transform: translateY(-50%) translateX(0.75rem);
}

.hero-carousel__nav--prev::before {
	transform: rotate(-135deg);
}

.hero-carousel__nav--next {
	right: clamp(1rem, 3vw, 2.5rem);
	transform: translateY(-50%) translateX(-0.75rem);
}

.hero-carousel__nav--next::before {
	transform: rotate(45deg);
}

.hero-carousel:hover .hero-carousel__nav,
.hero-carousel:focus-within .hero-carousel__nav {
	opacity: 1;
	pointer-events: auto;
}

.hero-carousel:hover .hero-carousel__nav--prev,
.hero-carousel:focus-within .hero-carousel__nav--prev {
	transform: translateY(-50%) translateX(0);
}

.hero-carousel:hover .hero-carousel__nav--next,
.hero-carousel:focus-within .hero-carousel__nav--next {
	transform: translateY(-50%) translateX(0);
}

.hero-carousel__nav:hover::before {
	opacity: 0.65;
}

.hero-carousel__pagination.swiper-pagination {
	bottom: 2.25rem;
}

.hero-carousel .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	margin: 0 4px !important;
	background: #fff;
	opacity: 0.3;
}

.hero-carousel .swiper-pagination-bullet-active {
	opacity: 1;
	background: #fff;
}

/* ══════════════════════════════════════════════════════════════════
   Bloc Gamme
   ══════════════════════════════════════════════════════════════════ */

.gamme-block {
	position: relative;
	z-index: 5;
	padding-block: 6rem;
	padding-bottom: calc(6rem + 50px);
}

.gamme-block.salam-section--pattern {
	overflow-x: clip;
	overflow-y: visible;
}

.gamme-block.salam-section--pattern::before {
	opacity: 0.33;
	mix-blend-mode: color-burn;
}

.gamme-block__salam-mark {
	position: absolute;
	top: -39px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	background: url("../images/figma/v2/hand.svg") center / contain no-repeat;
}

.gamme-block__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3rem;
	container-type: inline-size;
	container-name: gamme-inner;
}

.gamme-block__title {
	width: 100%;
	align-self: stretch;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
	text-wrap: auto;
	font-size: 26px;
}

@container gamme-inner (min-width: 56rem) {
	.gamme-block__title {
		white-space: nowrap;
		text-wrap: nowrap;
	}
}

.gamme-block__filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
}

.gamme-block__filters .salam-tab {
	/* Les capuchons ::before/::after dépassent du bouton et ignorent le gap flex */
	margin-inline: var(--salam-btn-cap-width);
	font-size: clamp(0.8125rem, 1.4vw, 0.9375rem);
	line-height: 1;
	padding-block: 0;
	height: var(--salam-tab-height-hover);
	min-height: var(--salam-tab-height-hover);
	max-height: var(--salam-tab-height-hover);
}

.gamme-block__filters .salam-tab:hover,
.gamme-block__filters .salam-tab:focus-visible {
	height: var(--salam-tab-height-hover);
	min-height: var(--salam-tab-height-hover);
	max-height: var(--salam-tab-height-hover);
}

.gamme-block__filters .salam-tab.is-active {
	font-size: clamp(0.875rem, 1.5vw, 1rem);
	font-weight: 700;
}

.gamme-block__filters .salam-tab__label {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

/* Réserve la largeur de l'état actif (gras + police plus grande) pour éviter
   que le bouton ne bouge subitement au survol/clic. */
.gamme-block__filters .salam-tab__label::after {
	content: attr(data-label);
	height: 0;
	overflow: hidden;
	visibility: hidden;
	pointer-events: none;
	font-weight: 700;
	font-size: clamp(0.875rem, 1.5vw, 1rem);
}

/* Filtres recette : une seule ligne, boutons plus larges pour occuper l'espace. */
.recipes-block__filters {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	gap: clamp(0.75rem, 2vw, 1.75rem);
	margin: 0;
	padding: 0;
	width: 100%;
}

.recipes-block__filters .salam-tab {
	margin-inline: var(--salam-btn-cap-width);
	padding-inline: clamp(1.125rem, 2.4vw, 1.75rem);
	font-size: clamp(0.9375rem, 1.8vw, 1.125rem);
	line-height: 1;
	padding-block: 0;
	height: 52px;
	min-height: 52px;
	max-height: 52px;
}

.recipes-block__filters .salam-tab:hover,
.recipes-block__filters .salam-tab:focus-visible {
	height: 52px;
	min-height: 52px;
	max-height: 52px;
}

.recipes-block__filters .salam-tab.is-active {
	font-size: clamp(1.0625rem, 2vw, 1.25rem);
	font-weight: 700;
}

.recipes-block__filters .salam-tab__label {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.recipes-block__filters .salam-tab__label::after {
	content: attr(data-label);
	height: 0;
	overflow: hidden;
	visibility: hidden;
	pointer-events: none;
	font-weight: 700;
	font-size: clamp(1.0625rem, 2vw, 1.25rem);
}

.salam-filters--scroll {
	flex-wrap: nowrap;
	justify-content: flex-start;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 0.25rem;
	width: 100%;
}

.salam-filters--scroll::-webkit-scrollbar {
	display: none;
}

.salam-filters--scroll .salam-tab {
	flex-shrink: 0;
}

.gamme-block__viewport,
.recipes-block__viewport {
	display: flex;
	align-items: center;
	width: 100%;
}

.gamme-block__viewport {
	gap: 1.5rem;
}

.gamme-block__carousel,
.recipes-block__carousel {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}

/* Marge interne pour le bounce hover produit (overflow du swiper coupe sinon) */
.gamme-block__carousel {
	padding-top: 12px;
	margin-top: -12px;
}

.gamme-block__slide {
	height: auto;
	overflow: visible;
}

.gamme-block__arrow,
.recipes-block__arrow {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	background: none;
	border: 0;
	color: var(--salam-color-gold);
	cursor: pointer;
}

.gamme-block__arrow--prev {
	color: rgba(193, 160, 55, 0.5);
}

/* Carte produit dans le contexte accueil (packshot sans cadre) */
.gamme-block .product-card {
	text-align: center;
}

.gamme-block .product-card__link {
	display: block;
}

.gamme-block .product-card__image-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	margin-bottom: 1.5rem;
	overflow: visible;
	transition: transform 0.45s cubic-bezier(0.34, 1.25, 0.64, 1);
}

.gamme-block .product-card__link:hover .product-card__image-wrap,
.gamme-block .product-card__link:focus-visible .product-card__image-wrap {
	box-shadow: none;
	transform: translateY(-8px);
}

.gamme-block .product-card__image,
.gamme-block .product-card__image.wp-post-image {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 310px;
	object-fit: contain;
}

.gamme-block .product-card__title {
	font-family: var(--salam-font-open);
	font-size: clamp(0.875rem, 1.1vw, 1rem);
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.04em;
	color: var(--salam-color-product-title);
	margin: 0;
	padding-inline: 0.125rem;
	transition: color var(--salam-transition), font-weight var(--salam-transition), font-size var(--salam-transition);
}

@media (min-width: 1024px) {
	.gamme-block .product-card__title {
		font-size: 1.125rem;
		white-space: nowrap;
	}

	.gamme-block .product-card__link:hover .product-card__title,
	.gamme-block .product-card__link:focus-visible .product-card__title {
		font-size: 1.125rem;
		font-weight: 700;
	}
}

.gamme-block .product-card__link:hover .product-card__title,
.gamme-block .product-card__link:focus-visible .product-card__title {
	font-weight: 700;
	color: var(--salam-color-heading-red);
}

@media (prefers-reduced-motion: reduce) {
	.gamme-block .product-card__image-wrap {
		transition: none;
	}

	.gamme-block .product-card__title {
		transition: none;
	}

	.gamme-block .product-card__link:hover .product-card__image-wrap,
	.gamme-block .product-card__link:focus-visible .product-card__image-wrap {
		transform: none;
	}
}

.gamme-block__progress.swiper-scrollbar {
	position: static;
	width: 100%;
	height: 4px;
	margin-top: 2.5rem;
	background: rgba(193, 160, 55, 0.3);
	border-radius: 4px;
}

.gamme-block__progress .swiper-scrollbar-drag {
	background: var(--salam-color-gold);
	border-radius: 4px;
}

.gamme-block__cta,
.recipes-block__cta {
	display: flex;
	justify-content: center;
}

.gamme-block__empty {
	text-align: center;
	color: var(--color-text-muted, #666);
}

/* ══════════════════════════════════════════════════════════════════
   Bloc Recettes
   ══════════════════════════════════════════════════════════════════ */

.recipes-block {
	position: relative;
	isolation: isolate;
}

.recipes-block--home {
	background-color: var(--salam-color-bg-cream);
	background-image: var(--salam-img-recipes-bg);
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
}

.recipes-block--home .recipes-block__body {
	margin-top: 0;
	padding-block: 5.5rem 4.5rem;
	background: none;
	border-bottom: none;
}

.recipes-block--home .recipes-block__body::before {
	content: none;
}

.recipes-block--home .recipes-block__band {
	display: block;
	width: 100%;
	height: 12px;
	background-color: #e3b441;
}

/* Variante crête (archive produits, fiche produit) :
   recette-crest.png au-dessus + bg-recette.png dans le corps. */
.recipes-block--crest .recipes-block__crest {
	position: relative;
	z-index: 2;
	line-height: 0;
}

.recipes-block--crest .recipes-block__wave {
	display: block;
	width: 100%;
	height: auto;
}

.recipes-block--crest .recipes-block__body {
	margin-top: -1px;
	background-image: var(--salam-img-recipes-bg);
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: cover;
	border-bottom: none;
}

.recipes-block--crest .recipes-block__body::before {
	content: none;
}

.recipes-block__crest {
	position: relative;
	z-index: 2;
	line-height: 0;
}

.recipes-block__wave {
	display: block;
	width: 100%;
	height: auto;
}

.recipes-block__salam-mark {
	position: absolute;
	left: 50%;
	top: 4px;
	transform: translateX(-50%);
	width: 60px;
	height: 73px;
	z-index: 3;
}

.recipes-block__body {
	position: relative;
	z-index: 1;
	margin-top: -1px;
	padding-block: 1.5rem 4rem;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%),
		#e6122a;
	border-bottom: 12px solid var(--salam-color-gold);
	overflow: hidden;
}

.recipes-block__body::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 1248px;
	max-width: 100%;
	height: 653px;
	background: var(--salam-img-section-pattern) center / contain no-repeat;
	mix-blend-mode: plus-lighter;
	opacity: 0.3;
	pointer-events: none;
	z-index: 0;
}

.recipes-block__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2.5rem;
	margin-top: 20px;
	margin-bottom: 20px;
}

.recipes-block__arrow {
	color: #fff;
}

.recipes-block__arrow--prev {
	color: rgba(255, 255, 255, 0.5);
}

/* Flèches en overlay — le carrousel conserve toute la largeur du viewport. */
.recipes-block__viewport {
	position: relative;
	gap: 0;
}

.recipes-block__carousel {
	width: 100%;
	flex: none;
}

.recipes-block__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
}

.recipes-block__arrow--prev {
	left: 0;
}

.recipes-block__arrow--next {
	right: 0;
}

.recipes-block__slide {
	height: auto;
}

/* Carte recette accueil */
.home-recipe-card {
	height: 100%;
	background: var(--salam-color-recipe-card);
	border: 1px solid var(--salam-color-gold);
	border-radius: 16px;
	overflow: hidden;
}

.home-recipe-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.home-recipe-card__media {
	height: 202px;
	overflow: hidden;
	background: #eee;
}

.home-recipe-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.home-recipe-card:hover .home-recipe-card__image {
	transform: scale(1.05);
}

.home-recipe-card__body {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: flex-start;
	padding: 16px 24px 24px;
}

.home-recipe-card__title {
	margin: 0;
	font-family: var(--salam-font-body);
	font-weight: 800;
	font-size: 1.275rem;
	line-height: 1.1;
	letter-spacing: -0.04em;
	color: var(--salam-color-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 3.025rem;
}

.home-recipe-card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding-bottom: 10px;
	border-bottom: 1.5px solid #e6122a;
	color: #e6122a;
	font-family: var(--salam-font-open);
	font-weight: 600;
	font-size: 0.875rem;
	letter-spacing: -0.04em;
}

.home-recipe-card__more .fa-solid {
	font-size: 0.75rem;
	transition: transform 0.25s ease;
}

.home-recipe-card:hover .home-recipe-card__more .fa-solid {
	transform: translateX(4px);
}

/* ══════════════════════════════════════════════════════════════════
   Bloc À propos + Communauté
   ══════════════════════════════════════════════════════════════════ */

.home .community-section.salam-section--pattern::before {
	content: none;
}

.about-block {
	padding-block: 6rem;
}

.about-block.salam-section--pattern::before {
	opacity: 0.33;
	mix-blend-mode: color-burn;
}

.about-block__inner {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.about-block__about {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.about-block__content {
	display: flex;
	gap: 2.75rem;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.about-block__text {
	flex: 0 1 480px;
	max-width: 480px;
	min-width: 0;
	font-family: var(--salam-font-open);
	font-size: clamp(1.125rem, 2vw, 1.5rem);
	line-height: 1.4;
	letter-spacing: -0.03em;
	color: var(--salam-color-heading-red);
}

.about-block__text p {
	margin: 0 0 1.25rem;
}

.about-block__text p:last-child {
	margin-bottom: 0;
}

.about-block__media {
	flex: 1 1 720px;
	min-width: 0;
	width: 720px;
	max-width: 100%;
	height: 300px;
	border: 2px solid var(--salam-color-gold);
	border-radius: 24px;
	overflow: hidden;
}

.about-block__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ══════════════════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════════════════ */

/* iPad (Mini, Air, Pro) & tablettes : image de fond uniquement, pas de rouge sur le corps. */
@media (min-width: 768px) and (max-width: 1366px) {
	.recipes-block--home {
		background-image: var(--salam-img-recipes-bg-mobile);
	}

	.recipes-block--home .recipes-block__body,
	.recipes-block--crest .recipes-block__body,
	.recipes-block__body {
		background: none;
		border-bottom: none;
	}

	.recipes-block--home .recipes-block__body::before,
	.recipes-block--crest .recipes-block__body::before,
	.recipes-block__body::before {
		content: none;
	}

	.recipes-block--crest {
		background-color: var(--salam-color-bg-cream);
		background-image: var(--salam-img-recipes-bg-mobile);
		background-repeat: no-repeat;
		background-position: center top;
		background-size: cover;
	}

	.recipes-block--crest .recipes-block__crest {
		display: none;
	}

	.recipes-block--crest .recipes-block__body {
		margin-top: 0;
	}

	.recipes-block--crest::after {
		content: "";
		display: block;
		width: 100%;
		height: 12px;
		background-color: #e3b441;
	}
}

@media (max-width: 1023px) {
	.home-recipe-card__title {
		line-height: 1.2;
	}

	.about-block__content {
		flex-direction: column;
		gap: 1.75rem;
		align-items: stretch;
	}

	.about-block__text {
		flex: none;
		width: 100%;
		max-width: none;
	}

	.about-block__media {
		flex: none;
		width: 100%;
		max-width: none;
		height: auto;
		aspect-ratio: 12 / 5;
	}
}

@media (min-width: 1024px) {
	.home-title {
		font-size: 2.375rem;
	}

	.gamme-block__title {
		font-size: 2.25rem;
	}

	.hero-carousel__title {
		font-size: 2.375rem;
	}

	.hero-carousel__subtitle {
		font-size: 1.125rem;
	}

	.about-block__text {
		font-size: 1.5rem;
		line-height: 1.4;
		flex: 0 0 480px;
		max-width: 480px;
	}
}

@media (max-width: 767px) {
	.gamme-block {
		padding-block: 3.5rem calc(4rem + 50px);
	}

	.gamme-block__salam-mark {
		top: -28px;
		width: 44px;
		height: 54px;
	}

	.about-block {
		padding-block: 3.5rem;
	}

	.about-block__text {
		text-align: center;
	}

	.about-block__media {
		min-height: 300px;
	}

	.gamme-block__filters,
	.recipes-block__filters {
		align-self: stretch;
		flex-wrap: nowrap;
		justify-content: center;
		align-items: center;
		gap: 5px;
		width: calc(100% + 2 * var(--container-padding));
		max-width: calc(100% + 2 * var(--container-padding));
		margin-inline: calc(-1 * var(--container-padding));
		padding-inline: 20px;
		box-sizing: border-box;
	}

	.gamme-block__filters:not(.salam-filters--scroll),
	.recipes-block__filters:not(.salam-filters--scroll) {
		overflow-x: visible;
	}

	.gamme-block__filters .salam-tab,
	.gamme-block__filters .salam-tab:hover,
	.gamme-block__filters .salam-tab:focus-visible,
	.gamme-block__filters .salam-tab.is-active,
	.recipes-block__filters .salam-tab,
	.recipes-block__filters .salam-tab:hover,
	.recipes-block__filters .salam-tab:focus-visible,
	.recipes-block__filters .salam-tab.is-active {
		margin-left: 16px;
		margin-right: 16px;
		padding-inline: 0;
		--salam-btn-cap-width: 20px;
		height: 32px;
		min-height: 32px;
		max-height: 32px;
		font-size: 0.75rem;
		font-weight: 400;
		transition: none;
	}

	.gamme-block__filters .salam-tab::before,
	.gamme-block__filters .salam-tab::after,
	.recipes-block__filters .salam-tab::before,
	.recipes-block__filters .salam-tab::after {
		width: 20px;
		min-width: 20px;
	}

	.gamme-block__filters:not(.salam-filters--scroll) .salam-tab,
	.gamme-block__filters:not(.salam-filters--scroll) .salam-tab.is-active,
	.recipes-block__filters:not(.salam-filters--scroll) .salam-tab,
	.recipes-block__filters:not(.salam-filters--scroll) .salam-tab.is-active {
		flex: 1 1 0;
		min-width: 0;
	}

	.gamme-block__filters .salam-tab.is-active,
	.recipes-block__filters .salam-tab.is-active {
		font-weight: 700;
	}

	.gamme-block__filters .salam-tab__label::after,
	.recipes-block__filters .salam-tab__label::after {
		font-size: 0.75rem;
		font-weight: 700;
	}

	/* > 3 filtres : défilement horizontal. */
	.gamme-block__filters.salam-filters--scroll,
	.recipes-block__filters.salam-filters--scroll {
		justify-content: flex-start;
		gap: 0;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.gamme-block__filters.salam-filters--scroll::-webkit-scrollbar,
	.recipes-block__filters.salam-filters--scroll::-webkit-scrollbar {
		display: none;
	}

	.gamme-block__filters.salam-filters--scroll .salam-tab,
	.recipes-block__filters.salam-filters--scroll .salam-tab {
		flex: 0 0 auto;
	}

	.gamme-block__arrow,
	.recipes-block__arrow {
		opacity: 1;
		pointer-events: auto;
	}

	.gamme-block__arrow.swiper-button-disabled,
	.recipes-block__arrow.swiper-button-disabled {
		opacity: 0.35;
		pointer-events: none;
	}

	.hero-carousel {
		aspect-ratio: auto;
		max-height: none;
		height: var(--salam-hero-min-height);
		min-height: var(--salam-hero-min-height);
	}

	.hero-carousel .swiper,
	.hero-carousel__swiper,
	.hero-carousel__slide {
		min-height: var(--salam-hero-min-height);
	}

	.hero-carousel__media {
		background-color: var(--salam-color-primary-dark);
	}

	.hero-carousel__media img,
	.hero-carousel__media video {
		object-fit: cover;
		object-position: center center;
	}

	.hero-carousel__overlay {
		background: linear-gradient(
			to bottom,
			var(--salam-overlay-hero-start) 0%,
			transparent 42%,
			var(--salam-overlay-hero-end) 88%
		);
	}

	.hero-carousel__content {
		padding-bottom: 4rem;
	}

	.recipes-block--home .recipes-block__body {
		padding-block: 3rem 2.5rem;
	}

	.recipes-block--home {
		background-image: var(--salam-img-recipes-bg-mobile);
	}

	/* Variante crête (archive produits, fiche produit) : même fond mobile que l'accueil. */
	.recipes-block--crest {
		background-color: var(--salam-color-bg-cream);
		background-image: var(--salam-img-recipes-bg-mobile);
		background-repeat: no-repeat;
		background-position: center top;
		background-size: cover;
	}

	.recipes-block--crest .recipes-block__crest {
		display: none;
	}

	.recipes-block--crest .recipes-block__body {
		margin-top: 0;
		padding-block: 3rem 2.5rem;
		background: none;
		border-bottom: none;
	}

	.recipes-block--crest::after {
		content: "";
		display: block;
		width: 100%;
		height: 12px;
		background-color: #e3b441;
	}

	/* Bloc plus compact pour épouser la maquette mobile. */
	.recipes-block__inner {
		gap: 1.5rem;
		margin-top: 12px;
		margin-bottom: 12px;
	}

	/* Carrousel pleine largeur du bloc rouge, slide actif centré. */
	.recipes-block__viewport {
		width: calc(100% + 2 * var(--container-padding));
		max-width: calc(100% + 2 * var(--container-padding));
		margin-inline: calc(-1 * var(--container-padding));
	}

	.recipes-block__carousel {
		width: 100%;
		overflow: visible;
	}

	.recipes-block__carousel .home-recipe-card {
		transition:
			opacity 0.45s ease,
			transform 0.45s ease;
	}

	.recipes-block__carousel .swiper-slide-active .home-recipe-card {
		opacity: 1;
		transform: scale(1);
	}

	/* Slide suivante : transparence légère, taille pleine pour +10 % de visibilité. */
	.recipes-block__carousel .swiper-slide-next .home-recipe-card {
		opacity: 0.55;
		transform: scale(1);
	}

	.home-recipe-card {
		width: 100%;
		max-width: none;
		margin-inline: auto;
	}

	/* Hauteur fixe réservée au carrousel accueil (slides uniformes). */
	.recipes-block__carousel .home-recipe-card {
		height: 332px;
	}

	.home-recipe-card__media {
		height: 202px;
	}

	.home-recipe-card__body {
		gap: 10px;
		padding: 12px 16px 8px;
	}

	.home-recipe-card__title {
		font-weight: 800;
		font-size: 22px;
		line-height: 1.2;
		letter-spacing: -0.04em;
		min-height: 0;
	}

	.home-recipe-card__more {
		padding-bottom: 3px;
		font-family: var(--salam-font-open);
		font-weight: 600;
		font-size: 14px;
		line-height: 1.5;
		letter-spacing: -0.04em;
	}

	@media (prefers-reduced-motion: reduce) {
		.recipes-block__carousel .home-recipe-card {
			transition: none;
		}
	}
}
