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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -1px;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    position: relative;
}

.logo h1 .face {
    color: #20b2aa;
    position: relative;
    display: inline-block;
    font-style: normal;
}

.logo h1 .face::before {
    content: "👀";
    position: absolute;
    top: -8px;
    left: -3px;
    font-size: 0.7em;
}

.logo h1 .face::after {
    content: "😊";
    position: absolute;
    bottom: -10px;
    left: -3px;
    font-size: 0.5em;
}

.search-bar {
    display: flex;
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
}

.search-bar input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 25px 0 0 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    border-color: #3498db;
}

.search-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #2980b9;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-switcher select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    cursor: pointer;
}

.user-account, .cart {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s;
}

.user-account:hover, .cart:hover {
    background: #f8f9fa;
}

.cart-count {
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Navigation */
.navbar {
    background: #2c3e50;
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    flex: 1;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s;
}

.nav-menu a:hover {
    background: #34495e;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #e74c3c;
    color: white;
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* About Section */
.about {
    padding: 80px 0;
    background: white;
}

.about-content h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

.about-content > p {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #666;
    line-height: 1.8;
}

.mission-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.point {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s;
}

.point:hover {
    transform: translateY(-5px);
}

.point i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 20px;
}

.point h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.point p {
    color: #666;
    line-height: 1.6;
}

/* Categories Section */
.categories {
    padding: 80px 0;
    background: #f8f9fa;
}

.categories h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

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

.category-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-card h3 {
    padding: 20px;
    text-align: center;
    color: #2c3e50;
    font-size: 1.3rem;
}

/* Featured Products */
.featured-products {
    padding: 80px 0;
    background: white;
}

.featured-products h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card h3 {
    padding: 15px 20px 10px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.price {
    padding: 0 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 15px;
}

.add-to-cart {
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: #2980b9;
}

/* Affiliate Section */
.affiliate {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.affiliate-content h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.affiliate-content > p {
    text-align: center;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 50px;
    opacity: 0.9;
}

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

.benefit {
    text-align: center;
    padding: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.benefit i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #3498db;
}

.benefit h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.benefit p {
    opacity: 0.9;
}

.affiliate-content .btn-primary {
    display: block;
    margin: 0 auto;
    background: #e74c3c;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #2c3e50;
}

.contact-item p {
    color: #666;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    background: transparent;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #666;
    transition: all 0.3s;
    pointer-events: none;
    background: white;
    padding: 0 5px;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
    top: -10px;
    font-size: 14px;
    color: #3498db;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

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

.footer-section h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #3498db;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-section p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-section ul li a:hover {
    opacity: 1;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s;
}

.social-link:hover {
    background: #2980b9;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    opacity: 0.8;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #000;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item h4 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.cart-item-price {
    color: #e74c3c;
    font-weight: bold;
}

.remove-item {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.cart-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    text-align: center;
}

.checkout-btn {
    width: 100%;
    margin-top: 20px;
    background: #27ae60;
}

.checkout-btn:hover {
    background: #229954;
}

/* ===== NOUVEAU SYSTÈME MENU MOBILE ULTRA-SIMPLE ===== */

/* Hamburger Button - NOUVEAU SYSTÈME */
.hamburger-simple {
    display: none;
    background: #3498db;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    z-index: 1001;
    position: relative;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: white;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 1px;
}

.hamburger-simple.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-simple.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-simple.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu - NOUVEAU SYSTÈME ULTRA-SIMPLE */
.mobile-menu-simple {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-simple.active {
    display: block;
    opacity: 1;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: #2c3e50;
    padding: 0;
    overflow-y: auto;
}

.mobile-menu-header {
    background: #34495e;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #4a5f7a;
}

.mobile-menu-header h3 {
    color: white;
    margin: 0;
    font-size: 18px;
}

.mobile-close-simple {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.mobile-menu-links {
    padding: 0;
}

.mobile-link {
    display: block;
    padding: 20px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid #4a5f7a;
    transition: background 0.3s;
}

.mobile-link:hover {
    background: #34495e;
}

.mobile-link:last-child {
    border-bottom: none;
}

.mobile-link i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
    display: inline-block;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablets and Small Laptops */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero .container {
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Mobile Landscape and Small Tablets */
@media (max-width: 768px) {
    /* Show mobile menu toggle, hide desktop nav */
    .hamburger-simple {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    /* Header adjustments */
    .header-top {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        max-width: none;
        margin: 0;
    }
    
    .header-actions {
        gap: 15px;
    }
    
    /* Hero section */
    .hero {
        padding: 60px 0;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Content sections */
    .about,
    .categories,
    .featured-products,
    .affiliate,
    .contact {
        padding: 60px 0;
    }
    
    .about-content h2,
    .categories h2,
    .featured-products h2,
    .affiliate-content h2,
    .contact h2 {
        font-size: 2rem;
    }
    
    /* Grid adjustments */
    .mission-points,
    .affiliate-benefits {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    /* Modal adjustments */
    .modal-content {
        margin: 10% auto;
        width: 90%;
        padding: 25px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header */
    .header-top {
        padding: 10px 0;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .search-bar input {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .search-btn {
        padding: 10px 16px;
    }
    
    /* Hero */
    .hero {
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Sections */
    .about,
    .categories,
    .featured-products,
    .affiliate,
    .contact {
        padding: 40px 0;
    }
    
    .about-content h2,
    .categories h2,
    .featured-products h2,
    .affiliate-content h2,
    .contact h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    /* Grids */
    .categories-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mission-points,
    .affiliate-benefits {
        gap: 20px;
    }
    
    .point,
    .benefit {
        padding: 20px;
    }
    
    .point i,
    .benefit i {
        font-size: 2.5rem;
    }
    
    /* Contact form */
    .contact-form {
        padding: 25px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }
    
    /* Modal */
    .modal-content {
        margin: 5% auto;
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }
    
    /* Cart items */
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .cart-item img {
        width: 80px;
        height: 80px;
    }
}

/* Extra Small Devices */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .mobile-menu-panel {
        width: 280px;
    }
    
    .mobile-menu-panel a {
        padding: 15px 20px;
        font-size: 16px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .modal {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero {
        background: none;
        color: black;
    }
}
