/* =========================================================================
   Elyomiel — Questions (FAQ)
   ====================================================================== */

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

.ely-fq { display: block; overflow-x: clip; color: var(--ely-ink); font-family: var(--ely-body); font-size: 1.0625rem; line-height: 1.6; background: #fffaf0; }
.ely-fq *, .ely-fq *::before, .ely-fq *::after { box-sizing: border-box; }
.ely-fq :is(h1, h2, h3) { color: var(--ely-ink); }
.ely-fq a { color: #7a4206; }
.ely-fq .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.ely-fq-ico { display: inline-block; flex: 0 0 auto; width: 20px; height: 20px; }
.ely-fq .ely-btn--ink { color: var(--ely-milk); }

/* -------------------------------------------------------------------------
   Haut de page
   ---------------------------------------------------------------------- */
.ely-fq-hero {
	position: relative;
	padding-block: clamp(44px, 6vw, 84px) clamp(40px, 5vw, 64px);
	background:
		radial-gradient(42rem 26rem at 50% 0%, rgba(255, 201, 74, .5), transparent 70%),
		linear-gradient(180deg, #fff1c9, #fffaf0);
	text-align: center;
}
.ely-fq-hero .ely-wrap { position: relative; max-width: 860px; }
.ely-fq-hero__bee { position: absolute; top: -10px; right: 6%; width: 64px; height: auto; animation: ely-fq-bee 7s ease-in-out infinite; }
@keyframes ely-fq-bee { 30% { transform: translate(-16px, 10px) rotate(-6deg); } 70% { transform: translate(8px, -6px) rotate(4deg); } }
.ely-fq-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: #a0620a; font-size: .86rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ely-fq-hero__title { margin: 0; font-family: var(--ely-display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -.015em; }
.ely-fq-hero__title span { display: block; margin-top: 10px; font-size: .48em; line-height: 1.15; color: #b56a06; }
.ely-fq-hero__lead { max-width: 36em; margin: 18px auto 0; color: #5b3d1f; }

.ely-fq-search { position: relative; display: flex; align-items: center; max-width: 620px; margin: 30px auto 0; }
.ely-fq-search > .ely-fq-ico { position: absolute; left: 22px; width: 22px; height: 22px; color: #a0620a; pointer-events: none; }
.ely-fq-search__input {
	width: 100%;
	height: 64px;
	padding: 0 60px 0 58px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 0 0 1.5px rgba(42, 22, 7, .1), 0 20px 40px -24px rgba(90, 50, 0, .5);
	color: var(--ely-ink);
	font: 500 1.08rem/1 var(--ely-body);
	-webkit-appearance: none;
	appearance: none;
}
.ely-fq-search__input::placeholder { color: #a99073; font-weight: 400; }
.ely-fq-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ely-fq-search__input:focus { outline: 0; box-shadow: 0 0 0 2.5px var(--ely-honey-deep), 0 0 0 7px rgba(242, 168, 29, .2), 0 20px 40px -24px rgba(90, 50, 0, .5); }
.ely-fq-search__clear { position: absolute; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #fff6df; color: #6b4a26; cursor: pointer; }
.ely-fq-search__clear[hidden] { display: none; }
.ely-fq-search__clear:hover { background: var(--ely-honey); color: var(--ely-darker); }
.ely-fq-search__status { margin: 12px 0 0; color: #8a6a48; font-size: .9rem; }

/* -------------------------------------------------------------------------
   Corps : thèmes + questions
   ---------------------------------------------------------------------- */
.ely-fq-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-block: clamp(20px, 3vw, 36px) clamp(56px, 7vw, 96px); }

.ely-fq-cats { position: sticky; top: calc(var(--ely-header-h) + var(--ely-ab, 0px) + 20px); }
.ely-fq-cats ul { display: grid; gap: 4px; margin: 0; padding: 12px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px rgba(42, 22, 7, .06), 0 20px 44px -34px rgba(90, 50, 0, .5); list-style: none; }
.ely-fq-cat {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 12px;
	border-radius: 14px;
	color: #5b3d1f !important;
	font-weight: 600;
	font-size: .97rem;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}
.ely-fq-cat .ely-fq-ico { color: #a0620a; }
.ely-fq-cat span { flex: 1 1 auto; }
.ely-fq-cat em { min-width: 26px; padding: 2px 8px; border-radius: 999px; background: #fff6df; color: #8a4f06; font-size: .8rem; font-style: normal; font-weight: 700; text-align: center; }
.ely-fq-cat:hover { background: #fff6df; color: var(--ely-ink) !important; }
.ely-fq-cat.is-active { background: var(--ely-honey); box-shadow: 0 3px 0 var(--ely-honey-deep); color: var(--ely-darker) !important; }
.ely-fq-cat.is-active .ely-fq-ico { color: var(--ely-darker); }
.ely-fq-cat.is-active em { background: rgba(255, 255, 255, .6); color: var(--ely-darker); }

.ely-fq-list { display: grid; gap: clamp(18px, 2.4vw, 26px); min-width: 0; }
.ely-fq-group { scroll-margin-top: calc(var(--ely-header-h) + 30px); padding: clamp(18px, 2.4vw, 26px); border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px rgba(42, 22, 7, .06), 0 22px 46px -36px rgba(90, 50, 0, .55); }
.ely-fq-group[hidden] { display: none; }
.ely-fq-group__title { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; padding: 4px 6px; font-family: var(--ely-display); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.1; }
.ely-fq-group__ico { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 15px; color: #8a4f06; }
.ely-fq-group__ico .ely-fq-ico { width: 24px; height: 24px; }
.ely-fq-group--1 .ely-fq-group__ico { background: #fff1c9; }
.ely-fq-group--2 .ely-fq-group__ico { background: #fde3c1; }
.ely-fq-group--3 .ely-fq-group__ico { background: #ffe39a; }
.ely-fq-group--4 .ely-fq-group__ico { background: var(--ely-honey); color: var(--ely-darker); box-shadow: 0 3px 0 var(--ely-honey-deep); }

.ely-fq-items { display: grid; gap: 8px; }
.ely-fq-item { scroll-margin-top: calc(var(--ely-header-h) + 40px); border-radius: 18px; background: #fffaf0; box-shadow: inset 0 0 0 1px rgba(42, 22, 7, .06); transition: background-color .2s, box-shadow .2s; }
.ely-fq-item[hidden] { display: none; }
.ely-fq-item[open] { background: #fff6df; box-shadow: inset 0 0 0 1.5px rgba(201, 122, 10, .35); }
.ely-fq-item.is-target { box-shadow: inset 0 0 0 2px var(--ely-honey-deep), 0 0 0 5px rgba(242, 168, 29, .2); }
.ely-fq-item__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 18px;
	border-radius: 18px;
	font-weight: 600;
	font-size: 1.02rem;
	line-height: 1.4;
	cursor: pointer;
	list-style: none;
}
.ely-fq-item__q::-webkit-details-marker { display: none; }
.ely-fq-item__q:hover .ely-fq-item__text { color: #7a4206; }
.ely-fq-item__q:focus-visible { outline: 3px solid var(--ely-honey); outline-offset: 2px; }
.ely-fq-item__text mark { padding: 0 2px; border-radius: 4px; background: #ffd56a; color: inherit; }
.ely-fq-item__sign { position: relative; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(42, 22, 7, .14); transition: background-color .25s, transform .35s var(--ely-ease); }
.ely-fq-item__sign::before, .ely-fq-item__sign::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--ely-ink); transition: transform .35s var(--ely-ease); }
.ely-fq-item__sign::after { transform: rotate(90deg); }
.ely-fq-item[open] .ely-fq-item__sign { background: var(--ely-honey); box-shadow: none; transform: rotate(180deg); }
.ely-fq-item[open] .ely-fq-item__sign::after { transform: rotate(0deg); }
.ely-fq-item__a { padding: 0 18px 16px; color: #4a2f16; animation: ely-fq-open .35s var(--ely-ease); }
.ely-fq-item__a p { max-width: 46em; margin: 0; }
@keyframes ely-fq-open { from { opacity: 0; transform: translateY(-6px); } }
.ely-fq-item__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 4px 8px 4px 4px; border: 0; border-radius: 8px; background: none; color: #9a7b58; font: 600 .82rem/1 var(--ely-body); cursor: pointer; }
.ely-fq-item__link .ely-fq-ico { width: 16px; height: 16px; }
.ely-fq-item__link:hover { color: var(--ely-ink); background: rgba(255, 255, 255, .7); }
.ely-fq-item__link.is-done { color: #2f7a3a; }

.ely-fq-empty { display: grid; justify-items: center; gap: 6px; padding: 40px 20px; border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px rgba(42, 22, 7, .06); text-align: center; color: #6b4a26; }
.ely-fq-empty[hidden] { display: none; }
.ely-fq-empty__bee { width: 64px; height: auto; margin-bottom: 6px; }
.ely-fq-empty p { margin: 0; }
.ely-fq-empty__title { color: var(--ely-ink); font-family: var(--ely-display); font-size: 1.4rem; line-height: 1.2; }

/* Pendant une recherche, les réponses trouvées sont visibles sans cliquer. */
.ely-fq.is-searching .ely-fq-cats { opacity: .55; }

/* -------------------------------------------------------------------------
   Contact
   ---------------------------------------------------------------------- */
.ely-fq-cta { padding-bottom: clamp(56px, 7vw, 96px); }
.ely-fq-cta__card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px 26px;
	padding: clamp(24px, 3.4vw, 40px);
	border-radius: 30px;
	background: linear-gradient(150deg, #ffd56a, var(--ely-honey) 65%, #e8970f);
	box-shadow: 0 6px 0 var(--ely-honey-deep), 0 34px 60px -40px rgba(160, 98, 10, .8);
}
.ely-fq-cta__ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: rgba(255, 255, 255, .6); color: var(--ely-darker); }
.ely-fq-cta__ico .ely-fq-ico { width: 30px; height: 30px; }
.ely-fq-cta__text h2 { margin: 0; font-family: var(--ely-display); font-weight: 400; font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.1; color: var(--ely-darker) !important; }
.ely-fq-cta__text p { margin: 8px 0 0; color: #3d220c; }

/* -------------------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------------- */
@media (max-width: 900px) {
	.ely-fq-body { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.ely-fq-cats { position: static; }
	.ely-fq-cats ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; background: none; box-shadow: none; }
	.ely-fq-cat { gap: 8px; padding: 9px 12px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(42, 22, 7, .1); font-size: .9rem; }
	.ely-fq-cat .ely-fq-ico { width: 18px; height: 18px; }
	.ely-fq-cat em { min-width: 0; padding: 1px 7px; font-size: .75rem; }
	.ely-fq-cta__card { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}
@media (max-width: 560px) {
	.ely-fq-hero__bee { right: 2%; width: 46px; }
	.ely-fq-search__input { height: 56px; font-size: 1rem; }
	.ely-fq-cats ul { gap: 6px; }
	.ely-fq-cat { padding: 8px 11px; font-size: .85rem; }
	.ely-fq-cat .ely-fq-ico { display: none; }
	.ely-fq-group { padding: 14px; border-radius: 22px; }
	.ely-fq-group__ico { width: 40px; height: 40px; border-radius: 12px; }
	.ely-fq-item__q { padding: 14px; font-size: .98rem; }
	.ely-fq-item__a { padding: 0 14px 14px; }
	.ely-fq-cta__card .ely-btn { width: 100%; }
}

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