/* Variables et reset */
:root {
    --primary-color: #00b67a;
    --primary-light: #00e99c;
    --primary-dark: #009d69;
    --text-color: #000000;
    --background-color: #ffffff;
    --sale-color: #d54d4d;
    --border-color: #e8e8e1;
    --footer-bg: #131a22;
    --footer-text: #ffffff;
    --promo-bg: #fffaf1;
    --card-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Announcement Bar */
.announcement-bar {
    background-color: #000000;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: #ffffff;
    font-weight: 600;
    overflow: hidden;
    position: relative;
}

.announcement-scroll {
    display: flex;
    white-space: nowrap;
}

.announcement-content {
    display: inline-block;
    font-size: 14px;
    animation: scroll-continuous 20s linear infinite;
    padding: 0 20px;
}

@keyframes scroll-continuous {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* HEADER - OPTIMISÉ POUR MOBILE AVEC ÉLÉMENTS TRÈS GRANDS */
.site-header {
    box-shadow: 0 0 1px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    background: white;
    z-index: 1000;
    height: 140px; /* Hauteur importante pour mobile */
    padding: 0 15px;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
    max-width: 100%;
}

/* Menu hamburger - TRÈS GRAND */
.mobile-menu-toggle {
    display: flex;
    cursor: pointer;
    width: 80px; /* Très grand pour mobile */
    height: 80px;
    position: relative;
    z-index: 1005;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.hamburger-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Logo - EXTRÊMEMENT GRAND */
.logo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.logo-link {
    text-decoration: none;
    display: block;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    width: 280px; /* Extrêmement grand pour mobile */
    height: 100px;
    object-fit: contain;
    display: block;
}

/* Navigation desktop - CACHÉ SUR MOBILE */
.main-nav {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 17px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Header Actions - Account TRÈS GRAND */
.header-actions {
    display: flex;
    flex-shrink: 0;
}

.account {
    cursor: pointer;
    font-weight: 500;
    width: 80px; /* Très grand pour mobile, égal au hamburger */
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    padding: 100px 30px 30px 30px;
    z-index: 1004;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.open {
    transform: translateX(0);
}

.close-mobile-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 40px; /* Plus grand pour mobile */
    font-weight: bold;
    cursor: pointer;
    color: #000;
    z-index: 1006;
    transition: color 0.2s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-mobile-menu:hover {
    color: #ff6600;
}

.mobile-nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-nav-menu li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 22px; /* Plus grand pour mobile */
    transition: color 0.3s;
    display: block;
    padding: 12px 0;
}

.mobile-nav-menu li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-pre-title {
    font-size: 20px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 0;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
}

.btn:hover {
    background-color: var(--primary-dark);
}

.btn-hero {
    background-color: transparent;
    border: 2px solid white;
}

.btn-hero:hover {
    background-color: white;
    color: var(--text-color);
}

/* Promo Banner */
.promo-banner {
    background-color: var(--promo-bg);
    padding: 40px 20px;
    text-align: center;
}

.promo-content h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.promo-content p {
    font-size: 1.1rem;
    color: #666;
}

/* Sections */
.products-section, .collections-section, .philosophy-section {
    padding: 50px 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 400;
}

.section-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border-radius: var(--card-radius);
    padding: 0;
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: 380px;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 240px;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.product-image img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-title {
    font-weight: bold;
    margin: 20px 15px 10px;
    font-size: 16px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}

.product-price {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.current-price {
    color: var(--sale-color);
    font-weight: bold;
    font-size: 18px;
}

.original-price {
    text-decoration: line-through;
    color: #666;
    font-size: 16px;
}

/* Philosophy Section */
.philosophy-section {
    background-color: #f9f9f9;
    text-align: center;
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-text {
    margin-top: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.philosophy-text p {
    margin-bottom: 20px;
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo-placeholder {
    background-color: #333;
    color: white;
    width: 140px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
}

.footer-title {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-info p {
    margin-bottom: 10px;
    color: #ccc;
}

.contact-info a {
    color: #ccc;
    text-decoration: none;
}

.contact-info a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.social-link:hover {
    color: white;
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #333;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    color: #ccc;
}

/* Account Overlay */
.account-overlay {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    width: 90%;
    max-width: 400px;
    height: auto;
    min-height: 400px;
    background-color: #fff;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    padding: 50px 30px 30px 30px;
    z-index: 10000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    border-radius: 8px;
    overflow: hidden;
}

.account-overlay.open {
    transform: translateX(-50%) translateY(20px);
    opacity: 1;
}

.account-overlay form {
    display: flex;
    flex-direction: column;
}

.account-overlay form input {
    margin: 12px 0;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.account-overlay form button {
    margin-top: 20px;
}

.close-account {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #000;
    z-index: 10006;
    transition: color 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-account:hover {
    color: #ff6600;
}

/* Overlay background */
.overlay-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1003;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay-background.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design - OPTIMISÉ POUR MOBILE EN PREMIER */
@media (max-width: 768px) {
    .site-header {
        height: 120px;
        padding: 0 10px;
    }
    
    .mobile-menu-toggle {
        width: 70px;
        height: 70px;
    }
    
    .logo-image {
        width: 240px;
        height: 85px;
    }
    
    .account {
        width: 70px;
        height: 70px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-card {
        height: 350px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .mobile-menu-overlay {
        width: 85%;
        padding: 90px 25px 25px 25px;
    }
    
    .mobile-nav-menu li a {
        font-size: 20px;
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .site-header {
        height: 110px;
    }
    
    .mobile-menu-toggle {
        width: 60px;
        height: 60px;
    }
    
    .logo-image {
        width: 200px;
        height: 70px;
    }
    
    .account {
        width: 60px;
        height: 60px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-card {
        height: 320px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .hero-section {
        height: 60vh;
    }
    
    .announcement-content {
        font-size: 12px;
        animation-duration: 15s;
    }
}

/* Desktop styles - SECONDARY */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .main-nav {
        display: flex;
        flex: 1;
        justify-content: center;
    }
    
    .site-header {
        height: 120px;
        padding: 0 20px;
    }
    
    .header-wrapper {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .logo-image {
        width: 300px;
        height: 100px;
    }
    
    .account {
        width: 60px;
        height: 60px;
    }
}