/* ==========================================================================
   FM AFLIWA — Feuille de style Page Mon Compte (ID 78 / [woocommerce_my_account])
   Police : Poppins
   ========================================================================== */

body.woocommerce-account,
body.page-id-78 {
  background: #f8f9fa !important;
  background-color: #f8f9fa !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-account .site-main,
body.woocommerce-account .entry-content,
body.woocommerce-account .page-content,
body.woocommerce-account .ast-container,
body.woocommerce-account .container,
body.woocommerce-account .wp-block-group,
body.woocommerce-account main,
body.page-id-78 .site-main,
body.page-id-78 .entry-content,
body.page-id-78 .page-content,
body.page-id-78 .ast-container,
body.page-id-78 .container,
body.page-id-78 .wp-block-group,
body.page-id-78 main {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background: transparent !important;
}

body.woocommerce-account .entry-header,
body.page-id-78 .entry-header {
  display: none !important;
}

:root {
  --fma-primary: #d9045a;
  --fma-primary-hover: #b8034c;
  --fma-primary-soft: #f9e6ef;
  --fma-text-main: #1a1a1a;
  --fma-text-muted: #555555;
  --fma-border: #d5d9df;
  --fma-border-light: #e6e8ec;
  --fma-bg-page: #f8f9fa;
  --fma-white: #ffffff;
}

.fma-account-root,
.fma-account-root * {
  box-sizing: border-box !important;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.fma-account-root {
  background-color: var(--fma-bg-page);
  color: var(--fma-text-main);
  line-height: 1.5;
  width: 100%;
  padding-bottom: 64px;
}

.fma-account-root a {
  text-decoration: none;
}

/* ==========================================================================
   1. BANNIÈRE HERO
   ========================================================================== */
.fma-hero-banner {
  background: linear-gradient(95deg, #4b0826 0%, #990846 50%, #c80b5b 100%);
  padding: 46px 4%;
  position: relative;
  overflow: hidden;
  color: var(--fma-white);
}

.fma-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.fma-hero-content {
  max-width: 720px;
}

.fma-hero-title {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 0 0 8px 0;
  color: var(--fma-white);
  line-height: 1.2;
}

.fma-hero-title span {
  color: #ff1e7a;
  font-weight: 800;
}

.fma-hero-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
  margin: 0;
}

.fma-hero-bag-graphic {
  position: absolute;
  right: 11%;
  bottom: -44px;
  width: 225px;
  height: 225px;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 16px 24px rgba(35, 2, 16, 0.45));
}

.fma-hero-circle-deco {
  position: absolute;
  right: -30px;
  top: 15px;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: rgba(140, 10, 65, 0.45);
  pointer-events: none;
}

/* ==========================================================================
   2. CONTENEUR PRINCIPAL & GRILLE 2 COLONNES
   ========================================================================== */
.fma-container {
  max-width: 1240px;
  margin: 34px auto 0;
  padding: 0 24px;
}

.fma-main-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 32px;
  align-items: start;
}

.fma-container .woocommerce-notices-wrapper {
  margin-bottom: 20px;
}

.fma-container .woocommerce-error,
.fma-container .woocommerce-message,
.fma-container .woocommerce-info {
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 18px;
}

/* ==========================================================================
   3. COLONNE GAUCHE : CARTE CONNEXION / INSCRIPTION
   ========================================================================== */
.fma-auth-card {
  background: var(--fma-white);
  border-radius: 16px;
  padding: 28px 28px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0f0f0;
  overflow: visible;
}

.fma-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--fma-border-light);
  margin-bottom: 24px;
}

.fma-account-root .fma-auth-tab,
.fma-account-root button.fma-auth-tab {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 10px 6px 14px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #333333 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  text-transform: none !important;
}

.fma-account-root .fma-auth-tab:hover,
.fma-account-root button.fma-auth-tab:hover {
  color: #111111 !important;
  background: transparent !important;
}

.fma-account-root .fma-auth-tab.active,
.fma-account-root button.fma-auth-tab.active {
  color: #111111 !important;
  font-weight: 700 !important;
  background: transparent !important;
}

.fma-account-root .fma-auth-tab.active svg {
  color: var(--fma-primary) !important;
}

.fma-account-root .fma-auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: var(--fma-primary);
}

.fma-auth-panel {
  display: none;
}

.fma-auth-panel.active {
  display: block;
}

