/* ============================================================================
   CSS PAGE MON COMPTE WOOCOMMERCE - STYLE MENUISIA
   ============================================================================ */

/* ========================================
   CONTAINER GÉNÉRAL
   ======================================== */

.woocommerce-account {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.woocommerce {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* ========================================
   EN-TÊTE DE PAGE
   ======================================== */

.entry-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #EE9818;
}

.entry-header .entry-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* ========================================
   NAVIGATION LATÉRALE (Menu Mon Compte)
   ======================================== */

.woocommerce-MyAccount-navigation {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

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

.woocommerce-MyAccount-navigation ul li {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    
    transition: all 0.3s ease;
    position: relative;
}

/* Icône avant le lien */
.woocommerce-MyAccount-navigation ul li a::before {
    content: '';
    width: 4px;
    height: 100%;
    background: transparent;
    position: absolute;
    left: 0;
    top: 0;
    transition: background 0.3s ease;
}

/* Hover */
.woocommerce-MyAccount-navigation ul li a:hover {
    background: #FFF8ED;
    color: #EE9818;
    padding-left: 30px;
}

.woocommerce-MyAccount-navigation ul li a:hover::before {
    background: #EE9818;
}

/* Lien actif (page courante) */
.woocommerce-MyAccount-navigation ul li.is-active a {
    background: linear-gradient(135deg, #EE9818 0%, #D88516 100%);
    color: white;
    font-weight: 700;
    padding-left: 30px;
}

.woocommerce-MyAccount-navigation ul li.is-active a::before {
    background: white;
    width: 5px;
}

/* Lien de déconnexion (style différent) */
.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #dc3545;
}

.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: #ffebee;
    color: #c82333;
}

/* Icônes par type de page (optionnel) */
.woocommerce-MyAccount-navigation-link--dashboard a::after {
    content: '📊';
    margin-left: auto;
}

.woocommerce-MyAccount-navigation-link--orders a::after {
    content: '📦';
    margin-left: auto;
}

.woocommerce-MyAccount-navigation-link--downloads a::after {
    content: '⬇️';
    margin-left: auto;
}

.woocommerce-MyAccount-navigation-link--edit-address a::after {
    content: '📍';
    margin-left: auto;
}

.woocommerce-MyAccount-navigation-link--payment-methods a::after {
    content: '💳';
    margin-left: auto;
}

.woocommerce-MyAccount-navigation-link--edit-account a::after {
    content: '👤';
    margin-left: auto;
}

.woocommerce-MyAccount-navigation-link--customer-logout a::after {
    content: '🚪';
    margin-left: auto;
}

/* ========================================
   CONTENU PRINCIPAL
   ======================================== */

.woocommerce-MyAccount-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.woocommerce-MyAccount-content > p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.woocommerce-MyAccount-content > p:first-child {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding: 20px;
    background: #FFF8ED;
    border-left: 4px solid #EE9818;
    border-radius: 6px;
    margin-bottom: 30px;
}

.woocommerce-MyAccount-content strong {
    color: #EE9818;
    font-weight: 700;
}

.woocommerce-MyAccount-content a {
    color: #EE9818;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.woocommerce-MyAccount-content a:hover {
    color: #D88516;
    text-decoration: underline;
}

/* ========================================
   TABLEAU DES COMMANDES
   ======================================== */

.woocommerce-orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
}

