/* Styles spécifiques à la page de compte */

.page-header {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header .subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Profil utilisateur */
.profile-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.profile-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
}

.profile-details {
    flex: 1;
}

.detail-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.detail-label {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 150px;
}

.detail-value {
    color: #1f2937; /* Gris foncé pour mode clair */
    font-weight: 500;
}

/* Mode sombre */
body.dark-mode .detail-value {
    color: #e5e7eb; /* Gris clair pour mode sombre */
}

/* Statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 2px solid var(--border);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Préférences */
.preferences-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.preference-info {
    flex: 1;
}

.preference-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.preference-desc {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Zone de danger */
.danger-zone {
    border: 2px solid var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

.danger-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.danger-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

.danger-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.danger-desc {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-info {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-details {
        width: 100%;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .detail-label {
        min-width: auto;
    }
    
    .preference-item,
    .danger-item {
        flex-direction: column;
        align-items: flex-start;
    }
}
