/* ============================================================
   BIJOUX HÉLÈNE RIU — Customer Area
   Scope: login, register, mon-compte, adresses, history,
          wishlist, profil, avis, reset-password, order-detail
   Vars héritées: --night, --gold, --amethyst, --cream (moon)
   ============================================================ */

/* ── LOCAL ALIASES ─────────────────────────────────────── */
:root {
  --cream: var(--moon, #F4EFE6);
}

/* ============================================================
   1. AUTH CARD BASE (login + register + reset-password)
   ============================================================ */
.page-authentication .login-form-container,
.page-authentication #login,
.page-authentication #register,
.page-my-account-forgot-password .forgot-password {
  max-width: 480px;
  margin: 60px auto;
  background: #14102A;
  border: 1px solid rgba(107, 74, 140, 0.30);
  border-radius: 12px;
  padding: 40px 32px;
}

/* Register wider + 2-col */
.page-authentication #register,
.page-registration .register-form {
  max-width: 640px;
}

/* ── Auth card title ── */
.page-authentication .login-form-container h1,
.page-authentication #login h2,
.page-authentication #register h2,
.page-my-account-forgot-password h1 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  text-align: center;
  color: var(--cream);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

/* ── Form fields (héritage bijoux-form.css) ── */
.page-authentication input[type="text"],
.page-authentication input[type="email"],
.page-authentication input[type="password"],
.page-authentication input[type="date"],
.page-authentication select,
.page-my-account-forgot-password input,
#identity input[type="text"],
#identity input[type="email"],
#identity input[type="password"],
#identity input[type="date"],
#identity select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(107, 74, 140, 0.35);
  border-radius: 6px;
  color: var(--cream);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.875rem;
  transition: border-color 0.25s;
}

.page-authentication input:focus,
.page-authentication select:focus,
#identity input:focus,
#identity select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(212, 181, 112, 0.05);
}

.page-authentication label,
#identity label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amethyst-light, #9B7FB8);
  margin-bottom: 6px;
  font-weight: 400;
}

/* ── Register 2-col grid ── */
.page-authentication #register .form-group,
.page-registration .form-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .page-authentication #register .form-group,
  .page-registration .form-group {
    grid-template-columns: 1fr;
  }
}

/* Champs pleine largeur dans le 2-col */
.page-authentication #register .form-group .col-xs-12,
.page-registration .form-group .col-xs-12 {
  grid-column: 1 / -1;
}

/* ── RGPD checkboxes ── */
.page-authentication .gdpr-container,
.page-registration .js-customer-form .gdpr {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(107, 74, 140, 0.20);
}

.page-authentication .custom-checkbox span,
.page-registration .custom-checkbox span {
  font-size: 0.8rem;
  color: rgba(244, 239, 230, 0.7);
  line-height: 1.5;
}

/* ── Mot de passe oublié ── */
.page-authentication .forgot-password a,
a.forgot-password {
  color: var(--gold);
  text-decoration: underline;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: opacity 0.2s;
}
.page-authentication .forgot-password a:hover,
a.forgot-password:hover {
  opacity: 0.75;
}

/* ── CTA "Créer un compte" outline ── */
.page-authentication .no-account a,
a[data-link-action="display-register-form"],
.login-form-container .btn-outline {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 13px;
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.25s, color 0.25s;
  min-height: 44px;
}
.page-authentication .no-account a:hover,
a[data-link-action="display-register-form"]:hover {
  background: rgba(212, 181, 112, 0.10);
  color: var(--gold);
}

/* ── Social login harmonisation ── */
.page-authentication .social-login .btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(107, 74, 140, 0.30);
  color: var(--cream);
  border-radius: 6px;
  transition: border-color 0.25s, background 0.25s;
}
.page-authentication .social-login .btn:hover {
  border-color: var(--gold);
  background: rgba(212, 181, 112, 0.07);
}

/* ── Submit button ── */
.page-authentication .btn-primary,
.page-my-account-forgot-password .btn-primary,
.page-my-account-reset-password .btn-primary {
  background: var(--gold);
  color: var(--night);
  border: none;
  border-radius: 6px;
  padding: 13px 24px;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  min-height: 44px;
}
.page-authentication .btn-primary:hover,
.page-my-account-forgot-password .btn-primary:hover {
  opacity: 0.85;
}

/* ============================================================
   2. MON COMPTE DASHBOARD (/mon-compte)
   ============================================================ */
.page-my-account #main {
  padding: 40px 0;
}

.page-my-account h1.h1 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--cream);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.04em;
}

/* Grid des liens */
.page-my-account #content ul.myaccount-links,
.page-my-account .links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 900px) {
  .page-my-account #content ul.myaccount-links,
  .page-my-account .links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .page-my-account #content ul.myaccount-links,
  .page-my-account .links {
    grid-template-columns: 1fr;
  }
}

/* Account card */
.page-my-account .myaccount-links li a,
.page-my-account .links li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #14102A;
  border: 1px solid rgba(107, 74, 140, 0.25);
  border-radius: 12px;
  padding: 32px 20px;
  color: var(--cream);
  text-align: center;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  min-height: 130px;
}

.page-my-account .myaccount-links li a:hover,
.page-my-account .links li a:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(107, 74, 140, 0.20);
}

.page-my-account .myaccount-links li a i,
.page-my-account .links li a i,
.page-my-account .myaccount-links li a .material-icons,
.page-my-account .links li a .material-icons {
  font-size: 28px;
  color: var(--gold);
}

/* ============================================================
   3. HISTORIQUE COMMANDES (/historique-des-commandes)
   ============================================================ */
.page-history #main {
  padding: 40px 0;
}

.page-history h1 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 32px;
}

/* Table desktop */
.page-history table {
  width: 100%;
  border-collapse: collapse;
  background: #14102A;
  border-radius: 10px;
  overflow: hidden;
}

.page-history table thead tr {
  background: rgba(107, 74, 140, 0.20);
}

.page-history table th {
  padding: 14px 16px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amethyst-light, #9B7FB8);
  font-weight: 400;
  text-align: left;
}

.page-history table td {
  padding: 14px 16px;
  color: var(--cream);
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(107, 74, 140, 0.12);
}

.page-history table tbody tr:last-child td {
  border-bottom: none;
}

.page-history table tbody tr:hover td {
  background: rgba(212, 181, 112, 0.03);
}

/* Status badges */
.label-order-state,
.page-history .order-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* En cours / Préparation = amethyst */
.label-order-state.label-default,
.label-order-state.badge-warning,
.label-order-state.bg-secondary {
  background: rgba(107, 74, 140, 0.30);
  color: var(--amethyst-light, #9B7FB8);
  border: 1px solid rgba(107, 74, 140, 0.50);
}

/* Livré / Expédié = gold */
.label-order-state.label-success,
.label-order-state.badge-success,
.label-order-state.bg-success {
  background: rgba(212, 181, 112, 0.15);
  color: var(--gold);
  border: 1px solid rgba(212, 181, 112, 0.40);
}

/* Annulé / Remboursé = gris */
.label-order-state.label-danger,
.label-order-state.badge-danger,
.label-order-state.bg-danger {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 239, 230, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Actions (Détails, Re-commander) */
.page-history .btn-secondary,
.page-history a.btn {
  background: transparent;
  border: 1px solid rgba(107, 74, 140, 0.40);
  color: var(--cream);
  border-radius: 5px;
  padding: 7px 14px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.page-history .btn-secondary:hover,
.page-history a.btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Mobile cards */
@media (max-width: 640px) {
  .page-history table,
  .page-history thead,
  .page-history tbody,
  .page-history th,
  .page-history td,
  .page-history tr {
    display: block;
  }

  .page-history thead tr {
    display: none;
  }

  .page-history tbody tr {
    background: #14102A;
    border: 1px solid rgba(107, 74, 140, 0.25);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
  }

  .page-history tbody td {
    border: none;
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
  }

  .page-history tbody td::before {
    content: attr(data-th);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amethyst-light, #9B7FB8);
    margin-right: 10px;
    flex-shrink: 0;
  }
}

/* ============================================================
   4. ADRESSES (/adresses)
   ============================================================ */
.page-addresses #main {
  padding: 40px 0;
}

.page-addresses h1 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 32px;
}

.page-addresses .addresses-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 640px) {
  .page-addresses .addresses-list {
    grid-template-columns: 1fr;
  }
}

