/* Modern color scheme and typography */
:root {
    --primary-color: #2C3E50;    /* Dark blue-gray */
    --secondary-color: #ECF0F1;  /* Light gray */
    --accent-color: #F1C40F;     /* Vibrant yellow */
    --background-color: #FFFFFF; /* Pure white */
    --text-color: #34495E;      /* Softer dark */
    --font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Base styles */
body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.8;
    font-size: 16px;
}

/* Effets d'ombres doux et animations */
h1, h2, h3, p, a {
    text-shadow: none; /* Suppression des ombres */
    transition: color 0.3s ease;
}

/* Modern typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    position: relative;
}

a:hover {
    color: var(--accent-color);
}

/* Enhanced container */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    background: var(--primary-color);
    color: var(--secondary-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 2rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.header .logo {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin: 0;
}

.header .nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.header .nav ul li {
    position: relative;
}

.header .nav ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    padding: 1rem 1.5rem; /* Increased padding */
    transition: background-color 0.3s ease;
    font-size: 1.2rem; /* Increased font size */
}

.header .nav ul li a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Dropdown Menu */
.header .nav ul li .dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--primary-color);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    top: 100%;
    margin-top: 0;
}

.header .nav ul li .dropdown-content a {
    color: var(--secondary-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.header .nav ul li .dropdown-content a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.header .nav ul li:hover .dropdown-content {
    display: block;
}

/* Hero Section */
.hero {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 4rem 0;
    margin-top: 70px; /* Match header height */
    text-align: center;
}

.hero h1 {
    margin-top: 0;
    color: var(--secondary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero .btn {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.hero .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Modern buttons */
.btn {
    padding: 0.8rem 1.6rem;
    border-radius: var(--border-radius);
    border: none;
    background: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    box-shadow: var(--box-shadow);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Categories Section */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* Modern cards */
.card {
    background: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed) ease;
    overflow: hidden;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    border-radius: 10px 10px 0 0;
}

.card .card-body {
    padding: 1rem;
}

.card h5 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.card p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-color);
}

.card .btn {
    background: var(--accent-color);
    color: var(--background-color);
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer .col-md-4 {
    flex: 1;
    min-width: 250px;
}

.footer h5 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

social-icons a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.legal-info {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-section {
    flex: 1;
}

.footer-section h5 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    margin-top: 1.5rem;
    padding-top: 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

/* Styles spécifiques pour la page du panier */
.cart-container {
    margin-top: 100px; /* Pour compenser le header fixe */
    padding: 2rem 0;
}

.cart-container h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    background-color: var(--secondary-color);
    margin-bottom: 1rem;
}

.cart-item img {
    width: 100px;
    height: auto;
}

.cart-item-details {
    flex: 1;
    margin-left: 1rem;
}

.cart-item-details h3 {
    margin: 0;
    font-size: 1.2rem;
}

.cart-item-details p {
    margin: 0.5rem 0;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-actions button {
    padding: 0.5rem 1rem;
    border: none;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cart-item-actions button:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-top: 1px solid var(--primary-color);
    margin-top: 2rem;
}

.cart-summary strong {
    font-size: 1.2rem;
}

.cart-summary span {
    font-size: 1.2rem;
}

.cart-summary button {
    padding: 0.5rem 2rem;
    border: none;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cart-summary button:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Main Content */
main {
    margin-top: 70px;
    padding: 2rem 0;
}

/* Main content spacing */
main, .hero, .products, .about {
    margin-top: 120px;
    padding-top: 3rem;
}

/* Heading Adjustments */
main h1 {
    margin-top: 0.5rem; /* Reduced margin */
    margin-bottom: 2rem;
    padding-top: 1rem;
}

/* Title styling */
.products h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 5rem;
    color: var(--primary-color);
    padding-top: 1rem;
}

/* Section Adjustments */
section {
    margin-top: 2rem;
}

/* Section titles */
h1, .section-title {
    margin-top: 2rem;
    padding-top: 1rem;
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .categories {
        grid-template-columns: 1fr;
    }

    .header .nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item img {
        width: 80px;
    }

    .cart-item-details {
        margin-left: 0;
        margin-top: 1rem;
    }

    .cart-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-summary button {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--primary-color);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: var(--secondary-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Container adjustments */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Grid system */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Responsive spacing */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Layout */
.main-content {
    margin-top: 80px;
    padding: 2rem 0;
}

.page-title {
    text-align: center;
    margin: 1rem 0 3rem;
    padding-top: 1rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

/* Contact Form Styles */
.contact-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: 1rem;
}

/* Alert styles */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Authentication Forms */
.register-form,
.login-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
}

.profile-section {
    padding: 2rem 0;
}

.profile-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.order-history {
    margin-top: 3rem;
}

.order-card {
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.order-details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: var(--border-radius);
}

/* Authentication Forms */
.login-section,
.register-section {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
}

.login-form,
.register-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

.btn {
    width: 100%;
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1rem;
    text-align: center;
}

/* Profile and Edit Profile Pages */
.edit-profile-section,
.profile-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.profile-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.order-history {
    margin-top: 3rem;
}

.order-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.order-details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.edit-profile-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.edit-profile-form .form-group {
    margin-bottom: 1.5rem;
}

.edit-profile-form .btn {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.edit-profile-form .btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.profile-actions .btn {
    flex: 1;
    text-align: center;
}

.edit-profile-section {
    max-width: 800px;
}

.social-login {
    margin-top: 2rem;
    text-align: center;
}

.btn-google {
    background: #fff;
    color: #757575;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    width: 100%;
    max-width: 300px;
    margin: 1rem auto;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.btn-google:hover {
    background: #f5f5f5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-google img {
    width: 24px;
    height: 24px;
}

.btn-google {
    background: #dd4b39;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
    max-width: 300px;
}

.btn-google:hover {
    background: #c23321;
    color: white;
}

.btn-google i {
    font-size: 1.2rem;
}

/* Notification styles */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    animation: slideIn 0.3s ease-out;
    z-index: 1000;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Cart Styles */
.cart-section {
    padding: 2rem 0;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1rem;
}

.cart-item-image {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-right: 1rem;
}

.cart-item-image.error {
    object-fit: contain;
    background: #f8f9fa;
    padding: 0.5rem;
}

.cart-item-details {
    flex: 1;
    padding: 0 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

quantity-controls button {
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--primary-color);
    background: white;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.remove-item {
    padding: 0.5rem;
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.cart-total {
    margin-top: 2rem;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-btn {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
}
