﻿cssbody {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    font-family: 'Segoe UI', Arial !important;
}

#main {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    border-radius: 10px !important;
}

.listing {
    border-radius: 8px !important;
    overflow: hidden !important;
}

    .listing th {
        background: #2563eb !important;
        color: white !important;
    }

input[type="submit"], input[type="button"] {
    background: #2563eb !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 10px 20px !important;
}
/* SIDEBAR MODERNE VIOLETTE */
#left-column {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 12px !important;
    padding: 0 !important;
    box-shadow: 0 8px 32px rgba(118, 75, 162, 0.3) !important;
    border: none !important;
}

    /* Header de la sidebar */
    #left-column h3 {
        background: rgba(255, 255, 255, 0.15) !important;
        color: white !important;
        margin: 0 !important;
        padding: 1.2rem !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        border-radius: 12px 12px 0 0 !important;
        backdrop-filter: blur(10px) !important;
    }

/* Navigation dans la sidebar */
ul.nav {
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0.5rem !important;
}

    ul.nav li {
        background: none !important;
        border: none !important;
        padding: 0.4rem 0 !important;
        margin-bottom: 0.3rem !important;
    }

    ul.nav a {
        color: rgba(255, 255, 255, 0.9) !important;
        padding: 0.6rem 1rem !important;
        border-radius: 8px !important;
        font-weight: 500 !important;
        transition: all 0.3s ease !important;
        display: block !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }

        ul.nav a:hover {
            background: rgba(255, 255, 255, 0.2) !important;
            color: white !important;
            transform: translateX(4px) !important;
            text-decoration: none !important;
        }
    /* SIDEBAR ULTRA COMPACTE */
    ul.nav li {
        padding: 0 !important; /* Supprime tout padding */
        margin: 0 !important; /* Supprime toute marge */
    }

    ul.nav a {
        color: rgba(255, 255, 255, 0.9) !important;
        padding: 0.25rem 1rem !important; /* Minimum vital */
        border-radius: 4px !important;
        font-weight: 500 !important;
        transition: all 0.3s ease !important;
        display: block !important;
        background: rgba(255, 255, 255, 0.1) !important;
        font-size: 12px !important;
        line-height: 1.1 !important; /* Très serré */
    }

#left-column h3 {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    margin: 0 !important;
    padding: 0.5rem 1rem !important; /* Minimum */
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 12px 12px 0 0 !important;
}

ul.nav {
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0.2rem !important; /* Ultra minimal */
}

/* Supprimer l'espace entre les sections */
#left-column {
    padding: 0 !important;
}
/* CORRIGER LE CHEVAUCHEMENT */
ul.nav li {
    padding: 1px 0 !important; /* Juste un pixel pour séparer */
    margin: 0 !important;
    clear: both !important; /* Éviter le chevauchement */
}

ul.nav a {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.3rem 1rem !important; /* Un peu plus d'espace */
    border-radius: 4px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: block !important;
    background: rgba(255, 255, 255, 0.1) !important;
    font-size: 12px !important;
    line-height: 1.2 !important; /* Un peu plus d'espace pour la lisibilité */
    margin-bottom: 1px !important; /* Micro séparation */
}

/* Assurer que les sections ne se chevauchent pas */
ul.nav {
    background: transparent !important;
    border: none !important;
    margin: 0 0 2px 0 !important; /* Petit espace entre sections */
    padding: 0.2rem !important;
    overflow: hidden !important; /* Éviter les débordements */
}
/* CORRIGER LE DÉBORDEMENT DES TITRES */
#left-column h3 {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    margin: 0 !important;
    padding: 0.5rem 0.8rem !important; /* Réduire le padding horizontal */
    font-size: 11px !important; /* Réduire la taille */
    font-weight: 600 !important;
    border-radius: 12px 12px 0 0 !important;
    word-wrap: break-word !important; /* Forcer le retour à la ligne */
    white-space: normal !important; /* Permettre les retours à la ligne */
    overflow: hidden !important; /* Cacher le débordement */
    text-overflow: ellipsis !important; /* Ajouter "..." si trop long */
    width: 100% !important; /* Forcer la largeur */
    box-sizing: border-box !important; /* Inclure padding dans la largeur */
}
/* CORRIGER L'ESPACE DANS LA SECTION CONNECTION */
#left-column .nav li {
    line-height: 1.1 !important;
}

