/* [Mission 2026-10] Bandeau de l'accueil (structure piste A, typo actuelle du site).
   Source : clients\Dardenne\_build\theme\dardenne\css\bandeau-accueil.css */

/* Revolution Slider masque des que le bandeau est la (on le supprime apres validation) */
body.avec-bandeau .vc_row:has(rs-module-wrap),
body.avec-bandeau .vc_row:has(rs-module-wrap) + .vc_row-full-width { display: none; }
/* La rangee suivante commence par un espace de 60 px : 24 px suffisent sous le bandeau */
body.avec-bandeau #misenavant .wpb_wrapper > .vc_empty_space:first-child { height: 24px !important; }

.bandeau-accueil {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-bottom: 0;
	background: #f6f3ef;
}
.bandeau-accueil__piste { display: grid; }
/* Hauteur : environ les deux tiers de l'ecran (l'ecran moins l'en-tete et ~160 px de la suite,
   qu'on voit toujours), sans passer sous 420 px ni depasser 680 px ou la moitie de la largeur. */
.bandeau-accueil__slide {
	grid-area: 1 / 1;
	position: relative;
	height: clamp(420px, min(calc(100vh - 300px), 50vw), 680px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .7s ease, visibility 0s linear .7s;
}
.bandeau-accueil__slide.est-active { opacity: 1; visibility: visible; transition: opacity .7s ease; }

.bandeau-accueil__photo { position: absolute; inset: 0; overflow: hidden; }
.bandeau-accueil__photo picture { display: block; width: 100%; height: 100%; }
.bandeau-accueil__photo img,
.bandeau-accueil__image { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }

.bandeau-accueil__cartouche {
	position: absolute;
	top: 50%;
	left: 6%;
	transform: translateY(-50%);
	box-sizing: border-box;
	width: min(470px, 42%);
	padding: 46px 50px 50px;
	background: rgba(255, 255, 255, .96);
	color: #000;
}
.bandeau-accueil__slide--droite .bandeau-accueil__cartouche { left: auto; right: 6%; }

.bandeau-accueil .bandeau-accueil__surtitre {
	margin: 0 0 14px;
	/* Typo maison (retour de Diane, 27/10 : "on dirait pas nos typos") : Klinic en minuscules,
	   sans espacement, comme les titres du site. Ancienne version en capitales : _build/theme/versions/. */
	font-family: "KlinicBook", serif;
	font-size: 20px;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	color: #333;
}
.bandeau-accueil .bandeau-accueil__titre {
	margin: 0 0 18px;
	padding: 0;
	font-family: "KlinicMedium", serif; /* gras garde, taille reduite a 36 px (Rodolphe, 27/10) */
	font-size: 36px;
	font-weight: normal;
	line-height: 1.15;
	letter-spacing: .04em;
	text-transform: uppercase; /* le titre du bandeau en majuscules (Rodolphe, 27/10) ; surtitre, texte et bouton en minuscules */
	color: #000;
}
.bandeau-accueil .bandeau-accueil__texte {
	margin: 0 0 30px;
	font-family: "RobotoLight", sans-serif;
	font-size: 17px;
	line-height: 1.5;
	color: #222;
}
.bandeau-accueil .bandeau-accueil__bouton {
	display: inline-block;
	padding: 15px 30px 14px;
	background: #000;
	color: #fff;
	font-family: "KlinicMedium", serif;
	font-size: 18px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	transition: background-color .2s ease;
}
.bandeau-accueil .bandeau-accueil__bouton:hover,
.bandeau-accueil .bandeau-accueil__bouton:focus-visible { background: #333; color: #fff; }

/* Points de navigation, sur la photo */
.bandeau-accueil__points {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 20px;
	display: flex;
	justify-content: center;
	gap: 10px;
	z-index: 2;
}
.bandeau-accueil__points {
	/* points plus visibles (Rodolphe, 27/10) : une pastille sombre discrete derriere */
	left: 50%;
	right: auto;
	transform: translateX(-50%);
	width: auto;
	padding: 8px 12px;
	border-radius: 20px;
	background: rgba(0, 0, 0, .28);
}
.bandeau-accueil__point {
	width: 12px;
	height: 12px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}
.bandeau-accueil__point.est-actif { background: #fff; }

/* Mobile : la photo en haut, le cartouche dessous, rien de rogne */
@media (max-width: 767px) {
	.bandeau-accueil { margin-bottom: 24px; }
	.bandeau-accueil__slide { height: auto; }
	.bandeau-accueil__photo { position: relative; aspect-ratio: 4 / 3; }
	.bandeau-accueil__cartouche,
	.bandeau-accueil__slide--droite .bandeau-accueil__cartouche {
		position: static;
		transform: none;
		width: auto;
		padding: 22px 20px 44px;
		background: #fff;
	}
	/* Petits ecrans : rien sous 13 px, texte plus fonce (retour de Diane, 27/10) */
	.bandeau-accueil .bandeau-accueil__surtitre { margin-bottom: 6px; font-size: 17px; }
	.bandeau-accueil .bandeau-accueil__titre { margin-bottom: 10px; font-size: 26px; }
	.bandeau-accueil .bandeau-accueil__texte { margin-bottom: 18px; font-size: 16px; line-height: 1.45; color: #222; }
	.bandeau-accueil .bandeau-accueil__bouton { font-size: 17px; padding: 16px 20px 15px; }
	.bandeau-accueil .bandeau-accueil__bouton { display: block; text-align: center; }
	/* Mobile : les points sur le bas de la photo (4/3 de la largeur), pas sous le bouton */
	.bandeau-accueil__points { top: calc(75vw - 40px); bottom: auto; }
}

@media (prefers-reduced-motion: reduce) {
	.bandeau-accueil__slide, .bandeau-accueil__slide.est-active { transition: none; }
}

/* Textes verticaux "Decouvrez Dardenne" et "Notre musee" (menus fixes du theme) : masques sur
   l'accueil, ils passaient sur le bandeau et sont deja dans le menu (Rodolphe, 27/10). */
.home .decouvrir, .home .musee { display: none !important; }

/* "Les preferes de nos clients" (accueil seulement) : le style du site ne change pas (Rodolphe,
   27/10 : pas de refonte des cartes). On montre 5 produits sur ordinateur, sur une rangee plus large.
   Essai des cartes beiges ecarte : _build/theme/versions/2026-10-27-cartes-beiges.css */
.home .vc_row:has(ul.products) .wpb_text_column h2 { text-align: center; }
@media (min-width: 1100px) {
	.home .vc_row:has(ul.products) .woocommerce {
		width: min(1640px, 94vw);
		margin-left: calc(50% - min(820px, 47vw));
	}
	.home ul.products { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
	.home ul.products::before, .home ul.products::after { display: none; }
	.home ul.products li.product { width: auto !important; max-width: none !important; margin: 0 !important; float: none; flex: none; }
}
/* En dessous, 4 par ligne (2 sur mobile) : le 5e produit ferait une ligne a lui seul */
@media (max-width: 1099px) {
	.home ul.products li.product:nth-child(5) { display: none; }
}

/* [Mission 2026-11] Titre de l'accueil (h1) sous le bandeau (13/11) : une signature discrete entre deux
   filets, en petites capitales espacees ; "Les favoris de nos clients" reste le vrai titre visuel.
   Il porte la requete "chocolat dardenne" ; le bandeau garde ses h2. Premiere version (titre + phrase) :
   _build/theme/versions/2026-11-13-avant-h1-accueil/ pour l'avant, rien de plus a garder. */
.accueil-titre {
	display: flex;
	align-items: center;
	gap: 22px;
	max-width: 1100px;
	margin: 36px auto 0;
	padding: 0 16px;
}
.accueil-titre::before, .accueil-titre::after { content: ""; flex: 1 1 40px; height: 1px; background: #d8d0c4; }
.accueil-titre .accueil-titre__h1 {
	flex: 0 1 auto;
	margin: 0;
	font-family: "KlinicBook", serif;
	font-size: 14px;
	font-weight: normal;
	line-height: 1.5;
	letter-spacing: .16em;
	text-transform: uppercase;
	text-align: center;
	color: #5a4a3c;
}
@media (max-width: 767px) {
	/* le fond beige du bandeau passait sous le message le plus court : blanc comme le cartouche */
	.bandeau-accueil { background: #fff; margin-bottom: 0; }
	.accueil-titre { gap: 14px; margin: 8px auto 0; }
	.accueil-titre::before, .accueil-titre::after { flex-basis: 20px; }
	.accueil-titre .accueil-titre__h1 { font-size: 13px; letter-spacing: .12em; max-width: 280px; }
}

/* [Mission 2026-11] Black Friday (inc/bandeau-accueil.php, modeles 'bf-typo' et 'bf-photo'), sobre : la typo du site
   (Klinic, Roboto Light), les couleurs des newsletters (cacao #231510, or #B8924F, creme #F7F1E8), les trois sommets.
   16/11 (Rodolphe : "ca ne ressort pas assez") : le taux en Klinic Medium, en grand ; "sur tout le site" en capitales. */
.bandeau-accueil__slide--bf-typo,
.bandeau-accueil__slide--bf-photo { background: #231510; color: #fff; }
.bandeau-accueil__slide--bf-typo { height: clamp(400px, 34vw, 520px); display: flex; align-items: center; justify-content: center; }
.bandeau-accueil__slide--bf-typo .bandeau-bf { text-align: center; padding: 0 24px; }
/* 16/11 (Rodolphe : le faux bois floute, non) : coupe nette en deux moities. A gauche l'aplat cacao et le texte,
   a droite la photo dans son cadre, sans fondu. */
.bandeau-accueil__slide--bf-photo .bandeau-bf { position: absolute; top: 50%; left: 25%; transform: translate(-50%, -50%); width: max-content; max-width: 42%; text-align: left; } /* centre dans la moitie gauche (16/11) */
.bandeau-accueil__slide--bf-photo .bandeau-accueil__photo { left: 50%; }
.bandeau-accueil__slide--bf-photo .bandeau-accueil__photo img { object-position: center 45%; } /* 16/11 : photo regeneree, coffret au centre */
/* 16/11 : "Black Friday" plus gros et plus gras ; le picto suit sa taille (--bf-sur) */
.bandeau-bf { --bf-sur: 32px; }
.bandeau-bf__sommets { display: block; width: calc(var(--bf-sur) * 2.6); height: auto; color: #C9A35C; margin: 0 0 calc(var(--bf-sur) * .45); }
.bandeau-accueil__slide--bf-typo .bandeau-bf__sommets { margin: 0 auto 18px; }
.bandeau-accueil .bandeau-bf__surtitre {
	margin: 0 0 6px; font-family: "KlinicMedium", serif; font-size: var(--bf-sur); line-height: 1.1;
	letter-spacing: .14em; text-transform: uppercase; color: #E2C792;
}
.bandeau-accueil .bandeau-bf__titre { margin: 0; padding: 0; font-weight: normal; line-height: 1; text-transform: none; color: #fff; }
.bandeau-accueil .bandeau-bf__taux {
	display: block; font-family: "KlinicMedium", serif; font-size: clamp(88px, 8.4vw, 128px);
	line-height: 1; letter-spacing: -.01em; white-space: nowrap; color: #fff;
}
.bandeau-accueil .bandeau-bf__sur {
	display: block; margin-top: 2px; font-family: "KlinicMedium", serif; font-size: clamp(24px, 2.3vw, 34px);
	line-height: 1.15; letter-spacing: .08em; text-transform: uppercase; color: #fff;
}
.bandeau-accueil .bandeau-bf__texte {
	margin: 18px 0 30px; font-family: "RobotoLight", sans-serif; font-size: 18px; line-height: 1.5; color: #EADFD1;
}
.bandeau-accueil .bandeau-bf__bouton {
	display: inline-block; padding: 20px 40px; background: #C9A35C; color: #231510;
	font-family: "KlinicMedium", serif; font-size: 18px; line-height: 1; letter-spacing: .08em; text-transform: uppercase;
	text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: background .2s ease;
}
.bandeau-accueil .bandeau-bf__bouton:hover,
.bandeau-accueil .bandeau-bf__bouton:focus-visible { background: #E2C792; color: #231510; }
@media (max-width: 767px) {
	.bandeau-accueil__slide--bf-typo { height: auto; padding: 50px 0 54px; }
	.bandeau-accueil__slide--bf-photo { height: auto; }
	.bandeau-accueil__slide--bf-photo .bandeau-accueil__photo { position: relative; left: auto; aspect-ratio: 4 / 3; }
	.bandeau-accueil__slide--bf-photo .bandeau-accueil__photo img { object-position: center; }
	.bandeau-accueil__slide--bf-photo .bandeau-bf { position: static; transform: none; width: auto; max-width: none; padding: 30px 22px 38px; }
	.bandeau-bf { --bf-sur: 24px; }
	.bandeau-accueil .bandeau-bf__taux { font-size: 84px; }
	.bandeau-accueil .bandeau-bf__sur { font-size: 23px; }
	.bandeau-accueil .bandeau-bf__texte { font-size: 16px; margin: 14px 0 24px; }
	.bandeau-accueil .bandeau-bf__bouton { display: block; text-align: center; padding: 18px 20px; }
}

/* 16/11 : 3e version, 'bf-premium' (Rodolphe : "plus premium"). Une seule image pleine largeur (les vrais coffrets
   detoures sur fond cacao, _build/theme/composer_premium.py) ; le texte dans le vide a gauche, plus d'air, une typo
   qui murmure : taux en Klinic Book, "Black Friday" petit et espace, filet or fin, bouton au contour or. */
.bandeau-accueil__slide--bf-premium { background: #231510; color: #fff; }
.bandeau-accueil__slide--bf-premium .bandeau-accueil__photo img { object-position: right center; }
.bandeau-accueil__slide--bf-premium .bandeau-bf { position: absolute; top: 50%; left: 9%; transform: translateY(-50%); width: min(520px, 40%); text-align: left; --bf-sur: 15px; }
.bandeau-accueil__slide--bf-premium .bandeau-bf__sommets { width: 88px; margin-bottom: 18px; color: #D4AF6A; }
.bandeau-accueil__slide--bf-premium .bandeau-bf__sommets polyline { stroke-width: 1.9; } /* 16/11 : plus lisible (Rodolphe) */
.bandeau-accueil .bandeau-accueil__slide--bf-premium .bandeau-bf__surtitre { font-family: "KlinicMedium", serif; font-size: 24px; letter-spacing: .3em; color: #E2C792; margin-bottom: 16px; }
.bandeau-accueil .bandeau-accueil__slide--bf-premium .bandeau-bf__taux { font-family: "KlinicBook", serif; font-size: clamp(84px, 7.6vw, 120px); letter-spacing: -.02em; }
.bandeau-accueil .bandeau-accueil__slide--bf-premium .bandeau-bf__sur { font-family: "KlinicMedium", serif; font-size: clamp(20px, 1.8vw, 27px); letter-spacing: .22em; margin-top: 8px; color: #fff; }
.bandeau-accueil .bandeau-accueil__slide--bf-premium .bandeau-bf__texte {
	margin: 26px 0 34px; padding-top: 22px; border-top: 1px solid rgba(201,163,92,.55); width: 64px; white-space: nowrap;
	font-size: 18px; letter-spacing: .03em; color: #EADFD1;
}
.bandeau-accueil .bandeau-accueil__slide--bf-premium .bandeau-bf__bouton {
	padding: 18px 36px; background: transparent; color: #E2C792; border: 2px solid #C9A35C; box-shadow: none;
	font-size: 16px; letter-spacing: .18em; transition: background .25s ease, color .25s ease;
}
.bandeau-accueil .bandeau-accueil__slide--bf-premium .bandeau-bf__bouton:hover,
.bandeau-accueil .bandeau-accueil__slide--bf-premium .bandeau-bf__bouton:focus-visible { background: #C9A35C; color: #231510; }
@media (max-width: 767px) {
	.bandeau-accueil__slide--bf-premium { height: auto; }
	.bandeau-accueil__slide--bf-premium .bandeau-accueil__photo { position: relative; aspect-ratio: 4 / 3; }
	.bandeau-accueil__slide--bf-premium .bandeau-accueil__photo img { object-position: center; }
	.bandeau-accueil__slide--bf-premium .bandeau-bf { position: static; transform: none; width: auto; padding: 8px 24px 44px; }
	.bandeau-accueil .bandeau-accueil__slide--bf-premium .bandeau-bf__taux { font-size: 80px; }
	.bandeau-accueil .bandeau-accueil__slide--bf-premium .bandeau-bf__surtitre { font-size: 20px; letter-spacing: .24em; }
	.bandeau-accueil__slide--bf-premium .bandeau-bf__sommets { width: 72px; }
	.bandeau-accueil .bandeau-accueil__slide--bf-premium .bandeau-bf__sur { font-size: 19px; letter-spacing: .16em; }
	.bandeau-accueil .bandeau-accueil__slide--bf-premium .bandeau-bf__bouton { display: block; text-align: center; padding: 17px 20px; }
}

/* 16/11 (Rodolphe) : sur telephone, le bouton de la banniere photo doit tenir dans le premier ecran (~660 px utiles) :
   photo un peu moins haute (16:10, du bois en moins en haut et en bas), espacements resserres ; la date reste. */
@media (max-width: 767px) {
	.bandeau-accueil__slide--bf-photo .bandeau-accueil__photo { aspect-ratio: 16 / 10; }
	.bandeau-accueil__slide--bf-photo .bandeau-accueil__photo img { object-position: center 55%; }
	.bandeau-accueil__slide--bf-photo .bandeau-bf { padding: 18px 22px 26px; }
	.bandeau-accueil__slide--bf-photo .bandeau-bf__sommets { margin-bottom: 6px; }
	.bandeau-accueil .bandeau-accueil__slide--bf-photo .bandeau-bf__surtitre { margin-bottom: 2px; }
	.bandeau-accueil .bandeau-accueil__slide--bf-photo .bandeau-bf__taux { font-size: 76px; }
	.bandeau-accueil .bandeau-accueil__slide--bf-photo .bandeau-bf__texte { margin: 8px 0 16px; }
}

/* 16/11 (Rodolphe) : le texte du bouton en Klinic Bold, plus gras */
.bandeau-accueil .bandeau-accueil__slide--bf-photo .bandeau-bf__bouton,
.bandeau-accueil .bandeau-accueil__slide--bf-typo .bandeau-bf__bouton { font-family: "KlinicBold", serif; }

/* 18/11 (Rodolphe) : toute la banniere Black Friday est cliquable. Un lien invisible couvre la diapositive ;
   le cartouche passe au-dessus sans capter les clics, sauf le bouton. Sur mobile le cartouche est statique :
   position relative pour que son z-index compte. */
.bandeau-bf__zone { position: absolute; inset: 0; z-index: 1; }
.bandeau-accueil__slide .bandeau-bf { z-index: 2; pointer-events: none; }
.bandeau-accueil__slide .bandeau-bf__bouton { pointer-events: auto; }
.bandeau-accueil__slide--bf-typo .bandeau-bf { position: relative; }
@media (max-width: 767px) {
	.bandeau-accueil__slide--bf-photo .bandeau-bf,
	.bandeau-accueil__slide--bf-premium .bandeau-bf { position: relative; top: auto; left: auto; } /* sans les decalages du bureau */
}
