/* Variables - Thème MADEA HOUSE */
:root {
    --primary: #F4E4C1;
    --primary-dark: #D4C4A1;
    --secondary: #B8956A;
    --accent: #8B7355;
    --dark: #2c2416;
    --gray: #6b7280;
    --light-gray: #FAF8F3;
    --white: #ffffff;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.header-top {
    background: var(--dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info span {
    margin-right: 20px;
}

.header-links a {
    margin-left: 20px;
    opacity: 0.9;
}

.header-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.header-main {
    padding: 15px 0;
    background: var(--white);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    height: 60px;
    width: auto;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent);
    letter-spacing: 2px;
}

.logo-slogan {
    font-size: 12px;
    color: var(--secondary);
    font-style: italic;
    font-family: 'Georgia', serif;
}

/* Navigation */
.main-nav {
    flex: 1;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 5px;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 20px;
    color: var(--dark);
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.nav-link:hover {
    background: var(--light-gray);
    color: var(--accent);
}

.nav-link-promo {
    color: var(--accent);
    font-weight: 600;
}

.dropdown-icon {
    font-size: 10px;
    transition: var(--transition);
}

.nav-item:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 20px;
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    border: 2px solid var(--light-gray);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
}

.dropdown-header h3 {
    font-size: 18px;
    color: var(--accent);
}

.view-all {
    color: var(--secondary);
    font-size: 14px;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.subcategory-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-radius: 8px;
    background: var(--light-gray);
    transition: var(--transition);
}

.subcategory-item:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateX(5px);
}

.subcategory-name {
    font-weight: 500;
}

.subcategory-count {
    font-size: 12px;
    opacity: 0.7;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-btn,
.cart-btn {
    position: relative;
    padding: 10px;
    border-radius: 50%;
    color: var(--dark);
}

.search-btn:hover,
.cart-btn:hover {
    background: var(--light-gray);
    color: var(--accent);
}

.cart-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--accent);
    color: var(--white);
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 36, 22, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 2000;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    position: relative;
    width: 90%;
    max-width: 600px;
}

.search-input {
    width: 100%;
    padding: 20px 60px 20px 20px;
    font-size: 18px;
    border: 2px solid var(--primary);
    border-radius: 50px;
    outline: none;
    background: var(--white);
}

.search-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--gray);
    padding: 5px;
}

/* Main Content */
.main-content {
    min-height: 60vh;
}

/* Carrousel Hero */
.carousel-hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--dark);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(44, 36, 22, 0.4), rgba(44, 36, 22, 0.7));
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 10;
    width: 90%;
    max-width: 800px;
}

.carousel-title {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0.95;
    font-style: italic;
}

.carousel-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary);
    color: var(--dark);
    font-weight: bold;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.carousel-btn:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.indicator.active {
    background: var(--primary);
    width: 30px;
    border-radius: 6px;
}

/* Sections */
.categories-showcase,
.featured-products,
.values-section {
    padding: 80px 20px;
}

.section-title {
    font-size: 40px;
    text-align: center;
    margin-bottom: 15px;
    color: var(--accent);
    font-weight: bold;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--secondary);
    margin-bottom: 50px;
    font-style: italic;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--light-gray);
    border-radius: 16px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
    border-color: var(--primary);
}

.category-image {
    margin-bottom: 20px;
}

.category-icon {
    font-size: 60px;
}

.category-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--accent);
}

.category-card p {
    color: var(--gray);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--light-gray);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.product-image {
    position: relative;
    width: 100%;
    height: 300px;
    background: var(--light-gray);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray);
    opacity: 0.3;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-old {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 14px;
}

.price-current {
    font-size: 22px;
    font-weight: bold;
    color: var(--accent);
}

.product-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background: var(--primary);
    color: var(--dark);
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.product-btn:hover {
    background: var(--secondary);
    color: var(--white);
}

/* Values Section */
.values-section {
    background: var(--light-gray);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.value-item {
    text-align: center;
    padding: 30px;
}

.value-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.value-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--accent);
}

.value-item p {
    color: var(--gray);
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    margin-top: 80px;
}

.footer-main {
    padding: 60px 20px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-logo-image {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

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

.footer-logo .logo-slogan {
    color: var(--secondary);
}

.footer-description {
    margin-bottom: 20px;
    opacity: 0.8;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(244, 228, 193, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

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

.footer-title {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--primary);
}

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

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

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
}

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

.newsletter-text {
    margin-bottom: 15px;
    opacity: 0.8;
}

.newsletter-form {
    display: flex;
    margin-bottom: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px 0 0 8px;
    outline: none;
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--primary);
    color: var(--dark);
    border-radius: 0 8px 8px 0;
    font-weight: 600;
}

.newsletter-form button:hover {
    background: var(--secondary);
    color: var(--white);
}

.payment-methods {
    margin-top: 20px;
}

.payment-text {
    opacity: 0.8;
    font-size: 14px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    text-align: center;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    opacity: 0.8;
    font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-list {
        gap: 0;
    }
    
    .nav-link {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .carousel-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .logo-image {
        height: 45px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .carousel-hero {
        height: 400px;
    }
    
    .carousel-title {
        font-size: 28px;
    }
    
    .carousel-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 10px;
    }
}