/* ============================================================
   JEU DE DAMES
   assets/css/mobile.css
   Responsive mobile / tablette
   ============================================================ */

:root {
    --mobile-primary: #0d6efd;
    --mobile-primary-dark: #084298;
    --mobile-success: #198754;
    --mobile-danger: #dc3545;
    --mobile-warning: #ffc107;

    --mobile-bg: #f5f7fa;
    --mobile-card: #ffffff;
    --mobile-text: #1f2937;
    --mobile-muted: #6b7280;
    --mobile-border: #e5e7eb;

    --mobile-radius: 12px;

    --mobile-bottom-height: 64px;
}


/* ============================================================
   RESET MOBILE
   ============================================================ */

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    min-height: 100%;
    margin: 0;

    overflow-x: hidden;

    -webkit-tap-highlight-color: transparent;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}


/* ============================================================
   CONTENEUR PRINCIPAL
   ============================================================ */

.mobile-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 15px;
}


/* ============================================================
   NAVIGATION MOBILE
   ============================================================ */

.mobile-header {
    position: sticky;

    top: 0;

    z-index: 1000;

    width: 100%;

    min-height: 58px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    padding: 8px 12px;

    background: rgba(255, 255, 255, 0.97);

    border-bottom: 1px solid var(--mobile-border);

    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.05);

    backdrop-filter: blur(10px);
}

.mobile-header-brand {
    display: flex;

    align-items: center;

    gap: 8px;

    min-width: 0;

    color: var(--mobile-text);

    font-size: 16px;

    font-weight: 800;

    text-decoration: none;
}

.mobile-header-brand img {
    width: 34px;

    height: 34px;

    object-fit: cover;

    border-radius: 8px;
}

.mobile-header-actions {
    display: flex;

    align-items: center;

    gap: 5px;
}

.mobile-header-btn {
    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 0;

    border-radius: 9px;

    background: transparent;

    color: var(--mobile-text);

    cursor: pointer;
}

.mobile-header-btn:hover,
.mobile-header-btn:active {
    background: #f1f3f5;
}


/* ============================================================
   MENU MOBILE
   ============================================================ */

