/* ==========================================
   STYLE.CSS - MyAlfred.ai Recruitment
   Palette : #9e00ff #ff00e1 #F58244 sur fond noir
========================================== */

:root {
    --primary-purple: #9e00ff;
    --primary-pink: #ff00e1;
    --primary-orange: #F58244;
    --background-dark: #000000;
    --background-card: #1a1a1a;
    --background-input: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --border-color: #333333;
    --success-color: #00ff88;
    --error-color: #ff4757;
    --shadow-glow: 0 0 20px rgba(158, 0, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================
   FOND ANIMÉ AVEC NŒUDS PAPILLONS VISIBLES
========================================== */

.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, 
        var(--background-dark) 0%, 
        #1a0d26 25%, 
        #0d1a26 50%, 
        #1a0d26 75%, 
        var(--background-dark) 100%);
    animation: gradientShift 10s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% { 
        background: linear-gradient(135deg, 
            var(--background-dark) 0%, 
            #1a0d26 25%, 
            #0d1a26 50%, 
            #1a0d26 75%, 
            var(--background-dark) 100%);
    }
    100% { 
        background: linear-gradient(225deg, 
            var(--background-dark) 0%, 
            #26091a 25%, 
            #260d1a 50%, 
            #1a0d26 75%, 
            var(--background-dark) 100%);
    }
}

.floating-bowtie {
    position: absolute;
    opacity: 0.8;
    animation: float 8s ease-in-out infinite;
    filter: drop-shadow(0 0 10px var(--primary-purple)) 
            drop-shadow(0 0 20px var(--primary-pink));
}

.floating-bowtie img {
    width: 60px;
    height: auto;
    filter: hue-rotate(280deg) saturate(2) brightness(1.5);
    animation: rotate 12s linear infinite, glow 3s ease-in-out infinite alternate;
}

.bowtie-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.bowtie-2 {
    top: 60%;
    right: 15%;
    animation-delay: -2s;
}

.bowtie-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
    }
    25% {
        transform: translateY(-20px) translateX(10px) scale(1.1);
    }
    50% {
        transform: translateY(-10px) translateX(-15px) scale(0.9);
    }
    75% {
        transform: translateY(-25px) translateX(5px) scale(1.05);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes glow {
    0% {
        filter: hue-rotate(280deg) saturate(2) brightness(1.5) 
                drop-shadow(0 0 5px var(--primary-purple));
    }
    50% {
        filter: hue-rotate(320deg) saturate(2.5) brightness(2) 
                drop-shadow(0 0 15px var(--primary-pink));
    }
    100% {
        filter: hue-rotate(40deg) saturate(2) brightness(1.8) 
                drop-shadow(0 0 10px var(--primary-orange));
    }
}

/* ==========================================
   HEADER
========================================== */

.header {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.alfred-avatar {
    position: relative;
}

.circular-mask {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { 
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 0 50px rgba(255, 255, 255, 0.8);
        transform: scale(1.05);
    }
}

.circular-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   STRUCTURE PRINCIPALE
========================================== */

.main-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
    min-height: calc(100vh - 200px);
}

.content-section {
    flex: 2;
    background: var(--background-card);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-glow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-purple), 
        var(--primary-pink), 
        var(--primary-orange));
    animation: colorFlow 3s ease-in-out infinite;
}

@keyframes colorFlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ==========================================
   SECTIONS
========================================== */

.section {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.section.active {
    display: block;
}

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

/* ==========================================
   FORMULAIRES
========================================== */

.info-form,
.code-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.form-title {
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.form-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group label i {
    color: var(--primary-pink);
    margin-right: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--background-input);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 20px rgba(158, 0, 255, 0.3);
    transform: translateY(-2px);
}

.code-input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    font-weight: 600;
}

