/* CSS pour les tooltips de la page d'inscription */

.welcome-tooltip {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 350px;
}

.welcome-tooltip.show {
    opacity: 1;
    transform: translateX(0);
}

.tooltip-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.tooltip-content i {
    font-size: 1.2rem;
    color: #ffc107;
    flex-shrink: 0;
}

.tooltip-content span {
    font-size: 0.9rem;
    line-height: 1.4;
}

.tooltip-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.tooltip-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Styles pour le feedback du mot de passe */
.password-feedback {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.feedback-main {
    font-weight: 600;
    display: block;
}

.feedback-tips {
    color: #6c757d;
    font-size: 0.8rem;
    display: block;
    margin-top: 0.25rem;
}

/* Couleurs selon la force du mot de passe */
.password-feedback.très-faible .feedback-main { color: #dc3545; }
.password-feedback.faible .feedback-main { color: #fd7e14; }
.password-feedback.moyen .feedback-main { color: #ffc107; }
.password-feedback.fort .feedback-main { color: #20c997; }
.password-feedback.très-fort .feedback-main { color: #28a745; }

/* Styles pour les barres de force du mot de passe */
.password-strength {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
    position: relative;
}

.password-strength::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
    width: 0;
}

.password-strength.très-faible::before {
    width: 20%;
    background: #dc3545;
}

.password-strength.faible::before {
    width: 40%;
    background: #fd7e14;
}

.password-strength.moyen::before {
    width: 60%;
    background: #ffc107;
}

.password-strength.fort::before {
    width: 80%;
    background: #20c997;
}

.password-strength.très-fort::before {
    width: 100%;
    background: #28a745;
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-tooltip {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .tooltip-content {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .tooltip-content i {
        font-size: 1rem;
    }
}