 /* --- CONFIGURATION TRANSCO (Charte Graphique) --- */
        :root {
            --transco-primary: #00408A; /* Bleu foncé */
            --transco-secondary: #FFD700; /* Jaune */
            --transco-accent: #E60000; /* Rouge */
            --font-display: 'Montserrat', sans-serif;
            --font-body: 'Open Sans', sans-serif;
        }

        body {
            font-family: var(--font-body);
        }

        h1, h2, h3, h4, h5, h6, .font-display {
            font-family: var(--font-display);
        }

        /* Classes Utilitaires Couleurs Personnalisées */
        .bg-transco-primary { background-color: var(--transco-primary) !important; }
        .text-transco-primary { color: var(--transco-primary) !important; }
        .bg-transco-secondary { background-color: var(--transco-secondary) !important; }
        .text-transco-secondary { color: var(--transco-secondary) !important; }
        .bg-transco-accent { background-color: var(--transco-accent) !important; }
        .text-transco-accent { color: var(--transco-accent) !important; }

        /* Dark Mode : Ajustements spécifiques */
        [data-bs-theme="dark"] body {
            background-color: #111827;
            color: #F9FAFB;
        }
        [data-bs-theme="dark"] .bg-surface {
            background-color: #1F2937;
        }

        /* --- STYLES SPÉCIFIQUES --- */
        
        /* Navbar */
        .navbar-transco {
            background-color: var(--transco-primary);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }
        .nav-link { color: rgba(255,255,255,0.85) !important; transition: color 0.3s; }
        .nav-link:hover { color: #fff !important; }

        /* Hero Section */
        .hero-section {
            position: relative;
            background-color: #f8f9fa; /* Light default */
            overflow: hidden;
        }
        [data-bs-theme="dark"] .hero-section { background-color: #1F2937; }
        
        .hero-pattern {
            position: absolute;
            inset: 0;
            background-color: var(--transco-primary);
            /* Pattern fallback simple sans image externe cassée */
            background-image: radial-gradient(#ffffff 1px, transparent 1px);
            background-size: 20px 20px;
            opacity: 0.9;
        }
        [data-bs-theme="dark"] .hero-pattern { opacity: 0.4; }

        /* Effets d'images et Cartes */
        .hover-scale img {
            transition: transform 0.7s ease;
        }
        .hover-scale:hover img {
            transform: scale(1.05);
        }
        
        .img-overlay-gradient {
            background: linear-gradient(to top, black, transparent);
        }

        /* Formulaire Flottant */
        .floating-search-card {
            margin-top: -3rem;
            z-index: 20;
            position: relative;
            border: none;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }

        /* Scrollbar */
        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: #f1f1f1; }
        ::-webkit-scrollbar-thumb { background: #888; border-radius: 4px; }

        /* Bouton Flottant Dark Mode */
        .theme-toggle-btn {
            position: fixed;
            bottom: 1.5rem;
            right: 1.5rem;
            z-index: 1050;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }

        /* Footer */
        footer {
            border-top: 4px solid var(--transco-secondary);
        }
        footer a { text-decoration: none; color: #9ca3af; }
        footer a:hover { color: white; }

        /* Input Groups custom */
        .input-group-text {
            background-color: transparent;
            border-right: 0;
        }
        .input-group .form-control {
            border-left: 0;
        }
        .input-group .form-control:focus {
            box-shadow: none;
            border-color: #ced4da; /* Keep default or customize */
        }
        .input-group:focus-within {
            box-shadow: 0 0 0 0.25rem rgba(0, 64, 138, 0.25);
            border-radius: 0.375rem;
        }
        
        /* Contenu au premier plan */
        .auth-container {
            position: relative;
            z-index: 10;
            width: 100%;
        }

        /* --- Styles des Cartes (Inspiré de votre .floating-search-card) --- */
        .auth-card {
            border: none;
            border-radius: 1rem;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
            background-color: #ffffff;
        }

        /* Input Groups Custom (Votre CSS) */
        .input-group-text {
            background-color: transparent;
            border-right: 0;
            color: #6c757d;
        }
        .input-group .form-control {
            border-left: 0;
        }
        .input-group:focus-within {
            box-shadow: 0 0 0 0.25rem rgba(0, 64, 138, 0.25);
            border-radius: 0.375rem;
            border-color: var(--transco-primary);
        }
        .input-group:focus-within .input-group-text {
            color: var(--transco-primary);
            border-color: var(--transco-primary);
        }
        
        /* Boutons */
        .btn-transco {
            background-color: var(--transco-primary);
            color: white;
            font-weight: 600;
            transition: all 0.3s;
        }
        .btn-transco:hover {
            background-color: #003370;
            color: var(--transco-secondary);
            transform: translateY(-2px);
        }

        /* Lien de retour */
        .back-link {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: color 0.3s;
        }
        .back-link:hover { color: var(--transco-secondary); }
/* ==========================================================================
   NOTIFICATIONS FLASH (ALERTS)
   ========================================================================== */
.alert-container {
    margin-bottom: 2rem;
}

.alert-transco {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

/* Barre de couleur sur le côté de l'alerte pour le rappel visuel */
.alert-transco::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 6px;
}

.alert-success.alert-transco { background-color: #e6fffa; color: #234e52; }
.alert-success.alert-transco::before { background-color: #38a169; }

.alert-danger.alert-transco { background-color: #fff5f5; color: #a02c2c; }
.alert-danger.alert-transco::before { background-color: var(--transco-accent); }

.alert-warning.alert-transco { background-color: #fffdf2; color: #856404; }
.alert-warning.alert-transco::before { background-color: var(--transco-secondary); }

.alert-transco .btn-close {
    box-shadow: none;
    opacity: 0.5;
}

/* ==========================================================================
   SIDEBAR TRANSCO - COMPORTEMENT MINI (HOVER EXPAND)
   ========================================================================== */

.sidebar {
    width: 70px; /* Largeur réduite par défaut */
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    background-color: #00408A; /* Bleu TRANSCO */
    color: #ffffff;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Animation fluide */
    padding-top: 70px;
    overflow-x: hidden; /* Cache le texte qui dépasse */
    white-space: nowrap;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

/* Extension au survol */
.sidebar:hover {
    width: 260px;
}

/* --- ÉLÉMENTS DE NAVIGATION --- */
.sidebar .nav-link {
    padding: 15px 0 15px 23px; /* Aligne l'icône au centre du mode 70px */
    color: rgba(255, 255, 255, 0.8) !important;
    display: flex;
    align-items: center;
    gap: 25px; /* Espace entre icône et texte */
    font-weight: 500;
    border-left: 4px solid transparent;
    transition: all 0.2s;
}

/* Texte (le nom des menus) */
.sidebar .nav-link span {
    opacity: 0; /* Caché par défaut */
    transition: opacity 0.3s ease;
}

.sidebar:hover .nav-link span {
    opacity: 1; /* Visible au survol de la sidebar */
}

.sidebar .nav-link i {
    font-size: 1.2rem;
    min-width: 20px;
    text-align: center;
}

/* État Actif et Hover sur lien */
.sidebar .nav-link:hover, 
.sidebar .nav-link.active {
    background-color: rgba(255, 215, 0, 0.1);
    color: #FFD700 !important;
    border-left-color: #FFD700;
}

/* --- POINTILLÉS JAUNES (Séparateurs) --- */
.sidebar-header {
    padding: 20px 0 10px 23px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #FFD700;
    opacity: 0;
    transition: opacity 0.3s;
    /* Ligne pointillée jaune en dessous */
    border-bottom: 2px dotted #FFD700; 
    margin: 10px 15px;
}

.sidebar:hover .sidebar-header {
    opacity: 1;
}

/* --- PIED DE SIDEBAR (DÉCONNEXION) --- */
.logout-container {
    margin-top: auto;
    border-top: 2px dotted #FFD700; /* Pointillés jaunes aussi ici */
    padding-bottom: 20px;
    padding-top: 10px;
}

/* --- AJUSTEMENT DU CONTENU PRINCIPAL --- */
.main-content {
    margin-left: 70px; /* Aligné sur la sidebar réduite */
    transition: margin-left 0.3s;
    min-height: 100vh;
    padding-top: 20px;
}

/* --- COMPORTEMENT MOBILE --- */
@media (max-width: 767.98px) {
    .sidebar {
        width: 260px; /* Full width sur mobile */
        left: -260px;
    }
    .sidebar.mobile-open {
        left: 0;
    }
    .sidebar .nav-link span, .sidebar-header {
        opacity: 1; /* Toujours visible sur mobile quand ouvert */
    }
    .main-content {
        margin-left: 0;
    }
}

/* ==========================================================================
   AJUSTEMENT HIÉRARCHIE (NAVBAR AU-DESSUS DU SIDEBAR)
   ========================================================================== */

/* 1. On s'assure que la Navbar est au premier plan */
.navbar-transco {
    z-index: 1050 !important; /* Priorité maximale */
    position: sticky;
    top: 0;
}

/* 2. On place la Sidebar juste en dessous */
.sidebar {
    width: 70px;
    height: 100vh;
    position: fixed;
    top: 0; /* Elle part du haut mais sera derrière la navbar */
    left: 0;
    z-index: 1040; /* Juste en dessous de la navbar */
    background-color: #00408A;
    padding-top: 80px; /* IMPORTANT : Doit correspondre à la hauteur de votre navbar pour ne pas cacher le 1er lien */
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

/* 3. L'overlay doit être entre la sidebar et le contenu, mais sous la navbar */
.sidebar-overlay {
    z-index: 1035; 
}

/* --- ADAPTATION MOBILE --- */
@media (max-width: 767.98px) {
    .sidebar {
        top: 0;
        left: -260px; /* Cachée à gauche */
        width: 260px !important;
        padding-top: 80px; /* Garde l'espace pour voir le bouton dans la navbar */
    }

    .sidebar.mobile-open {
        left: 0 !important;
    }
}

/* ==========================================================================
   SIDEBAR TRANSCO - AVEC PATTERN POINTILLÉS (HERO STYLE)
   ========================================================================== */

.sidebar {
    width: 70px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    background-color: #00408A; /* Bleu TRANSCO */
    
    /* --- LE PATTERN POINTILLÉS (Inspiré du Hero) --- */
    background-image: radial-gradient(#FFD700 1px, transparent 1px);
    background-size: 20px 20px;
    /* On réduit un peu l'opacité des points pour ne pas gêner la lecture */
    background-blend-mode: soft-light; 
    
    color: #ffffff;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 80px; /* Espace sous la navbar */
    overflow-x: hidden;
    white-space: nowrap;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
}

.sidebar:hover {
    width: 260px;
}

/* --- ÉLÉMENTS DE NAVIGATION --- */
.sidebar .nav-link {
    padding: 15px 0 15px 23px; /* Centre l'icône dans les 70px */
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 25px;
    font-weight: 600;
    border-left: 4px solid transparent;
    transition: all 0.2s;
}

/* Masquage du texte par défaut */
.sidebar .nav-link span {
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar:hover .nav-link span {
    opacity: 1;
}

/* Style des icônes (FontAwesome ou Material) */
.sidebar .nav-link i, 
.sidebar .nav-link .material-icons {
    font-size: 1.3rem;
    min-width: 24px;
    text-align: center;
    color: #FFD700; /* Icônes en Jaune TRANSCO */
}

/* État Actif et Survol */
.sidebar .nav-link:hover, 
.sidebar .nav-link.active {
    background-color: rgba(255, 215, 0, 0.2);
    border-left-color: #FFD700;
}

/* Séparateur pointillé entre les sections (MES SERVICES) */
.sidebar-header {
    margin: 15px;
    border-bottom: 1px dotted rgba(255, 215, 0, 0.5);
    padding-bottom: 5px;
    font-size: 0.7rem;
    color: #FFD700;
    opacity: 0;
}

.sidebar:hover .sidebar-header {
    opacity: 1;
}

/* --- AJUSTEMENT MOBILE --- */
@media (max-width: 767.98px) {
    .sidebar {
        left: -260px;
        width: 260px !important;
    }
    .sidebar.mobile-open {
        left: 0;
    }
}

/* =====================================================
   MOBILE UNIQUEMENT – NE TOUCHE PAS AU DESKTOP
   ===================================================== */
@media (max-width: 991.98px) {

    /* Sidebar caché par défaut sur mobile */
    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1040; /* derrière navbar */
    }

    /* Sidebar visible uniquement via bouton */
    #sidebar.mobile-open {
        transform: translateX(0);
    }

    /* Icônes + textes invisibles quand sidebar fermé */
    #sidebar .nav-link {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    /* Icônes + textes visibles quand sidebar ouvert */
    #sidebar.mobile-open .nav-link {
        opacity: 1;
        pointer-events: auto;
    }

    /* Le contenu principal ne bouge pas */
    .main-content {
        margin-left: 0 !important;
    }

    /* Overlay */
    .sidebar-overlay {
        display: none;
    }

    .sidebar-overlay.active {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1030;
    }
}


/* CONTENEUR DU HERO */
.transco-hero{
    height: 380px;
}

/* Wrapper de l’image */
.hero-image-wrapper{
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* Piste pour les bus */
.hero-bus-track{
    display: flex;
    width: 220%; /* 2 images de 100% chacune */
    animation: busMoveContinuous 14s linear infinite;
}

/* Bus images */
.hero-bus-image{
    width: 50%; /* chaque image prend la moitié du conteneur track */
    height: 100%;
    object-fit: cover;
}

/* Animation continue */
@keyframes busMoveContinuous {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* glisse de la largeur d'une image */
}

/* Overlay premium */
.transco-overlay{
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85),
        rgba(0,0,0,0.45) 50%,
        transparent
    );
}

/* Carousel des lignes */
.line-carousel{
    position: relative;
    height: 52px;
    overflow: hidden;
}

.line-item{
    position: absolute;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateX(50px);
    transition: all .7s ease;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.line-item.active{
    opacity: 1;
    transform: translateX(0);
}

.line-item.exit{
    opacity: 0;
    transform: translateX(-50px);
}

/* Responsive */
@media(max-width: 768px){
    .transco-hero{
        height: 260px;
    }
    .line-item{
        font-size: 1rem;
    }
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
}
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* À ajouter dans votre fichier CSS pour que le contenu DB soit propre */
.lh-lg img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 20px 0;
}
.lh-lg ul {
    list-style: none;
    padding-left: 0;
}
.lh-lg li::before {
    content: "•";
    color: #ffc107; /* Jaune TRANSCO */
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
}

