/* 
 * FreelancePricer - Styles principaux
 * Design: Glassmorphism moderne avec accents néon subtils
 */

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --bg-dark: #0f0f1a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.3);
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 20% -20%, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(139, 92, 246, 0.1), transparent);
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
p { color: var(--text-secondary); }
a { color: var(--primary-light); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent); }

.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--space-lg); }
.container-sm { max-width: 640px; }
.container-md { max-width: 900px; }

/* Navbar */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: var(--space-md) 0;
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.logo {
    font-size: 1.5rem; font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; align-items: center; gap: var(--space-xl); list-style: none; }
.nav-links a { color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text-primary); }
.nav-cta { display: flex; align-items: center; gap: var(--space-md); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
    padding: 0.75rem 1.5rem; font-family: inherit; font-size: 0.95rem; font-weight: 600;
    border: none; border-radius: var(--radius-md); cursor: pointer;
    transition: all var(--transition-normal); text-decoration: none; white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4); color: white; }
.btn-secondary { background: var(--bg-glass); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--border-glow); }
.btn-outline { background: transparent; color: var(--primary-light); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* Cards */
.card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); padding: var(--space-xl);
    backdrop-filter: blur(10px); transition: all var(--transition-normal);
}
.card:hover { background: var(--bg-card-hover); border-color: var(--border-glow); box-shadow: var(--shadow-glow); }
.card-header { margin-bottom: var(--space-lg); padding-bottom: var(--space-lg); border-bottom: 1px solid var(--border-color); }
.card-title { font-size: 1.25rem; margin-bottom: var(--space-xs); }
.card-subtitle { color: var(--text-muted); font-size: 0.875rem; }

/* Forms */
.form-group { margin-bottom: var(--space-lg); }
.form-label { display: block; margin-bottom: var(--space-sm); font-weight: 500; font-size: 0.875rem; color: var(--text-secondary); }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 0.875rem 1rem; font-family: inherit; font-size: 1rem;
    color: var(--text-primary); background: var(--bg-glass);
    border: 1px solid var(--border-color); border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.form-input::placeholder { color: var(--text-muted); }
.form-select {
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
.form-select option { background: var(--bg-dark); color: var(--text-primary); }
.form-error { color: var(--error); font-size: 0.8rem; margin-top: var(--space-xs); }
.form-range {
    width: 100%; height: 6px; background: var(--bg-glass);
    border-radius: 3px; appearance: none; cursor: pointer;
}
.form-range::-webkit-slider-thumb {
    appearance: none; width: 20px; height: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%; cursor: pointer; box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* Feature Grid */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--space-md); }
.feature-item {
    position: relative; padding: var(--space-md);
    background: var(--bg-glass); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition-fast);
}
.feature-item:hover { background: var(--bg-card-hover); border-color: var(--border-glow); }
.feature-item.selected {
    background: rgba(99, 102, 241, 0.1); border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}
.feature-item.selected::after {
    content: '✓'; position: absolute; top: 8px; right: 8px;
    width: 20px; height: 20px; background: var(--primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 12px; color: white;
}
.feature-item input { position: absolute; opacity: 0; pointer-events: none; }
.feature-label { font-weight: 500; font-size: 0.9rem; margin-bottom: var(--space-xs); }
.feature-points { font-size: 0.75rem; color: var(--primary-light); font-weight: 600; }
.feature-description { font-size: 0.75rem; color: var(--text-muted); margin-top: var(--space-xs); }

/* Category Tabs */
.category-tabs { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-xl); }
.category-tab {
    padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500;
    background: var(--bg-glass); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition-fast);
}
.category-tab:hover { background: var(--bg-card-hover); }
.category-tab.active { background: var(--primary); border-color: var(--primary); color: white; }

