/*
 * Refonte des sections de l'Accueil — 2026-09-24 (retour owner : « le design
 * des sections est moche »).
 *
 * Chargée APRÈS bebe-nova.css et bebe-nova-laste.css : elle ne fait que
 * reprendre la présentation, jamais le contenu. Les choix de l'owner déjà
 * écrits dans functions.php restent tenus : pas de texte dans le héro ni dans
 * « Notre histoire » (4 micro-libellés seulement).
 *
 * Fil conducteur : la NUIT du héro. Le croissant devient l'ornement des
 * titres, et la bande de réassurance reprend le ciel nocturne pour rythmer la
 * page (clair → nuit → clair) au lieu d'une suite de fonds lavande identiques.
 *
 * Supprimer ce fichier (et son enqueue) rend exactement le rendu d'avant.
 */

:root {
	--bn-night: #14122B;
	--bn-indigo: #3B3FA8;
	--bn-mist: #F1F0FA;
	--bn-card-r: 20px;
}

/* ─────────────────────────────────────────── Titres de section : croissant ── */

.aod-home__h2 {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.15;
	padding-block-end: 0;
	margin-block-end: clamp(1.75rem, 4vw, 2.75rem);
}
.aod-home__h2::before {
	content: "";
	display: block;
	inline-size: 22px;
	block-size: 22px;
	margin: 0 auto 0.85rem;
	background: var(--bn-indigo);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 2.5A9.5 9.5 0 1 0 21.5 17 7.5 7.5 0 0 1 15 2.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 2.5A9.5 9.5 0 1 0 21.5 17 7.5 7.5 0 0 1 15 2.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.aod-home__h2::after,
.bn-visible.aod-home__h2::after,
.aod-home__section:has(li.product-category) .aod-home__h2::after {
	display: none !important;
}
/* Le titre de la carte Contact garde son filet d'origine, aligné à gauche. */
.aod-contact__details .aod-home__h2 {
	font-size: clamp(1.5rem, 3.6vw, 2rem);
	margin-block-end: 1rem;
}
.aod-contact__details .aod-home__h2::before {
	display: none;
}

/* ────────────────────────────────────── Notre histoire : image + 4 piliers ── */

.bn-story {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
	max-width: 1120px;
	padding-inline: 1.25rem;
}
@media (min-width: 860px) {
	.bn-story {
		grid-template-columns: 1.1fr 1fr;
	}
}
.bn-feature {
	inline-size: 100%;
	margin: 0;
	animation: none;
}
.bn-feature__glow {
	display: none;
}
.bn-feature__img {
	border: 0;
	border-radius: 24px;
	transform: none;
	box-shadow: 0 30px 60px -30px rgba(20, 18, 43, .45);
}
.bn-feature:hover .bn-feature__img {
	transform: none;
}

.bn-pillars {
	grid-template-columns: 1fr 1fr !important;
	gap: 0.9rem;
}
.bn-pillar {
	flex-direction: row;
	align-items: center;
	gap: 0.9rem;
	text-align: start;
	padding: 1.1rem 1rem;
	background: var(--cd-card);
	border: 1px solid var(--cd-line);
	border-radius: 16px;
	animation: none;
	transition: border-color .3s var(--cd-ease-out), box-shadow .3s var(--cd-ease-out);
}
.bn-pillar:hover {
	border-color: rgba(59, 63, 168, .35);
	box-shadow: 0 14px 28px -20px rgba(20, 18, 43, .4);
}
.bn-pillar__orb {
	flex: none;
	inline-size: 52px;
	block-size: 52px;
	background: var(--bn-mist);
	box-shadow: none;
	color: var(--bn-indigo);
}
.bn-pillar__orb::before {
	display: none;
}
.bn-pillar:hover .bn-pillar__orb {
	transform: none;
}
.bn-pillar__orb svg {
	inline-size: 55%;
	block-size: 55%;
}
.bn-pillar__label {
	font-family: var(--bn-font-serif);
	font-weight: 500;
	font-size: clamp(1rem, 1.6vw, 1.15rem);
	letter-spacing: 0;
	line-height: 1.25;
}
@media (max-width: 480px) {
	.bn-pillar {
		flex-direction: column;
		text-align: center;
		gap: 0.6rem;
		padding: 1rem 0.6rem;
	}
	.bn-pillar__orb {
		inline-size: 46px;
		block-size: 46px;
	}
}

/* ───────────────────────────────────────── Cartes : produits & catégories ── */

.woocommerce ul.products li.product {
	padding: 0;
	overflow: hidden;
	border-radius: var(--bn-card-r);
	border-color: rgba(20, 18, 43, .08);
	box-shadow: 0 1px 2px rgba(20, 18, 43, .05);
}
.woocommerce ul.products li.product:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 44px -26px rgba(20, 18, 43, .45);
	border-color: rgba(20, 18, 43, .08);
}

