/**
 * NOVA IP - Espace Client (Mon compte)
 * Version: 2.0.0
 * Last update: 10/12/2024
 *
 * TABLE OF CONTENTS
 * ==========================================
 *
 * 1. VARIABLES
 *
 * 2. LAYOUT
 *    2.1 Wrapper & Container
 *    2.2 Grid (sidebar + main)
 *    2.3 Header + Logout button
 *    2.4 Content area
 *
 * 3. SIDEBAR NAVIGATION
 *    3.1 Nav container
 *    3.2 Nav items & links
 *    3.3 Active state
 *    3.4 Footer (logout desktop)
 *
 * 4. DASHBOARD
 *    4.1 Welcome message
 *    4.2 Shortcuts grid
 *    4.3 Shortcut cards (glassmorphism)
 *    4.4 Hook modules (GDPR link)
 *
 * 5. CONTENT PAGES
 *    5.1 Forms (labels, inputs)
 *    5.2 Addresses grid
 *    5.3 Tables
 *    5.4 Cards
 *    5.5 Address form (body#address)
 *    5.6 Page Identity
 *    5.6.1 Layout 2 colonnes
 *    5.7 Page History (commandes)
 *    5.8 Page Credit Slips (avoirs)
 *    5.9 Page Discount (bons reduction)
 *    5.10 Page Order Follow (retours)
 *    5.11 Page Order Return
 *    5.12 Page GDPR
 *    5.13 Page Order Detail
 *
 * 6. RESPONSIVE
 *    6.1 Small laptop (992-1366px) - MacBook 13"
 *    6.2 Mobile & Tablet (<992px)
 *    6.3 Tablet only (768-991px) - overrides
 *
 * ==========================================
 */

/* ==========================================
   1. VARIABLES
   ========================================== */

.mx-account-wrapper {
  --account-sidebar-width: 350px;
  --account-gap: var(--space-6);
}

/* ==========================================
   2. LAYOUT
   ========================================== */

/* 2.1 Wrapper & Container */
.mx-account-wrapper {
  padding: 0 0 var(--space-10);
  min-height: 60vh;
}

.mx-account-wrapper > .container {
  max-width: var(--container-xl);
}

/* 2.2 Grid (sidebar + main) */
.mx-account-layout {
  display: grid;
  grid-template-columns: var(--account-sidebar-width) 1fr;
  gap: var(--account-gap);
  align-items: start;
}

.mx-account-main {
  min-width: 0;
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

/* 2.3 Header */
.mx-account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.mx-account-header h1 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--mx-black);
  margin: 0;
}

.mx-account-header-logout {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--mx-gray-600);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mx-account-header-logout:hover {
  color: var(--mx-error);
  background: var(--mx-red-50);
}

.mx-account-header-logout svg {
  width: 18px;
  height: 18px;
  color: var(--mx-orange-500);
}

/* 2.4 Content area */
body#address .mx-account-content {
  background: #fff;
  border: 1px solid var(--mx-gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6) var(--space-6);
  font-size: var(--fs-base);
  color: var(--mx-gray-700);
}

/* Limiter la largeur sur grands ecrans */
@media (min-width: 1600px) {
  .mx-account-header {
    max-width: 80%;
  }
  .mx-account-main {
    max-width: 75%;
  }
}

/* ==========================================
   3. SIDEBAR NAVIGATION
   ========================================== */

/* 3.1 Nav container */
.mx-account-sidebar {
  position: sticky;
  top: calc(var(--header-height, 80px) + var(--space-4));
}

.mx-account-nav {
  background: #fff;
  border: 1px solid var(--mx-gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.mx-account-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 3.2 Nav items */
.mx-account-nav-item {
  border-bottom: 1px solid var(--mx-gray-100);
}

.mx-account-nav-item:last-child {
  border-bottom: none;
}

.mx-account-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: var(--mx-gray-700);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  transition: all var(--transition-fast);
}

.mx-account-nav-link:hover {
  background: var(--mx-blue-50);
  color: var(--mx-black);
}

.mx-account-nav-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke-width: 1.5;
}

/* 3.3 Active state */
.mx-account-nav-item.-active .mx-account-nav-link {
  background: var(--mx-orange-50);
  color: var(--mx-black);
  font-weight: var(--fw-semibold);
  border-left: 3px solid var(--mx-orange-500);
  padding-left: calc(var(--space-4) - 3px);
}

.mx-account-nav-item.-active .mx-account-nav-link svg {
  color: var(--mx-black);
}

/* 3.4 Logout button */
.mx-account-nav-footer {
  border-top: 1px solid var(--mx-gray-200);
  padding: var(--space-2);
}

.mx-account-logout {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  color: var(--mx-gray-600);
  text-decoration: none;
  font-size: var(--fs-sm);
  border-radius: var(--radius-md);
}

.mx-account-logout svg {
  color: var(--mx-orange-500);
  transition: all var(--transition-fast);
}

.mx-account-logout:hover {
  background: var(--mx-red-50);
  color: var(--mx-red-600);
}

.mx-account-logout svg {
  width: 18px;
  height: 18px;
}

/* ==========================================
   4. DASHBOARD
   ========================================== */

/* 4.1 Welcome message */
.mx-account-greeting {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--mx-black);
  margin: 0 0 var(--space-2) 0;
}

.mx-account-intro {
  margin: 0 0 var(--space-6) 0;
}

.mx-account-intro p {
  margin: 0;
  color: var(--mx-gray-600);
  font-size: var(--fs-base);
  line-height: 1.6;
}

.mx-account-subtitle {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mx-orange);
}

/* 4.2 Shortcuts grid */
.mx-account-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

/* 4.3 Shortcut cards */
.mx-account-shortcut {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-4);
  background: #fff;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

/* Overlay glassmorphism */
.mx-account-shortcut::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.7) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all var(--transition-fast);
  z-index: 1;
}

.mx-account-shortcut:hover::before {
  background: linear-gradient(45deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.55) 100%);
  backdrop-filter: blur(0.5px);
  -webkit-backdrop-filter: blur(0.5px);
}

/* Contenu au-dessus de l'overlay */
.mx-account-shortcut-icon,
.mx-account-shortcut-label {
  position: relative;
  z-index: 2;
}

.mx-account-shortcut:hover {
  border: 2px solid var(--mx-orange-300);
  text-decoration: none;
}

/* Images de fond par shortcut */
.mx-account-shortcut--orders {
  background-image: url('../../img/account/shortcut-orders.jpg');
}

.mx-account-shortcut--quotations {
  background-image: url('../../img/account/shortcut-devis.jpg');
}

.mx-account-shortcut--addresses {
  background-image: url('../../img/account/shortcut-addresses.jpg');
}

.mx-account-shortcut--identity {
  background-image: url('../../img/account/shortcut-identity.jpg');
}

.mx-account-shortcut--slips {
  background-image: url('../../img/account/shortcut-slips.jpg');
}

.mx-account-shortcut--vouchers {
  background-image: url('../../img/account/shortcut-vouchers.jpg');
}

.mx-account-shortcut--returns {
  background-image: url('../../img/account/shortcut-returns.jpg');
}

.mx-account-shortcut--gdpr {
  background-image: url('../../img/account/shortcut-gdpr.jpg');
}

.mx-account-shortcut-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  flex-shrink: 0;
  background: transparent;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.mx-account-shortcut:hover .mx-account-shortcut-icon {
  background: rgba(249, 115, 22, 0.85);
}

.mx-account-shortcut-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
  stroke-width: 1.5;
  transition: color var(--transition-fast);
}

.mx-account-shortcut:hover .mx-account-shortcut-icon svg {
  color: #fff;
}