.woocommerce-orders-table thead {
    background: linear-gradient(135deg, #EE9818 0%, #D88516 100%);
}

.woocommerce-orders-table thead th {
    padding: 15px;
    color: white;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    text-align: left;
    border: none;
}

.woocommerce-orders-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.woocommerce-orders-table tbody tr:hover {
    background: #fafafa;
}

.woocommerce-orders-table tbody td {
    padding: 18px 15px;
    font-size: 15px;
    color: #333;
    vertical-align: middle;
}

.woocommerce-orders-table .order-number {
    font-weight: 700;
    color: #EE9818;
}

.woocommerce-orders-table .order-status {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.order-status.completed {
    background: #d4edda;
    color: #155724;
}

.order-status.processing {
    background: #fff3cd;
    color: #856404;
}

.order-status.on-hold {
    background: #cce5ff;
    color: #004085;
}

.order-status.cancelled,
.order-status.failed {
    background: #f8d7da;
    color: #721c24;
}

.order-status.refunded {
    background: #e2e3e5;
    color: #383d41;
}

.woocommerce-orders-table .order-total {
    font-weight: 700;
    font-size: 17px;
    color: #EE9818;
}

.woocommerce-orders-table .order-actions {
    text-align: right;
}

.woocommerce-button.button {
    display: inline-block;
    padding: 10px 20px;
    
    font-size: 13px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
    background: linear-gradient(135deg, #EE9818 0%, #D88516 100%);
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(238, 152, 24, 0.3);
    
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce-button.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(238, 152, 24, 0.4);
}

/* Message "Aucune commande" */
.woocommerce-message {
    padding: 20px 25px;
    background: #FFF8ED;
    border-left: 4px solid #EE9818;
    border-radius: 6px;
    color: #856404;
    font-size: 15px;
    margin: 20px 0;
}

.woocommerce-message::before {
    content: 'ℹ️ ';
    margin-right: 10px;
}

/* ========================================
   FORMULAIRES (Adresses, Compte)
   ======================================== */

.woocommerce-address-fields,
.woocommerce-EditAccountForm {
    margin-top: 30px;
}

.woocommerce-address-fields h3,
.woocommerce-EditAccountForm legend {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-row label .required {
    color: #dc3545;
}

.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: 12px 15px;
    
    font-size: 15px;
    color: #333;
    
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    
    transition: all 0.3s ease;
}

.form-row input:hover,
.form-row select:hover,
.form-row textarea:hover {
    border-color: #EE9818;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #EE9818;
    box-shadow: 0 0 0 3px rgba(238, 152, 24, 0.1);
}

.form-row textarea {
    min-height: 120px;
    resize: vertical;
}

/* Boutons de formulaire */
.form-row button,
.form-row input[type="submit"] {
    display: inline-block;
    padding: 14px 35px;
    
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
    background: linear-gradient(135deg, #EE9818 0%, #D88516 100%);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(238, 152, 24, 0.3);
    
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-row button:hover,
.form-row input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 152, 24, 0.4);
}

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

.woocommerce-Addresses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.woocommerce-Address {
    background: white;
    padding: 25px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.woocommerce-Address:hover {
    border-color: #EE9818;
    box-shadow: 0 4px 16px rgba(238, 152, 24, 0.15);
}

.woocommerce-Address-title h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.woocommerce-Address address {
    font-style: normal;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

.woocommerce-Address .edit {
    display: inline-block;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #EE9818;
    text-decoration: none;
    border: 2px solid #EE9818;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.woocommerce-Address .edit:hover {
    background: #EE9818;
    color: white;
}

/* ========================================
   MOYENS DE PAIEMENT
   ======================================== */

.woocommerce-PaymentMethods {
    margin-top: 30px;
}

.woocommerce-PaymentMethod {
    background: white;
    padding: 20px 25px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.woocommerce-PaymentMethod:hover {
    border-color: #EE9818;
}

.woocommerce-PaymentMethod strong {
    font-size: 16px;
    color: #333;
}

.woocommerce-PaymentMethod .payment-method-actions {
    display: flex;
    gap: 10px;
}

/* ========================================
   FOOTER DE PAGE
   ======================================== */

.entry-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

.entry-footer .edit-link a {
    font-size: 13px;
    color: #999;
    text-decoration: none;
}

.entry-footer .edit-link a:hover {
    color: #EE9818;
}

/* ========================================
   MESSAGES DE NOTIFICATION
   ======================================== */

.woocommerce-notices-wrapper {
    margin-bottom: 25px;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 6px;
    border-left: 4px solid;
    font-size: 15px;
}

.woocommerce-message {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.woocommerce-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.woocommerce-info {
    background: #FFF8ED;
    border-color: #EE9818;
    color: #856404;
}

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

@media (max-width: 992px) {
    .woocommerce {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .woocommerce-MyAccount-navigation {
        position: static;
    }
    
    .woocommerce-MyAccount-navigation ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
        background: #e0e0e0;
    }
    
    .woocommerce-MyAccount-navigation ul li {
        border: none;
        background: white;
    }
    
    .woocommerce-MyAccount-content {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .woocommerce-account {
        padding: 20px 15px;
    }
    
    .entry-header .entry-title {
        font-size: 26px;
    }
    
    .woocommerce-MyAccount-navigation ul {
        grid-template-columns: 1fr;
    }
    
    .woocommerce-MyAccount-navigation ul li a {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .woocommerce-MyAccount-content {
        padding: 20px;
    }
    
    .woocommerce-orders-table {
        font-size: 13px;
    }
    
    .woocommerce-orders-table thead {
        display: none;
    }
    
    .woocommerce-orders-table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 15px;
    }
    
    .woocommerce-orders-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .woocommerce-orders-table tbody td:last-child {
        border-bottom: none;
    }
    
    .woocommerce-orders-table tbody td::before {
        content: attr(data-title);
        font-weight: 700;
        color: #666;
    }
    
    .woocommerce-Addresses {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .woocommerce-MyAccount-navigation ul li a::after {
        display: none;
    }
    
    .woocommerce-button.button {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   DARK MODE (OPTIONNEL)
   ======================================== */

.dark .woocommerce-MyAccount-navigation,
.dark .woocommerce-MyAccount-content {
    background: #2a2a2a;
}

.dark .woocommerce-MyAccount-navigation ul li a {
    color: #fff;
}

.dark .woocommerce-MyAccount-content > p {
    color: #ccc;
}

.dark .entry-header .entry-title {
    color: #fff;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.woocommerce-MyAccount-content {
    animation: fadeIn 0.5s ease;
}

.woocommerce-orders-table tbody tr {
    animation: fadeIn 0.5s ease;
}