:root {
    --primary: #0a0e17;
    --secondary: #151b28;
    --accent: #d4a017;
    --accent-light: #f0c040;
    --accent2: #2a6f97;
    --gold: #e6b800;
    --gold-dark: #b8860b;
    --success: #2d8a4e;
    --warning: #e67e22;
    --danger: #c0392b;
    --info: #3498db;
    --light: #f0f3f8;
    --dark: #1a1f2e;
    --white: #ffffff;
    --bg: #0a0e17;
    --card-bg: #151b28;
    --card-border: #2a3344;
    --input-bg: #1a1f2e;
    --input-border: #d4a017;
    --text-muted: #8a94a6;
    --text-primary: #f0f3f8;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
    --shadow: 0 4px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 32px rgba(0,0,0,0.5);
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-theme {
    --primary: #f5f7fa;
    --secondary: #e8ecf1;
    --accent: #d4a017;
    --accent-light: #e6b800;
    --accent2: #2a6f97;
    --gold: #b8860b;
    --gold-dark: #8b6914;
    --success: #2d8a4e;
    --warning: #e67e22;
    --danger: #c0392b;
    --info: #2980b9;
    --light: #1a1f2e;
    --dark: #e8ecf1;
    --white: #1a1f2e;
    --bg: #f5f7fa;
    --card-bg: #ffffff;
    --card-border: #d1d5db;
    --input-bg: #f8f9fa;
    --input-border: #d4a017;
    --text-muted: #6b7280;
    --text-primary: #1a1f2e;
}

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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ==================== ANIMATIONS ==================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.fade-up { animation: fadeUp 0.9s cubic-bezier(0.2, 0.9, 0.3, 1) forwards; }
.fade-left { animation: fadeLeft 0.9s cubic-bezier(0.2, 0.9, 0.3, 1) forwards; }
.fade-right { animation: fadeRight 0.9s cubic-bezier(0.2, 0.9, 0.3, 1) forwards; }
.scale-in { animation: scaleIn 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) forwards; }

/* ==================== LANDING PAGE ==================== */
.landing-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
}
.landing-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(212,160,23,0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Header avec boutons sur la même ligne */
.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    background: rgba(21, 27, 40, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--card-border);
    gap: 1rem;
}
body.light-theme .landing-header { background: rgba(255, 255, 255, 0.95); }

.landing-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.landing-logo img {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    object-fit: cover;
    transition: var(--transition);
}
.landing-logo img:hover { transform: scale(1.05); }
.landing-logo h2 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold) 0%, var(--accent-light) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation - boutons sur une ligne horizontale */
.landing-nav {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
}

/* Landing Buttons */
.landing-btn {
    padding: 0.75rem 1.8rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
    white-space: nowrap;
}
.landing-btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}
.landing-btn-outline:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.landing-btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: var(--primary);
}
.landing-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    padding: 4rem 5rem;
    align-items: center;
    min-height: calc(100vh - 80px);
}
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--gold) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}
.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(212, 160, 23, 0.1);
    border-radius: var(--radius);
    transition: var(--transition);
}
.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(212, 160, 23, 0.2);
}
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
}
.stat-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero-image img {
    max-width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Features Section */
.features-section, .gallery-section, .testimonials-section, .faq-section, .pricing-section, .cta-section {
    padding: 4rem 5rem;
}
.features-section { background: var(--card-bg); }
.gallery-section { background: linear-gradient(135deg, var(--secondary), var(--primary)); }
.testimonials-section { background: var(--primary); }
.faq-section { background: var(--card-bg); }
.pricing-section { background: var(--primary); }
.cta-section { background: linear-gradient(135deg, var(--accent), var(--gold)); text-align: center; color: var(--primary); }

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
    font-weight: 800;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    background: var(--primary);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    transition: var(--transition);
    text-align: center;
}
.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}
.feature-card i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}
.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==================== GALERIE SLIDER ==================== */
.gallery-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
}
.gallery-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 1rem;
}
.gallery-slide {
    flex: 0 0 calc(33.333% - 0.67rem);
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--gold);
}
@media (max-width: 900px) { .gallery-slide { flex: 0 0 calc(50% - 0.5rem); } }
@media (max-width: 600px) { .gallery-slide { flex: 0 0 100%; } }
.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.gallery-slide:hover img { transform: scale(1.1); }
.gallery-slide .overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1rem;
    transition: var(--transition);
    text-align: center;
    font-weight: 600;
}
.gallery-slide:hover .overlay { bottom: 0; }
.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}
.gallery-nav button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--gold);
    color: var(--gold);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}