.page-addresses .address-item,
.page-addresses article.address {
  background: #14102A;
  border: 1px solid rgba(107, 74, 140, 0.25);
  border-radius: 10px;
  padding: 24px;
  position: relative;
}

/* Badge "Par défaut" */
.page-addresses .address-item .default-badge,
.page-addresses .address-alias.h6 {
  display: inline-block;
  background: rgba(212, 181, 112, 0.15);
  border: 1px solid rgba(212, 181, 112, 0.40);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.page-addresses address {
  font-size: 0.875rem;
  color: rgba(244, 239, 230, 0.80);
  line-height: 1.7;
  font-style: normal;
}

/* Boutons edit/delete */
.page-addresses .address-footer a,
.page-addresses .address-item .address-actions a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 5px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
  min-height: 36px;
}

.page-addresses .address-footer a[data-link-action="edit-address"],
.page-addresses .btn-edit {
  border: 1px solid rgba(107, 74, 140, 0.40);
  color: var(--cream);
  background: transparent;
}

.page-addresses .address-footer a[data-link-action="delete-address"],
.page-addresses .btn-delete {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(244, 239, 230, 0.50);
  background: transparent;
}

.page-addresses .address-footer a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   5. PROFIL / IDENTITÉ (/identite)
   ============================================================ */
.page-customer-account #main,
#identity #main {
  padding: 40px 0;
}

#identity h1 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 32px;
}

/* Sections structurées */
.page-customer-account .identity-section,
#identity .section-block {
  background: #14102A;
  border: 1px solid rgba(107, 74, 140, 0.22);
  border-radius: 10px;
  padding: 28px 24px;
  margin-bottom: 20px;
}

.page-customer-account .identity-section h3,
#identity .section-block h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212, 181, 112, 0.20);
  letter-spacing: 0.04em;
}

/* ── Préférences / Newsletter ── */
.page-customer-account .newsletter-block,
#identity .form-group.newsletter {
  margin-top: 8px;
}

.page-customer-account .custom-checkbox label,
#identity .custom-checkbox label {
  font-size: 0.82rem;
  color: rgba(244, 239, 230, 0.75);
}

/* ── Custom checkbox ── */
.custom-checkbox input[type="checkbox"] + span .checkbox {
  border-color: rgba(107, 74, 140, 0.50);
  background: rgba(14, 11, 26, 0.60);
}

.custom-checkbox input[type="checkbox"]:checked + span .checkbox {
  background: var(--gold);
  border-color: var(--gold);
}

/* ============================================================
   6. WISHLIST
   ============================================================ */
.page-module-ps_wishlist-mywishlist #main,
.wishlist-page #main {
  padding: 40px 0;
}

.page-module-ps_wishlist-mywishlist h1,
.wishlist-page h1 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 32px;
}

/* Grid produits wishlist */
.wishlist-products-container,
.page-module-ps_wishlist-mywishlist .products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.wishlist-product-item,
.page-module-ps_wishlist-mywishlist .product-miniature {
  background: #14102A;
  border: 1px solid rgba(107, 74, 140, 0.22);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}

.wishlist-product-item:hover,
.page-module-ps_wishlist-mywishlist .product-miniature:hover {
  border-color: rgba(212, 181, 112, 0.40);
  transform: translateY(-3px);
}

/* Bouton supprimer wishlist */
.wishlist-product-item .btn-remove,
.page-module-ps_wishlist-mywishlist .wishlist-button-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 11, 26, 0.75);
  border: 1px solid rgba(107, 74, 140, 0.40);
  border-radius: 50%;
  color: var(--cream);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  z-index: 2;
}

.wishlist-product-item .btn-remove:hover,
.page-module-ps_wishlist-mywishlist .wishlist-button-remove:hover {
  border-color: #c0392b;
  color: #c0392b;
}

/* ============================================================
   7. AVIS CLIENTS
   ============================================================ */
.page-module-productcomments-mycomments #main,
.page-my-account-reviews #main {
  padding: 40px 0;
}

.page-module-productcomments-mycomments h1,
.page-my-account-reviews h1 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 32px;
}

.my-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-card,
.my-reviews-list .review-item {
  background: #14102A;
  border: 1px solid rgba(107, 74, 140, 0.22);
  border-radius: 10px;
  padding: 24px;
}

.review-card .review-product-name,
.review-item .product-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 8px;
}

/* Étoiles gold */
.review-card .star-content .star,
.review-item .grade-stars .star {
  color: var(--gold);
  font-size: 16px;
}

.review-card .star-content .star.empty,
.review-item .grade-stars .star.empty {
  color: rgba(212, 181, 112, 0.25);
}

.review-card .review-date,
.review-item .review-date {
  font-size: 0.75rem;
  color: rgba(244, 239, 230, 0.60);
  margin-top: 8px;
  letter-spacing: 0.05em;
}

.review-card .review-content,
.review-item .review-content {
  font-size: 0.875rem;
  color: rgba(244, 239, 230, 0.80);
  line-height: 1.65;
  margin-top: 10px;
}

/* ============================================================
   8. RESET MOT DE PASSE
   ============================================================ */
.page-my-account-forgot-password .forgot-password,
.page-my-account-reset-password .reset-password {
  max-width: 480px;
  margin: 60px auto;
  background: #14102A;
  border: 1px solid rgba(107, 74, 140, 0.30);
  border-radius: 12px;
  padding: 40px 32px;
}

.page-my-account-forgot-password h1,
.page-my-account-reset-password h1 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  text-align: center;
  color: var(--cream);
  margin-bottom: 24px;
}

.page-my-account-reset-password .reset-password p {
  font-size: 0.875rem;
  color: rgba(244, 239, 230, 0.70);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ============================================================
   9. ORDER DETAIL (/detail-commande)
   ============================================================ */
.page-order-detail #main {
  padding: 40px 0;
}

.page-order-detail h1 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 32px;
}

/* ── Timeline statut ── */
.page-order-detail .order-history-steps,
.page-order-detail .order-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 36px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.page-order-detail .order-history-steps .step,
.page-order-detail .order-timeline .step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  min-width: 100px;
}

/* Ligne de connexion */
.page-order-detail .order-history-steps .step::before,
.page-order-detail .order-timeline .step::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: rgba(107, 74, 140, 0.25);
  z-index: 0;
}

.page-order-detail .order-history-steps .step:last-child::before,
.page-order-detail .order-timeline .step:last-child::before {
  display: none;
}

.page-order-detail .step .step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(107, 74, 140, 0.40);
  background: var(--night);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
  transition: border-color 0.2s, background 0.2s;
}

.page-order-detail .step.done .step-dot,
.page-order-detail .step.current .step-dot {
  border-color: var(--gold);
  background: rgba(212, 181, 112, 0.15);
}

