/* ========================================
   STYLES WOLMART PREMIUM - PAGE MON COMPTE
   Design ultra-moderne et interactif
   ======================================== */

/* === PAGE HEADER === */
.page-header {
    background: linear-gradient(135deg, #336699 0%, #4a90e2 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: floatShape 20s ease-in-out infinite;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: floatShape 15s ease-in-out infinite reverse;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, 30px) rotate(180deg); }
}

.page-header .page-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

/* === BREADCRUMB === */
.breadcrumb-nav {
    background: #f8f9fa;
    border-bottom: 1px solid #e8ecef;
    padding: 1rem 0;
}

.breadcrumb {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb li {
    color: #666;
    font-size: 0.9rem;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: #ccc;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #336699;
}

/* === TAB NAVIGATION === */
.nav-tabs {
    border: none;
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-tabs .nav-item {
    width: 100%;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    color: #666;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.nav-tabs .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #336699 0%, #4a90e2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-tabs .nav-link:hover {
    background: #f8f9fa;
    color: #336699;
    transform: translateX(5px);
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #336699 0%, #4a90e2 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(51, 102, 153, 0.3);
}

.nav-tabs .nav-link.active::before {
    transform: scaleY(1);
}

/* === DASHBOARD CARDS === */
.account-dashboard-card {
    position: relative;
    background: white;
    border-radius: 1.25rem;
    padding: 2.5rem 1.5rem;
    border: 2px solid #f0f0f0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    overflow: hidden;
}

.account-dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #336699 0%, #4a90e2 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.account-dashboard-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(51, 102, 153, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.account-dashboard-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border-color: #336699;
}

.account-dashboard-card:hover::before {
    transform: scaleX(1);
}

.account-dashboard-card:hover::after {
    width: 400px;
    height: 400px;
}

.account-dashboard-card .icon-box-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #336699 0%, #4a90e2 100%);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: white;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(51, 102, 153, 0.3);
    position: relative;
    z-index: 1;
}

.account-dashboard-card .icon-box-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 25px;
    background: linear-gradient(135deg, #336699, #4a90e2);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.account-dashboard-card:hover .icon-box-icon {
    transform: scale(1.15) rotate(-10deg);
    box-shadow: 0 15px 40px rgba(51, 102, 153, 0.5);
}

.account-dashboard-card:hover .icon-box-icon::before {
    opacity: 0.3;
    animation: rotateBorder 3s linear infinite;
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.account-dashboard-card .icon-box-content p {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.account-dashboard-card .card-subtitle {
    font-size: 0.9rem;
    color: #999;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

/* === LOGOUT CARD === */
.account-dashboard-card.logout-card {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-color: #e74c3c;
    position: relative;
}

.account-dashboard-card.logout-card::before {
    background: linear-gradient(90deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
}

.account-dashboard-card.logout-card .icon-box-icon {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.account-dashboard-card.logout-card:hover .icon-box-icon {
    background: rgba(255,255,255,0.35);
    transform: scale(1.15) rotate(10deg);
}

.account-dashboard-card.logout-card .icon-box-content p,
.account-dashboard-card.logout-card .card-subtitle {
    color: white;
}

.account-dashboard-card.logout-card:hover {
    border-color: white;
}

/* === NOTIFICATION BADGE === */
.notification-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    z-index: 2;
    animation: pulseNotif 2s ease-in-out infinite;
}

@keyframes pulseNotif {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    }
    50% { 
        transform: scale(1.08); 
        box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
    }
}

/* === SECTION HEADERS === */
.account-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.account-section-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #336699 0%, #4a90e2 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-right: 1.5rem;
    box-shadow: 0 10px 25px rgba(51, 102, 153, 0.3);
    flex-shrink: 0;
    animation: iconBounce 3s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.account-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    letter-spacing: -0.5px;
}

.account-section-header p {
    margin: 0.5rem 0 0;
    color: #666;
    font-size: 0.95rem;
}

/* === TABLE ORDERS === */
.account-orders-table {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.account-orders-table thead {
    background: linear-gradient(135deg, #336699 0%, #4a90e2 100%);
    position: relative;
}

.account-orders-table thead::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255,255,255,0.2);
}

.account-orders-table thead th {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 1.5rem 1.25rem;
    border: none;
    white-space: nowrap;
}

.account-orders-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
}

.account-orders-table tbody tr::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #336699 0%, #4a90e2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.account-orders-table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.account-orders-table tbody tr:hover::before {
    transform: scaleY(1);
}

.account-orders-table tbody td {
    padding: 1.5rem 1.25rem;
    vertical-align: middle;
    color: #333;
}

.account-orders-table tbody td strong {
    color: #336699;
    font-weight: 700;
}

/* === STATUS BADGES === */
.badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: badgeFadeIn 0.5s ease;
}

@keyframes badgeFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.badge-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #000;
}

