@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

.grand-header {
    display: flex;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #151335;
    color: #fff;
    height: 70px;
    position: fixed;
    top: 0;
    z-index: 99;
    width: 100%;
}

header .logo img {
    height: 32px;
    width: auto;
}

header .localisation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-left: 2rem;
}

header .localisation i {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #f1c40f;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    font-size: 0.95rem;
}

header nav ul li {
    position: relative;
}

header nav ul li .cart-count {
    position: absolute;
    top: -10px;
    right: -12px;
    background-color: #f1c40f;
    color: #151335;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.8rem;
    text-align: center;
    line-height: 22px;
    font-weight: bold;
}

.search-container {
    position: relative;
    flex-grow: 1;
    max-width: 600px;
    margin-right: 20px;
    margin-left: 20px;
}

.search-container input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #fff;
    border-radius: 5px;
    font-size: 0.8rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 37px;
}

.search-container input:focus {
    border-color: #f1c40f;
    box-shadow: 0 2px 10px rgba(241,196,15,0.3);
}

.search-container button {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 1rem;
    padding-top: 10px;
    background-color: #f1c40f;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    color: #000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 34px;
    margin-right: 1.5px;
}

.search-container placeholder {
    font-size: 0.8rem;
}

.search-container button:hover {
    background-color: #e6b800;
    box-shadow: 0 2px 10px rgba(241,196,15,0.3);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    margin-top: -2px;
    border: 2px solid #f1c40f;
    border-top: none;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    color: #000;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
    background-color: #f8f9fa;
    border-left: 3px solid #f1c40f;
    color: #151335;
}

.suggestion-item i {
    width: 16px;
    text-align: center;
}

