html {
    scroll-behavior: smooth;
}

:root, [data-bs-theme="light"] {
    --bs-body-bg: #0f172a;
    --bs-body-color: #f8fafc;
    --bs-emphasis-color: #f8fafc;
    --bs-secondary-color: #cbd5e1;
    --bs-secondary-bg: #1e293b;
    --bs-tertiary-bg: rgba(15, 23, 42, 0.95);
    --bs-dark-rgb: 248, 250, 252;
    --bs-light-rgb: 15, 23, 42;
}

body {
    background-color: #0f172a;
    background-image: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    background-attachment: fixed;
    color: #f8fafc;
    min-height: 100vh;
}

.bg-light, .bg-white, .bg-body-tertiary {
    background-color: transparent;
}

.navbar, footer {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
}

.navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand, .nav-link {
    color: #e2e8f0;
}

.nav-link:hover, .nav-link.active {
    color: #818cf8;
}

.text-dark, p, h1, h2, h3, h4, h5, h6, .card-title {
    color: #f8fafc;
}

.text-muted, .text-secondary {
    color: #cbd5e1;
}

.nav-pills .nav-link {
    color: #cbd5e1;
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-pills .nav-link.active {
    background-color: #6366f1;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.custom-card {
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.custom-card .card-img-top {
    height: 280px;
    object-fit: contain;
    background-color: #0f172a;
    padding: 10px;
}

.custom-card .card-body {
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1e293b;
}

#contact .p-4,
#contact .rounded-4 {
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#contact a, .text-primary {
    color: #818cf8;
}

#contact a:hover {
    text-decoration: underline;
}

.btn-dark {
    background-color: #6366f1;
    border-color: #6366f1;
    color: #ffffff;
}

.btn-dark:hover {
    background-color: #4f46e5;
}

.btn-outline-dark {
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-dark:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-content {
    background-color: #1e293b;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

#propos2 {
    padding: 20px;
    background-color: #1f2b48;
    border-radius: 15px;
}

.navbar-brand img {
    border-radius: 15px;
    object-fit: contain;
    filter: invert(1);
    mix-blend-mode: screen;
}