/* Fichier : public/css/style.css */

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

:root {
    --bg-dark: #020617; /* Very deep slate/black */
    --bg-dark-secondary: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.6);
    --primary: #2563eb; /* Tech Blue */
    --primary-hover: #1d4ed8;
    --accent: #0ea5e9; /* Sky Blue */
    --text-main: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.08);
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

body {
    background-color: var(--bg-dark);
    /* Subtle tech grid or glow */
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(14, 165, 233, 0.08) 0%, transparent 50%);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-muted { color: var(--text-secondary) !important; }
p { color: var(--text-secondary); line-height: 1.7; font-weight: 400; }

/* Navbar */
.navbar {
    background: rgba(2, 6, 23, 0.85) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: white !important;
    letter-spacing: -0.03em;
}
.nav-link {
    color: var(--text-secondary) !important;
    transition: 0.2s;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}
.nav-link:hover, .nav-link.active {
    color: #ffffff !important;
}

/* Cards - Tech/OVH Style */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
    background: rgba(30, 41, 59, 0.4);
}
.glass-card:hover::before { opacity: 1; }

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 8px; /* Slightly sharper than pill */
    transition: all 0.2s;
    letter-spacing: 0.01em;
}

.btn-primary {
    background-color: var(--primary);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.2);
    color: white;
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.05);
    border-color: white;
    color: white;
}

/* Form Elements */
.form-control, .form-select {
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.1);
    color: #ffffff !important;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
    background: #0f172a;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    color: white;
}
.form-control::placeholder { color: rgba(255,255,255,0.3); }

/* Badges & Tech Elements */
.badge-tech {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35em 0.8em;
    letter-spacing: 0.025em;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    background: #020617;
    padding-top: 4rem;
    padding-bottom: 2rem;
}
.footer-heading {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.footer-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: 0.2s;
    font-size: 0.95rem;
}
.footer-link:hover {
    color: var(--primary);
    transform: translateX(3px);
}

/* Utility */
.text-primary-light { color: #60a5fa; }
.bg-gradient-tech {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
}

/* Tables - Dark Mode Fix (addressing the user complaint) */
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-secondary);
    --bs-table-border-color: var(--border-color);
    color: var(--text-secondary);
}

.table > :not(caption) > * > * {
    background-color: transparent !important;
    color: var(--text-secondary);
}

.table thead th {
    color: white;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    background-color: rgba(15, 23, 42, 0.8) !important; /* Slightly darker header */
}

/* Ensuring table rows inside cards are transparent/readable */
.card .table, .glass-card .table {
    margin-bottom: 0;
}

.table-hover tbody tr:hover td, .table-hover tbody tr:hover th {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: white;
}

/* Specific fix for white backgrounds that might bleed through */
.card, .table-responsive {
    background-color: transparent !important;
}
