/* ==========================================================================
   1. VARIABLES GLOBALES & CHARTE GRAPHIQUE
   ========================================================================== */
:root {
    --primary-color: #007bff;
    --secondary-color: #0056b3;
    --dark-bg: #f8f9fa; /* Fond clair par défaut */
    --dark-text: #1e293b;
    --light-text: #f8fafc;
    --accent-color: #10b981;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   2. STYLES DE BASE & TYPOGRAPHIE
   ========================================================================== */
body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background-color: var(--dark-bg);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.bg-dark-custom {
    background-color: #0f172a !important;
    color: white !important;
}

.max-w-600 {
    max-width: 600px;
}

/* ==========================================================================
   3. COMPOSANTS STRUCTURAUX (Navbar, Hero, Buttons)
   ========================================================================== */
/* Glassmorphism Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.75)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    color: white;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

/* Base Cards & Glassmorphism */
.card-custom {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.card-custom:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.1);
}

/* Buttons (Digital Style) */
.btn-digital {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-digital:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
    color: white;
}

/* Formulaires globaux personnalisés */
.form-control-custom {
    padding: 0.75rem 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background-color: #fafafa;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-control-custom:focus {
    background-color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
    outline: 0;
}

/* ==========================================================================
   4. ANIMATIONS NATIVES
   ========================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* ==========================================================================
   5. OPTIMISATIONS SPECIFIQUES DES PAGES
   ========================================================================== */

/* --- PAGE ACCUEIL (Cas Pratiques) --- */
.case-study {
    padding: 80px 0;
}

.case-card {
    height: 280px; 
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 30px;
}

.case-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    padding: 2rem;
    color: white;
}

/* --- PAGE SERVICES --- */
.service-item-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.service-item-card .icon-container i {
    transition: transform 0.3s ease;
}

.service-item-card:hover .icon-container i {
    transform: scale(1.15);
}

.section-title-accent, .cta-title {
    color: var(--secondary-color);
}

.cta-card {
    border: none !important;
    background: white;
}

/* --- PAGE VITRINE PRODUITS --- */
.product-card-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-custom:hover .product-img-wrapper img {
    transform: scale(1.08);
}

.product-img-placeholder {
    border: 1px dashed rgba(0, 0, 0, 0.1);
}

.product-price-tag {
    font-size: 1.15rem;
    color: var(--accent-color);
}

/* --- PAGE CONTACT --- */
.contact-icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.border-success-light {
    border-color: rgba(16, 185, 129, 0.15) !important;
}

.border-2 {
    border-width: 2px !important;
}

/* --- PAGE PARTENAIRES --- */
.partner-card-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.partner-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 123, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.partner-logo-wrapper {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.partner-logo-wrapper img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.card-custom:hover .partner-logo-wrapper img {
    transform: scale(1.05);
}

.partner-logo-placeholder {
    border: 1px dashed rgba(0, 0, 0, 0.08);
}

.border-primary-light {
    border-color: rgba(0, 123, 255, 0.15) !important;
}

/* --- PAGE LOGIN --- */
.min-vh-75 {
    min-height: 70vh;
}

.login-icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 123, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hover-primary {
    transition: color 0.2s ease;
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

.input-group-text {
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
}

.input-group .form-control-custom {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* --- TABLEAU DE BORD ADMINISTRATION --- */
.avatar-box {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-success-light { background-color: rgba(16, 185, 129, 0.1) !important; }
.bg-primary-light { background-color: rgba(0, 123, 255, 0.08) !important; }
.bg-info-light { background-color: rgba(0, 210, 255, 0.08) !important; }

.kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hover-sidebar {
    border: none !important;
    border-radius: 10px !important;
    padding: 0.75rem 1rem !important;
    background-color: transparent !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hover-sidebar:hover {
    background-color: #f1f5f9 !important;
    color: var(--primary-color) !important;
}

.active-sidebar {
    border: none !important;
    border-radius: 10px !important;
    padding: 0.75rem 1rem !important;
    background-color: #e2e8f0 !important;
    color: var(--primary-color) !important;
}

/* ==========================================================================
   6. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .feature-card .d-flex {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
    }
    
    .feature-card .me-4 {
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }

    .feature-card {
        text-align: center;
    }
}

@media (min-width: 992px) {
    .border-start-lg {
        border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
}

/* --- Correctif de lisibilité pour la Navbar sombre d'Inofib --- */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important; /* Blanc éclatant par défaut */
    font-weight: 500;
    transition: color 0.25s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: var(--primary-color) !important; /* Devient bleu au survol */
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #white !important; /* Blanc pur pour la page active */
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

/* Ajustement pour le menu mobile responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #0f172a; /* Fond opaque solide en mode mobile pour éviter la transparence */
        padding: 1rem;
        border-radius: 12px;
        margin-top: 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
}

/* --- Correctif de lisibilité pour le Footer Sombre --- */
footer.bg-dark-custom {
    background-color: #0f172a !important; /* Rappel du fond bleu nuit */
    color: #f8fafc !important; /* Force le texte de base en blanc doux */
}

footer.bg-dark-custom h5, 
footer.bg-dark-custom h6 {
    color: #ffffff !important; /* Titres en blanc pur */
    font-weight: 700;
}

footer.bg-dark-custom .text-muted {
    color: #cbd5e1 !important; /* Remplace le gris trop sombre par un gris très clair très lisible */
}

footer.bg-dark-custom ul li a.text-muted {
    color: #94a3b8 !important; /* Liens gris clair */
    transition: color 0.2s ease, padding-left 0.2s ease;
}

/* Effet de survol sur les liens du footer */
footer.bg-dark-custom ul li a.text-muted:hover {
    color: var(--primary-color) !important; /* Devient bleu lumineux au survol */
    padding-left: 4px; /* Léger décalage dynamique agréable */
}

footer.bg-dark-custom a.hover-primary:hover {
    color: var(--primary-color) !important;
}

footer.bg-dark-custom hr.border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important; /* Ligne de séparation subtile mais propre */
}



