/* ===========================
   VARIABLES & RESET - Thème Panda & Lanternes
   =========================== */
:root {
    /* Couleurs principales inspirées du logo panda et lanternes chinoises */
    --primary-red: #C62828;
    --dark-red: #8B0000;
    --light-red: #E57373;
    --accent-red: #D32F2F;
    --beige: #F5E6D3;
    --dark-beige: #D4C5B0;
    --light-beige: #FFF8F0;
    --black: #1A1A1A;
    --charcoal: #2C2C2C;
    --soft-black: #404040;
    --accent-gold: #D4AF37;
    --bg-light: #FFF8F0;
    --bg-beige: #F5E6D3;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-gray: #6C757D;
    --text-light: #ADB5BD;
    --border-light: #E8DDD0;
    --shadow-sm: 0 2px 8px rgba(198, 40, 40, 0.1);
    --shadow-md: 0 4px 16px rgba(198, 40, 40, 0.15);
    --shadow-lg: 0 8px 32px rgba(198, 40, 40, 0.2);
    --shadow-xl: 0 12px 48px rgba(198, 40, 40, 0.25);
    --gradient-primary: linear-gradient(135deg, #C62828 0%, #8B0000 100%);
    --gradient-beige: linear-gradient(135deg, #F5E6D3 0%, #D4C5B0 100%);
    --gradient-light: linear-gradient(135deg, #E57373 0%, #D32F2F 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    background-image: url('/static/images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 248, 240, 0.92);
    z-index: -1;
    pointer-events: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.elevation-1 {
    box-shadow: var(--shadow-sm);
}

.elevation-2 {
    box-shadow: var(--shadow-md);
}

.elevation-3 {
    box-shadow: var(--shadow-lg);
}

/* ===========================
   CONTAINER & LAYOUT
   =========================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================
   NAVBAR - Professional Design avec thème rouge/beige
   =========================== */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    color: var(--text-dark);
    padding: 0;
    box-shadow: 0 2px 12px rgba(198, 40, 40, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-red);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.nav-brand .logo {
    height: 50px;
    width: 50px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-brand a span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-brand a:hover {
    transform: translateY(-2px);
}

.nav-brand a:hover .logo {
    transform: scale(1.05) rotate(5deg);
    box-shadow: var(--shadow-md);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu li a {
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-menu li a:hover {
    color: var(--primary-red);
}

.nav-menu li a:hover::after {
    width: 100%;
}

.btn-login, .btn-logout {
    background: var(--gradient-primary);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.btn-login::after, .btn-logout::after {
    display: none;
}

.btn-login:hover, .btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Bouton WhatsApp - Rond avec logo uniquement */
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white) !important;
    padding: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-whatsapp::after {
    display: none;
}

.btn-whatsapp:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ===========================
   FLASH MESSAGES - Modern Design
   =========================== */
.flash-messages {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 2000;
    max-width: 420px;
}

.alert {
    padding: 1.25rem 1.75rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border-left: 4px solid;
}

@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    background: linear-gradient(135deg, rgba(212, 237, 218, 0.95), rgba(195, 230, 203, 0.95));
    color: #0F5132;
    border-left-color: #198754;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(248, 215, 218, 0.95), rgba(242, 222, 222, 0.95));
    color: #842029;
    border-left-color: #DC3545;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 243, 205, 0.95), rgba(255, 238, 186, 0.95));
    color: #664D03;
    border-left-color: #FFC107;
}

.alert-info {
    background: linear-gradient(135deg, rgba(209, 236, 241, 0.95), rgba(190, 227, 248, 0.95));
    color: #055160;
    border-left-color: #0DCAF0;
}

.close-alert {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    transition: var(--transition);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-alert:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

/* ===========================
   HERO SECTION - Premium Design avec thème asiatique
   =========================== */
.hero {
    background: var(--charcoal);
    color: var(--white);
    padding: 2.5rem 0;
    text-align: center;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--primary-red);
    box-shadow: 0 2px 12px rgba(198, 40, 40, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 450px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(198, 40, 40, 0.3);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(198, 40, 40, 0.5);
    letter-spacing: 1px;
}

/* ===========================
   PRODUCTS SECTION - Premium Cards with Flip Effect
   =========================== */
.products-section {
    padding: 3rem 0 5rem;
    background: var(--bg-light);
    position: relative;
    z-index: 10;
}

/* ===========================
   CATEGORY SELECTOR - Rectangle Cards with Images
   =========================== */
.category-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.category-card {
    position: relative;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid var(--border-light);
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--light-red);
}

.category-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s ease;
}

.category-card:hover .category-card-bg {
    transform: scale(1.1);
}

.category-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    transition: var(--transition);
}

.category-card:hover .category-card-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.category-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: var(--white);
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.category-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    letter-spacing: 0.5px;
}

.category-description {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.category-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Back Button */
.back-to-selection {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--primary-red);
    border-radius: 12px;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 100 !important;
}

.back-to-selection:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

/* ===========================
   CATEGORY SECTION
   =========================== */
.category-section {
    margin-bottom: 2rem;
    position: relative;
    padding: 2rem;
    border-radius: 20px;
    overflow: hidden;
}

.category-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

.fruits-bg {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='10' y='50' font-size='40' opacity='0.3'%3E🍎🍊🍓🍌🍇🍑%3C/text%3E%3C/svg%3E");
}

.legumes-bg {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='10' y='50' font-size='40' opacity='0.3'%3E🥕🥬🥦🌽🍅🥒%3C/text%3E%3C/svg%3E");
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

/* ===========================
   FLIP CARD EFFECT
   =========================== */
.product-card {
    perspective: 1000px;
    height: 380px;
    cursor: pointer;
}

.product-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.product-card:hover .product-card-inner {
    transform: rotateY(180deg);
}

.product-card-front,
.product-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

/* Front Face */
.product-card-front {
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.product-card-front .product-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, #FFF8F0 0%, #F5E6D3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-card-front .product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(198, 40, 40, 0.05) 100%);
}

.product-card-front .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-front .product-image img {
    transform: scale(1.1);
}

.no-image {
    font-size: 5rem;
    opacity: 0.3;
    filter: grayscale(100%);
}

.product-name-front {
    padding: 1.25rem 1.5rem;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
}

.product-name-front h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--charcoal);
    margin: 0;
}

.flip-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(198, 40, 40, 0.95);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.product-card:hover .flip-indicator {
    opacity: 1;
}

/* Back Face */
.product-card-back {
    background: linear-gradient(135deg, #FFF8F0 0%, #F5E6D3 100%);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.product-info-back {
    width: 100%;
}

.product-info-back .product-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-red);
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-red);
}

