﻿/* 🌟 Style pour l'image de fond */
:root {
    /* Palette principale */
    --tropical-teal: #52B7B1;
    --cerulean: #2A7C94;
    --teal-dark: #1d6a7e;
    --teal-light: #eaf7f7;
    --teal-mid: #d0f0ee;
    --white: #ffffff;

    /* Texte */
    --text-dark: #1a2e35;
    --text-mid: #344054;
    --text-light: #f8f9fa;
    --text-muted: #667085;

    /* Transitions & layout */
    --transition-speed: 0.3s;
    --border-radius-lg: 12px;

    /* Ombres */
    --box-shadow-teal-light: 0 5px 25px rgba(82, 183, 177, 0.18);
    --box-shadow-teal-medium: 0 8px 30px rgba(82, 183, 177, 0.30);
    --box-shadow-cerulean: 0 12px 32px rgba(42, 124, 148, 0.22);
}

body {
    background:
        radial-gradient(circle at 14% 12%, rgba(82, 183, 177, 0.12) 0, rgba(82, 183, 177, 0.06) 20%, transparent 36%),
        radial-gradient(circle at 88% 18%, rgba(42, 124, 148, 0.08) 0, transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f0fbfb 46%, #f5fafc 100%);
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    padding-top: 70px;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-dark);
}

/* Navbar principale */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(82, 183, 177, 0.15);
    padding: 0;
    z-index: 1030;
    backdrop-filter: blur(8px);
    transition: all var(--transition-speed) ease;
}

.navbar.scrolled {
    height: 60px;
    box-shadow: 0 2px 10px rgba(82, 183, 177, 0.10);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--tropical-teal) !important;
    display: flex;
    align-items: center;
    transition: all var(--transition-speed) ease;
    padding-left: 1rem;
}

.iyusr-logo {
    display: block;
    width: auto;
    height: 46px;
    max-width: 150px;
    object-fit: contain;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    transition: all var(--transition-speed) ease;
    font-family: 'Poppins', sans-serif; /* Poppins est un bon choix pour la navigation */
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0.8rem 1.2rem;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--tropical-teal) !important;
}

.nav-link.active {
    font-weight: 600;
    color: var(--tropical-teal) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.2rem;
    right: 1.2rem;
    height: 2px;
    background-color: var(--tropical-teal);
    border-radius: 2px;
}

/* 🌟 Logo amélioré */
.logo {
    height: 50px !important; /* Hauteur de base du logo */
    width: auto !important;
    transition: all var(--transition-speed) ease;
}

.navbar.scrolled .logo {
    height: 40px !important; /* Logo plus petit lors du défilement */
}

/* 🌟 Conteneur intro (Si utilisé) */
.intro-container {
    text-align: center;
    margin-top: 6rem;
    padding: 2rem;
}

.intro-text {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--tropical-teal);
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    margin-top: -2cm; /* Remonte le texte de 2cm */
    line-height: 1.2;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Formulaires d'inscription et de connexion --- */ 

/* 🌟 Style des formulaires - Version élégante avec transitions */

.auth-container {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-teal-light);
    max-width: 450px;
    margin: 2rem auto;
    border: 1px solid rgba(82, 183, 177, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    transform: translateY(0);
    position: relative;
    z-index: 10;
}

/* 🎯 Ajustement pour la page de connexion */
.login-container {
    margin-top: -2.7rem;
}

/* 🎯 Ajustement pour la page d'inscription */
.register-container {
    margin-top: 3rem; /* ou autre valeur plus adaptée à ton layout */
}

.auth-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-teal-medium); /* Utilisation de la variable */
}

.auth-container h2 {
    font-size: 1.8rem; /* Légèrement plus grand */
    margin-bottom: 2rem;
    color: #333;
    font-weight: 700; /* Plus gras */
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    position: relative;
    padding-bottom: 0.8rem;
}

.auth-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 35%;
    right: 35%;
    height: 3px;
    background: var(--tropical-teal); /* Utilisation de la variable */
    border-radius: 3px;
    transition: all 0.4s ease;
}

.auth-container:hover h2::after {
    left: 30%;
    right: 30%;
}

/* Labels du formulaire */
.auth-container label {
    display: block; /* Chaque label sur sa propre ligne */
    margin-bottom: 0.6rem; /* Espacement sous le label */
    font-weight: 600; /* Rendre les labels plus visibles */
    color: var(--text-dark);
    font-size: 0.95rem;
}

.auth-container input,
.auth-container select { /* Ajout du style pour les balises select */
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
    box-sizing: border-box; /* Assure que le padding n'affecte pas la largeur */
}

.auth-container input:focus,
.auth-container select:focus {
    border-color: var(--tropical-teal); /* Utilisation de la variable */
    background-color: white;
    box-shadow: 0 0 0 3px rgba(82, 183, 177, 0.3) !important; /* Ombre plus douce */
    outline: none; /* Supprime l'outline par défaut du navigateur */
}

