/**
 * Meetings of the front of 2026 (openspec redesign-events): list, themes, page of a meeting, map.
 * Components of https://acadi-site.pages.dev/, on the tokens of style.css.
 */

/* ---------- Lists of meetings ---------- */

.agenda {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--trait);
	list-style: none;
}

.agenda__item {
	border-bottom: 1px solid var(--trait);
}

.rdv {
	position: relative;
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr) 200px;
	align-items: center;
	gap: 24px;
	padding-block: 22px;
	color: inherit;
	text-decoration: none;
}

.rdv:hover .rdv__titre {
	color: var(--bleu-texte);
	text-decoration: underline 2px;
	text-decoration-color: var(--bleu);
}

.rdv__date {
	font-variant-numeric: lining-nums tabular-nums;
	line-height: 1;
}

.rdv__jour {
	display: block;
	font-size: 2.6rem;
	font-weight: 800;
	letter-spacing: -.03em;
}

.rdv__mois {
	display: block;
	margin-top: 6px;
	color: var(--bleu-texte);
	font-size: .95rem;
	font-weight: 700;
}

.rdv__titre {
	margin: 0 0 6px;
	font-size: 1.2rem;
	font-weight: 750;
	line-height: 1.3;
}

.rdv__titre .etiquette {
	display: table;
	margin: 0 0 10px;
}

.rdv__meta, .rdv__qui {
	display: block;
	margin: 0;
	font-size: .95rem;
}

.rdv__meta {
	color: var(--gris);
}

.rdv__qui {
	margin-top: 6px;
	font-weight: 600;
}

.rdv__visuel {
	display: grid;
	place-items: center;
	justify-self: end;
	width: 200px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 4px;
	background: var(--brume);
}

.rdv__visuel img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.rdv__visuel--vide {
	background: transparent;
}

.agenda--avenir .rdv {
	grid-template-columns: 112px minmax(0, 1fr) 320px;
}

.agenda--avenir .rdv__visuel {
	width: 320px;
}

.a-venir {
	margin-bottom: 40px;
}

@media (max-width: 900px) {
	.agenda--avenir .rdv {
		grid-template-columns: 72px minmax(0, 1fr);
		align-items: start;
		gap: 14px 16px;
	}

	.agenda--avenir .rdv__visuel {
		grid-area: 1 / 1 / auto / -1;
		justify-self: stretch;
		width: 100%;
	}

	.agenda--avenir .rdv__visuel--vide {
		display: none;
	}
}

@media (max-width: 760px) {
	.rdv {
		grid-template-columns: 72px minmax(0, 1fr);
		align-items: start;
		gap: 16px;
	}

	.rdv__jour {
		font-size: 2rem;
	}

	.agenda:not(.agenda--avenir) .rdv__visuel {
		display: none;
	}
}

/* Search, themes, years */

