/* Shanael – Expériences avec le chef (mobile-first) */

:root {
	--shx-accent: #af431e;
	--shx-accent-dark: #8e3517;
	--shx-ink: #1d1d1f;
	--shx-muted: #6b6b70;
	--shx-line: #e6e2dc;
	--shx-paper: #ffffff;
	--shx-cream: #faf7f2;
	--shx-radius: 16px;
	--shx-head-font: "Playfair Display", Georgia, "Times New Roman", serif;
	--shx-body-font: inherit;
}

/* ------------------------------------------------------------------ */
/* Bandeau                                                             */
/* ------------------------------------------------------------------ */

.shx-topbar {
	position: relative;
	z-index: 1001;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 48px 8px 16px;
	background: var(--shx-bar-bg, var(--shx-accent));
	color: var(--shx-bar-color, #fff);
	font-family: var(--shx-body-font);
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
}
.shx-topbar[hidden] { display: none; }

.shx-topbar__text { margin: 0; max-width: 1100px; }

.shx-topbar__link,
.shx-topbar__link:visited {
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	/* zone tactile confortable sans changer la hauteur visuelle */
	display: inline-block;
	padding: 6px 2px;
	margin: -6px 0;
}
.shx-topbar__link:hover,
.shx-topbar__link:focus-visible { text-decoration-thickness: 2px; color: inherit; }

.shx-topbar__long { display: none; }
.shx-topbar__short { display: inline; }

.shx-topbar__close {
	position: absolute;
	top: 50%;
	right: 4px;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	opacity: .85;
	box-shadow: none;
	min-height: 0;
}
.shx-topbar__close:hover,
.shx-topbar__close:focus-visible { opacity: 1; background: rgba(255, 255, 255, .12); color: inherit; }

@media (min-width: 600px) {
	.shx-topbar { font-size: 15px; padding: 9px 56px; }
	.shx-topbar__long { display: inline; }
	.shx-topbar__short { display: none; }
	.shx-topbar__close { right: 8px; }
}

/* ------------------------------------------------------------------ */
/* Section & cartes                                                    */
/* ------------------------------------------------------------------ */

.shx-section {
	max-width: 1080px;
	margin: 0 auto;
	padding: clamp(40px, 8vw, 88px) 16px;
	scroll-margin-top: var(--shx-scroll-offset, 120px);
	color: var(--shx-ink);
	box-sizing: border-box;
}
.shx-section *, .shx-modal * { box-sizing: border-box; }

.shx-section__title {
	font-family: var(--shx-head-font);
	font-size: clamp(28px, 5vw, 42px);
	line-height: 1.15;
	text-align: center;
	margin: 0 0 12px;
}
.shx-section__intro {
	max-width: 640px;
	margin: 0 auto clamp(28px, 5vw, 48px);
	text-align: center;
	color: var(--shx-muted);
	font-size: clamp(16px, 2vw, 18px);
	line-height: 1.6;
}

.shx-list { display: grid; gap: 0; }

.shx-card {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	padding: 28px 0;
	border-top: 1px solid var(--shx-line);
}
.shx-card:first-child { border-top: 0; padding-top: 0; }

.shx-card__media { margin: 0; }
.shx-card__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--shx-radius);
	background: var(--shx-cream);
}
.shx-card__img--empty {
	background:
		radial-gradient(circle at 30% 30%, rgba(175, 67, 30, .12), transparent 60%),
		var(--shx-cream);
}

.shx-card__title {
	font-family: var(--shx-head-font);
	font-size: clamp(22px, 3.2vw, 28px);
	line-height: 1.2;
	margin: 0 0 8px;
}
.shx-card__price { margin: 0 0 4px; line-height: 1.1; }
.shx-card__amount {
	display: block;
	font-size: clamp(30px, 5vw, 38px);
	font-weight: 700;
	color: var(--shx-ink);
}
.shx-card__per { color: var(--shx-muted); font-size: 15px; }
.shx-card__meta { margin: 6px 0 12px; color: var(--shx-muted); font-size: 15px; }
.shx-card__desc { margin: 0 0 20px; font-size: 16px; line-height: 1.6; }

