/*
 * Bandeau « prochaines sessions »
 *
 * Bande alignee sur la grille, chips de date, fondu des bords, version mobile.
 */

/* --- 3. Agenda : bandeau « prochaines sessions » -------------------------- */
/* Bande pleine largeur, contenu aligne sur la grille 1200 du kit (comme la topbar et la nav) */
.mlett-ticker-wrap { background: #F4F8FD; border-top: 1px solid rgba(1, 40, 83, .08); border-bottom: 1px solid rgba(1, 40, 83, .08); }
.mlett-ticker { display: flex; align-items: stretch; width: calc(100% - 2 * var(--mlett-gutter)); max-width: 1200px; margin: 0 auto; font: 500 15px/1.3 'Roboto', sans-serif; color: #012853; }
.mlett-ticker__label { flex: 0 0 auto; display: flex; align-items: center; padding: 10px var(--mlett-gutter); background: #012853; color: #fff; font: 700 13px/1.2 'Comfortaa', sans-serif; white-space: nowrap; }
.mlett-ticker__viewport {
	flex: 1 1 auto; overflow: hidden; display: flex;
	/* les titres s'estompent aux bords au lieu d'etre coupes en plein mot */
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
	        mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
}
.mlett-ticker__track { display: flex; flex: 0 0 auto; align-items: center; gap: 40px; padding: 0 var(--mlett-gutter); animation: mlett-marquee 40s linear infinite; }
.mlett-ticker__viewport:hover .mlett-ticker__track, .mlett-ticker__viewport:focus-within .mlett-ticker__track { animation-play-state: paused; }
.mlett-ticker__item { display: inline-flex; align-items: center; gap: 10px; color: #012853; text-decoration: none; white-space: nowrap; padding: 10px 0; }
.mlett-ticker__item:hover .mlett-ticker__title, .mlett-ticker__item:focus-visible .mlett-ticker__title { text-decoration: underline; }
/* Vert plein = vraie date. Statut sans date = puce discrete. */
.mlett-ticker__date { display: inline-block; padding: 3px 10px; border-radius: var(--mlett-radius-pill); background: var(--mlett-green-aa); color: #fff; font-weight: 700; font-size: 13px; }
.mlett-ticker__flag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: #3E5A73; }
.mlett-ticker__flag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mlett-green-aa); flex: 0 0 auto; }
@keyframes mlett-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
	.mlett-ticker__track { animation: none; flex-wrap: wrap; gap: 12px 24px; padding: 8px var(--mlett-gutter); }
	.mlett-ticker__track[aria-hidden="true"] { display: none; }
	.mlett-ticker__viewport { overflow: visible; -webkit-mask-image: none; mask-image: none; }
}
/* Mobile : une seule prochaine session, pas de defilement */
@media (max-width: 767px) {
	.mlett-ticker__label { padding: 6px 12px; font-size: 12px; }
	.mlett-ticker__track { animation: none; padding: 6px 0 6px 12px; }
	.mlett-ticker__track[aria-hidden="true"] { display: none; }
	.mlett-ticker__item:not(:first-child) { display: none; }
	.mlett-ticker__item { min-width: 0; }
	.mlett-ticker__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.mlett-ticker__track { flex: 1 1 auto; min-width: 0; }
	.mlett-ticker__viewport { -webkit-mask-image: none; mask-image: none; }
	.mlett-ticker { width: calc(100% - 32px); }
}