/* Pour le select (pour une meilleure consistance visuelle) */
.auth-container select {
    appearance: none; /* Supprime le style par défaut du navigateur */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2352B7B1'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* 🌟 Bouton ultra stylé */
.auth-container button[type="submit"] { /* Cible spécifiquement le bouton de soumission */
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--tropical-teal) 0%, var(--cerulean) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(82, 183, 177, 0.3);
    margin-top: 1.5rem; /* Augmente l'espace au-dessus du bouton */
}

.auth-container button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 25px rgba(82, 183, 177, 0.4);
}

.auth-container button[type="submit"]:active {
    transform: translateY(-1px);
}

/* 🌟 Liens stylés (pour 'mot de passe oublié', etc.) */
.auth-container a {
    color: var(--tropical-teal);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block; /* Permet à after de se positionner correctement */
}

.auth-container a:hover {
    color: var(--cerulean);
}

.auth-container a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--tropical-teal);
    transition: width 0.3s ease;
}

.auth-container a:hover::after {
    width: 100%;
}

/* Style pour s'assurer que le conteneur principal utilise tout l'espace */
.main-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Media queries pour les petits écrans */
@media (max-width: 768px) {
    .auth-container {
        margin: 1rem auto;
        margin-top: 100px;
        padding: 2rem;
        max-width: 90%;
    }
}

/* --- Tableau de gestion des utilisateurs --- */

/* 🌟 Tableau Premium */
.container.mt-5.pt-5 {
    margin-top: 100px !important; /* Ajuste pour la navbar fixe */
    padding-top: 20px !important; /* Réduit le padding top si nécessaire */
}

.djezzy-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Poppins', sans-serif;
    background-color: white;
    border-radius: var(--border-radius-lg); /* Utilisation de la variable */
    overflow: hidden; /* Important pour les bords arrondis */
    box-shadow: 0 10px 30px rgba(82, 183, 177, 0.1);
    margin: 2.5rem 0;
    position: relative;
    z-index: 1;
}

.djezzy-table th {
    background: linear-gradient(135deg, var(--tropical-teal), var(--cerulean));
    color: white;
    padding: 1.3rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    text-align: left;
    border: none;
}

.djezzy-table th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.djezzy-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(82, 183, 177, 0.08);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    position: relative;
    font-weight: 500;
    color: #333;
}

.djezzy-table tr:last-child td {
    border-bottom: none;
}

.djezzy-table tr:nth-child(even) {
    background-color: rgba(82, 183, 177, 0.02);
}

.djezzy-table tr:hover td {
    background-color: rgba(82, 183, 177, 0.03);
    transform: translateX(3px);
}

.djezzy-table tr:hover td:first-child {
    border-left: 3px solid var(--tropical-teal);
}

/* 🌟 Boutons d'action du tableau (Autoriser/Bloquer) */
.accept, .deny {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px; /* Augmente légèrement la largeur min */
    margin: 0.2rem; /* Espacement entre les boutons */
}

.accept {
    background: linear-gradient(135deg, #28a745, #218838); /* Vert pour autoriser */
    color: white;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.deny {
    background: linear-gradient(135deg, var(--tropical-teal), var(--cerulean)); /* Rouge pour bloquer */
    color: white;
    box-shadow: 0 3px 10px rgba(82, 183, 177, 0.3);
}

.accept:hover, .deny:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.accept:active, .deny:active {
    transform: translateY(-1px);
}

/* Icônes pour boutons (Si vous ajoutez des icônes) */
.accept i, .deny i {
    margin-right: 8px;
    font-size: 0.9em;
}

/* Effet de séparation élégant (si utilisé) */
.djezzy-table-container {
    position: relative;
    padding: 1px;
    background: linear-gradient(135deg, rgba(82, 183, 177, 0.1), rgba(255,255,255,0));
    border-radius: 15px;
    margin: 3rem 0;
}

/* --- Messages d'alerte (succès, erreur) --- */
.alert {
    border-radius: 8px;
    padding: 1rem 1.5rem;
    border-left: 4px solid transparent;
    margin-bottom: 1.5rem;
    font-weight: 500; /* Rendre le texte plus lisible */
}

.alert-success {
    background-color: #f6ffed;
    border-color: #52c41a;
    color: #237804;
}

.alert-danger {
    background-color: #fff2f0;
    border-color: #ff4d4f;
    color: #1d6a7e;
}

/* Pour les messages d'erreur de validation Laravel */
.text-danger {
    color: #2A7C94; /* Rouge Bootstrap standard pour les erreurs */
    font-size: 0.85rem;
    margin-top: -10px; /* Réduit l'espace avec l'input */
    margin-bottom: 10px; /* Espacement après le message */
    display: block; /* S'assure que le message prend toute la largeur */
}


/* 🌟 Texte informatif (si utilisé) */
.info-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--tropical-teal);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--tropical-teal);
}

/* --- Menu Hamburger (Sidebar) --- */
.hamburger-menu {
    width: 280px;
    background-color: #ffffff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1050;
    border-left: 5px solid var(--tropical-teal);
    padding: 1.5rem;
    height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    display: flex; /* Utilise flexbox pour la disposition interne */
    flex-direction: column; /* Organise les éléments en colonne */
}

/* En-tête du menu */
.menu-header {
    display: flex;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 1.5rem;
}