.gallery-nav button:hover {
    background: var(--gold);
    color: var(--primary);
    transform: scale(1.1);
}
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--card-border);
    cursor: pointer;
    transition: var(--transition);
}
.gallery-dot.active {
    background: var(--gold);
    width: 25px;
    border-radius: 10px;
}

/* Testimonials Slider */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}
.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}
.testimonial-card {
    flex: 0 0 100%;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 0 0.5rem;
    border: 1px solid var(--card-border);
    text-align: center;
}
.testimonial-card .stars {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.testimonial-card .author {
    font-weight: 700;
    color: var(--text-primary);
}
.testimonial-card .position {
    font-size: 0.8rem;
    color: var(--gold);
}
.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.testimonial-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--gold);
    color: var(--gold);
    cursor: pointer;
    transition: var(--transition);
}
.testimonial-nav button:hover {
    background: var(--gold);
    color: var(--primary);
}
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--card-border);
    cursor: pointer;
    transition: var(--transition);
}
.testimonial-dot.active {
    background: var(--gold);
    width: 20px;
    border-radius: 10px;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
}
.faq-item {
    background: var(--primary);
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    overflow: hidden;
}
.faq-question {
    padding: 1rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: space-between;
    transition: var(--transition);
}
.faq-question:hover { background: rgba(212, 160, 23, 0.05); }
.faq-question i:first-child { color: var(--gold); }
.faq-question i:last-child { transition: transform 0.3s; }
.faq-answer {
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}
.faq-item.open .faq-answer { padding: 1rem 1.2rem; max-height: 200px; }
.faq-item.open .faq-question i:last-child { transform: rotate(180deg); }

/* Pricing */
.pricing-toggle {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}
.period-btn {
    padding: 0.5rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.period-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: var(--primary);
    border-color: var(--accent);
}
.period-btn .discount {
    background: var(--success);
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 20px;
    font-size: 0.65rem;
    margin-left: 0.25rem;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.pricing-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 2px solid transparent;
    text-align: center;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}
.pricing-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.pricing-card.popular {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(212,160,23,0.05) 100%);
}
.pricing-card .badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: var(--primary);
    padding: 0.2rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.pricing-card .price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    margin: 0.5rem 0;
}
.pricing-card .price small { font-size: 0.8rem; color: var(--text-muted); }
.pricing-features {
    list-style: none;
    margin: 1rem 0;
    text-align: left;
    flex: 1;
}
.pricing-features li {
    padding: 0.4rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pricing-features i { color: var(--success); width: 18px; }

/* CTA Section */
.cta-section h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.cta-section p { margin-bottom: 1.5rem; opacity: 0.9; }
.cta-section .landing-btn-primary { background: var(--primary); color: var(--gold); }

/* Footer */
.landing-footer {
    background: var(--primary);
    padding: 2rem 3rem;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-section h4 { color: var(--gold); margin-bottom: 1rem; font-size: 1rem; }
.footer-section p, .footer-section a { font-size: 0.85rem; line-height: 1.8; }
.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    transition: var(--transition);
}
.footer-section a:hover { color: var(--gold); transform: translateX(5px); }
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}
.social-links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--gold);
    color: var(--primary);
    transform: translateY(-3px);
}
.footer-bottom {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--card-border);
    text-align: center;
    font-size: 0.8rem;
}

/* ==================== MODAL AUTHENTIFICATION ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.active { display: flex; animation: fadeUp 0.3s ease; }
.modal {
    background: var(--card-bg);
    border: 1px solid var(--gold);
    border-radius: 24px;
    padding: 1.5rem;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
}
.modal.large { max-width: 800px; }
.modal h3 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.auth-tabs {
    display: flex;
    background: var(--primary);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--gold);
}
.auth-tab {
    flex: 1;
    padding: 0.8rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 16px;
}
.auth-tab.active {
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: var(--primary);
}
.auth-form { padding: 0.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--input-bg);
    border: 2px solid var(--gold);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}
.form-group input:focus, .form-group select:focus {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.3);
}
.auth-btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    border: none;
    border-radius: 12px;
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
}
.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.05);
}
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.auth-footer strong { color: var(--gold); }

/* ==================== MENTIONS LÉGALES ==================== */
.legal-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}
.legal-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding: 0.5rem;
    border-bottom: 1px solid var(--card-border);
}
.legal-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gold);
    min-width: 35px;
}
.legal-text {
    flex: 1;
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.9rem;
}
.legal-text strong { color: var(--gold); }