#left-column br {
    display: none !important; /* Supprimer les <br> */
}

#left-column span {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Forcer les liens de connection à être compacts */
#left-column a[id*="LinkButton"] {
    margin: 1px 0 !important;
    padding: 0.3rem 1rem !important;
}
/* CORRIGER LA TRONCATURE DES TITRES */
#left-column h3 {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    margin: 0 !important;
    padding: 0.6rem 0.8rem !important; /* Augmenter le padding vertical */
    font-size: 11px !important;
    font-weight: 600 !important;
    border-radius: 12px 12px 0 0 !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    overflow: visible !important; /* Changer de hidden à visible */
    text-overflow: clip !important; /* Enlever ellipsis */
    width: 100% !important;
    box-sizing: border-box !important;
    line-height: 1.3 !important; /* Ajouter une hauteur de ligne correcte */
    height: auto !important; /* Hauteur automatique */
    min-height: 2.2rem !important; /* Hauteur minimum pour éviter la troncature */
}
/* RÉDUIRE LES MARGES GÉNÉRALES */
#middle {
    padding: 1rem !important; /* Réduire de 2rem à 1rem */
    gap: 1rem !important; /* Réduire l'espace entre sidebar et contenu */
}

#center-column {
    padding: 1rem !important; /* Réduire le padding interne */
    min-height: auto !important;
}

/* Réduire l'espace du header */
#header {
    padding: 0.5rem 1rem !important; /* Compacter le header */
    height: auto !important;
}

/* Compacter la zone principale */
.table {
    margin: 0 !important; /* Supprimer les marges du container table */
}

/* Réduire l'espace des formulaires */
.listing {
    margin-bottom: 1rem !important; /* Réduire l'espace en bas */
}

    .listing td, .listing th {
        padding: 0.5rem !important; /* Réduire le padding des cellules */
    }

/* Compacter les contrôles de formulaire */
.select-bar {
    padding: 0.3rem 0 !important; /* Réduire l'espace des barres */
    margin: 0 0 1rem 0 !important;
}
/* FOND MODERNE QUI S'HARMONISE */
body {
    background: #f8fafc !important; /* Gris très clair moderne */
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important;
}
/* Réduire encore plus les espaces pour utiliser tout l'écran */
#main {
    margin: 10px auto !important; /* Réduire les marges du container principal */
    max-width: 98% !important; /* Utiliser plus de largeur d'écran */
}
/* SUPPRIMER LES IMAGES DE FOND BLEUES */
#header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

#middle {
    background: none !important;
    background-color: transparent !important;
}

#footer {
    background: none !important;
    background-color: transparent !important;
}

#center-column {
    background: white !important;
    border-radius: 12px !important;
}
/* DESIGN PLUS HARMONIEUX */
body {
    background: #f1f5f9 !important; /* Gris clair uniforme */
}

#header {
    background: #1e293b !important; /* Gris foncé moderne au lieu du violet */
    color: white !important;
}

#main {
    background: white !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    margin: 20px auto !important;
    max-width: 95% !important;
}

#middle {
    background: white !important;
    padding: 1rem !important;
}

#center-column {
    background: white !important;
    border-radius: 0 !important; /* Enlever les coins arrondis pour plus de simplicité */
}
/* RESET - SUPPRIMER L'ANCIEN DESIGN */
#main {
    width: 100% !important;
    margin: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

#middle {
    display: block !important;
    grid-template-columns: none !important;
    padding: 0 !important;
    background: #f1f5f9 !important;
}

/* HEADER ORANGE MODERNE */
#header {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.5rem 1rem !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