/* Titre utilisateur */
.hamburger-menu h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--tropical-teal);
    font-size: 1.2rem;
    margin-bottom: 0;
    letter-spacing: 0.5px;
}

/* Avatar utilisateur */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--tropical-teal);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: bold;
}

/* Conteneur des sections (permet le défilement) */
.menu-sections {
    overflow-y: auto;
    flex-grow: 1; /* Permet au contenu de prendre l'espace disponible et de défiler */
    padding-right: 8px;
    margin-bottom: 1.5rem; /* Espace avant le pied de page */
}

/* Barre de défilement personnalisée */
.menu-sections::-webkit-scrollbar {
    width: 4px;
}

.menu-sections::-webkit-scrollbar-thumb {
    background-color: var(--tropical-teal);
    border-radius: 4px;
}

/* Titres des sections */
.hamburger-menu h6 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #a0a0a0;
    text-transform: uppercase;
    margin: 1.2rem 0 0.8rem;
    letter-spacing: 1px;
}

/* Liens du menu */
.hamburger-menu .nav-link {
    color: #444;
    font-weight: 500;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.hamburger-menu .nav-link:hover {
    color: var(--tropical-teal);
    background-color: var(--teal-light); /* Utilisation de la variable */
    transform: translateX(5px);
    text-decoration: none;
}

/* Icônes des liens */
.hamburger-menu .nav-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    color: var(--tropical-teal);
}

/* Ligne de séparation */
.hamburger-menu hr {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 1.5rem 0;
}

/* Pied de menu */
.menu-footer {
    padding-top: 1.5rem;
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
    margin-top: auto; /* Pousse le footer vers le bas */
}

/* Bouton de déconnexion dans le menu hamburger */
.hamburger-menu button.btn-danger {
    background: linear-gradient(135deg, var(--tropical-teal), var(--cerulean)); /* Dégradé pour le bouton */
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    padding: 10px 20px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(82, 183, 177, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; /* Assure que le texte est blanc */
}

.hamburger-menu button.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(82, 183, 177, 0.3);
    opacity: 0.9; /* Ajoute un léger effet d'opacité */
}
.hamburger-menu button.btn-danger:active {
    transform: translateY(-1px);
}


.hamburger-menu button.btn-danger i {
    margin-right: 8px;
}

/* Animation icône burger */
#hamburgerBtn .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28227,6,19, 1%29' stroke-width='2.5' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    transition: transform 0.3s ease;
}

/* Effet de surbrillance pour l'élément actif */
.hamburger-menu .nav-link.active {
    color: var(--tropical-teal);
    background-color: var(--teal-light);
    font-weight: 600;
    border-left: 3px solid var(--tropical-teal);
}

/* --- Profile Page Styling --- */
.profile-container {
    display: flex;
    justify-content: center;
    padding: 2rem;
    min-height: 80vh;
    margin-top: 70px; /* Ajuste pour la navbar fixe */
}

.profile-wrapper {
    width: 100%;
    max-width: 800px;
}

/* Sections */
.profile-section, .password-section {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(82, 183, 177, 0.05); /* Légère bordure */
}

/* Titres */
.profile-title, .password-title {
    color: var(--tropical-teal);
    font-weight: 700; /* Plus gras */
    margin-bottom: 1rem;
    font-size: 2rem; /* Légèrement plus grand */
    text-align: center; /* Centrer les titres */
    position: relative;
    padding-bottom: 0.5rem;
}

.profile-title::after, .password-title::after { /* Soulignement pour les titres */
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px; /* Longueur du soulignement */
    height: 4px;
    background-color: var(--tropical-teal);
    border-radius: 2px;
}

.profile-subtitle, .password-subtitle {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem; /* Légèrement plus petit pour un sous-titre */
    text-align: center;
}

/* Formulaire */
.form-group {
    margin-bottom: 1.8rem;
}

.wide-group {
    width: 100%;
}

.form-label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600; /* Plus gras */
    color: var(--text-dark);
    font-size: 1rem;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.form-input {
    font-family: 'Montserrat', sans-serif; /* Consistance de police */
    width: 100%;
    padding: 1rem 1.2rem; /* Réduit un peu le padding pour un look plus élégant */
    padding-left: 3rem; /* Pour l'icône */
    font-size: 1rem;
    border: 1px solid #e0e0e0; /* Bordure plus fine */
    border-radius: 8px;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

.form-input:focus {
    border-color: var(--tropical-teal);
    box-shadow: 0 0 0 3px rgba(82, 183, 177, 0.2); /* Ombre plus douce */
    outline: none;
    background-color: white; /* Fond blanc au focus */
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tropical-teal);
    font-size: 1.1em; /* Icône légèrement plus grande */
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    cursor: pointer;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--tropical-teal);
}

/* Boutons de sauvegarde */
.save-button {
    width: 100%;
    padding: 1rem; /* Réduit un peu le padding */
    background: linear-gradient(135deg, var(--tropical-teal), var(--cerulean));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600; /* Plus gras */
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem; /* Espace supplémentaire au-dessus */
    box-shadow: 0 4px 12px rgba(82, 183, 177, 0.3);
}

.save-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(82, 183, 177, 0.4);
}
.save-button:active {
    transform: translateY(-1px);
}