/* ==================== APP CONTAINER ==================== */
.app-container { display: none; }
.app-container.authenticated { display: block; }

/* Header APP */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, #1e3a5f 100%);
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.company-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}
.company-logo:hover { transform: scale(1.05); }
.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.header h1 {
    font-size: 1.2rem;
    font-weight: 700;
}
.header h1 span:first-child {
    background: linear-gradient(135deg, var(--gold) 0%, var(--accent-light) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.header h1 span:last-child {
    background: linear-gradient(135deg, #e67e22 0%, #c0392b 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.7rem;
    margin-left: 0.3rem;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.theme-toggle {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.theme-toggle:hover {
    background: var(--gold);
    color: var(--primary);
}
.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gold);
    cursor: pointer;
    transition: var(--transition);
}
.user-info:hover { border-color: var(--accent-light); }
.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.user-name { font-size: 0.8rem; font-weight: 500; }
.user-role { font-size: 0.65rem; color: var(--gold); }
.btn-logout {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    transition: var(--transition);
}
.btn-logout:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}
.header-date {
    color: var(--text-muted);
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    background: var(--card-bg);
    border-bottom: 1px solid var(--gold);
    overflow-x: auto;
    position: sticky;
    top: 60px;
    z-index: 40;
    padding: 0 0.5rem;
    gap: 0.25rem;
}
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tab {
    padding: 0.7rem 1rem;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.nav-tab:hover {
    color: var(--text-primary);
    background: rgba(212, 160, 23, 0.05);
}
.nav-tab.active {
    color: var(--gold);
    background: rgba(212, 160, 23, 0.1);
}
.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--accent) 100%);
}
.nav-tab .badge {
    background: var(--danger);
    color: white;
    border-radius: 9999px;
    padding: 0.1rem 0.4rem;
    font-size: 0.6rem;
    margin-left: 0.2rem;
}

/* Main Content */
.main-content {
    padding: 1rem;
    max-width: 1600px;
    margin: 0 auto;
}
.tab-content {
    display: none;
    animation: fadeUp 0.3s ease-out;
}
.tab-content.active { display: block; }

/* ==================== INPUTS GÉNÉRAUX ==================== */
input, select, textarea, .date-filter-beautiful input, .date-filter-beautiful select,
.search-bar input, .search-bar select, .history-filters select, .history-filters input {
    background: var(--input-bg);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: var(--transition);
    outline: none;
}
input:focus, select:focus, textarea:focus,
.date-filter-beautiful input:focus, .date-filter-beautiful select:focus {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.2);
}

