/* ==========================================================================
   MyHobbyRoom - Calendrier des événements
   Variables de couleurs : modifie ici pour coller exactement à ta charte.
   ========================================================================== */
.mhr-calendar {
	--mhr-orange: #ff6b35;
	--mhr-navy: #1d3557;
	--mhr-bg: #fff8f3;
	--mhr-border: #f0e0d0;
	--mhr-text: #2b2b2b;

	color: var( --mhr-text );
	margin: 0 auto;
	transition: opacity .15s ease;
}
.mhr-calendar.is-loading {
	opacity: .55;
	pointer-events: none;
}

/* Barre d'outils */
.mhr-calendar-toolbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 22px;
}

.mhr-view-toggle {
	display: flex;
	border: 2px solid var( --mhr-orange );
	border-radius: 8px;
	overflow: hidden;
}
.mhr-view-btn {
	background: #fff;
	border: none;
	padding: 8px 18px;
	cursor: pointer;
	font-weight: 600;
	color: var( --mhr-orange );
	transition: background-color .2s, color .2s;
}
.mhr-view-btn.is-active {
	background: var( --mhr-orange );
	color: #fff;
}

.mhr-type-filter {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.mhr-filter-pill {
	--mhr-color: #777777;
	background: #fff;
	appearance: none;
	cursor: pointer;
	font: inherit;
	padding: 6px 14px;
	border-radius: 20px;
	border: 2px solid var( --mhr-color );
	color: var( --mhr-orange );
	text-decoration: none;
	font-size: .85rem;
	font-weight: 600;
	transition: background-color .2s, color .2s;
}
.mhr-filter-pill.is-active,
.mhr-filter-pill:hover {
	background: var( --mhr-orange );
	color: #fff;
}

/* Vue grille */
.mhr-grid-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	margin-bottom: 14px;
}
.mhr-current-month {
	text-transform: capitalize;
	font-size: 1.3rem;
	margin: 0;
	min-width: 200px;
	text-align: center;
}
.mhr-nav-arrow {
	background: none;
	border: none;
	appearance: none;
	cursor: pointer;
	font: inherit;
	font-size: 1.7rem;
	text-decoration: none;
	color: var( --mhr-orange );
	font-weight: 700;
	padding: 0 10px;
	line-height: 1;
}
.mhr-nav-arrow:hover { color: var( --mhr-navy ); }

.mhr-grid-weekdays {
	display: grid;
	grid-template-columns: repeat( 7, 1fr );
	text-align: center;
	font-weight: 700;
	color: var( --mhr-orange );
	margin-bottom: 6px;
	font-size: .85rem;
}

.mhr-grid-days {
	display: grid;
	grid-template-columns: repeat( 7, 1fr );
	gap: 4px;
}
.mhr-day {
	background: var( --mhr-bg );
	border: 1px solid var( --mhr-border );
	border-radius: 8px;
	min-height: 92px;
	padding: 6px;
}
.mhr-day-empty { background: transparent; border: none; }
.mhr-day.is-today { border-color: var( --mhr-orange ); border-width: 2px; }
.mhr-day.has-events { background: #ffffff; }
.mhr-day-number { font-size: .8rem; font-weight: 700; color: #999; }
.mhr-day.is-today .mhr-day-number { color: var( --mhr-orange ); }

.mhr-day-event {
	--mhr-color: #777777;
	display: block;
	background: var( --mhr-color );
	color: #fff;
	font-size: .7rem;
	border-radius: 4px;
	padding: 2px 4px;
	margin-top: 3px;
	text-decoration: none;
	overflow: hidden;
	white-space: nowrap;
}
.mhr-day-more { display: block; font-size: .65rem; color: #999; margin-top: 2px; }

/* Vue liste */
.mhr-event-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.mhr-event-item {
	display: flex;
	gap: 16px;
	background: var( --mhr-bg );
	border: 1px solid var( --mhr-border );
	border-radius: 10px;
	padding: 14px;
}
.mhr-event-thumb img {
	width: 100px;
	height: 100px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}
.mhr-event-info { flex: 1; min-width: 0; }
.mhr-event-badge {
	--mhr-color: #777777;
	display: inline-block;
	background: var( --mhr-color );
	color: #fff;
	font-size: .7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	padding: 3px 10px;
	border-radius: 12px;
	margin-bottom: 6px;
}
.mhr-event-title { margin: 4px 0; font-size: 1.1rem; }
.mhr-event-title a { color: var( --mhr-navy ); text-decoration: none; }
.mhr-event-title a:hover { text-decoration: underline; }
.mhr-event-date,
.mhr-event-location,
.mhr-event-brand { margin: 2px 0; font-size: .9rem; }
.mhr-event-external,
.mhr-event-external-single {
	display: inline-block;
	margin-top: 6px;
	color: var( --mhr-orange );
	font-weight: 600;
	text-decoration: none;
}
.mhr-event-external:hover,
.mhr-event-external-single:hover { text-decoration: underline; }

.mhr-past-events { margin-top: 26px; }
.mhr-past-events summary {
	cursor: pointer;
	font-weight: 600;
	color: var( --mhr-navy );
}
.mhr-past-events .mhr-event-list { margin-top: 14px; opacity: .8; }
.mhr-no-events { text-align: center; color: #999; padding: 30px; }

/* Bloc infos sur la fiche détail d'un événement */
.mhr-single-event-meta {
	background: var( --mhr-bg );
	border: 1px solid var( --mhr-border );
	border-radius: 10px;
	padding: 18px 20px;
	margin-bottom: 24px;
}

/* Responsive mobile */
@media ( max-width: 640px ) {
	.mhr-calendar-toolbar { flex-direction: column; align-items: stretch; }
	.mhr-day { min-height: 56px; padding: 4px; }
	.mhr-day-event { display: none; }
	.mhr-day-more { display: none; }
	.mhr-day.has-events .mhr-day-number::after {
		content: '';
		display: block;
		width: 6px;
		height: 6px;
		border-radius: 50%;
		background: var( --mhr-orange );
		margin: 3px auto 0;
	}
	.mhr-event-item { flex-direction: column; }
	.mhr-event-thumb img { width: 100%; height: 140px; }
}
