/* ========================================
   STYLES - PAGE MON COMPTE
   ======================================== */

.compte-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

/* SIDEBAR */
.compte-sidebar {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 80px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.compte-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.compte-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    border-radius: 0.5rem;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.compte-nav-item:hover {
    background: #f8fafc;
    color: #1a202c;
}

.compte-nav-item.active {
    background: #dbeafe;
    color: #2563eb;
}

/* CONTENU */
.compte-content {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.compte-section {
    display: none;
}

.compte-section.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.compte-section h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 2rem;
}

/* PROFIL HEADER */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 0.75rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.profile-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.profile-info p {
    color: #64748b;
    margin-bottom: 0.5rem;
}

.profile-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #d1fae5;
    color: #065f46;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* SECTIONS FORMULAIRE */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.5rem;
}

.form-group .form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input:read-only {
    background: #f8fafc;
    color: #64748b;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: #ffffff;
    color: #64748b;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

/* NOTIFICATIONS */
.notif-section {
    margin-bottom: 2rem;
}

.notif-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
}

.notif-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.notif-info strong {
    display: block;
    color: #1a202c;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.notif-info p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

/* TOGGLE SWITCH */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 3rem;
    height: 1.75rem;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    border-radius: 9999px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 1.25rem;
    width: 1.25rem;
    left: 0.25rem;
    bottom: 0.25rem;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .toggle-slider {
    background-color: #2563eb;
}

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

/* SÉCURITÉ */
.security-info {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.security-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.info-label {
    font-weight: 500;
    color: #64748b;
}

.info-value {
    color: #1a202c;
}

/* STATISTIQUES */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    background: #ffffff;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
}

/* TIMELINE */
.activity-timeline {
    margin-top: 2rem;
}

.activity-timeline h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1.5rem;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    padding-left: 1.5rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: 0.375rem;
    top: 1.5rem;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item:last-child:before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.75rem;
    height: 0.75rem;
    background: #2563eb;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #dbeafe;
}

.timeline-content strong {
    display: block;
    color: #1a202c;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-content p {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.timeline-time {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ZONE DE DANGER */
.danger-zone {
    margin-top: 3rem;
    padding: 1.5rem;
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 0.75rem;
}

.danger-zone h3 {
    color: #991b1b;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.danger-zone p {
    color: #7f1d1d;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.btn-danger {
    padding: 0.75rem 1.5rem;
    background: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: #dc2626;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .compte-layout {
        grid-template-columns: 1fr;
    }

    .compte-sidebar {
        position: relative;
        top: 0;
    }

    .compte-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .compte-nav-item span:last-child {
        display: none;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .notif-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}