.badge-success {
    background: linear-gradient(135deg, #4dae67 0%, #3d8b54 100%);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.badge-primary {
    background: linear-gradient(135deg, #336699 0%, #4a90e2 100%);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

/* === ACTION BUTTONS === */
.order-action {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.btn-view-order,
.btn-edit-order,
.btn-cancel-order {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    min-width: 130px;
    justify-content: center;
}

.btn-view-order::before,
.btn-edit-order::before,
.btn-cancel-order::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn-view-order:hover::before,
.btn-edit-order:hover::before,
.btn-cancel-order:hover::before {
    width: 300px;
    height: 300px;
}

.btn-view-order {
    background: linear-gradient(135deg, #336699 0%, #4a90e2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(51, 102, 153, 0.3);
}

.btn-view-order:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(51, 102, 153, 0.5);
    color: white;
}

.btn-edit-order {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-edit-order:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.5);
    color: white;
}

.btn-cancel-order {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-cancel-order:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.5);
    color: white;
}

/* === EMPTY STATE === */
.empty-orders-state {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 1.25rem;
    margin: 2rem 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

.empty-orders-state i {
    font-size: 5rem;
    color: #ddd;
    margin-bottom: 2rem;
    animation: emptyCartFloat 3s ease-in-out infinite;
}

@keyframes emptyCartFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.empty-orders-state h3 {
    color: #666;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.empty-orders-state p {
    color: #999;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* === FORM STYLES === */
.account-form-group {
    margin-bottom: 1.75rem;
}

.account-form-group label {
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
    display: block;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 14px 18px;
    transition: all 0.3s ease;
    font-size: 1rem;
    background: #f8f9fa;
}

.account-form-control:focus {
    border-color: #336699;
    background: white;
    box-shadow: 0 0 0 4px rgba(51, 102, 153, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.password-change-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 3px solid #f0f0f0;
}

.password-change-section h4 {
    color: #333;
    font-weight: 700;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.password-change-section h4::before {
    content: '';
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, #336699 0%, #4a90e2 100%);
    border-radius: 10px;
}

/* === SAVE BUTTON === */
.btn-save-account {
    background: linear-gradient(135deg, #336699 0%, #4a90e2 100%);
    color: white;
    padding: 16px 40px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(51, 102, 153, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-save-account::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-save-account:hover::before {
    width: 400px;
    height: 400px;
}

.btn-save-account:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(51, 102, 153, 0.5);
    color: white;
}

/* === ALERTS === */
.alert-enhanced {
    border-radius: 12px;
    border: none;
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.alert-enhanced::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: currentColor;
}

.alert-enhanced .alert-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.alert-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #d4edda 100%);
    color: #155724;
}

.alert-danger,
.alert-error {
    background: linear-gradient(135deg, #ffebee 0%, #f8d7da 100%);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #d1ecf1 100%);
    color: #0c5460;
}

/* === TYPOGRAPHIE PAGE COMPTE === */
.account-page .nav-link,
.account-page .card-title,
.account-page .card-text,
.account-page .orders-table tbody td,
.account-page .form-control,
.account-page .btn,
.account-page .alert,
.account-page .account-hero p {
    font-size: 16px;
    line-height: 1.6;
}

.account-page .orders-table thead th,
.account-page .form-label,
.account-page h4,
.account-page h5 {
    font-size: 16px;
    line-height: 1.5;
}

.account-page .text-muted,
.account-page .form-text,
.account-page small,
.account-page .small,
.account-page .intro-badge,
.account-page .account-status-badge,
.account-page .section-icon + div p {
    font-size: 14px !important;
    line-height: 1.5;
}

.account-page .badge {
    font-size: 12px;
}

.account-page .notification-badge {
    font-size: 12px;
}

.account-page .account-status-badge {
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
    .tab.tab-vertical .nav-tabs {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
    }

    .nav-tabs .nav-item {
        width: auto;
        flex: 0 0 auto;
    }

    .account-section-header {
        flex-direction: column;
        text-align: center;
    }

    .account-section-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 767px) {
    .page-header .page-title {
        font-size: 1.8rem;
    }

    .account-dashboard-card {
        margin-bottom: 1.5rem;
    }

    .account-section-title {
        font-size: 1.5rem;
    }

    .account-orders-table {
        font-size: 0.85rem;
    }

    .account-orders-table thead th,
    .account-orders-table tbody td {
        padding: 1rem 0.75rem;
    }

    .order-action {
        width: 100%;
    }

    .order-action .btn {
        width: 100%;
    }

    .empty-orders-state {
        padding: 3rem 1.5rem;
    }

    .empty-orders-state i {
        font-size: 4rem;
    }

    .btn-save-account {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .account-orders-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .nav-tabs {
        padding: 0.75rem;
    }

    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* === ANIMATIONS GLOBALES === */
.tab-pane {
    animation: fadeInContent 0.5s ease;
}

@keyframes fadeInContent {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === SMOOTH SCROLLING === */
html {
    scroll-behavior: smooth;
}

/* === UTILITAIRES === */
.link-to-tab {
    text-decoration: none;
    display: block;
}

.link-to-tab:hover {
    text-decoration: none;
}

/* === LOADER FOR BUTTONS === */
@keyframes buttonLoader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: buttonLoader 0.6s linear infinite;
}