/* 
 * WEEGOSOFT - Charte Graphique Unique & Premium
 * Couleur de marque principale : Bleu
 */

:root {
    --brand-primary: #2563eb;         /* Bleu royal */
    --brand-primary-hover: #1d4ed8;   /* Bleu survol */
    --brand-primary-light: rgba(37, 99, 235, 0.12);
    --brand-primary-border: rgba(37, 99, 235, 0.25);
    
    --brand-accent: #0ea5e9;          /* Bleu ciel pour les gradients */
    --brand-gradient: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
    --brand-gradient-hover: linear-gradient(135deg, var(--brand-primary-hover) 0%, #0284c7 100%);
    --brand-shadow: rgba(37, 99, 235, 0.35);
}

/* Light Theme overrides */
body.light-theme {
    --brand-primary-light: rgba(37, 99, 235, 0.08);
}

/* ── Global Styles ────────────────────────────────────────────────────────── */

.gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brand-accent) !important;
}
body.light-theme .hero-badge {
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.15);
    color: var(--brand-primary) !important;
}

/* Boutons */
.btn-gradient {
    background: var(--brand-gradient) !important;
    border: none !important;
    color: #FFF !important;
    transition: all 0.25s ease !important;
}
.btn-gradient:hover {
    background: var(--brand-gradient-hover) !important;
    box-shadow: 0 8px 24px var(--brand-shadow) !important;
    transform: translateY(-2px);
    color: #FFF !important;
}

/* Surcharge des boutons primaires Bootstrap pour le SaaS */
.btn-primary {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #FFF !important;
}
.btn-primary:hover {
    background-color: var(--brand-primary-hover) !important;
    border-color: var(--brand-primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--brand-shadow) !important;
    color: #FFF !important;
}

/* Pricing Card Highlights */
.pricing-card.premium {
    background: rgba(37, 99, 235, 0.04) !important;
    border: 2px solid var(--brand-primary) !important;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08) !important;
}
.pricing-card.premium:hover {
    background: rgba(37, 99, 235, 0.06) !important;
}
.pricing-card.premium .btn-primary {
    background: var(--brand-gradient) !important;
    border: none !important;
}

/* Background radial */
.landing-wrapper {
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 100% 40%, rgba(14, 165, 233, 0.06) 0%, transparent 40%),
                #0b0f19 !important;
}
body.light-theme .landing-wrapper {
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
                #f8fafc !important;
}

/* Inputs focus states */
.register-input:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.btn-renew {
    background: var(--brand-gradient) !important;
    border: none !important;
    color: #FFF !important;
}
.btn-renew:hover {
    background: var(--brand-gradient-hover) !important;
    box-shadow: 0 8px 24px var(--brand-shadow) !important;
}

.text-secondary-link:hover {
    color: var(--brand-accent) !important;
}

/* Listes actives */
.list-group-item.active-feat {
    background: var(--brand-gradient) !important;
    color: #FFF !important;
    border-color: var(--brand-primary) !important;
}

/* Effets de survol généraux */
.hover-scale:hover {
    background: var(--brand-primary-light) !important;
    border-color: var(--brand-primary) !important;
}

.sector-badge:hover {
    background: var(--brand-primary-light) !important;
    border-color: var(--brand-primary) !important;
    box-shadow: 0 4px 12px var(--brand-shadow) !important;
}

/* Écrans de succès */
.success-screen .success-icon i {
    color: var(--brand-primary) !important;
}
.success-screen h3.text-success {
    color: var(--brand-primary) !important;
}

/* ── Mockups Framework ────────────────────────────────────────────────────── */
.mockup-container {
    background: #0f172a;
    border: 4px solid #334155;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    font-family: 'Outfit', 'Inter', sans-serif;
    color: #f8fafc;
    overflow: hidden;
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    font-size: 0.75rem;
    line-height: 1.4;
}

/* 1. POS Mockup */
.m-pos-header {
    background: #0b0f19;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    margin-bottom: 8px;
    font-weight: 700;
}
.m-pos-body {
    display: flex;
    gap: 8px;
}
.m-pos-products {
    width: 60%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.m-pos-prod-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.2s;
}
.m-pos-prod-card i {
    font-size: 1.35rem;
    display: block;
    margin-bottom: 4px;
}
.m-pos-cart {
    width: 40%;
    background: #0b0f19;
    border-radius: 6px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.68rem;
    min-height: 150px;
}
.m-pos-cart-items {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
    margin-bottom: 6px;
}
.m-pos-cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    color: #cbd5e1;
}
.m-pos-btn {
    background: var(--brand-primary);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-weight: 700;
    padding: 6px;
    width: 100%;
}