.mx-account-shortcut-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: #fff;
  text-align: center;
  text-decoration: none;
}


/* 4.4 Hook modules (GDPR, etc.) - Style Bootstrap links as shortcuts */
.mx-account-shortcuts > a[class*="col-"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-4);
  background: #fff;
  border: 1px solid var(--mx-gray-200);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-fast);
  /* Reset Bootstrap grid */
  position: relative;
  width: auto;
  float: none;
}

.mx-account-shortcuts > a[class*="col-"]:hover {
  border-color: var(--mx-gray-400);
}

.mx-account-shortcuts > a[class*="col-"] .link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.mx-account-shortcuts > a[class*="col-"] .link-item i.material-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--mx-gray-100);
  border-radius: var(--radius-full);
  font-size: 28px;
  color: var(--mx-gray-700);
}

.mx-account-shortcuts > a[class*="col-"]:hover .link-item i.material-icons {
  background: var(--mx-gray-200);
  color: var(--mx-black);
}

/* ==========================================
   5. CONTENT PAGES
   ========================================== */

/* 5.1 Forms - Override PrestaShop default */
.mx-account-content .form-group {
  margin-bottom: var(--space-4);
}

.mx-account-content label {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--mx-gray-700);
}

.mx-account-content .form-control {
  width: 100% !important;
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-base);
  border: 1px solid var(--mx-gray-300);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

/* Override height sur les selects (contrer theme.css) */
.mx-account-content select.form-control:not([size]):not([multiple]) {
  height: auto !important;
}

/* Labels padding reset */
.mx-account-content .form-control-label {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.mx-account-content .form-control:focus {
  outline: none;
  border-color: var(--mx-blue-500);
  box-shadow: 0 0 0 3px rgba(70, 188, 235, 0.15);
}

/* 5.2 Addresses grid */
.mx-account-content .addresses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.mx-account-content .address {
  background: #fff;
  border: 2px solid var(--mx-black);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mx-account-content .address:hover {
  border-color: var(--mx-gray-600);
}

.mx-account-content .address .address-body {
  flex: 1;
}

.mx-account-content .address .address-body h4 {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--mx-black);
  margin: 0 0 var(--space-3) 0;
}

.mx-account-content .address .address-body address {
  font-style: normal;
  font-size: var(--fs-sm);
  color: var(--mx-gray-600);
  line-height: var(--lh-relaxed);
}

/* Première ligne (Nom Prénom) en gras */
.mx-account-content .address .address-body address br:first-of-type ~ br,
.mx-account-content .address .address-body address::first-line {
  font-weight: var(--fw-semibold);
  color: var(--mx-black);
}

.mx-account-content .address .address-footer {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--mx-gray-100);
}

.mx-account-content .address .address-footer a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-sm);
  color: var(--mx-gray-600);
  text-decoration: none;
}

.mx-account-content .address .address-footer a:hover {
  color: var(--mx-black);
  text-decoration: none;
}

.mx-account-content .address .address-footer a i.material-icons {
  font-size: 18px;
}

.mx-account-content .address .address-footer a svg {
  width: 16px;
  height: 16px;
}

/* Notifications container - global Mon Compte */
#wrapper .mx-account-content .notifications-container.container {
  padding-left: 0 !important;
  width: fit-content !important;
  margin: 0 0 var(--space-4) 0 !important;
}

/* Masquer le lien GDPR injecte par le module (on l'a ajoute manuellement) */
#psgdpr-link {
  display: none !important;
}

/* Add address link */
body#addresses .mx-account-content .addresses-footer {
  margin: var(--space-6) 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

body#addresses .mx-account-content .addresses-footer .mx-address-hint {
  font-size: var(--fs-lg);
  color: var(--mx-black);
}

.mx-account-content .addresses-footer a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--mx-blue-50);
  color: var(--mx-blue-700);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.mx-account-content .addresses-footer a:hover {
  background: var(--mx-blue-100);
  color: var(--mx-blue-700);
  text-decoration: none;
}

.mx-account-content .addresses-footer a i.material-icons {
  font-size: 20px;
}

.mx-account-content .addresses-footer a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

body#addresses .mx-account-content .addresses-footer a span {
  margin-top: 0;
  font-size: var(--fs-sm);
  line-height: 1;
  vertical-align: baseline;
}

/* 5.3 Address form (new/edit) */
body#address .mx-address-form-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

body#address .mx-form-row--2cols,
body#address .mx-form-row--3cols {
  display: flex;
  gap: var(--space-4);
}

body#address .mx-form-row--2cols > .form-group,
body#address .mx-form-row--3cols > .form-group {
  flex: 1;
  margin-bottom: 0;
  flex-direction: column;
}

/* Override Bootstrap row layout - labels au-dessus des inputs */
body#address .form-group.row {
  display: flex;
  flex-direction: column;
  margin: 0;
}

body#address .form-group.row > .form-control-label {
  width: 100%;
  max-width: 100%;
  flex: none;
  margin-bottom: var(--space-1);
  text-align: left;
  padding-top: 0;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--mx-gray-700);
}

body#address .form-group.row > .js-input-column {
  width: 100%;
  max-width: 100%;
  flex: none;
  padding: 0;
}

body#address .form-group.row > .form-control-comment {
  display: none;
}

body#address .mx-form-row--3cols > .mx-form-spacer {
  flex: 1;
}

/* Bulle info telephone - passe a la ligne */
body#address .mx-form-row--3cols:has(.mx-phone-info) {
  flex-wrap: wrap;
}

body#address .mx-phone-info {
  flex: 0 0 calc(66.666% - var(--space-4) / 3);
  position: relative;
  margin-top: var(--space-3);
  margin-left: 0;
  background: var(--mx-blue-50);
  border: 1px solid var(--mx-blue-200);
  border-radius: var(--radius-md);
  padding: 0;
  font-size: var(--fs-sm);
  color: var(--mx-blue-800);
  line-height: 1.4;
}

body#address .mx-phone-info::before {
  content: '';
  position: absolute;
  left: var(--space-6);
  top: -8px;
  transform: rotate(45deg);
  width: 14px;
  height: 14px;
  background: var(--mx-blue-50);
  border-top: 1px solid var(--mx-blue-200);
  border-left: 1px solid var(--mx-blue-200);
}

body#address .mx-phone-info p {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  color: var(--mx-blue-800);
}

/* Cacher form-control-comment */
body#address .mx-form-row--2cols .form-control-comment,
body#address .mx-form-row--3cols .form-control-comment {
  display: none;
}

/* Ligne pro - masquee par defaut */
body#address .mx-form-row--pro {
  display: none;
}

/* Footer formulaire */
body#address .mx-address-form-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--mx-gray-200);
}

body#address .cancel-address {
  color: var(--mx-gray-600);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  text-decoration: none;
  padding: var(--space-2) 0;
  transition: color var(--transition-fast);
}

body#address .cancel-address:hover {
  color: var(--mx-gray-900);
  text-decoration: underline;
  text-underline-offset: 6px;
}

body#address .form-control-submit {
  background: var(--mx-gray-900);
  color: #fff;
  border: none;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
}

body#address .form-control-submit:hover {
  background: var(--mx-orange-500);
}

/* Hint alias */
body#address .mx-alias-hint {
  font-size: var(--fs-xs);
  color: var(--mx-gray-500);
}

body#address .mx-alias-hint--desktop {
  margin-left: var(--space-1);
}

body#address .mx-alias-hint--tablet {
  display: none;
}

/* 5.4 Tables */
.mx-account-content table {
  width: 100%;
  border-collapse: collapse;
}

.mx-account-content table thead th {
  padding: var(--space-3) var(--space-4);
  background: var(--mx-gray-100);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-700);
  text-align: left;
  border-bottom: 2px solid var(--mx-gray-200);
}

