/* ============= ACCOUNT PAGE STYLES ============= */

.account-section {
    min-height: 100vh;
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
    padding: 120px 0 80px;
}

.account-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ============= SIDEBAR ============= */

.account-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.profile-card {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.profile-avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(212, 175, 55, 0.3);
}

.avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: #d4af37;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #000;
    display: none;
}

.avatar-edit:hover {
    transform: scale(1.1);
    background: #f4e4bc;
}

.profile-name {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 5px;
    font-weight: 600;
}

.profile-email {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
}

.member-type-badge {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 100%);
    color: #000;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.member-type-badge.vip {
    background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
    color: white;
}

.member-type-badge.premium {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
}

/* Navigation sidebar */
.account-nav {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 10px;
    backdrop-filter: blur(10px);
}

.nav-item {
    width: 100%;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 15px 20px;
    margin-bottom: 5px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: 'Exo 2', sans-serif;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    padding-left: 25px;
}

.nav-item.active {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    border-left: 3px solid #d4af37;
}

/* ============= MAIN CONTENT ============= */

.account-main {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    min-height: 600px;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Stats Grid */
.stats-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.stat-card.vip {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-color: rgba(212, 175, 55, 0.3);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
}

.stat-content {
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Orbitron', monospace;
}

.stat-value_special {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: #d4af37;
    font-family: 'Orbitron', monospace;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

/* Recent Activity */
.recent-activity {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
}

.recent-activity h3 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
}

.activity-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Filters */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Exo 2', sans-serif;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    color: #d4af37;
}

/* Reservations List */
.reservations-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reservation-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
    transition: all 0.3s ease;
}

.reservation-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.reservation-vehicle {
    display: flex;
    align-items: center;
    gap: 20px;
}

.vehicle-thumb {
    width: 100px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
}

.vehicle-details h4 {
    color: #ffffff;
    margin-bottom: 5px;
}

.vehicle-details p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.reservation-info {
    display: flex;
    gap: 40px;
}

.info-group {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.info-value {
    color: #ffffff;
    font-weight: 500;
}

.reservation-status {
    text-align: right;
}

.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.confirmed {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.status-badge.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.status-badge.completed {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.reservation-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4af37;
    margin-top: 10px;
    font-family: 'Orbitron', monospace;
}

/* Settings */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.settings-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
}

.settings-card h3 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Exo 2', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.08);
}

.form-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.save-btn {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 100%);
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* Preferences */
.preference-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #d4af37;
}

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

/* Danger Zone */
.settings-card.danger {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

.settings-card.danger h3 {
    color: #ef4444;
}

.danger-btn {
    background: transparent;
    border: 2px solid #ef4444;
    color: #ef4444;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.danger-btn:hover {
    background: #ef4444;
    color: white;
}

/* ============= FORMATIONS ============= */

#formations {
    padding-top: 0;
}

.formations-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.formation-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.formation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.formation-header h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin: 0;
}

.formation-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.formation-status.active {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.formation-details {
    margin-bottom: 20px;
}

.formation-details p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.access-btn {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 100%);
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: auto;
    max-width: 300px;
    display: inline-block;
    box-sizing: border-box;
}

.access-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* CTA Formation (si pas de formation) */
.formation-cta {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
}

.formation-cta h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.formation-cta p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    line-height: 1.6;
}

.formation-cta .cta-button {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 100%);
    color: #000;
    border: none;
    padding: 14px 35px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.formation-cta .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* ============= RESPONSIVE ============= */

