/* ===== BOUTON FLOTTANT CONNEXION/INSCRIPTION ===== */

.floating-auth-button {
    position: fixed;
    bottom: 30px; /* MÊME hauteur que le bouton partage */
    left: 30px; /* À GAUCHE */
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 1000;
    animation: float-auth 3s ease-in-out infinite;
}

.floating-auth-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.6);
}

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

/* Badge "nouveau" sur le bouton */
.auth-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 10px;
    animation: pulse-badge 2s ease-in-out infinite;
}

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

/* ===== MODAL CONNEXION/INSCRIPTION ===== */

.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.auth-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.auth-modal {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(26, 26, 26, 0.95));
    border: 2px solid rgba(99, 102, 241, 0.5);
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.auth-modal-overlay.active .auth-modal {
    transform: scale(1);
}

.auth-modal-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    padding: 30px;
    text-align: center;
    position: relative;
}

.auth-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-close:hover {
    background: white;
    color: #6366f1;
    transform: rotate(90deg);
}

.auth-modal-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.auth-modal-title {
    font-size: 28px;
    font-weight: 900;
    color: white;
    margin: 0;
}

.auth-modal-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
}

.auth-modal-body {
    padding: 35px;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    padding: 5px;
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.auth-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-login-btn {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.social-login-btn.google {
    border-color: #ea4335;
}

.social-login-btn.google:hover {
    background: rgba(234, 67, 53, 0.1);
}

.social-login-btn.facebook {
    border-color: #1877f2;
}

.social-login-btn.facebook:hover {
    background: rgba(24, 119, 242, 0.1);
}

/* ===== MESSAGE INCITATIF (BANNER) ===== */

.auth-incentive-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 15px;
    padding: 20px 25px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    animation: slide-in-right 0.5s ease-out;
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.banner-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.banner-content {
    flex: 1;
}

.banner-title {
    font-size: 16px;
    font-weight: 700;
    color: #8b5cf6;
    margin-bottom: 5px;
}

.banner-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.banner-link {
    color: #8b5cf6;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.banner-link:hover {
    color: #a78bfa;
    text-decoration: underline;
}

/* ===== ÉTAT CONNECTÉ ===== */

.user-profile-button {
    position: fixed;
    bottom: 30px; /* MÊME hauteur que le bouton partage */
    left: 30px; /* À GAUCHE */
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: 3px solid rgba(99, 102, 241, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    animation: float-auth 3s ease-in-out infinite;
}

.user-profile-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.6);
    border-color: #8b5cf6;
}

.user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: white;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0px;
    line-height: 1;
}

.user-name {
    display: none; /* Masqué - on affiche que l'avatar */
}

/* Menu déroulant utilisateur */
.user-dropdown {
    position: fixed;
    bottom: 100px; /* Juste au-dessus du bouton */
    left: 30px; /* MÊME alignement */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(26, 26, 26, 0.95));
    border: 2px solid #6366f1;
    border-radius: 15px;
    padding: 15px;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
    display: none;
    z-index: 999;
}

.user-dropdown.active {
    display: block;
    animation: fade-in-up 0.3s ease-out;
}

.user-dropdown-item {
    padding: 12px 15px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-dropdown-item:hover {
    background: rgba(99, 102, 241, 0.2);
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-auth-button,
    .user-profile-button {
        width: 50px;
        height: 50px;
        bottom: 20px; /* MÊME hauteur sur mobile */
        left: 20px; /* MÊME distance du bord */
    }

    .user-avatar {
        font-size: 18px;
    }

    .auth-modal {
        max-width: 95%;
    }

    .auth-modal-body {
        padding: 25px;
    }

    .auth-incentive-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .user-dropdown {
        left: 20px;
        bottom: 80px; /* Ajusté pour mobile */
    }
}