.mx-account-content table tbody td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-sm);
  color: var(--mx-gray-700);
  border-bottom: 1px solid var(--mx-gray-100);
  vertical-align: middle;
}

.mx-account-content table tbody tr:hover {
  background: var(--mx-gray-50);
}

/* 5.3 Cards - Reset PrestaShop .card */
.mx-account-content .card {
  background: #fff;
  border: 1px solid var(--mx-gray-200);
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.mx-account-content .card-block,
.mx-account-content .card-body {
  padding: var(--space-4);
}

/* ==========================================
   5.6 Page Identity (Informations personnelles)
   ========================================== */

body#identity .mx-identity-wrapper {
  max-width: 100%;
}

body#identity .mx-identity-form {
  width: 100%;
}

body#identity .mx-identity-form-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* Sections */
body#identity .mx-form-section {
  padding-bottom: var(--space-6);
}

body#identity .mx-form-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

/* Checkboxes - Structure identique à register-form */
body#identity .js-customer-form span.custom-checkbox {
  display: flex !important;
  align-items: flex-start !important;
  gap: var(--space-3) !important;
  height: fit-content;
  width: 100%;
}

body#identity .js-customer-form span.custom-checkbox label {
  flex: 1 !important;
  display: block !important;
  cursor: pointer;
  font-size: var(--fs-sm) !important;
  font-weight: var(--fw-normal) !important;
  color: var(--mx-gray-700) !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  text-align: left !important;
}

body#identity .js-customer-form .mx-checkbox-wrapper {
  display: flex;
  height: fit-content;
  gap: 5px;
}

body#identity .js-customer-form .mx-checkbox-label {
  flex-direction: column;
  align-items: flex-start;
}

body#identity .js-customer-form span.custom-checkbox input[type="checkbox"] {
  position: static !important;
  flex-shrink: 0 !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  margin: 0 !important;
  margin-top: 2px !important;
  padding: 0 !important;
  cursor: pointer;
  border: 2px solid #000 !important;
  border-radius: 4px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background: white !important;
  transition: all 0.2s ease;
  visibility: visible !important;
  opacity: 1 !important;
}

body#identity .js-customer-form span.custom-checkbox input[type="checkbox"]:checked {
  background: #000 !important;
  border-color: #000 !important;
}

body#identity .js-customer-form .form-group:has(span.custom-checkbox) .col-md-6 {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding: 0 !important;
}

/* Required notice aligné à gauche */
body#identity .js-customer-form .mx-required-notice {
  text-align: left;
}

/* Input group mot de passe avec bouton Afficher */
body#identity .js-customer-form .input-group,
body#identity .js-customer-form .field-password-policy .input-group {
  display: flex !important;
  align-items: stretch;
  width: 100%;
}

body#identity .js-customer-form .input-group .form-control {
  flex: 1;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

body#identity .js-customer-form .input-group .input-group-btn {
  display: flex !important;
  align-items: center;
  width: 100px;
  flex: 0 0 auto;
}

body#identity .js-customer-form .input-group .input-group-btn > button.btn,
body#identity .js-customer-form .input-group .input-group-btn > .btn,
body#identity .js-customer-form .input-group-btn button {
  height: 100%;
  width: 100%;
  padding: 0 var(--space-4) !important;
  background: var(--mx-orange-50) !important;
  color: var(--mx-gray-700) !important;
  border: 1px solid var(--mx-gray-300) !important;
  border-left: none !important;
  border-top-right-radius: var(--radius-md) !important;
  border-bottom-right-radius: var(--radius-md) !important;
  font-size: var(--fs-xs) !important;
  font-weight: var(--fw-medium) !important;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  box-shadow: none !important;
}

/* Footer formulaire identity */
body#identity .js-customer-form .form-footer {
  margin-top: var(--space-8);
}

body#identity .js-customer-form .form-footer .mx-btn-block {
  max-width: 250px;
}

body#identity .mx-form-section-hint {
  font-size: var(--fs-sm);
  color: var(--mx-gray-500);
  margin: 0 0 var(--space-4);
}

/* Lignes formulaire */
body#identity .mx-form-row {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

body#identity .mx-form-row:last-child {
  margin-bottom: 0;
}

body#identity .mx-form-row--1col {
  flex-direction: column;
}

body#identity .mx-form-row--2cols > .form-group,
body#identity .mx-form-row--2cols > .field-password-policy {
  flex: 1;
  min-width: 0;
}

body#identity .mx-form-row--checkboxes {
  flex-direction: column;
  gap: var(--space-2);
}

/* Override Bootstrap form-group row */
body#identity .form-group.row {
  display: flex;
  flex-direction: column;
  margin: 0;
}

body#identity .form-group.row > label {
  text-align: left;
  padding: 0;
  margin-bottom: var(--space-2);
}

body#identity .form-group.row > .col-md-6,
body#identity .form-group.row > .col-md-7 {
  width: 100%;
  max-width: 100%;
  flex: 1;
  padding: 0;
}

/* Labels */
body#identity .form-control-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--mx-gray-700);
  margin-bottom: var(--space-2);
}

/* Inputs */
body#identity .form-control {
  width: 100%;
  padding: var(--space-3);
  font-size: var(--fs-sm);
  border: 1px solid var(--mx-gray-300);
  border-radius: var(--radius-md);
  background: #fff;
  transition: all var(--transition-fast);
}

body#identity .form-control:focus {
  outline: none;
  border-color: var(--mx-blue-500);
  box-shadow: 0 0 0 3px var(--mx-blue-100);
}

/* Radios civilite */
body#identity .radio-inline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-right: var(--space-4);
  font-size: var(--fs-sm);
  color: var(--mx-gray-700);
  cursor: pointer;
}

/* Checkboxes preferences */
body#identity .custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

body#identity .custom-checkbox label {
  font-size: var(--fs-sm);
  color: var(--mx-gray-700);
  cursor: pointer;
}

/* Password policy */
body#identity .field-password-policy {
  flex: 1;
  min-width: 0;
}

/* Footer */
body#identity .mx-identity-form-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--mx-gray-200);
}

body#identity .form-control-submit {
  background: var(--mx-gray-900);
  color: #fff;
  border: none;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
}

body#identity .form-control-submit:hover {
  background: var(--mx-orange-500);
}

/* Spacer */
body#identity .mx-form-spacer {
  flex: 1;
  min-width: 0;
}

/* Cacher form-control-comment */
body#identity .form-control-comment {
  display: none;
}

/* ==========================================
   5.6.1 Layout 2 colonnes (Identity + Registration)
   ========================================== */

.mx-form-grid-2cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.mx-form-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.mx-form-grid-2cols .mx-form-section-title {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-900);
  margin: 0;
}

.mx-form-grid-2cols .mx-form-section-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Lignes 2 colonnes dans les sections */
.mx-form-grid-2cols .mx-form-row--2cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.mx-form-grid-2cols .mx-form-row--2cols > .form-group {
  margin: 0;
}

/* Section submit */
.mx-form-grid-2cols .mx-form-section--submit {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.mx-form-grid-2cols .mx-form-section--submit .mx-required-notice {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--mx-gray-500);
}

