/* =========================================================================
   Elyomiel — Pages légales
   ====================================================================== */

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

.ely-lg {
	--lg-a: #f2a81d;        /* accent */
	--lg-a-deep: #b56a06;
	--lg-soft: #fff1c9;
	--lg-hero-1: #ffe7a6;
	--lg-hero-2: #fff3d6;
	position: relative;
	display: block;
	overflow: clip;
	color: var(--ely-ink);
	font-family: var(--ely-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	background: #fffaf0;
}
.ely-lg[data-tone="cgv"]     { --lg-a: #e8951a; --lg-a-deep: #a0510a; --lg-soft: #ffe7c2; --lg-hero-1: #ffd9a0; --lg-hero-2: #fff0dc; }
.ely-lg[data-tone="returns"] { --lg-a: #f0b43a; --lg-a-deep: #8a5a06; --lg-soft: #fff4cf; --lg-hero-1: #ffeaa0; --lg-hero-2: #fff7dc; }
.ely-lg[data-tone="privacy"] { --lg-a: #d99a3c; --lg-a-deep: #7a4206; --lg-soft: #f8e3c8; --lg-hero-1: #f6d8b0; --lg-hero-2: #fdf0e0; }
.ely-lg[data-tone="comms"]   { --lg-a: #f2a81d; --lg-a-deep: #9a5c08; --lg-soft: #fff1c9; --lg-hero-1: #ffe08a; --lg-hero-2: #fff6dc; }

.ely-lg *, .ely-lg *::before, .ely-lg *::after { box-sizing: border-box; }
.ely-lg :is(h1, h2, h3) { color: var(--ely-ink); }
.ely-lg-ico { display: inline-block; flex: 0 0 auto; width: 20px; height: 20px; }
.ely-lg .ely-btn--honey { color: var(--ely-darker); }

/* -------------------------------------------------------------------------
   Abeilles
   ---------------------------------------------------------------------- */
.ely-lg-bees { position: absolute; inset: 0; overflow: hidden; pointer-events: none; } /* pas de z-index : chaque abeille se place elle-même dans les plans */
.ely-lg-bee { position: absolute; z-index: 1; top: 0; left: 0; width: 40px; opacity: 0; will-change: transform; filter: drop-shadow(0 6px 6px rgba(90, 50, 0, .18)); transition: opacity .8s; }
.ely-lg-bees.is-on .ely-lg-bee { opacity: 1; }
.ely-lg-bee__svg { width: 100%; height: auto; }
/* Les abeilles de fond passent derrière le texte et les cartes, celle de devant vole au-dessus. */
.ely-lg-bee--front { z-index: 6; }
.ely-lg-hero, .ely-lg-tabs, .ely-lg-body, .ely-lg-help { position: relative; z-index: 2; }

/* -------------------------------------------------------------------------
   Haut de page
   ---------------------------------------------------------------------- */
.ely-lg-hero {
	z-index: 0;
	padding-block: clamp(40px, 5.5vw, 72px) clamp(28px, 4vw, 44px);
	background:
		radial-gradient(38rem 20rem at 20% 0%, rgba(255, 201, 74, .45), transparent 70%),
		linear-gradient(180deg, var(--lg-hero-1), var(--lg-hero-2));
	text-align: center;
}
.ely-lg-hero .ely-wrap { max-width: 820px; }
.ely-lg-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 14px 6px 10px; border-radius: 99px; background: rgba(255, 255, 255, .65); color: var(--lg-a-deep); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ely-lg-kicker .ely-lg-ico { width: 18px; height: 18px; }
.ely-lg-title { margin: 0; font-family: var(--ely-display); font-weight: 400; font-size: clamp(2.3rem, 5.6vw, 3.9rem); line-height: 1.04; letter-spacing: -.015em; text-wrap: balance; }
.ely-lg-lead { max-width: 36em; margin: 16px auto 0; color: #5b3d1f; text-wrap: pretty; }
.ely-lg-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin: 18px 0 0; color: #8a6a48; font-size: .9rem; }
.ely-lg-print { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--lg-a-deep); font: 600 .9rem var(--ely-body); cursor: pointer; transition: background-color .2s; }
.ely-lg-print:hover { background: rgba(255, 255, 255, .6); }
.ely-lg-print .ely-lg-ico { width: 18px; height: 18px; }

/* -------------------------------------------------------------------------
   Onglets entre pages légales
   ---------------------------------------------------------------------- */
.ely-lg-tabs { z-index: 3; margin-top: -1px; padding-block: 0 14px; background: linear-gradient(180deg, var(--lg-hero-2), #fffaf0); }
.ely-lg-tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ely-lg-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 99px;
	background: rgba(255, 255, 255, .7);
	box-shadow: 0 0 0 1px rgba(42, 22, 7, .07);
	color: #5b3d1f;
	font-size: .92rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .2s, color .2s, transform .3s var(--ely-spring);
}
.ely-lg-tab:hover { background: #fff; color: var(--ely-ink); transform: translateY(-2px); }
.ely-lg-tab .ely-lg-ico { width: 18px; height: 18px; color: var(--lg-a-deep); }
.ely-lg-tab.is-active { background: var(--ely-ink); box-shadow: none; color: var(--ely-milk); }
.ely-lg-tab.is-active .ely-lg-ico { color: var(--ely-honey-light); }

/* -------------------------------------------------------------------------
   Corps : sommaire + texte
   ---------------------------------------------------------------------- */
.ely-lg-body {
	display: grid;
	grid-template-columns: minmax(0, 270px) minmax(0, 1fr);
	gap: clamp(20px, 3vw, 40px);
	align-items: start;
	max-width: 1140px;
	padding-block: clamp(26px, 4vw, 48px) clamp(40px, 5vw, 64px);
}
.ely-lg-body.is-single { grid-template-columns: minmax(0, 1fr); max-width: 880px; }

.ely-lg-toc { position: sticky; top: calc(var(--ely-header-h) + 20px); }
.ely-lg-toc__box { border-radius: 22px; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px rgba(42, 22, 7, .06), 0 20px 40px -32px rgba(90, 50, 0, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ely-lg-toc__head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; color: var(--ely-ink); font-weight: 700; list-style: none; cursor: pointer; }
.ely-lg-toc__head::-webkit-details-marker { display: none; }
.ely-lg-toc__head .ely-lg-ico { color: var(--lg-a-deep); }
.ely-lg-toc__list { display: grid; gap: 2px; max-height: calc(100vh - var(--ely-header-h) - 120px); margin: 0; padding: 0 10px 14px; overflow-y: auto; list-style: none; counter-reset: toc; }
.ely-lg-toc__list a { position: relative; display: block; padding: 7px 10px 7px 34px; border-radius: 10px; color: #6b4a26; font-size: .9rem; line-height: 1.35; text-decoration: none; counter-increment: toc; transition: background-color .2s, color .2s; }
.ely-lg-toc__list a::before { content: counter(toc); position: absolute; top: 7px; left: 8px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--lg-soft); color: var(--lg-a-deep); font-size: .72rem; font-weight: 700; }
.ely-lg-toc__list a:hover { background: #fff6df; color: var(--ely-ink); }
.ely-lg-toc__list a.is-active { background: var(--lg-soft); color: var(--ely-ink); font-weight: 600; }
.ely-lg-toc__list a.is-active::before { background: var(--lg-a); color: var(--ely-darker); }

.ely-lg-card { max-width: 860px; padding: clamp(24px, 4vw, 52px); border-radius: 30px; background: #fff; box-shadow: 0 0 0 1px rgba(42, 22, 7, .06), 0 40px 80px -50px rgba(90, 50, 0, .6); }

/* Texte */
.ely-lg-content { max-width: 760px; color: #3d2a17; overflow-wrap: break-word; }
.ely-lg-content > :first-child { margin-top: 0; }
.ely-lg-content > :last-child { margin-bottom: 0; }
.ely-lg-content h2 {
	position: relative;
	margin: 1.7em 0 .6em;
	padding-top: 1.2em;
	border-top: 1px dashed rgba(181, 106, 6, .25);
	font-family: var(--ely-display);
	font-weight: 400;
	font-size: clamp(1.45rem, 2.4vw, 1.8rem);
	line-height: 1.15;
	scroll-margin-top: calc(var(--ely-header-h) + 24px);
}
.ely-lg-content > h2:first-child { padding-top: 0; border-top: 0; }
.ely-lg-content h2::before { content: ""; display: inline-block; width: 12px; height: 13px; margin-right: 12px; vertical-align: .12em; background: var(--lg-a); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.ely-lg-content h3 { margin: 1.6em 0 .5em; font-size: 1.1rem; }
.ely-lg-content p { margin: 0 0 1em; }
.ely-lg-content strong { color: var(--ely-ink); }
.ely-lg-content a { color: #8a4f06; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(201, 122, 10, .45); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.ely-lg-content a:hover { text-decoration-color: var(--ely-honey-deep); }
.ely-lg-content ul, .ely-lg-content ol { margin: 0 0 1.1em; padding: 0; list-style: none; }
.ely-lg-content li { position: relative; margin: 0 0 .55em; padding-left: 26px; }
.ely-lg-content ul > li::before { content: ""; position: absolute; top: .62em; left: 4px; width: 9px; height: 10px; background: var(--lg-a); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.ely-lg-content ol { counter-reset: lgol; }
.ely-lg-content ol > li { counter-increment: lgol; }
.ely-lg-content ol > li::before { content: counter(lgol) "."; position: absolute; left: 0; color: var(--lg-a-deep); font-weight: 700; }
.ely-lg-content .ely-lg-note { margin: 1.2em 0; padding: 16px 20px; border-radius: 16px; background: var(--lg-soft); box-shadow: inset 4px 0 0 var(--lg-a); color: #3d220c; }
.ely-lg-content table { width: 100%; margin: 0 0 1.2em; border-collapse: collapse; font-size: .95rem; }
.ely-lg-content th, .ely-lg-content td { padding: 10px 12px; border-bottom: 1px solid #f1e4d0; text-align: left; vertical-align: top; }

/* -------------------------------------------------------------------------
   Une question ?
   ---------------------------------------------------------------------- */
.ely-lg-help { padding-block: 0 clamp(48px, 6vw, 80px); }
.ely-lg-help__card {
	display: flex;
	align-items: center;
	gap: clamp(14px, 2.4vw, 26px);
	max-width: 1160px;
	margin-inline: auto;
	padding: clamp(20px, 3vw, 30px) clamp(20px, 3.4vw, 36px);
	border-radius: 26px;
	background: linear-gradient(130deg, #ffd56a, var(--ely-honey) 60%, #e8951a);
	box-shadow: 0 6px 0 var(--ely-honey-deep), 0 30px 60px -40px rgba(160, 98, 10, .9);
}
.ely-lg-help__ico { display: grid; place-items: center; flex: 0 0 auto; width: 56px; height: 56px; border-radius: 18px; background: rgba(255, 255, 255, .55); color: var(--ely-darker); }
.ely-lg-help__ico .ely-lg-ico { width: 26px; height: 26px; }
.ely-lg-help__txt { flex: 1 1 auto; min-width: 0; }
.ely-lg-help__txt h2 { margin: 0; font-family: var(--ely-display); font-weight: 400; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.15; }
.ely-lg-help__txt p { margin: 4px 0 0; color: #3d220c; }
.ely-lg-help .ely-btn--honey { flex: 0 0 auto; background: var(--ely-ink); box-shadow: 0 4px 0 #0d0601; color: var(--ely-milk); }
.ely-lg-help .ely-btn--honey:hover { color: var(--ely-milk); box-shadow: 0 6px 0 #0d0601; }
.ely-lg-help .ely-btn .ely-lg-ico { width: 18px; height: 18px; }

/* Retour en haut */
.ely-lg-top {
	position: fixed;
	right: clamp(14px, 3vw, 28px);
	bottom: clamp(14px, 3vw, 28px);
	z-index: 40;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 16px;
	background: var(--ely-ink);
	box-shadow: 0 10px 24px -10px rgba(27, 13, 3, .6);
	color: var(--ely-honey-light);
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
	transition: opacity .25s, transform .3s var(--ely-spring);
}
.ely-lg-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.ely-lg-top:hover { color: var(--ely-honey-light); transform: translateY(-2px); }

/* -------------------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------------- */
@media (max-width: 900px) {
	.ely-lg-body { grid-template-columns: minmax(0, 1fr); }
	.ely-lg-toc { position: static; }
	.ely-lg-toc__list { max-height: none; }
	.ely-lg-tabs__list { flex-wrap: nowrap; justify-content: flex-start; margin-inline: calc(var(--ely-gutter) * -1); padding: 2px var(--ely-gutter) 6px; overflow-x: auto; scrollbar-width: none; }
	.ely-lg-tabs__list::-webkit-scrollbar { display: none; }
	.ely-lg-tab { white-space: nowrap; }
}
@media (max-width: 600px) {
	.ely-lg { font-size: 1rem; }
	.ely-lg-card { border-radius: 24px; }
	.ely-lg-print { display: none; }
	.ely-lg-help__card { flex-direction: column; align-items: flex-start; }
	.ely-lg-help .ely-btn { width: 100%; }
	.ely-lg-bee { width: 32px !important; }
}

/* Impression : juste le texte */
@media print {
	.ely-header, .ely-footer, .ely-lg-bees, .ely-lg-tabs, .ely-lg-toc, .ely-lg-help, .ely-lg-top, .ely-lg-print, .ely-drawer, .ely-cart-drawer { display: none !important; }
	.ely-lg, body.ely-legal-page { background: #fff !important; }
	.ely-lg-hero { padding: 0 0 12px; background: none !important; text-align: left; }
	.ely-lg-body { display: block; padding: 0; }
	.ely-lg-card { padding: 0; box-shadow: none; }
	.ely-lg-content { max-width: none; font-size: 11pt; }
	.ely-lg-content a { color: inherit; text-decoration: none; }
}