.page-order-detail .step .step-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.60);
}

.page-order-detail .step.done .step-label,
.page-order-detail .step.current .step-label {
  color: var(--gold);
}

/* Timeline verticale mobile */
@media (max-width: 640px) {
  .page-order-detail .order-history-steps,
  .page-order-detail .order-timeline {
    flex-direction: column;
    gap: 16px;
  }

  .page-order-detail .order-history-steps .step,
  .page-order-detail .order-timeline .step {
    flex-direction: row;
    text-align: left;
    gap: 14px;
    min-width: auto;
  }

  .page-order-detail .order-history-steps .step::before,
  .page-order-detail .order-timeline .step::before {
    top: 50%;
    left: 16px;
    width: 2px;
    height: 100%;
    transform: none;
  }
}

/* ── Items table ── */
.page-order-detail table.order-items-table,
.page-order-detail .order-items {
  width: 100%;
  border-collapse: collapse;
  background: #14102A;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}

.page-order-detail table.order-items-table thead tr,
.page-order-detail .order-items thead tr {
  background: rgba(107, 74, 140, 0.20);
}

.page-order-detail table.order-items-table th,
.page-order-detail .order-items th {
  padding: 12px 16px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amethyst-light, #9B7FB8);
  font-weight: 400;
  text-align: left;
}

.page-order-detail table.order-items-table td,
.page-order-detail .order-items td {
  padding: 14px 16px;
  font-size: 0.875rem;
  color: var(--cream);
  border-bottom: 1px solid rgba(107, 74, 140, 0.15);
}

.page-order-detail table.order-items-table tbody tr:nth-child(even) td,
.page-order-detail .order-items tbody tr:nth-child(even) td {
  background: rgba(107, 74, 140, 0.05);
}

/* Total récap */
.page-order-detail .order-totals,
.page-order-detail tfoot tr {
  background: rgba(212, 181, 112, 0.04);
}

.page-order-detail tfoot tr.total td,
.page-order-detail .order-total-row td {
  color: var(--gold);
  font-weight: 500;
  font-size: 0.95rem;
}

/* ── Bloc info commande ── */
.page-order-detail .order-detail-box,
.page-order-detail .box {
  background: #14102A;
  border: 1px solid rgba(107, 74, 140, 0.22);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.page-order-detail .order-detail-box h4,
.page-order-detail .box .title {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 181, 112, 0.15);
}

/* ============================================================
   10. GLOBAL MY ACCOUNT — Breadcrumb + Back link
   ============================================================ */
.page-my-account .breadcrumb,
.page-history .breadcrumb,
.page-addresses .breadcrumb,
.page-order-detail .breadcrumb,
#identity .breadcrumb {
  background: transparent;
  padding: 12px 0;
  font-size: 0.75rem;
}

.page-my-account .breadcrumb a,
.page-history .breadcrumb a,
.page-addresses .breadcrumb a {
  color: rgba(244, 239, 230, 0.55);
  transition: color 0.2s;
}

.page-my-account .breadcrumb a:hover,
.page-history .breadcrumb a:hover {
  color: var(--gold);
}

/* Lien retour */
.page-history .order-actions .btn-back,
.page-addresses .btn-back,
.page-order-detail .btn-back {
  color: rgba(244, 239, 230, 0.60);
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  transition: color 0.2s;
}

.page-history .order-actions .btn-back:hover,
.page-addresses .btn-back:hover,
.page-order-detail .btn-back:hover {
  color: var(--gold);
}

/* ── Alerts / Flash messages ── */
.page-authentication .alert,
.page-my-account .alert,
.page-history .alert {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.85rem;
  border: 1px solid;
  margin-bottom: 16px;
}

.alert-success {
  background: rgba(212, 181, 112, 0.08);
  border-color: rgba(212, 181, 112, 0.30);
  color: var(--gold);
}

.alert-danger,
.alert-error {
  background: rgba(192, 57, 43, 0.10);
  border-color: rgba(192, 57, 43, 0.30);
  color: #e74c3c;
}

.alert-info {
  background: rgba(107, 74, 140, 0.12);
  border-color: rgba(107, 74, 140, 0.30);
  color: var(--amethyst-light, #9B7FB8);
}

/* ============================================================
   11. AUTH PAGES — LAYOUT FIX
   ============================================================ */

/*
 * FIX CRITIQUE : ne JAMAIS appliquer flex/centering sur body.page-authentication
 * (body contient header + main + footer → centre tout, pousse le main hors viewport).
 * On cible uniquement #content-wrapper qui ne contient que le contenu de la page.
 */
.page-authentication #content-wrapper,
.page-registration #content-wrapper,
.page-password #content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 16px;
  box-sizing: border-box;
}

/* Largeur max des cards auth */
.page-authentication #content-wrapper .page-content,
.page-registration #content-wrapper .page-content,
.page-password #content-wrapper .page-content {
  width: 100%;
  max-width: 480px;
}
.page-registration #content-wrapper .page-content {
  max-width: 640px;
}

/* Page header customer compact */
.page-authentication .page-header,
.page-registration .page-header {
  margin-bottom: 16px !important;
  padding: 0 !important;
  background: transparent !important;
}
.page-authentication .page-header h1,
.page-registration .page-header h1 {
  display: none !important;
}