.fma-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fma-form-group {
  position: relative;
  margin-bottom: 15px;
  width: 100%;
}

.fma-mb-0 {
  margin-bottom: 0 !important;
}

.fma-input-icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #444444;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  z-index: 3;
  pointer-events: none;
}

.fma-account-root .fma-input-icon-right,
.fma-account-root button.fma-input-icon-right {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #444444 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  z-index: 3;
  cursor: pointer;
}

.fma-account-root .fma-input-icon-right:hover {
  color: var(--fma-primary) !important;
}

.fma-account-root input.fma-form-control,
.fma-account-root .woocommerce-form input.fma-form-control {
  width: 100% !important;
  max-width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 44px !important;
  padding-right: 40px !important;
  margin: 0 !important;
  border: 1px solid var(--fma-border) !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  line-height: 46px !important;
  color: var(--fma-text-main) !important;
  background-color: #fbfcfd !important;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s !important;
  box-shadow: none !important;
  text-indent: 0 !important;
}

.fma-account-root input.fma-form-control::placeholder {
  color: #6b7280 !important;
  opacity: 1 !important;
}

.fma-account-root input.fma-form-control:focus {
  outline: none !important;
  border-color: var(--fma-primary) !important;
  background-color: var(--fma-white) !important;
  box-shadow: 0 0 0 3px rgba(217, 4, 90, 0.08) !important;
}

/* ==========================================================================
   SÉLECTEUR DE PAYS PERSONNALISÉ AVEC DRAPEAUX HD
   ========================================================================== */
.fma-country-dropdown {
  position: relative;
  z-index: 25;
}

.fma-account-root button.fma-country-trigger {
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 38px 0 14px !important;
  margin: 0 !important;
  border: 1px solid var(--fma-border) !important;
  border-radius: 8px !important;
  background-color: #fbfcfd !important;
  color: var(--fma-text-main) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  cursor: pointer;
  position: relative;
  text-align: left !important;
  text-transform: none !important;
  box-shadow: none !important;
  transition: border-color 0.2s, background-color 0.2s;
}

.fma-country-dropdown.is-open button.fma-country-trigger,
.fma-account-root button.fma-country-trigger:hover {
  border-color: var(--fma-primary) !important;
  background-color: var(--fma-white) !important;
}

.fma-flag-img {
  width: 22px !important;
  height: 15px !important;
  object-fit: cover !important;
  border-radius: 2px !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12) !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

.fma-flag-img-sm {
  width: 20px !important;
  height: 14px !important;
  object-fit: cover !important;
  border-radius: 2px !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12) !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

.fma-select-arrow {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #555555;
  pointer-events: none;
  display: flex;
  transition: transform 0.2s;
}

.fma-country-dropdown.is-open .fma-select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.fma-country-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: var(--fma-white) !important;
  border: 1px solid var(--fma-border) !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14) !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 6px !important;
  z-index: 9999 !important;
}

.fma-country-dropdown.is-open .fma-country-menu {
  display: block;
}

.fma-country-option {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 10px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  color: #222222 !important;
  cursor: pointer;
  margin: 0 !important;
  transition: background-color 0.15s;
}

.fma-country-option:hover {
  background-color: #f3f4f6 !important;
}

.fma-country-option.is-selected {
  background-color: var(--fma-primary-soft) !important;
  color: var(--fma-primary) !important;
  font-weight: 600 !important;
}

.fma-country-name {
  flex: 1;
}

.fma-country-dial {
  font-size: 12px;
  color: #666666;
  font-weight: 500;
}

/* ==========================================================================
   LIGNE TÉLÉPHONE + INDICATIF (ALIGNEMENT VERROUILLÉ)
   ========================================================================== */
.fma-phone-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 15px !important;
  width: 100% !important;
}

.fma-dial-box {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  height: 46px !important;
  padding: 0 8px !important;
  border: 1px solid var(--fma-border) !important;
  border-radius: 8px !important;
  background-color: #f1f3f6 !important;
  flex-shrink: 0 !important;
}

.fma-account-root input.fma-dial-input,
.fma-account-root .woocommerce-form input.fma-dial-input {
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #222222 !important;
  text-align: left !important;
  box-shadow: none !important;
}

.fma-phone-group {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  margin-bottom: 0 !important;
}