/* Vignette bord à bord. Le filet gris sous la photo était la marge basse
   que WooCommerce pose sur `li.product a img`, peinte par le fond du cadre. */
.woocommerce ul.products li.product .bn-shop-thumb {
	border-radius: 0;
	margin: 0;
	background: var(--bn-mist);
}
.woocommerce ul.products li.product .bn-shop-thumb img,
.woocommerce ul.products li.product a img {
	margin: 0 !important;
	display: block;
}

.woocommerce ul.products li.product .bn-product-category {
	display: block;
	margin: 1rem 1rem 0.35rem;
	padding: 0;
	background: none;
	border-radius: 0;
	font-size: 0.66rem;
	letter-spacing: 0.12em;
	color: var(--bn-indigo);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	padding: 0 1rem !important;
	margin-block-end: 0.5rem;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.woocommerce ul.products li.product .price {
	display: block;
	padding: 0 1rem;
	margin-block-end: 1rem;
	font-family: var(--bn-font-serif);
	font-weight: 600;
	font-size: 1.2rem;
	color: var(--bn-night);
}
.woocommerce ul.products li.product .button {
	align-self: stretch;
	margin: auto 1rem 1rem !important;
	text-align: center;
	justify-content: center;
	padding-block: 0.75rem;
	font-size: 0.8rem;
	letter-spacing: 0.1em;
}

/* Catégories — même carte, sans l'appel en pilule qui respirait : le nom et
   un lien discret suffisent, toute la carte est déjà cliquable. */
.woocommerce ul.products li.product-category {
	padding: 0 0 1.25rem;
}
.woocommerce ul.products li.product-category a img {
	margin: 0 0 1rem !important;
	border-radius: 0;
	background: var(--bn-mist);
}
.woocommerce ul.products li.product-category:hover a img {
	transform: scale(1.04);
}
.woocommerce ul.products li.product-category .woocommerce-loop-category__title {
	padding-inline: 0.75rem !important;
	margin-block-end: 0.75rem !important;
	font-weight: 500;
	font-size: 1.15rem;
	line-height: 1.25;
}
.woocommerce ul.products li.product-category .woocommerce-loop-category__title::after {
	display: none;
}
/* Lien calé en bas de carte : un nom sur deux lignes ne décale plus la rangée. */
.woocommerce ul.products li.product-category > a {
	flex: 1;
}
.woocommerce ul.products li.product-category .bn-cat-cta {
	margin-block-start: auto;
	padding: 0.25rem 0;
	background: none;
	box-shadow: none;
	color: var(--bn-indigo);
	border-radius: 0;
	border-block-end: 1px solid currentColor;
	animation: none;
}
.woocommerce ul.products li.product-category .bn-cat-cta::before {
	display: none;
}

/* Mobile : deux cartes par rangée au lieu d'une (4 000 px de défilement
   pour 7 produits avant). Vaut pour l'Accueil ET la Boutique. */
@media (max-width: 600px) {
	.woocommerce ul.products:not(:has(> li.product-category)),
	.woocommerce ul.products:has(> li.product-category) {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 0.75rem !important;
	}
	.woocommerce ul.products li.product .bn-product-category {
		margin: 0.75rem 0.75rem 0.25rem;
		font-size: 0.6rem;
		letter-spacing: 0.08em;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.woocommerce ul.products li.product .woocommerce-loop-product__title {
		padding: 0 0.75rem !important;
		font-size: 0.88rem;
	}
	.woocommerce ul.products li.product .price {
		padding: 0 0.75rem;
		font-size: 1.05rem;
		margin-block-end: 0.75rem;
	}
	.woocommerce ul.products li.product .button {
		margin: auto 0.75rem 0.75rem !important;
		padding: 0.6rem 0.5rem;
		font-size: 0.72rem;
		letter-spacing: 0.06em;
	}
	.woocommerce ul.products li.product-category .woocommerce-loop-category__title {
		font-size: 1rem;
	}
	.woocommerce ul.products li.product-category .bn-cat-cta {
		font-size: 0.66rem;
	}
}

/* ─────────────────────────────────────────── Réassurance : bande de nuit ── */

.aod-home__reassure {
	display: grid !important;
	grid-template-columns: 1fr;
	gap: 0 !important;
	padding-block: clamp(2.5rem, 7vw, 4rem) !important;
	background: transparent !important;
	color: #fff;
}
@media (min-width: 768px) {
	.aod-home__reassure {
		grid-template-columns: repeat(3, 1fr);
	}
}
.aod-home__reassure::before {
	animation: none;
	background:
		radial-gradient(1px 1px at 12% 30%, rgba(255, 255, 255, .7), transparent 60%),
		radial-gradient(1px 1px at 34% 78%, rgba(255, 255, 255, .5), transparent 60%),
		radial-gradient(1.5px 1.5px at 58% 22%, rgba(255, 255, 255, .6), transparent 60%),
		radial-gradient(1px 1px at 81% 64%, rgba(255, 255, 255, .55), transparent 60%),
		radial-gradient(1.5px 1.5px at 92% 18%, rgba(255, 255, 255, .5), transparent 60%),
		radial-gradient(700px circle at 50% 120%, rgba(59, 63, 168, .55), transparent 70%),
		var(--bn-night);
	background-size: auto;
}
.aod-home__reassure::after {
	display: none;
}
.aod-home__promise {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 1.5rem clamp(1rem, 3vw, 2rem);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.aod-home__promise + .aod-home__promise {
	border-block-start: 1px solid rgba(255, 255, 255, .12);
}
@media (min-width: 768px) {
	.aod-home__promise + .aod-home__promise {
		border-block-start: 0;
		border-inline-start: 1px solid rgba(255, 255, 255, .12);
	}
}
.aod-home__promise:hover {
	transform: none;
	box-shadow: none;
}
.aod-home__promise::after {
	display: none !important;
}
.aod-home__ico {
	inline-size: 64px;
	block-size: 64px;
	margin: 0 auto 1rem;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .2);
}
.aod-home__ico::before {
	display: none;
}
.aod-home__promise h3 {
	color: #fff;
	font-weight: 500;
	font-size: 1.2rem;
	margin-block-end: 0.4rem;
}
.aod-home__promise h3::after {
	display: none;
}
.aod-home__promise p {
	color: rgba(255, 255, 255, .72);
	max-inline-size: 30ch;
	margin-inline: auto;
	font-size: 0.92rem;
	line-height: 1.6;
}

/* Mobile : icône à côté du texte plutôt qu'au-dessus — la bande passe
   d'environ 770 px à moins de la moitié, sans rien retirer. */
@media (max-width: 767px) {
	.aod-home__promise {
		display: grid;
		grid-template-columns: 52px 1fr;
		column-gap: 1rem;
		align-items: start;
		text-align: start;
		padding: 1.25rem 0.5rem;
	}
	.aod-home__ico {
		grid-row: span 2;
		inline-size: 52px;
		block-size: 52px;
		margin: 0;
	}
	.aod-home__promise h3 {
		font-size: 1.05rem;
		margin-block: 0.1rem 0.25rem;
	}
	.aod-home__promise p {
		margin: 0;
		max-inline-size: none;
		font-size: 0.86rem;
	}
}

/* ═════════════════════════════════ Grilles produits & catégories : animation ═ */

/* Le croissant des titres se balance doucement — le seul mouvement continu. */
@keyframes bn-moon-rock {
	0%, 100% { transform: rotate(-14deg); }
	50%      { transform: rotate(10deg); }
}
.aod-home__h2::before {
	animation: bn-moon-rock 6s ease-in-out infinite;
}

/* ── Entrée : les cartes montent en cascade, la photo se dévoile ensuite.
   Masquage conditionné à `html.bn-grid-anim` (posée par bn-grid-anim.js
   seulement) : sans JS, rien n'est jamais caché. Remplit en `backwards`,
   jamais `both` : une fois jouée, l'animation rend la main au `transform` du
   survol au lieu de le figer. */
@keyframes bn-card-rise {
	from { opacity: 0; transform: translateY(36px) scale(.94); }
	to   { opacity: 1; transform: none; }
}
@keyframes bn-card-unveil {
	from { clip-path: inset(0 0 100% 0); transform: scale(1.15); }
	to   { clip-path: inset(0 0 0 0);    transform: scale(1); }
}
html.bn-grid-anim .woocommerce ul.products:not(.bn-grid-in) > li {
	opacity: 0;
}
/* Neutralise l'entrée CSS des catégories (bebe-nova.css) : elle se jouait au
   chargement, hors écran, donc pour personne. */
html.bn-grid-anim .woocommerce ul.products > li.product-category {
	animation: none;
}
html.bn-grid-anim .woocommerce ul.products.bn-grid-in > li {
	animation: bn-card-rise .8s cubic-bezier(.22, 1, .36, 1) backwards;
	animation-delay: calc(min(var(--bn-i, 0), 8) * 90ms);
}
html.bn-grid-anim .woocommerce ul.products.bn-grid-in > li .bn-shop-thumb img,
html.bn-grid-anim .woocommerce ul.products.bn-grid-in > li.product-category a img {
	animation: bn-card-unveil 1.1s cubic-bezier(.65, 0, .35, 1) backwards;
	animation-delay: calc(min(var(--bn-i, 0), 8) * 90ms + 180ms);
}

/* ── Survol (souris uniquement) ── */
@media (hover: hover) {
	.woocommerce ul.products li.product:hover {
		transform: translateY(-8px);
		box-shadow: 0 0 0 1px rgba(59, 63, 168, .22),
		            0 28px 50px -26px rgba(20, 18, 43, .5);
	}
	.woocommerce ul.products li.product img,
	.woocommerce ul.products li.product-category a img {
		transition: transform .9s cubic-bezier(.22, 1, .36, 1);
	}
	.woocommerce ul.products li.product:hover .bn-shop-thumb img,
	.woocommerce ul.products li.product-category:hover a img {
		transform: scale(1.08);
	}

	/* Reflet de lumière qui balaie la photo — un éclat de lune sur le verre. */
	.woocommerce ul.products li.product .bn-shop-thumb::after,
	.woocommerce ul.products li.product-category::after {
		content: "";
		position: absolute;
		inset-block-start: 0;
		inset-inline-start: 0;
		inline-size: 100%;
		aspect-ratio: 1 / 1;
		z-index: 2;
		pointer-events: none;
		background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
		transform: translateX(-110%);
	}
	.woocommerce ul.products li.product-category {
		position: relative;
	}
	.woocommerce ul.products li.product:hover .bn-shop-thumb::after,
	.woocommerce ul.products li.product-category:hover::after {
		transform: translateX(110%);
		transition: transform .9s cubic-bezier(.22, 1, .36, 1);
	}

	/* « Commander » : une flèche glisse à côté du libellé. */
	.woocommerce ul.products li.product .button::after {
		content: "→";
		display: inline-block;
		margin-inline-start: 0;
		max-inline-size: 0;
		opacity: 0;
		overflow: hidden;
		transition: max-inline-size .35s var(--cd-ease-out),
		            margin .35s var(--cd-ease-out),
		            opacity .25s var(--cd-ease-out);
	}
	.woocommerce ul.products li.product:hover .button::after {
		max-inline-size: 1.2em;
		margin-inline-start: 0.5em;
		opacity: 1;
	}
	html[dir="rtl"] .woocommerce ul.products li.product .button::after {
		content: "←";
	}

	/* Catégorie : le nom passe à l'indigo, le soulignement du lien se dessine. */
	.woocommerce ul.products li.product-category .woocommerce-loop-category__title {
		transition: color .3s var(--cd-ease-out);
	}
	.woocommerce ul.products li.product-category:hover .woocommerce-loop-category__title {
		color: var(--bn-indigo);
	}
	.woocommerce ul.products li.product-category .bn-cat-cta {
		border-block-end-color: transparent;
		background: linear-gradient(currentColor, currentColor) bottom / 35% 1px no-repeat;
		transition: background-size .45s cubic-bezier(.22, 1, .36, 1);
	}
	.woocommerce ul.products li.product-category:hover .bn-cat-cta {
		background-size: 100% 1px;
		transform: none;
	}
}

/* ── Écran tactile : la carte s'enfonce sous le doigt. ── */
@media (hover: none) {
	.woocommerce ul.products li.product {
		transition: transform .2s var(--cd-ease-out);
	}
	.woocommerce ul.products li.product:active {
		transform: scale(.97);
	}
}

/* ─────────────────────────────────────────────────── Mouvement réduit ── */

@media (prefers-reduced-motion: reduce) {
	.bn-pillar,
	.woocommerce ul.products li.product,
	.woocommerce ul.products li.product img,
	.woocommerce ul.products li.product-category a img {
		transition: none !important;
	}
	.woocommerce ul.products li.product:hover,
	.woocommerce ul.products li.product:active,
	.woocommerce ul.products li.product:hover .bn-shop-thumb img,
	.woocommerce ul.products li.product-category:hover a img {
		transform: none !important;
	}
	.aod-home__h2::before {
		animation: none;
	}
	.woocommerce ul.products li.product .bn-shop-thumb::after,
	.woocommerce ul.products li.product-category::after {
		display: none;
	}
}
