/* =========================================================================
   Elyomiel — Notre histoire
   Une teinte de miel différente par section, du plus clair au plus doré.
   ====================================================================== */

body.ely-story-page { background: #fffaf0; }
.ely-story-page .ely-footer { margin-block-start: 0; }

.ely-st { display: block; overflow-x: clip; color: var(--ely-ink); font-family: var(--ely-body); font-size: 1.0625rem; line-height: 1.65; }
.ely-st *, .ely-st *::before, .ely-st *::after { box-sizing: border-box; }
.ely-st :is(h1, h2, h3) { color: var(--ely-ink); }
.ely-st-ico { display: inline-block; flex: 0 0 auto; width: 22px; height: 22px; }
.ely-st .ely-btn--line { color: var(--ely-ink); box-shadow: inset 0 0 0 2px rgba(42, 22, 7, .25); }
.ely-st .ely-btn--line:hover { color: var(--ely-ink); box-shadow: inset 0 0 0 2px var(--ely-ink); }
.ely-st .ely-btn--honey { color: var(--ely-darker); }
.ely-st .ely-btn--ink { color: var(--ely-milk); }

.ely-st-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #a0620a; font-size: .86rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ely-st-kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.ely-st-kicker--center { display: flex; justify-content: center; }
.ely-st-h2 { margin: 0 0 18px; font-family: var(--ely-display); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.01em; }
.ely-st-h2--center { text-align: center; }

/* Apparition au défilement */
.ely-st-anim :is(.ely-st-step, .ely-st-value, .ely-st-quote, .ely-st-nums li, .ely-st-elyo__media, .ely-st-cta__card) { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ely-ease) var(--d, 0ms), transform .7s var(--ely-ease) var(--d, 0ms); }
.ely-st-anim :is(.ely-st-step, .ely-st-value, .ely-st-quote, .ely-st-nums li, .ely-st-elyo__media, .ely-st-cta__card).is-in { opacity: 1; transform: none; }

/* -------------------------------------------------------------------------
   Haut de page — crème
   ---------------------------------------------------------------------- */