.mobile-menu {
    position: fixed;

    top: 0;

    left: 0;

    z-index: 3000;

    width: min(88vw, 330px);

    height: 100vh;

    height: 100dvh;

    overflow-y: auto;

    background: var(--mobile-card);

    box-shadow:
        10px 0 35px rgba(0, 0, 0, 0.15);

    transform: translateX(-105%);

    transition:
        transform 0.25s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-overlay {
    position: fixed;

    inset: 0;

    z-index: 2999;

    background: rgba(0, 0, 0, 0.45);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;

    visibility: visible;
}

.mobile-menu-header {
    min-height: 64px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 12px 15px;

    border-bottom:
        1px solid var(--mobile-border);
}

.mobile-menu-title {
    font-size: 16px;

    font-weight: 800;
}

.mobile-menu-close {
    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 0;

    border-radius: 8px;

    background: #f1f3f5;

    cursor: pointer;
}

.mobile-menu-list {
    list-style: none;

    margin: 0;

    padding: 10px;
}

.mobile-menu-list a {
    display: flex;

    align-items: center;

    gap: 11px;

    min-height: 46px;

    padding: 9px 11px;

    border-radius: 9px;

    color: var(--mobile-text);

    font-size: 13px;

    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.mobile-menu-list a:hover,
.mobile-menu-list a.active {
    background: #eef4ff;

    color: var(--mobile-primary);
}

.mobile-menu-icon {
    width: 24px;

    text-align: center;

    flex: 0 0 24px;
}


/* ============================================================
   BOTTOM NAVIGATION
   ============================================================ */

.mobile-bottom-nav {
    position: fixed;

    left: 0;

    right: 0;

    bottom: 0;

    z-index: 2000;

    height:
        calc(
            var(--mobile-bottom-height)
            + env(safe-area-inset-bottom)
        );

    display: flex;

    align-items: flex-start;

    justify-content: space-around;

    padding:
        6px 4px
        env(safe-area-inset-bottom);

    background:
        rgba(255, 255, 255, 0.98);

    border-top:
        1px solid var(--mobile-border);

    box-shadow:
        0 -3px 15px rgba(0, 0, 0, 0.07);

    backdrop-filter:
        blur(10px);
}

.mobile-bottom-item {
    flex: 1;

    min-width: 0;

    height: 52px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 3px;

    color: #6b7280;

    font-size: 9px;

    font-weight: 700;

    text-decoration: none;

    border-radius: 8px;

    transition:
        color 0.15s ease,
        background 0.15s ease;
}

.mobile-bottom-item:hover,
.mobile-bottom-item.active {
    color: var(--mobile-primary);

    background: #f1f5ff;
}

.mobile-bottom-icon {
    font-size: 19px;

    line-height: 1;
}


/* ============================================================
   CONTENU AVEC BOTTOM NAV
   ============================================================ */

.has-mobile-bottom-nav {
    padding-bottom:
        calc(
            var(--mobile-bottom-height)
            + env(safe-area-inset-bottom)
            + 15px
        );
}


/* ============================================================
   CARTES
   ============================================================ */

.mobile-card {
    width: 100%;

    margin-bottom: 12px;

    padding: 14px;

    background: var(--mobile-card);

    border:
        1px solid var(--mobile-border);

    border-radius:
        var(--mobile-radius);

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.05);
}

.mobile-card:last-child {
    margin-bottom: 0;
}

.mobile-card-title {
    margin:
        0 0 10px;

    font-size: 14px;

    font-weight: 800;
}

.mobile-card-subtitle {
    margin:
        -5px 0 12px;

    color: var(--mobile-muted);

    font-size: 11px;
}


/* ============================================================
   TITRES
   ============================================================ */

.mobile-page-title {
    margin:
        0 0 5px;

    color: var(--mobile-text);

    font-size: 20px;

    font-weight: 800;

    line-height: 1.25;
}

.mobile-page-description {
    margin:
        0 0 15px;

    color: var(--mobile-muted);

    font-size: 11px;

    line-height: 1.5;
}


/* ============================================================
   BOUTONS
   ============================================================ */

.mobile-btn {
    min-height: 42px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding:
        9px 14px;

    border: 0;

    border-radius: 9px;

    background: var(--mobile-primary);

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    text-decoration: none;

    transition:
        transform 0.15s ease,
        background 0.15s ease;
}

.mobile-btn:active {
    transform: scale(0.97);
}

.mobile-btn-primary {
    background: var(--mobile-primary);
}

.mobile-btn-success {
    background: var(--mobile-success);
}

.mobile-btn-danger {
    background: var(--mobile-danger);
}

.mobile-btn-warning {
    background: var(--mobile-warning);

    color: #212529;
}

.mobile-btn-light {
    background: #f1f3f5;

    color: #374151;
}

.mobile-btn-block {
    width: 100%;
}

.mobile-btn-sm {
    min-height: 36px;

    padding:
        7px 10px;

    font-size: 11px;
}


/* ============================================================
   GRILLE RESPONSIVE
   ============================================================ */

.mobile-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
}

.mobile-grid-3 {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 8px;
}


/* ============================================================
   STATISTIQUES
   ============================================================ */

.mobile-stat {
    min-width: 0;

    padding: 12px;

    background: var(--mobile-card);

    border:
        1px solid var(--mobile-border);

    border-radius: 10px;
}

