/*------------------------------------------------*/
/* NAVIGATION */
/*------------------------------------------------*/

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: linear-gradient(to bottom, #e0f2ff, #c0d9ff);
    color: #222;
}

nav {
    background: linear-gradient(90deg, #1E3A8A, #3B65C4);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

nav .logo {
    color: white;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    font-size: 16px;
    padding: 5px 10px;
    transition: all 0.3s;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.user-menu-links a:hover {
    transform: none !important;
    padding: 10px 12px !important;
}

.mega-menu-cart-btn:hover {
    transform: none !important;
    padding: 10px !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 28px;
    background: white;
    margin: 4px 0;
    border-radius: 3px;
    transition: 0.3s;
}

@media (max-width: 768px) {
    nav ul {
        position: absolute;
        top: 70px;
        right: 0;
        width: 220px;
        /* background géré par dynamic-colors.css */
        padding: 20px;
        flex-direction: column;
        text-align: right;
        gap: 20px;
        display: none;
        box-shadow: -5px 5px 15px rgba(0,0,0,0.2);
        border-radius: 0 0 0 10px;
    }
    nav ul.show {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
}

.content {
    padding: 30px;
}

/*------------------------------------------------*/
/* HEADER - HERO SECTION */
/*------------------------------------------------*/

.hero {
    width: 98%;
    margin: 0 auto;
    height: 65vh;
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.hero-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,50,0.2), rgba(0,0,80,0.6));
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    color: white;
}

.hero-overlay h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
}

.hero-overlay p {
    font-size: 20px;
    margin-top: 10px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero {
        height: 50vh;
    }
    .hero-overlay h1 {
        font-size: 32px;
    }
    .hero-overlay p {
        font-size: 16px;
    }
}

/*------------------------------------------------*/
/* SECTIONS */
/*------------------------------------------------*/

.section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #1E3A8A;
}

.section p {
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 20px;
}

/*------------------------------------------------*/
/* GALLERY - LATEST CREATIONS & SHOP */
/*------------------------------------------------*/

.latest-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.latest-artwork {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.latest-artwork:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.latest-artwork .badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(90deg, #FF7F50, #FF4500);
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    z-index: 10;
}

.latest-artwork img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.latest-artwork:hover img {
    transform: scale(1.08);
}

.latest-artwork .info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.latest-artwork h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1E3A8A;
}