.filtres {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.filtres--themes {
	margin-bottom: 32px;
}

.filtre {
	display: inline-block;
	padding: 7px 14px;
	border: 1.5px solid var(--trait);
	border-radius: 999px;
	background: #fff;
	color: var(--encre);
	font: inherit;
	font-size: .95rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.filtre:hover {
	border-color: var(--encre);
	color: var(--encre);
}

.filtre[aria-pressed="true"], .filtre[aria-current="true"], .filtre[aria-current="page"] {
	border-color: var(--encre);
	background: var(--encre);
	color: #fff;
}

.annees {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin: 0;
	padding: 0;
	font-weight: 700;
	font-variant-numeric: lining-nums;
	list-style: none;
}

.annees a {
	color: var(--gris);
	text-decoration: none;
}

.annees a:hover {
	color: var(--bleu-texte);
	text-decoration: underline;
}

.annee {
	padding-top: 40px;
	scroll-margin-top: calc(var(--entete) + 16px);
}

.annee__titre {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin: 0 0 8px;
	font-size: clamp(2.4rem, 5vw, 3.6rem);
	font-weight: 800;
	letter-spacing: -.03em;
}

.annee__titre small {
	color: var(--gris);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0;
}

@media (max-width: 860px) {
	.filtre {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	.annees {
		gap: 6px;
	}

	.annees a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 58px;
		min-height: 44px;
		padding: 0 10px;
		border: 1px solid var(--trait);
		border-radius: 999px;
	}
}

/* ---------- Page of a meeting ---------- */

.fiche__etat {
	margin: 0 0 12px;
}

.fiche__accroche {
	max-width: 48ch;
	margin-top: 14px;
	color: var(--gris);
	font-size: 1.3rem;
}

.fiche {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	align-items: start;
	gap: clamp(32px, 5vw, 72px);
	padding-bottom: clamp(48px, 7vw, 96px);
}

.fiche__visuel {
	margin: 8px 0 40px;
}

.fiche__visuel img {
	width: 100%;
	height: auto;
	border: 1px solid var(--trait);
	border-radius: 4px;
}

.prose-titre {
	margin: 0 0 14px;
	font-size: 1.15rem;
	font-weight: 800;
}

.intervenants-liste {
	display: grid;
	gap: 14px;
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
}

.intervenants-liste a {
	color: var(--encre);
	text-decoration-color: var(--bleu);
}

.intervenants-liste strong {
	font-size: 1.1rem;
}

.intervenants-liste span {
	display: block;
	color: var(--gris);
}

.prose ul, .prose ol {
	margin: 0 0 1em;
	padding-left: 1.3em;
}

.prose li {
	margin-bottom: .35em;
}

.prose blockquote {
	margin: 1.4em 0;
	padding-left: 20px;
	border-left: 4px solid var(--bleu);
	color: var(--gris);
}

.fiche__infos {
	margin-top: 32px;
}

.fiche__partenaires {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--trait);
}

.fiche__partenaires h2 + .logos, .fiche__partenaires .logos + h2 {
	margin-top: 16px;
}

.fiche__partenaires .logos + h2 {
	margin-top: 32px;
}

.fiche__themes {
	margin-top: 32px;
}

.voisins {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--trait);
}

.voisins a {
	display: block;
	color: var(--encre);
	font-weight: 700;
	text-decoration: none;
}

.voisins a span {
	display: block;
	margin-bottom: 4px;
	color: var(--gris);
	font-size: .85rem;
	font-weight: 600;
}

.voisins a:hover {
	color: var(--bleu-texte);
}

.voisins__suivant {
	text-align: right;
}

/* Panel */

.panneau {
	position: sticky;
	top: calc(var(--entete) + 24px);
	padding: 24px;
	border-top: 3px solid var(--bleu);
	border-radius: 0 0 var(--rayon) var(--rayon);
	background: var(--brume);
}

.grande-date {
	display: flex;
	align-items: flex-end;
	gap: 14px;
	margin: 6px 0 4px;
	line-height: .82;
}

.grande-date__jour {
	color: var(--encre);
	font-size: 4.6rem;
	font-weight: 800;
	font-variant-numeric: lining-nums tabular-nums;
	letter-spacing: -.05em;
}

.grande-date__reste {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-bottom: .5em;
	font-size: 1.3rem;
	font-weight: 800;
	line-height: 1;
}

.grande-date__reste span:last-child {
	color: var(--bleu-texte);
}

.panneau dl {
	display: grid;
	gap: 14px;
	margin: 18px 0 22px;
}

.panneau dt {
	color: var(--gris);
	font-size: .85rem;
	font-weight: 700;
}

.panneau dd {
	margin: 2px 0 0;
	font-weight: 600;
}

.panneau__adresse {
	font-weight: 500;
}

.panneau .actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.panneau .actions .btn-bleu, .panneau .actions .btn-encre, .panneau .actions .btn-contour {
	width: 100%;
}

.panneau__etat {
	margin: 0;
	font-weight: 700;
}

.actions__note {
	margin: 12px 0 0;
	color: var(--gris);
	font-size: .9rem;
}

.partage {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 18px 0 0;
	font-size: .95rem;
	font-weight: 600;
}

.panneau__don {
	margin: 12px 0 0;
	font-size: .95rem;
}

.meme-theme {
	margin-top: 0;
}

@media (max-width: 960px) {
	.fiche {
		grid-template-columns: 1fr;
	}

	.panneau {
		position: static;
		order: -1;
	}
}

@media (max-width: 860px) {
	.partage a {
		display: inline-block;
		padding-block: 11px;
	}
}

/* ---------- Map ---------- */