/* BOUTON HAMBURGER */
.hamburger-btn {
    background: rgba(255,255,255,0.2) !important;
    border: none !important;
    color: white !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

    .hamburger-btn:hover {
        background: rgba(255,255,255,0.3) !important;
    }

/* LOGO DANS LE HEADER */
#header .logo {
    position: static !important;
    margin-left: auto !important;
}

    #header .logo img {
        width: 80px !important;
        height: 35px !important;
        filter: brightness(0) invert(1) !important;
    }

/* SIDEBAR ESCAMOTABLE */
#left-column {
    position: fixed !important;
    top: 50px !important;
    left: -280px !important; /* Cachée par défaut */
    width: 280px !important;
    height: calc(100vh - 50px) !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    z-index: 999 !important;
    transition: left 0.3s ease !important;
    overflow-y: auto !important;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1) !important;
}

    #left-column.open {
        left: 0 !important; /* Visible quand ouverte */
    }

/* CONTENU PRINCIPAL */
body {
    margin: 0 !important;
    padding-top: 45px !important; /* Espace pour le header fixe */
    background: #f1f5f9 !important;
}

#center-column {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    background: transparent !important;
    float: none !important;
    min-height: calc(100vh - 60px) !important;
}

/* OVERLAY POUR FERMER LA SIDEBAR */
.sidebar-overlay {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0,0,0,0.5) !important;
    z-index: 998 !important;
    display: none !important;
}

    .sidebar-overlay.active {
        display: block !important;
    }

/* TABLEAUX PLEINE LARGEUR */
.listing {
    width: 100% !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    background: white !important;
    margin-bottom: 2rem !important;
}

/* FORMULAIRES MODERNES */
.table {
    background: white !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    margin-bottom: 2rem !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    #left-column {
        width: 100% !important;
        left: -100% !important;
    }

    #center-column {
        padding: 1rem !important;
    }
}
/* SUPPRIMER LA BARRE VIDE */
.select-bar {
    display: none !important;
}
/* UNIFORMISER LA LARGEUR DANS #MAIN */
#main > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Spécifiquement pour les éléments principaux */
#header,
#middle,
#footer {
    width: 100% !important;
    max-width: 100% !important;
}

    /* S'assurer que le contenu ne déborde pas */
    #middle * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
/* SUPPRIMER LE CADRE INUTILE DE .table */
div.table {
    float: none !important;
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    top: auto !important;
    left: auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* S'assurer que le contenu prend toute la place */
#newdoc {
    width: 100% !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}
/* SUPPRIMER LES ESPACES DU CENTER-COLUMN */
#center-column {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    background: transparent !important;
    min-height: auto !important;
}
/* ÉLIMINER LES DERNIERS ESPACES BLANCS */
body {
    margin: 0 !important;
    padding: 45px 0 0 0 !important; /* Juste l'espace pour le header */
}

#middle {
    padding: 0 !important;
    margin: 0 !important;
    background: #f1f5f9 !important;
}

/* Le tableau principal qui contient tout */
table.listing {
    margin: 0 !important;
    border-radius: 0 !important; /* Supprimer les coins arrondis pour toucher les bords */
}

/* Supprimer les marges des containers */
.listing td {
    border: none !important; /* Supprimer les bordures qui créent des espaces */
}

    /* S'assurer que le contenu touche les bords */
    #center-column > * {
        margin: 0 !important;
    }

    /* Garder juste un petit padding pour le contenu si nécessaire */
    #center-column .listing {
        margin: 0 !important; /* Juste une petite marge pour la lisibilité */
    }
/* RÉTABLIR LES SÉPARATIONS DES SECTIONS */
.listing td {
    border: 1px solid #e5e7eb !important; /* Remettre les bordures */
    background: #f9fafb !important;
}

.listing th {
    border: 1px solid #fff !important;
    background: #2563eb !important;
    color: white !important;
}

/* Séparer visuellement les différentes sections */
.listing tr {
    border-bottom: 1px solid #d1d5db !important;
}

