/* ==========================================================================
   Grosbusch – template 3.
   Couche posée sur le template 2 (v2.css + pages.css) : bandeau de titre
   (fil d'Ariane, titre, phrase d'accroche, bulle) et blocs de l'accueil.
   Aucun texte n'est modifié : seuls la mise en page et les fonds changent.
   ========================================================================== */

:root {
	--gb-hero-a: #f9f8f1;
	--gb-hero-b: #eef5d4;
	--gb-hero-c: #fdefd6;
	--gb-hero-blob1: rgba(177, 201, 3, .28);
	--gb-hero-blob2: rgba(240, 132, 17, .22);
	--gb-hero-round: clamp(28px, 4vw, 52px);
}

/* ---------- Bandeau de titre ---------- */
.gb-v3 #content > header {
	position: relative;
	z-index: 0;
	overflow: hidden;
	isolation: isolate;
	min-height: 0;
	padding: 0 0 clamp(26px, 4vw, 46px) !important;
	margin-bottom: clamp(44px, 6vw, 84px);
	border-radius: 0 0 var(--gb-hero-round) var(--gb-hero-round);
	background: linear-gradient(135deg, var(--gb-hero-a) 0%, var(--gb-hero-b) 48%, var(--gb-hero-c) 100%) !important;
}
/* Photo de la page (celle du thème d'origine), fondue dans le dégradé */
.gb-v3 #content > header:before {
	content: "";
	position: absolute;
	z-index: 1;
	top: 0;
	right: 0;
	/* hauteur native des visuels d'origine (1920 x 466) : pas d'agrandissement */
	height: min(100%, 466px);
	width: clamp(300px, 54%, 1040px);
	background-image: var(--gb-hero, url(../../grosbusch/images/bg-header-empty.jpg));
	background-repeat: no-repeat;
	background-position: center right;
	background-size: cover;
	mix-blend-mode: multiply;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
	        mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
	transform: translate3d(0, calc(var(--gb-hero-shift, 0px) * -1), 0) scale(1.06);
	pointer-events: none;
}
/* Halos de couleur */
.gb-v3 #content > header:after {
	content: "";
	position: absolute;
	z-index: 0;
	inset: 0;
	background:
		radial-gradient(55% 120% at 8% 0%, var(--gb-hero-blob1), transparent 62%),
		radial-gradient(45% 110% at 92% 100%, var(--gb-hero-blob2), transparent 65%);
	pointer-events: none;
}
.gb-v3 #content > header > .container { position: relative; z-index: 2; }

/* Déclinaisons de couleur selon le bandeau d'origine (vert, orange, rouge, jaune) */
.gb-v3 #content > header:has(.stripe-gradient-orange) {
	--gb-hero-b: #ffeccd;
	--gb-hero-c: #ffe2bd;
	--gb-hero-blob1: rgba(240, 174, 17, .3);
	--gb-hero-blob2: rgba(240, 132, 17, .26);
}
.gb-v3 #content > header:has(.stripe-gradient-red) {
	--gb-hero-b: #ffe2e0;
	--gb-hero-c: #ffeede;
	--gb-hero-blob1: rgba(229, 16, 16, .16);
	--gb-hero-blob2: rgba(240, 132, 17, .2);
}
.gb-v3 #content > header:has(.stripe-gradient-yellow) {
	--gb-hero-b: #fdf3c8;
	--gb-hero-c: #fdeccd;
	--gb-hero-blob1: rgba(255, 204, 0, .3);
}

