/* ==========================================================================
   Fiche événement (single-antic_evenement.php) - chargée uniquement sur ces pages, après agenda.css
   (cartes « autres événements »). Mêmes jetons que le site : encre, pétrole, teal, crème ; bordures
   fines, cartes discrètes, aucune texture ni décor ajouté.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Présentation + programme | informations pratiques
   -------------------------------------------------------------------------- */
.a-evt-page__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}

/* Sans présentation ni programme : la carte d'informations seule, en bandeau horizontal. */
.a-evt-page__grid--solo {
	grid-template-columns: minmax(0, 1fr);
}

.a-evt-page:has(.a-evt-page__grid--solo) {
	padding-block: clamp(36px, 5vw, 64px);
}

.a-evt-page__block + .a-evt-page__block {
	margin-top: clamp(40px, 5vw, 64px);
}

.a-evt-page .a-section-head {
	margin-bottom: 22px;
}

.a-evt-page__text {
	max-width: 70ch;
	color: var(--a-text);
}

/* Premier paragraphe = introduction, un peu plus grande. */
.a-evt-page__text > p:first-child {
	font-size: 1.15rem;
	color: var(--a-cream);
}

.a-evt-page__text h2,
.a-evt-page__text h3 {
	margin: 1.6em 0 0.5em;
}

.a-evt-page__text img {
	border-radius: var(--a-radius);
}

/* Programme : ligne de temps sobre, filet teal à gauche. */
.a-evt-prog {
	margin: 0;
	padding: 0;
	list-style: none;
	border-left: 1px solid var(--a-line-teal);
}

.a-evt-prog__item {
	position: relative;
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	gap: 16px;
	padding: 12px 0 12px 22px;
}

.a-evt-prog__item + .a-evt-prog__item {
	border-top: 1px solid var(--a-line);
}

.a-evt-prog__item::before {
	content: "";
	position: absolute;
	top: 20px;
	left: -4px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--c-teal);
}

.a-evt-prog__time {
	font-family: var(--a-ff-cond);
	font-stretch: var(--a-fs-cond);
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: var(--c-teal);
}

.a-evt-prog__text {
	color: var(--a-text);
}

/* Carte « Informations pratiques » : accompagne la lecture sur ordinateur. */
.a-evt-info {
	position: sticky;
	top: calc(var(--a-header-h) + 24px);
	padding: clamp(22px, 2.4vw, 30px);
	border: 1px solid var(--a-line);
	border-top: 2px solid var(--c-teal);
	border-radius: var(--a-radius);
	background: color-mix(in srgb, var(--a-petrol-deep) 45%, var(--c-ink));
}

.a-evt-info__title {
	margin: 0 0 4px;
	font-family: var(--a-ff-cond);
	font-stretch: var(--a-fs-cond);
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--a-cream);
}

.a-evt-info__status {
	display: inline-block;
	margin: 6px 0 0;
	padding: 3px 10px;
	border: 1px solid var(--a-line-strong);
	border-radius: 999px;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--a-muted);
}

.a-evt-info__status.is-live {
	border-color: var(--c-teal);
	color: var(--c-teal);
}

.a-evt-info__list {
	margin: 14px 0 0;
}

.a-evt-info__row {
	padding: 14px 0;
}

.a-evt-info__row + .a-evt-info__row {
	border-top: 1px solid var(--a-line);
}

.a-evt-info__row dt {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--a-muted);
}

.a-evt-info__row dt svg {
	width: 16px;
	height: 16px;
	color: var(--c-teal);
	flex: none;
}

.a-evt-info__row dd {
	margin: 0 0 0 24px;
	color: var(--a-cream);
}

.a-evt-info__row dd::first-letter {
	text-transform: uppercase;
}

.a-evt-info__cta {
	width: 100%;
	justify-content: center;
	margin-top: 18px;
}

/* Carte seule (pas de présentation) : informations sur deux colonnes. */
.a-evt-page__grid--solo .a-evt-info {
	position: static;
}

