.profile-container {
    --primary: #3498db;
    --secondary: #9b59b6;
    --accent: #2ecc71;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --border: #e0e0e0;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.profile-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Bloc de contenu */
.profile-container .content-bloc {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    max-width: 600px;
    margin: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.profile-container .content-bloc:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* En-tête de bloc */
.profile-container .bloc-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 25px 30px;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.profile-container .bloc-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        white, 
        rgba(155, 89, 182, 0.8), 
        white, 
        transparent
    );
    animation: scanline 3s linear infinite;
}

@keyframes scanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Contenu du profil */
.profile-container .profile-content {
    padding: 30px;
}

/* Header du profil */
.profile-container .profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

/* Container avatar */
.profile-container .avatar-container {
    position: relative;
    flex-shrink: 0;
}

.profile-container .profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    border: 3px solid var(--primary);
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.2);
    background: white;
}

.profile-container .profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.3);
}

.profile-container .edit-avatar-btn {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.profile-container .edit-avatar-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

/* Informations du profil */
.profile-container .profile-info {
    flex: 1;
}

.profile-container .info-list {
    list-style: none;
}

.profile-container .info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    margin-bottom: 12px;
    background: var(--light-bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-container .info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.5s ease;
}

.profile-container .info-item:hover::before {
    left: 100%;
}

.profile-container .info-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    background: white;
}

.profile-container .info-item i {
    color: var(--primary);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.profile-container .info-value {
    flex: 1;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    word-break: break-word;
}

.profile-container .edit-btn {
    background: rgba(52, 152, 219, 0.1);
    border: 2px solid var(--primary);
    border-radius: 8px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary);
    font-size: 12px;
}

.profile-container .edit-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

/* Alertes personnalisées */
.profile-container .custom-alert {
    padding: 20px 25px;
    border-radius: 12px;
    margin: 25px 0;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
    background: white;
    border: 2px solid var(--border);
}

.profile-container .custom-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
}

.profile-container .alert-warning {
    border-left-color: #f1c40f;
    color: #f39c12;
    background: rgba(241, 196, 15, 0.05);
}

.profile-container .alert-success {
    border-left-color: var(--accent);
    color: #27ae60;
    background: rgba(46, 204, 113, 0.05);
}

.profile-container .custom-alert p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.5;
}

.profile-container .custom-alert i {
    margin-right: 8px;
    font-size: 16px;
}

/* Boutons d'action */
.profile-container .action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.profile-container .profile-action-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 12px;
    padding: 18px 20px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.profile-container .profile-action-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: left 0.6s ease;
}

.profile-container .profile-action-btn:hover::before {
    left: 100%;
}

.profile-container .profile-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.profile-container .profile-action-btn i {
    font-size: 16px;
}

/* Alerte info */
.profile-container .alert-info {
    background: rgba(52, 152, 219, 0.05);
    border: 2px solid rgba(52, 152, 219, 0.3);
    border-radius: 12px;
    padding: 20px 25px;
    margin-top: 25px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    border-left: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.profile-container .alert-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    animation: scanline 4s linear infinite;
}

.profile-container .alert-info strong {
    color: var(--primary);
    font-weight: 700;
}

/* Input file caché */
.profile-container input[type="file"] {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-container .profile-content {
        padding: 20px 15px;
    }
    
    .profile-container .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-container .action-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .profile-container .info-item {
        padding: 12px 15px;
    }
    
    .profile-container .bloc-header {
        padding: 20px 15px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .profile-container .profile-avatar {
        width: 80px;
        height: 80px;
    }
    
    .profile-container .edit-avatar-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .profile-container .profile-action-btn {
        padding: 15px;
        font-size: 13px;
    }
    
    .profile-container .info-item {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .profile-container .edit-btn {
        align-self: flex-end;
    }
}

/* Animation d'entrée */
@keyframes profileSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.profile-container .content-bloc {
    animation: profileSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}