.carte {
	margin-bottom: 56px;
}

.carte__outils {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.carte__cadre {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--trait);
	border-radius: var(--rayon);
	background: var(--brume);
}

.carte__cadre .leaflet-container {
	font: inherit;
}

.carte__cadre .leaflet-tile-pane {
	filter: grayscale(1) contrast(.92) brightness(1.04);
}

.carte__fond {
	z-index: 0;
	height: min(560px, 60vh);
	min-height: 320px;
	background: var(--brume);
}

.carte__sans-js {
	margin: 0;
	padding: 24px;
}

.carte__credit {
	margin: 10px 0 0;
	color: var(--gris);
	font-size: .9rem;
}

.carte__bulle h3 {
	margin: 0 0 6px;
	font-size: 1rem;
}

.carte__bulle ul {
	max-height: 220px;
	margin: 0;
	padding-left: 1.1em;
	overflow-y: auto;
}

.lieux {
	margin-bottom: 96px;
}

.lieux__liste {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lieu {
	display: flex;
	flex-direction: column;
	padding: 20px 22px;
	border: 1px solid var(--trait);
	border-radius: var(--rayon);
	scroll-margin-top: calc(var(--entete) + 16px);
}

.lieu:target {
	border-color: var(--bleu);
	box-shadow: 0 0 0 3px var(--brume);
}

.lieu__tete {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.lieu h3 {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.3;
}

.lieu__nb {
	flex: none;
	color: var(--bleu-texte);
	font-size: .9rem;
	font-weight: 800;
}

.lieu__adresse {
	margin: 4px 0 12px;
	color: var(--gris);
	font-size: .92rem;
}

.lieu__rencontres {
	margin: 0;
	padding: 0;
	font-size: .93rem;
	list-style: none;
}

.lieu__rencontres li {
	padding: 6px 0;
	border-top: 1px solid var(--trait);
}

.lieu__rencontres a {
	color: var(--encre);
	font-weight: 600;
}

.lieu__date {
	color: var(--gris);
	white-space: nowrap;
}

.lieu__plus summary {
	padding: 6px 0;
	color: var(--bleu-texte);
	font-size: .93rem;
	font-weight: 700;
	cursor: pointer;
}

.lieu__voir {
	align-self: flex-start;
	margin-top: auto;
	padding: 12px 0 0;
	border: 0;
	background: transparent;
	color: var(--encre);
	font: inherit;
	font-size: .92rem;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--bleu);
	text-decoration-thickness: 2px;
	cursor: pointer;
}

.lieu__voir:hover {
	color: var(--bleu-texte);
}

@media (max-width: 860px) {
	.lieu__rencontres li {
		padding: 0;
	}

	.lieu__rencontres a {
		display: block;
		padding: 14px 0 5px;
	}

	.lieu__rencontres .lieu__date {
		display: block;
		padding-bottom: 9px;
	}

	.lieu__plus summary {
		display: flex;
		align-items: center;
		min-height: 44px;
	}

	.lieu__voir {
		min-height: 44px;
		padding-top: 0;
	}

	.carte__cadre .leaflet-container .leaflet-bar a {
		width: 44px;
		height: 44px;
		font-size: 22px;
		line-height: 44px;
	}
}

@media print {
	.outils, .panneau .actions, .partage {
		display: none !important;
	}
}

/* ---------- Registration modals (shared with the current front): a little wider ---------- */

@media (min-width: 576px) {
	#eventRegisterModal .modal-dialog, #inscriptionModal .modal-dialog {
		max-width: min(720px, calc(100% - 32px));
	}
}

/* ---------- Login modal of a visitor (page of a meeting) ---------- */

.connexion-modale .modal-title {
	font-size: 1.35rem;
}

.connexion-modale__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
}

.connexion-modale__premiere {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--trait);
}

.connexion-modale__premiere h3 {
	margin: 0 0 6px;
	font-size: 1.05rem;
}

.connexion-modale__premiere p {
	margin: 0 0 12px;
	color: var(--gris);
	font-size: .95rem;
}

.connexion-modale__premiere .btn-contour {
	border-radius: 0 var(--rayon) var(--rayon) 0;
}

.connexion-modale .modal-footer {
	justify-content: center;
}
