:root {
    --primary-color: #ea580c;
    --primary-hover: #E55D00;
    --secondary-color: #1E90FF;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F8FAFC;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    background-color: #fff !important;
}

.avatar-bg {
    background-color: <?php echo $user['avatar_bg']; ?>;
    transition: all 0.3s ease;
}

.avatar-bg:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.progress-ring__circle {
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: progress 1.5s ease-in-out forwards;
    transition: stroke-dashoffset 0.5s ease;
}

@keyframes progress {
    from { stroke-dashoffset: 283; }
    to { stroke-dashoffset: <?php echo 283 - (283 * ($user['rating'] / 5)); ?>; }
}

.active-tab {
    /*border-bottom: 3px solid var(--primary-color);
    color: var(--primary-color);*/
    font-weight: 600;
    background-color: #4b556340;
}

.active-tab .bg-gray-200 {
    color: #fff;
    background-color: #4b5563 !important;
}

.hover-effect {
    transition: all 0.3s ease;
}

.hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.stats-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-left-color: var(--primary-color);
}

.category-progress {
    transition: width 1s ease-in-out;
}

.notification-dot {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 107, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

.nav-tabs {
    scrollbar-width: none;/*thin;*/
    scrollbar-color: var(--primary-color) #f1f1f1;
}

.nav-tabs::-webkit-scrollbar {
    height: 4px;
}

.nav-tabs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.nav-tabs::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Correction pour le badge d'avatar */
.avatar-container {
    
}

.avatar-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    z-index: 10; /* S'assurer que le badge est au-dessus */
    background-color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ea580c;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Correction pour les points de notification */
.notification-container {
    position: relative;
    display: inline-flex;
}

.fixed-notification-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    background-color: #ea580c;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 10;
    animation: pulse 2s infinite;
}

.mini-stat {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.mini-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.mini-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ea580c;
    margin-bottom: 5px;
}

.mini-stat-label {
    font-size: 0.8rem;
    color: #64748b;
}

@media (max-width: 768px) {
    .mobile-stack {
        flex-direction: column;
    }
      
    .mobile-center {
        text-align: center;
        justify-content: center;
    }
    
    .mobile-full {
        width: 100%;
    }
}

.bg-sombre-500 {
    background-color: #4b5563;
}

.bg-pro-500 {
    background-color: #059669;
}

.bg-vert {
    background-color: #4b5563e0;
}
        
.bg-teal-600 {
  background-color: #0d9488;
}
.bg-orange-500 {
  background-color: #ea580c;
}
.bg-amber-500 {
    background-color: #f59e0b;
}

.voir-plus {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1.1rem;
    transition: color 0.2s ease;
    margin-right: 20px;
}

.custom-badge {
   position: absolute;
   top: 0.75rem;   /* top-3 = 0.75rem */
   right: 0.75rem; /* right-3 = 0.75rem */
   background-color: rgba(255, 255, 255, 0.9); /* bg-white/90 */
   padding: 0.25rem 0.5rem; /* px-2 py-1 */
   border-radius: 9999px; /* rounded-full */
   font-size: 0.75rem; /* text-xs */
   font-weight: 600; /* font-semibold */
   box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
 }
 
  .custom-badge-contrast {
   position: absolute;
   top: 0.75rem;
   right: 0.75rem;
   background-color: rgba(55, 65, 81, 0.9);
   color: white;
   padding: 0.25rem 0.5rem;
   border-radius: 9999px;
   font-size: 0.75rem;
   font-weight: 600;
   box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
   z-index: 10;
 }
 
 /* Ajoutez ces styles dans votre fichier moncompte.css */

.graph-bar {
    flex: 1;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    min-width: 8px;
}

.graph-bar-40 {
    height: 40%;
    background-color: rgba(254, 215, 170, 1); /* orange-200 */
}

.graph-bar-60 {
    height: 60%;
    background-color: rgba(253, 186, 116, 1); /* orange-300 */
}

.graph-bar-70 {
    height: 70%;
    background-color: rgba(251, 146, 60, 0.9); /* orange-400 avec légère transparence */
}

.graph-bar-80 {
    height: 80%;
    background-color: rgba(251, 146, 60, 1); /* orange-400 */
}

.graph-bar-100 {
    height: 100%;
    background-color: rgba(249, 115, 22, 1); /* orange-500 */
}

.graph-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    height: 96px; /* h-24 = 96px */
    gap: 0.25rem; /* gap-1 */
    margin-bottom: 0.5rem; /* mb-2 */
}

@media (min-width: 768px) {
    .md\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
        padding-top: 7.2rem;
    }
}

.btn_ann {
    margin-top: 15px;
}