﻿

.tabs {
    position: fixed; /* fixe en haut */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* devant tout */
    display: flex;
    flex-direction:column;
    justify-content: space-between;
   
    background-color: #7b2cbf; /* ou dynamique */
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: background-color 0.3s;
    height:120px
}

    .tabs.color-0 {
        background-color: #E23FEA;
    }
    /* violet */
    .tabs.color-1 {
        background-color: #102F59;
    }
    /* bleu */
    .tabs.color-2 {
        background-color: #4b0082;
    }
/* indigo */

/* Barre de recherche */
.search-bar {
    flex: 1;
    max-width: 250px;
    position: relative;
    padding: 10px
}

    .search-bar input {
        width: 100%;
        padding: 6px 36px 6px 12px;
        border-radius: 20px;
        border: none;
        font-size: 16px;
        outline: none;
    }

    .search-bar svg {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        fill: #7b2cbf;
        width: 20px;
        height: 20px;
        pointer-events: none;
    }

/* Onglets */
.tab-list {
    display: flex;
    margin-left: 12px;
    justify-content: space-between;
}

.tab {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: border-color 0.3s, color 0.3s;
    color: white;
    font-weight: normal;
    user-select: none;
    white-space: nowrap;
}

    .tab.active {
        border-bottom: 3px solid white;
        font-weight: bold;
        color: white;
    }

.tab-content {
    text-align: center;
    width: 100%;
    margin-left: -4%;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid black;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 30px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive (optionnel) : barre de recherche en bloc au petit écran */
@media(max-width: 480px) {
    .tabs {
        flex-wrap: wrap;
    }

    .search-bar {
        max-width: 100%;
        margin-bottom: 8px;
    }

    .tab-list {
        margin-left: 0;
        width: 100%;
        justify-content: space-around;
    }
}

.toolbar {
   
    margin-top:121px;
}

.main-header {
    padding: 16px;
    background-color: #7b2cbf;
    color: white;
    text-align: center;
}

.toolbar {
    display: flex;
    flex-wrap: wrap; /* Pour forcer le passage à la ligne sur mobile */
    width: 100%;
    background: white;
    box-sizing: border-box;
}

.toolbar-left {
    flex: 0 0 70%;
    padding: 1rem;
    box-sizing: border-box;
    width: 70%;
    z-index:1;
}

.toolbar-right {
    flex: 0 0 30%;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
    width: 30%;
    background-color: white;
   
    
}

.toolbar-row {
    display: flex;
    margin-bottom: 1rem;
    overflow: scroll;
    max-height: 30px;

}

.card {
    min-width: 150px;
    max-height: 50px;
    border-radius: 6px;
    padding: 0.1rem;
    text-align: center;
    margin: 0 0.1rem;
    background: #f9f9f9;
    box-sizing: border-box;
    display: flex;
   
}
.card-ass {
    min-width: 200px;
}
.icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.3rem;
}
/* FOND FLOU/Foncé lors de l'ouverture */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    /* actif */
    .overlay.show {
        opacity: 1;
        visibility: visible;
    }
#tab-container{
    
    margin-top:-10%;
}
/* SLIDER MENU */
.slider-menu {
    position: fixed;
    top: 0;
    right: 100%;
    width: 100%;
    max-width: 360px;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
    z-index: 999;
    transition: left 0.3s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
    margin-top: 125px;
    height:250px;
}

    /* quand ouvert */
    .slider-menu.open {
        left: 0;
    }

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
}

#close-slider {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

.categorie-list {
    list-style: none;
    padding: 0;
    margin: 0;
   height:200px;
   overflow:scroll;
}

    .categorie-list li {
        padding: 12px;
        border-bottom: 1px solid #eee;
        cursor: pointer;
        font-size: 16px;
    }

/* Responsive mobile: couvre presque tout l'écran */
@media (max-width: 480px) {
    .slider-menu {
        width: 60%;
        max-width:60%;
        border-radius: 0;
    }
}
