/* ===== VARIABLES CSS ===== */
:root {
    --primary: #E6007E;
    --primary-dark: #c4006a;
    --secondary: #FF9900;
    --secondary-dark: #e68a00;
    --dark: #363636;
    --light: #f8f9fa;
    --success: #E6007E;
    --warning: #FF9900;
    --danger: #e74c3c;
    --info: #363636;
    --purple: #E6007E;
    --background: #00749B;
    
    /* Gradients avec la charte graphique officielle */
    --gradient-primary: linear-gradient(135deg, #E6007E 0%, #FF6B9D 100%);
    --gradient-secondary: linear-gradient(135deg, #FF9900 0%, #FFB84D 100%);
    --gradient-dark: linear-gradient(135deg, #363636 0%, #4a4a4a 100%);
    --gradient-success: linear-gradient(135deg, #E6007E 0%, #FF6B9D 100%);
    --gradient-background: linear-gradient(135deg, #00749B 0%, #005a7a 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
    --shadow-xl: 0 12px 24px rgba(0,0,0,0.25);
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== RESET ET BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradient-background);
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== ANIMATIONS GLOBALES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===== HEADER AMÉLIORÉ ===== */
header {
    background: var(--gradient-dark);
    color: white;
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    min-height: 80px;
}

header::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%);
    animation: shimmer 3s infinite;
}

header > div {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeInUp 0.8s ease;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== LOGO AMÉLIORÉ ===== */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-normal);
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: var(--shadow-md);
    animation: pulse 2s infinite;
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: slideInLeft 0.8s ease 0.2s both;
}

#logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #E6007E !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.08);
    margin: 0;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.5px;
}

/* ===== INFORMATIONS DE DATE ET HEURE AMÉLIORÉES ===== */
.header-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    animation: slideInRight 0.8s ease 0.4s both;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition-normal);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition-normal);
}

.info-item:hover::before {
    left: 100%;
}

.info-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.info-item:hover .info-icon {
    animation: bounce 0.6s ease;
}

.info-icon {
    font-size: 1.2rem;
    color: var(--secondary);
}

#date, #clock {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

/* ===== NAVIGATION OPTIONNELLE ===== */
.header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    font-weight: 500;
}

.nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}

.nav-link.active {
    color: white;
    background: var(--primary);
}

/* ===== RESPONSIVE POUR LE HEADER ===== */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    
    header > div {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .logo-container {
        justify-content: center;
    }
    
    .header-info {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .info-item {
        width: 100%;
        justify-content: center;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    #logo {
        font-size: 1.5rem;
    }
    
    .logo-subtitle {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .logo-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header-info {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .info-item {
        width: auto;
        min-width: 120px;
    }
}

@media (max-width: 360px) {
    .logo-container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .logo-text {
        align-items: center;
    }
    
    .header-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .info-item {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    #logo {
        font-size: 1.3rem;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
    }
}

/* ===== CONTAINER PRINCIPAL ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

main {
    background: rgba(255,255,255,0.95);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    margin: 2rem 0;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* ===== FORMULAIRES ===== */
form {
    display: grid;
    gap: 1.5rem;
    animation: slideInLeft 0.8s ease 0.6s both;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e1e5e9;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition-normal);
    background: white;
    position: relative;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 0, 126, 0.1);
    transform: translateY(-2px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--primary-dark);
}

/* ===== BOUTONS ===== */
button, .btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

button::before, .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition-normal);
}

button:hover::before, .btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

/* ===== ZONE D'UPLOAD ===== */
#uploadZone {
    border: 3px dashed var(--secondary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    margin: 1rem 0;
    background: linear-gradient(135deg, rgba(255,153,0,0.05) 0%, rgba(255,153,0,0.1) 100%);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

#uploadZone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,153,0,0.1) 50%, transparent 70%);
    animation: shimmer 4s infinite;
}

#uploadZone:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(230,0,126,0.05) 0%, rgba(230,0,126,0.1) 100%);
    transform: scale(1.02);
}

#uploadZone p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

