/**
 * MY ACCOUNT PAGE - DESIGN MODERNE COHÉRENT AVEC LA HOMEPAGE
 * Version: 1.0.0
 * Identité visuelle: Vintage barbershop avec Impact, lettres espacées, orange #ff6b35
 */

/* =====================================================
   HEADER DE PAGE (comme homepage, panier, checkout)
   ===================================================== */

.my-account-page-header {
    padding: 4rem 0 3rem;
    background: #1a1a1a;
    border-bottom: 2px solid rgba(255, 107, 53, 0.2);
}

.my-account-page-header .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.my-account-page-header .section-title {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: #f5f5f5;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 1rem 0;
}

.my-account-page-header .section-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: 0;
}

/* =====================================================
   WRAPPER PRINCIPAL
   ===================================================== */

.my-account-page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* =====================================================
   LAYOUT 2 COLONNES
   ===================================================== */

.my-account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .my-account-layout {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   COLONNE NAVIGATION
   ===================================================== */

.my-account-navigation-column {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 120px;
}

.myaccount-nav-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
}

.myaccount-nav-header svg {
    color: #ff6b35;
    flex-shrink: 0;
}

.myaccount-nav-header h3 {
    margin: 0;
    padding: 0;
    border: none;
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    color: #f5f5f5;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    float: left;
    width: 100%;
}

.woocommerce-MyAccount-navigation {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    list-style: none;
}

.woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 1.25rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.woocommerce-MyAccount-navigation li a:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    padding-left: 2rem;
}

.woocommerce-MyAccount-navigation li.is-active a {
    background: #ff6b35;
    color: white;
    border-left: 4px solid #ff6b35;
}

/* =====================================================
   COLONNE CONTENU
   ===================================================== */

.woocommerce-account .woocommerce-MyAccount-content {
    float: right;
    width: 100%;
}

.my-account-content-column {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Titres de section */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #f5f5f5;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 3px solid #ff6b35;
}

/* Tableau des commandes */
.woocommerce-orders-table,
.woocommerce-MyAccount-downloads {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
}

.woocommerce-orders-table thead,
.woocommerce-MyAccount-downloads thead {
    background: #0a0a0a;
}

.woocommerce-orders-table thead th,
.woocommerce-MyAccount-downloads thead th {
    padding: 1rem;
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 0.875rem;
    font-weight: 900;
    color: #f5f5f5;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-align: left;
    border-bottom: 3px solid #ff6b35;
}

