@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #ff7a00;
    --primary-dark: #cc6200;
    --secondary-color: rgba(255, 255, 255, 0.04);
    --dark-bg: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.06);
    --text-primary: #ffffff;
    --text-secondary: #b5b5b7;
    --border-color: rgba(255, 255, 255, 0.12);
    --success-color: #00ff88;
    --warning-color: #ffa500;
    --error-color: #ff4d4f;
    --gradient-primary: linear-gradient(135deg, #ff7a00 0%, #cc6200 100%);
    --gradient-dark: linear-gradient(135deg, #111111 0%, #0a0a0a 100%);
    --shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 16px 30px rgba(0, 0, 0, 0.45);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Conteneur principal */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 22px;
}

/* En-tête */
.navbar {
    background: rgba(14, 14, 14, 0.85);
    backdrop-filter: saturate(180%) blur(16px);
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease, background 0.25s ease;
    padding: 8px 14px;
    border-radius: 10px;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(255, 122, 0, 0.08);
}

/* Boutons */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
}

.btn-primary {
    background: var(--primary-color);
    color: #0a0a0a;
    box-shadow: 0 6px 18px rgba(255, 122, 0, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(255, 122, 0, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-danger { background: var(--error-color); color: #fff; }
.btn-success { background: var(--success-color); color: #0a0a0a; }

/* Hero Section */
.hero {
    margin-top: 76px;
    padding: 70px 0 60px;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px 400px at 20% -10%, rgba(255,255,255,0.06), transparent 60%),
                radial-gradient(600px 300px at 80% -10%, rgba(255,122,0,0.12), transparent 60%);
}

.hero-content { text-align: center; position: relative; z-index: 1; }
.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0 auto 2rem;
    max-width: 680px;
}

/* Sections */
.section { padding: 3.5rem 0; }
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.2rem;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(255, 255, 255, 0.18);
}

.card::before { display:none; }

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.service-card { text-align: center; }
.service-icon { font-size: 2.4rem; color: var(--primary-color); margin-bottom: 0.75rem; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--text-secondary); }

/* Forms */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.18);
    background: rgba(255, 255, 255, 0.04);
}
.form-control::placeholder { color: var(--text-secondary); }
select.form-control { cursor: pointer; }

/* Dashboard */
.dashboard { margin-top: 76px; padding: 2rem 0; }
.dashboard-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem;
}
.dashboard-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 2rem;
}
.stat-card {
    background: var(--card-bg); padding: 1.25rem; border-radius: 14px; border: 1px solid var(--border-color); text-align: center;
}
.stat-number { font-size: 1.8rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.35rem; }
.stat-label { color: var(--text-secondary); font-size: 0.92rem; }

/* Tables */
.table-container { background: var(--card-bg); border-radius: 14px; overflow: hidden; border: 1px solid var(--border-color); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid var(--border-color); }
.table th { background: rgba(255, 255, 255, 0.04); font-weight: 700; color: var(--text-primary); }
.table td { color: var(--text-secondary); }
.table tr:hover { background: rgba(255, 255, 255, 0.03); }

/* Status badges */
.status-badge { padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.status-pending { background: rgba(255, 165, 0, 0.2); color: var(--warning-color); }
.status-processing { background: rgba(10, 132, 255, 0.18); color: #0a84ff; }
.status-completed { background: rgba(52, 199, 89, 0.18); color: #ff9f0a; }
.status-cancelled { background: rgba(255, 69, 58, 0.18); color: #ff453a; }

/* Alerts */
.alert { padding: 0.9rem 1rem; border-radius: 12px; margin-bottom: 1rem; border-left: 4px solid; }
.alert-success { background: rgba(52, 199, 89, 0.12); border-color: #ff9f0a; color: #ff9f0a; }
.alert-error { background: rgba(255, 69, 58, 0.12); border-color: #ff453a; color: #ff453a; }
.alert-warning { background: rgba(255, 159, 10, 0.12); border-color: #ff9f0a; color: #ff9f0a; }

/* Footer */
.footer { background: rgba(255, 255, 255, 0.04); padding: 3rem 0 2rem; border-top: 1px solid var(--border-color); margin-top: 4rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-section h3 { color: var(--primary-color); margin-bottom: 1rem; }
.footer-section p, .footer-section a { color: var(--text-secondary); text-decoration: none; line-height: 1.8; }
.footer-section a:hover { color: var(--primary-color); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid var(--border-color); color: var(--text-secondary); }

/* Mobile menu */
.mobile-menu-toggle { display: none; flex-direction: column; cursor: pointer; padding: 6px; }
.mobile-menu-toggle span { width: 24px; height: 2px; background: var(--text-primary); margin: 3px 0; transition: 0.3s; }

@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(14,14,14,0.95); backdrop-filter: saturate(180%) blur(16px); flex-direction: column; padding: 1.5rem; border-top: 1px solid var(--border-color); }
    .nav-links.active { display: flex; }
    .container { padding: 0 16px; }
}

/* Desktop refinements */
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .dashboard-stats { grid-template-columns: repeat(4, 1fr); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