/* Bloc Adresses */
.fma-address-block {
  background-color: #fafbfc;
  border: 1px solid var(--fma-border-light);
  border-radius: 10px;
  padding: 13px;
  margin-bottom: 15px;
}

.fma-address-block-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 10px;
}

.fma-address-block-title svg {
  color: var(--fma-primary);
}

.fma-address-block .fma-form-group {
  margin-bottom: 10px;
}

.fma-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 20px;
  font-size: 13px;
}

.fma-remember-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  color: #222222 !important;
  font-weight: 500 !important;
  font-size: 12.5px !important;
  cursor: pointer;
  margin: 0 !important;
}

.fma-remember-label input[type="checkbox"] {
  width: 17px !important;
  height: 17px !important;
  margin: 2px 0 0 0 !important;
  accent-color: var(--fma-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.fma-terms-check {
  margin: 14px 0 18px !important;
  line-height: 1.45;
}

.fma-terms-check a {
  color: var(--fma-primary);
  text-decoration: underline;
  font-weight: 600;
}

.fma-forgot-link {
  color: var(--fma-primary);
  font-weight: 600;
  text-decoration: underline !important;
}

.fma-account-root .fma-btn-submit,
.fma-account-root button.fma-btn-submit {
  width: 100% !important;
  height: 46px !important;
  background-color: var(--fma-primary) !important;
  background: var(--fma-primary) !important;
  color: var(--fma-white) !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
  text-transform: none !important;
  box-shadow: none !important;
}

.fma-account-root .fma-btn-submit:hover,
.fma-account-root button.fma-btn-submit:hover {
  background-color: var(--fma-primary-hover) !important;
  background: var(--fma-primary-hover) !important;
}

.fma-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  color: #666666;
  font-size: 13px;
}

.fma-divider::before,
.fma-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--fma-border-light);
}

.fma-divider span {
  padding: 0 14px;
}

.fma-social-login-wrap .nsl-container,
.fma-social-login-wrap .nsl-container-buttons,
.fma-social-login-wrap .nsl-button {
  width: 100% !important;
  display: block !important;
}

.fma-social-login-wrap .nsl-button-google,
.fma-btn-google {
  width: 100% !important;
  height: 46px !important;
  background-color: var(--fma-white) !important;
  border: 1px solid var(--fma-border) !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #222222 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  box-shadow: none !important;
  transition: background-color 0.2s !important;
}

.fma-social-login-wrap .nsl-button-google:hover,
.fma-btn-google:hover {
  background-color: #f8f9fa !important;
}

.fma-terms-note {
  text-align: center;
  font-size: 12px;
  color: #333333;
  margin: 20px 0 0;
  line-height: 1.5;
}

.fma-terms-note a {
  color: var(--fma-primary);
  text-decoration: underline !important;
  font-weight: 500;
}

/* ==========================================================================
   4. COLONNE DROITE : AVANTAGES + 4 CARTES + BANNIÈRE AIDE
   ========================================================================== */