/* Messages d'erreur */
.error-message {
    color: #2A7C94; /* Rouge Bootstrap standard pour les erreurs */
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* --- Card (Login/General) --- */
/* Carte avec effet glassmorphism + bord arrondi très doux */
.card {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    box-shadow:
        0 8px 32px 0 rgba(82, 183, 177, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(82, 183, 177, 0.3);
    max-width: 450px;
    margin: 0 auto;
    transition: box-shadow 0.5s ease, transform 0.5s ease;
    cursor: default;
    margin-top: 100px; /* Ajuste pour la navbar fixe */
}

.card:hover {
    transform: translateY(-10px) scale(1.01); /* Moins agressif */
    box-shadow:
        0 15px 35px 0 rgba(82, 183, 177, 0.35), /* Ombre légèrement modifiée */
        0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Bordure inférieure animée, avec dégradé dynamique */
.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #52B7B1, #2A7C94, #52B7B1);
    background-size: 200% 100%; /* Important pour l'animation */
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    animation: glowingGradient 3s ease infinite;
}

/* Animation du dégradé pour effet vivant */
@keyframes glowingGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Corps de la carte avec padding généreux */
.card-body {
    padding: 30px 35px;
    position: relative;
    z-index: 1;
}

/* Titre carte élégant */
.card-title {
    color: #222;
    margin-bottom: 22px;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 0.04em;
    text-transform: capitalize;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Texte carte plus doux et agréable */
.card-text {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.7;
    letter-spacing: 0.02em;
    user-select: none;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .intro-text {
        font-size: 2.5rem;
    }

    .auth-container {
        padding: 1.5rem;
        margin: 1.5rem auto;
        margin-top: 90px; /* Ajuste pour mobile */
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }

    .profile-container {
        padding: 1rem;
        margin-top: 80px; /* Ajuste pour mobile */
    }

    .profile-section, .password-section {
        padding: 1.5rem;
    }

    .profile-title, .password-title {
        font-size: 1.5rem;
    }

    .djezzy-table th, .djezzy-table td {
        padding: 0.8rem 1rem; /* Réduit le padding des cellules */
        font-size: 0.9rem; /* Réduit la taille de police */
    }

    .accept, .deny {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        min-width: 70px;
    }

    .card {
        max-width: 90%;
        margin-top: 80px; /* Ajuste pour mobile */
    }

    .card-body {
        padding: 20px 25px;
    }
}

@media (max-width: 500px) {
    .intro-text {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }

    .auth-container {
        max-width: 95%; /* Prend plus de largeur sur petit écran */
    }

    .card-title {
        font-size: 1.4rem;
    }
}
.shadow-red {
 box-shadow: 0 4px 12px rgba(82, 183, 177, 0.4); /* Ombre rouge douce */
}

/* Harmonisation portail - inspiree du nouveau home */
.app-page {
    min-height: 100vh;
    padding-top: 86px;
    background:
        radial-gradient(circle at 14% 12%, rgba(82, 183, 177, 0.10) 0, rgba(82, 183, 177, 0.05) 20%, transparent 36%),
        radial-gradient(circle at 88% 18%, rgba(42, 124, 148, 0.08) 0, transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f5fcfc 46%, #f8fafc 100%);
    color: #1f2933;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0;
    position: relative;
}

.app-page::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(600px, 62vw);
    height: 350px;
    background: none;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.app-page .app-container {
    position: relative;
    width: min(1180px, calc(100% - 30px));
    max-width: 1180px;
}

.app-page .modal {
    z-index: 1060;
    overflow-y: auto;
    padding: 12px;
}

.app-page .modal-backdrop {
    z-index: 1050;
}

.app-page .modal-dialog {
    margin: 18px auto;
    height: calc(100vh - 36px);
    max-height: calc(100vh - 36px);
}

.app-page .modal-dialog-scrollable .modal-content,
.app-page .modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: calc(100vh - 36px);
    border-radius: 8px;
}

.app-page .modal-body {
    flex: 1 1 auto;
    max-height: calc(100vh - 170px);
    overflow-y: auto;
    padding-bottom: 110px;
}

.app-page .modal-dialog-scrollable .modal-body {
    overflow-y: auto;
}

.app-page .modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: #fff;
    border-top: 1px solid #e8edf3;
}

.app-page .modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    border-bottom: 1px solid #e8edf3;
}

.app-page .navbar-djezzy {
    z-index: 1030;
    min-height: 76px;
    padding: 0 18px;
    background: rgba(255,255,255,.95) !important;
    border-bottom: 1px solid rgba(232,237,243,.9);
    box-shadow: 0 12px 36px rgba(31,41,51,.08);
    backdrop-filter: blur(14px);
}

.app-page .navbar-brand {
    gap: 12px;
    padding-left: 0;
}

.app-page .logo {
    height: 42px !important;
}

.app-page .navbar-nav .nav-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    padding: 8px 12px;
    color: #344054 !important;
    font-size: .88rem;
    font-weight: 700;
    text-transform: none;
}

.app-page .navbar-nav .nav-link:hover,
.app-page .navbar-nav .nav-link.active {
    background: #eaf7f7;
    color: #52B7B1 !important;
}

