/* Le Grilladin — Menu du jour : carte (popup, aperçu, shortcode) */

.gmdj-carte {
	--gmdj-rouge: #c8161d;
	--gmdj-fond: #1e1e1e;
	--gmdj-texte: #f3f3f3;
	--gmdj-doux: rgba(255, 255, 255, .62);
	--gmdj-filet: rgba(255, 255, 255, .14);
	background: var(--gmdj-fond);
	color: var(--gmdj-texte);
	text-align: center;
	font-size: 15px;
	line-height: 1.4;
	overflow: hidden;
}

.gmdj-carte .gmdj-entete {
	background: var(--gmdj-rouge);
	color: #fff;
	padding: 22px 48px 18px;
}

.gmdj-carte .gmdj-surtitre {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .85);
}

.gmdj-carte h2.gmdj-titre {
	margin: 0;
	font-size: 28px;
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #fff;
}

.gmdj-carte .gmdj-date {
	margin: 6px 0 0;
	font-size: 14px;
	color: #fff;
}

.gmdj-carte .gmdj-corps {
	padding: 20px 24px 6px;
}

.gmdj-carte .gmdj-section + .gmdj-section {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--gmdj-filet);
}

.gmdj-carte .gmdj-section h3,
.gmdj-carte .gmdj-tarifs h3 {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #ff5a5f;
}

.gmdj-carte ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gmdj-carte li {
	margin: 0;
	padding: 3px 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--gmdj-texte);
}

.gmdj-carte .gmdj-note {
	margin: 16px 0 0;
	padding: 10px 12px;
	border-left: 3px solid var(--gmdj-rouge);
	background: rgba(255, 255, 255, .05);
	text-align: left;
	font-style: italic;
}

.gmdj-carte .gmdj-message {
	margin: 4px 0 8px;
	font-size: 17px;
	font-weight: 600;
}

.gmdj-carte .gmdj-horaires {
	margin: 0 0 6px;
	color: var(--gmdj-doux);
}

.gmdj-carte .gmdj-tarifs {
	margin: 16px 18px 18px;
	padding: 14px 16px 12px;
	border: 1px solid var(--gmdj-filet);
}

.gmdj-carte .gmdj-tarifs dl {
	margin: 0;
}

.gmdj-carte .gmdj-tarif {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 14px;
	padding: 7px 0;
	border-bottom: 1px dashed var(--gmdj-filet);
	text-align: left;
}

.gmdj-carte .gmdj-tarif:last-child {
	border-bottom: 0;
}

.gmdj-carte .gmdj-tarif dt {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--gmdj-doux);
}

.gmdj-carte .gmdj-tarif dd {
	margin: 0;
	font-size: 17px;
	font-weight: 800;
	white-space: nowrap;
	color: #fff;
}

.gmdj-carte .gmdj-mention {
	margin: 10px 0 0;
	font-size: 13px;
	font-style: italic;
	color: #ffd166;
}

/* Popup */

.gmdj-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(8, 8, 8, .75);
	opacity: 0;
	transition: opacity .2s ease;
}

.gmdj-overlay.est-ouvert {
	opacity: 1;
}

.gmdj-dialogue {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	overscroll-behavior: contain;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
	transform: translateY(14px);
	transition: transform .2s ease;
}

.gmdj-overlay.est-ouvert .gmdj-dialogue {
	transform: none;
}

.gmdj-fermer {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 1;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .25);
	color: #fff;
	font-size: 26px;
	line-height: 40px;
	cursor: pointer;
}

.gmdj-fermer:hover,
.gmdj-fermer:focus-visible {
	background: rgba(0, 0, 0, .5);
	outline: 2px solid #fff;
	outline-offset: 1px;
}

html.gmdj-bloque {
	overflow: hidden;
}

/* Intégration dans une page (shortcode) */

.gmdj-integre {
	max-width: 440px;
	margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
	.gmdj-overlay,
	.gmdj-dialogue {
		transition: none;
	}
}
