body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #333;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #000;
}

#logo {
    height: 40px;
}

.nav-tags {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-tag {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: none;
    padding: 0;
    border: none;
    transition: color 0.2s;
}

.nav-tag:hover {
    color: #666;
    background: none;
}

.nav-tag.active {
    color: #333;
    background: none;
    font-weight: bold;
}

.nav-right .contact-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product {
    text-align: center;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.product-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Ratio carré 1:1 */
    margin-bottom: 1rem;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.product-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #fff;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product h2 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.price {
    color: #666;
    margin: 0.5rem 0;
    font-weight: bold;
}

.view-details {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    display: inline-block;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.view-details:hover {
    background: #f5f5f5;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: #ffffff;
    margin-top: 2rem;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 1.5rem;
        gap: 1.5rem;
    }
}

@media screen and (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.5rem;
        gap: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        padding: 1rem;
        position: relative;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .nav-tags {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0.5rem;
    }

    .nav-tag {
        padding: 0.5rem 0;
        border-bottom: 1px solid #eee;
        width: 100%;
        display: block;
    }

    .nav-tag:last-child {
        border-bottom: none;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0.5rem;
    }

    .nav-links li {
        padding: 0.5rem 0;
        border-bottom: 1px solid #eee;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-right {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .product-grid {
        padding: 1rem;
        gap: 1rem;
    }

    .product {
        padding: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 0.8rem;
    }

    .product {
        max-width: none;
        margin: 0;
        padding: 0.5rem;
    }

    .product h2 {
        font-size: 0.9rem;
        margin: 0.3rem 0;
    }

    .price {
        font-size: 0.85rem;
        margin: 0.3rem 0;
    }

    .view-details {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    body {
        font-size: 14px;
    }

    .main-nav {
        padding: 0.5rem;
    }

    .logo a {
        font-size: 1.2rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .product-status {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    footer {
        padding: 1rem;
        font-size: 0.8rem;
    }
}

/* Add smooth transitions for responsive elements */
.main-nav, .nav-links, .product-grid {
    transition: all 0.3s ease-in-out;
}

/* Ensure images scale properly */
img {
    max-width: 100%;
    height: auto;
}

/* Fix for potential overflow issues */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Improve touch targets on mobile */
@media (hover: none) and (pointer: coarse) {
    .nav-links a,
    .contact-link,
    .view-details {
        padding: 0.8rem;
    }

    .product-status {
        padding: 0.4rem 0.8rem;
    }
}