.app-page .nav-link.active::after {
    display: none;
}

.app-page .btn,
.app-page button {
    border-radius: 8px;
    font-weight: 700;
}

.app-page .btn-danger,
.app-page .btn-primary,
.app-page .auth-container button[type="submit"],
.app-page .accept,
.app-page .deny {
    background: #52B7B1;
    border-color: #52B7B1;
    color: #fff;
    box-shadow: 0 12px 22px rgba(82,183,177,.22);
}

.app-page .btn-danger:hover,
.app-page .btn-primary:hover,
.app-page .auth-container button[type="submit"]:hover,
.app-page .deny:hover {
    background: #2A7C94;
    border-color: #2A7C94;
    transform: translateY(-1px);
}

.app-page .accept {
    background: #16a34a;
    border-color: #16a34a;
    box-shadow: 0 12px 22px rgba(22,163,74,.16);
}

.app-page .accept:hover {
    background: #15803d;
    border-color: #15803d;
    transform: translateY(-1px);
}

.app-page .intro-container {
    margin-top: 0;
    padding: 18px 0 26px;
}

.app-page .intro-text,
.app-page .display-4 {
    color: #1f2933 !important;
    text-shadow: none;
    letter-spacing: 0;
}

.app-page h1,
.app-page h2,
.app-page h3,
.app-page h4,
.app-page h5,
.app-page h6 {
    color: #1f2933;
    letter-spacing: 0;
}

.app-page .auth-container,
.app-page .card,
.app-page .profile-section,
.app-page .password-section {
    border: 1px solid #e8edf3;
    border-radius: 8px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 18px 44px rgba(31,41,51,.09);
    backdrop-filter: none;
}

.app-page .auth-container {
    max-width: 520px;
    margin-top: 20px;
    padding: 30px;
}

.app-page .register-container {
    max-width: 640px;
}

.app-page .auth-container:hover,
.app-page .card:hover {
    transform: none;
}

.app-page .auth-container h2 {
    margin-bottom: 22px;
    color: #1f2933;
    font-size: 1.55rem;
    font-weight: 800;
}

.app-page .auth-container h2::after {
    left: 0;
    right: auto;
    width: 58px;
    height: 3px;
    background: #52B7B1;
}

.app-page .auth-container:hover h2::after {
    left: 0;
    right: auto;
}

.app-page .auth-container label,
.app-page .form-label {
    color: #344054;
    font-size: .9rem;
    font-weight: 750;
}

.app-page .auth-container input,
.app-page .auth-container select,
.app-page .form-control,
.app-page .form-select {
    min-height: 46px;
    border: 1px solid #d8dee7;
    border-radius: 8px;
    background: #fff;
    color: #1f2933;
}

.app-page .auth-container input:focus,
.app-page .auth-container select:focus,
.app-page .form-control:focus,
.app-page .form-select:focus {
    border-color: #52B7B1;
    box-shadow: 0 0 0 4px rgba(82,183,177,.12) !important;
}

