/* Popup Infos Autrans Location — charte graphique Autrans Location (Petite Pomme) */
@font-face { font-family: 'TT Norms Pro'; src: url('fonts/tt-norms-pro-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'TT Norms Pro'; src: url('fonts/tt-norms-pro-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

.alp-popup {
	/* Les noms « green » / « gold » sont gardés du popup de l'Auberge : green = couleur forte du thème, gold = accent. */
	--alp-green: #776664;      /* taupe */
	--alp-green-2: #8a7774;
	--alp-gold: #CEB792;       /* beige */
	--alp-gold-dark: #A68C69;  /* doré */
	--alp-head: #A68C69;
	--alp-head-2: #CEB792;
	--alp-offer: #A68C69;
	--alp-offer-2: #CEB792;
	--alp-offer-big: #fff;
	--alp-cream: #FAF6EF;
	--alp-ink: #3A2F28;
	--alp-muted: #776664;
	--alp-line: #E9E0D2;
	--alp-motif: none;
	--alp-title-font: 'pf-marlet-display', Georgia, 'Times New Roman', serif;
	--alp-radius: 18px;
	--alp-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: 'TT Norms Pro', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--alp-ink);
	-webkit-font-smoothing: antialiased;
}
.alp-popup[hidden] { display: none; }
.alp-popup *, .alp-popup *::before, .alp-popup *::after { box-sizing: border-box; }

.alp-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(40, 24, 20, .55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity .35s ease;
}

.alp-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(--alp-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(--alp-ease), transform .45s var(--alp-ease);
}

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

/* --- Bouton fermer --- */
.alp-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;
}
.alp-popup__close:hover { background: rgba(255, 255, 255, .28); transform: rotate(90deg); }
.alp-popup__close:focus-visible { outline: 2px solid var(--alp-gold); outline-offset: 2px; }

/* --- En-tête --- */
.alp-popup__head {
	flex: none;
	padding: 28px 28px 22px;
	text-align: center;
	color: #fff;
	background-color: var(--alp-head);
	background-image: var(--alp-motif), linear-gradient(160deg, var(--alp-head-2) 0%, var(--alp-head) 75%);
	background-size: 240px auto, auto;
}
.alp-popup__logo {
	display: block;
	width: auto;
	max-width: 200px;
	height: 84px;
	object-fit: contain;
	margin: 0 auto 12px;
}
.alp-popup__kicker {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--alp-gold);
}
.alp-popup__title {
	margin: 0;
	font-family: var(--alp-title-font);
	font-size: 30px;
	line-height: 1.15;
	font-weight: 700;
	color: #fff;
	text-wrap: balance;
}

/* --- Corps --- */
.alp-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;
}
.alp-popup__section + .alp-popup__offer,
.alp-popup__offer + .alp-popup__section,
.alp-popup__section + .alp-popup__section { margin-top: 20px; }

.alp-popup__h3 {
	margin: 0 0 10px;
	font-family: var(--alp-title-font);
	font-size: 17px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--alp-green);
}

.alp-popup__dates {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}
.alp-popup__dates li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--alp-line);
	border-radius: 12px;
	background: var(--alp-cream);
}
.alp-popup__dates li.is-highlight {
	border-color: var(--alp-gold);
	background: #F6EEE2;
	font-weight: 700;
}
.alp-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(--alp-green);
}
.is-highlight .alp-popup__badge { background: var(--alp-gold-dark); }

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