/* Price Display */
.price-display {
    text-align: center; padding: var(--space-2xl);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: var(--radius-xl); border: 1px solid var(--border-glow);
}
.price-label { font-size: 0.875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; margin-bottom: var(--space-sm); }
.price-value {
    font-size: clamp(3rem, 8vw, 5rem); font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1;
}
.price-range { margin-top: var(--space-md); font-size: 0.9rem; color: var(--text-secondary); }
.price-range span { color: var(--primary-light); font-weight: 600; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-md); }
.stat-item { text-align: center; padding: var(--space-lg); background: var(--bg-glass); border-radius: var(--radius-md); border: 1px solid var(--border-color); }
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--primary-light); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: var(--space-xs); }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; position: relative; }
.hero-content { max-width: 700px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: var(--space-sm);
    padding: 0.5rem 1rem; background: var(--bg-glass); border: 1px solid var(--border-color);
    border-radius: 100px; font-size: 0.875rem; color: var(--text-secondary); margin-bottom: var(--space-lg);
}
.hero-badge-dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.hero h1 { margin-bottom: var(--space-lg); }
.hero h1 .gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-description { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: var(--space-xl); max-width: 550px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-md); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-xl); max-width: 900px; margin: 0 auto; }
.pricing-card {
    position: relative; padding: var(--space-2xl);
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-xl); transition: all var(--transition-normal);
}
.pricing-card.featured { border-color: var(--primary); background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05)); }
.pricing-card.featured::before {
    content: 'Populaire'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    padding: 0.25rem 1rem; background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 100px; font-size: 0.75rem; font-weight: 600; color: white;
}
.pricing-header { text-align: center; margin-bottom: var(--space-xl); }
.pricing-name { font-size: 1.25rem; margin-bottom: var(--space-sm); }
.pricing-price { font-size: 3rem; font-weight: 800; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-features { list-style: none; margin-bottom: var(--space-xl); }
.pricing-features li { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) 0; color: var(--text-secondary); }
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: bold; }

/* Alerts */
.alert { padding: var(--space-md) var(--space-lg); border-radius: var(--radius-md); margin-bottom: var(--space-lg); display: flex; align-items: center; gap: var(--space-md); }
.alert-success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); color: var(--success); }
.alert-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: var(--error); }
.alert-warning { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); color: var(--warning); }
.alert-info { background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.3); color: var(--primary-light); }

/* Modal */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; z-index: 2000;
    opacity: 0; visibility: hidden; transition: all var(--transition-normal);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
    width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto;
    background: var(--bg-dark); border: 1px solid var(--border-color);
    border-radius: var(--radius-xl); padding: var(--space-2xl);
    transform: translateY(20px); transition: transform var(--transition-normal);
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-xl); }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
.modal-close:hover { color: var(--text-primary); }

/* Tables */
.table-wrapper { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: var(--space-md); text-align: left; border-bottom: 1px solid var(--border-color); }
.table th { font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); background: var(--bg-glass); }
.table tr:hover td { background: var(--bg-glass); }

/* Footer */
.footer { padding: var(--space-2xl) 0; border-top: 1px solid var(--border-color); margin-top: var(--space-2xl); }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-lg); }
.footer-links { display: flex; gap: var(--space-xl); list-style: none; }
.footer-links a { color: var(--text-muted); font-size: 0.875rem; }
.footer-links a:hover { color: var(--text-primary); }

/* Loading */
.spinner { width: 24px; height: 24px; border: 3px solid var(--border-color); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Utils */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.hidden { display: none !important; }

/* Page Sections */
.page-header { padding: 140px 0 60px; text-align: center; }
.page-header h1 { margin-bottom: var(--space-md); }
.page-header p { max-width: 600px; margin: 0 auto; }
.section { padding: var(--space-2xl) 0; }
.section-header { text-align: center; margin-bottom: var(--space-2xl); }

/* Dashboard */
.dashboard-grid { display: grid; grid-template-columns: 300px 1fr; gap: var(--space-xl); min-height: calc(100vh - 200px); padding-top: 100px; }
.dashboard-sidebar { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: var(--space-lg); height: fit-content; position: sticky; top: 100px; }
.dashboard-main { display: flex; flex-direction: column; gap: var(--space-xl); }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { text-align: center; padding: 100px 0 60px; }
    .hero-content { max-width: 100%; }
    .hero-cta { justify-content: center; }
    .feature-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .pricing-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; text-align: center; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-sidebar { position: static; }
}