.suggestion-item .suggestion-icon {
    margin-right: 10px;
    color: #f1c40f;
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

.suggestion-item .suggestion-text {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-suggestions::-webkit-scrollbar {
    width: 8px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 0 5px 0;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: #f1c40f;
    border-radius: 4px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: #e6b800;
}

.blinking {
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.search-suggestions {
    animation: fadeIn 0.2s ease-out;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 9999;
    transition: left 0.3s;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar.active {
    left: 0;
}

.close-btn {
    font-size: 24px;
    float: right;
    cursor: pointer;
    color: #333;
}

.sidebar ul {
    margin-top: 50px;
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin: 15px 0;
}

.sidebar a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.2s;
}

.sidebar a:hover {
    color: #f1c40f;
}

.carte, .carte1 {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart1, .cart2, .cart3, .cart4 {
    position: relative;
}

.cart1 .cart-count, 
.cart4 .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #f1c40f;
    color: #151335;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.7rem;
    text-align: center;
    line-height: 18px;
    font-weight: bold;
}

.petit-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.moto i {
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.moto i:hover {
    color: #f1c40f;
}

@media (max-width: 480px) {
    * {
        overflow-x: hidden !important;
    }
    
    header {
        position: relative !important;
        height: auto !important;
        padding: 0.5rem !important;
        flex-wrap: wrap !important;
        flex-direction: column !important;
        background-color: #151335 !important;
    }

    .grand-header {
        margin-top: 5px !important;
        display: flex !important;
        justify-content: space-between !important;
        width: 100% !important;
        align-items: center !important;
    }

    .petit-header {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem;
    }
    
    header .moto i {
        margin-right: 0px !important;
        margin-left: 0px !important;
        font-size: 1.45rem !important;
    }
    
    header .logo img {
        margin-right: 0px !important;
        margin-left: 0px !important;
        height: 29px !important;
    }
    
    header .localisation {
        display: none !important;
    }
    
    .search-container {
        position: relative !important;
        flex-grow: 1 !important;
        width: 100% !important;
        margin-right: 0px !important;
        margin-left: 0px !important;
        margin-top: 5px !important;
    }
    
    .search-container input {
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        border: 2px solid #ddd !important;
        border-radius: 3px !important;
        font-size: 0.8rem !important;
        outline: none !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
        height: 37px !important;
    }
    
    .search-container button {
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        padding: 1rem !important;
        padding-top: 10px !important;
        background-color: #f1c40f !important;
        border: none !important;
        border-radius: 5px !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        font-size: 0.8rem !important;
        color: #000 !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
        height: 34px !important;
        margin-right: 1.5px !important;
        overflow: hidden !important;
    }
    
    .search-suggestions, 
    .suggestion-group, 
    .suggestion-item {
        display: none !important;
    }
    
    header nav ul {
        display: none !important;
    }
    
    .carte {
        display: flex !important;
        order: 1 !important;
        margin-left: auto !important;
        gap: 0rem;
    }

    .carte1 {
        display: none !important;
    }

    .cart1 {
        padding: 10px;
    }
    
    .cart1 i {
        margin-left: 3px !important;
        font-size: 1.45rem !important;
        margin-right: 10px !important;
    }
    
    .cart2 i {
        font-size: 1.45rem !important;
    }
    
    .cart1 .cart-count {
        position: absolute !important;
        top: 5px !important;
        right: 8px !important;
        background-color: #f1c40f !important;
        color: #000 !important;
        width: 20px !important;
        height: 20px !important;
        border-radius: 50% !important;
        font-size: 0.8rem !important;
        text-align: center !important;
        line-height: 22px !important;
        font-weight: bold !important;
        overflow: hidden !important;
    }
    
    .sidebar {
        height: 100% !important;
        width: 0 !important;
        position: fixed !important;
        z-index: 1000 !important;
        top: 0 !important;
        left: 0 !important;
        background-color: #fff !important;
        overflow-x: hidden !important;
        transition: 0.5s !important;
        padding-top: 35px !important;
    }
    
    .sidebar a {
        padding: 10px !important;
        text-decoration: none !important;
        font-size: 0.85rem !important;
        color: #000 !important;
        display: block !important;
        transition: 0.3s !important;
        border-bottom: 1px solid #ddd !important;
    }
    
    .sidebar .close-btn {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        font-size: 2rem !important;
        margin-left: 5px !important;
        border: none !important;
    }
    
    .sidebar-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background-color: rgba(0,0,0,0.5) !important;
        z-index: 999 !important;
        opacity: 0 !important;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .sidebar-overlay.active {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    .sidebar.active {
        width: 180px !important;
    }
}

@media (min-width: 916px) and (max-width: 1200px) {
    .carte1 {
        display: none !important;
       }

    .carte {
        display: none !important;
       }
       
    .moto {
        display: none !important;
        }
}

@media (min-width: 481px) and (max-width: 916px) {
    * {
        overflow-x: hidden !important;
    }

    .petit-header {
        display: flex !important;
        align-items: center !important;
        justify-content: center;
        gap: 0.5rem;
    }
    
    header {
        justify-content: space-between !important;
        position: relative !important;
        height: auto !important;
        padding: 0.5rem !important;
        align-items: center !important;
        padding-bottom: 10px !important;
        padding-top: 10px !important;
    }
    
    header .moto i {
        margin-right: 0px !important;
        font-size: 1.6rem !important;
    }
    
    header .logo img {
        margin-right: 15px !important;
        height: 30px !important;
    }
    
    header .localisation {
        display: none !important;
    }
    
    header nav ul {
        display: none !important;
    }

    .search-container {
        position: relative !important;
        flex-grow: 1 !important;
        width: 200px !important;
        margin-right: 0px !important;
        margin-left: 0px !important;
        margin-top: 0px !important;
    }
    
    .search-container input {
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        border: 2px solid #ddd !important;
        border-radius: 3px !important;
        font-size: 0.8rem !important;
        outline: none !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
        height: 36px !important;
    }
    
    .search-container button {
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        padding: 1rem !important;
        padding-top: 10px !important;
        background-color: #f1c40f !important;
        border: none !important;
        border-radius: 5px !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        font-size: 0.8rem !important;
        color: #000 !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
        height: 34px !important;
        margin-right: 1.5px !important;
        overflow: hidden !important;
    }
    
    .search-suggestions, 
    .suggestion-group, 
    .suggestion-item {
        display: none !important;
    }
    
    .carte {
        display: none !important;
    }

    .carte1 {
        display: flex !important;
        order: 1 !important;
        margin-left: auto !important;
        gap: 0rem;
    }
    
    .cart3 i {
        margin-left: 10px !important;
        margin-right: 10px !important;
        font-size: 1.45rem !important;
    }

    .cart4 {
        padding-top: 10px;
    }

    .cart3 {
        padding-top: 10px;
    }

    .cart4 i {
        font-size: 1.45rem !important;
        margin-right: 10px !important;
    }
    
    .cart4 .cart-count {
        position: absolute !important;
        top: 1px !important;
        right: 4px !important;
        background-color: #f1c40f !important;
        color: #000 !important;
        width: 20px !important;
        height: 20px !important;
        border-radius: 50% !important;
        font-size: 0.8rem !important;
        text-align: center !important;
        line-height: 22px !important;
        font-weight: bold !important;
        overflow: hidden !important;
    }
    
    .search-bar button {
        overflow: hidden !important;
    }
    
    .sidebar {
        height: 100% !important;
        width: 0 !important;
        position: fixed !important;
        z-index: 1000 !important;
        top: 0 !important;
        left: 0 !important;
        background-color: #fff !important;
        overflow-x: hidden !important;
        transition: 0.5s !important;
        padding-top: 60px !important;
    }
    
    .sidebar a {
        padding: 10px 15px !important;
        text-decoration: none !important;
        font-size: 1rem !important;
        color: #000 !important;
        display: block !important;
        transition: 0.3s !important;
        border-bottom: 1px solid #000 !important;
    }
    
    .sidebar a:hover {
        background-color: #f1c40f !important;
        color: #151335 !important;
    }
    
    .sidebar .close-btn {
        position: absolute !important;
        top: 0 !important;
        right: 25px !important;
        font-size: 1rem !important;
        margin-left: 50px !important;
        border: none !important;
    }
}

@media (min-width: 1025px) {
    .moto, 
    .carte, 
    .carte1 {
        display: none;
    }
    
    .sidebar {
        display: none;
    }

    
.carte1 {
    display: none;
}

.moto {
    display: none;
}

.cart2, .cart1 {
    display: none;
}
}