/* --- Offre --- */
.alp-popup__offer {
	position: relative;
	padding: 18px 20px;
	border-radius: 14px;
	color: #fff;
	background-color: var(--alp-offer);
	background-image: var(--alp-motif), linear-gradient(135deg, var(--alp-offer-2) 0%, var(--alp-offer) 100%);
	background-size: 200px auto, auto;
	overflow: hidden;
}
.alp-popup__offer::after {
	content: "";
	position: absolute;
	right: -40px;
	top: -40px;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
}
.alp-popup__offer-tag {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	opacity: .9;
}
.alp-popup__offer-big {
	margin: 2px 0 6px;
	font-family: var(--alp-title-font);
	font-size: 38px;
	line-height: 1.1;
	font-weight: 700;
	color: var(--alp-offer-big);
	white-space: nowrap; /* le symbole € reste à droite du prix */
}
.alp-popup__offer-big span { font-family: 'TT Norms Pro', system-ui, sans-serif; font-size: 17px; font-weight: 400; color: #fff; }
.alp-popup__offer-text { margin: 0; font-size: 14px; line-height: 1.5; position: relative; z-index: 1; }

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

/* --- Pied --- */
.alp-popup__foot {
	flex: none;
	padding: 16px 28px 22px;
	border-top: 1px solid var(--alp-line);
	background: #fff;
}
.alp-popup__foot-text {
	margin: 0 0 12px;
	text-align: center;
	font-size: 13.5px;
	color: var(--alp-muted);
}
.alp-popup__actions { display: flex; gap: 10px; }
.alp-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 'TT Norms Pro', system-ui, sans-serif;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform .2s var(--alp-ease), box-shadow .2s, background .2s, color .2s;
}
.alp-popup__btn--primary {
	border: 0;
	color: #fff !important;
	background: var(--alp-green);
	box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45);
}
.alp-popup__btn--primary:hover { background: var(--alp-green-2); transform: translateY(-1px); }
.alp-popup__btn--ghost {
	border: 1px solid var(--alp-line);
	color: var(--alp-ink);
	background: #fff;
}
.alp-popup__btn--ghost:hover { border-color: var(--alp-gold); color: var(--alp-green); }
.alp-popup__btn:focus-visible { outline: 2px solid var(--alp-gold); outline-offset: 2px; }

/* --- Photo --- */
.alp-popup__photo { margin: 0 0 20px; border-radius: 12px; overflow: hidden; aspect-ratio: 21 / 9; background: var(--alp-cream); }
.alp-popup__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* --- Thèmes de la charte --- */
.alp-popup.alp-theme--coeur {
	--alp-green: #770808;
	--alp-green-2: #8f1414;
	--alp-head: #770808;
	--alp-head-2: #770808;
	--alp-offer: #770808;
	--alp-offer-2: #770808;
	--alp-offer-big: #CEB792;
	--alp-motif: url('img/motif-artdeco.png');
}
.alp-popup.alp-theme--blanche {
	--alp-green: #01515C;
	--alp-green-2: #0a6672;
	--alp-gold: #94ADA8;
	--alp-gold-dark: #01515C;
	--alp-head: #01515C;
	--alp-head-2: #0a6672;
	--alp-offer: #01515C;
	--alp-offer-2: #94ADA8;
	--alp-line: #DCE6E4;
	--alp-cream: #F3F7F6;
}
.alp-popup.alp-theme--blanche .alp-popup__dates li.is-highlight { background: #EAF1EF; }

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

/* --- Mobile : panneau qui monte du bas --- */
@media (max-width: 600px) {
	.alp-popup { align-items: flex-end; padding: 0; }
	.alp-popup__panel {
		max-width: none;
		max-height: 92vh;
		max-height: 92dvh;
		border-radius: 22px 22px 0 0;
		transform: translateY(100%);
		transition-duration: .5s;
	}
	.alp-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;
	}
	.alp-popup__head { padding: 26px 20px 18px; }
	.alp-popup__logo { height: 64px; margin-bottom: 8px; }
	.alp-popup__photo { margin-bottom: 16px; aspect-ratio: 5 / 2; }
	.alp-popup__title { font-size: 24px; }
	.alp-popup__body { padding: 18px 20px 4px; font-size: 14.5px; }
	.alp-popup__dates li { gap: 10px; padding: 9px 12px; font-size: 14px; line-height: 1.4; }
	.alp-popup__badge { font-size: 10px; padding: 3px 7px; }
	.alp-popup__foot-text { margin-bottom: 10px; font-size: 13px; }
	.alp-popup__offer-big { font-size: 32px; }
	.alp-popup__foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); }
	.alp-popup__actions { flex-direction: column; gap: 8px; }
}

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

/* Thème Autrans Location : en-tête crème, logo et titre dorés (le logo doré disparaît sur un fond doré) */
.alp-popup.alp-theme--autrans { --alp-head: #FAF6EF; --alp-head-2: #FAF6EF; }
.alp-popup.alp-theme--autrans .alp-popup__head { border-bottom: 1px solid var(--alp-line); }
.alp-popup.alp-theme--autrans .alp-popup__kicker { color: #776664; }
.alp-popup.alp-theme--autrans .alp-popup__title { color: #A68C69; }
.alp-popup.alp-theme--autrans .alp-popup__close { background: rgba(166, 140, 105, .14); color: #776664; }
.alp-popup.alp-theme--autrans .alp-popup__close:hover { background: rgba(166, 140, 105, .28); }
.alp-popup.alp-theme--autrans .alp-popup__panel::before { background: rgba(119, 102, 100, .3); }