.fma-right-column {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.fma-advantages-card {
  background: linear-gradient(125deg, #fcebf2 0%, #f5d2e2 100%);
  border-radius: 16px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 225px;
}

.fma-advantages-list-wrap {
  position: relative;
  z-index: 2;
  max-width: 60%;
}

.fma-advantages-title {
  font-size: 21px;
  font-weight: 700;
  color: #111111;
  margin: 0 0 14px 0;
  letter-spacing: -0.3px;
}

.fma-advantages-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.fma-advantages-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: #222222;
}

.fma-check-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--fma-primary);
  color: var(--fma-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fma-advantages-illustration {
  position: relative;
  width: 280px;
  height: 185px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.fma-studio-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.fma-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.fma-feature-box {
  background: var(--fma-white);
  border: 1px solid var(--fma-border-light);
  border-radius: 12px;
  padding: 20px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.fma-feature-box:hover,
.fma-feature-box.is-current {
  transform: translateY(-2px);
  border-color: var(--fma-primary);
  box-shadow: 0 6px 16px rgba(217, 4, 90, 0.08);
}

.fma-feature-icon {
  color: var(--fma-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fma-feature-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #111111;
  margin: 0 0 5px 0;
}

.fma-feature-desc {
  font-size: 12px;
  color: #444444;
  line-height: 1.35;
  margin: 0;
}

.fma-help-banner {
  background-color: var(--fma-primary-soft);
  border-radius: 12px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fma-help-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fma-help-icon {
  color: var(--fma-primary);
  display: flex;
  align-items: center;
}

.fma-help-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--fma-primary);
  margin: 0 0 2px 0;
}

.fma-help-text p {
  font-size: 13px;
  color: #222222;
  font-weight: 500;
  margin: 0;
}

.fma-btn-contact {
  background-color: var(--fma-white);
  border: 1.5px solid var(--fma-primary);
  color: var(--fma-primary) !important;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.fma-btn-contact:hover {
  background-color: var(--fma-primary);
  color: var(--fma-white) !important;
}

/* ==========================================================================
   5. TABLEAU DE BORD CLIENT CONNECTÉ & MOT DE PASSE OUBLIÉ
   ========================================================================== */
.fma-dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.fma-dashboard-welcome-bar {
  background: var(--fma-white);
  border: 1px solid var(--fma-border-light);
  border-radius: 14px;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fma-dashboard-welcome-bar h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.fma-dashboard-welcome-bar h2 span {
  color: var(--fma-primary);
}

.fma-dashboard-welcome-bar p {
  font-size: 13.5px;
  color: var(--fma-text-muted);
  margin: 0;
}

.fma-btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--fma-border);
  font-size: 13px;
  font-weight: 600;
  color: #333333;
  transition: all 0.2s;
}

.fma-btn-logout:hover {
  border-color: var(--fma-primary);
  color: var(--fma-primary);
  background-color: var(--fma-primary-soft);
}

.fma-wc-native-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

.fma-wc-native-shell .woocommerce-MyAccount-navigation {
  width: 100%;
  float: none;
  background: var(--fma-white);
  border: 1px solid var(--fma-border-light);
  border-radius: 14px;
  padding: 12px;
}

.fma-wc-native-shell .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fma-wc-native-shell .woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #333333;
  transition: all 0.2s;
}

.fma-wc-native-shell .woocommerce-MyAccount-navigation li.is-active a,
.fma-wc-native-shell .woocommerce-MyAccount-navigation li a:hover {
  background-color: var(--fma-primary-soft);
  color: var(--fma-primary);
  font-weight: 600;
}

.fma-wc-native-shell .woocommerce-MyAccount-content {
  width: 100%;
  float: none;
  background: var(--fma-white);
  border: 1px solid var(--fma-border-light);
  border-radius: 14px;
  padding: 26px;
  font-size: 14px;
}

.fma-wc-native-shell .woocommerce-MyAccount-content .button {
  background-color: var(--fma-primary);
  color: var(--fma-white);
  border-radius: 8px;
  font-weight: 600;
  padding: 10px 18px;
}

.fma-wc-native-shell .woocommerce-MyAccount-content .button:hover {
  background-color: var(--fma-primary-hover);
}

.fma-lost-password-wrap {
  max-width: 520px;
}

.fma-lost-card .button {
  width: 100%;
  height: 46px;
  background-color: var(--fma-primary);
  color: var(--fma-white);
  border-radius: 8px;
  font-weight: 600;
  margin-top: 10px;
}

.fma-back-login {
  margin-top: 18px;
  text-align: center;
  font-size: 13.5px;
}

.fma-back-login a {
  color: var(--fma-primary);
  font-weight: 600;
}

/* ==========================================================================
   6. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .fma-main-grid {
    grid-template-columns: 1fr;
  }

  .fma-wc-native-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .fma-hero-title {
    font-size: 26px;
  }

  .fma-hero-bag-graphic {
    width: 150px;
    height: 150px;
    right: -10px;
    bottom: -25px;
    opacity: 0.45;
  }

  .fma-form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .fma-advantages-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .fma-advantages-list-wrap {
    max-width: 100%;
  }

  .fma-advantages-illustration {
    width: 240px;
    height: 165px;
    align-self: flex-end;
    margin-top: 14px;
  }

  .fma-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fma-help-banner,
  .fma-dashboard-welcome-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   7. RELOOKING GLOBAL DES SOUS-ONGLETS WOOCOMMERCE (ESPACE CLIENT INTERNE)
   ========================================================================== */

/* Coquille principale du dashboard connecté */
.fma-is-logged-in .fma-wc-native-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

/* Navigation latérale WooCommerce modernisée */
.fma-is-logged-in .woocommerce-MyAccount-navigation {
  background: var(--fma-white);
  border: 1px solid var(--fma-border-light);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.fma-is-logged-in .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fma-is-logged-in .woocommerce-MyAccount-navigation li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: #333333;
  transition: all 0.2s ease;
}

.fma-is-logged-in .woocommerce-MyAccount-navigation li.is-active a,
.fma-is-logged-in .woocommerce-MyAccount-navigation li a:hover {
  background-color: var(--fma-primary-soft);
  color: var(--fma-primary);
  font-weight: 600;
}

/* Contenu principal des onglets (Commandes, Adresses, Détails, etc.) */
.fma-is-logged-in .woocommerce-MyAccount-content {
  background: var(--fma-white);
  border: 1px solid var(--fma-border-light);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  font-size: 14px;
  color: var(--fma-text-main);
}

.fma-is-logged-in .woocommerce-MyAccount-content h2,
.fma-is-logged-in .woocommerce-MyAccount-content h3 {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700;
  color: #111111;
  margin-bottom: 20px;
}

/* Tableaux WooCommerce (Commandes, Téléchargements) */
.fma-is-logged-in .woocommerce-orders-table,
.fma-is-logged-in .woocommerce-Downloads-table,
.fma-is-logged-in .shop_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--fma-border-light);
  border-radius: 12px;
  overflow: hidden;
  margin: 20px 0;
}