/* Date Filter Beautiful */
.date-filter-beautiful {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--gold);
}
.date-filter-beautiful label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
}
.stat-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.stat-card i {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
}
.stat-card .stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-card .stat-detail {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Search Bar */
.search-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    transition: var(--transition);
}
.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--gold)); color: var(--primary); }
.btn-success { background: linear-gradient(135deg, var(--success), #3aaf6e); color: white; }
.btn-info { background: linear-gradient(135deg, var(--accent2), #3a8fbb); color: white; }
.btn-warning { background: linear-gradient(135deg, var(--warning), #f39c12); color: white; }
.btn-danger { background: linear-gradient(135deg, var(--danger), #e74c3c); color: white; }
.btn-outline { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn-outline.active { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.btn-sm { padding: 0.25rem 0.6rem; font-size: 0.7rem; }

/* Tables */
.table-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1rem;
    overflow-x: auto;
}
.table-header {
    padding: 0.75rem 1rem;
    background: rgba(42, 111, 151, 0.05);
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.table-header h3 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}
th {
    background: var(--primary);
    padding: 0.7rem 0.8rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}
td {
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid var(--card-border);
    font-size: 0.8rem;
}
tr:hover { background: rgba(212, 160, 23, 0.03); }

/* Inventory Table */
.inventory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.inventory-table th, .inventory-table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--card-border);
}
.inventory-table th {
    background: var(--primary);
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}
.inventory-table th:nth-child(1) { text-align: center; }
.inventory-table th:nth-child(2) { text-align: center; }
.inventory-table th:nth-child(3) { text-align: left; }
.inventory-table th:nth-child(4) { text-align: left; }
.inventory-table th:nth-child(5) { text-align: center; }
.inventory-table th:nth-child(6) { text-align: right; }
.inventory-table th:nth-child(7) { text-align: right; }
.inventory-table th:nth-child(8) { text-align: right; }
.inventory-table th:nth-child(9) { text-align: right; }
.inventory-table th:nth-child(10) { text-align: center; }
.inventory-table th:nth-child(11) { text-align: center; }
.inventory-table tbody tr:hover {
    background: rgba(212, 160, 23, 0.05);
    transition: background 0.2s;
}

/* Badges */
.badge-local {
    background: rgba(45, 138, 78, 0.15);
    color: var(--success);
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.65rem;
}
.badge-importe {
    background: rgba(42, 111, 151, 0.15);
    color: #5dade2;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.65rem;
}

/* Stock Status */
.stock-ok { color: var(--success); font-weight: 600; }
.stock-low { color: var(--warning); font-weight: 600; animation: pulse 1.5s infinite; }
.stock-critical { color: var(--danger); font-weight: 700; animation: pulse 1s infinite; }

/* Article Photo */
.article-photo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition);
}
.article-photo:hover { transform: scale(1.1); }

/* Sale Panel */
.sale-panel {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
}
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding: 0.25rem;
}
.item-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}
.item-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.item-card.selected {
    border-color: var(--accent);
    background: rgba(212, 160, 23, 0.08);
    box-shadow: 0 0 0 2px rgba(212,160,23,0.2);
}
.item-card.out-of-stock {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(0.3);
}
.item-card .item-photo {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    object-fit: cover;
}
.item-card .item-info { flex: 1; }
.item-card .item-name {
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}
.item-card .item-price {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
}
.item-card .item-stocks {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Cart Panel */
.cart-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1rem;
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
}
.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.cart-header h3 {
    color: var(--gold);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.cart-navigation {
    display: flex;
    gap: 0.25rem;
}
.cart-nav-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--card-border);
    background: var(--primary);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}
.cart-nav-btn:hover {
    background: var(--accent);
    color: var(--primary);
    transform: scale(1.05);
}
.cart-indicator { font-size: 0.7rem; color: var(--text-muted); }
.cart-icon-btn {
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.cart-icon-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}
.server-selector, .cart-date-selector {
    padding: 0.75rem;
    background: rgba(42, 111, 151, 0.08);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    border: 1px solid var(--gold);
}
.server-selector label, .cart-date-selector label {
    font-size: 0.7rem;
    display: block;
    margin-bottom: 0.3rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.server-selector select, .cart-date-selector input {
    width: 100%;
    padding: 0.5rem;
    background: var(--input-bg);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.8rem;
}
.cart-items-container {
    flex: 1;
    overflow-y: auto;
    max-height: 280px;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--card-border);
    flex-wrap: wrap;
    gap: 0.3rem;
    font-size: 0.75rem;
}
.cart-item-info { flex: 1; min-width: 90px; }
.cart-item-name { font-weight: 600; }
.cart-item-detail { font-size: 0.6rem; color: var(--text-muted); }
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}
.cart-item-qty button {
    width: 26px;
    height: 26px;
    border: 1px solid var(--card-border);
    background: var(--primary);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}
.cart-item-qty button:hover {
    background: var(--accent);
    color: var(--primary);
}
.cart-item-vip {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}
.cart-item-vip button {
    width: 24px;
    height: 24px;
    border: 1px solid var(--card-border);
    background: var(--primary);
    border-radius: 6px;
    cursor: pointer;
}
.cart-item-vip span {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    color: var(--gold);
}
.cart-item-total {
    color: var(--gold);
    font-weight: 700;
    min-width: 80px;
    text-align: right;
    font-size: 0.8rem;
}
.cart-item-paid input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--success);
}
.cart-totals {
    padding-top: 0.75rem;
    border-top: 2px solid var(--card-border);
    margin-top: 0.5rem;
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-size: 0.8rem;
}
.cart-total-row.grand-total {
    font-size: 1rem;
    font-weight: 800;
    color: var(--gold);
    border-top: 2px solid var(--accent);
    margin-top: 0.3rem;
    padding-top: 0.5rem;
}
.cart-total-all {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--card-border);
}

/* Payment Options */
.payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1rem 0;
}
.payment-option {
    background: var(--primary);
    border: 2px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}
