:root {
    --color-primary: #1A6FA8;
    --color-primary-dark: #0D4D78;
    --color-secondary: #1A3A5C;
    --color-wood-light: #A8C8E8;
    --color-wood-medium: #2980B9;
    --color-neutral: #F0F6FF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

main {
    margin-top: 0;
    padding-top: 0;
}

/* Header Principal */
.main-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

/* Top Bar */
.top-bar {
    background: var(--color-wood-medium);
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #fff;
}

.top-bar-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar a:hover {
    color: var(--color-neutral);
}

/* Navigation principale */
.main-nav {
    padding: 15px 0;
    background: #fff;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo */
.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--color-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s;
}

.logo:hover {
    color: var(--color-primary);
}

.logo img {
    max-height: 100px;
    width: auto;
}

/* Barre de recherche */
.search-form {
    flex: 1;
    max-width: 500px;
}

.search-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid var(--color-wood-light);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-wood-medium);
    box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.1);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: var(--color-primary-dark);
}

/* Navigation actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-icon {
    position: relative;
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.nav-icon:hover {
    color: var(--color-primary);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

/* Language dropdown */
.language-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: var(--color-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    transition: color 0.3s;
}

.dropdown-toggle:hover {
    color: var(--color-primary);
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--color-wood-light);
    border-radius: 6px;
    min-width: 120px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    z-index: 100;
    margin-top: 5px;
}

.dropdown-menu-custom.show {
    display: block;
}

.dropdown-menu-custom a {
    display: block;
    padding: 10px 15px;
    color: var(--color-secondary);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.dropdown-menu-custom a:hover {
    background: var(--color-neutral);
    color: var(--color-primary);
}

/* Menu navigation */
.bottom-nav {
    background: var(--color-secondary);
    padding: 0;
}

.menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    gap: 5px;
}

.menu-list li a {
    display: block;
    padding: 15px 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 0;
    font-family: 'Poppins', sans-serif;
}

.menu-list li a:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-secondary);
    cursor: pointer;
}

/* Mobile responsive */
@media (max-width: 991px) {
    main {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    main > section:first-child,
    main > .section:first-child,
    main > .hero-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .top-bar-left {
        display: none;
    }

    .search-form {
        display: none;
    }

    .mobile-search-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        color: inherit;
        padding: 4px;
    }

    .mobile-search-bar {
        display: none;
        padding: 10px 16px;
        background: var(--mpv-navy, #1A3A5C);
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .mobile-search-bar.open {
        display: block;
    }
    .mobile-search-bar form {
        display: flex;
        gap: 8px;
    }
    .mobile-search-bar input {
        flex: 1;
        padding: 10px 14px;
        border: none;
        border-radius: 6px;
        font-size: 14px;
        outline: none;
        background: #fff;
        color: #333;
    }
    .mobile-search-bar button {
        padding: 10px 14px;
        background: var(--mpv-blue, #1A6FA8);
        border: none;
        border-radius: 6px;
        cursor: pointer;
        color: #fff;
        display: flex;
        align-items: center;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .menu-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-secondary);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .menu-list.show {
        display: flex;
    }

    .menu-list li a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .bottom-nav {
        position: relative;
    }
}

@media (max-width: 576px) {
    main {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    main > section:first-child,
    main > .section:first-child,
    main > .hero-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .logo {
        font-size: 20px;
    }

    .logo img {
        max-height: 100px;
    }

    .main-nav {
        padding: 10px 0;
    }

    .nav-actions {
        gap: 10px;
    }

    .nav-icon span {
        display: none;
    }
}
