/**
 * Afro-Exotique — hero accueil natif 2026.
 * Scope strict : nouveau composant .ae-home-hero sur body.home.
 */

body.home .ae-home-hero,
body.home .ae-home-hero * {
	box-sizing: border-box;
}

body.home .ae-home-hero {
	--ae-hero-brand: #00b14d;
	--ae-hero-brand-dark: #008f3e;
	--ae-hero-ink: #1d2721;
	--ae-hero-muted: #607067;
	--ae-hero-line: #dce7df;
	--ae-hero-shadow: 0 18px 55px rgba(19, 55, 34, 0.12);
	position: relative;
	left: 50%;
	width: 100vw;
	margin-left: -50vw;
	overflow: hidden;
	color: var(--ae-hero-ink);
	background:
		radial-gradient(circle at 12% 8%, rgba(0, 177, 77, 0.13), transparent 30%),
		radial-gradient(circle at 88% 90%, rgba(163, 209, 51, 0.18), transparent 32%),
		linear-gradient(135deg, #fbfdfb 0%, #f0f8f3 58%, #fbf7ed 100%);
	border-bottom: 1px solid var(--ae-hero-line);
	font-family: inherit;
}

body.home .ae-home-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.2;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(0, 143, 62, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 143, 62, 0.07) 1px, transparent 1px);
	background-size: 42px 42px;
	-webkit-mask-image: linear-gradient(to right, #000, transparent 55%);
	mask-image: linear-gradient(to right, #000, transparent 55%);
}

body.home .ae-home-hero a {
	text-decoration: none;
}

body.home .ae-home-hero__inner {
	position: relative;
	z-index: 1;
	width: min(1200px, calc(100% - 30px));
	min-height: 570px;
	margin: auto;
	padding: 58px 0;
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
	align-items: center;
	gap: clamp(36px, 6vw, 78px);
}

body.home .ae-home-hero__copy {
	min-width: 0;
}

body.home .ae-home-hero__eyebrow {
	width: fit-content;
	margin: 0 0 18px;
	padding: 7px 11px;
	color: var(--ae-hero-brand-dark);
	background: #e4f7eb;
	border: 1px solid #ccebd7;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-transform: uppercase;
}

body.home .ae-home-hero h1 {
	max-width: 650px;
	margin: 0 0 20px;
	color: var(--ae-hero-ink);
	font-size: clamp(2.25rem, 5vw, 4.3rem);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.055em;
}

body.home .ae-home-hero h1 span {
	color: var(--ae-hero-brand-dark);
}

body.home .ae-home-hero__lead {
	max-width: 590px;
	margin: 0 0 28px;
	color: var(--ae-hero-muted);
	font-size: clamp(1rem, 1.8vw, 1.14rem);
	line-height: 1.55;
}

body.home .ae-home-hero__actions {
	margin-bottom: 17px;
	display: flex;
	flex-wrap: wrap;
	gap: 11px;
}

body.home .ae-home-hero__actions--categories {
	width: min(500px, 100%);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.home .ae-home-hero__button {
	min-height: 50px;
	padding: 0 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid transparent;
	border-radius: 13px;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

body.home .ae-home-hero__button:hover,
body.home .ae-home-hero__button:focus-visible {
	transform: translateY(-2px);
}

body.home .ae-home-hero__button--primary,
body.home .ae-home-hero__button--primary:visited {
	color: #fff;
	background: var(--ae-hero-brand);
	box-shadow: 0 10px 24px rgba(0, 177, 77, 0.23);
}

body.home .ae-home-hero__button--primary:hover,
body.home .ae-home-hero__button--primary:focus-visible {
	color: #fff;
	background: var(--ae-hero-brand-dark);
	box-shadow: 0 13px 28px rgba(0, 143, 62, 0.28);
}

body.home .ae-home-hero__button--secondary,
body.home .ae-home-hero__button--secondary:visited {
	color: var(--ae-hero-ink);
	background: rgba(255, 255, 255, 0.82);
	border-color: var(--ae-hero-line);
}

body.home .ae-home-hero__button--secondary:hover,
body.home .ae-home-hero__button--secondary:focus-visible {
	color: var(--ae-hero-brand-dark);
	background: #fff;
}

body.home .ae-home-hero__proof-row {
	width: min(500px, 100%);
	margin-bottom: 17px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 11px;
}

body.home .ae-home-hero__proof-row .ae-home-hero__button {
	min-height: 50px;
}

body.home .ae-home-hero__social-proof {
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 9px 12px;
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid var(--ae-hero-line);
	border-radius: 13px;
	box-shadow: 0 7px 18px rgba(20, 44, 29, 0.055);
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.home .ae-home-hero__social-proof:hover,
body.home .ae-home-hero__social-proof:focus-visible {
	border-color: #bcdcc8;
	box-shadow: 0 10px 24px rgba(20, 44, 29, 0.09);
	transform: translateY(-2px);
}

body.home .ae-home-hero__stars {
	color: #efaa00;
	font-size: 13px;
	letter-spacing: 1px;
	white-space: nowrap;
}

body.home .ae-home-hero__social-proof strong,
body.home .ae-home-hero__social-proof span {
	display: block;
	line-height: 1.3;
}

body.home .ae-home-hero__social-proof strong {
	color: var(--ae-hero-ink);
	font-size: 12px;
}

body.home .ae-home-hero__social-proof span {
	color: var(--ae-hero-muted);
	font-size: 10px;
}

body.home .ae-home-hero__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	color: var(--ae-hero-muted);
	font-size: 12px;
	font-weight: 600;
}

body.home .ae-home-hero__trust span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

body.home .ae-home-hero__trust span::before {
	content: "✓";
	width: 20px;
	height: 20px;
	display: grid;
	flex: 0 0 20px;
	place-items: center;
	color: #fff;
	background: var(--ae-hero-brand);
	border-radius: 50%;
	font-size: 10px;
	font-weight: 900;
}

body.home .ae-home-hero__carousel {
	min-width: 0;
	padding: 17px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(0, 143, 62, 0.14);
	border-radius: 28px;
	box-shadow: var(--ae-hero-shadow);
	animation: ae-hero-enter 0.8s ease both;
}

@keyframes ae-hero-enter {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

body.home .ae-home-hero__carousel-head {
	margin-bottom: 13px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

body.home .ae-home-hero__carousel-head h2 {
	margin: 0;
	color: var(--ae-hero-ink);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

body.home .ae-home-hero__controls {
	display: flex;
	gap: 6px;
}

body.home .ae-home-hero__controls button {
	width: 34px;
	height: 34px;
	padding: 0;
	display: grid;
	place-items: center;
	color: var(--ae-hero-ink);
	background: #fff;
	border: 1px solid var(--ae-hero-line);
	border-radius: 50%;
	box-shadow: none;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

body.home .ae-home-hero__controls button:hover,
body.home .ae-home-hero__controls button:focus-visible {
	color: #fff;
	background: var(--ae-hero-brand);
	border-color: var(--ae-hero-brand);
}

body.home .ae-home-hero__controls button:disabled {
	opacity: 0.4;
	cursor: default;
}

body.home .ae-home-hero__products {
	--ae-hero-visible: 3;
	min-height: 350px;
	display: grid;
	grid-template-columns: repeat(var(--ae-hero-visible), minmax(0, 1fr));
	gap: 10px;
}

body.home .ae-home-hero__product[hidden] {
	display: none !important;
}

/* Évite l'affichage des six cartes pendant l'initialisation JavaScript. */
body.home .ae-home-hero__carousel:not([data-ae-ready]) .ae-home-hero__product:nth-child(n + 4) {
	display: none;
}

body.home .ae-home-hero__product {
	min-width: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--ae-hero-line);
	border-radius: 16px;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	animation: ae-hero-card-in 0.42s ease both;
}

@keyframes ae-hero-card-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

body.home .ae-home-hero__product:hover,
body.home .ae-home-hero__product:focus-within {
	border-color: #bcdcc8;
	box-shadow: 0 10px 24px rgba(20, 44, 29, 0.09);
	transform: translateY(-3px);
}

body.home .ae-home-hero__product-image {
	position: relative;
	width: 100%;
	height: 210px;
	padding: 11px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, #fbfdfb, #edf6f0);
}

body.home .ae-home-hero__product-image img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	margin: auto !important;
	display: block;
	object-fit: contain !important;
	object-position: center !important;
	transition: transform 0.25s ease;
}

body.home .ae-home-hero__product:hover .ae-home-hero__product-image img {
	transform: scale(1.035);
}

body.home .ae-home-hero__badge {
	position: absolute;
	z-index: 1;
	top: 8px;
	left: 8px;
	padding: 4px 7px;
	color: var(--ae-hero-brand-dark);
	background: rgba(228, 247, 235, 0.95);
	border-radius: 999px;
	font-size: 8px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
}

body.home .ae-home-hero__product-body {
	min-width: 0;
	padding: 11px;
	display: flex;
	flex: 1;
	flex-direction: column;
}

body.home .ae-home-hero__product-category {
	margin-bottom: 4px;
	overflow: hidden;
	color: var(--ae-hero-muted);
	font-size: 9px;
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.home .ae-home-hero__product h3 {
	min-height: 2.8em;
	margin: 0 0 8px;
	overflow: hidden;
	display: -webkit-box;
	color: var(--ae-hero-ink);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

body.home .ae-home-hero__product-foot {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
}

body.home .ae-home-hero__price,
body.home .ae-home-hero__price .amount,
body.home .ae-home-hero__price ins {
	color: var(--ae-hero-brand-dark);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.25;
	text-decoration: none;
}

body.home .ae-home-hero__price del,
body.home .ae-home-hero__price del .amount {
	color: var(--ae-hero-muted);
	font-size: 9px;
	font-weight: 500;
}

body.home .ae-home-hero__view-product,
body.home .ae-home-hero__view-product:visited {
	width: 29px;
	height: 29px;
	display: grid;
	flex: 0 0 29px;
	place-items: center;
	color: #fff;
	background: var(--ae-hero-brand);
	border-radius: 9px;
	font-size: 12px;
	line-height: 1;
}

body.home .ae-home-hero__view-product:hover,
body.home .ae-home-hero__view-product:focus-visible {
	color: #fff;
	background: var(--ae-hero-brand-dark);
}

body.home .ae-home-hero__carousel-foot {
	margin-top: 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	color: var(--ae-hero-muted);
	font-size: 10px;
	font-weight: 700;
}

body.home .ae-home-hero__progress {
	height: 3px;
	overflow: hidden;
	flex: 1;
	background: #e5eee8;
	border-radius: 999px;
}

body.home .ae-home-hero__progress span {
	width: 50%;
	height: 100%;
	display: block;
	background: var(--ae-hero-brand);
	border-radius: inherit;
	transition: width 0.3s ease;
}

@media (max-width: 900px) {
	body.home .ae-home-hero__inner {
		min-height: 0;
		padding: 46px 0 40px;
		grid-template-columns: 1fr;
	}

	body.home .ae-home-hero__copy {
		max-width: 720px;
	}

	body.home .ae-home-hero__carousel {
		width: min(600px, 100%);
		margin: auto;
	}

	body.home .ae-home-hero__carousel:not([data-ae-ready]) .ae-home-hero__product:nth-child(n + 3) {
		display: none;
	}
}

@media (max-width: 620px) {
	body.home .ae-home-hero__inner {
		width: calc(100% - 24px);
		padding: 34px 0 30px;
		gap: 0;
	}

	/*
	 * Sur mobile, les enfants du texte rejoignent la grille principale afin
	 * de placer les Top ventes entre l'introduction et les boutons.
	 */
	body.home .ae-home-hero__copy {
		display: contents;
	}

	body.home .ae-home-hero__eyebrow {
		order: 1;
		margin-bottom: 13px;
		font-size: 10px;
	}

	body.home .ae-home-hero h1 {
		order: 2;
		margin-bottom: 15px;
		font-size: clamp(2.05rem, 11vw, 3rem);
	}

	body.home .ae-home-hero__lead {
		order: 3;
		margin-bottom: 21px;
		font-size: 14px;
	}

	body.home .ae-home-hero__actions {
		order: 4;
		margin-bottom: 22px;
		display: grid;
		grid-template-columns: 1fr;
	}

	body.home .ae-home-hero__button {
		width: 100%;
	}

	body.home .ae-home-hero__social-proof {
		width: 100%;
		margin: 0;
	}

	body.home .ae-home-hero__proof-row {
		order: 6;
		margin-bottom: 17px;
		grid-template-columns: 1fr;
	}

	body.home .ae-home-hero__proof-row .ae-home-hero__button {
		order: -1;
	}

	body.home .ae-home-hero__trust {
		order: 7;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	body.home .ae-home-hero__carousel {
		order: 5;
		width: 100%;
		margin: 0 0 22px;
		padding: 12px;
		border-radius: 20px;
	}

	body.home .ae-home-hero__carousel-head h2 {
		font-size: 16px;
	}

	body.home .ae-home-hero__controls button {
		width: 32px;
		height: 32px;
	}

	body.home .ae-home-hero__products {
		min-height: 360px;
	}

	body.home .ae-home-hero__carousel:not([data-ae-ready]) .ae-home-hero__product:nth-child(n + 2) {
		display: none;
	}

	body.home .ae-home-hero__product-image {
		height: 255px;
	}

	body.home .ae-home-hero__product h3 {
		font-size: 13px;
	}

	body.home .ae-home-hero__product-category {
		font-size: 10px;
	}

	body.home .ae-home-hero__price,
	body.home .ae-home-hero__price .amount,
	body.home .ae-home-hero__price ins {
		font-size: 15px;
	}
}

@media (max-width: 380px) {
	body.home .ae-home-hero__trust {
		grid-template-columns: 1fr;
	}

	body.home .ae-home-hero h1 {
		font-size: 2rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.home .ae-home-hero__carousel,
	body.home .ae-home-hero__product {
		animation: none;
	}

	body.home .ae-home-hero__button,
	body.home .ae-home-hero__product,
	body.home .ae-home-hero__product-image img,
	body.home .ae-home-hero__progress span {
		transition: none;
	}
}