.payment-option:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    background: rgba(212, 160, 23, 0.05);
}
.payment-option i {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 0.3rem;
}
.payment-option span {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}
.modal-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.2rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}
.settings-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1rem;
}
.settings-card h3 {
    color: var(--gold);
    margin-bottom: 0.8rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.setting-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--card-border);
    align-items: center;
    font-size: 0.85rem;
}
.setting-row input {
    width: 80px;
    padding: 0.4rem;
    background: var(--input-bg);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-align: center;
}
.logo-preview {
    width: 70px;
    height: 70px;
    border: 2px dashed var(--gold);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 0;
    overflow: hidden;
    background: var(--primary);
}
.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Kitchen Orders */
.kitchen-orders-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.kitchen-order-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 0.8rem;
    border-left: 4px solid var(--warning);
    transition: var(--transition);
}
.kitchen-order-card.status-preparing { border-left-color: var(--info); }
.kitchen-order-card.status-ready { border-left-color: var(--success); }
.kitchen-order-card.status-served { border-left-color: var(--text-muted); opacity: 0.7; }
.kitchen-order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.8rem;
}
.kitchen-order-items {
    margin: 0.5rem 0;
    padding-left: 1rem;
}
.kitchen-order-items li {
    padding: 0.2rem 0;
    color: var(--text-muted);
    font-size: 0.75rem;
}
.kitchen-order-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Help Text */
.help-text {
    margin-top: 1rem;
    padding: 0.8rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
    font-size: 0.75rem;
}
.help-text i { color: var(--accent); margin-right: 0.5rem; }
.help-text strong { color: var(--gold); }

/* Alerts Grid */
.alerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 0.75rem;
}
.alert-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 0.8rem;
    border-left: 4px solid var(--warning);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.alert-card.critical { border-left-color: var(--danger); }
.alert-photo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}
.alert-info { flex: 1; }
.alert-title { font-weight: 600; font-size: 0.85rem; }
.alert-detail { font-size: 0.7rem; color: var(--text-muted); }

