/*-------------------------------------------------------------------------------*/
/* ======= STYLES POUR LES INFORMATIONS GENERALES DE L'UTILISATEUR ET MOT DE PASSE ======= */
/* Ex : Espace "Agent" -> Module "Profile" -> Section "" */
/*Ex : Espace "Utilisateur" - > Module "Compte" */
/*-------------------------------------------------------------------------------*/
/* Animations modernes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Transitions fluides */
.form-control, .form-select {
    transition: all 0.3s ease;
}

    /* Focus amélioré */
    .form-control:focus, .form-select:focus {
        transform: scale(1.01);
    }

/* Responsive design */
@media (max-width: 768px) {
    .pagetitle h1 {
        font-size: 1.5rem;
    }

    .card-body {
        padding: 1rem;
    }
}



















/* Styles pour le statut freelance */
.freelance-info-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-left: 4px solid #2196f3;
    border-radius: 8px;
}

.freelance-waiting-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #6c757d;
    border-radius: 12px;
    min-height: 80px;
}

/* Status alerts améliorés */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.25rem;
    position: relative;
    overflow: hidden;
}

    .alert::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: currentColor;
        opacity: 0.3;
    }

.alert-info {
    background-color: #e7f3ff;
    color: #0c63e4;
    border-left: 4px solid #0c63e4;
}

.alert-success {
    background-color: #d1f7ea;
    color: #0f5132;
    border-left: 4px solid #198754;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

/* Amélioration des badges */
.badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
}

    .badge.bg-info {
        background-color: #0dcaf0 !important;
        color: #000;
    }

    .badge.bg-primary {
        background-color: #0d6efd !important;
    }

/* Champs désactivés pour freelance */
.form-control[readonly].freelance-disabled {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn:disabled.freelance-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Animation pour les transitions de statut */
@keyframes statusChange {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-transition {
    animation: statusChange 0.3s ease-in-out;
}

/* Responsive pour mobile */
@media (max-width: 576px) {
    .freelance-info-section,
    .freelance-waiting-section {
        margin: 0.5rem 0;
        padding: 1rem;
    }

    .alert {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
}
















/* Styles pour les avertissements de sécurité */
.security-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #fd79a8;
    position: relative;
    overflow: hidden;
}

    .security-warning::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, #fd79a8, #fdcb6e);
        animation: securityPulse 2s ease-in-out infinite;
    }

@keyframes securityPulse {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* État de validation en cours */
.validation-loading {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
}

    .validation-loading .spinner-grow {
        width: 1rem;
        height: 1rem;
        animation-duration: 1.5s;
    }

/* Checkbox sécurisé */
.form-check-input.secured {
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25);
    border-color: #28a745;
}

    .form-check-input.secured:checked {
        background-color: #28a745;
        border-color: #28a745;
    }

/* États du checkbox selon la sécurité */
.form-check-input.server-controlled {
    border: 2px solid #fd79a8;
    box-shadow: 0 0 0 2px rgba(253, 121, 168, 0.2);
}

.form-check-input.temporary-change {
    border: 2px solid #fdcb6e;
    box-shadow: 0 0 0 2px rgba(253, 203, 110, 0.2);
    animation: temporaryBlink 1s ease-in-out infinite;
}

@keyframes temporaryBlink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Boutons de validation sécurisée */
.btn-security {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
}

    .btn-security::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: left 0.5s;
    }

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

/* Messages d'erreur sécurisés */
.security-error {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left: 4px solid #f44336;
    color: #c62828;
    font-weight: 500;
}

.security-success {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border-left: 4px solid #4caf50;
    color: #2e7d32;
    font-weight: 500;
}

.security-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    color: #1565c0;
    font-weight: 500;
}

/* Icon animations pour la sécurité */
.security-icon {
    animation: securityRotate 3s linear infinite;
}

@keyframes securityRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.validation-icon {
    animation: validationBounce 1s ease-in-out infinite;
}

@keyframes validationBounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* États des boutons selon la validation */
.btn:disabled.security-locked {
    background: linear-gradient(135deg, #eeeeee 0%, #bdbdbd 100%);
    border-color: #9e9e9e;
    color: #757575;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn.validation-pending {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc02 100%);
    border-color: #ff9800;
    color: #e65100;
    animation: validationPending 1.5s ease-in-out infinite;
}

@keyframes validationPending {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Responsive pour mobile */
@media (max-width: 576px) {
    .security-warning,
    .validation-loading,
    .security-error,
    .security-success,
    .security-info {
        margin: 0.5rem 0;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .btn-security {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}











.user-form {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
    }

.card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.75rem;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.625rem 0.875rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .form-control:focus, .form-select:focus {
        border-color: #4361ee;
        box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
    }

    .form-control.is-invalid {
        border-color: #dc3545;
        background-image: none;
    }

.invalid-feedback {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

/* Photo upload styles */
.photo-upload-container {
    position: relative;
}

.photo-preview-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e9ecef;
    transition: border-color 0.3s;
}

    .photo-preview-wrapper:hover {
        border-color: #4361ee;
    }

.profile-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-preview-wrapper:hover .photo-overlay {
    opacity: 1;
}

.photo-actions {
    display: flex;
    gap: 5px;
}

.file-info {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Custom switch */
.form-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
}

    .form-switch .form-check-input:checked {
        background-color: #4361ee;
        border-color: #4361ee;
    }

/* Button styles */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #4361ee;
    border-color: #4361ee;
}

    .btn-primary:hover {
        background-color: #3651d4;
        transform: translateY(-1px);
    }

/* Alert styles */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-success {
    background-color: #d1f7ea;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

/* Loading animation */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .photo-preview-wrapper {
        width: 120px;
        height: 120px;
    }

    .col-form-label {
        text-align: left !important;
        margin-bottom: 0.25rem;
    }
}











/* Style léger et maîtrisé des boutons d'action */
#submitBtn,
#resetBtn {
    padding: 0.5rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    white-space: nowrap; /* empêche le retour à la ligne */
    line-height: 1;
    font-size: 0.9rem;
}

    /* Icônes légèrement ajustées */
    #submitBtn i,
    #resetBtn i {
        font-size: 1rem;
        margin-right: 0; /* on gère l’espace avec gap */
    }

/* Micro-amélioration visuelle */
#submitBtn {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

#resetBtn:hover {
    background-color: rgba(0, 0, 0, 0.04);
}
