:root {
    --primary-color: #c19a5b; /* Or africain */
    --secondary-color: #a0522d; /* Terre cuite */
    --accent-color: #2e8b57; /* Vert forêt */
    --dark-color: #1a1a1a;
    --light-color: #f8f5f0;
    --text-color: #333;
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --max-width: 1400px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: var(--dark-color);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.logo i {
    margin-right: 10px;
    color: var(--primary-color);
}

.logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.search-container {
    display: flex;
    flex: 1 1 520px;
    max-width: 600px;
    min-width: 240px;
    margin: 0 20px;
}

.search-all-btn {
    flex-shrink: 0;
    background-color: #f3f3f3;
    color: var(--dark-color);
    border: none;
    padding: 0 15px;
    border-radius: 5px 0 0 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.search-bar {
    flex-grow: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}

.header .search-bar {
    flex: 1 1 auto;
    max-width: none;
    margin: 0;
}

.search-bar input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: none;
    border-radius: 30px;
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-bar input:focus {
    background-color: rgba(255, 255, 255, 0.2);
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    height: 36px;
    width: 36px;
    background-color: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
}

.header .search-bar input {
    border-radius: 0;
    height: 52px;
    padding-right: 60px;
}

.header .search-bar button {
    top: 0;
    right: 0;
    transform: none;
    width: 52px;
    height: 100%;
    border-radius: 0 5px 5px 0;
}

.search-bar button:hover {
    background-color: var(--secondary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-actions a {
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
    position: relative;
    min-width: 64px;
}

.header-actions a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.header-actions i {
    font-size: 20px;
}

.header-actions span {
    font-size: 14px;
    line-height: 1.2;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: 6px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

/* Navigation Styles */
.navbar {
    background-color: rgba(26, 26, 26, 0.95);
    padding: 0;
    position: sticky;
    top: 70px; /* Hauteur du header */
    z-index: 999;
    backdrop-filter: blur(10px);
}

.navbar-container {
    display: flex;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    gap: 12px;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 1003;
    pointer-events: auto;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 999px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.menu-toggle:focus-visible,
.nav-link:focus-visible,
.nav-submenu-toggle:focus-visible,
.header-actions a:focus-visible,
.search-all-btn:focus-visible,
.search-bar input:focus-visible,
.search-bar button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-parent-row {
    display: flex;
    align-items: center;
}

.nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 18px;
    transition: var(--transition);
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 15px;
    white-space: nowrap;
}

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

.nav-link-with-caret {
    display: inline-flex;
    align-items: center;
}

.nav-submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding: 0 16px 0 0;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.nav-submenu-toggle:hover,
.nav-submenu-toggle:focus-visible {
    color: var(--primary-color);
}

.nav-caret {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .nav-caret,
.has-dropdown:focus-within .nav-caret,
.has-dropdown.dropdown-open .nav-caret {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    min-width: 240px;
    background: rgba(26, 26, 26, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 1002;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-sublink {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 18px;
    font-size: 14px;
    transition: var(--transition);
}

.nav-sublink:hover,
.nav-sublink:focus-visible {
    background: rgba(193, 154, 91, 0.14);
    color: var(--primary-color);
}

body.nav-open {
    overflow: hidden;
}

#flash-notification.notification {
    position: relative;
    inset: auto;
    transform: none;
    width: 100%;
    max-width: none;
    margin: 0 0 24px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-radius: 18px;
    box-shadow: 0 16px 35px rgba(26, 26, 26, 0.08);
    border: 1px solid rgba(193, 154, 91, 0.18);
    background: #fff;
    z-index: 1;
}

#flash-notification.notification.success {
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.12), rgba(193, 154, 91, 0.14));
    color: #255f43;
}

#flash-notification.notification.error {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.08), rgba(255, 255, 255, 1));
    border-color: rgba(220, 53, 69, 0.18);
    color: #a73d49;
}

#flash-notification.notification.info {
    background: linear-gradient(135deg, rgba(193, 154, 91, 0.12), rgba(255, 255, 255, 1));
    color: #6b5030;
}

#flash-notification .notification-icon {
    flex-shrink: 0;
    margin: 2px 0 0;
    font-size: 22px;
}

#flash-notification.success .notification-icon {
    color: var(--accent-color);
}

#flash-notification.error .notification-icon {
    color: #dc3545;
}

#flash-notification.info .notification-icon {
    color: var(--primary-color);
}