.shx-card__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
}

.shx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 28px;
	border: 1px solid var(--shx-accent);
	border-radius: 999px;
	background: var(--shx-accent);
	color: #fff;
	font-family: var(--shx-body-font);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, transform .1s;
	text-decoration: none;
}
.shx-btn:hover,
.shx-btn:focus-visible { background: var(--shx-accent-dark); border-color: var(--shx-accent-dark); color: #fff; }
.shx-btn:active { transform: translateY(1px); }
.shx-btn[disabled] { opacity: .6; cursor: wait; }
.shx-btn--full { width: 100%; }

.shx-gift,
.shx-gift:visited {
	align-self: center;
	color: var(--shx-accent);
	font-size: 15px;
	text-decoration: underline;
	text-underline-offset: 3px;
	padding: 8px 0;
}

@media (min-width: 600px) {
	.shx-section { padding-left: 24px; padding-right: 24px; }
	.shx-card {
		grid-template-columns: minmax(200px, 38%) 1fr;
		gap: clamp(20px, 4vw, 40px);
		align-items: start;
		padding: 36px 0;
	}
	.shx-card__img { aspect-ratio: 1 / 1; }
	.shx-card__actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 20px; }
	.shx-gift { align-self: auto; }
}

@media (min-width: 960px) {
	.shx-card { grid-template-columns: 340px 1fr; }
}

/* ------------------------------------------------------------------ */
/* Popup                                                               */
/* ------------------------------------------------------------------ */

html.shx-lock, html.shx-lock body { overflow: hidden; }

.shx-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: stretch;
	justify-content: center;
}
.shx-modal[hidden] { display: none; }

.shx-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(20, 16, 14, .6);
	animation: shx-fade .2s ease-out;
}

.shx-modal__dialog {
	position: relative;
	width: 100%;
	height: 100%;
	height: 100dvh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	background: var(--shx-paper);
	color: var(--shx-ink);
	padding: 12px 16px calc(24px + env(safe-area-inset-bottom));
	animation: shx-up .25s ease-out;
}

.shx-modal__close {
	position: sticky;
	top: 0;
	float: right;
	margin: 0 -4px 8px 12px;
	z-index: 2;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--shx-paper);
	color: var(--shx-ink);
	cursor: pointer;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .12);
	min-height: 0;
}
.shx-modal__close:hover,
.shx-modal__close:focus-visible { background: var(--shx-cream); color: var(--shx-ink); }

.shx-modal__head { margin-bottom: 20px; padding-top: 8px; }
.shx-modal__kicker {
	margin: 0 0 4px;
	color: var(--shx-accent);
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-weight: 600;
}
.shx-modal__title {
	font-family: var(--shx-head-font);
	font-size: clamp(22px, 5vw, 28px);
	line-height: 1.2;
	margin: 0 0 8px;
}
.shx-modal__recap {
	margin: 0;
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--shx-cream);
	font-size: 15px;
}
.shx-modal__recap strong { font-size: 18px; }

.shx-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

.shx-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.shx-field label { font-size: 14px; font-weight: 600; color: var(--shx-ink); margin: 0; }
.shx-field label span { color: var(--shx-accent); }

.shx-form input[type="text"],
.shx-form input[type="tel"],
.shx-form input[type="email"],
.shx-form select,
.shx-form textarea {
	width: 100%;
	max-width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid #cfcac3;
	border-radius: 10px;
	background: #fff;
	color: var(--shx-ink);
	font-family: inherit;
	font-size: 16px; /* évite le zoom auto sur iOS */
	line-height: 1.4;
	box-shadow: none;
	appearance: auto;
}
.shx-form textarea { min-height: 96px; resize: vertical; }
.shx-form input:focus,
.shx-form select:focus,
.shx-form textarea:focus {
	outline: none;
	border-color: var(--shx-accent);
	box-shadow: 0 0 0 3px rgba(175, 67, 30, .18);
}
.shx-form .shx-invalid { border-color: #c62828; }

.shx-total {
	justify-content: center;
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--shx-cream);
}
.shx-total__label { font-size: 14px; color: var(--shx-muted); }
.shx-total__value { font-size: 22px; font-weight: 700; }

