/* * ==========================================
 * THEME SOMBRE & UI MODERNE (EDITION PREMIUM)
 * ==========================================
 */

/* 1. Importation de la police d'écriture Premium (Montserrat) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

/* 2. Variables globales du thème sombre */
:root[data-theme="dark"], 
html.dark, 
body.dark {
    --bs-secondary-bg: #111111 !important; /* Un noir profond */
    --bs-secondary-bg-rgb: 17, 17, 17;
    --bs-body-bg: #1a1c20 !important; /* Fond gris-bleu très sombre */
    --bs-body-color: #e2e8f0 !important; /* Texte clair légèrement grisé */
}

/* 3. Application du fond et de la police globale au body */
body[data-theme="dark"], 
body.dark,
body {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-family: 'Montserrat', sans-serif !important; /* La police qui change tout */
}

/* Titres bien gras pour le style de l'image */
h1, h2, h3, h4, h5, h6, .section-title {
    font-weight: 800 !important;
    text-transform: uppercase;
}

/* 4. Conteneur principal */
.content {
    margin-top: 5rem;
    margin-bottom: 5rem;
    padding: 2rem;
    background-color: var(--bs-secondary-bg);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 5. Liens globaux */
a {
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    filter: brightness(1.2);
}

/* * 6. HEADER - Effet Glassmorphism 
 */
.home-header {
    position: relative;
    height: calc(100vh - 140px);
    min-height: 450px;
    overflow: hidden;
}

.home-header::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 28, 32, 0.75); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 3px solid var(--bs-primary);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* * 7. NAVBAR ET NAVIGATION (Style Theme Carbon/Premium)
 */
.navbar {
    background-color: #15171a !important; /* Bandeau très sombre en haut */
    border-bottom: 2px solid var(--bs-primary); /* Ligne de couleur en dessous */
}

.navbar-brand img {
    max-height: 75px;
    max-width: 150px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05); 
}

.navbar .nav-item {
    margin-left: 0.4rem;
    margin-right: 0.4rem;
}

.navbar .nav-item .nav-link {
    --bs-nav-link-color: #a1a1aa;
    text-transform: uppercase;
    font-weight: 800 !important; /* Texte en gras (force la police Montserrat) */
    letter-spacing: 0.5px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.navbar .nav-item .nav-link:hover,
.navbar .nav-item .nav-link.active,
.navbar-socials .nav-link {
    color: var(--bs-primary) !important;
}

.navbar .nav-item .dropdown-toggle::after {
    border-top: 0.3em solid var(--bs-primary);
    transition: transform 0.3s ease;
}

.navbar .nav-item.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* 8. PROFIL UTILISATEUR (Navbar) */
.user-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    transition: background 0.3s ease;
    font-weight: 700;
}

.user-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-nav-link img {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    border: 2px solid var(--bs-primary);
    object-fit: cover;
}