/* Agenda Gay Mag - styles front
   Bleu principal #1A237E, jaune accent #FFC107. La typo est heritee du theme. */

.agm-agenda {
	--agm-blue: #1A237E;
	--agm-yellow: #FFC107;
	--agm-ink: #1b1b2b;
	--agm-muted: #6b6b76;
}

/* --- Barre d'outils de la vue complete ([agenda_gaymag_full]) : recherche + tri --- */
.agm-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin: 0 0 16px;
}
.agm-search {
	flex: 1 1 260px;
	min-width: 0;
	padding: 11px 18px;
	border: 1px solid var(--agm-blue);
	border-radius: 999px;
	font-size: .95rem;
	color: var(--agm-ink);
	background: #fff;
}
.agm-search::placeholder {
	color: var(--agm-muted);
}
.agm-search:focus {
	outline: 2px solid var(--agm-yellow);
	outline-offset: 1px;
}
.agm-sort {
	padding: 10px 14px;
	border: 1px solid var(--agm-blue);
	border-radius: 999px;
	color: var(--agm-blue);
	background: #fff;
	cursor: pointer;
}
.agm-resultcount {
	margin: 16px 0 0;
	color: var(--agm-muted);
	font-size: .85rem;
}

/* --- Barre de filtres --- */
.agm-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin: 0 0 26px;
}
.agm-filter-btn {
	border: 1px solid var(--agm-blue);
	background: #fff;
	color: var(--agm-blue);
	padding: 7px 16px;
	border-radius: 999px;
	font-size: .88rem;
	line-height: 1.2;
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.agm-filter-btn:hover {
	background: var(--agm-yellow);
	border-color: var(--agm-yellow);
	color: var(--agm-blue);
}
.agm-filter-btn.is-active {
	background: var(--agm-blue);
	color: #fff;
}
.agm-month {
	margin-left: auto;
	padding: 8px 14px;
	border: 1px solid var(--agm-blue);
	border-radius: 999px;
	color: var(--agm-blue);
	background: #fff;
	cursor: pointer;
}

/* --- Grille de cartes --- */
.agm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}
.agm-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(26, 35, 126, .08);
	transition: transform .18s ease, box-shadow .18s ease;
}
.agm-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(26, 35, 126, .16);
}
.agm-card__media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	background: #ececf2;
	overflow: hidden;
}
.agm-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}
.agm-card:hover .agm-card__media img {
	transform: scale(1.04);
}
.agm-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--agm-yellow);
	color: var(--agm-blue);
	font-weight: 700;
	font-size: .7rem;
	text-transform: uppercase;
	letter-spacing: .03em;
	padding: 4px 10px;
	border-radius: 999px;
}
.agm-card__body {
	padding: 16px 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 7px;
	flex: 1;
}
.agm-card__date {
	color: var(--agm-blue);
	font-weight: 700;
	font-size: .9rem;
}
.agm-card__title {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.3;
}
.agm-card__title a {
	color: var(--agm-ink);
	text-decoration: none;
}
.agm-card__title a:hover {
	color: var(--agm-blue);
}
.agm-card__place {
	color: var(--agm-muted);
	font-size: .9rem;
	margin-top: auto;
}

/* --- Etat vide --- */
.agm-empty {
	padding: 40px 20px;
	text-align: center;
	color: var(--agm-muted);
}