/* Override form-group dans le layout */
.mx-form-grid-2cols .form-group.row {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.mx-form-grid-2cols .form-group.row > label {
  width: 100%;
  max-width: 100%;
  padding: 0;
  text-align: left;
  margin-bottom: var(--space-2);
}

.mx-form-grid-2cols .form-group.row > .col-md-6,
.mx-form-grid-2cols .form-group.row > .col-md-7 {
  width: 100%;
  max-width: 100%;
  flex: 1;
  padding: 0;
}

.mx-form-grid-2cols .form-control-comment {
  display: none;
}

/* Responsive : mobile = 1 colonne */
@media (max-width: 991px) {
  .mx-form-grid-2cols {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

/* ==========================================
   5.7 Page History (Historique commandes)
   ========================================== */

body#history .mx-history-intro {
  font-size: var(--fs-sm);
  color: var(--mx-gray-600);
  margin: 0 0 var(--space-6);
}

/* Liste des commandes */
body#history .mx-orders-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Carte commande */
body#history .mx-order-card {
  background: #fff;
  border: 1px solid var(--mx-gray-300);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Header carte */
body#history .mx-order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  background: var(--mx-gray-50);
  border-bottom: 1px solid var(--mx-gray-200);
}

body#history .mx-order-info {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

body#history .mx-order-ref {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-900);
}

body#history .mx-order-date {
  font-size: var(--fs-sm);
  color: var(--mx-gray-500);
}

body#history .mx-order-status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Body carte */
body#history .mx-order-card-body {
  padding: var(--space-4);
}

body#history .mx-order-details {
  display: flex;
  gap: var(--space-8);
  background: var(--mx-blue-50);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

body#history .mx-order-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

body#history .mx-order-detail-label {
  font-size: var(--fs-xs);
  color: var(--mx-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body#history .mx-order-detail-value {
  font-size: var(--fs-sm);
  color: var(--mx-gray-700);
}

body#history .mx-order-total {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-900);
}

/* Footer carte */
body#history .mx-order-card-footer {
  padding: var(--space-3) var(--space-4);
  background: var(--mx-gray-50);
  border-top: 1px solid var(--mx-gray-200);
}

body#history .mx-order-actions {
  display: flex;
  gap: var(--space-4);
}

body#history .mx-order-action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--mx-gray-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

body#history .mx-order-action:hover {
  color: var(--mx-blue-600);
  text-decoration: none;
}

body#history .mx-order-action svg {
  width: 16px;
  height: 16px;
}

body#history .mx-order-action--details:hover {
  color: var(--mx-blue-600);
}

body#history .mx-order-action--invoice:hover {
  color: var(--mx-orange-500);
}

body#history .mx-order-action--reorder:hover {
  color: var(--mx-success);
}

/* Etat vide */
body#history .mx-history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-4);
  text-align: center;
}

body#history .mx-history-empty svg {
  width: 64px;
  height: 64px;
  color: var(--mx-gray-300);
  margin-bottom: var(--space-4);
}

body#history .mx-history-empty p {
  font-size: var(--fs-base);
  color: var(--mx-gray-500);
  margin: 0 0 var(--space-6);
}

body#history .mx-history-empty .btn {
  background: var(--mx-gray-900);
  color: #fff;
  border: none;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transition: all var(--transition-fast);
}

body#history .mx-history-empty .btn:hover {
  background: var(--mx-orange-500);
}

/* ------------------------------------------
   5.8 Page Credit Slips (Avoirs)
   ------------------------------------------ */

body#order-slip .mx-credit-slips-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Carte avoir */
body#order-slip .mx-credit-slip-card {
  background: #fff;
  border: 1px solid var(--mx-gray-300);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Header carte */
body#order-slip .mx-credit-slip-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  background: var(--mx-gray-50);
  border-bottom: 1px solid var(--mx-gray-200);
}

body#order-slip .mx-credit-slip-info {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

body#order-slip .mx-credit-slip-number {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-900);
}

body#order-slip .mx-credit-slip-date {
  font-size: var(--fs-sm);
  color: var(--mx-gray-500);
}

/* Body carte */
body#order-slip .mx-credit-slip-card-body {
  padding: var(--space-4);
}

body#order-slip .mx-credit-slip-details {
  display: flex;
  gap: var(--space-8);
  background: var(--mx-blue-50);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

body#order-slip .mx-credit-slip-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

body#order-slip .mx-credit-slip-detail-label {
  font-size: var(--fs-xs);
  color: var(--mx-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body#order-slip .mx-credit-slip-detail-value {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--mx-gray-700);
}

body#order-slip a.mx-credit-slip-detail-value {
  text-decoration: underline;
  text-underline-offset: var(--space-2);
}

body#order-slip a.mx-credit-slip-detail-value:hover {
  color: var(--mx-blue-600);
}

/* Footer carte */
body#order-slip .mx-credit-slip-card-footer {
  padding: var(--space-3) var(--space-4);
  background: var(--mx-gray-50);
  border-top: 1px solid var(--mx-gray-200);
}

body#order-slip .mx-credit-slip-actions {
  display: flex;
  gap: var(--space-4);
}

body#order-slip .mx-credit-slip-action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--mx-gray-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

body#order-slip .mx-credit-slip-action:hover {
  color: var(--mx-blue-600);
  text-decoration: none;
}

body#order-slip .mx-credit-slip-action svg {
  width: 16px;
  height: 16px;
}

body#order-slip .mx-credit-slip-action--download:hover {
  color: var(--mx-orange-500);
}

/* Etat vide - reutilise les styles de history */
body#order-slip .mx-history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-4);
  text-align: center;
}

body#order-slip .mx-history-empty svg {
  width: 64px;
  height: 64px;
  color: var(--mx-gray-300);
  margin-bottom: var(--space-4);
}

body#order-slip .mx-history-empty p {
  font-size: var(--fs-base);
  color: var(--mx-gray-500);
  margin: 0;
}

/* ------------------------------------------
   5.9 Page Discount (Bons de reduction)
   ------------------------------------------ */

body#discount .mx-vouchers-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Carte bon */
body#discount .mx-voucher-card {
  background: #fff;
  border: 1px solid var(--mx-gray-300);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Header carte */
body#discount .mx-voucher-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  background: var(--mx-gray-50);
  border-bottom: 1px solid var(--mx-gray-200);
}

body#discount .mx-voucher-info {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

body#discount .mx-voucher-code {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--mx-orange-500);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  font-family: var(--ff-mono, monospace);
  letter-spacing: 0.05em;
}

body#discount .mx-voucher-name {
  font-size: var(--fs-sm);
  color: var(--mx-gray-600);
}

body#discount .mx-voucher-value {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--mx-success);
}

/* Body carte */
body#discount .mx-voucher-card-body {
  padding: var(--space-4);
}

body#discount .mx-voucher-details {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

body#discount .mx-voucher-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

body#discount .mx-voucher-detail-label {
  font-size: var(--fs-xs);
  color: var(--mx-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body#discount .mx-voucher-detail-value {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--mx-gray-700);
}

/* Etat vide */
body#discount .mx-history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-4);
  text-align: center;
}

body#discount .mx-history-empty svg {
  width: 64px;
  height: 64px;
  color: var(--mx-gray-300);
  margin-bottom: var(--space-4);
}

body#discount .mx-history-empty p {
  font-size: var(--fs-base);
  color: var(--mx-gray-500);
  margin: 0;
}

/* ------------------------------------------
   5.10 Page Order Follow (Retours produit)
   ------------------------------------------ */

body#order-follow .mx-returns-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Carte retour */
body#order-follow .mx-return-card {
  background: #fff;
  border: 1px solid var(--mx-gray-300);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Header carte */
body#order-follow .mx-return-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  background: var(--mx-gray-50);
  border-bottom: 1px solid var(--mx-gray-200);
}

body#order-follow .mx-return-info {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

body#order-follow .mx-return-number {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-900);
}

body#order-follow .mx-return-date {
  font-size: var(--fs-sm);
  color: var(--mx-gray-500);
}

body#order-follow .mx-return-status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--mx-gray-100);
  color: var(--mx-gray-700);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
}