#uploadZone input[type="file"] {
    position: relative;
    z-index: 2;
    cursor: pointer;
    padding: 1rem;
    border: 2px solid var(--secondary);
    border-radius: var(--radius-md);
    background: white;
    transition: var(--transition-normal);
}

#uploadZone input[type="file"]:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

#uploadZone input[type="file"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 0, 126, 0.1);
}

/* ===== MESSAGES ===== */
.success, .success-box {
    background: linear-gradient(135deg, #E6007E 0%, #FF6B9D 100%);
    color: white;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-left: 5px solid #E6007E;
    animation: fadeInUp 0.5s ease;
    position: relative;
    overflow: hidden;
}

.success::before, .success-box::before {
    content: '✅';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.error {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-left: 5px solid #c0392b;
    animation: fadeInUp 0.5s ease;
    position: relative;
    overflow: hidden;
}

.error::before {
    content: '❌';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

/* ===== MESSAGES D'INFORMATION AMÉLIORÉS ===== */
.info-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: var(--dark);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--primary);
    border: 2px solid rgba(230, 0, 126, 0.2);
    animation: fadeInUp 0.5s ease;
    position: relative;
}

.info-box h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.info-box p {
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.info-box small {
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(230, 0, 126, 0.05);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

.warning-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--warning);
    border: 2px solid rgba(255, 153, 0, 0.3);
    animation: fadeInUp 0.5s ease;
    position: relative;
}

.warning-box::before {
    content: '⚠️';
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
}

.warning-box p {
    color: #856404;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.important-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-left: 5px solid #2196f3;
    border: 2px solid rgba(33, 150, 243, 0.3);
    animation: fadeInUp 0.5s ease;
    position: relative;
}

.important-info::before {
    content: '📋';
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
}

.important-info h4 {
    color: #1565c0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.important-info p {
    color: #1565c0;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.important-info ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.important-info li {
    color: #1565c0;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* ===== TEXTE AVEC EMOJIS AMÉLIORÉ ===== */
.emoji-text {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin: 0.25rem 0;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(230, 0, 126, 0.2);
}

.emoji-text.warning {
    background: rgba(255, 193, 7, 0.9);
    color: #856404;
    border-color: rgba(255, 193, 7, 0.5);
}

.emoji-text.info {
    background: rgba(33, 150, 243, 0.9);
    color: white;
    border-color: rgba(33, 150, 243, 0.5);
}

.emoji-text.success {
    background: rgba(76, 175, 80, 0.9);
    color: white;
    border-color: rgba(76, 175, 80, 0.5);
}

/* ===== LIEN DE PROFIL AMÉLIORÉ ===== */
.profile-link-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(230, 0, 126, 0.2);
    animation: fadeInUp 0.5s ease;
}

.profile-link-container h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.profile-link-container input[type="text"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: white;
    color: var(--dark);
    margin-bottom: 1rem;
}

.profile-link-container button {
    background: var(--gradient-primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    margin-right: 1rem;
}

.profile-link-container button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.profile-link-container small {
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(230, 0, 126, 0.05);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

.success-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(230, 0, 126, 0.1);
    text-align: center;
}

.success-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-secondary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.success-actions .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: white;
    text-decoration: none;
}

/* ===== PAGE HEADER ===== */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header .subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

/* ===== STATISTIQUES ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(230,0,126,0.05) 50%, transparent 70%);
    animation: shimmer 4s infinite;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.stat-icon {
    font-size: 2.5rem;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--dark);
    margin: 0;
    line-height: 1;
}

.stat-content p {
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* ===== HISTORIQUE AMÉLIORÉ ===== */
.history-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    margin: 2rem 0;
    animation: fadeInUp 0.8s ease 0.4s both;
    border: 2px solid rgba(230,0,126,0.1);
}

.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid #f1f3f4;
    position: relative;
}

.history-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.history-header h2 {
    font-size: 2rem;
    color: var(--dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.history-count {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.history-timeline {
    position: relative;
    padding-left: 3rem;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--success));
    border-radius: 2px;
    box-shadow: var(--shadow-sm);
}

.history-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--primary);
    transition: var(--transition-normal);
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.6s ease forwards;
}