/* Alternative : utiliser un fond différent pour chaque section */
.listing tbody tr:nth-child(odd) {
    background: #f9fafb !important;
}

.listing tbody tr:nth-child(even) {
    background: white !important;
}
.listing {
    margin-left: 0 !important;
    margin-right: auto !important;
}
/* RÉCUPÉRER LE DESIGN MODERNE */

/* Header orange moderne */
#header {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.5rem 1rem !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
}

/* Supprimer les images de fond bleues */
#middle {
    background: none !important;
    background-color: #f1f5f9 !important;
}

#footer {
    background: none !important;
}

#center-column {
    background: white !important;
    border-radius: 12px !important;
}

/* Layout moderne */
body {
    padding-top: 45px !important;
    background: #f1f5f9 !important;
}

#main {
    width: 100% !important;
    margin: 0 !important;
    background: none !important;
}

/* Supprimer les espaces inutiles */
div.table {
    float: none !important;
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

#center-column {
    padding: 0 !important;
    width: 100% !important;
}
/* SUPPRIMER LE CONTOUR BLANC */
#main {
    width: 100% !important;
    margin: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

#center-column {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 1rem !important;
}

/* Ajuster le tableau pour les espaces équilibrés */
.listing {
    width: 96% !important;
    margin: 0 2% !important;
    background: white !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}
/* ÉLIMINER TOUT L'ESPACE INUTILE */
.listing {
    width: 100% !important;
    margin: 0 !important;
    background: white !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Supprimer tous les paddings qui créent de l'espace */
#center-column {
    padding: 0 !important;
}

#middle {
    padding: 0 !important;
}

/* Le tableau touche les bords */
body {
    margin: 0 !important;
    padding-top: 45px !important;
}

/* Plus de bordures ou espaces */
#main {
    margin: 0 !important;
    padding: 0 !important;
}
/* NEUTRALISER TOUTES LES IMAGES ET LARGEURS FIXES */
#header {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    width: 100% !important;
}

#main {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

#middle {
    background: #f1f5f9 !important;
    width: 100% !important;
}

#center-column {
    background: white !important;
    width: 100% !important;
}

.listing {
    width: 100% !important;
    max-width: 100% !important;
}
/* SUPPRIMER L'ESPACE ENTRE HEADER ET CONTENU */
body {
    padding-top: 45px !important; /* Réduire l'espace */
    margin: 0 !important;
}

#main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#middle {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Le bloc gris colle directement au header orange */
.listing {
    margin-top: 0 !important;
}

/* Supprimer tout espace vertical inutile */
#center-column {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* CORRIGER SPÉCIFIQUEMENT ACCEUIL.ASPX */

/* Le MultiView et View créent un espace */
.asp-multiview, .asp-view {
    margin: 0 !important;
    padding: 0 !important;
}

/* La div table dans Acceuil.aspx */
#newdoc {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Le container spécifique à cette page */
#ctl00_ContentPlaceHolder1_MultiView1 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Forcer tous les contrôles ASP.NET à ne pas créer d'espace */
div[id*="ContentPlaceHolder1"] {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* FORCER TOUS LES ÉLÉMENTS D'ACCEUIL À COLLER AU HEADER */
form[action*="Acceuil.aspx"] * {
    margin-top: 0 !important;
}

/* Cibler spécifiquement les éléments d'Acceuil.aspx */
#ctl00_ContentPlaceHolder1_newdoc {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Le premier élément visible dans Acceuil */
table.listing:first-of-type {
    margin-top: 0 !important;
}

/* Override total pour cette page */
body[id*="Acceuil"] #main,
body[id*="Acceuil"] #middle,
body[id*="Acceuil"] #center-column {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* OVERRIDE TOTAL DU PADDING CENTER-COLUMN */
#center-column {
    padding: 0  !important;  /* Enlever les 12px du top */
    background: white !important;  /* Supprimer l'image de fond aussi */
}
#header {
    background: linear-gradient(135deg, #374151, #1f2937) !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.5rem 1rem !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    margin: 0 !important;
}



    #header .logo {
        position: static !important;
        margin-left: auto !important;
        background: none !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

        #header .logo img {
            width: 80px !important;
            height: 45px !important;
            filter: none !important;
        }