.mobile-stat-label {
    overflow: hidden;

    color: var(--mobile-muted);

    font-size: 9px;

    font-weight: 700;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.mobile-stat-value {
    margin-top: 4px;

    overflow: hidden;

    color: var(--mobile-text);

    font-size: 18px;

    font-weight: 800;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.mobile-stat-icon {
    width: 32px;

    height: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 7px;

    border-radius: 8px;

    background: #eef4ff;

    color: var(--mobile-primary);
}


/* ============================================================
   FORMULAIRES
   ============================================================ */

.mobile-form-group {
    margin-bottom: 13px;
}

.mobile-form-label {
    display: block;

    margin-bottom: 5px;

    color: var(--mobile-text);

    font-size: 11px;

    font-weight: 700;
}

.mobile-form-control {
    width: 100%;

    min-height: 43px;

    padding:
        9px 11px;

    border:
        1px solid var(--mobile-border);

    border-radius: 9px;

    outline: none;

    background: #ffffff;

    color: var(--mobile-text);

    font-size: 12px;

    appearance: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.mobile-form-control:focus {
    border-color:
        var(--mobile-primary);

    box-shadow:
        0 0 0 3px
        rgba(13, 110, 253, 0.1);
}

.mobile-form-control::placeholder {
    color: #9ca3af;
}

textarea.mobile-form-control {
    min-height: 90px;

    resize: vertical;
}


/* ============================================================
   INPUT AVEC ICÔNE
   ============================================================ */

.mobile-input-group {
    position: relative;
}

.mobile-input-group .mobile-form-control {
    padding-left: 40px;
}

.mobile-input-icon {
    position: absolute;

    left: 12px;

    top: 50%;

    transform: translateY(-50%);

    color: #9ca3af;

    pointer-events: none;
}


/* ============================================================
   TABLEAUX RESPONSIVE
   ============================================================ */

.mobile-table-wrapper {
    width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;

    border-radius: 9px;
}

.mobile-table {
    width: 100%;

    min-width: 620px;

    border-collapse: collapse;

    font-size: 11px;
}

.mobile-table th,
.mobile-table td {
    padding:
        9px 8px;

    border-bottom:
        1px solid var(--mobile-border);

    text-align: left;

    white-space: nowrap;
}

.mobile-table th {
    background:
        #f8fafc;

    color:
        #374151;

    font-size: 9px;

    font-weight: 800;

    text-transform:
        uppercase;
}

.mobile-table tr:last-child td {
    border-bottom: 0;
}


/* ============================================================
   BADGES
   ============================================================ */

.mobile-badge {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 23px;

    padding:
        4px 8px;

    border-radius: 20px;

    font-size: 9px;

    font-weight: 800;

    white-space: nowrap;
}

.mobile-badge-success {
    background: #d1e7dd;

    color: #0f5132;
}

.mobile-badge-danger {
    background: #f8d7da;

    color: #842029;
}

.mobile-badge-warning {
    background: #fff3cd;

    color: #664d03;
}

.mobile-badge-primary {
    background: #cfe2ff;

    color: #084298;
}

.mobile-badge-secondary {
    background: #e2e3e5;

    color: #41464b;
}


/* ============================================================
   LISTES
   ============================================================ */

.mobile-list {
    list-style: none;

    margin: 0;

    padding: 0;
}

.mobile-list-item {
    display: flex;

    align-items: center;

    gap: 10px;

    min-height: 54px;

    padding: 9px 0;

    border-bottom:
        1px solid var(--mobile-border);
}

.mobile-list-item:last-child {
    border-bottom: 0;
}

.mobile-list-icon {
    width: 38px;

    height: 38px;

    flex: 0 0 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 9px;

    background: #f1f5f9;

    color: var(--mobile-primary);
}

.mobile-list-content {
    min-width: 0;

    flex: 1;
}

.mobile-list-title {
    overflow: hidden;

    color: var(--mobile-text);

    font-size: 12px;

    font-weight: 700;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.mobile-list-text {
    margin-top: 2px;

    overflow: hidden;

    color: var(--mobile-muted);

    font-size: 10px;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.mobile-list-end {
    flex: 0 0 auto;

    text-align: right;
}


/* ============================================================
   PORTEFEUILLE
   ============================================================ */

.mobile-wallet {
    padding: 18px;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #0d6efd,
            #084298
        );

    color: #ffffff;

    box-shadow:
        0 10px 25px
        rgba(13, 110, 253, 0.2);
}

.mobile-wallet-label {
    font-size: 10px;

    opacity: 0.8;
}

.mobile-wallet-balance {
    margin-top: 4px;

    font-size: 28px;

    font-weight: 800;

    letter-spacing: -0.5px;
}

.mobile-wallet-currency {
    font-size: 12px;

    font-weight: 700;
}

.mobile-wallet-actions {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 8px;

    margin-top: 15px;
}

.mobile-wallet-action {
    min-height: 39px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 8px;

    background:
        rgba(255, 255, 255, 0.16);

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;

    text-decoration: none;
}


/* ============================================================
   MOBILE MONEY
   ============================================================ */

.mobile-money-operators {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 9px;
}

.mobile-money-operator {
    min-height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding: 9px;

    background: #ffffff;

    border:
        1px solid var(--mobile-border);

    border-radius: 9px;

    color: var(--mobile-text);

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;
}

.mobile-money-operator.active {
    border-color:
        var(--mobile-primary);

    background:
        #eef4ff;

    color:
        var(--mobile-primary);

    box-shadow:
        0 0 0 2px
        rgba(13, 110, 253, 0.08);
}


/* ============================================================
   AUTHENTIFICATION
   ============================================================ */

.mobile-auth {
    min-height: 100vh;

    min-height: 100dvh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding:
        20px 15px;
}

.mobile-auth-card {
    width: 100%;

    max-width: 430px;

    padding: 22px 18px;

    background: #ffffff;

    border:
        1px solid var(--mobile-border);

    border-radius: 14px;

    box-shadow:
        0 10px 35px
        rgba(0, 0, 0, 0.08);
}

.mobile-auth-logo {
    width: 60px;

    height: 60px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin:
        0 auto 14px;

    border-radius: 15px;

    background: #eef4ff;

    color: var(--mobile-primary);

    font-size: 25px;

    font-weight: 800;
}

.mobile-auth-title {
    margin: 0;

    text-align: center;

    font-size: 21px;

    font-weight: 800;
}

.mobile-auth-subtitle {
    margin:
        6px 0 20px;

    color: var(--mobile-muted);

    text-align: center;

    font-size: 11px;

    line-height: 1.5;
}


/* ============================================================
   ALERTES
   ============================================================ */

.mobile-alert {
    display: flex;

    align-items: flex-start;

    gap: 8px;

    margin-bottom: 12px;

    padding:
        10px 11px;

    border-radius: 9px;

    font-size: 11px;

    line-height: 1.45;
}

.mobile-alert-success {
    background: #d1e7dd;

    color: #0f5132;
}

.mobile-alert-danger {
    background: #f8d7da;

    color: #842029;
}

.mobile-alert-warning {
    background: #fff3cd;

    color: #664d03;
}

.mobile-alert-info {
    background: #cff4fc;

    color: #055160;
}


/* ============================================================
   MODALES
   ============================================================ */

.mobile-modal {
    position: fixed;

    inset: 0;

    z-index: 5000;

    display: none;

    align-items: flex-end;

    justify-content: center;

    padding: 0;

    background:
        rgba(0, 0, 0, 0.45);
}

.mobile-modal.show {
    display: flex;
}

.mobile-modal-content {
    width: 100%;

    max-height:
        90vh;

    max-height:
        90dvh;

    overflow-y: auto;

    padding:
        18px 15px
        calc(
            18px
            + env(safe-area-inset-bottom)
        );

    background: #ffffff;

    border-radius:
        18px 18px 0 0;

    animation:
        mobile-modal-up
        0.25s ease;
}

@keyframes mobile-modal-up {

    from {
        transform:
            translateY(100%);
    }

    to {
        transform:
            translateY(0);
    }

}

.mobile-modal-handle {
    width: 38px;

    height: 4px;

    margin:
        -5px auto 15px;

    border-radius: 20px;

    background: #d1d5db;
}

.mobile-modal-title {
    margin: 0 0 12px;

    font-size: 16px;

    font-weight: 800;
}


/* ============================================================
   JEU DE DAMES - MOBILE
   ============================================================ */

.mobile-game {
    width: 100%;

    max-width: 700px;

    margin: 0 auto;
}

.mobile-game-board {
    width: 100%;

    aspect-ratio: 1 / 1;
}

.mobile-game-controls {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 7px;

    margin-top: 10px;
}

.mobile-game-controls button {
    min-height: 40px;

    border: 0;

    border-radius: 8px;

    background: #ffffff;

    border:
        1px solid var(--mobile-border);

    color: var(--mobile-text);

    font-size: 11px;

    font-weight: 700;
}


/* ============================================================
   HISTORIQUE
   ============================================================ */

.mobile-history-item {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 11px 0;

    border-bottom:
        1px solid var(--mobile-border);
}

.mobile-history-item:last-child {
    border-bottom: 0;
}

.mobile-history-icon {
    width: 38px;

    height: 38px;

    flex: 0 0 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 9px;

    background: #eef4ff;

    color: var(--mobile-primary);
}

.mobile-history-info {
    flex: 1;

    min-width: 0;
}

.mobile-history-title {
    overflow: hidden;

    color: var(--mobile-text);

    font-size: 11px;

    font-weight: 700;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.mobile-history-date {
    margin-top: 2px;

    color: var(--mobile-muted);

    font-size: 9px;
}

.mobile-history-amount {
    flex: 0 0 auto;

    font-size: 11px;

    font-weight: 800;

    text-align: right;
}

.mobile-history-amount.positive {
    color: var(--mobile-success);
}

.mobile-history-amount.negative {
    color: var(--mobile-danger);
}


/* ============================================================
   PAGINATION
   ============================================================ */

.mobile-pagination {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 4px;

    margin-top: 15px;
}

.mobile-pagination a,
.mobile-pagination span {
    min-width: 34px;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0 7px;

    border:
        1px solid var(--mobile-border);

    border-radius: 7px;

    background: #ffffff;

    color: var(--mobile-text);

    font-size: 10px;

    font-weight: 700;

    text-decoration: none;
}

.mobile-pagination .active {
    background: var(--mobile-primary);

    border-color: var(--mobile-primary);

    color: #ffffff;
}


/* ============================================================
   EMPTY STATE
   ============================================================ */

.mobile-empty {
    padding: 35px 15px;

    text-align: center;
}

.mobile-empty-icon {
    width: 52px;

    height: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin:
        0 auto 10px;

    border-radius: 50%;

    background: #f1f5f9;

    color: #94a3b8;

    font-size: 21px;
}

.mobile-empty-title {
    margin: 0;

    font-size: 14px;

    font-weight: 800;
}

.mobile-empty-text {
    margin:
        5px auto 0;

    max-width: 300px;

    color: var(--mobile-muted);

    font-size: 10px;

    line-height: 1.5;
}


/* ============================================================
   SPINNER
   ============================================================ */

.mobile-spinner {
    width: 28px;

    height: 28px;

    margin: 15px auto;

    border:
        3px solid #e9ecef;

    border-top-color:
        var(--mobile-primary);

    border-radius: 50%;

    animation:
        mobile-spin 0.8s linear infinite;
}

@keyframes mobile-spin {

    to {
        transform:
            rotate(360deg);
    }

}


/* ============================================================
   TABLETTE
   ============================================================ */

@media (min-width: 576px) {

    .mobile-container {
        max-width: 720px;

        padding:
            20px;
    }

    .mobile-auth-card {
        padding:
            28px 25px;
    }

    .mobile-modal {
        align-items: center;

        padding: 20px;
    }

    .mobile-modal-content {
        max-width: 500px;

        border-radius: 15px;

        padding:
            22px;
    }

    .mobile-modal-handle {
        display: none;
    }

}


/* ============================================================
   TABLETTE LARGE
   ============================================================ */

@media (min-width: 768px) {

    .mobile-container {
        max-width: 960px;
    }

    .mobile-bottom-nav {
        display: none;
    }

    .has-mobile-bottom-nav {
        padding-bottom: 20px;
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767.98px) {

    body {
        padding-bottom:
            calc(
                var(--mobile-bottom-height)
                + env(safe-area-inset-bottom)
            );
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .mobile-hide {
        display: none !important;
    }

    .mobile-full-width {
        width: 100% !important;
    }

    .mobile-stack {
        display: flex !important;

        flex-direction: column !important;

        width: 100% !important;
    }

    .mobile-stack > * {
        width: 100% !important;
    }

    .mobile-center {
        text-align: center !important;
    }

}


/* ============================================================
   PETIT MOBILE
   ============================================================ */

@media (max-width: 480px) {

    .mobile-container {
        padding:
            10px;
    }

    .mobile-page-title {
        font-size: 18px;
    }

    .mobile-grid {
        gap: 7px;
    }

    .mobile-stat {
        padding: 10px;
    }

    .mobile-stat-value {
        font-size: 16px;
    }

    .mobile-card {
        padding: 12px;
    }

    .mobile-wallet {
        padding: 15px;
    }

    .mobile-wallet-balance {
        font-size: 24px;
    }

}


/* ============================================================
   TRÈS PETIT ÉCRAN
   ============================================================ */

@media (max-width: 360px) {

    .mobile-container {
        padding:
            7px;
    }

    .mobile-header {
        padding:
            7px 9px;
    }

    .mobile-header-brand {
        font-size: 14px;
    }

    .mobile-header-brand img {
        width: 30px;

        height: 30px;
    }

    .mobile-bottom-item {
        font-size: 8px;
    }

    .mobile-bottom-icon {
        font-size: 17px;
    }

    .mobile-btn {
        min-height: 39px;

        padding:
            8px 10px;

        font-size: 11px;
    }

}


/* ============================================================
   SAFE AREA IPHONE / ANDROID
   ============================================================ */

@supports (padding: env(safe-area-inset-bottom)) {

    .mobile-bottom-nav {
        padding-bottom:
            env(safe-area-inset-bottom);
    }

}


/* ============================================================
   MODE SOMBRE
   ============================================================ */

@media (prefers-color-scheme: dark) {

    body.mobile-auto-dark {
        --mobile-bg: #0f172a;

        --mobile-card: #111827;

        --mobile-text: #f3f4f6;

        --mobile-muted: #9ca3af;

        --mobile-border: #374151;

        background:
            var(--mobile-bg);

        color:
            var(--mobile-text);
    }

    body.mobile-auto-dark .mobile-header,
    body.mobile-auto-dark .mobile-bottom-nav,
    body.mobile-auto-dark .mobile-card,
    body.mobile-auto-dark .mobile-auth-card,
    body.mobile-auto-dark .mobile-modal-content,
    body.mobile-auto-dark .mobile-form-control,
    body.mobile-auto-dark .mobile-money-operator,
    body.mobile-auto-dark .mobile-pagination a,
    body.mobile-auto-dark .mobile-pagination span,
    body.mobile-auto-dark .mobile-game-controls button {
        background:
            var(--mobile-card);

        color:
            var(--mobile-text);

        border-color:
            var(--mobile-border);
    }

    body.mobile-auto-dark .mobile-table th {
        background:
            #1f2937;

        color:
            #e5e7eb;
    }

}


/* ============================================================
   ACCESSIBILITÉ
   ============================================================ */

@media (hover: none) {

    .mobile-btn:hover,
    .mobile-header-btn:hover,
    .mobile-bottom-item:hover,
    .mobile-menu-list a:hover {
        transform: none;
    }

}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }

}


/* ============================================================
   IMPRESSION
   ============================================================ */

@media print {

    .mobile-header,
    .mobile-bottom-nav,
    .mobile-menu,
    .mobile-menu-overlay,
    .mobile-btn {
        display: none !important;
    }

    body {
        padding-bottom: 0 !important;

        background: #ffffff !important;
    }

}


/* ============================================================
   FIN mobile.css
   ============================================================ */