/*
 * VSGYM Élan 1.4.30 — Agenda mobile, lecture d'abord.
 * Desktop conservé intégralement. Aucun contenu, date ou événement n'est modifié.
 * Mobile : repères colorés, filtres compacts, liste directe, calendrier secondaire.
 */
.vsgym-agenda__mobile-subtitle,
.vsgym-agenda__mobile-advanced,
.vsgym-agenda__filter-dot { display: none; }

@media (max-width:760px) {
  .vsgym-agenda {
    width: calc(100% - 32px);
    max-width: 560px;
    margin-inline: auto;
    padding: 19px 0 42px;
  }
  .vsgym-agenda__intro { margin: 0 0 18px; }
  .vsgym-agenda__intro .vsgym-kicker,
  .vsgym-agenda__intro > p:not(.vsgym-agenda__mobile-subtitle) { display: none; }
  .vsgym-agenda__intro h1 {
    margin: 0 0 5px;
    font-size: clamp(36px, 9vw, 48px);
    line-height: 1.05;
    letter-spacing: 0;
  }
  .vsgym-agenda__intro .vsgym-agenda__mobile-subtitle {
    display: block;
    margin: 0;
    font: 400 14px/1.45 Barlow,sans-serif;
    color: #607381;
  }
  .vsgym-agenda__toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin: 0 0 10px;
  }
  .vsgym-agenda__monthnav {
    display: grid;
    width: 100%;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 7px;
    align-items: center;
  }
  .vsgym-agenda__monthnav h2 {
    margin: 0;
    min-width: 0;
    font: 400 clamp(23px, 6vw, 29px)/1.1 'Bebas Neue', sans-serif;
    color: #142b3a;
    text-transform: uppercase;
    text-align: center;
  }
  .vsgym-agenda__monthnav > a {
    width: 44px;
    height: 44px;
    min-height: 44px;
    border: 1px solid #dce6ec;
    border-radius: 11px;
    background: #f5f8fa;
    color: #075c87;
    font-size: 22px;
    text-decoration: none;
  }
  .vsgym-agenda__monthnav > a:hover,
  .vsgym-agenda__monthnav > a:focus-visible {
    background: #e4f4fc;
    border-color: #8bc9e8;
  }
  .vsgym-agenda__filters {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    gap: 7px;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 7px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }
  .vsgym-agenda__filters a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #e0e7ed;
    border-radius: 20px;
    background: #f5f8fa;
    color: #3b5362;
    font: 700 12.5px/1.2 Barlow,sans-serif;
    text-decoration: none;
    white-space: nowrap;
    scroll-snap-align: start;
    touch-action: manipulation;
  }
  .vsgym-agenda__filters a.is-active {
    background: #e0f3fe;
    border-color: #84c5e6;
    color: #005a88;
  }
  .vsgym-agenda__filter-dot {
    display: block;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--vsgym-agenda-club);
  }
  .vsgym-agenda__filter-dot.is-competition { background: var(--vsgym-agenda-competition); }
  .vsgym-agenda__filter-dot.is-vacances { background: var(--vsgym-agenda-vacances); }
  .vsgym-agenda__filter-dot.is-feries { background: var(--vsgym-agenda-feries); }
  .vsgym-agenda__discipline,
  .vsgym-agenda__legend { display: none; }
  .vsgym-agenda__mobile-advanced {
    display: block;
    margin: 0;
    border-bottom: 1px solid #e8eef2;
    font-family: Barlow,sans-serif;
  }
  .vsgym-agenda__mobile-advanced summary {
    display: flex;
    gap: 9px;
    align-items: center;
    min-height: 44px;
    padding: 7px 0;
    color: #1e3f53;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    touch-action: manipulation;
    list-style: none;
  }
  .vsgym-agenda__mobile-advanced summary::-webkit-details-marker { display: none; }
  .vsgym-agenda__mobile-advanced summary > span {
    min-width: 0;
    flex: 1;
    color: #60717e;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
  }
  .vsgym-agenda__mobile-advanced summary::after {
    content: '⌄';
    font-size: 21px;
    font-weight: 400;
    line-height: 1;
    color: #006ca3;
    margin-left: 1px;
  }
  .vsgym-agenda__mobile-advanced[open] summary::after { content: '⌃'; }
  .vsgym-agenda__mobile-advanced-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 7px 0 14px;
    align-items: end;
    margin: 0;
  }
  .vsgym-agenda__mobile-advanced-form label {
    flex: 0 0 100%;
    font-size: 12px;
    font-weight: 650;
    color: #485d6b;
  }
  .vsgym-agenda__mobile-advanced-form select {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 7px 8px;
    border: 1px solid #cddde6;
    border-radius: 7px;
    background: #fff;
    color: #173143;
    font: 500 14px/1.3 Barlow,sans-serif;
  }
  .vsgym-agenda__mobile-advanced-form button {
    min-height: 44px;
    padding: 8px 13px;
    border: 0;
    border-radius: 7px;
    background: #009eff;
    color: #062b40;
    font: 750 13px/1.3 Barlow,sans-serif;
    cursor: pointer;
  }
  .vsgym-agenda__mobile-digest {
    display: block;
    margin: 23px 0 13px;
    scroll-margin-top: 90px;
  }
  .vsgym-agenda__digest-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 5px;
  }
  .vsgym-agenda__mobile-digest .vsgym-agenda__digest-heading h2 {
    margin: 0;
    font: 400 clamp(25px, 6.4vw, 32px)/1.1 'Bebas Neue',sans-serif;
    text-transform: uppercase;
    letter-spacing: 0;
    color: #101e27;
  }
  .vsgym-agenda__digest-heading > span {
    flex: 0 0 auto;
    color: #718390;
    font: 600 12px/1.3 Barlow,sans-serif;
  }
  .vsgym-agenda__mobile-entry {
    --vsgym-entry-color: var(--vsgym-agenda-club);
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #e6ecf0;
    background: transparent;
    scroll-margin-top: 100px;
  }
  .vsgym-agenda__mobile-entry.is-competition { --vsgym-entry-color: var(--vsgym-agenda-competition); }
  .vsgym-agenda__mobile-entry.is-vacances { --vsgym-entry-color: var(--vsgym-agenda-vacances); }
  .vsgym-agenda__mobile-entry.is-feries { --vsgym-entry-color: var(--vsgym-agenda-feries); }
  .vsgym-agenda__mobile-entry-link,
  .vsgym-agenda__mobile-entry-static {
    display: block;
    padding: 13px 0 15px;
    min-height: 74px;
    color: inherit;
    text-decoration: none;
    background: transparent;
    border: 0;
    border-radius: 0;
  }
  .vsgym-agenda__mobile-entry-link:hover .vsgym-agenda__mobile-entry-title { color: #006b9f; }
  .vsgym-agenda__mobile-entry-link:focus-visible { outline: 3px solid #0080c0; outline-offset: 2px; border-radius: 4px; }
  .vsgym-agenda__mobile-entry-date {
    display: block;
    padding: 0 0 7px;
    color: #516778;
    font: 650 12.5px/1.35 Barlow,sans-serif;
    text-transform: none;
  }
  .vsgym-agenda__mobile-entry-row {
    display: grid;
    grid-template-columns: 10px minmax(0,1fr) 14px;
    align-items: center;
    column-gap: 11px;
  }
  .vsgym-agenda__mobile-entry-dot {
    display: block;
    width: 10px;
    height: 10px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--vsgym-entry-color);
  }
  .vsgym-agenda__mobile-entry-content { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .vsgym-agenda__mobile-entry-title {
    color: #162833;
    font: 750 18px/1.2 Barlow,sans-serif;
    overflow-wrap: break-word;
    text-transform: none;
  }
  .vsgym-agenda__mobile-entry-meta,
  .vsgym-agenda__mobile-entry-venue {
    display: block;
    color: #637582;
    font: 500 12.5px/1.4 Barlow,sans-serif;
  }
  .vsgym-agenda__mobile-entry-meta { color: var(--vsgym-entry-color); font-weight: 700; }
  .vsgym-agenda__mobile-entry-arrow {
    justify-self: end;
    color: #8ba3af;
    font: 300 27px/1 Barlow,sans-serif;
  }
  .vsgym-agenda__calendar-head {
    display: block;
    margin: 13px 0 0;
  }
  .vsgym-agenda__calendar-head .vsgym-agenda__calendar-title { display: none; }
  .vsgym-agenda__calendar-toggle:not([hidden]) {
    display: flex;
    width: 100%;
    min-height: 47px;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid #e3ebf0;
    border-radius: 0;
    background: transparent;
    color: #006c9c;
    font: 750 14px/1.35 Barlow,sans-serif;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
  }
  .vsgym-agenda__calendar-toggle .vsgym-agenda__toggle-icon { font-size: 20px; line-height: 1; font-weight: 500; }
  .vsgym-agenda__calendar-shell { margin-top: 13px; }
  .vsgym-agenda__calendar-shell.is-collapsed { display: none; }
  .vsgym-agenda__calendar {
    gap: 1px;
    padding: 1px;
    background: #e0e9ee;
    border-color: #e0e9ee;
  }
  .vsgym-agenda__weekday {
    padding: 9px 0;
    background: #f2f6f8;
    color: #4a6170;
    font-size: 11px;
  }
  .vsgym-agenda__blank,
  .vsgym-agenda__day { min-height: 44px; height: 44px; }
  .vsgym-agenda__holiday-note {
    margin: 14px 0 0;
    color: #6b7d89;
    font-size: 12px;
    line-height: 1.45;
  }
}
@media (max-width:359px) {
  .vsgym-agenda { width: calc(100% - 26px); }
  .vsgym-agenda__digest-heading > span { font-size: 11px; }
  .vsgym-agenda__mobile-entry-title { font-size: 17px; }
}
@media (prefers-reduced-motion:reduce) {
  .vsgym-agenda__filters { scroll-behavior: auto; }
}