/* Couleurs statuts retour selon state */
body#order-follow .mx-return-status[data-status="1"] {
  background: var(--mx-info-light);
  color: var(--mx-blue-700);
}

body#order-follow .mx-return-status[data-status="2"] {
  background: #f3e8ff;
  color: var(--mx-purple-500);
}

body#order-follow .mx-return-status[data-status="3"] {
  background: var(--mx-success-light);
  color: var(--mx-success);
}

body#order-follow .mx-return-status[data-status="4"] {
  background: var(--mx-error-light);
  color: var(--mx-error);
}

body#order-follow .mx-return-status[data-status="5"] {
  background: var(--mx-success-light);
  color: var(--mx-green-500);
}

/* Body carte */
body#order-follow .mx-return-card-body {
  padding: var(--space-4);
}

body#order-follow .mx-return-details {
  display: flex;
  gap: var(--space-8);
  background: var(--mx-blue-50);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

body#order-follow .mx-return-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

body#order-follow .mx-return-detail-label {
  font-size: var(--fs-xs);
  color: var(--mx-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body#order-follow .mx-return-detail-value {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--mx-gray-700);
}

body#order-follow a.mx-return-detail-value {
  text-decoration: underline;
  text-underline-offset: var(--space-2);
}

body#order-follow a.mx-return-detail-value:hover {
  color: var(--mx-blue-600);
}

/* Footer carte */
body#order-follow .mx-return-card-footer {
  padding: var(--space-3) var(--space-4);
  background: var(--mx-gray-50);
  border-top: 1px solid var(--mx-gray-200);
}

body#order-follow .mx-return-actions {
  display: flex;
  gap: var(--space-4);
}

body#order-follow .mx-return-action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--mx-gray-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

body#order-follow .mx-return-action:hover {
  color: var(--mx-blue-600);
  text-decoration: none;
}

body#order-follow .mx-return-action svg {
  width: 16px;
  height: 16px;
}

body#order-follow .mx-return-action--print:hover {
  color: var(--mx-orange-500);
}

/* Etat vide */
body#order-follow .mx-history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-4);
  text-align: center;
}

body#order-follow .mx-history-empty svg {
  width: 64px;
  height: 64px;
  color: var(--mx-gray-300);
  margin-bottom: var(--space-4);
}

body#order-follow .mx-history-empty p {
  font-size: var(--fs-base);
  color: var(--mx-gray-500);
  margin: 0;
}

/* ------------------------------------------
   5.11 Page Order Return (Detail retour)
   ------------------------------------------ */

/* Carte principale */
body#order-return .mx-return-detail-card {
  background: #fff;
  border: 1px solid var(--mx-gray-300);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

body#order-return .mx-return-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  background: var(--mx-gray-50);
  border-bottom: 1px solid var(--mx-gray-200);
}

body#order-return .mx-return-detail-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

body#order-return .mx-return-detail-number {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-900);
}

body#order-return .mx-return-detail-date {
  font-size: var(--fs-sm);
  color: var(--mx-gray-500);
}

body#order-return .mx-return-detail-status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--mx-gray-100);
  color: var(--mx-gray-700);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
}

/* Couleurs statuts retour selon state */
body#order-return .mx-return-detail-status[data-status="1"] {
  background: var(--mx-info-light);
  color: var(--mx-blue-700);
}

body#order-return .mx-return-detail-status[data-status="2"] {
  background: #f3e8ff;
  color: var(--mx-purple-500);
}

body#order-return .mx-return-detail-status[data-status="3"] {
  background: var(--mx-success-light);
  color: var(--mx-success);
}

body#order-return .mx-return-detail-status[data-status="4"] {
  background: var(--mx-error-light);
  color: var(--mx-error);
}

body#order-return .mx-return-detail-status[data-status="5"] {
  background: var(--mx-success-light);
  color: var(--mx-green-500);
}

body#order-return .mx-return-detail-body {
  padding: var(--space-5);
}

body#order-return .mx-return-detail-info {
  margin-bottom: var(--space-5);
}

body#order-return .mx-return-detail-info p {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-sm);
  color: var(--mx-gray-600);
  line-height: 1.6;
}

body#order-return .mx-return-detail-info p:last-child {
  margin-bottom: 0;
}

/* Liste produits */
body#order-return .mx-return-detail-products-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-900);
  margin: 0 0 var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body#order-return .mx-return-products-list {
  background: var(--mx-blue-50);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

body#order-return .mx-return-product-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--mx-blue-100);
}

body#order-return .mx-return-product-item:first-child {
  padding-top: 0;
}

body#order-return .mx-return-product-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

body#order-return .mx-return-product-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
  padding-right: var(--space-4);
}

body#order-return .mx-return-product-name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--mx-gray-800);
}

body#order-return .mx-return-product-ref {
  font-size: var(--fs-xs);
  color: var(--mx-gray-500);
}

body#order-return .mx-return-product-qty {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-700);
  white-space: nowrap;
}

/* Carte rappel (state == 2) */
body#order-return .mx-return-reminder-card {
  background: var(--mx-orange-50);
  border: 1px solid var(--mx-orange-200);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

body#order-return .mx-return-reminder-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--mx-orange-700);
  margin: 0 0 var(--space-4);
}

body#order-return .mx-return-reminder-title svg {
  width: 20px;
  height: 20px;
}

body#order-return .mx-return-reminder-body {
  font-size: var(--fs-sm);
  color: var(--mx-gray-700);
}

body#order-return .mx-return-reminder-list {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-5);
}

body#order-return .mx-return-reminder-list li {
  margin-bottom: var(--space-2);
  line-height: 1.6;
}

body#order-return .mx-return-reminder-list li:last-child {
  margin-bottom: 0;
}

body#order-return .mx-return-reminder-list a {
  color: var(--mx-orange-700);
  font-weight: var(--fw-medium);
  text-decoration: underline;
  text-underline-offset: var(--space-1);
}

body#order-return .mx-return-reminder-list a:hover {
  color: var(--mx-orange-800);
}

body#order-return .mx-return-reminder-note {
  margin: 0 0 var(--space-3);
  line-height: 1.6;
}

body#order-return .mx-return-reminder-contact {
  margin: 0;
}

body#order-return .mx-return-reminder-contact a {
  color: var(--mx-blue-600);
  font-weight: var(--fw-medium);
  text-decoration: underline;
  text-underline-offset: var(--space-1);
}

body#order-return .mx-return-reminder-contact a:hover {
  color: var(--mx-blue-700);
}

/* ------------------------------------------
   5.12 Page GDPR (Donnees personnelles)
   ------------------------------------------ */

.mx-gdpr-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.mx-gdpr-section {
  background: #fff;
  border: 1px solid var(--mx-gray-300);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.mx-gdpr-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.mx-gdpr-section-header svg {
  width: 24px;
  height: 24px;
  color: var(--mx-orange-600);
}

.mx-gdpr-section-header h2 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-900);
  margin: 0;
}

.mx-gdpr-section-text {
  font-size: var(--fs-sm);
  color: var(--mx-gray-600);
  line-height: 1.7;
  margin: 0 0 var(--space-4);
}

.mx-gdpr-section-text:last-child {
  margin-bottom: 0;
}

.mx-gdpr-section-text a {
  color: var(--mx-orange-500);
  text-decoration: underline;
  text-underline-offset: var(--space-1);
}

.mx-gdpr-section-text a:hover {
  color: var(--mx-orange-600);
}

