/* ===========================================================================
   Compte client (2026-10-21) — page « Mon compte » (`compte.html`), barrière de
   compte du panier de la vitrine et de la boutique (`index.html`).

   Couleurs, espacements et rayons viennent de `vitrine-tokens.css` ; chaque
   `var()` porte un REPLI, parce que la boutique (`index.html`) ne charge pas les
   jetons de la vitrine. Aucune animation : seule la bordure du bandeau de retour
   de paiement change d'état, sans mouvement.
   =========================================================================== */

/* Page compte : un seul fil de lecture, retour de paiement en tête. */
main.compte { padding-block: var(--space-6, 2rem); }
header p.marque { margin: 0; font-size: var(--text-lg, 1.15rem); justify-self: start; }
.compte-section { margin-block: var(--space-6, 2rem); }
.compte-section h1 {
  margin: var(--space-1, .25rem) 0 var(--space-4, 1rem); font-size: var(--text-xl, 1.6rem);
  font-weight: 800; letter-spacing: -.01em; color: var(--color-text-strong, #0d0f14);
}
.compte-section h2 { color: var(--color-text-strong, #0d0f14); }

/* Retour de paiement : vide, il ne prend aucune place ; actif, c'est la première
   chose lue — surface posée, liseré d'accent, titre en grand. */
.payment-banner:empty { display: none; }
.payment-banner {
  background: var(--color-surface, #fff); border: 1px solid var(--color-line, #e2e5ec);
  border-left: 6px solid var(--color-ok, #1a7f37); border-radius: var(--radius-md, 10px);
  box-shadow: var(--shadow-md, 0 8px 20px rgb(16 18 28 / 10%));
  padding: var(--space-4, 1rem) var(--space-5, 1.5rem);
}
.payment-banner h2 { margin-top: 0; font-size: var(--text-xl, 1.6rem); color: var(--color-text-strong, #0d0f14); }

/* Barrière : connexion et création côte à côte, empilées sur écran étroit. */
.account-gate { margin: var(--space-3, .75rem) 0; }
.account-notice { font-weight: 600; color: var(--color-text-strong, #0d0f14); }
.account-forms {
  display: grid; gap: var(--space-4, 1rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.account-form {
  display: grid; gap: var(--space-2, .5rem); align-content: start;
  background: var(--color-surface, #fff); border: 1px solid var(--color-line, #e2e5ec);
  border-radius: var(--radius-md, 10px); padding: var(--space-4, 1rem);
}
.account-form h3 { margin: 0 0 var(--space-1, .25rem); }
.account-form label { font-weight: 600; font-size: var(--text-sm, .8125rem); }
.account-form input { width: 100%; box-sizing: border-box; }
.account-form button[type="submit"] { justify-self: start; margin-top: var(--space-2, .5rem); }
/* Le formulaire de création est l'action attendue d'un nouveau client : liseré d'accent. */
.account-form[data-submit="account-signup"] { border-top: 4px solid var(--color-accent, #e8450a); }

/* Compte connecté : bandeau sobre, jamais concurrent du total à payer. */
.account-badge {
  background: var(--color-surface-2, #eceef3); border-radius: var(--radius-sm, 6px);
  padding: var(--space-2, .5rem) var(--space-4, 1rem); margin: var(--space-3, .75rem) 0;
}
.account-badge p { margin: var(--space-1, .25rem) 0; }
.account-orders-link a, .account-badge a, .pied-bas a { font-weight: 600; color: var(--color-accent-text, #a83007); }

/* Étapes du panier de la vitrine : « Commander », puis compte, puis adresse. */
.checkout-steps { margin-top: var(--space-4, 1rem); }
.checkout-steps .cta[hidden] { display: none; }

/* « Mes commandes » : la colonne des expéditions (numéros de suivi) n'est jamais
   masquée ; sur écran étroit, le tableau défile horizontalement. */
.account-orders td { vertical-align: top; }
.account-orders .shipments { margin: 0; padding-left: var(--space-4, 1rem); }
@media (width < 760px) { .account-orders { display: block; overflow-x: auto; } }