.history-item:hover {
    transform: translateX(15px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.history-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 2rem;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.history-item.creation::before {
    background: var(--primary);
}

.history-item.modification::before {
    background: var(--secondary);
}

.history-item.regeneration_cle::before {
    background: var(--dark);
}

.history-item.upload_cv::before {
    background: var(--primary);
}

.history-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.history-icon-item {
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230,0,126,0.1);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.history-action {
    font-weight: 700;
    color: var(--dark);
    flex: 1;
    font-size: 1.1rem;
}

.history-timestamp {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    background: rgba(0,0,0,0.05);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-details {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(230,0,126,0.05) 0%, rgba(255,153,0,0.05) 100%);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
}

.change-detail {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid #e1e5e9;
}

.change-detail:last-child {
    margin-bottom: 0;
}

.old-value {
    color: var(--danger);
    text-decoration: line-through;
    font-weight: 500;
}

.new-value {
    color: var(--primary);
    font-weight: 600;
}

.history-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e5e9;
    text-align: right;
}

.history-meta small {
    color: #999;
    font-size: 0.8rem;
}

/* ===== ÉTAT VIDE ===== */
.empty-history {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.empty-history h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.empty-history p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ===== SECTION D'ACTIONS ===== */
.action-section {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.action-section .btn {
    min-width: 200px;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
}

/* ===== RESPONSIVE POUR L'HISTORIQUE ===== */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        width: 3rem;
        height: 3rem;
        font-size: 2rem;
    }
    
    .history-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .history-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .history-timeline {
        padding-left: 2rem;
    }
    
    .history-item::before {
        left: -1.5rem;
        width: 1rem;
        height: 1rem;
    }
    
    .action-section {
        flex-direction: column;
    }
    
    .action-section .btn {
        min-width: auto;
    }
}

/* ===== ANIMATIONS SPÉCIALES POUR L'HISTORIQUE ===== */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.history-item:nth-child(odd) {
    animation-delay: 0.1s;
}

.history-item:nth-child(even) {
    animation-delay: 0.2s;
}

/* ===== EFFETS DE SURVOL AVANCÉS ===== */
.stat-card:hover .stat-icon {
    animation: pulse 1s infinite;
}

.history-item:hover .history-icon-item {
    animation: pulse 1s infinite;
}

/* ===== LOADING STATES ===== */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
    height: 20px;
    margin: 0.5rem 0;
}

/* ===== SCROLLBAR PERSONNALISÉE POUR L'HISTORIQUE ===== */
.history-timeline::-webkit-scrollbar {
    width: 6px;
}

.history-timeline::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.history-timeline::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 3px;
}

.history-timeline::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== PAGE DE LOGIN ADMIN ===== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-background);
    padding: 2rem;
}

.login-form {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255,255,255,0.2);
    max-width: 400px;
    width: 100%;
    animation: fadeInUp 0.8s ease;
}

.login-form h2 {
    text-align: center;
    color: var(--dark);
    margin-bottom: 2rem;
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-form input {
    width: 100%;
    padding: 1rem 1.2rem;
    margin: 1rem 0;
    border: 2px solid #e1e5e9;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition-normal);
    background: white;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 0, 126, 0.1);
    transform: translateY(-2px);
}

.login-form button {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    margin-top: 1rem;
}

.login-form button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.login-error {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: var(--radius-md);
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

/* ===== INTERFACE ADMINISTRATEUR ===== */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary);
}

.admin-header h1 {
    font-size: 1.2rem !important;
    color: #FF9900;
    margin: 0;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
}

.admin-logout {
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%) !important;
    color: #fff !important;
    border: 2px solid #c0392b !important;
    border-radius: 999px !important;
    font-weight: 700;
    box-shadow: 0 2px 8px #e74c3c22;
    transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s;
}
.admin-logout:hover {
    background: #c0392b !important;
    color: #fff !important;
    border-color: #a93226 !important;
    box-shadow: 0 4px 16px #e74c3c44;
}