.mx-gdpr-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.mx-gdpr-actions a {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.mx-gdpr-actions .mx-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.mx-gdpr-actions .mx-btn svg {
  width: 18px;
  height: 18px;
}

.mx-gdpr-actions .mx-btn-csv {
  background: var(--mx-success);
  color: #fff;
  border: 1px solid var(--mx-success);
}

.mx-gdpr-actions .mx-btn-csv:hover {
  background: var(--mx-green-500);
  border-color: var(--mx-green-500);
}

.mx-gdpr-actions .mx-btn-primary {
  background: var(--mx-gray-900);
  color: #fff;
  border: 1px solid var(--mx-gray-900);
}

.mx-gdpr-actions .mx-btn-primary:hover {
  background: var(--mx-orange-500);
  border-color: var(--mx-orange-500);
}

/* ------------------------------------------
   5.13 Page Order Detail (Detail commande)
   ------------------------------------------ */

/* Lien retour historique */
body#order-detail .mx-order-detail-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--mx-gray-600);
  text-decoration: none;
  margin-bottom: var(--space-4);
  transition: color var(--transition-fast);
}

body#order-detail .mx-order-detail-back:hover {
  color: var(--mx-orange-500);
}

body#order-detail .mx-order-detail-back svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

/* Header commande */
body#order-detail .mx-order-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid var(--mx-gray-300);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

body#order-detail .mx-order-detail-header-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

body#order-detail .mx-order-detail-ref {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-900);
}

body#order-detail .mx-order-detail-date {
  font-size: var(--fs-sm);
  color: var(--mx-gray-500);
}

/* Bouton Commander a nouveau */
body#order-detail .mx-btn-reorder {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--mx-gray-900);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: all var(--transition-fast);
}

body#order-detail .mx-btn-reorder:hover {
  background: var(--mx-orange-500);
  color: #fff;
}

body#order-detail .mx-btn-reorder svg {
  width: 16px;
  height: 16px;
}

/* Bloc facture */
body#order-detail .mx-order-detail-invoice {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--mx-blue-50);
  border: 1px solid var(--mx-blue-200);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

body#order-detail .mx-order-detail-invoice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--mx-blue-100);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

body#order-detail .mx-order-detail-invoice-icon svg {
  width: 24px;
  height: 24px;
  color: var(--mx-blue-600);
}

body#order-detail .mx-order-detail-invoice-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}

body#order-detail .mx-order-detail-invoice-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-900);
}

body#order-detail .mx-order-detail-invoice-text {
  font-size: var(--fs-xs);
  color: var(--mx-gray-600);
}

body#order-detail .mx-btn-invoice {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--mx-gray-900);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: all var(--transition-fast);
}

body#order-detail .mx-btn-invoice:hover {
  background: var(--mx-orange-500);
  color: #fff;
}

body#order-detail .mx-btn-invoice svg {
  width: 16px;
  height: 16px;
}

/* Infos meta (transporteur, paiement) */
body#order-detail .mx-order-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  background: #fff;
  border: 1px solid var(--mx-gray-300);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

body#order-detail .mx-order-detail-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
}

body#order-detail .mx-order-detail-meta-item svg {
  width: 18px;
  height: 18px;
  color: var(--mx-gray-400);
}

body#order-detail .mx-order-detail-meta-label {
  color: var(--mx-gray-600);
}

body#order-detail .mx-order-detail-meta-value {
  font-weight: var(--fw-medium);
  color: var(--mx-gray-700);
}

/* Sections generiques */
body#order-detail .mx-order-detail-section {
  background: #fff;
  border: 1px solid var(--mx-gray-300);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

body#order-detail .mx-order-detail-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--mx-gray-200);
}

body#order-detail .mx-order-detail-section-header svg {
  width: 22px;
  height: 22px;
  color: var(--mx-orange-500);
}

body#order-detail .mx-order-detail-section-header h2 {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-900);
  margin: 0;
}

/* Historique statuts (timeline) */
body#order-detail .mx-order-detail-history {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: var(--space-4);
}

body#order-detail .mx-order-detail-history::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--mx-gray-200);
}

body#order-detail .mx-order-detail-history-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  position: relative;
}

body#order-detail .mx-order-detail-history-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: calc(-1 * var(--space-4));
  z-index: 1;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--mx-gray-200);
}

body#order-detail .mx-order-detail-history-item.-current .mx-order-detail-history-dot {
  box-shadow: 0 0 0 3px var(--dot-color);
}

body#order-detail .mx-order-detail-history-item.-current {
  font-weight: var(--fw-semibold);
}

body#order-detail .mx-order-detail-history-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

body#order-detail .mx-order-detail-history-status {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

body#order-detail .mx-order-detail-history-date {
  font-size: var(--fs-xs);
  color: var(--mx-gray-500);
}

/* Bloc tracking */
body#order-detail .mx-order-detail-tracking {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--mx-success-light);
  border: 1px solid var(--mx-success);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

body#order-detail .mx-order-detail-tracking svg {
  width: 20px;
  height: 20px;
  color: var(--mx-success);
  flex-shrink: 0;
}

body#order-detail .mx-order-detail-tracking-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

body#order-detail .mx-order-detail-tracking-content span {
  font-size: var(--fs-sm);
  color: var(--mx-gray-700);
}

body#order-detail .mx-order-detail-tracking-content a {
  font-size: var(--fs-xs);
  color: var(--mx-success);
  word-break: break-all;
}

/* Adresses */
body#order-detail .mx-order-detail-addresses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

body#order-detail .mx-order-detail-address-card {
  background: #fff;
  border: 2px solid var(--mx-gray-900);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

body#order-detail .mx-order-detail-address-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

body#order-detail .mx-order-detail-address-header svg {
  width: 18px;
  height: 18px;
  color: var(--mx-gray-900);
}

body#order-detail .mx-order-detail-address-card address {
  font-size: var(--fs-sm);
  color: var(--mx-gray-600);
  font-style: normal;
  line-height: 1.7;
}

body#order-detail .mx-order-detail-address-card address::first-line {
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-900);
}

body#order-detail .mx-order-detail-address-header h3 {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-900);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

body#order-detail .mx-order-detail-address-card address {
  font-size: var(--fs-sm);
  color: var(--mx-gray-600);
  font-style: normal;
  line-height: 1.7;
}

/* Table produits */
body#order-detail .mx-order-products-table {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--mx-blue-100);
}

body#order-detail .mx-order-products {
  width: 100%;
  border-collapse: collapse;
}

body#order-detail .mx-order-products th,
body#order-detail .mx-order-products td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--mx-blue-100);
}

body#order-detail .mx-order-products th,
body#order-detail #order-products th {
  background: var(--mx-blue-50);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-700);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Fallback pour table classic */
body#order-detail #order-products {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--mx-blue-100);
  border-radius: var(--radius-md);
  overflow: hidden;
}

body#order-detail #order-products th,
body#order-detail #order-products td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--mx-blue-100);
}

body#order-detail #order-products tfoot td {
  background: var(--mx-blue-50);
  border-bottom: none;
}

body#order-detail #order-products .line-total td {
  font-weight: var(--fw-bold);
}

body#order-detail .mx-order-products .col-qty,
body#order-detail .mx-order-products .col-price,
body#order-detail .mx-order-products .col-total {
  text-align: right;
  width: 100px;
}

body#order-detail .mx-order-product-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

body#order-detail .mx-order-product-name {
  font-weight: var(--fw-medium);
  color: var(--mx-gray-900);
  text-decoration: none;
}

body#order-detail .mx-order-product-name:hover {
  color: var(--mx-orange-500);
}

body#order-detail .mx-order-product-ref {
  font-size: var(--fs-xs);
  color: var(--mx-gray-500);
}

body#order-detail .mx-order-product-download,
body#order-detail .mx-order-product-custom {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-xs);
  color: var(--mx-blue-600);
  text-decoration: none;
  margin-top: var(--space-1);
}

body#order-detail .mx-order-product-download:hover,
body#order-detail .mx-order-product-custom:hover {
  color: var(--mx-orange-500);
}