.date-column {
    width: 250px !important;
}

#header .logo img {
    width: auto !important;
    height: 45px !important;
    max-width: none !important;
    object-fit: contain !important;
    filter: none !important;
}
#header {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.hamburger-btn {
    margin-top: 0 !important;
    top: 0 !important;
}
#header * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
#header {
    padding: 0 1rem !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.hamburger-btn {
    margin: 0 !important;
}
#main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
#left-column {
    width: 200px !important;
    left: -200px !important;
}
/* === CARTES CARRÉES COMPACTES === */
.dashboard-metrics {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    overflow-x: auto; /* Scroll horizontal si nécessaire */
    padding: 8px 0;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
   /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
    /*transition: all 0.3s ease;*/
    border-left: 4px solid #e5e7eb;
    position: relative;
    /* === DIMENSIONS CARRÉES COMPACTES === */
    min-width: 160px;
    max-width: 160px;
    height: 160px;
    /* === FLEXBOX POUR CENTRER LE CONTENU === */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

    .metric-card:hover {
       /* transform: translateY(-4px);*/
     /*   box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);*/
    }

    /* === COULEURS DES BORDURES === */
    .metric-card.danger {
        border-left-color: #ef4444;
    }

    .metric-card.warning {
        border-left-color: #f59e0b;
    }

    .metric-card.success {
        border-left-color: #10b981;
    }

    .metric-card.info {
        border-left-color: #3b82f6;
    }

/* === HEADER COMPACT === */
.card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
}

.card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    margin-bottom: 6px;
}

.danger .card-icon {
    background: #ef4444;
}

.warning .card-icon {
    background: #f59e0b;
}

.success .card-icon {
    background: #10b981;
}

.info .card-icon {
    background: #3b82f6;
}

.card-title {
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

/* === VALEUR PRINCIPALE === */
.card-value {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin: 8px 0;
}

.card-subtitle {
    font-size: 10px;
    color: #9ca3af;
    line-height: 1.2;
    text-align: center;
}

/* === BADGE DE STATUT COMPACT === */
.status-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .status-badge.high {
        background: #fef2f2;
        color: #dc2626;
    }

    .status-badge.medium {
        background: #fffbeb;
        color: #d97706;
    }

    .status-badge.low {
        background: #f0fdf4;
        color: #16a34a;
    }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .metric-card {
        min-width: 140px;
        max-width: 140px;
        height: 140px;
        padding: 12px;
    }

    .card-value {
        font-size: 28px;
    }

    .card-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .dashboard-metrics {
        gap: 8px;
        padding: 4px;
    }

    .metric-card {
        min-width: 120px;
        max-width: 120px;
        height: 120px;
        padding: 10px;
    }

    .card-value {
        font-size: 24px;
    }

    .card-title {
        font-size: 10px;
    }

    .card-subtitle {
        font-size: 9px;
    }

    .card-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

/* === SCROLL HORIZONTAL STYLÉ === */
.dashboard-metrics::-webkit-scrollbar {
    height: 6px;
}

.dashboard-metrics::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.dashboard-metrics::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

    .dashboard-metrics::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

/* === ANIMATION AU SURVOL === */
.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    border-radius: 12px;
}

.metric-card:hover::before {
    /*transform: translateX(100%);*/
}
/* === NEUTRALISER TOUS LES EFFETS SUR LES CARTES === */
.metric-card,
.metric-card *,
.dashboard-metrics,
.dashboard-metrics * {
    transition: none !important;
    transform: none !important;
    animation: none !important;
}

    .metric-card:hover,
    .metric-card:hover *,
    .metric-card::before,
    .metric-card:hover::before {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }

/* Forcer les cartes à être complètement immobiles */
#Panel4 * {
    transition: none !important;
    transform: none !important;
    animation: none !important;
}