.admin-table {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.admin-table th {
    background: var(--gradient-dark) !important;
    color: #fff !important;
    border-bottom: 2px solid #E6007E !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    letter-spacing: 0.5px;
}

.admin-table td {
    color: #363636 !important;
    background: #fff !important;
    padding: 0.7rem 0.7rem !important;
    border-bottom: 1.5px solid #ffe3f0 !important;
    font-size: 0.98rem !important;
}

.admin-table tr:nth-child(odd) td {
    background: #ffe3f0 !important;
}

.admin-table tr:hover td {
    background: #FFF3F8 !important;
}

@media (max-width: 700px) {
    .admin-table th, .admin-table td {
        padding: 0.5rem 0.3rem !important;
        font-size: 0.93rem !important;
    }
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-actions a {
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 1.2rem;
}

.admin-actions a:hover {
    transform: scale(1.1);
}

.admin-edit {
    color: var(--secondary);
}

.admin-delete {
    color: var(--danger);
}

.admin-cv-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.admin-cv-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.admin-stats {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(230,0,126,0.1);
    animation: fadeInUp 0.8s ease 0.6s both;
}

.admin-stats h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-stats p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    color: #555;
}

.admin-stats strong {
    color: var(--primary);
    font-weight: 700;
}

/* ===== FORMULAIRE D'ÉDITION ADMIN ===== */
.edit-form {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 2rem auto;
    animation: fadeInUp 0.8s ease;
}

.edit-form h2 {
    color: var(--dark);
    margin-bottom: 2rem;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.edit-form .form-group {
    margin-bottom: 1.5rem;
}

.edit-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.edit-form input,
.edit-form select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.edit-form input:focus,
.edit-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 0, 126, 0.1);
}

.edit-form button {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    width: 100%;
}

.edit-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== GESTION DES UTILISATEURS ===== */
.user-form {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin: 2rem 0;
    animation: fadeInUp 0.8s ease;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.user-form h3 {
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-form .form-group {
    margin-bottom: 1.5rem;
}

.user-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.user-form input,
.user-form select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.user-form input:focus,
.user-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 0, 126, 0.1);
}

.user-form button {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== BADGES AMÉLIORÉS ===== */
.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.badge-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.badge-secondary {
    background: linear-gradient(135deg, #FF9900 0%, #FFB84D 100%);
    color: white;
}

.badge-dark {
    background: linear-gradient(135deg, #363636 0%, #4a4a4a 100%);
    color: white;
}

.tag-badge.violet, .tag-square.violet {
    background: #9b59b6 !important;
    color: #fff !important;
}

/* ===== ACTIONS ADMIN AMÉLIORÉES ===== */
.admin-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.admin-actions button {
    padding: 0.5rem;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1.1rem;
}

.admin-actions button:hover {
    transform: scale(1.1);
}

.admin-actions .admin-edit {
    color: var(--secondary);
}

.admin-actions .admin-delete {
    color: var(--danger);
}

/* ===== RESPONSIVE POUR LA GESTION DES UTILISATEURS ===== */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .user-form {
        padding: 1.5rem;
    }
    
    .admin-actions {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .admin-actions button {
        padding: 0.8rem;
        font-size: 1.2rem;
    }
}

/* ===== AMÉLIORATIONS FINALES DU HEADER ===== */

/* Animation du texte du logo */
.logo-text {
    animation: slideInLeft 0.8s ease 0.2s both;
}

/* Animation des informations */
.header-info {
    animation: slideInRight 0.8s ease 0.4s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Effet de brillance sur le logo */
.logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
    100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
}

/* Effet de survol amélioré pour les éléments d'info */
.info-item:hover .info-icon {
    animation: bounce 0.6s ease;
}

/* ===== LOGO OFFICIEL STEPHENSON ===== */
.official-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    transition: var(--transition-normal);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.official-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

/* Ajustement pour le logo officiel dans le header admin */
.logo-icon .official-logo {
    background: white;
    padding: 2px;
    border: 2px solid rgba(255,255,255,0.2);
}

/* Animation spéciale pour le logo officiel */
.logo-icon .official-logo {
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from {
        box-shadow: 0 0 5px rgba(230, 0, 126, 0.3);
    }
    to {
        box-shadow: 0 0 15px rgba(230, 0, 126, 0.6);
    }
}

/* ===== LOGO DANS LE FORMULAIRE DE CONNEXION ===== */
.login-logo {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.official-logo-login {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--primary);
    transition: var(--transition-normal);
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.official-logo-login:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-xl);
}

/* ===== FOOTER AVEC COPYRIGHT ===== */
.app-footer {
    background: var(--gradient-dark);
    color: white;
    padding: 1.5rem 2rem;
    margin-top: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.app-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.05) 50%, transparent 70%);
    animation: shimmer 4s infinite;
}