/* 2. KDS Mockup */
.m-kds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.m-kds-header {
    background: #0b0f19;
    padding: 4px 8px;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 8px;
    text-align: center;
}
.m-kds-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.m-kds-col {
    background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 6px;
    padding: 6px;
}
.m-kds-card {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    padding: 6px;
}
.m-kds-card.urgent { border-top: 3px solid #ef4444; }
.m-kds-card.progress { border-top: 3px solid #f97316; }
.m-kds-card.new { border-top: 3px solid var(--brand-primary); }
.m-kds-timer {
    font-weight: 800;
    float: right;
}
.m-kds-card.urgent .m-kds-timer { color: #ef4444; }
.m-kds-card.progress .m-kds-timer { color: #f97316; }
.m-kds-card.new .m-kds-timer { color: var(--brand-primary); }

/* 3. Plan de Salle Mockup */
.m-salle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 10px;
}
.m-salle-table {
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}
.m-salle-table.free {
    background: rgba(37, 99, 235, 0.1);
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
}
.m-salle-table.occupied {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid #ef4444;
    color: #ef4444;
}
.m-salle-table.billing {
    background: rgba(234, 179, 8, 0.1);
    border: 2px solid #eab308;
    color: #eab308;
}

/* 4. Stocks Mockup */
.m-stock-panel {
    background: #0b0f19;
    border-radius: 8px;
    padding: 8px;
}
.m-stock-header {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 6px;
    margin-bottom: 6px;
    font-weight: 700;
}
.m-stock-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.m-stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}
.m-stock-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.65rem;
}
.m-stock-badge.alert { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.m-stock-badge.ok { background: var(--brand-primary-light); color: var(--brand-primary); }

/* 5. Pressing Mockup */
.m-laundry-flow {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}
.m-laundry-step {
    flex: 1;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 6px;
    text-align: center;
}
.m-laundry-step.active {
    border-color: var(--brand-primary);
    background: var(--brand-primary-light);
}
.m-laundry-step i {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 4px;
}
.m-laundry-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 4px;
    font-weight: 700;
}
.m-laundry-badge.done { background: rgba(37, 99, 235, 0.15); color: var(--brand-primary); }
.m-laundry-badge.progress { background: rgba(242, 153, 74, 0.15); color: #f2994a; }

/* 6. Transport Mockup */
.m-bus-grid {
    background: #0b0f19;
    border-radius: 8px;
    padding: 10px;
}
.m-bus-seats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.m-bus-seat {
    aspect-ratio: 1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
}
.m-bus-seat.free { background: rgba(37,99,235,0.1); border: 1px solid var(--brand-primary); color: var(--brand-primary); }
.m-bus-seat.selected { background: var(--brand-primary); color: #fff; border: 1px solid var(--brand-primary); }
.m-bus-seat.occupied { background: #334155; color: #64748b; cursor: not-allowed; }

/* 7. WhatsApp Mockup */
.m-wa-chat {
    background: #0b141a;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-height: 160px;
    justify-content: space-between;
}
.m-wa-header {
    background: #202c33;
    padding: 6px 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.m-wa-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.m-wa-msg {
    background: #202c33;
    padding: 8px;
    border-radius: 8px;
    max-width: 85%;
    font-size: 0.68rem;
    align-self: flex-start;
}
.m-wa-msg.out {
    background: #005c4b;
    align-self: flex-end;
}

/* 8. PMS Planning Mockup */
.m-plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: #334155;
    border: 1px solid #334155;
    border-radius: 6px;
}
.m-plan-cell {
    background: #1e293b;
    padding: 6px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.m-plan-cell.header { font-weight: 700; background: #334155; }
.m-plan-bar {
    background: var(--brand-primary);
    color: #fff;
    grid-column: span 2;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

/* Light Theme overrides for mockups */
body.light-theme .mockup-container {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
body.light-theme .m-pos-header { background: #f1f5f9; border-bottom: 1px solid #e2e8f0; color: #0f172a; }
body.light-theme .m-pos-prod-card { background: #f8fafc; border-color: #e2e8f0 !important; color: #0f172a; }
body.light-theme .m-pos-prod-card:hover { background: #f1f5f9; }
body.light-theme .m-pos-cart { background: #f1f5f9; }
body.light-theme .m-pos-cart-item { color: #475569; }
body.light-theme .m-kds-card { background: #f8fafc; color: #0f172a; border-color: #cbd5e1; }
body.light-theme .m-kds-timer { color: #0f172a; }
body.light-theme .m-kds-card.urgent .m-kds-timer { color: #ef4444; }
body.light-theme .m-kds-card.progress .m-kds-timer { color: #f97316; }
body.light-theme .m-kds-card.new .m-kds-timer { color: var(--brand-primary); }
body.light-theme .m-stock-panel { background: #f8fafc; border: 1px solid #e2e8f0; }
body.light-theme .m-stock-header { color: #0f172a; border-bottom-color: #e2e8f0; }
body.light-theme .m-laundry-step { background: #f8fafc; border: 1px solid #e2e8f0; color: #0f172a; }
body.light-theme .m-bus-grid { background: #f8fafc; border: 1px solid #e2e8f0; }
body.light-theme .m-wa-chat { background: #efeae2; }
body.light-theme .m-plan-grid { background: #f1f5f9; }
body.light-theme .m-plan-cell { background: #ffffff; color: #0f172a; }
body.light-theme .m-plan-cell.header { background: #e2e8f0; }

/* Filter tabs (Odoo/SaaS style) */
.filter-tab {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #8b949e !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.9rem !important;
}
.filter-tab:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #FFF !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}
.filter-tab.active {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #FFF !important;
    box-shadow: 0 4px 15px var(--brand-shadow) !important;
}
body.light-theme .filter-tab {
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    color: #475569 !important;
}
body.light-theme .filter-tab:hover {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #0f172a !important;
}
body.light-theme .filter-tab.active {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #FFF !important;
}