.product-info-back .product-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.product-info-back .product-detail-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.product-info-back .months-calendar {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    border-top: none;
}

.no-products {
    text-align: center;
    color: var(--text-gray);
    font-style: italic;
    padding: 4rem 2rem;
    font-size: 1.1rem;
}

/* ===========================
   AUTH & FORMS - Professional Style avec thème beige/rouge
   =========================== */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    max-width: 480px;
    width: 100%;
    border: 2px solid var(--border-light);
    backdrop-filter: blur(10px);
}

.auth-title {
    text-align: center;
    color: var(--dark-red);
    margin-bottom: 2.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.auth-form {
    margin-bottom: 2rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
}

.auth-footer a {
    color: var(--primary-red);
    font-weight: 500;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: var(--dark-red);
}

/* Form Elements - Enhanced */
.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.95rem 1.25rem;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.1);
}

.form-control:hover {
    border-color: var(--light-red);
}

.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
}

/* ===========================
   BUTTONS - Premium Design
   =========================== */
.btn {
    display: inline-block;
    padding: 0.95rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: linear-gradient(135deg, #28A745 0%, #20963D 100%);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-warning {
    background: linear-gradient(135deg, #FFA726 0%, #FB8C00 100%);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: linear-gradient(135deg, #EF5350 0%, #E53935 100%);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-gray);
    color: var(--text-dark);
    border: 2px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--border-light);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

/* ===========================
   ADMIN SECTION - Modern Dashboard avec thème rouge/beige
   =========================== */
.admin-container {
    padding: 3rem 0 5rem;
    min-height: calc(100vh - 72px);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.admin-header h1 {
    color: var(--dark-red);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.admin-table-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: var(--gradient-primary);
    color: var(--white);
}

.admin-table th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.admin-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: var(--transition);
}

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

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.table-image img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.no-image-small {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1.5rem;
}

.table-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-fruit {
    background: linear-gradient(135deg, #FFE0B2 0%, #FFCC80 100%);
    color: #E65100;
}

.badge-legume {
    background: linear-gradient(135deg, #F5E6D3 0%, #D4C5B0 100%);
    color: var(--dark-red);
}

.no-data {
    text-align: center;
    color: var(--text-gray);
    font-style: italic;
    padding: 3rem;
}

/* ===========================
   FORM CONTAINER - Enhanced avec thème beige/rouge
   =========================== */
.form-container {
    padding: 3rem 0 5rem;
    min-height: calc(100vh - 72px);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.form-header h1 {
    color: var(--dark-red);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.product-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

.current-image {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-beige);
    border-radius: 12px;
}

.current-image label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.current-image img {
    max-width: 250px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

/* ===========================
   FOOTER - Professional avec thème panda/lanternes
   =========================== */
footer {
    background: var(--charcoal);
    color: var(--white);
    text-align: center;
    padding: 2.5rem 0;
    margin-top: auto;
    border-top: 4px solid var(--primary-red);
    box-shadow: 0 -2px 12px rgba(198, 40, 40, 0.2);
}

.footer-content {
    text-align: center;
    color: var(--text-light);
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-light);
    margin: 0 15px;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-content p {
    margin: 8px 0;
    font-size: 0.95rem;
}

.footer-address {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-credit {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===========================
   MONTHS SELECTOR (Admin Forms) - Thème rouge/beige
   =========================== */
.months-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-beige);
    border-radius: 12px;
    border: 2px solid var(--border-light);
}

.month-checkbox {
    position: relative;
}

.month-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.month-label {
    display: block;
    padding: 0.75rem 1rem;
    text-align: center;
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    user-select: none;
}

.month-checkbox input[type="checkbox"]:checked + .month-label {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.month-checkbox input[type="checkbox"]:hover + .month-label {
    border-color: var(--light-red);
    transform: translateY(-1px);
}

.month-checkbox input[type="checkbox"]:focus + .month-label {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* ===========================
   MONTHS CALENDAR (Frontend Display) - Thème rouge/beige
   =========================== */
.months-calendar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.month-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    background: var(--bg-beige);
    color: var(--text-light);
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: default;
}

.month-badge.available {
    background: linear-gradient(135deg, #C8E6C9 0%, #A5D6A7 100%);
    color: #1B5E20;
    border-color: #66BB6A;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.2);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 2px 6px rgba(76, 175, 80, 0.2);
    }
    50% {
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    }
}

.month-badge.available:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* ===========================
   MONTHS DISPLAY (Admin Table) - Thème rouge/beige
   =========================== */
.months-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.month-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    background: var(--bg-beige);
    color: var(--text-light);
    border: 2px solid var(--border-light);
    transition: var(--transition);
}

.month-mini.active {
    background: var(--gradient-light);
    color: var(--white);
    border-color: var(--light-red);
    box-shadow: 0 2px 6px rgba(198, 40, 40, 0.3);
}

.month-mini:hover {
    transform: scale(1.15);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .category-selector {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-card {
        height: 240px;
    }

    .category-name {
        font-size: 2rem;
    }

    .category-icon {
        font-size: 3rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .category-title {
        font-size: 2rem;
    }

    .nav-menu {
        gap: 1.5rem;
        font-size: 0.9rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-table-wrapper {
        overflow-x: auto;
    }

    .admin-table {
        font-size: 0.85rem;
        min-width: 800px;
    }

    .table-actions {
        flex-direction: column;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .auth-card {
        padding: 2.5rem 2rem;
    }

    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .navbar .container {
        height: 64px;
    }

    .nav-brand a {
        font-size: 1.25rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .category-title {
        font-size: 1.75rem;
    }

    .flash-messages {
        right: 12px;
        left: 12px;
        max-width: none;
    }
}

/* ===========================
   LOADING ANIMATION
   =========================== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* ===========================
   SCROLLBAR STYLING - Thème rouge
   =========================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--light-red);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red);
}

/* ===========================
   SELECTION STYLING - Thème rouge
   =========================== */
::selection {
    background: var(--light-red);
    color: var(--white);
}

::-moz-selection {
    background: var(--light-red);
    color: var(--white);
}
