/**
 * PROSL - MAIN STYLESHEET
 * Version: 2.0 (Janvier 2026)
 * 
 * Design B2B professionnel avec touches modernes
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Primary Colors */
    --prosl-primary: #0066CC;
    --prosl-primary-dark: #004C99;
    --prosl-primary-light: #E6F0FA;
    
    /* Accent Colors */
    --prosl-accent: #FF6B00;
    --prosl-accent-light: #FFF3E6;
    
    /* Neutral Colors */
    --prosl-dark: #1a1a2e;
    --prosl-text: #2d3436;
    --prosl-muted: #636e72;
    --prosl-light: #f8f9fa;
    --prosl-border: #dee2e6;
    --prosl-white: #ffffff;
    
    /* Status Colors */
    --prosl-success: #00b894;
    --prosl-warning: #fdcb6e;
    --prosl-danger: #e74c3c;
    --prosl-info: #74b9ff;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* ============================================
   BASE STYLES
   ============================================ */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--prosl-text);
    background-color: var(--prosl-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 600;
    color: var(--prosl-dark);
}

a {
    color: var(--prosl-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--prosl-primary-dark);
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card {
    background: var(--prosl-white);
    border: 1px solid var(--prosl-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--prosl-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Product Image */
.card-img-wrapper {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.card-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Brand Label */
.brand-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--prosl-primary);
    margin-bottom: 0.25rem;
}

/* Product Title */
.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--prosl-dark);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

/* Product SKU */
.product-sku {
    font-size: 0.75rem;
    color: var(--prosl-muted);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

/* Price */
.price-main {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--prosl-dark);
    line-height: 1;
}

.price-main span {
    font-size: 0.9rem;
}

/* ============================================
   STOCK STATUS BADGES
   ============================================ */
.badge-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 2s infinite;
}

.badge-dot.bg-stock {
    background-color: var(--prosl-success);
    box-shadow: 0 0 0 2px rgba(0, 184, 148, 0.2);
}

.badge-dot.bg-drop {
    background-color: var(--prosl-accent);
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.2);
}

.badge-dot.bg-out {
    background-color: var(--prosl-danger);
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
    animation: none;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn-google {
    background: var(--prosl-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.btn-google:hover {
    background: var(--prosl-primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-google:active {
    transform: translateY(0);
}

.btn-accent {
    background: var(--prosl-accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.btn-accent:hover {
    background: #e65c00;
    color: white;
}

/* ============================================
   FORMS
   ============================================ */
.form-control, .form-select {
    border: 1px solid var(--prosl-border);
    border-radius: var(--radius-md);
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    border-color: var(--prosl-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.input-minimal {
    border: 1px solid var(--prosl-border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 500;
}

/* ============================================
   CARDS & CONTAINERS
   ============================================ */
.card {
    border: 1px solid var(--prosl-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card-header {
    background: var(--prosl-white);
    border-bottom: 1px solid var(--prosl-border);
    font-weight: 600;
}

/* ============================================
   CHECKOUT SPECIFIC
   ============================================ */
.checkout-step {
    padding: 1.5rem;
    background: var(--prosl-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--prosl-border);
    margin-bottom: 1.5rem;
}

.checkout-step-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.checkout-step-number {
    width: 32px;
    height: 32px;
    background: var(--prosl-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 0.75rem;
}

.checkout-step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--prosl-dark);
    margin: 0;
}

/* VAT Status */
.vat-status {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vat-status.valid {
    background: rgba(0, 184, 148, 0.1);
    color: var(--prosl-success);
    border: 1px solid rgba(0, 184, 148, 0.2);
}

.vat-status.invalid {
    background: rgba(231, 76, 60, 0.1);
    color: var(--prosl-danger);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.vat-status.checking {
    background: rgba(116, 185, 255, 0.1);
    color: var(--prosl-info);
    border: 1px solid rgba(116, 185, 255, 0.2);
}

/* ============================================
   ORDER SUMMARY
   ============================================ */
.order-summary {
    background: var(--prosl-white);
    border: 1px solid var(--prosl-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.order-summary-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--prosl-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--prosl-border);
}

.order-line {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.order-line.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--prosl-dark);
    border-top: 2px solid var(--prosl-dark);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

/* ============================================
   ALERTS & NOTIFICATIONS
   ============================================ */
.alert {
    border-radius: var(--radius-md);
    border: none;
    padding: 1rem 1.25rem;
}

.alert-success {
    background: rgba(0, 184, 148, 0.1);
    color: #00725a;
}

.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
}

.alert-warning {
    background: rgba(253, 203, 110, 0.2);
    color: #b8860b;
}

.alert-info {
    background: rgba(116, 185, 255, 0.1);
    color: #0066cc;
}

/* ============================================
   CONFIRMATION PAGE
   ============================================ */
.confirmation-box {
    background: linear-gradient(135deg, var(--prosl-primary-light) 0%, #fff 100%);
    border: 2px solid var(--prosl-primary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background: var(--prosl-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
}

.payment-box {
    background: #fffbf0;
    border: 2px dashed var(--prosl-accent);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 1rem;
    }
    
    .price-main {
        font-size: 1.25rem;
    }
    
    .checkout-step {
        padding: 1rem;
    }
}

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

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

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--prosl-border);
    border-top-color: var(--prosl-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   FOOTER
   ============================================ */
.prosl-footer {
    background: var(--prosl-white);
    border-top: 1px solid var(--prosl-border);
}

.prosl-footer a {
    color: var(--prosl-muted);
    font-size: 0.85rem;
}

.prosl-footer a:hover {
    color: var(--prosl-primary);
}