#flash-notification .notification-message {
    flex: 1 1 auto;
}

#flash-notification .notification-message p {
    margin: 0;
    font-weight: 600;
    line-height: 1.55;
}

#flash-notification .notification-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.06);
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

#flash-notification .notification-close:hover {
    background: rgba(26, 26, 26, 0.12);
}

@media (max-width: 1200px) {
    .logo {
        font-size: 24px;
    }

    .search-container {
        margin: 0 12px;
        max-width: none;
    }

    .nav-link {
        padding: 15px 14px;
        font-size: 14px;
    }

    .header-actions {
        gap: 10px;
    }
}

@media (max-width: 1024px) {
    .header-top {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 16px;
    }

    .logo {
        font-size: 24px;
    }

    .search-container {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
        min-width: 0;
        margin: 0;
    }

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

    .header-actions a {
        min-width: 48px;
    }

    .header-actions a > span:not(.cart-count) {
        display: none;
    }

    .header-actions .cart-count {
        display: flex;
        right: -2px;
        top: -6px;
    }

    .navbar .menu-toggle {
        display: flex !important;
    }

    .navbar {
        top: 0;
        z-index: 1001;
        backdrop-filter: none;
    }

    .navbar .navbar-container {
        position: relative;
        min-height: 60px;
        padding: 8px 20px;
    }

    .navbar .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background-color: var(--dark-color);
        width: 100%;
        max-height: var(--mobile-nav-max-height, calc(100dvh - 180px));
        text-align: left;
        transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
        padding: 12px 20px max(24px, env(safe-area-inset-bottom));
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        transform: translateY(-10px);
        z-index: 1000;
        margin: 0 !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .navbar .nav-menu.active {
        transform: translateY(0) !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .navbar .nav-item {
        margin: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        background-color: transparent;
    }

    .navbar .nav-parent-row {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .navbar .nav-link {
        padding: 14px 0;
        font-size: 16px;
        white-space: normal;
    }

    .navbar .nav-parent-row .nav-link {
        flex: 1 1 auto;
        min-width: 0;
    }

    .navbar .nav-submenu-toggle {
        width: 42px;
        height: 42px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.02);
        flex-shrink: 0;
    }

    .navbar .nav-dropdown {
        position: static;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        border-radius: 12px;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.04);
        margin: 0;
        padding: 0 12px;
        max-height: 0;
        overflow: hidden;
        pointer-events: none;
        transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    }

    .navbar .has-dropdown.dropdown-open .nav-dropdown {
        max-height: min(32dvh, 240px);
        margin: 0 0 14px;
        padding: 6px 14px 10px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        pointer-events: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(193, 154, 91, 0.8) rgba(255, 255, 255, 0.06);
    }

    .navbar .nav-sublink {
        padding: 10px 0 10px 8px;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.86);
    }

    .navbar .nav-link-with-caret {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header {
        padding: 12px 0;
    }

    .header-top {
        gap: 14px;
    }

    .logo {
        font-size: 20px;
        letter-spacing: 0.5px;
    }

    .logo img {
        height: 34px;
    }

    .header-actions {
        gap: 8px;
    }

    .header-actions a {
        min-width: 42px;
    }

    .header-actions i {
        font-size: 18px;
    }

    .search-all-btn {
        padding: 0 12px;
        font-size: 13px;
    }

    .header .search-bar input {
        height: 48px;
        padding: 12px 54px 12px 12px;
    }

    .header .search-bar button {
        width: 48px;
    }

    .navbar .navbar-container {
        padding: 8px 16px;
    }

    .navbar .nav-menu {
        padding-top: 14px;
    }

    .notification {
        left: 16px;
        right: 16px;
        max-width: none;
    }

    #flash-notification.notification {
        padding: 16px 18px;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 18px;
    }

    .search-all-btn {
        padding: 0 10px;
    }

    .header-actions .cart-count {
        width: 16px;
        height: 16px;
        font-size: 11px;
        right: -1px;
        top: -4px;
    }

    .nav-link {
        font-size: 15px;
    }

    #flash-notification.notification {
        padding: 14px 16px;
        border-radius: 16px;
        gap: 12px;
    }

    #flash-notification .notification-close {
        width: 32px;
        height: 32px;
    }
}

/* Shared footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-links i {
    margin-right: 10px;
    font-size: 14px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    margin-top: 25px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin-right: 15px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #aaa;
    font-size: 14px;
}