/* History */
.history-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.history-sale {
    padding: 0.8rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    flex-wrap: wrap;
    gap: 0.5rem;
}
.history-sale:hover {
    border-color: var(--gold);
    background: rgba(212, 160, 23, 0.05);
}
.history-sale-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.history-sale-actions button {
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 2000;
}
.toast {
    background: var(--card-bg);
    border-left: 4px solid var(--success);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.info { border-left-color: var(--info); }

/* Receipt */
.receipt-small {
    background: white;
    color: #1e293b;
    padding: 10px;
    border-radius: 4px;
    font-size: 9px;
    width: 80mm;
    margin: 0 auto;
    font-family: 'Courier New', monospace;
}
.receipt-small .receipt-logo {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 30px;
    height: 30px;
}
.receipt-small h3 {
    font-size: 10px;
    margin-left: 40px;
    text-align: center;
}
.receipt-small p {
    font-size: 7px;
    text-align: center;
    margin: 2px 0;
}
.receipt-small table { width: 100%; margin-top: 5px; }
.receipt-small th, .receipt-small td { font-size: 7px; padding: 2px 0; }
.receipt-small .total {
    font-weight: bold;
    border-top: 1px dashed #999;
    margin-top: 5px;
    padding-top: 5px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}
.empty-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Editable Input */
.editable-input {
    width: 65px;
    padding: 0.3rem;
    background: var(--input-bg);
    border: 1px solid var(--gold);
    color: var(--text-primary);
    border-radius: 6px;
    text-align: center;
}

/* Task Board */
.task-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}
.task-column {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1rem;
}
.task-column h4 {
    color: var(--gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.task-card {
    background: var(--primary);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--accent);
}
.task-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.task-title { font-weight: 600; font-size: 0.85rem; }
.priority-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 20px;
}
.priority-high { background: var(--danger); color: white; }
.priority-medium { background: var(--warning); color: white; }
.priority-low { background: var(--success); color: white; }
.task-category {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.task-description {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.task-assigned {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
}
.unassigned { color: var(--warning); }
.task-actions {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.task-actions select, .task-actions button {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
}

/* Shift Board */
.shift-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.shift-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1rem;
}
.shift-card h4 { color: var(--gold); margin-bottom: 0.5rem; }
.shift-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.shift-server {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid var(--card-border);
}
.shift-server:last-child { border-bottom: none; }
.server-name { font-weight: 500; }
.server-status { font-size: 0.7rem; }
.status-active { color: var(--success); }
.status-inactive { color: var(--danger); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .sale-panel { grid-template-columns: 1fr; }
    .cart-panel { position: relative; top: auto; max-height: none; }
    .task-board { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
    .hero-section { grid-template-columns: 1fr; text-align: center; padding: 2rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-stats { justify-content: center; }
    .hero-image { display: none; }
    .hero-buttons { justify-content: center; }
    .features-section, .gallery-section, .testimonials-section, .faq-section, .pricing-section, .cta-section { padding: 2rem 1.5rem; }
    .header h1 { font-size: 1.1rem; }
    .header-date { display: none; }
    .nav-tab { padding: 0.6rem 0.8rem; font-size: 0.7rem; }
    .main-content { padding: 0.75rem; }
    .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .landing-header {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    .landing-nav {
        justify-content: center;
    }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .item-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .form-row { grid-template-columns: 1fr; }
    .payment-options { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
    .alerts-grid { grid-template-columns: 1fr; }
    .history-filters { flex-direction: column; }
    .date-filter-beautiful { flex-direction: column; align-items: stretch; }
}


/* ==================== STYLES AMÉLIORÉS POUR LES TÂCHES ==================== */
.task-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.task-column {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.task-column h4 {
    color: var(--gold);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.task-column h4 i {
    font-size: 1rem;
}

.task-card {
    background: var(--primary);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    margin-bottom: 0.85rem;
    border-left: 3px solid var(--accent);
    transition: var(--transition);
}

.task-card:hover {
    transform: translateX(3px);
    box-shadow: var(--shadow-sm);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.task-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.priority-badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-weight: 600;
}

.priority-high { background: var(--danger); color: white; }
.priority-medium { background: var(--warning); color: white; }
.priority-low { background: var(--success); color: white; }

.task-category {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.task-category i {
    color: var(--gold);
    width: 14px;
}

.task-description {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.task-assigned {
    font-size: 0.65rem;
    margin-bottom: 0.6rem;
    padding: 0.2rem 0.4rem;
    background: rgba(212, 160, 23, 0.1);
    border-radius: 4px;
    display: inline-block;
}

.task-assigned i {
    color: var(--gold);
    margin-right: 0.2rem;
}

.unassigned {
    color: var(--warning);
}

.task-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.task-actions select, .task-actions button {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* ==================== STYLES AMÉLIORÉS POUR ACHAT BOISSONS ==================== */
.purchase-modal-content {
    max-height: 70vh;
    overflow-y: auto;
}

.purchase-item-row {
    display: grid;
    grid-template-columns: 2fr 0.8fr 1fr 1fr;
    gap: 0.5rem;
    align-items: center;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    margin-bottom: 0.4rem;
    transition: var(--transition);
}

.purchase-item-row:hover {
    background: rgba(212, 160, 23, 0.05);
}

.purchase-item-row > span:first-child {
    font-weight: 500;
    font-size: 0.8rem;
}

.purchase-item-row > span:nth-child(2) {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
}

.purchase-item-row input {
    width: 70px;
    padding: 0.4rem;
    background: var(--input-bg);
    border: 1px solid var(--gold);
    color: var(--text-primary);
    border-radius: 6px;
    text-align: center;
}

.purchase-item-row input:focus {
    outline: none;
    border-color: var(--accent-light);
}

.purchase-item-row > span:last-child {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    text-align: right;
}

.purchase-total {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 2px solid var(--gold);
    text-align: right;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
}

/* ==================== STYLES AMÉLIORÉS POUR TRANSFERT EN MASSE ==================== */
.bulk-transfer-content {
    max-height: 60vh;
    overflow-y: auto;
}

.bulk-item-row {
    display: grid;
    grid-template-columns: 2fr 0.8fr 0.5fr;
    gap: 0.5rem;
    align-items: center;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    margin-bottom: 0.4rem;
    transition: var(--transition);
}

.bulk-item-row:hover {
    background: rgba(212, 160, 23, 0.05);
}

.bulk-item-row > span:first-child {
    font-weight: 500;
    font-size: 0.8rem;
}

.bulk-item-row input {
    width: 70px;
    padding: 0.4rem;
    background: var(--input-bg);
    border: 1px solid var(--gold);
    color: var(--text-primary);
    border-radius: 6px;
    text-align: center;
}

.bulk-item-row input:focus {
    outline: none;
    border-color: var(--accent-light);
}

.bulk-item-row > span:last-child {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.bulk-transfer-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