/* Fil d'Ariane en pastilles */
.gb-v3 .breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	padding: clamp(18px, 2.6vw, 30px) 0 0;
	font-size: 1rem;
}
.gb-v3 .breadcrumb li { display: inline-flex; align-items: center; }
.gb-v3 .breadcrumb li + li:before {
	content: "";
	width: 14px;
	height: 14px;
	margin: 0 2px;
	background: currentColor;
	color: #a8a89a;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%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' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gb-v3 .breadcrumb a, .gb-v3 .breadcrumb a:visited {
	display: inline-block;
	padding: 6px 13px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .68);
	-webkit-backdrop-filter: blur(6px);
	        backdrop-filter: blur(6px);
	color: var(--gb-muted) !important;
	font-family: var(--gb-head);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .01em;
	transition: background-color .25s var(--gb-ease), color .25s, transform .25s var(--gb-ease);
}
.gb-v3 .breadcrumb a:after { display: none; }
.gb-v3 .breadcrumb a:hover { background: #fff; color: var(--gb-ink) !important; transform: translateY(-1px); }
.gb-v3 .breadcrumb a.active { background: var(--gb-ink); color: #fff !important; }

/* Titre */
.gb-v3 #content > header h1.title {
	margin: clamp(16px, 2.2vw, 26px) 0 0;
	max-width: min(22ch, 54%);
	overflow-wrap: break-word;
	font-size: clamp(2.3rem, 1.3rem + 3.4vw, 4.1rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.035em;
}
/* Trait de couleur sous le titre */
.gb-v3 #content > header h1.title:after {
	content: "";
	display: block;
	width: clamp(90px, 12vw, 160px);
	height: 10px;
	margin-top: .34em;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--gb-lime), var(--gb-orange));
	transform-origin: left center;
}
@media (prefers-reduced-motion: no-preference) {
	.gb-v3 #content > header h1.title:after { animation: gbHeroBar .8s .15s var(--gb-ease) both; }
}
@keyframes gbHeroBar { from { transform: scaleX(0); } to { transform: none; } }
.gb-v3 #content > header .container > p {
	max-width: min(46ch, 52%);
	margin-top: 1.1em;
	font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
	line-height: 1.6;
	color: #3a3b31;
}

/* Phrase d'accroche : l'ancien bandeau pleine largeur devient une ligne du bandeau */
.gb-v3 #content > header .stripe,
.gb-v3 #content > header .stripe-gradient-green,
.gb-v3 #content > header .stripe-gradient-orange,
.gb-v3 #content > header .stripe-gradient-red,
.gb-v3 #content > header .stripe-gradient-yellow {
	position: relative;
	z-index: 2;
	min-height: 0;
	height: auto;
	padding: 0;
	margin: clamp(22px, 3vw, 34px) 0 0;
	background: none !important;
	box-shadow: none;
}
.gb-v3 #content > header .stripe .container { position: static; }
.gb-v3 #content > header .stripe p.text {
	position: relative;
	max-width: min(30ch, 52%);
	margin: 0;
	padding: 0 0 0 26px;
	color: var(--gb-ink) !important;
	font-size: clamp(1.45rem, 1rem + 1.7vw, 2.3rem);
	line-height: 1.16;
	text-shadow: none;
}
.gb-v3.de #content > header .stripe p.text { font-size: clamp(1.3rem, .95rem + 1.4vw, 2rem); }
.gb-v3 #content > header .stripe p.text:before {
	content: "";
	position: absolute;
	left: 0;
	top: .16em;
	bottom: .16em;
	width: 6px;
	border-radius: 6px;
	background: linear-gradient(180deg, var(--gb-lime), var(--gb-orange));
}
.gb-v3 #content > header .stripe p.text span { color: inherit; }

/* Bulle ronde (« Des fruits et légumes frais… », picto tracteur) */
.gb-v3 #content > header .shell {
	display: block;
	position: absolute;
	z-index: 3;
	right: clamp(12px, 4vw, 70px);
	bottom: clamp(14px, 2.6vw, 34px);
	margin: 0;
	transform: rotate(-5deg) scale(.88);
	transform-origin: bottom right;
}
.gb-v3 #content > header .shell:hover { transform: rotate(-2deg) scale(.93); }
@media screen and (max-width: 1100px) {
	.gb-v3 #content > header .shell { transform: rotate(-5deg) scale(.7); }
}

/* Pages sans photo dédiée (légales) : dégradé seul, bandeau plus compact */
.gb-v3 #content.gb-legal-page > header {
	padding-bottom: clamp(24px, 3vw, 38px) !important;
	background: linear-gradient(135deg, var(--gb-hero-a) 0%, var(--gb-hero-b) 48%, var(--gb-hero-c) 100%) !important;
}
.gb-v3 #content.gb-legal-page > header h1.title { max-width: min(26ch, 58%); font-size: clamp(1.9rem, 1.1rem + 2.4vw, 3.2rem); }