.woocommerce-orders-table tbody tr,
.woocommerce-MyAccount-downloads tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.woocommerce-orders-table tbody td,
.woocommerce-MyAccount-downloads tbody td {
    padding: 1.25rem 1rem;
    color: #f5f5f5;
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a,
.woocommerce-MyAccount-downloads .download-file a {
    color: #ff6b35;
    font-weight: 600;
    text-decoration: none;
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a:hover,
.woocommerce-MyAccount-downloads .download-file a:hover {
    color: #ff8c66;
}

/* Badge de statut de commande */
.woocommerce-orders-table__cell-order-status {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* Boutons d'action */
.woocommerce-button,
.woocommerce-MyAccount-content .button,
.woocommerce-orders-table .button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #ff6b35 !important;
    color: white !important;
    font-family: Impact, 'Arial Black', sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.woocommerce-button:hover,
.woocommerce-MyAccount-content .button:hover,
.woocommerce-orders-table .button:hover {
    background: #ff6b35 !important;
    opacity: 0.9 !important;
}

/* =====================================================
   FORMULAIRES (Édition compte, adresses)
   ===================================================== */

.woocommerce-EditAccountForm,
.woocommerce-Address,
.woocommerce-Address-title,
.edit-address {
    max-width: 100%;
}

/* Override WooCommerce float layout */
.woocommerce .col2-set::after,
.woocommerce .col2-set::before,
.woocommerce-page .col2-set::after,
.woocommerce-page .col2-set::before {
    content: none;
    display: none;
}

.woocommerce .col2-set .col-1,
.woocommerce-page .col2-set .col-1 {
    width: 100%;
}

.woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-2 {
    width: 100%;
}

/* Wrapper des champs d'adresse */
.woocommerce-address-fields,
.woocommerce-address-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.woocommerce-address-fields__field-wrapper .form-row {
    margin-bottom: 0;
}

/* Champs pleine largeur */
.form-row-wide,
.form-row-first,
.form-row-last {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .woocommerce-address-fields,
    .woocommerce-address-fields__field-wrapper {
        grid-template-columns: 1fr;
    }
}

.woocommerce-form-row,
.form-row {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.woocommerce-form-row label,
.form-row label {
    display: block;
    color: #f5f5f5;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.woocommerce-form-row label .required,
.form-row label .required {
    color: #ff6b35;
    margin-left: 0.25rem;
}

.woocommerce-Input,
.woocommerce-form-row input[type="text"],
.woocommerce-form-row input[type="email"],
.woocommerce-form-row input[type="password"],
.woocommerce-form-row input[type="tel"],
.woocommerce-form-row select,
.woocommerce-form-row textarea,
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: #0a0a0a;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #f5f5f5;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.woocommerce-Input:focus,
.woocommerce-form-row input:focus,
.woocommerce-form-row select:focus,
.woocommerce-form-row textarea:focus,
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

/* Select2 pour les champs de pays/région */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    background: #0a0a0a !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    height: auto !important;
    padding: 0.875rem 1.25rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #f5f5f5 !important;
    line-height: normal !important;
    padding: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 1rem !important;
}

/* =====================================================
   ADRESSES
   ===================================================== */

.woocommerce-Addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.woocommerce-Address {
    background: #0a0a0a;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.woocommerce-Address-title h3 {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    color: #f5f5f5;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    padding: 0;
    border: none;
}

.woocommerce-Address-title .edit {
    color: #ff6b35;
    font-size: 0.875rem;
    text-decoration: none;
    font-weight: 600;
}

.woocommerce-Address-title .edit:hover {
    color: #ff8c66;
}

.woocommerce-Address address {
    color: rgba(255, 255, 255, 0.7);
    font-style: normal;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .woocommerce-Addresses {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   DASHBOARD
   ===================================================== */

.woocommerce-MyAccount-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.woocommerce-MyAccount-content a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
}

.woocommerce-MyAccount-content a:hover {
    color: #ff8c66;
}

/* Dashboard - Amélioration visuelle */
.myaccount-dashboard {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Message de bienvenue */
.dashboard-welcome {
    background: #0a0a0a;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #ff6b35;
}

.dashboard-welcome h2 {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    color: #f5f5f5;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 1rem 0;
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-welcome h2 svg {
    color: #ff6b35;
    flex-shrink: 0;
}

.dashboard-welcome p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

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

.stat-card {
    background: #0a0a0a;
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.05);
}

.stat-icon {
    flex-shrink: 0;
}

.stat-icon svg {
    width: 48px;
    height: 48px;
    color: #ff6b35;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 0.875rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.5rem 0;
    padding: 0;
    border: none;
}

.stat-value {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #ff6b35;
    line-height: 1;
    margin: 0;
}

/* Commandes récentes */
.dashboard-recent-orders {
    margin-top: 2rem;
}

.dashboard-recent-orders .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
}

.dashboard-recent-orders .section-header h3 {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #f5f5f5;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-recent-orders .section-header h3 svg {
    color: #ff6b35;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff6b35;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.view-all-link:hover {
    color: #ff8c66;
}

.view-all-link svg {
    width: 16px;
    height: 16px;
}

/* Grid des commandes */
.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.order-card {
    background: #0a0a0a;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.order-card:hover {
    border-color: #ff6b35;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.order-number {
    font-weight: 700;
    color: #f5f5f5;
    font-size: 1.125rem;
}

.order-status {
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.order-status.status-completed {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.order-status.status-processing {
    background: rgba(255, 107, 53, 0.15);
    color: #ff6b35;
}

.order-status.status-pending {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
}

.order-status.status-cancelled,
.order-status.status-failed {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.order-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.order-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-date svg {
    width: 16px;
    height: 16px;
}

.order-total {
    font-weight: 700;
    color: #ff6b35;
    font-size: 1rem;
}

.order-view-btn {
    display: block;
    width: 100%;
    padding: 0.875rem;
    background: transparent;
    color: #ff6b35;
    border: 2px solid #ff6b35;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.order-view-btn:hover {
    background: #ff6b35;
    color: white;
}

@media (max-width: 768px) {
    .dashboard-stats,
    .orders-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }
}

/* =====================================================
   MESSAGES & ERREURS
   ===================================================== */

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    background: #0a0a0a;
    color: #f5f5f5;
    padding: 1.25rem 1.75rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #ff6b35;
    font-weight: 500;
    list-style: none;
}

.woocommerce-error {
    border-left-color: #c41e3a;
}

.woocommerce-error::before,
.woocommerce-message::before,
.woocommerce-info::before {
    display: none;
}

.woocommerce-error li {
    list-style: none;
}

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

@media (max-width: 1024px) {
    .my-account-navigation-column {
        position: static;
    }
}

@media (max-width: 768px) {
    .my-account-page-header {
        padding: 3rem 0 2rem;
    }

    .my-account-page-header .section-title {
        font-size: 2.5rem;
    }

    .my-account-page-wrapper {
        padding: 2rem 1rem;
    }

    .my-account-content-column {
        padding: 1.5rem;
    }

    .woocommerce-orders-table {
        font-size: 0.875rem;
    }

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

/* Responsive table pour mobile */
@media (max-width: 600px) {
    .woocommerce-orders-table thead {
        display: none;
    }

    .woocommerce-orders-table tbody tr {
        display: block;
        margin-bottom: 1.5rem;
        background: #0a0a0a;
        padding: 1rem;
        border-radius: 8px;
    }

    .woocommerce-orders-table tbody td {
        display: block;
        padding: 0.5rem 0;
        text-align: left !important;
        border: none;
    }

    .woocommerce-orders-table tbody td::before {
        content: attr(data-title) ": ";
        font-weight: 700;
        color: #ff6b35;
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }
}
