/* Popup Infos Auberge — couleurs reprises du site */
.a2m-popup {
	--a2m-green: #053426;
	--a2m-green-2: #0b4a37;
	--a2m-gold: #c2a25d;
	--a2m-gold-dark: #9c7f3f;
	--a2m-cream: #f9f8f2;
	--a2m-ink: #22201c;
	--a2m-muted: #5e5a52;
	--a2m-line: #e7e2d4;
	--a2m-radius: 18px;
	--a2m-ease: cubic-bezier(.22, 1, .36, 1);

	position: fixed;
	inset: 0;
	z-index: 99990; /* sous le bandeau cookies Complianz (99999) */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	font-family: Verdana, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--a2m-ink);
	-webkit-font-smoothing: antialiased;
}
.a2m-popup[hidden] { display: none; }
.a2m-popup *, .a2m-popup *::before, .a2m-popup *::after { box-sizing: border-box; }

.a2m-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(5, 30, 22, .55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity .35s ease;
}

.a2m-popup__panel {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--a2m-radius);
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .04);
	overflow: hidden;
	outline: none;
	opacity: 0;
	transform: translateY(24px) scale(.97);
	transition: opacity .45s var(--a2m-ease), transform .45s var(--a2m-ease);
}

.a2m-popup.is-open .a2m-popup__backdrop { opacity: 1; }
.a2m-popup.is-open .a2m-popup__panel { opacity: 1; transform: none; }

/* --- Bouton fermer --- */
.a2m-popup__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	cursor: pointer;
	transition: background .2s, transform .2s;
}
.a2m-popup__close:hover { background: rgba(255, 255, 255, .28); transform: rotate(90deg); }
.a2m-popup__close:focus-visible { outline: 2px solid var(--a2m-gold); outline-offset: 2px; }

/* --- En-tête --- */
.a2m-popup__head {
	flex: none;
	padding: 28px 28px 22px;
	text-align: center;
	color: #fff;
	background:
		radial-gradient(120% 140% at 50% -20%, var(--a2m-green-2) 0%, var(--a2m-green) 70%);
}
.a2m-popup__logo {
	display: block;
	width: auto;
	max-width: 180px;
	height: 64px;
	object-fit: contain;
	margin: 0 auto 12px;
}
.a2m-popup__kicker {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--a2m-gold);
}
.a2m-popup__title {
	margin: 0;
	font-family: Roboto, system-ui, sans-serif;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 700;
	color: #fff;
}

/* --- Corps --- */
.a2m-popup__body {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 22px 28px 6px;
	font-size: 15px;
	line-height: 1.55;
}
.a2m-popup__section + .a2m-popup__offer,
.a2m-popup__offer + .a2m-popup__section { margin-top: 20px; }

.a2m-popup__h3 {
	margin: 0 0 10px;
	font-family: Roboto, system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--a2m-green);
}

.a2m-popup__dates {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}
.a2m-popup__dates li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--a2m-line);
	border-radius: 12px;
	background: var(--a2m-cream);
}
.a2m-popup__dates li.is-highlight {
	border-color: var(--a2m-gold);
	background: #fbf5e7;
	font-weight: 700;
}
.a2m-popup__badge {
	flex: none;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #fff;
	background: var(--a2m-green);
}
.is-highlight .a2m-popup__badge { background: var(--a2m-gold-dark); }

