/* ═══════════════════════════════════════════════════════════════════════════
   mobile.css — styles pour les vues mobiles dédiées (Tuteur + Moniteur)
   et pour les composants mobiles du layout principal (bottom-nav, drawer)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Reset / base ── */
.oms-mobile-body {
    background: #f4f6f9;
    font-size: 1rem;
    -webkit-tap-highlight-color: transparent;
}

/* ── Navbar mobile épurée ── */
.oms-mobile-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 52px;
    background: #53C0D9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 200;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.oms-mobile-nav__brand svg {
    display: block;
}

.oms-mobile-nav__logout {
    color: white;
    font-size: 1.4rem;
    text-decoration: none;
}

/* ── Contenu principal ── */
.oms-mobile-main {
    padding-top: 52px;
    padding-bottom: 16px;
    min-height: 100vh;
}

/* ── Page wrapper ── */
.oms-mobile-page {
    padding: 16px;
}

/* ── En-tête de section ── */
.oms-mobile-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
}

.oms-mobile-header i {
    font-size: 1.6rem;
    color: #53C0D9;
}

.oms-mobile-header span {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    margin-top: 2px;
}

.oms-mobile-header__date {
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
}

/* ── État vide ── */
.oms-mobile-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.oms-mobile-empty i {
    color: #53C0D9;
    display: block;
    margin-bottom: 12px;
}

/* ═══════════════════════════════
   VUE TUTEUR — cartes élève
   ═══════════════════════════════ */

.oms-eleve-card {
    display: flex;
    align-items: center;
    width: 100%;
    background: white;
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    cursor: pointer;
    text-align: left;
    transition: box-shadow .15s, transform .1s;
}

.oms-eleve-card:active {
    transform: scale(.98);
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.oms-eleve-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #53C0D9;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 14px;
}

.oms-eleve-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.oms-eleve-card__info strong {
    font-size: 1rem;
    color: #222;
}

.oms-eleve-card__info small {
    font-size: 0.8rem;
    color: #888;
    margin-top: 2px;
}

.oms-eleve-card__arrow {
    color: #bbb;
    font-size: 1.1rem;
}

/* ── Barre retour (dans la vue calendrier) ── */
.oms-mobile-back-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.oms-btn-back {
    background: none;
    border: 1.5px solid #53C0D9;
    color: #53C0D9;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.9rem;
    cursor: pointer;
}

.oms-back-bar__nom {
    font-weight: 700;
    font-size: 1rem;
    color: #222;
}

/* ── Spinner de chargement ── */
.oms-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    color: #666;
}

/* ═══════════════════════════════
   VUE MONITEUR — cartes séance
   ═══════════════════════════════ */

.oms-seance-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    margin-bottom: 16px;
    overflow: hidden;
}

.oms-seance-card__header {
    background: #53C0D9;
    color: white;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.oms-seance-card__heure {
    font-size: 1.1rem;
    font-weight: 700;
}

.oms-seance-card__groupe {
    font-size: 0.9rem;
    opacity: .9;
}

.oms-seance-card__piscine {
    font-size: 0.8rem;
    opacity: .8;
}

.oms-seance-card__body {
    padding: 8px 0;
}

.oms-creneau {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.oms-creneau:last-child {
    border-bottom: none;
}

.oms-creneau--recup {
    background: #fff8e1;
}

.oms-creneau__heure {
    font-size: 0.8rem;
    color: #888;
    width: 48px;
    flex-shrink: 0;
}

.oms-creneau__eleve {
    flex: 1;
    font-size: 0.95rem;
    color: #222;
}

.oms-creneau__niveau {
    font-size: 0.7rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BOTTOM NAV — layout principal (utilisé dans _layout.cshtml)
   ═══════════════════════════════════════════════════════════════════════════ */

.oms-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: stretch;
    z-index: 300;
    box-shadow: 0 -2px 8px rgba(0,0,0,.08);
}

.oms-bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #888;
    text-decoration: none;
    font-size: 0.65rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
    transition: color .15s;
    -webkit-tap-highlight-color: transparent;
}

.oms-bottom-nav__item i {
    font-size: 1.3rem;
}

.oms-bottom-nav__item.active,
.oms-bottom-nav__item:active {
    color: #53C0D9;
}

/* ═══════════════════════════════
   DRAWER (sidebar mobile)
   ═══════════════════════════════ */

.oms-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 250;
}

.oms-sidebar-overlay.oms-active {
    display: block;
}

.sidebar.oms-drawer-open {
    display: block !important;
    position: fixed;
    top: 0; left: 0;
    width: 240px;
    height: 100vh;
    z-index: 260;
    background: white;
    box-shadow: 2px 0 12px rgba(0,0,0,.2);
    overflow-y: auto;
    transform: translateX(0);
    animation: oms-slide-in .22s ease-out;
}

@keyframes oms-slide-in {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
}

body.oms-no-scroll {
    overflow: hidden;
}

/* Espace sous le contenu pour la bottom nav sur le layout principal */
@media (max-width: 767px) {
    .container > div {
        padding-bottom: 70px;
    }
}