/* --- Page de detail --- */
.agm-single {
	max-width: 820px;
	margin: 0 auto;
	padding: 24px 16px 60px;
}
.agm-single__back {
	display: inline-block;
	margin-bottom: 18px;
	color: var(--agm-blue);
	text-decoration: none;
	font-weight: 600;
}
.agm-single__back:hover {
	text-decoration: underline;
}
.agm-single__media {
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 22px;
	aspect-ratio: 16 / 9;
	background: #ececf2;
}
.agm-single__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.agm-single__badge {
	display: inline-block;
	background: var(--agm-yellow);
	color: var(--agm-blue);
	font-weight: 700;
	text-transform: uppercase;
	font-size: .74rem;
	letter-spacing: .03em;
	padding: 5px 12px;
	border-radius: 999px;
	margin-bottom: 12px;
}
.agm-single__title {
	margin: 0 0 12px;
	font-size: 2rem;
	line-height: 1.2;
	color: var(--agm-ink);
}
.agm-single__meta {
	color: var(--agm-blue);
	font-weight: 700;
	margin-bottom: 4px;
}
.agm-single__place {
	color: var(--agm-muted);
	margin-bottom: 24px;
}
.agm-single__content {
	line-height: 1.7;
	margin-bottom: 30px;
}
.agm-btn {
	display: inline-block;
	background: var(--agm-blue);
	color: #fff !important;
	text-decoration: none;
	padding: 12px 26px;
	border-radius: 999px;
	font-weight: 700;
	transition: background .15s, color .15s;
}
.agm-btn:hover {
	background: var(--agm-yellow);
	color: var(--agm-blue) !important;
}

/* Variables aussi sur les composants autonomes (shortcodes glisses dans Elementor,
   hors du conteneur .agm-agenda). */
.agm-details,
.agm-social,
.agm-carousel,
.agm-single__org,
.agm-btn {
	--agm-blue: #1A237E;
	--agm-yellow: #FFC107;
	--agm-ink: #1b1b2b;
	--agm-muted: #6b6b76;
}

/* --- Conteneur d'un evenement injecte dans le contenu ---
   Limite la largeur (sinon l'image s'etale en Elementor Full Width) et centre. */
.agm-event {
	--agm-blue: #1A237E;
	--agm-yellow: #FFC107;
	--agm-ink: #1b1b2b;
	--agm-muted: #6b6b76;
	max-width: 1140px;
	margin: 0 auto;
}
.agm-event__media {
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 14px;
}
.agm-event__media img {
	width: 100%;
	height: auto;
	display: block;
}
.agm-event__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}
.agm-event__badge .agm-single__badge {
	margin: 0;
}
.agm-event__social .agm-social {
	margin: 0;
	justify-content: flex-end;
}

/* (02) Date agrandie, (03) titre, (04) organisateur : ordre de "Exemple de mise en page". */
.agm-event__date {
	color: var(--agm-blue);
	font-weight: 700;
	font-size: 1.4rem;
	line-height: 1.3;
	margin-bottom: 6px;
}
.agm-event__title {
	margin: 0 0 12px;
	font-size: 2rem;
	line-height: 1.2;
	color: var(--agm-ink);
	border-left: 4px solid var(--agm-yellow);
	padding-left: 14px;
}
.agm-event__org {
	margin: 0 0 20px;
	font-size: 1.2rem;
	line-height: 1.4;
}
.agm-event__org-label {
	color: var(--agm-ink);
	font-weight: 600;
}
.agm-event__org-names a {
	color: var(--agm-blue);
	text-decoration: none;
	font-weight: 600;
}
.agm-event__org-names a:hover {
	text-decoration: underline;
}

/* --- Bloc infos pratiques (dates / lieu / adresse) --- */
.agm-details {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.agm-details__item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: var(--agm-ink);
	font-size: 1rem;
}
/* Sur la fiche evenement, la localisation etait trop petite : on l'agrandit. */
.agm-event .agm-details {
	gap: 10px;
}
.agm-event .agm-details__item {
	font-size: 1.2rem;
	line-height: 1.4;
}
.agm-details__item--date {
	color: var(--agm-blue);
	font-weight: 700;
}
.agm-details__ico {
	flex: 0 0 auto;
	line-height: 1.5;
}
.agm-details__item a {
	color: var(--agm-blue);
	text-decoration: none;
}
.agm-details__item a:hover {
	text-decoration: underline;
}

/* --- Organisateur (mention sur la fiche evenement, ancien style conserve) --- */
.agm-single__org {
	color: var(--agm-muted);
	font-size: .95rem;
	margin-bottom: 18px;
}

