/**
 * Styles personnalisés WooCommerce - Mon Compte
 * Thème cohérent avec le formulaire d'inscription
 */

/* ============================================
   VARIABLES DE COULEURS
   ============================================ */
:root {
    --msr-primary: #00bcd4;
    --msr-primary-dark: #0097a7;
    --msr-gradient-start: #e0f7ff;
    --msr-gradient-end: #ffffff;
    --msr-text-dark: #1a1a1a;
    --msr-text-light: #333;
    --msr-text-muted: #999;
    --msr-success: #4caf50;
    --msr-success-bg: #e8f5e9;
    --msr-border: #e0e0e0;
    --msr-shadow: rgba(0, 0, 0, 0.1);
}

/* ============================================
   CONTAINER GLOBAL MON COMPTE
   ============================================ */
.woocommerce-account .woocommerce {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ============================================
   NAVIGATION MENU MON COMPTE
   ============================================ */
.woocommerce-MyAccount-navigation {
    background: linear-gradient(135deg, var(--msr-gradient-start) 0%, var(--msr-gradient-end) 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px var(--msr-shadow);
    margin-bottom: 30px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.woocommerce-MyAccount-navigation li {
    margin: 0;
}

.woocommerce-MyAccount-navigation a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-radius: 12px;
    color: var(--msr-text-light);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.woocommerce-MyAccount-navigation a:hover {
    background: var(--msr-primary);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.woocommerce-MyAccount-navigation li.is-active a {
    background: var(--msr-primary);
    color: white;
    border-color: var(--msr-primary-dark);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
}

/* Icônes dans le menu */
.woocommerce-MyAccount-navigation a::before {
    content: '→';
    margin-right: 10px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.woocommerce-MyAccount-navigation a:hover::before,
.woocommerce-MyAccount-navigation li.is-active a::before {
    transform: translateX(3px);
}

/* Icônes personnalisées par page */
.woocommerce-MyAccount-navigation-link--dashboard a::before {
    content: '🏠';
}
.woocommerce-MyAccount-navigation-link--orders a::before {
    content: '📦';
}
.woocommerce-MyAccount-navigation-link--downloads a::before {
    content: '⬇️';
}
.woocommerce-MyAccount-navigation-link--edit-address a::before {
    content: '📍';
}
.woocommerce-MyAccount-navigation-link--edit-account a::before {
    content: '👤';
}
.woocommerce-MyAccount-navigation-link--customer-logout a::before {
    content: '🚪';
}

/* ============================================
   CONTENU DES PAGES
   ============================================ */
.woocommerce-MyAccount-content {
    background: linear-gradient(135deg, var(--msr-gradient-start) 0%, var(--msr-gradient-end) 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px var(--msr-shadow);
}

.woocommerce-MyAccount-content > h2,
.woocommerce-MyAccount-content > h3 {
    font-size: 36px;
    font-weight: bold;
    color: var(--msr-text-dark);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--msr-primary);
}

/* ============================================
   TABLEAUX (COMMANDES, ETC.)
   ============================================ */
.woocommerce-orders-table,
.woocommerce-table {
    width: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: none;
}

.woocommerce-orders-table thead,
.woocommerce-table thead {
    background: var(--msr-primary);
    color: white;
}

.woocommerce-orders-table th,
.woocommerce-table th {
    padding: 20px;
    font-weight: bold;
    text-align: left;
    border: none;
}

.woocommerce-orders-table td,
.woocommerce-table td {
    padding: 20px;
    border-bottom: 1px solid var(--msr-border);
}

.woocommerce-orders-table tr:last-child td,
.woocommerce-table tr:last-child td {
    border-bottom: none;
}

.woocommerce-orders-table tr:hover,
.woocommerce-table tbody tr:hover {
    background: var(--msr-gradient-start);
}

/* ============================================
   BOUTONS
   ============================================ */
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content button,
.woocommerce-MyAccount-content input[type="submit"] {
    background: var(--msr-primary);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content button:hover,
.woocommerce-MyAccount-content input[type="submit"]:hover {
    background: var(--msr-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}

/* Bouton secondaire */
.woocommerce-MyAccount-content .button.cancel,
.woocommerce-MyAccount-content .button.delete {
    background: #999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.woocommerce-MyAccount-content .button.cancel:hover,
.woocommerce-MyAccount-content .button.delete:hover {
    background: #777;
}

/* ============================================
   FORMULAIRES
   ============================================ */
.woocommerce-MyAccount-content .form-row {
    margin-bottom: 20px;
}

.woocommerce-MyAccount-content label {
    display: block;
    font-size: 14px;
    color: var(--msr-text-muted);
    margin-bottom: 8px;
    font-weight: bold;
}

.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content input[type="tel"],
.woocommerce-MyAccount-content textarea,
.woocommerce-MyAccount-content select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--msr-border);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.woocommerce-MyAccount-content input:focus,
.woocommerce-MyAccount-content textarea:focus,
.woocommerce-MyAccount-content select:focus {
    outline: none;
    border-color: var(--msr-primary);
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.2);
}

/* ============================================
   ADRESSES
   ============================================ */
.woocommerce-Address {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.woocommerce-Address-title h3 {
    color: var(--msr-text-dark);
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--msr-primary);
}

.woocommerce-Address address {
    font-style: normal;
    line-height: 1.8;
    color: var(--msr-text-light);
}

/* ============================================
   MESSAGES
   ============================================ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid;
    font-size: 16px;
}

.woocommerce-message {
    background: var(--msr-success-bg);
    color: #2e7d32;
    border-color: var(--msr-success);
}

.woocommerce-info {
    background: #e3f2fd;
    color: #1565c0;
    border-color: #2196f3;
}

.woocommerce-error {
    background: #ffebee;
    color: #c62828;
    border-color: #f44336;
}

/* Icônes dans les messages */
.woocommerce-message::before {
    content: '✓ ';
    font-weight: bold;
	position:static;
}

.woocommerce-info::before {
    content: 'ℹ️ ';
	position:static;
}

.woocommerce-error::before {
    content: '⚠️ ';
	position:static;
}

/* ============================================
   LAYOUT GRID (2 COLONNES)
   ============================================ */
@media (min-width: 768px) {
    .woocommerce-account .woocommerce {
        display: flex;
        gap: 30px;
    }
}

/* ============================================
   DÉTAILS DE COMMANDE
   ============================================ */
.woocommerce-order-details {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.woocommerce-order-details__title {
    color: var(--msr-text-dark);
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--msr-primary);
}

/* ============================================
   TÉLÉCHARGEMENTS
   ============================================ */
.woocommerce-MyAccount-downloads {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.woocommerce-MyAccount-downloads-file {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: var(--msr-gradient-start);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.woocommerce-MyAccount-downloads-file:hover {
    background: var(--msr-primary);
    color: white;
    transform: translateX(5px);
}

/* ============================================
   BADGES DE STATUT
   ============================================ */
.woocommerce-order-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.woocommerce-order-status.processing {
    background: #fff3e0;
    color: #ef6c00;
}

.woocommerce-order-status.completed {
    background: var(--msr-success-bg);
    color: #2e7d32;
}

.woocommerce-order-status.cancelled,
.woocommerce-order-status.failed {
    background: #ffebee;
    color: #c62828;
}

.woocommerce-order-status.pending {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        grid-template-columns: 1fr;
    }
    
    .woocommerce-MyAccount-navigation {
        padding: 20px;
    }
    
    .woocommerce-MyAccount-content {
        padding: 20px;
    }
    
    .woocommerce-MyAccount-content > h2,
    .woocommerce-MyAccount-content > h3 {
        font-size: 24px;
    }
    
    .woocommerce-orders-table,
    .woocommerce-table {
        font-size: 14px;
    }
    
    .woocommerce-orders-table th,
    .woocommerce-orders-table td,
    .woocommerce-table th,
    .woocommerce-table td {
        padding: 10px;
    }
}

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

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

/* ============================================
   PAGINATION
   ============================================ */
.woocommerce-pagination {
    text-align: center;
    margin-top: 30px;
}

.woocommerce-pagination ul {
    display: inline-flex;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.woocommerce-pagination li {
    margin: 0;
}

.woocommerce-pagination a,
.woocommerce-pagination span {
    display: block;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    color: var(--msr-text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--msr-border);
}

.woocommerce-pagination a:hover {
    background: var(--msr-primary);
    color: white;
    border-color: var(--msr-primary);
}

.woocommerce-pagination .current {
    background: var(--msr-primary);
    color: white;
    border-color: var(--msr-primary);
}

/* ============================================
   NOTICE VIDE
   ============================================ */
.woocommerce-info.woocommerce-notice--info {
    text-align: center;
    padding: 40px;
    font-size: 18px;
}
/* FORCER la suppression de l'inscription au checkout */
.woocommerce-checkout .woocommerce-account-fields,
.woocommerce-checkout .create-account,
.woocommerce-checkout #createaccount,
.woocommerce-checkout label[for="createaccount"],
.woocommerce-checkout .woocommerce-form__label-for-checkbox[for="createaccount"],
.woocommerce-checkout p.create-account,
body.woocommerce-checkout .create-account,
body.woocommerce-checkout input#createaccount,
body.woocommerce-checkout .woocommerce-account-fields {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Message info personnalisé */
.woocommerce-checkout .woocommerce-info {
    background: linear-gradient(135deg, #e0f7ff 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #00bcd4;
}

.woocommerce-checkout .woocommerce-info a {
    color: #00bcd4;
    font-weight: bold;
}