.fma-is-logged-in .woocommerce-orders-table th,
.fma-is-logged-in .woocommerce-Downloads-table th,
.fma-is-logged-in .shop_table th {
  background-color: #f8f9fa;
  color: #333333;
  font-weight: 600;
  font-size: 13px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--fma-border-light);
  text-align: left;
}

.fma-is-logged-in .woocommerce-orders-table td,
.fma-is-logged-in .woocommerce-Downloads-table td,
.fma-is-logged-in .shop_table td {
  padding: 14px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--fma-border-light);
  color: #444444;
}

.fma-is-logged-in .woocommerce-orders-table tr:last-child td,
.fma-is-logged-in .woocommerce-Downloads-table tr:last-child td,
.fma-is-logged-in .shop_table tr:last-child td {
  border-bottom: none;
}

/* Boutons d'action dans les tableaux et formulaires */
.fma-is-logged-in .woocommerce-MyAccount-content .button,
.fma-is-logged-in .woocommerce-Button {
  background-color: var(--fma-primary) !important;
  color: var(--fma-white) !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  padding: 10px 20px !important;
  box-shadow: none !important;
  transition: background-color 0.2s ease !important;
  cursor: pointer;
}

.fma-is-logged-in .woocommerce-MyAccount-content .button:hover,
.fma-is-logged-in .woocommerce-Button:hover {
  background-color: var(--fma-primary-hover) !important;
}

/* Gestion des Adresses (Facturation / Livraison) */
.fma-is-logged-in .u-columns.woocommerce-Addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.fma-is-logged-in .woocommerce-Address {
  background: #fafbfc;
  border: 1px solid var(--fma-border-light);
  border-radius: 14px;
  padding: 24px;
  position: relative;
}

.fma-is-logged-in .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--fma-border-light);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.fma-is-logged-in .woocommerce-Address-title h3 {
  font-size: 16px !important;
  margin: 0 !important;
  color: #111111;
}

.fma-is-logged-in .woocommerce-Address-title .edit {
  color: var(--fma-primary);
  font-weight: 600;
  font-size: 13px;
  text-decoration: underline;
}

/* Formulaires de modification du compte / adresse */
.fma-is-logged-in .woocommerce-EditAccountForm input.input-text,
.fma-is-logged-in .woocommerce-address-fields input.input-text,
.fma-is-logged-in .woocommerce-address-fields select {
  width: 100% !important;
  height: 46px !important;
  padding: 0 16px !important;
  border: 1px solid var(--fma-border) !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
  background-color: #fbfcfd !important;
  color: var(--fma-text-main) !important;
  box-shadow: none !important;
}

.fma-is-logged-in .woocommerce-EditAccountForm input.input-text:focus,
.fma-is-logged-in .woocommerce-address-fields input.input-text:focus {
  border-color: var(--fma-primary) !important;
  background-color: var(--fma-white) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(217, 4, 90, 0.08) !important;
}

.fma-is-logged-in fieldset {
  border: 1px solid var(--fma-border-light);
  border-radius: 12px;
  padding: 20px;
  margin-top: 24px;
  background: #fafbfc;
}