/* ── Admin dashboard: annule le max-width des cartes login ── */
.app-page .card {
    max-width: none !important;
    margin-top: 0 !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.app-page .card::after {
    display: none;
}

.app-page .card-body {
    padding: 28px;
}

.app-page .card-title {
    color: #1f2933;
    font-weight: 800;
    letter-spacing: 0;
    text-shadow: none;
}

.app-page .djezzy-table {
    border: 1px solid #e8edf3;
    border-radius: 8px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 18px 44px rgba(31,41,51,.09);
}

.app-page .djezzy-table th {
    background: #f8fafc;
    color: #1f2933;
    border-bottom: 1px solid #e8edf3;
    font-size: .78rem;
    letter-spacing: 0;
}

.app-page .djezzy-table td {
    border-bottom: 1px solid #eef2f7;
    color: #344054;
}

.app-page .djezzy-table tr:hover td {
    background-color: #fff8f8;
    transform: none;
}

.app-page .alert {
    border-radius: 8px;
    border-left: 0;
    box-shadow: 0 10px 24px rgba(31,41,51,.06);
}

.app-page .hamburger-menu {
    border-left: 0;
    box-shadow: -16px 0 42px rgba(18,24,33,.14);
}

@media (max-width: 768px) {
    .app-page {
        padding-top: 78px;
    }

    .app-page .app-container {
        width: min(100% - 24px, 1180px);
    }

    .app-page .auth-container {
        max-width: 100%;
        margin-top: 12px;
        padding: 22px;
    }

    .app-page .navbar-djezzy {
        padding: 0 8px;
    }

    .app-page .djezzy-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

.home-page {
    min-height: 100vh;
    padding-top: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(82, 183, 177, 0.13) 0, rgba(82, 183, 177, 0.07) 20%, transparent 38%),
        radial-gradient(circle at 88% 12%, rgba(42, 124, 148, 0.10) 0, transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f5fcfc 48%, #f8fafc 100%);
    color: #1f2933;
}

.home-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.home-navbar {
    height: 76px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(232, 237, 243, .9);
    box-shadow: 0 12px 36px rgba(20, 20, 20, 0.08);
}

.home-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #20242a;
    text-decoration: none;
    font-weight: 800;
}

.home-logo {
    height: 50px;
    max-width: 165px;
}

.home-brand-subtitle {
    display: block;
    font-size: .78rem;
    color: #6b7280;
    font-weight: 600;
}

.home-main {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 440px);
    gap: 42px;
    align-items: center;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 112px 0 46px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: 1px solid rgba(82, 183, 177, .16);
    border-radius: 999px;
    color: #1d6a7e;
    background: rgba(255, 255, 255, .78);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-title {
    margin: 24px 0 18px;
    color: #17202c;
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 1.02;
    font-weight: 800;
    max-width: 780px;
}

.hero-text {
    max-width: 680px;
    color: #5f6b7a;
    font-size: 1.08rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
}

.home-btn-primary {
    background: linear-gradient(135deg, #52B7B1 0%, #2A7C94 100%);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(42, 124, 148, .30);
    transition: all 0.3s ease;
}

.home-btn-primary:hover {
    background: linear-gradient(135deg, #2A7C94 0%, #1d6a7e 100%);
    box-shadow: 0 20px 36px rgba(42, 124, 148, .42);
    transform: translateY(-2px);
    color: #fff;
}

.home-btn-outline {
    color: #1d6a7e;
    border-color: rgba(82, 183, 177, .35);
    background: rgba(234, 247, 247, .74);
    transition: all 0.3s ease;
}

.home-btn-outline:hover {
    background: rgba(82, 183, 177, .12);
    border-color: rgba(42, 124, 148, .5);
    color: #2A7C94;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 760px;
}

.metric-card,
.login-panel {
    border-radius: 8px;
    border: 1px solid #e8edf3;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 44px rgba(31, 41, 51, .08);
}

.metric-card {
    min-height: 118px;
    padding: 18px;
}

.metric-card strong {
    display: block;
    font-size: 1.55rem;
    line-height: 1;
    margin-bottom: 10px;
}

.metric-card span {
    color: #667085;
    font-size: .88rem;
    line-height: 1.45;
}

.login-panel {
    overflow: hidden;
}

.login-panel-header {
    padding: 28px 30px 18px;
    border-bottom: 1px solid #eef0f3;
}

.login-panel-header small {
    color: #2A7C94;
    font-weight: 800;
    text-transform: uppercase;
}

.login-panel-header h2 {
    margin: 8px 0;
    font-size: 1.55rem;
    font-weight: 800;
}

.login-form {
    padding: 26px 30px 30px;
}

.field-control {
    position: relative;
    margin-bottom: 18px;
}

.field-control input {
    width: 100%;
    min-height: 48px;
    padding: 12px 44px 12px 14px;
    border: 1px solid #d8dee7;
    border-radius: 8px;
}

.field-control i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa4b2;
}

.login-submit {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #52B7B1 0%, #2A7C94 100%);
    color: #fff;
    font-weight: 800;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(42, 124, 148, .28);
    cursor: pointer;
}

.login-submit:hover {
    background: linear-gradient(135deg, #2A7C94 0%, #1d6a7e 100%);
    box-shadow: 0 12px 28px rgba(42, 124, 148, .40);
    transform: translateY(-2px);
}

.login-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    color: #667085;
    font-size: .9rem;
}

@media (max-width: 992px) {
    .home-main {
        grid-template-columns: 1fr;
        padding-top: 104px;
    }

    .login-panel {
        max-width: 560px;
    }
}

@media (max-width: 640px) {
    .home-main {
        width: min(100% - 28px, 1180px);
        padding-top: 92px;
        gap: 26px;
    }

    .hero-title {
        font-size: 2.45rem;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }
}

/* Dashboard admin */
.admin-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    border: 1px solid rgba(82, 183, 177, 0.18);
    border-radius: 12px;
    background:
        linear-gradient(110deg, rgba(255,255,255,.99) 0%, rgba(234,247,247,.97) 58%, rgba(240,251,251,.96) 100%),
        linear-gradient(90deg, rgba(82,183,177,.08), transparent);
    box-shadow: 0 18px 44px rgba(42,124,148,.10);
}

.admin-navbar .navbar-brand {
    min-width: 150px;
}

.admin-navbar .nav-link {
    white-space: nowrap;
}

.decision-panel {
    padding: 28px;
    border: 1px solid rgba(82, 183, 177, 0.18);
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fbfc 56%, #eef8f8 100%);
    box-shadow: 0 18px 44px rgba(42, 124, 148, .10);
}

.decision-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.decision-header h2 {
    margin: 0 0 6px;
    font-size: 1.45rem;
    font-weight: 800;
    color: #163640;
}

.decision-header p {
    margin: 0;
    color: #667085;
    font-weight: 500;
}

.decision-score {
    min-width: 150px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #163640;
    color: #fff;
    text-align: center;
}

.decision-score span,
.decision-kpi span,
.decision-forecast span {
    display: block;
    font-size: .76rem;
    font-weight: 800;
    color: #667085;
    text-transform: uppercase;
}

.decision-score span {
    color: rgba(255, 255, 255, .75);
}

.decision-score strong {
    display: block;
    font-size: 1.85rem;
    line-height: 1;
}

.decision-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.decision-kpi,
.decision-box {
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 10px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.decision-kpi {
    padding: 16px;
}

.decision-kpi strong {
    display: block;
    margin-top: 6px;
    font-size: 1.65rem;
    color: #2A7C94;
    line-height: 1;
}

.decision-kpi small {
    display: block;
    margin-top: 8px;
    color: #667085;
    font-weight: 600;
}

.decision-box {
    padding: 18px;
}

.decision-box h3 {
    margin: 0 0 14px;
    font-size: .98rem;
    font-weight: 800;
    color: #163640;
}

.decision-risk-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(226, 232, 240, .9);
}

.decision-risk-row:last-child,
.decision-alert:last-child {
    border-bottom: 0;
}

.decision-risk-row strong,
.decision-alert strong {
    display: block;
    color: #1f2933;
}

.decision-risk-row span,
.decision-alert p {
    display: block;
    margin: 3px 0 0;
    color: #667085;
    font-size: .84rem;
    font-weight: 500;
}

.decision-risk-row .text-end strong {
    margin-top: 5px;
    color: #2A7C94;
}

.decision-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(226, 232, 240, .9);
}