body#order-detail .mx-order-product-download svg,
body#order-detail .mx-order-product-custom svg {
  width: 14px;
  height: 14px;
}

body#order-detail .mx-order-products tfoot td {
  border-bottom: none;
  background: var(--mx-blue-50);
}

body#order-detail .mx-order-subtotal td {
  font-size: var(--fs-sm);
  color: var(--mx-gray-600);
}

body#order-detail .mx-order-subtotal td:last-child {
  font-weight: var(--fw-medium);
  color: var(--mx-gray-700);
}

body#order-detail .mx-order-total td {
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
  color: var(--mx-gray-900);
}

/* Produits mobile */
body#order-detail .mx-order-products-mobile {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

body#order-detail .mx-order-product-card {
  border: 1px solid var(--mx-gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

body#order-detail .mx-order-product-card-header {
  padding: var(--space-3);
  border-bottom: 1px solid var(--mx-gray-200);
}

body#order-detail .mx-order-product-card-header .mx-order-product-name {
  display: block;
  margin-bottom: var(--space-1);
}

body#order-detail .mx-order-product-card-body {
  padding: var(--space-3);
}

body#order-detail .mx-order-product-card-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
  padding: var(--space-1) 0;
}

body#order-detail .mx-order-product-card-row.-total {
  border-top: 1px solid var(--mx-gray-200);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  font-weight: var(--fw-semibold);
}

body#order-detail .mx-order-product-card-footer {
  padding: var(--space-2) var(--space-3);
  background: var(--mx-gray-100);
}

body#order-detail .mx-order-totals-mobile {
  background: #fff;
  border: 1px solid var(--mx-gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-top: var(--space-3);
}

body#order-detail .mx-order-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
  padding: var(--space-1) 0;
}

body#order-detail .mx-order-totals-row.-total {
  border-top: 1px solid var(--mx-gray-200);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
}

/* Expedition */
body#order-detail .mx-order-detail-shipping {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

body#order-detail .mx-order-detail-shipping-card {
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

body#order-detail .mx-order-detail-shipping-row {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-1) 0;
}

body#order-detail .mx-order-detail-shipping-label {
  font-size: var(--fs-sm);
  color: var(--mx-gray-500);
  min-width: 100px;
}

body#order-detail .mx-order-detail-shipping-value {
  font-size: var(--fs-sm);
  color: var(--mx-gray-700);
  font-weight: var(--fw-medium);
}

/* Messages */
body#order-detail .mx-order-messages {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

body#order-detail .mx-order-message {
  background: var(--mx-blue-50);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

body#order-detail .mx-order-message-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

body#order-detail .mx-order-message-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--mx-blue-100);
  border-radius: 50%;
  flex-shrink: 0;
}

body#order-detail .mx-order-message-avatar svg {
  width: 18px;
  height: 18px;
  color: var(--mx-blue-600);
}

body#order-detail .mx-order-message-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

body#order-detail .mx-order-message-author {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-900);
}

body#order-detail .mx-order-message-date {
  font-size: var(--fs-xs);
  color: var(--mx-gray-500);
}

body#order-detail .mx-order-message-body {
  font-size: var(--fs-sm);
  color: var(--mx-gray-700);
  line-height: 1.7;
}

/* Formulaire message */
body#order-detail .mx-order-message-form-wrapper {
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

body#order-detail .mx-order-message-form-intro {
  font-size: var(--fs-sm);
  color: var(--mx-gray-600);
  margin: 0 0 var(--space-4);
  line-height: 1.6;
}

body#order-detail .mx-order-message-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

body#order-detail .mx-order-message-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

body#order-detail .mx-order-message-form-group label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--mx-gray-700);
  text-align: left;
}

body#order-detail .mx-form-select,
body#order-detail .mx-form-textarea {
  padding: var(--space-3);
  font-size: var(--fs-sm);
  border: 1px solid var(--mx-gray-300);
  border-radius: var(--radius-md);
  background: #fff;
  transition: all var(--transition-fast);
}

body#order-detail .mx-form-select:focus,
body#order-detail .mx-form-textarea:focus {
  outline: none;
  border-color: var(--mx-blue-500);
  box-shadow: 0 0 0 3px var(--mx-blue-100);
}

body#order-detail .mx-form-textarea {
  resize: vertical;
  min-height: 100px;
}

body#order-detail .mx-btn-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--mx-gray-900);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
  align-self: flex-end;
}

body#order-detail .mx-btn-send:hover {
  background: var(--mx-orange-500);
}

body#order-detail .mx-btn-send svg {
  width: 16px;
  height: 16px;
}

/* Return form (si retours actifs) */
body#order-detail .mx-order-return-intro {
  font-size: var(--fs-sm);
  color: var(--mx-gray-600);
  line-height: 1.6;
  margin: 0 0 var(--space-4);
}

body#order-detail .mx-order-return-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

body#order-detail .mx-order-return-form-group label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--mx-gray-700);
}

body#order-detail .form-footer {
  display: flex;
  justify-content: flex-end;
}

body#order-detail .mx-order-products .col-checkbox {
  width: 40px;
  text-align: center;
}

body#order-detail .mx-order-products .col-returned {
  width: 80px;
  text-align: right;
}

body#order-detail .mx-order-qty-current {
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-2);
}

body#order-detail .mx-order-qty-select select {
  padding: var(--space-1) var(--space-2);
  font-size: var(--fs-xs);
  border: 1px solid var(--mx-blue-200);
  border-radius: var(--radius-sm);
  background: var(--mx-blue-50);
}

body#order-detail .mx-order-product-virtual {
  font-size: var(--fs-xs);
  color: var(--mx-gray-500);
  font-style: italic;
}

body#order-detail button[name="submitReturnMerchandise"] {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--mx-gray-900);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
}

body#order-detail button[name="submitReturnMerchandise"]:hover {
  background: var(--mx-orange-500);
}

/* ==========================================
   6. RESPONSIVE
   ========================================== */

/* 6.1 Small laptop (992px - 1366px) - MacBook 13" */
@media (min-width: 992px) and (max-width: 1366px) {
  .mx-account-shortcuts {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }

  .mx-account-shortcut {
    padding: var(--space-4) var(--space-3);
  }

  .mx-account-shortcut-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  .mx-account-shortcut-icon svg {
    width: 24px;
    height: 24px;
  }

  .mx-account-shortcut-label {
    font-size: var(--fs-xs);
  }
}

