
@media (max-width: 576px) {
  .container-fluid{
      padding-left: 0.5rem;
      padding-right: 0.5rem;
  }

  .container-fluid .container {
      padding-left: 0.1rem;
      padding-right: 0.1rem;
  }

  .sidebar .nav-item .nav-link  {
            text-align: center;
        padding: 0.75rem 1rem;
        width: 13.5rem;
    }

    .sidebar .nav-item .collapse {
        position: absolute;
        left: calc(1.5rem + 0.5rem / 2);
        z-index: 1;
        top: 46px;
    }

    .page {
        padding-top: 33px;
        min-height: 10vh;
        
        margin-left: -22px;
        margin-right: -22px;
    }
    .profile-page{
        padding-top: 5px;
        padding-bottom: 5px;
         
    }

}


    .fa-solid {
        font-family: "Font Awesome 6 Free" !important;
        font-weight: 900 !important;
        color: rgb(3, 127, 28);
    }
    .pricing-table {
        margin-top: 20px;
    }
    .DIAMOND {
        border: 1px solid #b8a5a5;
        border-radius: 10px;
        padding: 20px;
        text-align: center;
    }
    .GOLD {
        border: 1px solid #ecfc03ab;
        border-radius: 10px;
        padding: 20px;
        text-align: center;
    }
    .pricing-price {
        display: grid;
        font-size: 20px;
        font-weight: bold;
        color: #600303;
    }

    /* ========== MOBILE FIRST – Sidebar fermée par défaut ========== */
    @media (max-width: 767.98px) {

        /* Sidebar complètement hors écran par défaut */
        #accordionSidebar {
            position: fixed !important;
            top: 0;
            left: 0;
            bottom: 0;
            z-index: 1050;
            width: 0 !important;
            overflow-x: hidden;
            overflow-y: auto;
            transition: width 0.25s ease, box-shadow 0.25s ease;
            box-shadow: none;
        }

        /* Quand on ouvre le menu (classe .toggled ajoutée par SB Admin 2) */
        #accordionSidebar.toggled {
            width: 14rem !important;          /* largeur du menu ouvert */
            box-shadow: 0 0 25px rgba(0,0,0,.35);
        }

        /* Overlay sombre derrière le menu ouvert */
        body.sidebar-toggled::before {
            content: "";
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,.45);
            z-index: 1040;
        }

        /* Contenu principal prend toute la largeur */
        #content-wrapper {
            margin-left: 0 !important;
            width: 100% !important;
        }

        /* Topbar plus compacte */
        .topbar {
            height: 3.5rem;
            padding-left: 0.5rem;
            padding-right: 0.5rem;
        }

        .topbar .navbar-search {
            display: none !important;   /* on garde la recherche uniquement dans le dropdown mobile */
        }

        /* Cards du tableau de bord */
        .card {
            margin-bottom: 1rem;
        }

        .card .card-body {
            padding: 1rem;
        }

        .h3 {
            font-size: 1.25rem;
        }

        /* Bouton "Recharger mon compte" visible et bien placé */
        .d-sm-flex .btn {
            margin-top: 0.5rem;
            width: 100%;
        }

        /* Sidebar card (promo abonnements) cachée sur très petit écran */
        .sidebar-card {
            display: none !important;
        }

        /* Texte du solde du portefeuille plus lisible */
        .nav-item .badge {
            font-size: 0.85rem;
            white-space: normal;
        }

        /* Évite le débordement horizontal */
        body, #wrapper, #content-wrapper, #content {
            overflow-x: hidden;
        }

        .container-fluid {
            padding-left: 0.75rem;
            padding-right: 0.75rem;
        }
    }

    /* Très petits téléphones */
    @media (max-width: 400px) {
        .sidebar-brand-text {
            font-size: 0.85rem;
        }
        .h5 {
            font-size: 1rem;
        }

        
    }
 