/* global.css */

/* Reset de base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body général */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #212529;
}

/* Liens */
a {
    color: #0d6efd;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Boutons personnalisés */
.btn {
    transition: all 0.2s ease-in-out;
    border-radius: 4px;
}

/* Titres */
h1, h2, h3, h4, h5 {
    font-weight: 600;
    color: #212529;
}

/* Containers */
.container {
    max-width: 960px;
    margin: auto;
}

/* Marges utiles */
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.text-center {
    text-align: center;
}
/* Style personnalisé pour le dropdown utilisateur */
.navbar .dropdown-menu {
    background-color: #1f1f1f;
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.navbar .dropdown-item {
    color: #f8f9fa;
    padding: 10px 15px;
    transition: background 0.2s ease-in-out;
    border-radius: 6px;
    font-weight: 500;
}

.navbar .dropdown-item:hover {
    background-color: #343a40;
    color: #ffffff;
}

.navbar .dropdown-divider {
    border-color: #6c757d;
}

.navbar .dropdown-toggle::after {
    margin-left: 0.4em;
}
.navbar .nav-link img {
    border: 2px solid #fff;
    transition: transform 0.2s ease-in-out;
}

.navbar .nav-link:hover img {
    transform: scale(1.1);
}
.navbar-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid white;
}
.dropdown-menu {
    display: block !important;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease-in-out;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.dropdown-menu.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}


.elec-coin-badge {
    background: linear-gradient(135deg, #ffc107, #ffdd57);
    color: #333;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.elec-coin-badge:hover {
    background: linear-gradient(135deg, #ffcd39, #ffe57f);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
}
a {
    text-decoration: none;
}

a:hover {
    text-decoration: none !important; /* 🔥 empêche les overrides Bootstrap ou autres */
}
.notification-badge.animate {
    animation: pulse-badge 0.4s ease;
}

/* ✅ Badge de notification (aligné à droite de la cloche) */
.notification-badge {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translate(-40%, -50%);
    background-color: #dc3545;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
    z-index: 10;
    display: none;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

/* 🔧 Contexte de positionnement */
#notifIcon {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* 💥 Animation rebond légère */
@keyframes pulse-badge {
    0%   { transform: scale(0.8) translate(-40%, -50%); opacity: 0.5; }
    50%  { transform: scale(1.2) translate(-40%, -50%); opacity: 1; }
    100% { transform: scale(1) translate(-40%, -50%); }
}
