/* Agenda renversc.eu — couleurs du site : #0097b3 (bleu) / #f09124 (orange) */
.agenda { max-width: 960px; margin: 0 auto; padding: 2rem 1rem; }
.agenda__titre { color: #0097b3; margin-bottom: .5rem; }
.agenda__liste { display: grid; gap: 1rem; }
.agenda__vide { color: #666; font-style: italic; }

/* Titre de mois : bande de couleur */
.agenda__mois {
	margin: 2rem 0 .2rem; padding: .55rem 1rem;
	background: #0097b3; color: #fff;
	font-size: 1.25rem; font-weight: 700; letter-spacing: .02em;
	text-transform: capitalize; text-align: left;
	border-radius: 8px; border-left: 6px solid #f09124;
}
.agenda__liste > .agenda__mois:first-child { margin-top: .5rem; }
.agenda__liste--passe .agenda__mois { background: #9aa5a8; border-left-color: #6f7a7d; }

/* Carte */
.agenda-item {
	display: flex; gap: 1.4rem; align-items: flex-start;
	background: #fff; border: 1px solid #e6e6e6; border-radius: 12px; padding: 1.1rem 1.2rem;
	transition: box-shadow .2s, transform .2s;
}
.agenda-item:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-1px); }

/* Icône calendrier */
.cal {
	position: relative; flex: 0 0 88px; width: 88px; box-sizing: border-box; min-height: 88px;
	display: flex; flex-direction: column;
	background: #fff; border: 2px solid #0097b3; border-radius: 10px;
	text-align: center; box-shadow: 0 2px 0 #0097b3; margin-top: 6px;
}
.cal::before, .cal::after {
	content: ""; position: absolute; top: -9px; width: 7px; height: 15px;
	background: #fff; border: 2px solid #0097b3; border-radius: 4px;
}
.cal::before { left: 20px; }
.cal::after  { right: 20px; }
.cal__entete {
	background: #0097b3; color: #fff; font-size: .78rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: .04em; padding: .8rem .2rem .3rem;
	border-radius: 7px 7px 0 0;
}
.cal__corps { flex: 1; display: flex; align-items: center; justify-content: center; padding: .3rem .2rem; }
.cal__jour { font-size: 2rem; font-weight: 800; line-height: 1; color: #222; white-space: nowrap; }
.cal__jour--plage { font-size: 1.5rem; }
.cal__jour--long { font-size: 1rem; white-space: normal; }

/* Texte */
.agenda-item__corps { flex: 1; min-width: 0; text-align: left; }
.agenda-item__types { margin: 0 0 .35rem; }
.agenda-item__type {
	display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
	background: #f09124; color: #fff; padding: .12rem .5rem; border-radius: 4px; margin-right: .3rem;
}
.agenda-item__titre { margin: 0 0 .3rem; font-size: 1.2rem; }
.agenda-item__titre a { color: inherit; text-decoration: none; }
.agenda-item__titre a:hover { color: #0097b3; }
.agenda-item__infos { margin: 0 0 .45rem; font-size: .9rem; color: #0097b3; display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.agenda-item__infos time::first-letter { text-transform: uppercase; }
.agenda-item__heure::before { content: "🕐 "; }
.agenda-item__lieu::before { content: "📍 "; }
.agenda-item__texte { margin: 0 0 .5rem; color: #444; line-height: 1.5; text-align: left; }
.agenda-item__lien { color: #f09124; font-weight: 700; text-decoration: none; font-size: .9rem; }
.agenda-item__lien:hover { text-decoration: underline; }

/* Passés */
.agenda__passes { margin-top: 2.5rem; }
.agenda__passes summary { cursor: pointer; font-weight: 700; color: #0097b3; }
.agenda__liste--passe .agenda-item { opacity: .75; }
.agenda__liste--passe .cal { border-color: #9aa5a8; box-shadow: 0 2px 0 #9aa5a8; }
.agenda__liste--passe .cal::before, .agenda__liste--passe .cal::after { border-color: #9aa5a8; }
.agenda__liste--passe .cal__entete { background: #9aa5a8; }

@media (max-width: 560px) {
	.agenda-item { gap: .9rem; padding: .9rem; }
	.cal { flex-basis: 72px; width: 72px; min-height: 76px; }
	.cal__jour--plage { font-size: 1.2rem; }
	.cal__jour { font-size: 1.6rem; }
	.cal__jour--long { font-size: .85rem; }
}

/* Agenda T3 : image de l'article à droite de la carte (complète agenda.css) */

.agenda-item--image { align-items: stretch; }
.agenda-item--image .cal { align-self: flex-start; }

.agenda-item__image {
	flex: 0 0 180px; width: 180px;
	display: block; overflow: hidden; border-radius: 8px;
	background: #eef6f8;
	align-self: center;
}
.agenda-item__image:hover,
.agenda-item__image:focus { background: #eef6f8; }
.agenda-item__image img {
	display: block; width: 100%; height: 124px;
	object-fit: cover; border-radius: 8px;
	transition: transform .3s;
}
.agenda-item:hover .agenda-item__image img { transform: scale(1.04); }

/* Événements passés : image en niveaux de gris */
.agenda__liste--passe .agenda-item__image img { filter: grayscale(1); opacity: .8; }

/* Tablette : image plus petite */
@media (max-width: 900px) {
	.agenda-item__image { flex-basis: 130px; width: 130px; }
	.agenda-item__image img { height: 96px; }
}

/* Mobile : l'image passe en bandeau au-dessus de la carte */
@media (max-width: 640px) {
	.agenda-item--image { flex-wrap: wrap; }
	.agenda-item__image { order: -1; flex: 0 0 100%; width: 100%; margin-bottom: .2rem; }
	.agenda-item__image img { height: 150px; }
	.cal__jour--plage { font-size: 1.05rem; }
}

/* Bande de couleur des mois (renforcée contre le thème) */
.page_agenda .agenda h2.agenda__mois {
	display: block !important;
	margin: 2rem 0 .2rem !important;
	padding: .55rem 1rem !important;
	background: #0097b3 !important;
	color: #fff !important;
	font-size: 1.25rem !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	text-transform: capitalize;
	text-align: left !important;
	border: 0 !important;
	border-left: 6px solid #f09124 !important;
	border-radius: 8px !important;
}
.page_agenda .agenda__liste--passe h2.agenda__mois {
	background: #9aa5a8 !important;
	border-left-color: #6f7a7d !important;
}

/* ---- T2 v2 ---- */

/* Badges : texte toujours blanc et lisible quelle que soit la couleur choisie */
.agenda-item__type { color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.15); }

/* Icône « Date à préciser » : bord pointillé + gros point d'interrogation */
.cal--apreciser { border-style: dashed; box-shadow: none; }
.cal--apreciser .cal__jour { color: #0097b3; font-size: 2.2rem; }

/* Ligne « Date à préciser — mars 2027 » */
.agenda-item__apreciser { font-style: italic; }
.agenda-item__apreciser::before { content: "🗓 "; font-style: normal; }

/* « Plus d'informations prochainement » (article sans texte) */
.agenda-item__bientot { color: #888; font-size: .9rem; font-style: italic; }