.fma-is-logged-in fieldset legend {
  font-weight: 600;
  color: #111111;
  padding: 0 8px;
}

@media (max-width: 1024px) {
  .fma-is-logged-in .fma-wc-native-shell {
    grid-template-columns: 1fr;
  }
  .fma-is-logged-in .u-columns.woocommerce-Addresses {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CORRECTIF AFFICHAGE BLOCS D'ADRESSES WOOCOMMERCE
   ========================================================================== */
.fma-is-logged-in .woocommerce-Addresses {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  width: 100% !important;
  margin: 0 !important;
}

.fma-is-logged-in .woocommerce-Address {
  background: #fafbfc !important;
  border: 1px solid var(--fma-border-light) !important;
  border-radius: 14px !important;
  padding: 24px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.fma-is-logged-in .woocommerce-Address-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid var(--fma-border-light) !important;
  padding-bottom: 12px !important;
  margin-bottom: 16px !important;
  white-space: nowrap !important;
}

.fma-is-logged-in .woocommerce-Address-title h3 {
  font-size: 15px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: #111111 !important;
  white-space: nowrap !important;
}

.fma-is-logged-in .woocommerce-Address-title .edit {
  color: var(--fma-primary) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  text-decoration: underline !important;
}

@media (max-width: 900px) {
  .fma-is-logged-in .woocommerce-Addresses {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   HABILLAGE DES ADRESSES WOOCOMMERCE (Conforme Maquette)
   ========================================================================== */
.fma-is-logged-in .woocommerce-Addresses {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  width: 100% !important;
  margin: 20px 0 !important;
}

.fma-is-logged-in .woocommerce-Address {
  background: #ffffff !important;
  border: 1px solid var(--fma-border-light) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
  position: relative !important;
}

.fma-is-logged-in .woocommerce-Address-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid var(--fma-border-light) !important;
  padding-bottom: 14px !important;
  margin-bottom: 16px !important;
}

.fma-is-logged-in .woocommerce-Address-title h3 {
  font-family: 'Poppins', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #111111 !important;
  margin: 0 !important;
}

.fma-is-logged-in .woocommerce-Address-title .edit {
  background-color: var(--fma-primary-soft) !important;
  color: var(--fma-primary) !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 12.5px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.fma-is-logged-in .woocommerce-Address-title .edit:hover {
  background-color: var(--fma-primary) !important;
  color: #ffffff !important;
}

.fma-is-logged-in .woocommerce-Address address {
  font-style: normal !important;
  color: #444444 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

@media (max-width: 900px) {
  .fma-is-logged-in .woocommerce-Addresses {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   HABILLAGE PROPRE DE L'ESPACE CLIENT CONNECTÉ - ONGLET ADRESSES
   ========================================================================== */

/* Coquille globale du dashboard connecté */
.fma-is-logged-in .fma-wc-native-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: start;
  margin-top: 30px;
}

/* Grille des adresses (Facturation & Livraison) */
.fma-is-logged-in .u-columns.woocommerce-Addresses,
.fma-is-logged-in .woocommerce-Addresses {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  width: 100% !important;
  margin: 20px 0 !important;
}

.fma-is-logged-in .woocommerce-Address {
  background: #ffffff !important;
  border: 1px solid #eef0f4 !important;
  border-radius: 16px !important;
  padding: 28px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
  position: relative !important;
  box-sizing: border-box !important;
}

.fma-is-logged-in .woocommerce-Address-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid #f1f3f6 !important;
  padding-bottom: 14px !important;
  margin-bottom: 18px !important;
}

.fma-is-logged-in .woocommerce-Address-title h3 {
  font-family: 'Poppins', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #111111 !important;
  margin: 0 !important;
}

.fma-is-logged-in .woocommerce-Address-title .edit {
  background-color: rgba(217, 4, 90, 0.08) !important;
  color: #d9045a !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.fma-is-logged-in .woocommerce-Address-title .edit:hover {
  background-color: #d9045a !important;
  color: #ffffff !important;
}

.fma-is-logged-in .woocommerce-Address address {
  font-style: normal !important;
  color: #444444 !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

@media (max-width: 900px) {
  .fma-is-logged-in .fma-wc-native-shell {
    grid-template-columns: 1fr !important;
  }
  .fma-is-logged-in .woocommerce-Addresses {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   CORRECTIF STRUCTURAL ADRESSES WOOCOMMERCE (Conforme Maquette)
   ========================================================================== */

/* Neutraliser les styles natifs de positionnement WooCommerce */
.fma-is-logged-in .woocommerce-MyAccount-content p:first-of-type {
  margin-bottom: 24px;
  color: #666666;
  font-size: 14px;
}

/* Forcer le conteneur parent en grille 2 colonnes égales */
.fma-is-logged-in .woocommerce-Addresses {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

/* Style de chaque carte d'adresse individuelle */
.fma-is-logged-in .woocommerce-Addresses .woocommerce-Address {
  background: #ffffff !important;
  border: 1px solid #eef0f4 !important;
  border-radius: 16px !important;
  padding: 28px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  float: none !important;
  margin: 0 !important;
}

/* En-tête de la carte d'adresse (Titre + Lien Modifier/Ajouter) */
.fma-is-logged-in .woocommerce-Address-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid #f1f3f6 !important;
  padding-bottom: 14px !important;
  margin-bottom: 18px !important;
  flex-wrap: nowrap !important;
}

.fma-is-logged-in .woocommerce-Address-title h3 {
  font-family: 'Poppins', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #111111 !important;
  margin: 0 !important;
}

/* Bouton / Lien Modifier & Ajouter */
.fma-is-logged-in .woocommerce-Address-title .edit {
  background-color: rgba(217, 4, 90, 0.08) !important;
  color: #d9045a !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
}

.fma-is-logged-in .woocommerce-Address-title .edit:hover {
  background-color: #d9045a !important;
  color: #ffffff !important;
}

/* Contenu texte de l'adresse */
.fma-is-logged-in .woocommerce-Address address {
  font-style: normal !important;
  color: #444444 !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

@media (max-width: 900px) {
  .fma-is-logged-in .woocommerce-Addresses {
    grid-template-columns: 1fr !important;
  }
}

/* Conformite onglet Details du compte */
.woocommerce-account.woocommerce-edit-account .fma-is-logged-in .woocommerce-EditAccountForm label,
.woocommerce-account.woocommerce-edit-account .fma-is-logged-in form.edit-account label {
  color: var(--fma-text-main, #1f2937) !important;
  font-weight: 600 !important;
  filter: none !important;
}
.woocommerce-account.woocommerce-edit-account .fma-is-logged-in .woocommerce-EditAccountForm em,
.woocommerce-account.woocommerce-edit-account .fma-is-logged-in form.edit-account em {
  display: block !important;
  margin-top: 6px !important;
  font-size: 12.5px !important;
  font-style: italic !important;
  line-height: 1.45 !important;
  color: var(--fma-text-muted, #6b7280) !important;
  filter: none !important;
}
.woocommerce-account.woocommerce-edit-account .fma-is-logged-in .woocommerce-EditAccountForm button[type="submit"],
.woocommerce-account.woocommerce-edit-account .fma-is-logged-in form.edit-account button[type="submit"] {
  background-color: var(--fma-primary, #d9045a) !important;
  border: 1px solid var(--fma-primary, #d9045a) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 11px 22px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
}

/* Conformite onglet Details du compte */
.woocommerce-account.woocommerce-edit-account .fma-is-logged-in .woocommerce-EditAccountForm label,
.woocommerce-account.woocommerce-edit-account .fma-is-logged-in form.edit-account label {
  color: var(--fma-text-main, #1f2937) !important;
  font-weight: 600 !important;
  filter: none !important;
}
.woocommerce-account.woocommerce-edit-account .fma-is-logged-in .woocommerce-EditAccountForm em,
.woocommerce-account.woocommerce-edit-account .fma-is-logged-in form.edit-account em {
  display: block !important;
  margin-top: 6px !important;
  font-size: 12.5px !important;
  font-style: italic !important;
  line-height: 1.45 !important;
  color: var(--fma-text-muted, #6b7280) !important;
  filter: none !important;
}
.woocommerce-account.woocommerce-edit-account .fma-is-logged-in .woocommerce-EditAccountForm button[type="submit"],
.woocommerce-account.woocommerce-edit-account .fma-is-logged-in form.edit-account button[type="submit"] {
  background-color: var(--fma-primary, #d9045a) !important;
  border: 1px solid var(--fma-primary, #d9045a) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 11px 22px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
}
