body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.top-bar {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.left-section {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.center-section {
    flex: 1;
    display: flex;
    justify-content: center;
}

.right-section {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.left-buttons {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.nav-btn:hover {
    background-color: #f8f9fa;
}

.search-bar {
    width: 100%;
    max-width: 400px;
}

.search-bar input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 1rem;
    box-sizing: border-box;
}

.profile {
    position: relative;
}

.profile-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background-color 0.3s;
    padding: 0;
}

.profile-icon:hover {
    background-color: #e0e0e0;
}

.user-avatar-nav {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
    min-width: 150px;
    z-index: 101;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: visibility 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.dropdown.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
}

.dropdown a:hover {
    background-color: #f8f9fa;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.product-image {
    width: 100%;
    height: 300px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.2rem;
}

.product-info {
    padding: 1rem;
}

.product-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.product-info p {
    margin: 0 0 0.5rem 0;
    color: #6c757d;
}

.price {
    font-weight: bold;
    color: #ff6b6b;
}

footer {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

.croix-rouge-banner-red {
    background-color: #e74c3c;
    color: white;
    padding: 25px 0;
    width: 100%;
    margin-top: 60px;
    box-shadow: 0 -4px 15px rgba(231, 76, 60, 0.2);
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.banner-text {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.15rem;
}

.banner-text i {
    color: white;
    font-size: 2rem;
}

.banner-text strong {
    font-weight: 800;
}

.banner-link-white {
    background-color: white;
    color: #e74c3c;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.banner-link-white:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .left-section, .center-section, .right-section {
        flex: unset;
        width: 100%;
        justify-content: center;
    }

    main {
        padding: 1rem;
    }

    .products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .croix-rouge-banner-red {
        padding: 20px 15px;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }

    .banner-text {
        font-size: 1rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .product-image {
    width: 100%;
    height: 300px;
    background-color: #e9ecef;
    overflow: hidden;
    }

    .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    }
}
    body.light {
        background: #ffffff;
        color: #000000;
    }

    body.dark {
        background: #121212;
        color: #eeeeee;
    }

    body.dark .top-bar,
    body.dark .profile-card,
    body.dark .product-card {
        background: #1e1e1e;
        color: #eeeeee;
    }

    body.dark a {
        color: #9ecfff;
    }