.a2m-popup__note {
	margin: 10px 0 0;
	font-size: 13.5px;
	color: var(--a2m-muted);
}
.a2m-popup a:not(.a2m-popup__btn) {
	color: var(--a2m-green);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* --- Offre --- */
.a2m-popup__offer {
	position: relative;
	padding: 18px 20px;
	border-radius: 14px;
	color: #fff;
	background: linear-gradient(135deg, var(--a2m-gold) 0%, var(--a2m-gold-dark) 100%);
	overflow: hidden;
}
.a2m-popup__offer::after {
	content: "";
	position: absolute;
	right: -40px;
	top: -40px;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
}
.a2m-popup__offer-tag {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	opacity: .9;
}
.a2m-popup__offer-big {
	margin: 2px 0 6px;
	font-family: Roboto, system-ui, sans-serif;
	font-size: 34px;
	line-height: 1.1;
	font-weight: 800;
}
.a2m-popup__offer-big span { font-size: 17px; font-weight: 600; }
.a2m-popup__offer-text { margin: 0; font-size: 14px; line-height: 1.5; position: relative; z-index: 1; }

/* --- Liste restaurant --- */
.a2m-popup__lead { margin: -4px 0 10px; color: var(--a2m-muted); font-size: 14px; }
.a2m-popup__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.a2m-popup__list li {
	position: relative;
	margin: 0;
	padding-left: 20px;
	font-size: 14.5px;
}
.a2m-popup__list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .55em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--a2m-gold);
}
.a2m-popup__list strong { color: var(--a2m-green); }

/* --- Pied --- */
.a2m-popup__foot {
	flex: none;
	padding: 16px 28px 22px;
	border-top: 1px solid var(--a2m-line);
	background: #fff;
}
.a2m-popup__foot-text {
	margin: 0 0 12px;
	text-align: center;
	font-size: 13.5px;
	color: var(--a2m-muted);
}
.a2m-popup__actions { display: flex; gap: 10px; }
.a2m-popup__btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 18px;
	border-radius: 999px;
	font: 700 15px/1.2 Roboto, system-ui, sans-serif;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform .2s var(--a2m-ease), box-shadow .2s, background .2s, color .2s;
}
.a2m-popup__btn--primary {
	border: 0;
	color: #fff !important;
	background: var(--a2m-green);
	box-shadow: 0 8px 20px -8px rgba(5, 52, 38, .7);
}
.a2m-popup__btn--primary:hover { background: var(--a2m-green-2); transform: translateY(-1px); }
.a2m-popup__btn--ghost {
	border: 1px solid var(--a2m-line);
	color: var(--a2m-ink);
	background: #fff;
}
.a2m-popup__btn--ghost:hover { border-color: var(--a2m-gold); color: var(--a2m-green); }
.a2m-popup__btn:focus-visible { outline: 2px solid var(--a2m-gold); outline-offset: 2px; }

/* Empêche le défilement de la page derrière */
html.a2m-popup-lock, html.a2m-popup-lock body { overflow: hidden !important; }

/* --- Mobile : panneau qui monte du bas --- */
@media (max-width: 600px) {
	.a2m-popup { align-items: flex-end; padding: 0; }
	.a2m-popup__panel {
		max-width: none;
		max-height: 92vh;
		max-height: 92dvh;
		border-radius: 22px 22px 0 0;
		transform: translateY(100%);
		transition-duration: .5s;
	}
	.a2m-popup__panel::before {
		content: "";
		position: absolute;
		top: 8px;
		left: 50%;
		width: 40px;
		height: 4px;
		margin-left: -20px;
		border-radius: 4px;
		background: rgba(255, 255, 255, .35);
		z-index: 2;
	}
	.a2m-popup__head { padding: 26px 20px 18px; }
	.a2m-popup__logo { height: 52px; margin-bottom: 8px; }
	.a2m-popup__title { font-size: 22px; }
	.a2m-popup__body { padding: 18px 20px 4px; font-size: 14.5px; }
	.a2m-popup__dates li { gap: 10px; padding: 9px 12px; font-size: 14px; line-height: 1.4; }
	.a2m-popup__badge { font-size: 10px; padding: 3px 7px; }
	.a2m-popup__foot-text { margin-bottom: 10px; font-size: 13px; }
	.a2m-popup__offer-big { font-size: 30px; }
	.a2m-popup__foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); }
	.a2m-popup__actions { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.a2m-popup__backdrop, .a2m-popup__panel { transition-duration: .01ms !important; }
	.a2m-popup__panel { transform: none !important; }
}