/* 6.2 Mobile & Tablet (<992px) */
@media (max-width: 991px) {
  /* Override padding-top du wrapper global */
  body#my-account #wrapper,
  body#identity #wrapper,
  body#addresses #wrapper,
  body#address #wrapper,
  body#history #wrapper,
  body#order-detail #wrapper,
  body#order-slip #wrapper,
  body#discount #wrapper,
  body#order-follow #wrapper,
  body#module-psgdpr-gdpr #wrapper {
    padding-top: var(--space-4) !important;
  }

  .mx-account-wrapper {
    padding: var(--space-4) 0 var(--space-6);
    overflow-x: hidden;
  }

  #wrapper .mx-account-wrapper > .container {
    padding-left: var(--space-4) !important;
    padding-right: var(--space-4) !important;
  }

  .mx-account-header {
    margin-bottom: var(--space-8);
  }

  .mx-account-header h1 {
    font-size: var(--fs-xl);
  }

  /* Stack layout */
  .mx-account-layout {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* Sidebar devient menu horizontal scrollable */
  .mx-account-sidebar {
    position: relative;
    top: 0;
    order: -1;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .mx-account-nav {
    border-radius: var(--radius-sm);
    border-left: none;
    border-right: none;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  /* Gradient fade pour indiquer le scroll */
  .mx-account-nav::before,
  .mx-account-nav::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .mx-account-nav::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
  }

  .mx-account-nav::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
  }

  /* Afficher les gradients selon la position de scroll */
  .mx-account-nav.can-scroll-left::before {
    opacity: 1;
  }

  .mx-account-nav.can-scroll-right::after {
    opacity: 1;
  }

  .mx-account-nav-list {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-right: var(--space-6);
    padding-left: var(--space-2);
    max-width: 100%;
    scroll-behavior: smooth;
  }

  .mx-account-nav-list::-webkit-scrollbar {
    display: none;
  }

  .mx-account-nav-item {
    flex-shrink: 0;
    border-bottom: none;
    border-right: 1px solid var(--mx-gray-100);
  }

  .mx-account-nav-item:last-child {
    border-right: none;
  }

  .mx-account-nav-link {
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    text-align: center;
    white-space: nowrap;
  }

  .mx-account-nav-link span {
    font-size: var(--fs-xs);
  }

  .mx-account-nav-link svg {
    width: 18px;
    height: 18px;
  }

  .mx-account-nav-item.-active .mx-account-nav-link {
    border-left: none;
    border-bottom: 3px solid var(--mx-orange-500);
    padding-left: var(--space-3);
    padding-bottom: calc(var(--space-2) - 3px);
    background: var(--mx-orange-50);
  }

  .mx-account-nav-footer {
    display: none;
  }

  /* Welcome */
  .mx-account-welcome {
    margin-bottom: var(--space-4);
    padding: var(--space-3);
  }

  .mx-account-welcome p {
    font-size: var(--fs-sm);
  }

  /* Shortcuts 2 cols mobile */
  .mx-account-shortcuts {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-3);
  }

  .mx-account-shortcut {
    padding: var(--space-3);
    aspect-ratio: 1 / 1;
    min-height: auto;
  }

  .mx-account-shortcut-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .mx-account-shortcut-icon svg {
    width: 20px;
    height: 20px;
  }

  .mx-account-shortcut-label {
    font-size: var(--fs-xs);
  }

  /* Tables responsive */
  .mx-account-content table {
    display: block;
    overflow-x: auto;
  }

  /* Order detail mobile */
  body#order-detail .mx-order-detail-header {
    flex-direction: column;
    gap: var(--space-3);
    align-items: flex-start;
  }

  body#order-detail .mx-btn-reorder {
    width: 100%;
    justify-content: center;
  }

  body#order-detail .mx-order-detail-invoice {
    flex-direction: column;
    text-align: center;
  }

  body#order-detail .mx-order-detail-invoice-content {
    align-items: center;
  }

  body#order-detail .mx-btn-invoice {
    width: 100%;
    justify-content: center;
  }

  body#order-detail .mx-order-detail-meta {
    flex-direction: column;
    gap: var(--space-2);
  }

  body#order-detail .mx-order-detail-addresses {
    grid-template-columns: 1fr;
  }

  body#order-detail .mx-order-detail-tracking {
    flex-direction: column;
    text-align: center;
  }

  body#order-detail .mx-order-detail-tracking-content {
    align-items: center;
  }

  body#order-detail .mx-order-message-form-wrapper {
    padding: var(--space-4) 0;
  }

  /* History mobile */
  body#history .mx-order-card-header {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  body#history .mx-order-info {
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  body#history .mx-order-status {
    width: fit-content;
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-3);
  }

  body#history .mx-order-actions {
    flex-direction: column;
  }

  body#history .mx-order-details {
    flex-direction: column;
    gap: var(--space-3);
  }

  body#history .mx-order-card-actions {
    flex-direction: column;
    gap: var(--space-2);
  }

  body#history .mx-order-card-actions .mx-btn {
    width: 100%;
    justify-content: center;
  }

  /* Identity mobile - layout 1 colonne */
  body#identity .mx-form-grid-2cols {
    grid-template-columns: 1fr;
  }

  body#identity .mx-form-row--2cols {
    grid-template-columns: 1fr;
  }

  body#identity .mx-account-type-toggle {
    flex-direction: column;
  }

  body#identity .mx-account-type-option {
    width: 100%;
  }

  /* Addresses mobile */
  body#addresses .mx-addresses-grid {
    grid-template-columns: 1fr;
  }

  body#addresses .mx-address-card-actions {
    flex-wrap: wrap;
  }

  .mx-account-content .addresses-footer a {
    width: 100%;
    justify-content: center;
  }

  /* Address form mobile */
  body#address .mx-form-row--2cols,
  body#address .mx-form-row--3cols {
    grid-template-columns: 1fr;
  }

  body#address .mx-account-content {
    padding: 0;
    border: none;
  }

  /* Override theme.css .page-customer-account #content */
  .page-customer-account #content {
    padding: 0 !important;
  }

  /* Order slip / discount / order-follow mobile */
  body#order-slip .mx-slips-table,
  body#discount .mx-vouchers-table {
    font-size: var(--fs-xs);
  }

  body#order-slip .mx-slips-table th,
  body#order-slip .mx-slips-table td,
  body#discount .mx-vouchers-table th,
  body#discount .mx-vouchers-table td {
    padding: var(--space-2);
  }

  /* Discount voucher cards mobile */
  body#discount .mx-voucher-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  body#discount .mx-voucher-info {
    flex-direction: row;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
  }

  body#discount .mx-voucher-value {
    align-self: flex-start;
    font-size: var(--fs-sm);
  }

  body#discount .mx-voucher-details {
    flex-direction: column;
    gap: var(--space-3);
  }

  body#discount .mx-voucher-detail {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--mx-gray-100);
  }

  body#discount .mx-voucher-detail:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  /* Order follow mobile */
  body#order-follow .mx-returns-list {
    gap: var(--space-3);
  }

  body#order-follow .mx-return-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  /* Main content padding mobile */
  .mx-account-main {
    padding: var(--space-4);
    border-radius: var(--radius-sm);
  }

  /* Forms mobile */
  .mx-form-grid-2cols .mx-form-row--2cols {
    grid-template-columns: 1fr;
  }

  /* Bouton submit full width mobile */
  .mx-form-section--submit .mx-btn {
    width: 100%;
  }

  /* GDPR page mobile */
  body#module-psgdpr-gdpr .mx-gdpr-actions {
    flex-direction: column;
  }

  body#module-psgdpr-gdpr .mx-gdpr-actions .mx-btn {
    width: 100%;
  }
}

/* 6.3 Tablet only (768-991px) - overrides */
@media (min-width: 768px) and (max-width: 991px) {
  .mx-account-shortcuts {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .mx-account-shortcut {
    aspect-ratio: 16 / 9;
  }

  /* Vouchers 2 colonnes */
  body#discount .mx-vouchers-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  /* GDPR actions fit-content */
  body#module-psgdpr-gdpr .mx-gdpr-actions {
    flex-direction: row;
  }

  body#module-psgdpr-gdpr .mx-gdpr-actions .mx-btn {
    width: fit-content;
  }

  /* Avoirs 2 colonnes */
  body#order-slip .mx-credit-slips-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  /* Retours produit 2 colonnes */
  body#order-follow .mx-returns-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  /* Historique commandes 2 colonnes */
  body#history .mx-orders-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    align-items: stretch;
  }

  body#history .mx-order-card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  body#history .mx-order-card-footer {
    margin-top: auto;
  }

  /* Order detail - boutons fit-content */
  body#order-detail .mx-btn-reorder,
  body#order-detail .mx-btn-invoice {
    width: fit-content;
  }

  /* Adresses 2 colonnes */
  body#order-detail .mx-order-detail-addresses {
    grid-template-columns: repeat(2, 1fr);
  }
}
