/* =========================================================================
   Elyomiel — Contact
   ====================================================================== */

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

.ely-ct { 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-ct *, .ely-ct *::before, .ely-ct *::after { box-sizing: border-box; }
.ely-ct :is(h1, h2, h3) { color: var(--ely-ink); }
.ely-ct a { color: #7a4206; }
.ely-ct-ico { display: inline-block; flex: 0 0 auto; width: 20px; height: 20px; }
.ely-ct .ely-btn--honey { color: var(--ely-darker); }

/* -------------------------------------------------------------------------
   Haut de page
   ---------------------------------------------------------------------- */
.ely-ct-hero {
	position: relative;
	padding-block: clamp(44px, 6vw, 80px) clamp(90px, 10vw, 140px);
	background:
		radial-gradient(40rem 24rem at 30% 0%, rgba(255, 201, 74, .55), transparent 70%),
		linear-gradient(180deg, #ffeab0, #fff3d6);
	text-align: center;
}
.ely-ct-hero .ely-wrap { position: relative; max-width: 820px; }
.ely-ct-hero__bee { position: absolute; top: 0; left: 8%; width: 60px; height: auto; animation: ely-ct-bee 7s ease-in-out infinite; }
@keyframes ely-ct-bee { 35% { transform: translate(18px, 8px) rotate(6deg); } 70% { transform: translate(-6px, -6px) rotate(-4deg); } }
.ely-ct-kicker { margin: 0 0 14px; color: #a0620a; font-size: .86rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ely-ct-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-ct-hero__title span { color: #b56a06; }
.ely-ct-hero__lead { max-width: 34em; margin: 18px auto 0; color: #5b3d1f; }

/* -------------------------------------------------------------------------
   Corps : coordonnées + formulaire (remonte sur le haut de page)
   ---------------------------------------------------------------------- */
.ely-ct-body { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 36px); align-items: start; margin-top: clamp(-90px, -8vw, -60px); padding-bottom: clamp(48px, 6vw, 80px); }

.ely-ct-cards { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ely-ct-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-areas: "ico label" "ico value" "ico note";
	column-gap: 16px;
	align-items: center;
	padding: 18px 20px;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(42, 22, 7, .06), 0 20px 40px -32px rgba(90, 50, 0, .55);
}
.ely-ct-card__ico { grid-area: ico; align-self: start; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: #fff6df; color: #a0620a; }
.ely-ct-card__ico .ely-ct-ico { width: 24px; height: 24px; }
.ely-ct-card__label { grid-area: label; color: #8a6a48; font-size: .84rem; font-weight: 600; }
.ely-ct-card__value { grid-area: value; color: var(--ely-ink) !important; font-family: var(--ely-display); font-size: 1.5rem; line-height: 1.15; text-decoration: none; overflow-wrap: anywhere; }
.ely-ct-card__value--sm { font-family: var(--ely-body); font-size: 1.05rem; font-weight: 700; }
a.ely-ct-card__value:hover { text-decoration: underline; text-decoration-color: var(--ely-honey-deep); text-underline-offset: 4px; }
.ely-ct-card__note, .ely-ct-card__link { grid-area: note; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: #6b4a26; font-size: .88rem; }
.ely-ct-card__note .ely-ct-ico, .ely-ct-card__link .ely-ct-ico { width: 16px; height: 16px; }
.ely-ct-card__link { font-weight: 600; }
.ely-ct-card--honey { background: linear-gradient(150deg, #ffd56a, var(--ely-honey)); box-shadow: 0 5px 0 var(--ely-honey-deep), 0 24px 44px -30px rgba(160, 98, 10, .8); }
.ely-ct-card--honey .ely-ct-card__ico { background: rgba(255, 255, 255, .6); color: var(--ely-darker); }
.ely-ct-card--honey .ely-ct-card__label, .ely-ct-card--honey .ely-ct-card__note { color: #3d220c; }

.ely-ct-fb { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 14px 18px; border-radius: 18px; background: #f8e3c8; color: var(--ely-ink) !important; text-decoration: none; transition: transform .3s var(--ely-spring); }
.ely-ct-fb:hover { transform: translateY(-2px); }
.ely-ct-fb__ico { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: #1b4f8a; }
.ely-ct-fb span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.ely-ct-fb small { color: #6b4a26; font-size: .84rem; }

/* Formulaire */
.ely-ct-formcard { padding: clamp(24px, 3.4vw, 40px); 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); }
.ely-ct-form[hidden], .ely-ct-done[hidden] { display: none; }
.ely-ct-form__title { margin: 0; font-family: var(--ely-display); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.1; }
.ely-ct-form__lead { margin: 6px 0 20px; color: #8a6a48; font-size: .9rem; }
.ely-ct-req { color: #c0392b; }
.ely-ct-opt { color: #a08466; font-weight: 400; }
.ely-ct-alert { margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; background: #fff6f4; box-shadow: inset 4px 0 0 #c0392b; color: #8a2a1a; font-size: .94rem; font-weight: 600; }
.ely-ct-alert[hidden] { display: none; }
.ely-ct-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ely-ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ely-ct-field { margin: 0; }
.ely-ct-field[hidden] { display: none; }
.ely-ct-field--full { grid-column: 1 / -1; }
.ely-ct-field label { display: block; margin: 0 0 6px; color: #5b3d1f; font-size: .9rem; font-weight: 600; }
.ely-ct-field :is(input, select, textarea) {
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 14px;
	background: #fffaf0;
	box-shadow: inset 0 0 0 1.5px rgba(42, 22, 7, .14);
	color: var(--ely-ink);
	font: 500 1rem/1.3 var(--ely-body);
	transition: box-shadow .2s, background-color .2s;
	-webkit-appearance: none;
	appearance: none;
}
.ely-ct-field textarea { height: auto; min-height: 150px; padding: 14px 16px; line-height: 1.55; resize: vertical; }
.ely-ct-field select {
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a4206' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 20px;
	cursor: pointer;
}
.ely-ct-field :is(input, textarea)::placeholder { color: #a99073; font-weight: 400; }
.ely-ct-field :is(input, select, textarea):hover { box-shadow: inset 0 0 0 1.5px rgba(42, 22, 7, .3); }
.ely-ct-field :is(input, select, textarea):focus { outline: 0; background: #fff; box-shadow: inset 0 0 0 2px var(--ely-honey-deep), 0 0 0 4px rgba(242, 168, 29, .2); }
.ely-ct-field.is-invalid :is(input, textarea) { background: #fff6f4; box-shadow: inset 0 0 0 2px #c0392b; }
.ely-ct-err { margin: 6px 2px 0; color: #c0392b; font-size: .86rem; font-weight: 600; }
.ely-ct-err[hidden] { display: none; }

.ely-ct-consent { margin: 18px 0 0; font-size: .9rem; color: #5b3d1f; }
.ely-ct-consent label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.ely-ct-consent input[type="checkbox"] {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin: 1px 0 0;
	border-radius: 7px;
	background: #fff;
	box-shadow: inset 0 0 0 1.5px rgba(42, 22, 7, .3);
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
.ely-ct-consent input[type="checkbox"]:checked {
	background: var(--ely-honey) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b0d03' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
	box-shadow: inset 0 0 0 1.5px var(--ely-honey-deep);
}
.ely-ct-consent input[type="checkbox"]:focus-visible { outline: 3px solid var(--ely-honey); outline-offset: 2px; }
.ely-ct-consent.is-invalid input[type="checkbox"] { box-shadow: inset 0 0 0 2px #c0392b; }
.ely-ct-consent .ely-ct-err { margin-left: 34px; }

.ely-ct-submit { width: 100%; min-height: 60px; margin-top: 22px; font-size: 1.1rem; }
.ely-ct-submit .ely-ct-ico { width: 20px; height: 20px; transition: transform .3s var(--ely-ease); }
.ely-ct-submit:hover .ely-ct-ico { transform: translate(3px, -3px); }
.ely-ct-submit.is-loading { opacity: .7; pointer-events: none; }
.ely-ct-submit.is-loading .ely-ct-ico { animation: ely-ct-fly 1s ease-in-out infinite; }
@keyframes ely-ct-fly { 50% { transform: translate(6px, -6px); opacity: .4; } }

/* Message envoyé */
.ely-ct-done { display: grid; justify-items: center; padding: clamp(20px, 4vw, 40px) 10px; text-align: center; outline: 0; }
.ely-ct-done__badge { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 16px; border-radius: 50%; background: var(--ely-honey); box-shadow: 0 6px 0 var(--ely-honey-deep), 0 0 0 10px rgba(242, 168, 29, .18); color: var(--ely-darker); animation: ely-ct-pop .6s var(--ely-spring) both; }
.ely-ct-done__badge .ely-ct-ico { width: 44px; height: 44px; stroke-width: 2.6; }
@keyframes ely-ct-pop { from { transform: scale(.4); opacity: 0; } }
.ely-ct-done__title { margin: 0; font-family: var(--ely-display); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.05; }
.ely-ct-done__text { max-width: 30em; margin: 12px 0 24px; color: #5b3d1f; }

/* -------------------------------------------------------------------------
   Raccourcis FAQ
   ---------------------------------------------------------------------- */
.ely-ct-faq { padding-bottom: clamp(56px, 7vw, 96px); }
.ely-ct-faq__card { padding: clamp(22px, 3vw, 36px); border-radius: 30px; background: linear-gradient(160deg, #fff1c9, #ffe4a3); }
.ely-ct-faq__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.ely-ct-faq__ico { display: grid; place-items: center; flex: 0 0 auto; width: 54px; height: 54px; border-radius: 16px; background: #fff; color: #a0620a; }
.ely-ct-faq__ico .ely-ct-ico { width: 28px; height: 28px; }
.ely-ct-faq__head h2 { margin: 0; font-family: var(--ely-display); font-weight: 400; font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.1; }
.ely-ct-faq__head p { margin: 4px 0 0; color: #6b4a26; }
.ely-ct-faq__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ely-ct-faq__list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .85); color: var(--ely-ink) !important; font-weight: 600; text-decoration: none; transition: background-color .2s, transform .3s var(--ely-spring); }
.ely-ct-faq__list a:hover { background: #fff; transform: translateY(-2px); }
.ely-ct-faq__list .ely-ct-ico { width: 18px; height: 18px; color: #a0620a; }
.ely-ct-faq__all { display: inline-block; margin-top: 16px; color: var(--ely-ink) !important; font-weight: 700; text-decoration: underline; text-decoration-color: var(--ely-honey-deep); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* -------------------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------------- */
@media (max-width: 960px) {
	.ely-ct-body { grid-template-columns: minmax(0, 1fr); }
	.ely-ct-side { order: 2; }
	.ely-ct-formcard { order: 1; }
	.ely-ct-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.ely-ct-hero__bee { left: 2%; width: 44px; }
	.ely-ct-grid, .ely-ct-cards, .ely-ct-faq__list { grid-template-columns: minmax(0, 1fr); }
	.ely-ct-formcard { padding: 22px 16px; border-radius: 24px; }
	.ely-ct-card { padding: 16px; }
}

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