@media screen and (max-width: 860px) {
	/* Sur mobile la photo passe en bandeau bas, très fondu : le texte reste lisible */
	.gb-v3 #content > header:before {
		top: auto;
		bottom: 0;
		width: 100%;
		height: min(46%, 240px);
		background-position: center right;
		-webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .75) 55%, #000 100%);
		        mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .75) 55%, #000 100%);
		opacity: .5;
	}
	.gb-v3 #content > header h1.title, .gb-v3 #content > header .container > p { max-width: none; }
	.gb-v3 #content > header .stripe p.text { max-width: none; }
}

/* ---------- Accueil : bloc vidéo (remplace le fond en dégradé gris) ---------- */
.gb-v3 #video {
	position: relative;
	overflow: hidden;
	min-height: 0;
	padding: clamp(44px, 6vw, 92px) 0 clamp(200px, 26vw, 360px);
	margin: clamp(28px, 4vw, 56px) auto 0;
	width: min(calc(100% - 32px), var(--gb-wrap));
	border-radius: clamp(24px, 3vw, 44px);
	background:
		radial-gradient(60% 90% at 10% 0%, rgba(177, 201, 3, .32), transparent 60%),
		radial-gradient(60% 90% at 95% 15%, rgba(240, 174, 17, .28), transparent 62%),
		linear-gradient(140deg, #fbfaf4, #f2f6de 55%, #fdefd8) !important;
	background-repeat: no-repeat !important;
}
.gb-v3 #video:before {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: min(62%, 380px);
	background: url(../../grosbusch/images/bg-video-2min.jpg) no-repeat center bottom / contain;
	mix-blend-mode: multiply;
	pointer-events: none;
}
.gb-v3 #video > .container { position: relative; z-index: 1; }
.gb-v3 #video .shell-orange {
	position: relative;
	top: auto;
	right: auto;
	margin: 0 auto;
	transition: transform .35s var(--gb-ease);
}
.gb-v3 #video .shell-orange:hover { transform: translateY(-4px) rotate(-3deg) scale(1.04); }
@media screen and (max-width: 700px) {
	.gb-v3 #video { padding-bottom: clamp(150px, 42vw, 240px); }
}

/* ---------- Titres de section de l'accueil ---------- */
.gb-v3 #marques h1.title,
.gb-v3 #services > .container > h1.title,
.gb-v3 #promos h1.title,
.gb-v3 #nouveautes h1.title {
	font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem);
	letter-spacing: -.03em;
}

/* ---------- Finitions du contenu (template 3) ---------- */
/* Titres de section : pastille de couleur */
.gb-v3 #content .content h2.title,
.gb-v3 #content .gb-pr-text h2.title,
.gb-v3 #content .gb-vi-intro h2.title,
.gb-v3 #content .gb-ct-map h2.title,
.gb-v3 #content .gb-vi-form h2.title {
	display: flex;
	align-items: baseline;
	gap: 12px;
}
.gb-v3 #content .content h2.title:before,
.gb-v3 #content .gb-pr-text h2.title:before,
.gb-v3 #content .gb-vi-intro h2.title:before,
.gb-v3 #content .gb-ct-map h2.title:before,
.gb-v3 #content .gb-vi-form h2.title:before {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--gb-lime);
	transform: translateY(-2px);
}

/* Étapes des pages Services : blocs arrondis, alternance plus douce */
.gb-v3 .steps article {
	border-radius: clamp(20px, 2.6vw, 34px);
	margin: 0 auto 14px;
	width: min(100% - 24px, calc(var(--gb-wrap) + 80px));
}
.gb-v3 .steps article:nth-child(even) { background-color: var(--gb-lime-50); }
.gb-v3 .steps .cnt:before { opacity: .9; }

/* Blocs pictos des pages Services */
.gb-v3 #services-blocks .col {
	padding-bottom: 18px;
	border-radius: 24px;
	background: linear-gradient(180deg, transparent 55%, var(--gb-cream));
}