@media (min-width: 700px) {
	.a-evt-page__grid--solo .a-evt-info__list {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		column-gap: 32px;
	}

	.a-evt-page__grid--solo .a-evt-info__row {
		border-top: 1px solid var(--a-line);
	}
}

/* --------------------------------------------------------------------------
   Où nous retrouver ?
   -------------------------------------------------------------------------- */
.a-evt-map {
	border-top: 1px solid var(--a-line);
	background: color-mix(in srgb, var(--a-petrol-deep) 30%, var(--c-ink));
}

.a-evt-map__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
	gap: 18px;
	align-items: stretch;
}

.a-evt-map__frame {
	position: relative;
	min-height: 360px;
	overflow: hidden;
	border: 1px solid var(--a-line);
	border-radius: var(--a-radius);
	/* Aperçu local (aucune requête vers Google) : quadrillage discret. */
	background:
		radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--c-teal) 14%, transparent), transparent 55%),
		repeating-linear-gradient(0deg, transparent 0 39px, var(--a-line) 39px 40px),
		repeating-linear-gradient(90deg, transparent 0 39px, var(--a-line) 39px 40px),
		var(--c-ink);
}

.a-evt-map__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.a-evt-map__preview {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 24px;
	text-align: center;
}

.a-evt-map__pin {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 1px solid var(--a-line-teal);
	border-radius: 50%;
	background: var(--c-ink);
	color: var(--c-teal);
}

.a-evt-map__pin svg {
	width: 26px;
	height: 26px;
}

.a-evt-map__note {
	max-width: 42ch;
	margin: 0;
	font-size: 0.9rem;
	color: var(--a-muted);
}

.a-evt-map__card {
	display: flex;
	flex-direction: column;
	padding: clamp(22px, 2.4vw, 30px);
	border: 1px solid var(--a-line);
	border-radius: var(--a-radius);
	background: var(--c-ink);
}

.a-evt-map__place {
	margin: 0 0 6px;
	font-family: var(--a-ff-cond);
	font-stretch: var(--a-fs-cond);
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--a-cream);
}

.a-evt-map__address {
	display: flex;
	flex-direction: column;
	font-style: normal;
	color: var(--a-text);
}

.a-evt-map__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	margin-top: auto;
	padding-top: 24px;
}

.a-evt-map__open {
	font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Photos (retour en images)
   -------------------------------------------------------------------------- */
.a-evt-gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.a-evt-gallery--1 {
	grid-template-columns: minmax(0, 640px);
}

.a-evt-gallery--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.a-evt-gallery--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.a-evt-gallery a {
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	border: 1px solid var(--a-line);
	border-radius: var(--a-radius);
	transition: border-color 0.2s;
}

.a-evt-gallery a:hover,
.a-evt-gallery a:focus-visible {
	border-color: var(--c-teal);
}

.a-evt-gallery img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* --------------------------------------------------------------------------
   Navigation finale
   -------------------------------------------------------------------------- */
.a-evt-next {
	border-top: 1px solid var(--a-line);
}

.a-evt-next--bare {
	padding-block: clamp(32px, 4vw, 48px);
}

.a-evt-next__back {
	margin: 0;
	text-align: center;
}

.a-evt-next__grid + .a-evt-next__back {
	margin-top: 32px;
}

/* --------------------------------------------------------------------------
   Tablette et mobile
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
	.a-evt-page__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Informations pratiques d'abord : c'est ce que l'on cherche sur téléphone. */
	.a-evt-info {
		position: static;
		order: -1;
	}

	.a-evt-map__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.a-evt-map__frame {
		min-height: 300px;
	}

	.a-evt-gallery,
	.a-evt-gallery--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.a-evt-prog__item {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	.a-evt-map__frame {
		min-height: 260px;
	}

	.a-evt-map__actions .a-btn {
		width: 100%;
		justify-content: center;
	}
}