.form-button {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(158, 0, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.form-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(158, 0, 255, 0.6);
}

.form-button:active {
    transform: translateY(-1px);
}

.form-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================
   CHAT
========================================== */

.chat-container {
    height: 600px;
    display: flex;
    flex-direction: column;
    background: var(--background-input);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.chat-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.chat-info h3 {
    margin: 0;
    font-size: 1.3rem;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    scroll-behavior: smooth;
}

.message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: messageSlide 0.4s ease-out;
}

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

.message.user {
    flex-direction: row-reverse;
}

.message.user .message-content {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-orange));
    color: white;
}

.message .message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message.alfred .message-avatar {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    color: white;
}

.message.user .message-avatar {
    background: var(--primary-orange);
    color: white;
}

.message-content {
    background: var(--background-card);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    max-width: 80%;
    word-wrap: break-word;
}

.message-content p {
    margin: 0;
    line-height: 1.5;
}

.typing-indicator {
    display: none;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    font-style: italic;
    color: var(--text-muted);
}

.typing-indicator.active {
    display: flex;
    animation: fadeIn 0.3s ease-in;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-purple);
    animation: typingDot 1.4s infinite both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingDot {
    0%, 80%, 100% {
        transform: scale(0.7);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.input-container {
    display: flex;
    padding: 1rem;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--background-card);
}

.message-input {
    flex: 1;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    padding: 1rem 1.5rem;
    background: var(--background-input);
    color: var(--text-primary);
    resize: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

.message-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 15px rgba(158, 0, 255, 0.3);
}

.send-button {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-button:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(158, 0, 255, 0.5);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================
   SIDEBAR
========================================== */

.sidebar-card {
    background: var(--background-card);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(158, 0, 255, 0.2);
}

.sidebar-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-card h3 i {
    color: var(--primary-pink);
}

.sidebar-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.sidebar-card ul {
    list-style: none;
    padding: 0;
}

.sidebar-card li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-card li i {
    color: var(--primary-orange);
    width: 16px;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.process-step:hover {
    background: rgba(158, 0, 255, 0.1);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    background: var(--background-input);
    transition: all 0.3s ease;
}

.step-number.active {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    color: white;
    border-color: var(--primary-purple);
    box-shadow: 0 0 20px rgba(158, 0, 255, 0.5);
    animation: pulse 2s infinite;
}

.step-number.completed {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

/* ==========================================
   ALERTES
========================================== */

.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert.success {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success-color);
    border-left-color: var(--success-color);
}

.alert.error {
    background: rgba(255, 71, 87, 0.1);
    color: var(--error-color);
    border-left-color: var(--error-color);
}

/* ==========================================
   RESPONSIVE DESIGN
========================================== */

@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .sidebar {
        flex-direction: row;
        overflow-x: auto;
        gap: 1rem;
    }
    
    .sidebar-card {
        flex: 0 0 300px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1.5rem;
    }
    
    .company-name {
        font-size: 2rem;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .circular-mask {
        width: 60px;
        height: 60px;
    }
    
    .chat-container {
        height: 500px;
    }
    
    .sidebar {
        flex-direction: column;
    }
    
    .sidebar-card {
        flex: none;
    }
    
    .floating-bowtie img {
        width: 40px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 0.5rem;
    }
    
    .content-section {
        padding: 1rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .message-content {
        max-width: 90%;
    }
    
    .floating-bowtie {
        opacity: 0.4;
    }
    
    .floating-bowtie img {
        width: 30px;
    }
}

/* ==========================================
   ANIMATIONS AVANCÉES
========================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================
   STYLES POUR UPLOAD CV
   À ajouter à la fin de style.css
========================================== */

.cv-upload-section {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 2px dashed var(--border-color);
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.cv-upload-section:hover {
    border-color: var(--primary-purple);
    background: rgba(158, 0, 255, 0.05);
}

.upload-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.upload-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.file-input-container {
    margin-bottom: 1.5rem;
}

.file-input-label {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(158, 0, 255, 0.3);
    text-align: center;
}

.file-input-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(158, 0, 255, 0.4);
}

.file-input-label i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.file-input-label.has-file {
    background: linear-gradient(135deg, var(--success-color), #00cc70);
}

.upload-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.form-button.secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    box-shadow: none;
}

.form-button.secondary:hover {
    background: var(--background-input);
    color: var(--primary-pink);
    border-color: var(--primary-pink);
    transform: translateY(-2px);
}

.final-message {
    text-align: center;
    padding: 2rem;
    animation: finalFadeIn 0.8s ease-out;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 0.6s ease-out;
}

.final-message p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.final-message strong {
    color: var(--primary-pink);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive pour upload CV */
@media (max-width: 768px) {
    .cv-upload-section {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .upload-buttons {
        flex-direction: column;
    }
    
    .file-input-label {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ==========================================
   STYLES BOUTON FIN DE CONVERSATION
   À ajouter à la fin de style.css
========================================== */

.message.end-conversation {
    animation: endConversationSlide 0.8s ease-out;
}

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

.end-content {
    background: linear-gradient(135deg, var(--background-card), #2a2a2a) !important;
    border: 2px solid var(--primary-purple) !important;
    box-shadow: 0 8px 25px rgba(158, 0, 255, 0.3) !important;
    position: relative;
    overflow: hidden;
}

.end-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-purple), 
        var(--primary-pink), 
        var(--primary-orange));
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.end-conversation-btn {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    display: block;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(158, 0, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.end-conversation-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(158, 0, 255, 0.6);
    background: linear-gradient(135deg, #b300ff, #ff1ae8);
}

.end-conversation-btn:active {
    transform: translateY(-1px);
}

.end-conversation-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

.end-conversation-btn:hover::before {
    left: 100%;
}

.end-conversation-btn i {
    margin-right: 0.5rem;
    animation: checkPulse 2s ease-in-out infinite;
}

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

/* Animation pour l'input désactivé */
.message-input:disabled {
    background: var(--background-input) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed !important;
    border-color: var(--border-color) !important;
    animation: fadeDisabled 0.5s ease-out;
}

@keyframes fadeDisabled {
    from { opacity: 1; }
    to { opacity: 0.6; }
}

.send-button:disabled {
    background: var(--background-input) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed !important;
    transform: none !important;
    animation: fadeDisabled 0.5s ease-out;
}

/* Animation spéciale pour le message final */
.end-content p:last-of-type {
    font-weight: 500;
    color: var(--primary-pink);
    margin-bottom: 1.5rem;
}

.end-content strong {
    color: var(--primary-orange);
}

/* Responsive pour le bouton */
@media (max-width: 768px) {
    .end-conversation-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .end-conversation-btn {
        font-size: 14px;
        padding: 12px 20px;
    }
}

/* ==========================================
   AUTHENTIFICATION ADMIN
========================================== */

.admin-auth {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 100;
}

.google-login-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
}

.google-login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.google-login-btn i {
    font-size: 16px;
    color: #4285f4;
}

.admin-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-user:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.admin-user:hover .admin-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.admin-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.admin-avatar-placeholder {
    width: 32px;
    height: 32px;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.7);
}

.admin-name {
    color: white;
    font-size: 14px;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.admin-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--background-card);
}

.admin-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.admin-link:hover {
    background: rgba(158, 0, 255, 0.1);
    color: var(--primary-purple);
}

.admin-link i {
    width: 16px;
    text-align: center;
    color: var(--text-secondary);
}

.admin-link:hover i {
    color: var(--primary-purple);
}

.auth-error {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--error-color);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1000;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

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

/* Responsive pour l'authentification */
@media (max-width: 768px) {
    .admin-auth {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .google-login-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .google-login-btn span {
        display: none;
    }
    
    .admin-user {
        padding: 6px 10px;
    }
    
    .admin-name {
        max-width: 80px;
        font-size: 12px;
    }
    
    .admin-menu {
        min-width: 160px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .admin-auth {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 1rem;
        display: flex;
        justify-content: center;
    }
    
    .admin-user {
        justify-content: center;
    }
    
    .auth-error {
        top: 60px;
        right: 10px;
        left: 10px;
        font-size: 12px;
    }
}