.footer-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.footer-content p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.5px;
}

.footer-content p::before {
    content: '🎓';
    margin-right: 0.5rem;
}

.footer-content p::after {
    content: '💻';
    margin-left: 0.5rem;
}

/* Animation spéciale pour le footer */
.app-footer:hover .footer-content p {
    color: white;
    transform: scale(1.02);
    transition: var(--transition-normal);
}

/* Responsive pour le footer */
@media (max-width: 768px) {
    .app-footer {
        padding: 1rem;
        margin-top: 2rem;
    }
    
    .footer-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .footer-content p {
        font-size: 0.8rem;
    }
}

/* ===== MODAL DE MODIFICATION ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-xl);
    animation: slideInUp 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
}

.close:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.modal .user-form {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f1f3f4;
}

.modal-actions button {
    padding: 1rem 2rem;
    font-size: 1rem;
    min-width: 120px;
}

/* ===== ANIMATIONS POUR LE MODAL ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* ===== RESPONSIVE POUR LE MODAL ===== */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal .user-form {
        padding: 1.5rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions button {
        width: 100%;
        min-width: auto;
    }
}

/* ===== FILTRES DE RECHERCHE ===== */
.search-filters {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(230,0,126,0.1);
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-table-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    min-width: unset;
    font-size: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 900px) {
    .admin-table table {
        min-width: unset;
        font-size: 1rem;
    }
}