.decision-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    margin-top: 5px;
    border-radius: 999px;
}

.decision-forecast {
    padding: 12px 0;
    border-bottom: 1px solid rgba(226, 232, 240, .9);
}

.decision-forecast:last-child {
    border-bottom: 0;
}

.decision-forecast strong {
    display: block;
    margin-top: 4px;
    font-size: 1.35rem;
    color: #2A7C94;
}

.decision-recommendations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.decision-recommendations div {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 12px;
    border-radius: 8px;
    background: #f8fafc;
    color: #344054;
    font-weight: 700;
}

.decision-recommendations i {
    margin-top: 3px;
    color: #52B7B1;
}

.decision-empty {
    padding: 18px 0;
    color: #667085;
    text-align: center;
    font-weight: 600;
}

.performance-mini-stat {
    padding: 10px;
    border-radius: 8px;
    background: #f8fafc;
    text-align: center;
}

.performance-mini-stat span {
    display: block;
    color: #667085;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.performance-mini-stat strong {
    display: block;
    margin-top: 4px;
    color: #2A7C94;
    font-size: 1.25rem;
    line-height: 1;
}

.admin-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    color: #1d6a7e;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

.admin-hero p {
    max-width: 680px;
    margin: 0;
    color: #667085;
}

.admin-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.admin-stat-card {
    min-height: 142px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    border: 1px solid #e8edf3;
    border-radius: 8px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 18px 44px rgba(31,41,51,.08);
}

.admin-stat-card span {
    display: block;
    color: #667085;
    font-size: .9rem;
    font-weight: 700;
}

.admin-stat-card strong {
    display: block;
    margin-top: 8px;
    color: #1f2933;
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1;
}

.admin-stat-card i {
    color: #2A7C94;
    font-size: 2.2rem;
    opacity: .22;
}

.admin-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #eaf7f7 0%, #d0f0ee 100%);
    color: #2A7C94;
    font-weight: 800;
    border: 2px solid rgba(82, 183, 177, .25);
}

.admin-user-list .list-group-item {
    border-color: #eef2f7;
}

.admin-progress-row + .admin-progress-row {
    margin-top: 18px;
}

.admin-progress-row span {
    color: #667085;
    font-weight: 700;
}

.admin-progress-row .progress {
    height: 9px;
    margin-top: 8px;
    border-radius: 999px;
    background: #eef2f7;
}

.admin-action-grid {
    display: grid;
    gap: 12px;
}

.admin-action-grid a {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e8edf3;
    border-radius: 8px;
    background: #fff;
    color: #1f2933;
    font-weight: 800;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.admin-action-grid a:hover {
    border-color: rgba(82,183,177,.35);
    background: linear-gradient(135deg, #eaf7f7, #d0f0ee);
    color: #2A7C94;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(82, 183, 177, .12);
}

.admin-action-grid i {
    width: 22px;
    color: #52B7B1;
    text-align: center;
}

@media (max-width: 768px) {
    .admin-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .admin-hero-actions {
        width: 100%;
        justify-content: stretch;
    }

    .admin-hero-actions .btn {
        flex: 1 1 auto;
    }
}

/* Dashboard BI */
.bi-dashboard {
    margin-bottom: 42px;
    padding: 26px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0a1a22 0%, #0d2533 55%, #0a1e2a 100%);
    color: #f5f5f5;
    border: 1px solid rgba(82, 183, 177, .12);
    box-shadow: 0 24px 56px rgba(0,0,0,.35);
}

.bi-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.bi-header h1 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    font-weight: 800;
}

.bi-header p {
    margin: 0;
    color: #b8b8b8;
    font-size: 1.05rem;
    font-weight: 700;
}

.bi-live {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 18px;
    border-radius: 8px;
    background: #225a18;
    color: #8bd869;
    font-weight: 800;
}

.bi-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.bi-kpi-card,
.bi-panel {
    border: 1px solid #444;
    border-radius: 8px;
    background: #292927;
}

.bi-kpi-card {
    min-height: 154px;
    padding: 24px;
}

.bi-kpi-card span {
    display: block;
    color: #bcbcb8;
    font-size: 1rem;
    font-weight: 700;
}

.bi-kpi-card strong {
    display: block;
    margin: 10px 0 6px;
    color: #fff;
    font-size: 2.35rem;
    line-height: 1;
    font-weight: 800;
}

.bi-kpi-card small {
    font-size: .95rem;
    font-weight: 800;
}

.bi-filter {
    min-height: 54px;
    border-color: #4b4b4b;
    background: #2d2d2b;
    color: #f4f4f4;
    font-size: 1.2rem;
    font-weight: 800;
}

.bi-filter:focus {
    background: #2d2d2b;
    color: #fff;
}

.bi-panel {
    min-height: 390px;
    padding: 24px;
}

.bi-panel-wide {
    min-height: 410px;
}

.bi-panel h5 {
    margin-bottom: 18px;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
}

.bi-panel canvas {
    width: 100% !important;
    height: 300px !important;
}

.bi-panel-wide canvas {
    height: 310px !important;
}

.bi-alert-list {
    display: grid;
    gap: 0;
}

.bi-alert-row {
    min-height: 58px;
    display: grid;
    grid-template-columns: 18px minmax(130px, 180px) 1fr auto;
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.12);
    color: #c7c7c4;
}

