/* Global Vars */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --sidebar-width: 260px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    margin: 0;
    overflow-x: hidden; /* Empêche le scroll horizontal global */
    padding-top: 80px; /* Espace pour la navbar fixed-top */
}

/* Custom Styles for Home Cards */
.hero {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    text-align: center;
}

.flight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.flight-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f1f5f9;
}

/* Forms Styles (Restaurés) */
.form-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    max-width: 500px;
    margin: 2rem auto;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control-custom {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Admin Sidebar Layout */
.admin-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--text-dark);
    color: white;
    position: fixed;
    top: 0; left: 0; height: 100vh;
    transition: transform 0.3s ease;
    z-index: 1050;
    padding: 1.5rem 1rem;
}

.sidebar a.active {
    color:rgb(239, 181, 6)
}


.admin-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    background: #f1f5f9;
    min-height: 100vh;
    max-width: calc(100vw - var(--sidebar-width)); /* Empêche le débordement */
}

/* Responsiveness Admin */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .admin-content {
        margin-left: 0;
        max-width: 100vw;
    }
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
}

.sidebar-overlay.show {
    display: block;
}

.sidebar-link {
    padding: 0.8rem 1rem;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

/* Responsive Table Actions */
.btn-responsive span {
    display: inline;
}

@media (max-width: 768px) {
    .btn-responsive span {
        display: none;
    }
    .btn-responsive i {
        margin: 0 !important;
    }
    /* Garder la colonne Action visible et prioritaire dans DataTable */
    table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before {
        display: none !important;
    }
}

.nav-link.active {
    color: var(--primary) !important;
    font-weight: 700 !important;
}
