/* MAIN CONTENT CONFIGURATION */
#main-content {
    margin-left: 10px;

}

.header, .footer {
    min-height: 60px;
    padding: 0 15px;

}

.header {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1002;
}

.black-bg {
    background: #22242a;
    border-bottom: 1px solid #393d46;
}

.wrapper {
    display: inline-block;
    margin-top: 60px;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 15px;
    padding-top: 0px;
    width: 100%;
}

a.logo {
    font-size: 24px;
    color: #DFF2FF;
    float: left;
    margin-top: 15px;


}

a.logo b {
    font-weight: 900;
    outline: none;
}

a.logo:hover, a.logo:focus {
    text-decoration: none;
    outline: none;
}

a.logo span {
    color: #0d6efd;
}
a, a:hover, a:focus {
    text-decoration: none;
    outline: none;
}

.header-actions {
   margin-left: auto;
}


body { margin:0; }

/* ================= HEADER ================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(90deg,#212529,#1f2933);
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index:1100;
}
.logo { font-size:1.2rem; color:#fff; text-decoration:none; }
.modal-dialog {
    margin-top: 90px;} /* évite le header fixe */
    /* ================= FLASH MESSAGES ================= */
.flash-wrapper {
    margin-top: 70px; /* hauteur du header + espace */
    padding: 0 15px;
    z-index: 1050;
}
  /* ================= rightSidebar ================= */
#rightSidebar {
    display: none; /* caché par défaut */
    position: fixed;
    top: 60px; /* sous le header */
    right: 0;
    width: 300px;
    height: calc(100vh - 60px);
    background: #f8f9fa;
    border-left: 1px solid #dee2e6;
    padding: 20px;
    overflow-y: auto;
    z-index: 1040;
}

.wrapper {
    margin-right: 320px; /* espace pour la sidebar */
}

@media(max-width:992px){
    #rightSidebar {
        right: -100%; /* caché par défaut sur mobile */
        width: 100%;
        transition: right 0.3s ease;
    }
    #rightSidebar.show {
        right: 0;
    }
    .wrapper {
        margin-right: 0;
    }
}
 /* ================= rightSidebar end ================= */


/* ================= BURGER ================= */
.burger { background:none; border:none; display:flex; flex-direction:column; gap:5px; margin-left:auto; cursor:pointer; }
.burger span { width:24px; height:2px; background:#fff; border-radius:2px; }

/* ================= SIDEBAR ================= */
#sidebar {
    position: fixed; top: 60px; left: 0;
    width: 200px; height: calc(100vh - 60px);
    background:#212529;
    display:flex; flex-direction:column; justify-content:space-between;
    padding:16px; gap:8px; z-index:1100;
    transform: translateX(0);
    transition: transform 0.3s ease;
}
#sidebar .top-link { width:100%; display:flex; align-items:center; gap:6px; padding:8px 12px; border-radius:8px; color:#adb5bd; text-decoration:none; font-size:0.9rem; transition: all 0.25s ease; }
#sidebar .top-link:hover, #sidebar .top-link.active { background:#0d6efd; color:#fff; box-shadow:0 6px 16px rgba(13,110,253,0.45); }
/* ================= UNIFORMISATION DES BOUTONS (Accueil style) ================= */

/* Sidebar buttons */
#sidebar .btn-outline-light {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;

    background: transparent;
    color: #adb5bd;
    border: none;

    font-size: 0.9rem;
    transition: all 0.25s ease;
    box-shadow: none;
}

#sidebar .btn-outline-light:hover,
#sidebar .btn-outline-light:focus {
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 6px 16px rgba(13,110,253,0.45);
}

/* Top bar buttons */
.header .btn-outline-light {
    border: none;
    border-radius: 8px;
    padding: 6px 12px;

    color: #adb5bd;
    transition: all 0.25s ease;
}

.header .btn-outline-light:hover {
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 6px 16px rgba(13,110,253,0.45);
}

/* Overlay mobile */
#overlay {
    position: fixed; top: 60px; left:0; width:100%; height:calc(100vh-60px);
    background: rgba(0,0,0,0.4); display:none; z-index:1050;
}

/* ================= MAIN CONTENT ================= */
#container { display:block; }
#main-content { padding: 80px 20px 20px 20px; margin-left:200px; }

/* ================= CATEGORY BAR ================= */
.category-bar { display:flex; gap:10px; justify-content:center; flex-wrap:nowrap; overflow-x:auto; padding:10px 0; margin-bottom:20px; background:#f8f9fa; border-radius:30px; box-shadow:0 2px 8px rgba(0,0,0,0.1); }
.category-bar .category-btn { flex-shrink:0; padding:8px 16px; border-radius:20px; font-size:0.9rem; border:1px solid #0d6efd; color:#0d6efd; background:#fff; transition:all 0.3s; }
.category-bar .category-btn:hover, .category-bar .category-btn.active { background:#0d6efd; color:#fff; }

/* ================= CARD IMAGES ================= */
.card-img-wrapper { position:relative; width:100%; aspect-ratio:4/3; overflow:hidden; }
.card-img-wrapper img { width:100%; height:100%; object-fit:cover; }


/* ================= MOBILE ================= */
@media(max-width:768px){
    #sidebar { transform: translateX(-100%); }
    #sidebar.open { transform: translateX(0); }
    #main-content { margin-left:0; padding-bottom:100px; }
    .burger { display:flex; }
}
@media(min-width:769px){ .burger { display:none; } }

/* ================= MOBILE BOTTOM NAV ================= */
.mobile-bottom-nav { display:flex; position:fixed; bottom:0; left:0; width:100%; height:70px; background:#212529; justify-content:space-around; align-items:center; padding:0 10px; z-index:1200; border-top:1px solid rgba(255,255,255,0.1); box-shadow:0 -2px 8px rgba(0,0,0,0.2); }
.mobile-tab-btn { flex:1; background:none; border:none; color:#adb5bd; text-align:center; font-size:0.75rem; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; position:relative; transition:all 0.3s ease; }
.mobile-tab-btn .icon { font-size:1.5rem; line-height:1; }
.mobile-tab-btn.active { color:#0d6efd; }
.mobile-tab-btn.active .icon { transform: scale(1.3); filter: drop-shadow(0 2px 4px rgba(13,110,253,0.5)); }
.mobile-tab-btn.active::before { content:""; position:absolute; top:4px; left:50%; transform:translateX(-50%); width:30px; height:3px; background:#0d6efd; border-radius:10px; }
@media(max-width:420px){ .mobile-tab-btn .label { display:none; } .category-bar { display:none; } }