/* --- Page d'un organisateur --- */
.agm-org-page {
	--agm-blue: #1A237E;
	--agm-yellow: #FFC107;
	--agm-ink: #1b1b2b;
	--agm-muted: #6b6b76;
	max-width: 1140px;
	margin: 0 auto;
}
.agm-org {
	display: flex;
	gap: 28px;
	align-items: flex-start;
	background: #fff;
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 2px 14px rgba(26, 35, 126, .08);
	margin-bottom: 34px;
}
.agm-org__logo {
	flex: 0 0 200px;
}
.agm-org__logo-img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	display: block;
}
.agm-org__body {
	flex: 1;
	min-width: 0;
}
.agm-org__name {
	margin: 0 0 14px;
	font-size: 1.8rem;
	line-height: 1.2;
	color: var(--agm-blue);
}
.agm-org__desc {
	color: var(--agm-ink);
	line-height: 1.6;
	margin-bottom: 16px;
}
.agm-org__contact {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.agm-org__contact li {
	display: flex;
	align-items: center;
	gap: 10px;
}
.agm-org__contact a {
	color: var(--agm-blue);
	text-decoration: none;
	word-break: break-word;
}
.agm-org__contact a:hover {
	text-decoration: underline;
}
.agm-org__ico {
	flex: 0 0 auto;
	display: inline-flex;
	color: var(--agm-blue);
}
.agm-org__social {
	margin: 0 0 18px;
}
.agm-org__address {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-top: 14px;
	border-top: 1px solid #ececf2;
}
.agm-org__address-title {
	font-weight: 700;
	margin-bottom: 4px;
	color: var(--agm-ink);
}
.agm-org__address-line {
	color: var(--agm-muted);
}
.agm-org-page__heading {
	color: var(--agm-blue);
	font-size: 1.4rem;
	margin: 0 0 18px;
}

/* --- Icones reseaux sociaux --- */
.agm-social {
	list-style: none;
	margin: 0 0 26px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.agm-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	/* Couleurs du site (jaune / bleu), pas les couleurs de marque des reseaux. */
	background: var(--agm-yellow);
	color: var(--agm-blue);
	transition: background .15s ease, transform .15s ease, color .15s ease;
}
.agm-social__link:hover {
	background: var(--agm-blue);
	color: var(--agm-yellow);
	transform: translateY(-2px);
}
.agm-social__link svg {
	display: block;
}

/* --- Carrousel galerie --- */
.agm-carousel {
	position: relative;
	margin: 0 0 30px;
	border-radius: 16px;
	overflow: hidden;
	background: #ececf2;
}
.agm-carousel__viewport {
	overflow: hidden;
}
.agm-carousel__track {
	display: flex;
	transition: transform .35s ease;
	will-change: transform;
}
.agm-carousel__slide {
	flex: 0 0 100%;
	margin: 0;
	aspect-ratio: 16 / 9;
	background: #ececf2;
}
.agm-carousel__img,
.agm-carousel__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.agm-carousel__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: rgba(26, 35, 126, .78);
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s ease;
}
.agm-carousel__nav:hover {
	background: var(--agm-blue);
}
.agm-carousel__nav--prev { left: 12px; }
.agm-carousel__nav--next { right: 12px; }
.agm-carousel__dots {
	position: absolute;
	bottom: 12px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 7px;
}
.agm-carousel__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .6);
	cursor: pointer;
}
.agm-carousel__dot.is-active {
	background: var(--agm-yellow);
}

/* --- Mobile --- */
@media (max-width: 600px) {
	.agm-grid {
		grid-template-columns: 1fr;
	}
	.agm-month {
		margin-left: 0;
	}
	.agm-search,
	.agm-sort {
		flex: 1 1 100%;
	}
	.agm-single__title,
	.agm-event__title {
		font-size: 1.6rem;
	}
	.agm-event__date {
		font-size: 1.2rem;
	}
	.agm-carousel__nav {
		width: 34px;
		height: 34px;
		font-size: 1.3rem;
	}
	.agm-org {
		flex-direction: column;
		padding: 20px;
	}
	.agm-org__logo {
		flex-basis: auto;
		max-width: 200px;
	}
}
