/**
 * Styles de l'agenda
 * Préfixe : .agenda- sur toutes les classes
 * Couleur d'accent héritée de Planet Green : #6ab43e
 *
 * @package Planet Green (thème enfant de Bizberg)
 */

/* ==========================================================================
   PAGE ARCHIVE — liste des événements
   ========================================================================== */

.agenda-archive__entete {
	margin-bottom: 30px;
}

.agenda-archive__titre {
	font-size: 28px;
	margin-bottom: 0;
}

.agenda-archive__liste {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.agenda-archive__vide {
	font-style: italic;
	color: #777;
}

/* ==========================================================================
   CARTE ÉVÉNEMENT (archive)
   ========================================================================== */

.agenda-carte {
	display: flex;
	flex-direction: row;
	gap: 0;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 2px;
	overflow: hidden;
	transition: box-shadow 0.2s ease-in-out;
}

.agenda-carte:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Image */
.agenda-carte__image-lien {
	flex: 0 0 260px;
	display: block;
	overflow: hidden;
}

.agenda-carte__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.3s ease-in-out;
}

.agenda-carte:hover .agenda-carte__image {
	transform: scale(1.03);
}

/* Corps */
.agenda-carte__corps {
	flex: 1;
	padding: 24px 28px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Date & heure */
.agenda-carte__date,
.agenda-carte__heure {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	font-size: 13px;
	color: #6ab43e;
	font-weight: 600;
}

.agenda-carte__date svg,
.agenda-carte__heure svg {
	flex-shrink: 0;
	stroke: #6ab43e;
}

/* Titre */
.agenda-carte__titre {
	font-size: 20px;
	margin: 4px 0 0;
	line-height: 1.3;
}

.agenda-carte__titre a {
	color: #121212;
	text-decoration: none;
}

.agenda-carte__titre a:hover {
	color: #6ab43e;
}

/* Lieu */
.agenda-carte__lieu {
	display: flex;
	align-items: baseline;
	gap: 7px;
	margin: 0;
	font-size: 13px;
	color: #555;
}

.agenda-carte__lieu svg {
	flex-shrink: 0;
	position: relative;
	top: 2px;
	stroke: #888;
}

.agenda-carte__lieu strong {
	color: #333;
}

.agenda-carte__lieu span {
	color: #777;
}

/* Modalités */
.agenda-carte__modalites {
	margin: 0;
	font-size: 12px;
	color: #fff;
	background: #6ab43e;
	display: inline-block;
	padding: 2px 10px;
	border-radius: 2px;
	align-self: flex-start;
}

/* Lien */
.agenda-carte__lien {
	margin-top: auto;
	padding-top: 12px;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
}

.agenda-carte__lien svg {
	display: block;
	width: 7px;
	height: auto;
	margin-left: 8px;
}

/* ==========================================================================
   PAGE SINGLE — événement individuel
   ========================================================================== */

/* Bloc de métadonnées */
.agenda-single__metas {
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #f8f8f8;
	border-left: 3px solid #6ab43e;
	padding: 16px 20px;
	margin: 20px 0 28px;
	border-radius: 0 2px 2px 0;
}

.agenda-single__meta-item {
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-size: 14px;
	color: #333;
}

.agenda-single__meta-item svg {
	flex-shrink: 0;
	position: relative;
	top: 2px;
	stroke: #6ab43e;
}

.agenda-single__meta-item strong {
	color: #121212;
}

/* Description */
.agenda-single__description {
	margin-top: 10px;
}

/* Bouton inscription */
.agenda-single__inscription {
	margin-top: 28px;
}

.agenda-single__btn-inscription {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* Lien retour */
.agenda-single__retour {
	margin-top: 36px;
	padding-top: 20px;
	border-top: 1px solid #e8e8e8;
}

.agenda-single__lien-retour {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #555;
	text-decoration: none;
}

.agenda-single__lien-retour:hover {
	color: #6ab43e;
}

.agenda-single__lien-retour svg path {
	fill: currentColor;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 767px) {

	.agenda-carte {
		flex-direction: column;
	}

	.agenda-carte__image-lien {
		flex: none;
		height: 200px;
	}

	.agenda-carte__corps {
		padding: 18px 20px;
	}

	.agenda-carte__titre {
		font-size: 18px;
	}

	.agenda-single__metas {
		padding: 14px 16px;
	}
}
