:root {
    --lf-primary: #164b82;   /* Bleu Liberty Fly proposé */
    --lf-accent:  #ffb347;   /* Accent orange / soleil */
    --lf-dark:    #050b10;   /* Fond sombre aviation */
    --lf-muted:   #6c757d;
}

/* ============================================
   FIX GÉNÉRAL : mode sombre lisible
   ============================================ */
body {
    color: #f5f5f5 !important;
}

/* Textes Bootstrap */
.text-muted {
    color: #a0a6b0 !important;
}
.text-secondary {
    color: #c0c4cc !important;
}
.text-body {
    color: #d4d7dd !important;
}

/* Titres et éléments importants */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    color: #ffffff !important;
}

/* Liens */
a {
    color: #7dbbff !important;
}
a:hover {
    color: #b7d9ff !important;
    text-decoration: underline;
}

/* Fond général */
body.bg-light {
    background: radial-gradient(circle at top, #0b1f2d 0, #050b10 55%, #02040a 100%);
    color: #f5f5f5;
}

/* Cartes */
.card {
    background-color: #0d1520;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.card-title,
h1, h2, h3, h4, h5, h6 {
    color: #fefefe;
}

/* Texte dans les cards (dont stats) */
.card-body,
.card-body p,
.card-body h6,
.card-body .display-6,
.card-body .fw-bold {
    color: #f5f5f5 !important;
}
.card-body .display-6.fw-bold {
    color: #ffffff !important;
}

/* Titres “text-muted” dans les cards (ex: Pilotes actifs, Missions actives...) */
.card-body .text-muted {
    color: #bfcad6 !important;
}

/* Navbar */
.navbar-dark.bg-dark {
    background: linear-gradient(90deg, #050b10, #164b82) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.nav-link {
    font-size: 0.95rem;
}

/* Boutons */
.btn-primary {
    background-color: var(--lf-primary);
    border-color: var(--lf-primary);
}
.btn-primary:hover {
    background-color: #123a63;
    border-color: #123a63;
}
.btn-outline-primary {
    border-color: var(--lf-primary);
    color: var(--lf-primary);
}
.btn-outline-primary:hover {
    background-color: var(--lf-primary);
    color: #fff;
}

/* Badges catégories RP */
.lf-badge-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lf-badge-humanitarian_ops { background-color: #e74c3c; }  /* rouge aide */
.lf-badge-exploration_ops  { background-color: #1abc9c; }  /* vert turquoise */
.lf-badge-cargo_ops        { background-color: #f39c12; }  /* orange logistique */
.lf-badge-bush_ops         { background-color: #27ae60; }  /* vert terrain */
.lf-badge-vip_ops          { background-color: #9b59b6; }  /* violet VIP */
.lf-badge-coastal_ops      { background-color: #2980b9; }  /* bleu mer */
.lf-badge-mountain_ops     { background-color: #95a5a6; }  /* gris montagne */
.lf-badge-historical_ops   { background-color: #d35400; }  /* orange rétro */

/* Badges de niveau RP */
.lf-level-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
}
.lf-level-0 { background-color: #343a40; }
.lf-level-1 { background-color: #0d6efd; }
.lf-level-2 { background-color: #20c997; }
.lf-level-3 { background-color: #ffc107; color: #000; }
.lf-level-4 { background-color: #fd7e14; }
.lf-level-5 { background-color: #dc3545; }

/* Table sombre lisible */
.table {
    color: #eaeaea;
}
.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(255, 255, 255, 0.03);
}
.table-striped > tbody > tr:nth-of-type(even) > * {
    background-color: rgba(255, 255, 255, 0.01);
}
.table thead th {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

/* Alerts */
.alert-info {
    background-color: rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.3);
    color: #dbe8ff;
}
.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    border-color: rgba(25, 135, 84, 0.4);
    color: #d1f7e4;
}
.badge.bg-secondary {
    background-color: var(--lf-muted) !important;
}
.badge.bg-outline-light {
    background-color: transparent;
    color: #f8f9fa;
}

/* Couleurs table */
.table {
    color: #e6e6e6 !important;
}
.table td,
.table th {
    color: #000000 !important;
}
.table-striped > tbody > tr > * {
    color: #f0f0f0 !important;
}

/* Formulaires */
.form-control,
.form-select {
    background-color: #0f1a28;
    color: #ffffff;
    border-color: #2a3b52;
}
.form-control:focus,
.form-select:focus {
    background-color: #122033;
    color: #ffffff;
    border-color: var(--lf-primary);
    box-shadow: 0 0 0 .2rem rgba(22, 75, 130, .4);
}
.navbar-nav .nav-link.active {
    color: #0d6efd !important; /* bleu bootstrap */
    font-weight: 600 !important;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #fff !important;
    background-color: rgba(255,255,255,0.15);
    border-radius: 4px;
}

/* === Layout global front === */

.lf-hero {
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.3), transparent 55%),
    radial-gradient(circle at bottom right, rgba(251, 191, 36, 0.22), transparent 60%),
    #050b10;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.lf-hero-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
}

.lf-hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.lf-hero-subtitle {
    font-size: 0.95rem;
    color: #e5e7eb;
    max-width: 40rem;
}

/* Boutons principaux */
.lf-hero-actions .btn {
    border-radius: 999px;
}

/* Stats cards */
.lf-stat-card {
    border-radius: 1rem;
    background: linear-gradient(145deg, #020617, #020617);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.lf-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
}

.lf-stat-value {
    font-size: 1.6rem;
    font-weight: 600;
}

.lf-stat-hint {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Cartes secondaires (liste, colonnes) */
.lf-panel {
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.9);
}

/* Listes */
.lf-list-item {
    border-bottom: 1px solid rgba(30, 41, 59, 0.9);
}
.lf-list-item:last-child {
    border-bottom: none;
}

/* Badge de statut vols */
.lf-badge-status {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
}

.lf-status-enroute    { background-color: #22c55e; color: #022c22; }
.lf-status-completed  { background-color: #0ea5e9; color: #022c41; }
.lf-status-scheduled  { background-color: #fbbf24; color: #422006; }
.lf-status-cancelled  { background-color: #ef4444; color: #450a0a; }
