.asm-wrap {
    --asm-text: #2f2e35;
    --asm-secondary: #22272B;
    --asm-blue: #2691c4;
    --asm-teal: #26b9c4;
    --asm-border: #e7e7ea;
    --asm-bg-card: #ffffff;
    --asm-bg-past: #f5f5f6;
    font-family: 'Open Sans', sans-serif;
    color: var(--asm-text);
	width: 100%;
    max-width: 100%;
}

.asm-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--asm-border);
    margin-bottom: 20px;
}
.asm-tab {
    appearance: none;
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #9a9ba3;
    padding: 10px 2px;
    cursor: pointer;
    position: relative;
	outline: none;
}
.asm-tab:hover,
.asm-tab:focus,
.asm-tab:active {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    color: var(--asm-text);
}

.asm-panel { display: none; }
.asm-panel.active { display: block; }

.asm-event {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 16px;
    padding: 18px 16px 18px 14px;
    margin-bottom: 12px;
    border-radius: 10px;
    border-left: 3px solid var(--asm-accent, #9aa5ab);
    background-color: #fbfbfb;
    transition: background-color .2s ease, opacity .2s ease;
}
.asm-event:hover {
    background-color: #f5f5fa;
}
.asm-event.asm-past {
    opacity: 0.5;
}

.asm-date {
    text-align: center;
    line-height: 1.1;
}
.asm-date .asm-day {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #2f2e35;
}

.asm-date .asm-month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #2f2e35; /* Couleur demandée pour le mois de début */
    letter-spacing: .03em;
    line-height: 1.2;
}

.asm-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.asm-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.asm-badge {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: var(--asm-teal);
    padding: 2px 7px;
    border-radius: 10px;
    letter-spacing: .03em;
}
.asm-badge-major {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: var(--asm-secondary);
    padding: 2px 7px;
    border-radius: 10px;
    letter-spacing: .03em;
}
.asm-countdown {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--asm-blue);
    white-space: nowrap;
}

.asm-meta {
    font-size: 0.85rem;
    color: #6b6c74;
    margin: 4px 0 0;
}

.asm-progress { margin: 10px 0; }
.asm-progress-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--asm-teal);
    margin-bottom: 4px;
    letter-spacing: .03em;
}
.asm-progress-track {
    height: 4px;
    background: var(--asm-border);
    border-radius: 2px;
    position: relative; /* Nécessaire pour positionner le point par rapport à la piste */
}
.asm-progress-fill {
    height: 100%;
    background: var(--asm-teal);
    border-radius: 2px;
    position: relative;
}
.asm-progress-fill::after {
    content: '';
    position: absolute;
    right: -4px; /* Centre le point sur le bord de la barre */
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--asm-teal);
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff; /* Crée une petite bordure blanche pour l'isoler proprement */
}
.asm-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--asm-text);
    margin: 8px 0 0;
}
.asm-desc p { margin: 0 0 8px; }

.asm-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.asm-link, .asm-ics {
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}
.asm-link { color: var(--asm-blue); border-bottom: 1px solid rgba(38,145,196,.35); }
.asm-ics { color: var(--asm-text); border-bottom: 1px solid var(--asm-border); }
.asm-link:hover, .asm-ics:hover { border-bottom-color: currentColor; }

.asm-date .asm-date-end {
    display: block;
    font-size: 0.75rem; /* Plus petit */
    font-weight: 600;
    color: #9a9ba3; /* Couleur demandée pour la date de fin */
    margin-top: 4px;
    text-transform: uppercase;
    line-height: 1.1;
}

.asm-empty {
    color: #9a9ba3;
    font-size: 0.9rem;
    padding: 30px 0;
}
.asm-badge-mobile-wrap {
    display: none;
}
.asm-badge-desktop {
    display: inline-flex;
    align-items: center;
}
.asm-event-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover; /* Évite que l'image soit déformée si elle n'est pas strictement carrée */
    border-radius: 6px;
    margin-top: 8px; /* Petit espace entre la date et l'image */
    display: inline-block;
}

/* Sur les écrans mobiles (petits écrans, ex: tablettes et téléphones < 768px) */
@media (max-width: 768px) {
    .asm-badge-mobile-wrap {
        display: block;
        margin-bottom: 6px; /* Espace entre le badge et le titre */
    }
    .asm-badge-desktop {
        display: none; /* On masque le badge de droite sur mobile pour éviter les doublons */
    }
}