@media (max-width: 700px) {
    .admin-container {
        padding: 1rem 0.2rem;
    }
    .search-filters, .bulk-actions, .admin-stats {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    .admin-header {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .stat-card {
        padding: 1rem;
    }
}

.bulk-actions {
    background: linear-gradient(135deg, #fff 60%, #ffe3f0 100%) !important;
    border: 2px solid #E6007E !important;
    border-radius: 18px !important;
    box-shadow: 0 2px 8px #E6007E11;
}

.select-all-label, .tag-actions span {
    color: #E6007E !important;
    font-weight: 700;
}

.bulk-buttons button, .btn-tag-premium {
  background: #363636 !important;
  color: #fff !important;
  border: 2px solid #363636 !important;
  font-weight: 700;
  border-radius: 999px !important;
  box-shadow: 0 2px 8px #36363622;
  transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s;
}
.bulk-buttons button:disabled {
  color: #bbb !important;
  background: #f0f0f0 !important;
  border-color: #eee !important;
  opacity: 1 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  filter: grayscale(0.2) brightness(1.08);
}
.bulk-buttons button:hover:not(:disabled), .btn-tag-premium:hover {
  background: #222 !important;
  color: #fff !important;
  border-color: #E6007E !important;
  box-shadow: 0 4px 16px #E6007E33;
}

.tag-actions span {
    color: #363636 !important;
}

@media (max-width: 700px) {
.bulk-actions {
        padding: 1rem 0.3rem !important;
    }
}

.bulk-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.select-all-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
}

.select-all-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== CHECKBOXES DANS LE TABLEAU ===== */
.candidate-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* ===== COLONNE ÂGE ===== */
.no-data {
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
}

/* ===== STATISTIQUES DÉTAILLÉES ===== */
.stats-details {
    margin-top: 2rem;
    display: grid;
    gap: 1.5rem;
}

.stats-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(230,0,126,0.1);
}

.stats-section h4 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.stats-row span {
    background: rgba(230,0,126,0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE POUR LES FILTRES ET ACTIONS ===== */
@media (max-width: 768px) {
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        justify-content: center;
    }
    
    .search-input {
        min-width: auto;
        width: 100%;
    }
    
    .bulk-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stats-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stats-row span {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .search-filters {
        padding: 1rem;
    }
    
    .bulk-actions {
        padding: 1rem;
    }
    
    .stats-section {
        padding: 1rem;
    }
    
    .stats-section h4 {
        font-size: 1.1rem;
    }
}

/* ===== MESSAGE DE DOUBLON DE PROFIL ===== */
.duplicate-profile-container {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 193, 7, 0.3);
    animation: fadeInUp 0.8s ease;
}

.duplicate-profile-container h3 {
    color: #856404;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.duplicate-profile-container p {
    color: #856404;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.duplicate-actions {
    display: grid;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.duplicate-link-section,
.duplicate-key-section {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.duplicate-link-section h4,
.duplicate-key-section h4 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.duplicate-link-section input[type="text"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: white;
    color: var(--dark);
    margin-bottom: 1rem;
}

.key-input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.key-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    transition: var(--transition-normal);
}

.key-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 0, 126, 0.1);
}

.duplicate-info {
    text-align: center;
    margin-top: 1rem;
}

/* ===== RESPONSIVE POUR LE MESSAGE DE DOUBLON ===== */
@media (max-width: 768px) {
    .duplicate-profile-container {
        padding: 1.5rem;
    }
    
    .duplicate-actions {
        gap: 1.5rem;
    }
    
    .key-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .key-input-group button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .duplicate-profile-container {
        padding: 1rem;
    }
    
    .duplicate-link-section,
    .duplicate-key-section {
        padding: 1rem;
    }
    
    .duplicate-profile-container h3 {
        font-size: 1.3rem;
    }
    
    .duplicate-profile-container p {
        font-size: 1rem;
    }
}

/* ===== NAVIGATION ADMIN ===== */
.admin-nav {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    flex-wrap: wrap;
}

.admin-nav-link {
    color: white;
    text-decoration: none;
    padding: 0.35rem 0.7rem !important;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 0;
    white-space: nowrap;
}

.admin-nav-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.admin-nav-link.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* ===== ÉTAT VIDE ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
    color: var(--primary);
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.empty-state p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ===== BADGE WARNING ===== */
.badge-warning {
    background: linear-gradient(135deg, #FF9900 0%, #FFB84D 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* ===== RESPONSIVE POUR LA NAVIGATION ADMIN ===== */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .admin-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .admin-nav-link {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .admin-nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Badge coloré pour le tag actuel */
.tag-cell {
    display: flex;
    align-items: center;
    gap: 0.7em;
}
.tag-badge {
    display: inline-block;
    min-width: 60px;
    padding: 0.35em 0.9em;
    border-radius: 999px;
    font-weight: bold;
    font-size: 0.98em;
    color: #fff;
    text-align: center;
    box-shadow: 0 1px 4px #0001;
    letter-spacing: 0.5px;
}
.tag-badge.vert { background: #2ecc40; }
.tag-badge.orange { background: #ff9800; }
.tag-badge.rouge { background: #e74c3c; }

/* Select stylisé pour le tag */
.tag-select {
    border: 1.5px solid #e1e5e9;
    border-radius: 999px;
    padding: 0.3em 1.2em 0.3em 0.7em;
    font-size: 1em;
    background: #f8f9fa;
    color: #333;
    margin-left: 0.2em;
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
}
.tag-select:focus {
    border-color: #e6007e;
    box-shadow: 0 0 0 2px #e6007e22;
}

/* Amélioration du tableau général */
.admin-table td, .admin-table th {
    vertical-align: middle;
}

@media (max-width: 900px) {
    .admin-table td, .admin-table th {
        font-size: 0.95em;
        padding: 0.7em 0.5em;
    }
    .tag-badge { min-width: 40px; font-size: 0.92em; padding: 0.2em 0.7em; }
    .tag-select { font-size: 0.95em; }
}

/* Style du filtre tag dans la barre de recherche admin */
.tag-filter {
    padding: 0.8rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: white;
    transition: var(--transition-normal);
    margin-left: 0.2em;
}
.tag-filter:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 0, 126, 0.1);
}

@media (max-width: 768px) {
    .tag-filter {
        font-size: 0.95em;
        padding: 0.7rem 0.8rem;
    }
}

@media (max-width: 700px) {
    .admin-header h1 {
        font-size: 1rem !important;
    }
    .admin-nav-link, .admin-logout {
        font-size: 0.85rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    .admin-nav {
        gap: 0.15rem;
    }
}

.select-all-label {
    font-size: 0.95rem !important;
    padding: 0.2em 0.5em !important;
}
.bulk-buttons button {
    font-size: 0.95rem !important;
    padding: 0.4em 1em !important;
    min-width: 0 !important;
}
.btn-tag-premium {
    font-size: 0.92rem !important;
    padding: 0.35em 1em !important;
    min-width: 0 !important;
}
@media (max-width: 700px) {
    .select-all-label {
        font-size: 0.9rem !important;
        padding: 0.15em 0.3em !important;
    }
    .bulk-buttons button {
        font-size: 0.9rem !important;
        padding: 0.3em 0.7em !important;
    }
    .btn-tag-premium {
        font-size: 0.88rem !important;
        padding: 0.25em 0.7em !important;
    }
}

.admin-table th:hover {
  background: linear-gradient(90deg, #E6007E 0%, #FF9900 100%) !important;
  color: #fff !important;
  border-bottom: 2px solid #E6007E !important;
  box-shadow: none !important;
  cursor: default;
}

/* ===== MODE CLAIR EXPLICITE ===== */
@media (prefers-color-scheme: light) {
  :root {
    --primary: #E6007E;
    --primary-dark: #c4006a;
    --secondary: #FF9900;
    --secondary-dark: #e68a00;
    --dark: #363636;
    --light: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #E6007E 0%, #FF6B9D 100%);
    --gradient-secondary: linear-gradient(135deg, #FF9900 0%, #FFB84D 100%);
    --gradient-dark: linear-gradient(135deg, #363636 0%, #4a4a4a 100%);
    --gradient-success: linear-gradient(135deg, #E6007E 0%, #FF6B9D 100%);
    --gradient-background: linear-gradient(135deg, #00749B 0%, #005a7a 100%);
  }
  body {
    background: var(--gradient-background);
    color: var(--dark);
  }
  header:not(.main-header), .dashboard-content, .profile-container, .profile-section, .stat-card, .timeline-content {
    background: #fff !important;
    color: var(--dark) !important;
  }
  .candidat-menu {
    background: var(--primary);
  }
  .candidat-menu a {
    background: rgba(255,255,255,0.09);
    color: #fff;
  }
  .candidat-menu a.active, .candidat-menu a:hover {
    background: var(--secondary);
    color: #fff;
  }
  .profile-progress-container, .success, .error {
    background: #fff !important;
    color: var(--dark) !important;
  }
  input, textarea, select {
    background: #fff;
    color: var(--dark);
    border: 1.5px solid #ccc;
  }
  input:focus, textarea:focus, select:focus {
    border: 1.5px solid var(--primary);
    box-shadow: 0 2px 8px #E6007E22;
  }
  .competence-item, .logiciel-badge, .langue-badge {
    background: linear-gradient(90deg, #fff 60%, #f8f9fa 100%);
    color: var(--primary);
    border: 2px solid #f8f9fa;
  }
  .competence-item:hover, .logiciel-badge:hover, .langue-badge:hover {
    background: linear-gradient(90deg, #f8f9fa 0%, #fff 100%);
  }
  .timeline-dot {
    border: 3px solid #fff;
  }
  .app-footer {
    background: #fff;
    color: var(--dark);
  }
  .profile-progress-container {
    background: #fff !important;
    border: 2px solid #eee;
  }
  .profile-progress-container::after {
    border-bottom: 2px solid #eee;
  }
  .candidatures-table th {
    background: linear-gradient(90deg, #fff 0%, #f8f9fa 100%);
    color: var(--primary);
    border-bottom: 2.5px solid #E6007E33;
  }
  .candidatures-table td {
    background: #fff;
    color: var(--dark);
  }
  .profile-progress-label {
    color: var(--dark);
    text-shadow: none;
  }
  .login-form h2 {
    color: var(--dark) !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    text-shadow: none !important;
  }
  .login-form button {
    background: var(--dark) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px #36363622;
    border: none;
  }
  .login-form button:hover {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px #E6007E33;
  }
}
