/* Style général */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    min-height: 100vh;
}

/* Header */
header {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cart-btn {
    background: linear-gradient(45deg, #ff8a00, #e52e71);
    padding: 0.5rem 1.5rem !important;
    font-weight: bold !important;
    position: relative;
    overflow: hidden;
}

.cart-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Main content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #1a2a6c;
    position: relative;
    padding-bottom: 0.5rem;
}

h2:after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, #ff8a00, #e52e71);
    margin: 0.5rem auto;
    border-radius: 2px;
}

/* Product list */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid #eee;
}

.product h3 {
    color: #1a2a6c;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.product p {
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 1rem;
}

.product button {
    background: linear-gradient(45deg, #1a2a6c, #b21f1f);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Checkout page */
.checkout-page {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

#cart-items {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background: #e9ecef;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: right;
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

#checkout-form {
    display: grid;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto 0;
}

#checkout-form label {
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

#checkout-form input,
#checkout-form select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

#checkout-form button {
    background: linear-gradient(45deg, #ff8a00, #e52e71);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#checkout-form button:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Payment page */
.payment-page {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    text-align: center;
}

.wallet {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    font-family: monospace;
    word-break: break-all;
    margin: 1rem 0;
    border: 1px dashed #1a2a6c;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
    }
    
    nav a {
        width: 80%;
        text-align: center;
    }
    
    .product-list {
        grid-template-columns: 1fr;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
}

/* Animation pour les éléments */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product {
    animation: fadeIn 0.6s ease forwards;
}

.product:nth-child(1) { animation-delay: 0.1s; }
.product:nth-child(2) { animation-delay: 0.2s; }
.product:nth-child(3) { animation-delay: 0.3s; }