/* Tablet */
@media (max-width: 1024px) {
    .account-section {
        padding: 100px 0 60px;
    }
    
    .account-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .account-sidebar {
        position: relative;
        top: 0;
        display: flex;
        gap: 20px;
    }
    
    .profile-card {
        flex: 0 0 auto;
        min-width: 250px;
    }
    
    .account-nav {
        flex: 1;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .nav-item {
        margin-bottom: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .account-section {
        padding: 80px 0 40px;
    }
    
    .account-sidebar {
        flex-direction: column;
    }
    
    .profile-card {
        min-width: auto;
        padding: 25px;
    }
    
    .profile-avatar-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .profile-name {
        font-size: 1.1rem;
    }
    
    .account-nav {
        grid-template-columns: repeat(2, 1fr);
        position: sticky;
        top: 70px;
        z-index: 10;
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(20px);
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .nav-item {
        padding: 12px 15px;
        font-size: 0.85rem;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .nav-item svg {
        width: 18px;
        height: 18px;
    }
    
    .nav-item span {
        font-size: 0.8rem;
    }
    
    .account-main {
        padding: 25px 20px;
        overflow-x: hidden;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .stats-grid {
        padding: 10px;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-content {
        width: 100%;
    }
    
    .filters {
        overflow-x: auto;
        padding-bottom: 10px;
        gap: 8px;
    }
    
    .filter-btn {
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .reservation-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .reservation-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .settings-card {
        padding: 25px;
    }

    /* FORMATIONS MOBILE - CORRECTIONS PRINCIPALES */
    .formations-grid {
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .formation-card {
        padding: 20px 15px;
        overflow: hidden;
    }
    
    .formation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .formation-header h3 {
        font-size: 1.1rem;
        line-height: 1.3;
        word-wrap: break-word;
        max-width: 100%;
    }
    
    .formation-status {
        font-size: 0.75rem;
        padding: 5px 12px;
        align-self: flex-start;
    }
    
    .formation-details {
        margin-bottom: 15px;
    }
    
    .formation-details p {
        font-size: 0.9rem;
        margin-bottom: 8px;
        word-wrap: break-word;
    }
    
    .access-btn {
        font-size: 0.85rem;
        padding: 12px 20px;
        width: 100%;
        max-width: 100%;
        margin-top: 15px;
        white-space: normal;
        text-align: center;
        box-sizing: border-box;
    }
    
    .formation-cta {
        padding: 30px 20px;
    }
    
    .formation-cta h3 {
        font-size: 1.2rem;
        word-wrap: break-word;
    }
    
    .formation-cta p {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .formation-cta .cta-button {
        width: 100%;
        max-width: 100%;
        padding: 12px 25px;
        font-size: 0.9rem;
        box-sizing: border-box;
        white-space: normal;
    }
    
    .content-section {
        padding-top: 10px;
    }
    
    .recent-activity {
        margin-top: 20px;
    }
    
    .activity-item {
        padding: 12px;
    }
    
    .activity-icon {
        width: 35px;
        height: 35px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .navbar {
        padding: 12px 15px;
    }
    
    .account-section {
        padding: 70px 0 30px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .profile-card {
        padding: 20px;
    }
    
    .profile-avatar-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .profile-name {
        font-size: 1rem;
    }
    
    .profile-email {
        font-size: 0.85rem;
    }
    
    .member-type-badge {
        font-size: 0.7rem;
        padding: 5px 14px;
    }
    
    .account-nav {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .nav-item {
        flex-direction: row;
        justify-content: flex-start;
        padding: 12px 15px;
    }
    
    .nav-item span {
        font-size: 0.9rem;
    }
    
    .account-main {
        padding: 20px 15px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }
    
    .stat-card {
        padding: 18px;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-btn {
        width: 100%;
        padding: 10px;
    }
    
    .reservation-vehicle {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vehicle-thumb {
        width: 100%;
        height: 150px;
    }
    
    .reservation-status {
        text-align: left;
    }
    
    .reservation-price {
        font-size: 1.3rem;
    }
    
    .settings-card {
        padding: 20px;
    }
    
    .save-btn,
    .danger-btn {
        width: 100%;
        padding: 14px;
    }

    /* FORMATIONS PETIT MOBILE */
    .formations-grid {
        gap: 15px;
    }
    
    .formation-card {
        padding: 18px 12px;
    }
    
    .formation-header h3 {
        font-size: 1rem;
    }
    
    .formation-status {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    
    .formation-details p {
        font-size: 0.85rem;
    }
    
    .access-btn {
        padding: 12px 20px;
        font-size: 0.8rem;
        width: 100%;
    }
    
    .formation-cta {
        padding: 25px 15px;
    }
    
    .formation-cta h3 {
        font-size: 1.1rem;
    }
    
    .formation-cta p {
        font-size: 0.85rem;
    }
    
    .formation-cta .cta-button {
        width: 100%;
        font-size: 0.9rem;
    }
}

/* Très petit mobile */
@media (max-width: 360px) {
    .profile-name {
        font-size: 0.95rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .formation-card {
        padding: 15px 10px;
    }
    
    .formation-header h3 {
        font-size: 0.95rem;
    }
    
    .access-btn {
        font-size: 0.75rem;
        padding: 10px 15px;
    }
}

/* Ajustements pour navbar mobile */
@media (max-width: 768px) {
    .auth-nav-section {
        right: 15px;
    }
    
    .user-menu-toggle {
        padding: 6px 10px;
    }
    
    .user-name {
        display: none;
    }
    
    .user-avatar {
        width: 24px;
        height: 24px;
    }
    
    .user-dropdown {
        right: -10px;
        min-width: 200px;
    }
}