.latest-artwork p {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.latest-artwork button {
    margin-top: 10px;
    padding: 10px 15px;
    background: linear-gradient(90deg, #1E3A8A, #3B65C4);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.latest-artwork button:hover {
    background: linear-gradient(90deg, #3B65C4, #1E3A8A);
}

@media (max-width: 768px) {
    .latest-gallery {
        grid-template-columns: 1fr;
    }
}

/*------------------------------------------------*/
/* FORM - ADD PAINTING */
/*------------------------------------------------*/

.add-painting-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.add-painting-form label {
    font-weight: 600;
}

.add-painting-form input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.add-painting-form input[type="file"] {
    padding: 5px;
}

.add-painting-form button {
    padding: 12px;
    background: linear-gradient(90deg, #1E3A8A, #3B65C4);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.add-painting-form button:hover {
    background: linear-gradient(90deg, #3B65C4, #1E3A8A);
}

@media (max-width: 600px) {
    .add-painting-form {
        max-width: 90%;
        padding: 15px;
    }

    .add-painting-form input,
    .add-painting-form button {
        font-size: 14px;
        padding: 10px;
    }
}

/*------------------------------------------------*/
/* CART */
/*------------------------------------------------*/

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.cart-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.cart-item {
    position: relative;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cart-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1E3A8A;
}

.cart-header .price {
    font-weight: 600;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.qty-btn {
    display: inline-block;
    width: 28px;
    height: 28px;
    text-align: center;
    line-height: 28px;
    background: linear-gradient(90deg, #1E3A8A, #3B65C4);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
}

.qty-btn:hover {
    background: linear-gradient(90deg, #3B65C4, #1E3A8A);
}

.qty {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #FF6347;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}

.cart-summary {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.cart-summary h3 {
    margin: 0 0 10px;
}

.total-price {
    font-size: 20px;
    font-weight: 700;
    color: #1E3A8A;
}

.validate-btn {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(90deg, #1E3A8A, #3B65C4);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 15px;
    transition: background 0.3s;
}

.validate-btn:hover {
    background: linear-gradient(90deg, #3B65C4, #1E3A8A);
}

@media (max-width: 768px) {
    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item img {
        width: 100%;
        height: auto;
    }

    .quantity-controls {
        justify-content: flex-start;
    }
}

/*------------------------------------------------*/
/* CHECKOUT */
/*------------------------------------------------*/
.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.checkout-cart, .checkout-form {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.checkout-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.checkout-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 10px;
}

.checkout-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.checkout-info .name {
    font-weight: 700;
    color: #1E3A8A;
}

.checkout-info .price {
    font-weight: 600;
    color: #333;
}

.checkout-info .quantity {
    font-size: 14px;
    color: #555;
}

.checkout-total {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 700;
    text-align: right;
    color: #1E3A8A;
}

.checkout-form label {
    display: block;
    margin: 10px 0 5px;
    font-weight: 600;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

.checkout-form button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #1E3A8A, #3B65C4);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.checkout-form button:hover {
    background: linear-gradient(90deg, #3B65C4, #1E3A8A);
}

@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .checkout-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkout-info {
        margin-top: 10px;
    }
}

.about {
    margin-top: 50px;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    justify-content: center; /* centre le bloc global sur la page */
}

.about-container img {
    width: 300px;
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.about-container p {
    max-width: 600px;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    text-align: left;
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-container p {
        text-align: center;
    }
}

.section.about-section .btn-primary,
.about-buttons .btn-primary,
.contact-cta .btn-contact,
.about .btn-primary {
    padding: 12px 25px !important;
    box-sizing: border-box !important;
    transition: background 0.3s ease, box-shadow 0.3s ease !important;
}

.section.about-section .btn-primary:hover,
.about-buttons .btn-primary:hover,
.contact-cta .btn-contact:hover,
.about .btn-primary:hover {
    transform: none !important;
    /* optional subtle hover visual: */
    box-shadow: 0 6px 18px rgba(30,58,138,0.08) !important;
}

/* Also ensure favorite button doesn't shift */
.about .favorite-btn,
.artwork-card .favorite-btn {
    width: 40px;
    height: 40px;
    padding: 0 !important;
    line-height: 1;
}



.site-footer {
    background-color: #1E3A8A;
    color: white;
    padding: 40px 20px 20px 20px;
    font-family: 'Arial', sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-about, .footer-links, .footer-contact {
    flex: 1 1 200px;
    min-width: 200px;
}

.footer-about h3, .footer-links h4, .footer-contact h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #FFC107;
}

.footer-contact p {
    margin: 5px 0;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 10px;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-about, .footer-links, .footer-contact {
        flex: 1 1 100%;
    }
}

/* ========== ADMIN DASHBOARD ========== */
.admin-header {
    background: linear-gradient(135deg, #1E3A8A 0%, #3B65C4 100%);
    color: white;
    padding: 30px 0;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.admin-header h1 {
    margin: 0 0 20px 0;
    font-size: 32px;
    font-weight: 700;
}

.admin-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    z-index: 10;
}

.nav-btn {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    padding: 10px 16px;
}

.nav-btn.active {
    background: white;
    color: #1E3A8A;
    font-weight: 700;
}

.btn-primary {
    background: #1E3A8A !important;
    border-color: #1E3A8A !important;
    padding: 10px 16px;
}

.admin-nav .nav-btn {
    flex: none;
    width: auto;
    padding: 10px 16px;
}

.admin-nav .nav-btn.btn-primary {
    flex: none;
    padding: 10px 16px;
}

.admin-section {
    padding: 40px 0;
    background: #f9fafb;
    min-height: calc(100vh - 200px);
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.15);
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.stat-info h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-number {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #1E3A8A;
}

/* ALERT */
.alert {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 5px solid;
}

.alert-warning {
    background: #FFF8E1;
    border-color: #FFB300;
    color: #664D03;
}

.alert h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert li {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ADMIN PANEL */
.admin-panel {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.admin-panel h2 {
    margin: 0 0 25px 0;
    font-size: 22px;
    color: #1E3A8A;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 15px;
}

/* ADMIN TABLE */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table thead {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.admin-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #1E3A8A;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    color: #333;
}

.admin-table tbody tr {
    transition: background 0.2s ease;
}

.admin-table tbody tr:hover {
    background: #f9fafb;
}

/* STATUS BADGES */
.status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #FFF3CD;
    color: #856404;
}

.status-completed {
    background: #D4EDDA;
    color: #155724;
}

.status-cancelled {
    background: #F8D7DA;
    color: #721C24;
}

.status-processing {
    background: #D1ECF1;
    color: #0C5460;
}

/* BUTTONS */
.btn-link {
    color: #fff;
    background-color: #007bff;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-link:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.admin-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1E3A8A;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1E3A8A;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group button {
    padding: 12px 30px;
    background: linear-gradient(90deg, #1E3A8A, #3B65C4);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-group button:hover {
    background: linear-gradient(90deg, #3B65C4, #1E3A8A);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

@media (max-width: 768px) {
    .admin-header h1 {
        font-size: 24px;
    }
    
    .admin-nav {
        flex-direction: column;
    }
    
    .nav-btn {
        width: 100%;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-table {
        font-size: 12px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
    }
}

/* ========== PAINTINGS PAGE ========== */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 15px;
}

.panel-header h2 {
    margin: 0;
    font-size: 22px;
    color: #1E3A8A;
}

.subtitle {
    margin: 0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* PAINTINGS GRID */
.paintings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.painting-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.painting-card:hover {
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.15);
    transform: translateY(-4px);
}

.painting-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f0f4f8;
}

.painting-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.painting-card:hover .painting-image img {
    transform: scale(1.05);
}

.painting-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.85);
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.painting-card:hover .painting-overlay {
    opacity: 1;
}

.btn-overlay {
    padding: 10px 16px;
    background: white;
    color: #1E3A8A;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-overlay:hover {
    background: #f0f4f8;
    padding: 10px 16px;
}

.btn-overlay.btn-danger {
    background: #FF6347;
    color: white;
}

.btn-overlay.btn-danger:hover {
    background: #FF4500;
}

.painting-info {
    padding: 15px;
}

.painting-info h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #1E3A8A;
}

.painting-details {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.detail {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.detail.out-of-stock {
    color: #FF6347;
    font-weight: 700;
}

.painting-id {
    margin: 0;
    font-size: 12px;
    color: #999;
}

/* ========== ORDERS PAGE ========== */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
}

.order-item:hover {
    border-color: #1E3A8A;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
}

.order-header {
    background: #f9fafb;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.order-info h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #1E3A8A;
}

.order-date {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.order-amount {
    display: flex;
    gap: 15px;
    align-items: center;
}

.amount {
    font-weight: 700;
    font-size: 18px;
    color: #1E3A8A;
}

.order-details {
    padding: 15px;
}

.detail-row {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 14px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row .label {
    font-weight: 600;
    color: #1E3A8A;
    min-width: 120px;
}

.detail-row .value {
    color: #333;
}

/* Order items list */
.order-items {
    padding: 15px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.items-header {
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 12px;
    font-size: 14px;
}

.items-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.items-list li {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.item-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-name {
    font-weight: 600;
    color: #1E3A8A;
    font-size: 13px;
}

.item-qty {
    color: #666;
    font-size: 12px;
}

.item-total {
    font-weight: 700;
    color: #1E3A8A;
    font-size: 14px;
    min-width: 80px;
    text-align: right;
}

/* Order actions */
.order-actions {
    padding: 15px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-dropdown {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.status-dropdown strong {
    color: #1E3A8A;
    font-size: 14px;
}

.status-link {
    padding: 8px 14px;
    background: #e8f0ff;
    color: #1E3A8A;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.2s ease;
    display: inline-block;
}

.status-link:hover {
    background: #1E3A8A;
    color: white;
    padding: 8px 14px;
}

/* ========== ADD/EDIT PAINTING FORM ========== */
.form-panel {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    max-width: 700px;
    margin: 0 auto;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 15px;
}

.form-header h2 {
    margin: 0;
    font-size: 24px;
    color: #1E3A8A;
}

.btn-secondary {
    padding: 10px 16px;
    background: #e5e7eb;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-secondary:hover {
    background: #d1d5db;
    padding: 10px 16px;
}

.admin-form {
    background: white;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1E3A8A;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1E3A8A;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* FILE INPUT */
.file-input-wrapper {
    position: relative;
    border: 2px dashed #1E3A8A;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-input-wrapper:hover {
    background: #f0f4f8;
    border-color: #3B65C4;
}

.file-input-wrapper input {
    display: none;
}

.file-label {
    color: #1E3A8A;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

#preview-container {
    margin-top: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    text-align: center;
}

.preview-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-height: 300px;
}

/* FORM ACTIONS */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.btn-primary {
    flex: 1;
    padding: 14px;
    background: linear-gradient(90deg, #1E3A8A, #3B65C4);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #3B65C4, #1E3A8A);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.form-actions .btn-secondary {
    flex: 1;
    padding: 14px;
    text-align: center;
    margin: 0;
}

/* FORM INFO */
.form-info {
    margin-top: 30px;
    padding: 20px;
    background: #e8f0ff;
    border-radius: 8px;
    border-left: 5px solid #1E3A8A;
}

.form-info h3 {
    margin: 0 0 12px 0;
    color: #1E3A8A;
    font-size: 16px;
}

.form-info ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.form-info li {
    color: #333;
    font-size: 13px;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button,
    .form-actions a {
        width: 100% !important;
    }
    
    .form-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* ========== USERS PAGE ========== */
.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table thead {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.users-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #1E3A8A;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.users-table td {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    color: #333;
}

.users-table tbody tr {
    transition: background 0.2s ease;
}

.users-table tbody tr:hover {
    background: #f9fafb;
}

.user-role {
    display: inline-block;
    padding: 4px 10px;
    background: #e8f0ff;
    color: #1E3A8A;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.user-role.admin {
    background: #FFE8E8;
    color: #FF6347;
}

/* ========== ADD/EDIT PAINTING FORM ========== */
.form-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1E3A8A;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1E3A8A;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #1E3A8A, #3B65C4);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-group button:hover {
    background: linear-gradient(90deg, #3B65C4, #1E3A8A);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
    padding: 14px;
}

.form-preview {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.form-preview h3 {
    color: #1E3A8A;
    margin-bottom: 15px;
}

.preview-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .paintings-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .order-amount {
        flex-direction: column;
        width: 100%;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .form-container {
        padding: 20px;
    }
}

/*------------------------------------------------*/
/* PRODUCT CARDS */
/*------------------------------------------------*/

.product-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.product-card .info {
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1E3A8A;
}

.product-card p {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.product-card button {
    margin-top: 10px;
    padding: 10px 15px;
    background: linear-gradient(90deg, #1E3A8A, #3B65C4);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.product-card button:hover {
    background: linear-gradient(90deg, #3B65C4, #1E3A8A);
}

.nav-btn { position: relative; }
.nav-btn .badge {
    position: absolute;
    top: 2px;
    right: 5px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
}

/*------------------------------------------------*/
/* RESPONSIVE MOBILE - GLOBAL IMPROVEMENTS */
/*------------------------------------------------*/

@media (max-width: 768px) {
    /* Navigation mobile améliorée */
    nav {
        padding: 12px 20px;
    }
    
    nav .logo {
        font-size: 20px;
    }
    
    /* Hero sections */
    .hero {
        min-height: 60vh;
        padding: 30px 15px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    /* Sections générales */
    .section {
        padding: 40px 15px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    /* Conteneurs */
    .container, .center-container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* Grilles */
    .latest-gallery,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Panier mobile */
    .cart-container {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-item img {
        width: 100%;
        height: 200px;
    }
    
    .cart-summary {
        position: static;
        width: 100%;
    }
    
    /* Checkout mobile */
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    /* About page mobile */
    .about-container {
        flex-direction: column;
    }
    
    .about-container img {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .about-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .about-buttons a {
        width: 100%;
        text-align: center;
    }
    
    /* Contact CTA */
    .contact-cta-container {
        padding: 30px 20px;
    }
    
    .contact-cta h2 {
        font-size: 22px;
    }
    
    /* Footer mobile */
    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-about,
    .footer-links,
    .footer-contact {
        width: 100%;
    }
    
    /* Expositions mobile */
    .expo-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-expo-card {
        min-height: 300px;
        width: 95%;
    }
    
    .hero-expo-content h2 {
        font-size: 1.5rem;
    }
    
    /* Profile page mobile */
    .profile-container {
        padding: 20px 15px;
    }
    
    .profile-section {
        padding: 20px;
    }
    
    /* Orders mobile */
    .orders-list {
        gap: 15px;
    }
    
    .order-item {
        padding: 15px;
    }
    
    .order-details {
        padding: 15px;
    }
    
    /* Auth forms mobile */
    .auth-container {
        padding: 25px 20px;
        margin: 20px 15px;
    }
    
    .auth-container h2 {
        font-size: 22px;
    }
    
    /* Buttons mobile */
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    nav .logo {
        font-size: 18px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 13px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .section {
        padding: 30px 10px;
    }
    
    /* Cards très petits écrans */
    .product-card img,
    .latest-artwork .artwork-image-wrapper {
        height: 200px;
    }
    
    .cart-item img {
        height: 150px;
    }
    
    /* Admin mobile */
    .admin-nav {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-btn {
        font-size: 13px;
        padding: 8px 12px;
    }
}