.shx-check { flex-direction: row; align-items: flex-start; gap: 10px; }
.shx-check input { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--shx-accent); }
.shx-check label { font-weight: 400; font-size: 14px; line-height: 1.5; }

.shx-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.shx-form__error {
	margin: 14px 0 0;
	padding: 10px 14px;
	border-radius: 10px;
	background: #fdecea;
	color: #8a1c1c;
	font-size: 14px;
}
.shx-form .shx-btn { margin-top: 18px; }
.shx-form__note { margin: 10px 0 0; text-align: center; color: var(--shx-muted); font-size: 13px; }

.shx-success { text-align: center; padding: 32px 0 8px; color: var(--shx-ink); }
.shx-success svg { color: #2e7d32; margin-bottom: 12px; }
.shx-success p { font-size: 17px; line-height: 1.6; margin: 0 0 20px; }

@media (min-width: 600px) {
	.shx-modal { align-items: center; padding: 24px; }
	.shx-modal__dialog {
		max-width: 560px;
		height: auto;
		max-height: calc(100vh - 48px);
		max-height: calc(100dvh - 48px);
		border-radius: 20px;
		padding: 32px;
		box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
	}
	.shx-modal__close { margin: -16px -16px 8px 12px; }
	.shx-grid { grid-template-columns: 1fr 1fr; }
	.shx-field--full { grid-column: 1 / -1; }
}

@keyframes shx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes shx-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.shx-modal__overlay, .shx-modal__dialog { animation: none; }
}

/* ------------------------------------------------------------------ */
/* Priorité sur le thème (Soulkitchen impose p, a:link, button…)       */
/* ------------------------------------------------------------------ */

#shx-topbar.shx-topbar,
#shx-topbar.shx-topbar p,
#shx-topbar.shx-topbar span,
#shx-topbar.shx-topbar a,
#shx-topbar.shx-topbar a:link,
#shx-topbar.shx-topbar a:visited,
#shx-topbar.shx-topbar a:hover,
#shx-topbar.shx-topbar a:focus,
#shx-topbar.shx-topbar a:active,
#shx-topbar.shx-topbar button {
	color: var(--shx-bar-color, #fff) !important;
}
#shx-topbar.shx-topbar p { font-size: inherit; line-height: inherit; margin: 0; }

.shx-section .shx-btn,
.shx-modal .shx-btn,
.shx-section button.shx-btn:not(.button-outline),
.shx-modal button.shx-btn:not(.button-outline) {
	background: var(--shx-accent) !important;
	border-color: var(--shx-accent) !important;
	color: #fff !important;
}
.shx-section .shx-btn:hover,
.shx-section .shx-btn:focus-visible,
.shx-modal .shx-btn:hover,
.shx-modal .shx-btn:focus-visible {
	background: var(--shx-accent-dark) !important;
	border-color: var(--shx-accent-dark) !important;
}

.shx-section a.shx-gift,
.shx-section a.shx-gift:link,
.shx-section a.shx-gift:visited,
.shx-section a.shx-gift:hover {
	color: var(--shx-accent) !important;
}

.shx-section .shx-card__title,
.shx-section .shx-section__title,
.shx-modal .shx-modal__title { color: var(--shx-ink); }
.shx-section .shx-card__desc { color: var(--shx-ink); }
.shx-modal button.shx-modal__close,
.shx-modal button.shx-modal__close:not(.button-outline) {
	background: var(--shx-paper) !important;
	color: var(--shx-ink) !important;
	padding: 0 !important;
}
.shx-modal .shx-modal__kicker { color: var(--shx-accent); }
#shx-topbar.shx-topbar button.shx-topbar__close {
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
}
#shx-topbar.shx-topbar button.shx-topbar__close:hover,
#shx-topbar.shx-topbar button.shx-topbar__close:focus-visible {
	background: rgba(255, 255, 255, .15) !important;
}