.ely-st-hero {
	position: relative;
	padding-block: clamp(40px, 6vw, 84px) clamp(56px, 7vw, 100px);
	background:
		radial-gradient(40rem 28rem at 78% 30%, rgba(255, 201, 74, .45), transparent 70%),
		linear-gradient(180deg, #fff3d6, #fffaf0);
}
.ely-st-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.ely-st-hero__title { margin: 0; font-family: var(--ely-display); font-weight: 400; font-size: clamp(2.8rem, 6.4vw, 5rem); line-height: .98; letter-spacing: -.015em; }
.ely-st-hero__title em { font-style: normal; color: #b56a06; }
.ely-st-hero__lead { max-width: 34em; margin: 22px 0 0; color: #5b3d1f; font-size: 1.12rem; }
.ely-st-hero__lead strong { color: var(--ely-ink); }
.ely-st-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.ely-st-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ely-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--ely-honey-deep); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ely-st-link .ely-st-ico { width: 18px; height: 18px; transition: transform .25s var(--ely-ease); }
.ely-st-link:hover { color: var(--ely-ink); }
.ely-st-link:hover .ely-st-ico { transform: translateX(4px); }

.ely-st-hero__media { position: relative; justify-self: center; width: min(100%, 460px); }
.ely-st-photo { position: relative; margin: 0; overflow: hidden; background: linear-gradient(160deg, #ffd56a, var(--ely-honey)); }
.ely-st-photo__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ely-st-photo--arch { aspect-ratio: 4 / 5; border-radius: 240px 240px 32px 32px; box-shadow: 0 0 0 10px #fff, 0 40px 70px -40px rgba(90, 50, 0, .6); }
.ely-st-photo__empty { display: grid; place-items: center; width: 100%; height: 100%; }
.ely-st-photo__bee { width: 40%; height: auto; }
.ely-st-hero__jarwrap { position: absolute; left: -12%; bottom: -8%; width: 38%; filter: drop-shadow(0 22px 20px rgba(90, 50, 0, .35)); animation: ely-st-float 6s ease-in-out infinite; }
.ely-st-hero__jar { display: block; width: 100%; height: auto; }
@keyframes ely-st-float { 50% { transform: translateY(-10px) rotate(-2deg); } }
.ely-st-hero__badge {
	position: absolute;
	top: 12%;
	right: -6%;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 14px 30px -16px rgba(90, 50, 0, .55);
	font-weight: 700;
	font-size: .95rem;
	transform: rotate(4deg);
}
.ely-st-hero__badge .ely-st-ico { width: 18px; height: 18px; color: #c0392b; }
.ely-st-hero__bee { position: absolute; top: -4%; left: 6%; width: 58px; height: auto; animation: ely-st-bee 7s ease-in-out infinite; }
@keyframes ely-st-bee { 25% { transform: translate(14px, -8px) rotate(6deg); } 60% { transform: translate(-6px, 6px) rotate(-4deg); } }

/* -------------------------------------------------------------------------
   L'histoire — blanc lait
   ---------------------------------------------------------------------- */
.ely-st-story { padding-block: clamp(56px, 7vw, 100px); background: #fffaf0; }
.ely-st-story__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.ely-st-story__text p { max-width: 38em; margin: 0 0 16px; color: #4a2f16; }
.ely-st-sign { margin-top: 22px !important; font-family: var(--ely-display); font-size: 1.8rem; color: #b56a06 !important; transform: rotate(-3deg); transform-origin: left; display: inline-block; }
.ely-st-quote {
	position: relative;
	margin: 0;
	padding: clamp(28px, 3.4vw, 40px);
	border-radius: 30px;
	background: linear-gradient(150deg, #ffd56a, var(--ely-honey) 70%, #e8970f);
	box-shadow: 0 6px 0 var(--ely-honey-deep), 0 34px 60px -36px rgba(160, 98, 10, .8);
	transform: rotate(-1.5deg);
}
.ely-st-quote .ely-st-ico { width: 40px; height: 40px; margin-bottom: 14px; color: var(--ely-darker); opacity: .75; }
.ely-st-quote p { margin: 0; font-family: var(--ely-display); font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.25; color: var(--ely-darker); }

.ely-st-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; list-style: none; }
.ely-st-nums li { display: flex; flex-direction: column; align-items: center; padding: 22px 16px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px rgba(42, 22, 7, .06), 0 18px 36px -28px rgba(90, 50, 0, .5); text-align: center; }
.ely-st-nums strong { font-family: var(--ely-display); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: #b56a06; }
.ely-st-nums span { margin-top: 6px; color: #6b4a26; font-size: .95rem; font-weight: 600; }

/* -------------------------------------------------------------------------
   De la ruche à vous — ambre clair
   ---------------------------------------------------------------------- */
.ely-st-path { padding-block: clamp(56px, 7vw, 100px); background: linear-gradient(180deg, #ffeec4, #ffe2a0); }
.ely-st-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; list-style: none; }
.ely-st-steps::before { content: ""; position: absolute; top: 58px; left: 16%; right: 16%; border-top: 3px dashed rgba(160, 98, 10, .35); }
.ely-st-step { position: relative; display: flex; flex-direction: column; align-items: center; padding: 28px 22px 26px; border-radius: 26px; background: rgba(255, 255, 255, .85); box-shadow: 0 22px 40px -30px rgba(120, 70, 0, .6); text-align: center; }
.ely-st-step__num { position: absolute; top: 14px; left: 18px; font-family: var(--ely-display); font-size: 1.6rem; color: rgba(160, 98, 10, .35); }
.ely-st-step__ico { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 50%; background: var(--ely-honey); box-shadow: 0 5px 0 var(--ely-honey-deep), 0 0 0 8px #fff; color: var(--ely-darker); }
.ely-st-step__ico .ely-st-ico { width: 30px; height: 30px; }
.ely-st-step h3 { margin: 0 0 8px; font-family: var(--ely-display); font-weight: 400; font-size: 1.4rem; line-height: 1.15; }
.ely-st-step p { margin: 0; color: #5b3d1f; font-size: .98rem; }

/* -------------------------------------------------------------------------
   Valeurs — lait, cartes de miels différents
   ---------------------------------------------------------------------- */
.ely-st-values { padding-block: clamp(56px, 7vw, 100px); background: #fffaf0; }
.ely-st-values__head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px 40px; align-items: end; margin-bottom: clamp(24px, 3vw, 36px); }
.ely-st-values__head .ely-st-h2 { margin: 0; }
.ely-st-values__head p { margin: 0; color: #5b3d1f; }
.ely-st-vgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 18px); margin: 0; padding: 0; list-style: none; }
.ely-st-value { grid-column: span 2; display: flex; flex-direction: column; padding: clamp(22px, 2.6vw, 30px); border-radius: 26px; background: #fff; box-shadow: 0 0 0 1px rgba(42, 22, 7, .06), 0 20px 40px -32px rgba(90, 50, 0, .5); }
.ely-st-value--4, .ely-st-value--5 { grid-column: span 3; }
.ely-st-value--1 { background: #fff6dc; }
.ely-st-value--2 { background: #fdeccd; }
.ely-st-value--3 { background: #ffe7ad; }
.ely-st-value--4 { background: #f8e3c8; }
.ely-st-value--5 { background: linear-gradient(150deg, #ffd56a, var(--ely-honey)); box-shadow: 0 5px 0 var(--ely-honey-deep); }
.ely-st-value__ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 16px; background: rgba(255, 255, 255, .8); color: #a0620a; }
.ely-st-value--5 .ely-st-value__ico { color: var(--ely-darker); }
.ely-st-value h3 { margin: 0 0 8px; font-family: var(--ely-display); font-weight: 400; font-size: 1.45rem; line-height: 1.15; }
.ely-st-value p { margin: 0; color: #5b3d1f; font-size: .98rem; }
.ely-st-value--5 p { color: #3d220c; }

/* -------------------------------------------------------------------------
   Elyo & moi — caramel
   ---------------------------------------------------------------------- */
.ely-st-elyo { padding-block: clamp(56px, 7vw, 110px); background: linear-gradient(180deg, #f8e3c8, #f3d4ad); }
.ely-st-elyo__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 84px); align-items: center; }
.ely-st-elyo__media { position: relative; justify-self: center; width: min(100%, 440px); }
.ely-st-photo--tilt { aspect-ratio: 1; border-radius: 28px; box-shadow: 0 0 0 10px #fff, 0 40px 70px -40px rgba(90, 50, 0, .7); transform: rotate(-3deg); }
.ely-st-photo--tilt::before { content: ""; position: absolute; top: -14px; left: 50%; z-index: 2; width: 110px; height: 30px; margin-left: -55px; border-radius: 4px; background: rgba(255, 233, 170, .85); transform: rotate(2deg); }
.ely-st-elyo__paw { position: absolute; right: -4%; bottom: -6%; display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; background: var(--ely-honey); box-shadow: 0 5px 0 var(--ely-honey-deep), 0 0 0 8px #fff; color: var(--ely-darker); transform: rotate(10deg); }
.ely-st-elyo__paw .ely-st-ico { width: 40px; height: 40px; }
.ely-st-elyo__text p { max-width: 34em; margin: 0 0 16px; color: #4a2f16; font-size: 1.08rem; }
.ely-st-elyo__punch { font-family: var(--ely-display); font-size: clamp(1.4rem, 2.4vw, 1.8rem) !important; line-height: 1.25; color: #8a4f06 !important; }

/* -------------------------------------------------------------------------
   Appel final — doré
   ---------------------------------------------------------------------- */
.ely-st-cta { padding-block: clamp(48px, 6vw, 84px); background: #fffaf0; }
.ely-st-cta__card {
	position: relative;
	display: grid;
	justify-items: center;
	padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 60px);
	border-radius: 36px;
	background:
		radial-gradient(30rem 16rem at 50% 0%, rgba(255, 236, 170, .9), transparent 70%),
		linear-gradient(160deg, #ffc94a, var(--ely-honey) 60%, #e8970f);
	box-shadow: 0 8px 0 var(--ely-honey-deep), 0 40px 80px -50px rgba(160, 98, 10, .9);
	text-align: center;
	overflow: hidden;
}
.ely-st-cta__bee { position: absolute; top: 24px; right: 10%; width: 64px; height: auto; animation: ely-st-bee 7s ease-in-out infinite; }
.ely-st-cta__title { margin: 0; font-family: var(--ely-display); font-weight: 400; font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1; color: var(--ely-darker) !important; }
.ely-st-cta__card p { max-width: 32em; margin: 14px 0 0; color: #3d220c; font-size: 1.08rem; }
.ely-st-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.ely-st-cta .ely-btn--line { background: rgba(255, 255, 255, .35); box-shadow: inset 0 0 0 2px rgba(27, 13, 3, .35); }

/* -------------------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------------- */
@media (max-width: 960px) {
	.ely-st-hero__grid, .ely-st-story__grid, .ely-st-elyo__grid { grid-template-columns: minmax(0, 1fr); }
	.ely-st-hero__media { width: min(86%, 400px); margin-top: 10px; }
	.ely-st-quote { transform: none; }
	.ely-st-values__head { grid-template-columns: minmax(0, 1fr); }
	.ely-st-vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ely-st-value, .ely-st-value--4 { grid-column: span 1; }
	.ely-st-value--5 { grid-column: 1 / -1; }
	.ely-st-elyo__media { width: min(80%, 380px); }
}
@media (max-width: 720px) {
	.ely-st-steps { grid-template-columns: minmax(0, 1fr); }
	.ely-st-steps::before { top: 30px; bottom: 30px; left: 50%; right: auto; border-top: 0; border-left: 3px dashed rgba(160, 98, 10, .35); }
	.ely-st-nums { grid-template-columns: minmax(0, 1fr); }
	.ely-st-nums li { flex-direction: row; justify-content: center; gap: 14px; padding: 16px; }
	.ely-st-nums span { margin: 0; text-align: left; }
}
@media (max-width: 520px) {
	.ely-st-vgrid { grid-template-columns: minmax(0, 1fr); }
	.ely-st-hero__jarwrap { left: -8%; width: 34%; }
	.ely-st-hero__badge { right: -4%; }
	.ely-st-elyo__paw { width: 68px; height: 68px; right: -2%; }
	.ely-st-elyo__paw .ely-st-ico { width: 32px; height: 32px; }
	.ely-st-cta__card { padding-top: 70px; }
	.ely-st-cta__bee { top: 16px; right: 50%; width: 44px; margin-right: -22px; }
}

@media (prefers-reduced-motion: reduce) {
	.ely-st *, .ely-st *::before, .ely-st *::after { animation: none !important; transition: none !important; }
}