/* Login / Register card style */
.login-form, .register-form, .customer-form {
  background: var(--ink, #14102A) !important;
  border: 1px solid rgba(107,74,140,0.3) !important;
  border-radius: 12px !important;
  padding: 36px 32px !important;
}
.login-form::before, .register-form::before {
  content: attr(data-title);
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--cream, #E8E0D0);
  text-align: center;
  margin-bottom: 24px;
}

/* Forgot password touch target */
.forgot-password a, a[href*="recuperation"], a[href*="forgot"] {
  display: inline-block !important;
  padding: 12px 4px !important;
  min-height: 44px !important;
  color: var(--gold) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Créer un compte / login links touch target */
.no-account a, .create-account a, .login-link a {
  display: inline-block !important;
  padding: 12px 8px !important;
  min-height: 44px !important;
  color: var(--gold) !important;
}

/* ── Mobile : labels pleine largeur, champs empilés ── */
@media (max-width: 640px) {
  .page-authentication .form-group.row,
  .page-registration .form-group.row {
    display: flex;
    flex-direction: column;
    margin: 0 0 16px 0;
  }
  .page-authentication .form-control-label,
  .page-registration .form-control-label {
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
  }
  .page-authentication .col-md-6.js-input-column,
  .page-registration .col-md-6.js-input-column {
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
    padding: 0 !important;
  }
  .page-authentication .login-form,
  .page-registration .register-form {
    padding: 24px 16px !important;
  }
}

/* ── Focus ring — accessibilité clavier ── */
.page-authentication input:focus-visible,
.page-authentication select:focus-visible,
.page-registration input:focus-visible,
.page-registration select:focus-visible,
.page-password input:focus-visible,
#identity input:focus-visible,
#identity select:focus-visible {
  outline: 2px solid var(--gold, #D4B570) !important;
  outline-offset: 2px !important;
  border-color: var(--gold, #D4B570) !important;
}

/* Focus ring sur boutons */
.page-authentication .btn:focus-visible,
.page-registration .btn:focus-visible,
.page-my-account a:focus-visible,
.page-history a:focus-visible,
.page-addresses a:focus-visible {
  outline: 2px solid var(--gold, #D4B570) !important;
  outline-offset: 3px !important;
}

/* ── RGPD checkbox — custom-checkbox focus visible ── */
.custom-checkbox input[type="checkbox"]:focus-visible + span {
  outline: 2px solid var(--gold, #D4B570);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ── Password reveal button (Montrer) ── */
.page-authentication .btn.js-visible-password,
.page-authentication .btn[data-action="show-password"],
.page-authentication button.btn:not(.btn-primary):not(.btn-secondary):not(.btn-outline),
.page-registration button.btn:not(.btn-primary):not(.btn-secondary) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid rgba(212, 181, 112, 0.5);
  border-radius: 6px;
  color: var(--cream, #F4EFE6);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.2s;
}
.page-authentication button.btn:not(.btn-primary):not(.btn-secondary):not(.btn-outline):hover,
.page-registration button.btn:not(.btn-primary):not(.btn-secondary):hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Validation messages ── */
.page-authentication .form-control-comment,
.page-registration .form-control-comment {
  font-size: 0.78rem;
  color: rgba(244, 239, 230, 0.55);
  margin-top: 4px;
}
.page-authentication .form-group.has-error .form-control,
.page-registration .form-group.has-error .form-control {
  border-color: #e74c3c !important;
}
.page-authentication .form-group.has-error .help-block,
.page-registration .form-group.has-error .help-block {
  color: #e74c3c;
  font-size: 0.78rem;
  margin-top: 4px;
  display: block;
}

/* ── My account sidebar nav (si présente) ── */
.page-my-account .account-links,
.page-history .account-links,
.page-addresses .account-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.page-my-account .account-links a,
.page-history .account-links a,
.page-addresses .account-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 6px;
  color: rgba(244, 239, 230, 0.75);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s;
}
.page-my-account .account-links a:hover,
.page-history .account-links a:hover,
.page-addresses .account-links a:hover,
.page-my-account .account-links a.active,
.page-history .account-links a.active,
.page-addresses .account-links a.active {
  background: rgba(212, 181, 112, 0.08);
  color: var(--gold);
}

/* === ITER 1 FIX — 2026-04-25 === */

/* BUG: Connexion — bouton "SE CONNECTER" trop petit, aligné à gauche.
   PrestaShop génère <footer class="form-footer"> autour des boutons submit.
   On force le bouton à pleine largeur de la card. */
.page-authentication .login-form-container .form-footer,
.page-authentication #login footer.form-footer,
.page-authentication .form-footer {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin-top: 24px !important;
}
.page-authentication .form-footer .btn-primary,
.page-authentication .form-footer button[type="submit"],
.page-authentication .form-footer input[type="submit"] {
  width: 100% !important;
  display: block !important;
  text-align: center !important;
}

/* BUG: "Pas encore de compte ?" texte + btn CRÉER MON COMPTE mal spacés */
.page-authentication .no-account {
  text-align: center !important;
  margin: 8px 0 0 !important;
  color: rgba(244, 239, 230, 0.55) !important;
  font-size: 0.82rem !important;
}
.page-authentication .no-account a {
  color: var(--gold, #D4B570) !important;
  text-decoration: underline !important;
}
.page-authentication .register-footer,
.page-authentication a.btn-outline,
.page-authentication a[href*="inscription"],
.page-authentication a[href*="creation"] {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin-top: 12px !important;
  padding: 12px 24px !important;
  border: 1px solid rgba(212, 181, 112, 0.45) !important;
  border-radius: 6px !important;
  color: rgba(244, 239, 230, 0.8) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  transition: border-color 0.2s, color 0.2s !important;
}
.page-authentication a[href*="inscription"]:hover,
.page-authentication a[href*="creation"]:hover {
  border-color: var(--gold, #D4B570) !important;
  color: var(--gold, #D4B570) !important;
}

/* ============================================================
   ITER 10 POLISH — Auth pages fin
   2026-04-25
   ============================================================ */

/* ── CTA Primary 56px height ── */
.page-authentication .btn-primary,
.page-my-account-forgot-password .btn-primary,
.page-my-account-reset-password .btn-primary,
.page-registration .btn-primary,
.page-password .btn-primary {
  height: 56px !important;
  min-height: 56px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  background: var(--gold, #D4B570) !important;
  color: var(--night, #0E0B1A) !important;
  border: none !important;
  border-radius: 6px !important;
  font-family: var(--sans) !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: opacity 0.2s, transform 0.15s !important;
  margin-top: 8px !important;
}
.page-authentication .btn-primary:hover,
.page-my-account-forgot-password .btn-primary:hover,
.page-registration .btn-primary:hover {
  opacity: 0.88 !important;
  transform: translateY(-1px) !important;
}
.page-authentication .btn-primary:active,
.page-registration .btn-primary:active {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

/* ── Tabs Login / Register — underline gold ── */
.page-authentication .login-tabs,
.page-authentication .auth-tabs,
.page-authentication ul.nav-tabs {
  display: flex !important;
  gap: 0 !important;
  border-bottom: 1px solid rgba(107, 74, 140, 0.25) !important;
  margin-bottom: 32px !important;
  list-style: none !important;
  padding: 0 !important;
}
.page-authentication .login-tabs li,
.page-authentication .auth-tabs li,
.page-authentication ul.nav-tabs li {
  flex: 1 !important;
}
.page-authentication .login-tabs li a,
.page-authentication .auth-tabs li a,
.page-authentication ul.nav-tabs li a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 48px !important;
  font-family: var(--sans) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: rgba(244, 239, 230, 0.50) !important;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -1px !important;
  transition: color 0.2s, border-color 0.2s !important;
  text-decoration: none !important;
}
.page-authentication .login-tabs li.active a,
.page-authentication .auth-tabs li.active a,
.page-authentication ul.nav-tabs li.active a,
.page-authentication ul.nav-tabs li a.active {
  color: var(--gold, #D4B570) !important;
  border-bottom-color: var(--gold, #D4B570) !important;
}
.page-authentication .login-tabs li a:hover,
.page-authentication ul.nav-tabs li a:hover {
  color: var(--cream, #F4EFE6) !important;
}

/* ── Social login buttons — dark + gold ── */
.page-authentication .social-login {
  margin-bottom: 24px !important;
}
.page-authentication .social-login .btn,
.page-authentication .social-login button,
.page-authentication .social-login a.btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  height: 48px !important;
  background: rgba(14, 11, 26, 0.80) !important;
  border: 1px solid rgba(212, 181, 112, 0.35) !important;
  border-radius: 6px !important;
  color: var(--cream, #F4EFE6) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  transition: border-color 0.2s, background 0.2s !important;
  margin-bottom: 10px !important;
}
.page-authentication .social-login .btn:hover,
.page-authentication .social-login a.btn:hover {
  border-color: var(--gold, #D4B570) !important;
  background: rgba(212, 181, 112, 0.08) !important;
  color: var(--gold, #D4B570) !important;
}
.page-authentication .social-login .btn img,
.page-authentication .social-login .btn svg {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
}

/* ── Password strength meter ── */
.page-authentication .password-strength-feedback,
.page-registration .password-strength-feedback,
#new-password ~ .password-strength-feedback,
[data-action="show-password"] ~ .strength-meter {
  margin-top: 8px !important;
}
/* Gauge bar container */
.password-strength-gauge,
.progress.password_strength_bar,
.page-authentication .progress {
  height: 4px !important;
  background: rgba(107, 74, 140, 0.20) !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  margin-top: 6px !important;
}
.password-strength-gauge .bar,
.progress.password_strength_bar .progress-bar,
.page-authentication .progress-bar {
  height: 100% !important;
  border-radius: 4px !important;
  transition: width 0.4s ease, background 0.4s !important;
}
/* Levels */
.progress-bar[aria-valuenow="1"],
.progress-bar.strength-1 { background: #e74c3c !important; width: 25% !important; }
.progress-bar[aria-valuenow="2"],
.progress-bar.strength-2 { background: #e67e22 !important; width: 50% !important; }
.progress-bar[aria-valuenow="3"],
.progress-bar.strength-3 { background: #f1c40f !important; width: 75% !important; }
.progress-bar[aria-valuenow="4"],
.progress-bar.strength-4 { background: var(--gold, #D4B570) !important; width: 100% !important; }
/* Label texte force */
.page-authentication .password-strength-label,
.page-registration .password-strength-label,
#password-policy-blocks ~ .strength-label {
  font-size: 0.70rem !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  margin-top: 4px !important;
  color: rgba(244, 239, 230, 0.50) !important;
}

/* ── Show/hide password eye button ── */
.page-authentication .btn.js-visible-password,
.page-authentication .input-group .btn[data-action="show-password"],
.page-authentication .input-group-append .btn,
.page-registration .btn.js-visible-password,
.page-registration .input-group-append .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 1px solid rgba(107, 74, 140, 0.35) !important;
  border-left: none !important;
  border-radius: 0 6px 6px 0 !important;
  color: rgba(244, 239, 230, 0.45) !important;
  cursor: pointer !important;
  transition: color 0.2s, border-color 0.2s !important;
  flex-shrink: 0 !important;
}
.page-authentication .btn.js-visible-password:hover,
.page-authentication .input-group-append .btn:hover,
.page-registration .btn.js-visible-password:hover {
  color: var(--gold, #D4B570) !important;
  border-color: rgba(212, 181, 112, 0.40) !important;
}
/* Input adjacent à l'eye — arrondi gauche seulement */
.page-authentication .input-group input[type="password"],
.page-authentication .input-group input[type="text"],
.page-registration .input-group input[type="password"],
.page-registration .input-group input[type="text"] {
  border-radius: 6px 0 0 6px !important;
}
.page-authentication .input-group {
  display: flex !important;
  align-items: stretch !important;
}

/* ── "Resté connecté" toggle pill ── */
.page-authentication .custom-toggle,
.page-authentication .remember-me {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 16px 0 !important;
}
/* Cache le checkbox natif, affiche le pill */
.page-authentication .remember-me input[type="checkbox"],
.page-authentication .custom-toggle input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}
/* Pill track */
.page-authentication .remember-me label::before,
.page-authentication .custom-toggle label::before {
  content: '' !important;
  display: inline-block !important;
  width: 40px !important;
  height: 22px !important;
  background: rgba(107, 74, 140, 0.25) !important;
  border: 1px solid rgba(107, 74, 140, 0.40) !important;
  border-radius: 11px !important;
  vertical-align: middle !important;
  margin-right: 8px !important;
  transition: background 0.25s, border-color 0.25s !important;
  flex-shrink: 0 !important;
  position: relative !important;
}
/* Pill thumb */
.page-authentication .remember-me label::after,
.page-authentication .custom-toggle label::after {
  content: '' !important;
  display: inline-block !important;
  position: absolute !important;
  width: 16px !important;
  height: 16px !important;
  background: rgba(244, 239, 230, 0.50) !important;
  border-radius: 50% !important;
  top: 3px !important;
  left: 3px !important;
  transition: transform 0.25s, background 0.25s !important;
}
/* Checked state */
.page-authentication .remember-me input:checked + label::before,
.page-authentication .custom-toggle input:checked + label::before {
  background: rgba(212, 181, 112, 0.30) !important;
  border-color: var(--gold, #D4B570) !important;
}
.page-authentication .remember-me input:checked + label::after,
.page-authentication .custom-toggle input:checked + label::after {
  transform: translateX(18px) !important;
  background: var(--gold, #D4B570) !important;
}
/* Label texte */
.page-authentication .remember-me label,
.page-authentication .custom-toggle label {
  font-size: 0.80rem !important;
  color: rgba(244, 239, 230, 0.65) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  letter-spacing: 0.04em !important;
  user-select: none !important;
  position: relative !important;
}

/* ── Inline errors avec icône ── */
.page-authentication .has-error .form-control,
.page-registration .has-error .form-control {
  border-color: #e74c3c !important;
  background: rgba(231, 76, 60, 0.04) !important;
}
.page-authentication .has-error .help-block,
.page-registration .has-error .help-block,
.page-authentication .field-error,
.page-registration .field-error {
  display: flex !important;
  align-items: flex-start !important;
  gap: 6px !important;
  color: #e74c3c !important;
  font-size: 0.76rem !important;
  margin-top: 5px !important;
  line-height: 1.4 !important;
}
/* Icône inline via CSS — triangle exclamation */
.page-authentication .has-error .help-block::before,
.page-registration .has-error .help-block::before,
.page-authentication .field-error::before,
.page-registration .field-error::before {
  content: '' !important;
  display: inline-block !important;
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0 !important;
  margin-top: 1px !important;
  background-color: #e74c3c !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L1 21h22L12 2zm0 3.5L20.5 19H3.5L12 5.5zM11 10v4h2v-4h-2zm0 6v2h2v-2h-2z'/%3E%3C/svg%3E") no-repeat center / contain !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L1 21h22L12 2zm0 3.5L20.5 19H3.5L12 5.5zM11 10v4h2v-4h-2zm0 6v2h2v-2h-2z'/%3E%3C/svg%3E") no-repeat center / contain !important;
}

/* ── Lien "Mot de passe oublié" gold underline subtle ── */
.page-authentication .forgot-password,
.page-authentication .bj-login-card__forgot {
  text-align: right !important;
  margin: -4px 0 16px !important;
}
.page-authentication .forgot-password a,
.page-authentication .bj-login-card__forgot a,
a.forgot-password,
a[href*="recuperation-mot-de-passe"],
a[href*="password-recovery"] {
  color: var(--gold, #D4B570) !important;
  font-size: 0.76rem !important;
  letter-spacing: 0.06em !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(212, 181, 112, 0.35) !important;
  padding-bottom: 1px !important;
  transition: border-color 0.2s, color 0.2s !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
}
.page-authentication .forgot-password a:hover,
.page-authentication .bj-login-card__forgot a:hover {
  border-bottom-color: var(--gold, #D4B570) !important;
  color: var(--cream, #F4EFE6) !important;
}

/* ── Mot de passe oublié page — card centrée ── */
.page-my-account-forgot-password #content-wrapper,
.page-password #content-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 60vh !important;
  padding: 40px 16px !important;
}
.page-my-account-forgot-password .forgotten-password {
  background: #14102A !important;
  border: 1px solid rgba(107, 74, 140, 0.30) !important;
  border-radius: 12px !important;
  padding: 40px 32px !important;
  width: 100% !important;
  max-width: 480px !important;
}
.page-my-account-forgot-password .forgotten-password header p,
.forgotten-password .send-renew-password-link {
  font-size: 0.875rem !important;
  color: rgba(244, 239, 230, 0.65) !important;
  text-align: center !important;
  margin-bottom: 24px !important;
  line-height: 1.65 !important;
}
.page-my-account-forgot-password .forgotten-password label {
  display: block !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: rgba(155, 127, 184, 0.90) !important;
  margin-bottom: 6px !important;
}
.page-my-account-forgot-password .forgotten-password .center-email-fields {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}
.page-my-account-forgot-password .forgotten-password input[type="email"] {
  width: 100% !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(107, 74, 140, 0.35) !important;
  border-radius: 6px !important;
  color: var(--cream, #F4EFE6) !important;
  padding: 12px 14px !important;
  font-size: 0.875rem !important;
  margin-bottom: 20px !important;
  box-sizing: border-box !important;
}
.page-my-account-forgot-password .forgotten-password input[type="email"]:focus {
  outline: none !important;
  border-color: var(--gold, #D4B570) !important;
}

/* ── Erreurs globales PS-alert ── */
.page-my-account-forgot-password .ps-alert-error,
.page-authentication .ps-alert-error {
  list-style: none !important;
  padding: 0 !important;
  margin-bottom: 16px !important;
}
.page-my-account-forgot-password .ps-alert-error .item,
.page-authentication .ps-alert-error .item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  background: rgba(231, 76, 60, 0.10) !important;
  border: 1px solid rgba(231, 76, 60, 0.30) !important;
  border-radius: 6px !important;
  padding: 10px 12px !important;
  margin-bottom: 8px !important;
  color: #e74c3c !important;
  font-size: 0.82rem !important;
}
.page-my-account-forgot-password .ps-alert-error .item i,
.page-authentication .ps-alert-error .item i {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
  margin-top: 1px !important;
}
.page-my-account-forgot-password .ps-alert-error .item i svg,
.page-authentication .ps-alert-error .item i svg {
  width: 16px !important;
  height: 16px !important;
  fill: #e74c3c !important;
}

/* ── Mobile adjustments auth iter 10 ── */
@media (max-width: 480px) {
  .page-my-account-forgot-password .forgotten-password {
    padding: 28px 16px !important;
  }
  .page-authentication .btn-primary,
  .page-registration .btn-primary {
    font-size: 0.76rem !important;
    letter-spacing: 0.12em !important;
  }
  .page-authentication .social-login .btn {
    font-size: 0.72rem !important;
  }
}

/* ============================================================
   ITER 21 POLISH — Pages compte connecté
   2026-04-25
   ============================================================ */

/* ── DASHBOARD CARDS — icônes + labels améliorés ── */
/* Commandes */
.page-my-account .myaccount-links li:nth-child(1) a::before,
.page-my-account .links li a[href*="commandes"]::before,
.page-my-account .links li a[href*="history"]::before {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  background-color: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Adresses */
.page-my-account .links li a[href*="adresses"]::before,
.page-my-account .links li a[href*="addresses"]::before {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  background-color: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z'/%3E%3Ccircle cx='12' cy='11' r='3'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z'/%3E%3Ccircle cx='12' cy='11' r='3'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Informations perso */
.page-my-account .links li a[href*="identite"]::before,
.page-my-account .links li a[href*="identity"]::before,
.page-my-account .links li a[href*="informations"]::before {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  background-color: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Ccircle cx='12' cy='8' r='3'/%3E%3Cpath d='M6 20v-2a4 4 0 014-4h4a4 4 0 014 4v2'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Ccircle cx='12' cy='8' r='3'/%3E%3Cpath d='M6 20v-2a4 4 0 014-4h4a4 4 0 014 4v2'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Wishlist */
.page-my-account .links li a[href*="wishlist"]::before {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  background-color: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M4.318 6.318a4.5 4.5 0 016.364 0L12 7.636l1.318-1.318a4.5 4.5 0 016.364 6.364L12 20.364l-7.682-7.682a4.5 4.5 0 010-6.364z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M4.318 6.318a4.5 4.5 0 016.364 0L12 7.636l1.318-1.318a4.5 4.5 0 016.364 6.364L12 20.364l-7.682-7.682a4.5 4.5 0 010-6.364z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Coupons */
.page-my-account .links li a[href*="coupon"]::before,
.page-my-account .links li a[href*="discount"]::before {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  background-color: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M7 7h.01M17 17h.01M3 9.5V6a1 1 0 011-1h3.5M3 14.5V18a1 1 0 001 1h3.5M21 9.5V6a1 1 0 00-1-1h-3.5M21 14.5V18a1 1 0 01-1 1h-3.5M9.5 3h5M9.5 21h5M3 12h18'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M7 7h.01M17 17h.01M3 9.5V6a1 1 0 011-1h3.5M3 14.5V18a1 1 0 001 1h3.5M21 9.5V6a1 1 0 00-1-1h-3.5M21 14.5V18a1 1 0 01-1 1h-3.5M9.5 3h5M9.5 21h5M3 12h18'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ── AVATAR INITIALES GRADIENT ── */
.page-my-account .customer-avatar,
.page-my-account .bj-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6B4A8C 0%, #D4B570 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--night, #0E0B1A);
  letter-spacing: 0.02em;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(107, 74, 140, 0.30);
  flex-shrink: 0;
}

/* Avatar in header/sidebar context */
.page-my-account .account-header,
.page-history .account-header,
.page-addresses .account-header {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #14102A;
  border: 1px solid rgba(107, 74, 140, 0.20);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 28px;
}

.account-header .avatar-initials {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6B4A8C 0%, #D4B570 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--night, #0E0B1A);
  flex-shrink: 0;
}

.account-header .account-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.03em;
}

.account-header .account-email {
  font-size: 0.78rem;
  color: rgba(244, 239, 230, 0.50);
  margin-top: 2px;
}

/* ── LOGOUT BUTTON DISCRET ── */
.page-my-account a[href*="deconnexion"],
.page-my-account a[href*="logout"],
.page-my-account a[href*="logoff"],
.page-my-account .logout-link,
#header a[href*="deconnexion"],
#header a[href*="logout"] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: rgba(244, 239, 230, 0.40) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 5px !important;
  transition: color 0.2s, border-color 0.2s !important;
  min-height: 36px !important;
}
.page-my-account a[href*="deconnexion"]:hover,
.page-my-account a[href*="logout"]:hover {
  color: rgba(231, 76, 60, 0.70) !important;
  border-color: rgba(231, 76, 60, 0.25) !important;
}
.page-my-account a[href*="deconnexion"]::before,
.page-my-account a[href*="logout"]::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1'/%3E%3C/svg%3E") no-repeat center / contain;
  flex-shrink: 0;
}

/* ── SIDEBAR NAV — icônes SVG par href ── */
.page-my-account .account-links a[href*="history"]::before,
.page-my-account .account-links a[href*="commandes"]::before,
.page-history .account-links a[href*="history"]::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2'/%3E%3Crect x='9' y='3' width='6' height='4' rx='1'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2'/%3E%3Crect x='9' y='3' width='6' height='4' rx='1'/%3E%3C/svg%3E") no-repeat center / contain;
  flex-shrink: 0;
}
.page-my-account .account-links a[href*="adresses"]::before,
.page-addresses .account-links a[href*="adresses"]::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M17.657 16.657L13.414 20.9a2 2 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z'/%3E%3Ccircle cx='12' cy='11' r='3'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M17.657 16.657L13.414 20.9a2 2 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z'/%3E%3Ccircle cx='12' cy='11' r='3'/%3E%3C/svg%3E") no-repeat center / contain;
  flex-shrink: 0;
}
.page-my-account .account-links a[href*="identite"]::before,
.page-my-account .account-links a[href*="identity"]::before,
.page-my-account .account-links a[href*="informations"]::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Ccircle cx='12' cy='8' r='3'/%3E%3Cpath d='M6 20v-2a4 4 0 014-4h4a4 4 0 014 4v2'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Ccircle cx='12' cy='8' r='3'/%3E%3Cpath d='M6 20v-2a4 4 0 014-4h4a4 4 0 014 4v2'/%3E%3C/svg%3E") no-repeat center / contain;
  flex-shrink: 0;
}
.page-my-account .account-links a[href*="wishlist"]::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M4.318 6.318a4.5 4.5 0 016.364 0L12 7.636l1.318-1.318a4.5 4.5 0 016.364 6.364L12 20.364l-7.682-7.682a4.5 4.5 0 010-6.364z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M4.318 6.318a4.5 4.5 0 016.364 0L12 7.636l1.318-1.318a4.5 4.5 0 016.364 6.364L12 20.364l-7.682-7.682a4.5 4.5 0 010-6.364z'/%3E%3C/svg%3E") no-repeat center / contain;
  flex-shrink: 0;
}
.page-my-account .account-links a[href*="coupon"]::before,
.page-my-account .account-links a[href*="credit"]::before,
.page-my-account .account-links a[href*="avoir"]::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E") no-repeat center / contain;
  flex-shrink: 0;
}

/* ── MON CRÉDIT / AVOIR (/order-slip ou /mon-credit) ── */
.page-order-slip #main,
.page-module-pscredit-credit #main,
.page-my-account-credit #main {
  padding: 40px 0;
}

.page-order-slip h1,
.page-module-pscredit-credit h1,
.page-my-account-credit h1 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 32px;
}

/* Balance card */
.bj-credit-balance,
.credit-balance-card,
.page-order-slip .credit-summary {
  background: linear-gradient(135deg, rgba(107, 74, 140, 0.20) 0%, rgba(212, 181, 112, 0.08) 100%);
  border: 1px solid rgba(212, 181, 112, 0.30);
  border-radius: 14px;
  padding: 32px 28px;
  text-align: center;
  margin-bottom: 32px;
}

.bj-credit-balance .balance-label,
.credit-balance-card .balance-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.55);
  margin-bottom: 8px;
}

.bj-credit-balance .balance-amount,
.credit-balance-card .balance-amount,
.page-order-slip .credit-amount {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 8px 0;
}

.bj-credit-balance .balance-note,
.credit-balance-card .balance-note {
  font-size: 0.78rem;
  color: rgba(244, 239, 230, 0.45);
  margin-top: 10px;
}

/* Table avoirs / order slips */
.page-order-slip table,
.page-my-account-credit table {
  width: 100%;
  border-collapse: collapse;
  background: #14102A;
  border-radius: 10px;
  overflow: hidden;
}

.page-order-slip table thead tr,
.page-my-account-credit table thead tr {
  background: rgba(107, 74, 140, 0.18);
}

.page-order-slip table th,
.page-my-account-credit table th {
  padding: 12px 16px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amethyst-light, #9B7FB8);
  font-weight: 400;
  text-align: left;
}

.page-order-slip table td,
.page-my-account-credit table td {
  padding: 14px 16px;
  color: var(--cream);
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(107, 74, 140, 0.12);
}

.page-order-slip table tbody tr:last-child td,
.page-my-account-credit table tbody tr:last-child td {
  border-bottom: none;
}

/* ── INFORMATIONS — bandeau succès ── */
#identity .alert-success,
.page-customer-account .alert-success,
.page-my-account .alert.alert-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(212, 181, 112, 0.10);
  border: 1px solid rgba(212, 181, 112, 0.35);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--gold);
  font-size: 0.875rem;
  margin-bottom: 24px;
  animation: bj-slidein 0.3s ease;
}

#identity .alert-success::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background-color: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") no-repeat center / contain;
  flex-shrink: 0;
}

@keyframes bj-slidein {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── HISTORIQUE commandes — responsive amélioré ── */
/* Colonne statut : width fixe pour alignement */
.page-history table th:nth-child(3),
.page-history table td:nth-child(3) {
  width: 140px;
  text-align: center;
}

/* Colonne actions */
.page-history table th:last-child,
.page-history table td:last-child {
  text-align: right;
}

/* Statut "En attente de paiement" = orange doux */
.label-order-state.label-warning,
.label-order-state.badge-info,
.label-order-state.bg-info {
  background: rgba(230, 126, 34, 0.15);
  color: #e67e22;
  border: 1px solid rgba(230, 126, 34, 0.35);
}

/* ── ADRESSES — bouton "Ajouter" harmonisé ── */
.page-addresses .btn-add-address,
.page-addresses a[data-link-action="add-address"],
.page-addresses a[href*="ajout"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid rgba(212, 181, 112, 0.45);
  border-radius: 6px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  min-height: 44px;
  margin-bottom: 24px;
}
.page-addresses .btn-add-address:hover,
.page-addresses a[data-link-action="add-address"]:hover {
  background: rgba(212, 181, 112, 0.08);
  border-color: var(--gold);
}
.page-addresses .btn-add-address::before,
.page-addresses a[data-link-action="add-address"]::before {
  content: '+';
  font-size: 1.1rem;
  line-height: 1;
}

/* ── ADRESSES — delete bouton rouge au hover ── */
.page-addresses .address-footer a[data-link-action="delete-address"]:hover,
.page-addresses .btn-delete:hover {
  border-color: rgba(231, 76, 60, 0.40) !important;
  color: rgba(231, 76, 60, 0.80) !important;
}

/* ── COUPONS (module ps_emailalerts ou loyalty) ── */
.page-module-ps_loyalty-default #main,
.page-module-blockreassurance-default #main,
.page-order-slip .vouchers-list {
  padding: 40px 0;
}

.voucher-card,
.page-order-slip .voucher-item {
  background: #14102A;
  border: 1px solid rgba(107, 74, 140, 0.22);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}

.voucher-card:hover {
  border-color: rgba(212, 181, 112, 0.30);
}

.voucher-card .voucher-code {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  background: rgba(212, 181, 112, 0.08);
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px dashed rgba(212, 181, 112, 0.30);
}

.voucher-card .voucher-discount {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--cream);
}

.voucher-card .voucher-desc {
  font-size: 0.8rem;
  color: rgba(244, 239, 230, 0.55);
  margin-top: 4px;
}

/* ── Mobile iter 21 ── */
@media (max-width: 640px) {
  .account-header .avatar-initials {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .bj-credit-balance .balance-amount,
  .credit-balance-card .balance-amount {
    font-size: 2.2rem;
  }
  .voucher-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   ITER 43 — Customer polish 4e passe
   ============================================================ */

/* ── WISHLIST — grille produits sauvegardés ── */
.page-module-blockwishlist-mywishlist .wishlist-products-container,
#wishlist-products-container,
.wishlist-product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.wishlist-product-item,
.wishlist-products-item {
  background: #14102A;
  border: 1px solid rgba(107, 74, 140, 0.22);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}
.wishlist-product-item:hover,
.wishlist-products-item:hover {
  border-color: rgba(212, 181, 112, 0.40);
  transform: translateY(-2px);
}
.wishlist-product-item img,
.wishlist-products-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.wishlist-product-item .product-title,
.wishlist-products-item .product-title {
  padding: 10px 12px 4px;
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--cream);
}
.wishlist-product-item .product-price,
.wishlist-products-item .product-price {
  padding: 0 12px 12px;
  font-size: 0.85rem;
  color: var(--gold);
}
.wishlist-product-item .btn-remove-from-wishlist,
.wishlist-products-item .btn-remove-from-wishlist {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(10, 7, 20, 0.70);
  border: 1px solid rgba(212, 181, 112, 0.25);
  border-radius: 50%;
  color: rgba(244, 239, 230, 0.55);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.wishlist-product-item .btn-remove-from-wishlist:hover,
.wishlist-products-item .btn-remove-from-wishlist:hover {
  color: rgba(231, 76, 60, 0.85);
  border-color: rgba(231, 76, 60, 0.40);
}

/* ── ORDER TRACKING — timeline visuelle ── */
.page-order-detail .order-tracking,
.order-tracking-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 32px 0;
  overflow-x: auto;
  padding-bottom: 8px;
}
.order-tracking-step {
  flex: 1;
  min-width: 100px;
  text-align: center;
  position: relative;
}
.order-tracking-step::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: rgba(107, 74, 140, 0.20);
  z-index: 0;
}
.order-tracking-step:last-child::before { display: none; }
.order-tracking-step .step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #14102A;
  border: 2px solid rgba(107, 74, 140, 0.40);
  margin: 0 auto 8px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: rgba(244, 239, 230, 0.45);
  transition: background 0.2s, border-color 0.2s;
}
.order-tracking-step.done .step-dot {
  background: rgba(107, 74, 140, 0.55);
  border-color: var(--amethyst);
  color: var(--cream);
}
.order-tracking-step.active .step-dot {
  background: var(--gold);
  border-color: var(--gold);
  color: #0A0714;
}
.order-tracking-step.done::before {
  background: rgba(107, 74, 140, 0.55);
}
.order-tracking-step .step-label {
  font-size: 0.72rem;
  color: rgba(244, 239, 230, 0.50);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}
.order-tracking-step.done .step-label,
.order-tracking-step.active .step-label {
  color: var(--cream);
}

/* ── INVOICE — bouton téléchargement ── */
.page-order-detail .invoice-download-btn,
a[href*="pdf"][href*="invoice"],
a[data-action="download-invoice"],
.order-invoice-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: transparent;
  border: 1px solid rgba(212, 181, 112, 0.40);
  border-radius: 6px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  min-height: 40px;
}
.page-order-detail .invoice-download-btn:hover,
a[href*="pdf"][href*="invoice"]:hover,
a[data-action="download-invoice"]:hover,
.order-invoice-btn:hover {
  background: rgba(212, 181, 112, 0.08);
  border-color: var(--gold);
}
.page-order-detail .invoice-download-btn::before,
a[data-action="download-invoice"]::before,
.order-invoice-btn::before {
  content: '↓';
  font-size: 1rem;
  line-height: 1;
}

/* ── RE-ORDER — bouton commandes passées ── */
.page-history .reorder-btn,
.page-order-detail .reorder-btn,
a[data-link-action="reorder"],
form[action*="reorder"] button,
.btn-reorder {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(107, 74, 140, 0.40);
  border-radius: 6px;
  color: rgba(244, 239, 230, 0.75);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  min-height: 38px;
}
.page-history .reorder-btn:hover,
.page-order-detail .reorder-btn:hover,
a[data-link-action="reorder"]:hover,
form[action*="reorder"] button:hover,
.btn-reorder:hover {
  background: rgba(107, 74, 140, 0.12);
  border-color: var(--amethyst);
  color: var(--cream);
}

/* ── ADDRESS DEFAULT BADGE ── */
.page-addresses .address-item.default-address,
.page-addresses .address[data-default="1"] {
  border-color: rgba(212, 181, 112, 0.45) !important;
}
.address-default-badge,
.page-addresses .address-item.default-address::after {
  content: 'Par défaut';
  display: inline-block;
  padding: 2px 8px;
  background: rgba(212, 181, 112, 0.12);
  border: 1px solid rgba(212, 181, 112, 0.35);
  border-radius: 20px;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 8px;
}
.page-addresses .address-item.default-address .address-alias {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* ── PROFILE PHOTO — upload preview ── */
.profile-photo-upload {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.profile-photo-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(107, 74, 140, 0.40);
  object-fit: cover;
  background: #14102A;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(244, 239, 230, 0.30);
  font-size: 2rem;
  transition: border-color 0.2s;
}
.profile-photo-preview:hover,
.profile-photo-preview.has-preview {
  border-color: var(--gold);
}
.profile-photo-upload input[type="file"] {
  display: none;
}
.profile-photo-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(107, 74, 140, 0.40);
  border-radius: 6px;
  color: rgba(244, 239, 230, 0.70);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.profile-photo-upload-label:hover {
  background: rgba(107, 74, 140, 0.10);
  border-color: var(--amethyst);
}

/* ── EMAIL PREFERENCES — checkboxes groupées ── */
.email-preferences-group {
  background: #14102A;
  border: 1px solid rgba(107, 74, 140, 0.22);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}
.email-preferences-group .group-title {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(107, 74, 140, 0.18);
}
.email-pref-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(107, 74, 140, 0.10);
}
.email-pref-item:last-child { border-bottom: none; }
.email-pref-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--amethyst);
  cursor: pointer;
}
.email-pref-item .pref-label {
  font-size: 0.88rem;
  color: var(--cream);
  line-height: 1.4;
}
.email-pref-item .pref-desc {
  font-size: 0.75rem;
  color: rgba(244, 239, 230, 0.50);
  margin-top: 3px;
}

/* ── 2FA SETUP CARD ── */
.tfa-setup-card,
.two-factor-card,
#2fa-setup-section {
  background: #14102A;
  border: 1px solid rgba(107, 74, 140, 0.30);
  border-radius: 12px;
  padding: 28px 24px;
  margin: 24px 0;
  position: relative;
  overflow: hidden;
}
.tfa-setup-card::before,
.two-factor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amethyst), var(--gold));
  opacity: 0.6;
}
.tfa-setup-card .tfa-header,
.two-factor-card .tfa-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.tfa-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(107, 74, 140, 0.20);
  border: 1px solid rgba(107, 74, 140, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.tfa-setup-card .tfa-title,
.two-factor-card .tfa-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 2px;
}
.tfa-setup-card .tfa-subtitle,
.two-factor-card .tfa-subtitle {
  font-size: 0.78rem;
  color: rgba(244, 239, 230, 0.50);
}
.tfa-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-left: auto;
}
.tfa-status-badge.enabled {
  background: rgba(46, 213, 115, 0.12);
  border: 1px solid rgba(46, 213, 115, 0.30);
  color: rgba(46, 213, 115, 0.90);
}
.tfa-status-badge.disabled {
  background: rgba(107, 74, 140, 0.12);
  border: 1px solid rgba(107, 74, 140, 0.30);
  color: rgba(244, 239, 230, 0.55);
}
.tfa-qr-container {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 16px;
}
.tfa-qr-box {
  width: 120px;
  height: 120px;
  border: 2px solid rgba(107, 74, 140, 0.40);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.tfa-qr-box img { width: 100%; height: 100%; object-fit: contain; }
.tfa-instructions {
  font-size: 0.82rem;
  color: rgba(244, 239, 230, 0.60);
  line-height: 1.55;
}
.tfa-code-input {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.tfa-code-input input {
  width: 42px;
  height: 48px;
  text-align: center;
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  background: rgba(10, 7, 20, 0.60);
  border: 1px solid rgba(107, 74, 140, 0.35);
  border-radius: 6px;
  color: var(--cream);
  transition: border-color 0.2s;
}
.tfa-code-input input:focus {
  outline: none;
  border-color: var(--gold);
}

/* ── Mobile iter 43 ── */
@media (max-width: 640px) {
  .wishlist-products-container,
  .wishlist-product-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .order-tracking-timeline {
    flex-direction: column;
    gap: 16px;
  }
  .order-tracking-step::before { display: none; }
  .order-tracking-step {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
  }
  .order-tracking-step .step-dot { margin: 0; flex-shrink: 0; }
  .tfa-qr-container { flex-direction: column; }
  .profile-photo-upload { flex-direction: column; align-items: flex-start; }
}

