@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800;900&display=swap");

.user-sidebar {
    display: none;
}
.mobile-menu {
  display: none;
}

.country-sidebar {
    display: none;
}



@media (max-width: 992px) {
    .mobile-only {
        display: block !important;
    }

    .country-sidebar {
        width: 90vw;
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%) translateY(100%);
        background: #fff;
        z-index: 9999;
        overflow-y: auto;
        max-height: 50vh;
        padding: 20px 0;
        border-radius: 15px 15px 0 0;
        box-shadow: 0 -8px 16px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        pointer-events: none;
    }

    .country-sidebar.active {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
        pointer-events: auto;
        display: block;
    }

    .country-sidebar .category-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px 10px;
        border-bottom: 1px solid #ddd;
    }

    .country-sidebar .category-title {
        font-size: 18px;
        font-weight: bold;
        color: #2D8A4A;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .country-sidebar .country-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .country-sidebar .country-item a {
        text-decoration: none;
        color: #333;
        padding: 10px;
        display: block;
        border-bottom: 1px solid #eee;
    }

    .country-sidebar .country-item a:hover {
        background-color: #f0f0f0;
    }

    .country-sidebar .search-box input {
        width: 100%;
        padding: 8px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 6px;
    }

    .country-sidebar .category-close {
        background: none;
        border: none;
        font-size: 22px;
        color: #333;
        cursor: pointer;
        margin-right: 36px;
    }





    .user-sidebar {
        width: 60vw; /* moitié de l'écran */
        position: fixed;
        top: 80px;
        left: 10px;
        right: 10px;
        max-height: 80%;
        background: #fff;
        z-index: 9999;
        overflow-y: auto;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        transform: scale(0.95);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .user-sidebar.active {
        transform: scale(1);
        opacity: 1;
        pointer-events: auto;
        display: block !important;
        transform: translateX(0);
    }

    .user-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #ddd;
        margin-bottom: 15px;
    }

    .user-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 18px;
        font-weight: bold;
        color: #2D8A4A;
    }

    .user-close {
        background: none;
        border: none;
        font-size: 22px;
        color: #333;
    }

    .user-section {
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 10px;
        color: #2D8A4A;
        border-left: 4px solid #2D8A4A;
        padding-left: 10px;
    }

    .user-list {
        list-style: none;
        padding: 0;
    }

    .user-item {
        margin-bottom: 10px;
    }

    .user-link {
        display: block;
        padding: 10px;
        color: #333;
        text-decoration: none;
        border: 1px solid #eee;
        border-radius: 5px;
        font-weight: 500;
        background-color: #f8f8f8;
    }

    .dropdown-list {
        display: none;
        padding-left: 15px;
        margin-top: 5px;
    }

    .user-item.active .dropdown-list {
        display: block;
    }

    .dropdown-list li a {
        display: block;
        padding: 6px 10px;
        font-size: 14px;
        color: #555;
        text-decoration: none;
    }

    .dropdown-list li a:hover {
        background-color: #e9f5ee;
    }

    .btn-outline-success.mobile-only {
    border: none !important;
    background-color: transparent !important;
    color: #333;;
    }


    .no-before::before {
        display: none !important;
        content: none !important;
    }
    li::before {
        content: none !important;
        display: none !important;
    }

    a::before {
        content: none !important;
        display: none !important;
    }

    #userMenuBtn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    }



    .mobile-menu {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 999;
        background: #fff;
        border-top: 1px solid #ddd;
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
        justify-content: space-between;
        padding: 6px 0;
        align-items: center;

    }

    .mobile-menu a,
    .mobile-menu button {
        flex: 1 1 auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 9px;
        color: #333;
        padding: 4px 0;
        text-decoration: none;
        min-width: 25%;
        white-space: nowrap;
        }

    .mobile-menu i {
        font-size: 14px;
        margin-bottom: 3px;
        color: #333;
        }

    .mobile-menu span {
        font-size: 9px;
        line-height: 1;
        white-space: nowrap;
        }
    .about-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100%;
        background: #fff;
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
        transition: left 0.3s ease;
        z-index: 9999;
    }
    .about-sidebar.active {
        left: 0;
    }


}




/* Sélecteur de langue mobile */

.mobile-language {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.mobile-language i {
  font-size: 1.2rem;
  color: #333;
}

.mobile-language .select {
  flex: 1;
  padding: 6px 10px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.about-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
    z-index: 9999;
}
.about-sidebar.active {
    left: 0;
}


/* Si tu veux qu'il s'adapte encore mieux aux petits écrans */
@media (max-width: 600px) {
  .mobile-language {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-language .select {
    width: 100%;
  }

  .about-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100%;
        background: #fff;
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
        transition: left 0.3s ease;
        z-index: 9999;
    }
    .about-sidebar.active {
        left: 0;
    }




  .country-sidebar {
        width: 90vw;
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%) translateY(100%);
        background: #fff;
        z-index: 9999;
        overflow-y: auto;
        max-height: 80%;
        padding: 20px 0;
        border-radius: 15px 15px 0 0;
        box-shadow: 0 -8px 16px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        pointer-events: none;
    }

    .country-sidebar.active {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
        pointer-events: auto;
        display: block;
    }

    .country-sidebar .category-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px 10px;
        border-bottom: 1px solid #ddd;
    }

    .country-sidebar .category-title {
        font-size: 18px;
        font-weight: bold;
        color: #2D8A4A;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .country-sidebar .country-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .country-sidebar .country-item a {
        text-decoration: none;
        color: #333;
        padding: 10px;
        display: block;
        border-bottom: 1px solid #eee;
    }

    .country-sidebar .country-item a:hover {
        background-color: #f0f0f0;
    }

    .country-sidebar .search-box input {
        width: 100%;
        padding: 8px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 6px;
    }
}