.bi-alert-row:last-child {
    border-bottom: 0;
}

.bi-alert-row strong {
    color: #f4f4f4;
}

.bi-alert-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
}

.bi-alert-pill {
    min-width: 84px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(82,183,177,.20);
    color: #52B7B1;
    border: 1px solid rgba(82, 183, 177, .30);
    text-align: center;
    font-style: normal;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .bi-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .bi-dashboard {
        padding: 18px;
    }

    .bi-kpi-grid,
    .bi-alert-row {
        grid-template-columns: 1fr;
    }

    .bi-alert-dot {
        display: none;
    }
}



/* ============================================================
   Teal Palette â€” Classes utilitaires (remplacement du rouge)
   ============================================================ */

/* btn-teal: bouton principal gradient teal */
.btn-teal {
    background: linear-gradient(135deg, #52B7B1 0%, #2A7C94 100%);
    border: none;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(42, 124, 148, .25);
    transition: all 0.3s ease;
}
.btn-teal:hover, .btn-teal:focus {
    background: linear-gradient(135deg, #2A7C94 0%, #1d6a7e 100%);
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(42, 124, 148, .40);
    transform: translateY(-2px);
}
.btn-teal:active {
    transform: translateY(0);
}

/* btn-outline-teal: bouton contour teal */
.btn-outline-teal {
    background: transparent;
    border: 2px solid #52B7B1;
    color: #2A7C94 !important;
    font-weight: 700;
    transition: all 0.3s ease;
}
.btn-outline-teal:hover, .btn-outline-teal:focus {
    background: linear-gradient(135deg, #52B7B1 0%, #2A7C94 100%);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(42, 124, 148, .30);
    transform: translateY(-1px);
}

/* bg-teal: fond teal pour badges, etc. */
.bg-teal {
    background: linear-gradient(135deg, #52B7B1, #2A7C94) !important;
    color: #ffffff !important;
}

/* text-teal: texte teal */
.text-teal {
    color: #2A7C94 !important;
}

/* badge-teal */
.badge.bg-teal {
    background: linear-gradient(135deg, #52B7B1, #2A7C94) !important;
    color: #fff !important;
    font-weight: 700;
}

/* Remplacement Bootstrap btn-danger â†’ teal dans app-page */
.app-page .btn-danger,
.app-page .btn-primary {
    background: linear-gradient(135deg, #52B7B1 0%, #2A7C94 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 22px rgba(42,124,148,.25);
    transition: all 0.3s ease;
}
.app-page .btn-danger:hover,
.app-page .btn-primary:hover {
    background: linear-gradient(135deg, #2A7C94 0%, #1d6a7e 100%);
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(42,124,148,.40);
}

/* Remplacement bg-danger badge â†’ orange/teal neutre pour alertes */
.app-page .badge.bg-danger,
.badge.bg-danger {
    background: linear-gradient(135deg, #e07b2a, #c86010) !important;
    color: #fff !important;
}

/* text-danger conservÃ© pour erreurs de validation (lÃ©gitimes) */
.text-danger {
    color: #d44e00 !important;
    font-size: 0.85rem;
    margin-top: -8px;
    margin-bottom: 8px;
    display: block;
}

/* progress-bar bg-teal */
.progress-bar.bg-teal,
.app-page .progress-bar.bg-danger {
    background: linear-gradient(90deg, #52B7B1, #2A7C94) !important;
}

/* print header teal */
.print-header {
    border-bottom: 3px solid #52B7B1 !important;
}

@media (max-width: 992px) {
    .decision-header {
        flex-direction: column;
    }

    .decision-score {
        width: 100%;
    }

    .decision-kpi-grid,
    .decision-recommendations {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .decision-panel {
        padding: 18px;
    }

    .decision-kpi-grid,
    .decision-recommendations {
        grid-template-columns: 1fr;
    }

    .decision-risk-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .decision-risk-row .text-end {
        text-align: left !important;
    }
}
