/* CSS pour la page Paramètres - settings.css */

/* Layout specific override */
.main-layout.settings-container {
    grid-template-columns: 300px 1fr !important;
    gap: 30px;
}

/* Layout principal des paramètres */
.settings-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 0;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Sidebar des paramètres */
.settings-sidebar {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.settings-nav h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.settings-nav-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #888;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.settings-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateX(3px);
}

.settings-nav-item.active {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.settings-nav-item .nav-icon {
    font-size: 16px;
    width: 18px;
    text-align: center;
}

/* Contenu des paramètres */
.settings-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-width: 0;
}

.settings-section {
    display: none;
}

.settings-section.active {
    display: block;
}

/* Header de section */
.section-header {
    margin-bottom: 30px;
}

.section-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header p {
    font-size: 16px;
    color: #888;
    line-height: 1.5;
}

/* Cartes de paramètres */
.settings-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.settings-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.settings-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-card.danger {
    border-color: rgba(255, 107, 107, 0.3);
    background: rgba(255, 107, 107, 0.03);
}

/* Grille de formulaire */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

/* Inputs et contrôles */
.settings-input,
.settings-textarea,
.settings-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: #f0f0f0;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.settings-input:focus,
.settings-textarea:focus,
.settings-select:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.1);
}

.settings-textarea {
    resize: vertical;
    min-height: 100px;
}

.settings-select {
    cursor: pointer;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Boutons */
.save-btn,
.action-btn,
.danger-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    font-weight: 600;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.danger-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border-color: transparent;
    color: white;
}

.danger-btn.secondary {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.danger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Options de sécurité */
.security-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.security-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.security-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.security-info p {
    font-size: 13px;
    color: #888;
}

/* Actions dangereuses */
.danger-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.danger-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 107, 107, 0.05);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 12px;
}

.danger-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.danger-info p {
    font-size: 13px;
    color: #888;
}

/* Options de confidentialité */
.privacy-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.privacy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.privacy-item:last-child {
    border-bottom: none;
}

.privacy-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.privacy-info p {
    font-size: 13px;
    color: #888;
}

/* Notifications */
.notification-options {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.notification-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
}

.notification-category h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
    color: #e0e0e0;
}

.email-frequency {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.email-frequency label {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

/* Audio et lecture */
.audio-quality,
.playback-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quality-option {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quality-option label {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.playback-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.playback-item:last-child {
    border-bottom: none;
}

.playback-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.playback-info p {
    font-size: 13px;
    color: #888;
}

/* Égaliseur */
.equalizer {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.eq-presets {
    margin-bottom: 10px;
}

.eq-controls {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
}

.eq-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.eq-band label {
    font-size: 11px;
    color: #888;
    font-weight: 500;
}

.eq-slider {
    writing-mode: bt-lr; /* IE */
    -webkit-appearance: slider-vertical; /* WebKit */
    width: 20px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
}

.eq-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.eq-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

/* Thèmes */
.theme-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.theme-choice {
    position: relative;
}

.theme-choice input[type="radio"] {
    display: none;
}

.theme-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.theme-choice input[type="radio"]:checked + .theme-card {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.1);
}

.theme-preview {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-preview.dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.theme-preview.light {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.theme-preview.auto {
    background: linear-gradient(135deg, #1a1a2e 0%, #f8fafc 100%);
}

.theme-header {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 4px;
}

.theme-content {
    display: flex;
    gap: 4px;
    height: 40px;
}

.theme-sidebar {
    width: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.theme-main {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
}

.theme-card span {
    font-size: 13px;
    font-weight: 500;
    color: #e0e0e0;
}

/* Interface options */
.interface-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.interface-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.interface-item:last-child {
    border-bottom: none;
}

.interface-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.interface-info p {
    font-size: 13px;
    color: #888;
}

/* Couleurs d'accent */
.accent-colors {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.color-option {
    position: relative;
}

.color-option input[type="radio"] {
    display: none;
}

.color-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.color-preview:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.color-option input[type="radio"]:checked + .color-preview {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.color-preview.purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.color-preview.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.color-preview.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.color-preview.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.color-preview.red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.color-preview.pink {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

/* Options sociales */
.social-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: #e0e0e0;
}

.social-item:last-child {
    border-bottom: none;
}

/* Utilisateurs bloqués */
.blocked-users {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.blocked-users p {
    color: #888;
    margin-bottom: 15px;
}

/* Stockage */
.storage-overview {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.storage-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.storage-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.storage-used {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    transition: width 0.8s ease;
}

.storage-info {
    text-align: center;
}

.storage-info span {
    font-size: 14px;
    color: #b0b0b0;
}

.storage-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.storage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.storage-label {
    font-size: 14px;
    color: #e0e0e0;
}

.storage-value {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

/* Options de téléchargement */
.download-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.download-item:last-child {
    border-bottom: none;
}

.download-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.download-info p {
    font-size: 13px;
    color: #888;
}

.storage-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* Options avancées */
.advanced-options,
.developer-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.advanced-item,
.developer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.advanced-item:last-child,
.developer-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.advanced-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.advanced-info p {
    font-size: 13px;
    color: #888;
}

.reset-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* À propos */
.app-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.app-logo .brand-icon.large {
    width: 80px;
    height: 80px;
    font-size: 32px;
}

.app-details h4 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.app-details p {
    font-size: 14px;
    color: #888;
    margin-bottom: 4px;
}

.app-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Support */
.support-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.support-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.support-icon {
    font-size: 18px;
}

/* Liens légaux */
.legal-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legal-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.legal-link:hover {
    color: #764ba2;
    padding-left: 10px;
}

.legal-link:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .settings-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .settings-sidebar {
        position: static;
    }
    
    .settings-nav-items {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .settings-nav-item {
        white-space: nowrap;
        min-width: fit-content;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .theme-options {
        grid-template-columns: 1fr;
    }
    
    .accent-colors {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .support-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-header h1 {
        font-size: 24px;
    }
    
    .settings-card {
        padding: 20px;
    }
    
    .eq-controls {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }
    
    .eq-slider {
        height: 80px;
    }
    
    .storage-actions,
    .reset-options,
    .app-actions {
        flex-direction: column;
    }
    
    .app-info {
        flex-direction: column;
        text-align: center;
    }
}
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --background-dark: radial-gradient(circle at 20% 50%, #1a1a2e 0%, #16213e 25%, #0f0f0f 100%);
    --surface-bg: rgba(255, 255, 255, 0.02);
    --surface-border: rgba(255, 255, 255, 0.05);
    --surface-hover: rgba(255, 255, 255, 0.05);
    --surface-active: rgba(102, 126, 234, 0.15);
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --text-muted: #888;
    --accent-success: #4ade80;
    --accent-warning: #facc15;
    --accent-error: #ff6b6b;
}
* {
    max-width: 100%;
}

/* Assurer la cohérence des polices */
body, input, textarea, select, button {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Améliorer l'accessibilité */
:focus {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* Éviter les problèmes de z-index */
.header { z-index: 100; }
.rythm-notification { z-index: 10000; }
.page-loader { z-index: 10000; }

/* Assurer que tous les liens sont cliquables */
a {
    cursor: pointer;
}

/* Transitions fluides pour tous les éléments interactifs */
.header-btn,
.nav-item,
.page-card,
.widget,
.see-all-link,
.btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Éviter les problèmes de mise en page */
.main-layout,
.friends-layout,
.discover-layout,
.messages-layout {
    min-height: 0;
    overflow: hidden;
}

/* Assurer que le contenu ne déborde pas */
.content-area,
.discover-content,
.profile-content {
    min-width: 0;
    overflow-x: hidden;
}