/* =====================================================================
   CICLEO — Système de hero banner immersif (réutilisable)
   Photo lifestyle + voile sombre dégradé + titre + accroche + CTA.
   Priorité : LCP maîtrisé, 0 CLS (hauteur réservée en CSS),
   accessibilité, prefers-reduced-motion.
   ===================================================================== */

.cicleo-hero {
	position: relative;
	width: 100%;
	/* Hauteur réservée -> pas de CLS pendant le chargement de l'image */
	height: clamp(380px, 56vh, 580px);
	overflow: hidden;
	background-color: #0B2A1C; /* couleur de fond avant chargement image */
	display: flex;
	align-items: center;
	isolation: isolate;
}

/* Image : remplit le cadre, sujet gardé via object-position */
.cicleo-hero__media,
.cicleo-hero__media picture,
.cicleo-hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	z-index: 0;
}
.cicleo-hero__media img {
	object-fit: cover;
	object-position: var(--hero-pos, 60% center);
	display: block;
	/* léger sur-cadrage pour autoriser un parallax sans révéler les bords */
	transform: scale(1.06);
	will-change: transform;
}

/* Voile dégradé : plus dense à gauche (zone texte), léger à droite (sujet) */
.cicleo-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(9,30,20,.82) 0%, rgba(9,30,20,.55) 38%, rgba(9,30,20,.18) 72%, rgba(9,30,20,.06) 100%),
		linear-gradient(0deg, rgba(9,30,20,.42) 0%, rgba(9,30,20,0) 42%);
}

/* Contenu */
.cicleo-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 clamp(20px, 5vw, 64px);
	color: #fff;
}
.cicleo-hero__content { max-width: 640px; }

.cicleo-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'Poppins', system-ui, sans-serif;
	font-size: clamp(11px, 1.1vw, 13px);
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #B7E38C;
	margin: 0 0 14px;
}
.cicleo-hero__eyebrow::before {
	content: "";
	width: 26px; height: 2px;
	background: #7BC043;
	display: inline-block;
	border-radius: 2px;
}

.cicleo-hero__title {
	font-family: 'Poppins', system-ui, sans-serif;
	font-size: clamp(28px, 4.4vw, 54px);
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -.01em;
	margin: 0 0 16px;
	color: #fff;
	text-shadow: 0 2px 18px rgba(0,0,0,.28);
}
.cicleo-hero__title em {
	font-style: normal;
	color: #7BC043;
}

.cicleo-hero__lead {
	font-family: 'Poppins', system-ui, sans-serif;
	font-size: clamp(15px, 1.7vw, 19px);
	line-height: 1.55;
	font-weight: 400;
	margin: 0 0 28px;
	color: rgba(255,255,255,.92);
	max-width: 560px;
	text-shadow: 0 1px 10px rgba(0,0,0,.25);
}

.cicleo-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}
.cicleo-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: 'Poppins', system-ui, sans-serif;
	font-size: clamp(14px, 1.4vw, 16px);
	font-weight: 700;
	text-decoration: none;
	padding: 14px 30px;
	border-radius: 999px;
	transition: transform .18s ease, box-shadow .25s ease, background-color .2s ease, color .2s ease;
	line-height: 1;
	white-space: nowrap;
}
.cicleo-hero__btn--primary {
	background: #7BC043;
	color: #0B2A1C;
	box-shadow: 0 10px 26px rgba(123,192,67,.34);
}
.cicleo-hero__btn--primary:hover {
	background: #8fd257;
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(123,192,67,.42);
}
.cicleo-hero__btn--ghost {
	background: rgba(255,255,255,.10);
	color: #fff;
	border: 1.5px solid rgba(255,255,255,.55);
	backdrop-filter: blur(4px);
}
.cicleo-hero__btn--ghost:hover {
	background: rgba(255,255,255,.18);
	border-color: #fff;
	transform: translateY(-2px);
}
.cicleo-hero__btn svg { width: 18px; height: 18px; }

/* Apparition douce au chargement */
@keyframes cicleoHeroUp {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: translateY(0); }
}
.cicleo-hero__eyebrow { animation: cicleoHeroUp .6s .05s both; }
.cicleo-hero__title   { animation: cicleoHeroUp .7s .16s both; }
.cicleo-hero__lead    { animation: cicleoHeroUp .7s .30s both; }
.cicleo-hero__cta     { animation: cicleoHeroUp .7s .44s both; }

/* Tablette */
@media (max-width: 900px) {
	.cicleo-hero { height: clamp(360px, 60vh, 480px); }
	.cicleo-hero::before {
		background:
			linear-gradient(90deg, rgba(9,30,20,.80) 0%, rgba(9,30,20,.55) 55%, rgba(9,30,20,.30) 100%),
			linear-gradient(0deg, rgba(9,30,20,.50) 0%, rgba(9,30,20,0) 48%);
	}
}

/* Mobile */
@media (max-width: 600px) {
	.cicleo-hero {
		height: auto;
		min-height: 440px;
		align-items: flex-end;
	}
	.cicleo-hero__inner { padding-top: 40px; padding-bottom: 34px; }
	.cicleo-hero__media img {
		object-position: var(--hero-pos-mobile, var(--hero-pos, 60% center));
		transform: none; /* pas de parallax mobile */
	}
	.cicleo-hero::before {
		background:
			linear-gradient(0deg, rgba(9,30,20,.86) 0%, rgba(9,30,20,.52) 46%, rgba(9,30,20,.22) 100%);
	}
	.cicleo-hero__content { max-width: 100%; }
	.cicleo-hero__cta { gap: 10px; }
	.cicleo-hero__btn { padding: 13px 22px; flex: 1 1 auto; }
}

/* Variante « contenue » : hero à l'intérieur d'un conteneur (ex. accueil),
   coins arrondis, sans débordement pleine largeur. */
.cicleo-home .cicleo-hero {
	width: 100%;
	max-width: 100%;
	left: auto;
	right: auto;
	margin-left: 0;
	margin-right: 0;
	border-radius: 24px;
	height: clamp(360px, 52vh, 520px);
	box-shadow: 0 18px 48px rgba(9,30,20,.18);
}
.cicleo-home .cicleo-hero__inner { padding-left: clamp(20px, 4vw, 48px); }
@media (max-width: 600px) {
	.cicleo-home .cicleo-hero { border-radius: 18px; }
}

/* Masque le titre d'archive natif quand un hero le remplace */
.cicleo-has-hero .entry-header,
.cicleo-has-hero .woocommerce-products-header {
	display: none !important;
}
/* Le hero occupe toute la largeur, même injecté dans un conteneur */
.cicleo-hero {
	width: 100vw;
	max-width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}

/* Respect de la préférence « animations réduites » */
@media (prefers-reduced-motion: reduce) {
	.cicleo-hero__eyebrow,
	.cicleo-hero__title,
	.cicleo-hero__lead,
	.cicleo-hero__cta { animation: none; }
	.cicleo-hero__media img { transform: none !important; }
	.cicleo-hero__btn { transition: none; }
}
