/*
 * Vue « agenda » du calendrier ([borne_calendrier vue="agenda"]) : les évènements du Memory Club et de la
 * communauté, sans inscriptions. Aux couleurs du site (bleu nuit #0d1326, orange #e88d3f, crème #f4f0cd).
 */

.borne-cal.bc-agenda {
	--bc-accent: #e88d3f;
	--bc-accent-fonce: #b85024;
	--bc-texte: #0d1326;
	--bc-texte-doux: #5b6473;
	--bc-fond: #fff;
	--bc-fond-doux: #f4f0cd;
	--bc-bord: #e0e0e0;
	--bc-note: #e88d3f;
	--bc-rayon: 10px;

	max-width: 1000px;
	padding: 20px;
	border: 1px solid var(--bc-bord);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 3px 10px rgba(0, 0, 0, .04);
}

/* ---------- En-tête ---------- */

.bc-agenda .bc-titre { font-size: 1.5em; font-weight: 700; color: var(--bc-texte); }
.borne-cal.bc-agenda .bc-nav { border-radius: 8px; border-color: var(--bc-bord); background: #fff; color: var(--bc-texte); }
.borne-cal.bc-agenda .bc-nav:hover:not(:disabled) { border-color: var(--bc-accent); background: var(--bc-fond-doux); color: var(--bc-accent-fonce); }
.bc-agenda .bc-lieu svg { color: var(--bc-accent); }

/* ---------- Grille ---------- */

.bc-agenda .bc-grille { gap: 0; border: 1px solid var(--bc-bord); border-radius: 10px; overflow: hidden; }
.bc-agenda .bc-jsem {
	padding: 9px 0;
	background: #0d1326;
	color: #fff;
	font-size: .8em;
	font-weight: 600;
	letter-spacing: .04em;
}
.bc-agenda .bc-vide { background: #f7f7f5; border-right: 1px solid #efefef; border-bottom: 1px solid #efefef; min-height: 3.4em; }

.borne-cal.bc-agenda .bc-jour {
	min-height: 3.6em;
	border: 0;
	border-right: 1px solid #efefef;
	border-bottom: 1px solid #efefef;
	border-radius: 0;
	background: #fff;
	color: var(--bc-texte);
	opacity: 1;
}
.borne-cal.bc-agenda .bc-jour:hover { background: var(--bc-fond-doux); }
.borne-cal.bc-agenda .bc-jour.bc-passe { background: #fafafa; color: #9a9a9a; }
.borne-cal.bc-agenda .bc-jour.bc-passe .bc-num { color: #9a9a9a; }
.borne-cal.bc-agenda .bc-jour.bc-selection { outline: 2px solid var(--bc-texte); outline-offset: -2px; }
.borne-cal.bc-agenda .bc-jour.bc-avec-evt { background: #fffdf3; box-shadow: none; }
.borne-cal.bc-agenda .bc-jour.bc-avec-evt:hover { background: var(--bc-fond-doux); }
.bc-agenda .bc-aujourdhui .bc-num { background: var(--bc-accent); color: #0d1326; }

.bc-agenda .bc-evt-marque { left: auto; right: .35em; bottom: auto; top: .3em; }
.bc-evt-noms { display: none; }

@container (min-width: 620px) {
	.borne-cal.bc-agenda .bc-jour { min-height: 5.8em; }
	.bc-agenda .bc-evt-noms {
		display: block;
		width: 100%;
		margin-top: .2em;
		padding: .2em .4em;
		border-radius: 5px;
		background: var(--bc-accent);
		color: #0d1326;
		font-size: .72em;
		font-weight: 600;
		line-height: 1.3;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.bc-agenda .bc-jour.bc-avec-evt .bc-evt-marque { display: none; }
}

.bc-agenda .bc-legende { margin-top: .8em; }
.bc-agenda .bc-pastille.bc-evt-p { border-color: var(--bc-accent); background: var(--bc-accent); box-shadow: none; }

/* Nombre de joueurs prévus à la borne (jamais les noms). */
.bc-agenda .bc-compte.bc-compte-ag { background: #0d1326; color: #fff; padding: 0 .5em; white-space: nowrap; }
.bc-agenda .bc-jour.bc-avec-evt .bc-compte-ag { margin-top: auto; }
.bc-agenda .bc-joueurs { margin: .8em 0 0; padding: .6em .8em; border-radius: 8px; background: #eceef3; color: #0d1326; }
.bc-agenda .bc-detail > .bc-joueurs:first-of-type { margin-top: 0; }
.bc-agenda .bc-joueurs a { color: #b85024; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Détail du jour et liste ---------- */

.bc-agenda .bc-detail {
	margin-top: 1em;
	padding: 14px 16px;
	border: 1px solid var(--bc-bord);
	border-radius: 10px;
	background: #fff;
}
.bc-agenda .bc-detail-titre { margin: 0 0 .6em; font-size: 1.15em; color: var(--bc-texte); }
.bc-agenda .bc-vide-msg, .bc-agenda .bc-aide { margin: 0; color: var(--bc-texte-doux); }

.bc-agenda .bc-evt {
	border-left: 4px solid var(--bc-accent);
	border-radius: 8px;
	background: var(--bc-fond-doux);
}
.bc-agenda .bc-evt-privatisation { border-left-color: #0d1326; background: #eceef3; }

.bc-agenda-liste { margin: 1.6em 0 0; }
.bc-agenda-liste h3 { margin: 0 0 .6em; font-size: 1.15em; color: #0d1326; }
.bc-agenda-liste ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bc-agenda-liste li.bc-evt {
	display: flex;
	flex-direction: column;
	gap: .15em;
	margin: 0;
	padding: .7em .9em;
	border-left: 4px solid #e88d3f;
	border-radius: 8px;
	background: #f4f0cd;
	color: #0d1326;
}
.bc-agenda-liste li.bc-evt-privatisation { border-left-color: #0d1326; background: #eceef3; }
.bc-agenda-liste .bc-evt-quand { font-size: .9em; color: #5b6473; }
.bc-agenda-liste .bc-evt-desc { margin-top: .2em; white-space: pre-line; }

/* ---------- Lien vers l'inscription à la borne ---------- */

.bc-agenda-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	align-items: center;
	justify-content: space-between;
	margin: 1.4em 0 0;
	padding: 14px 18px;
	border-radius: 12px;
	background: #0d1326;
	color: #fff;
}
.bc-agenda-cta > div { display: flex; flex-direction: column; gap: .15em; flex: 1 1 260px; }
.bc-agenda-cta strong { font-size: 1.05em; }
.bc-agenda-cta span { color: #c9cfdb; font-size: .92em; }
.bc-agenda-cta .bc-bouton {
	display: inline-block;
	padding: .65em 1.2em;
	border-radius: 999px;
	background: #e88d3f;
	color: #0d1326;
	font-weight: 700;
	text-decoration: none !important;
	transition: background .15s;
}
.bc-agenda-cta .bc-bouton:hover { background: #f4f0cd; color: #b85024; }

@media (max-width: 520px) {
	.borne-cal.bc-agenda { padding: 12px 8px; }
	.bc-agenda-cta .bc-bouton { width: 100%; text-align: center; }
}
