/* Espace client et avatars d’en-tête, direction artistique v2. */
.header-profile-avatar,
.product-header-profile img,
.customer-header-profile img {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--paper);
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(66, 47, 14, 0.18);
}

.account-menu summary:has(.header-profile-avatar) {
  gap: 9px;
}

.product-header-actions,
.product-header-profile,
.customer-header-actions,
.customer-header-profile {
  display: flex;
  align-items: center;
}

.product-header-actions {
  gap: 12px;
}

.product-header-profile {
  gap: 8px;
  color: var(--product-ink);
  font-size: 12px;
  font-weight: 720;
}

.customer-account {
  --coral: #ecb540;
  --coral-hover: #704200;
  --accent-text: #805000;
  --page-gutter: clamp(42px, 5.2vw, 98px);
  min-height: 100dvh;
  background-color: #f6d9d7;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 253, 249, 0.2) 0,
    rgba(255, 253, 249, 0.2) 24px,
    rgba(255, 253, 249, 0.02) 24px,
    rgba(255, 253, 249, 0.02) 48px
  );
  background-size: 48px 100%;
  color: var(--ink);
}

.customer-account .customer-header {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-inline: var(--page-gutter);
  border-bottom: 0;
  background: rgba(244, 236, 223, 0.98);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.customer-account .customer-header::before,
.customer-account .customer-header::after {
  content: none;
  display: none;
}

.customer-header-actions {
  gap: clamp(18px, 2vw, 30px);
}

.customer-shop-link,
.customer-header form button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease;
}

.customer-shop-link:hover,
.customer-shop-link:focus-visible,
.customer-header form button:hover,
.customer-header form button:focus-visible {
  background: transparent;
  color: var(--coral-hover);
}

.customer-shop-link:active,
.customer-header form button:active {
  color: var(--accent-text);
}

.customer-header-action-icon {
  display: inline-grid;
  place-items: center;
  color: var(--coral);
}

.customer-header-action-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customer-header-profile {
  gap: 9px;
  padding: 5px 9px 5px 5px;
  border: 1px solid rgba(66, 47, 14, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
}

.customer-header-profile span {
  display: grid;
  gap: 1px;
}

.customer-header-profile strong {
  font-size: 11px;
}

.customer-header-profile small {
  color: var(--muted);
  font-size: 9px;
}

.customer-account .customer-content {
  width: min(1320px, calc(100% - 48px));
  padding: 38px 0 88px;
}

.customer-account .account-intro {
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 36px;
  margin-bottom: 22px;
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid rgba(66, 47, 14, 0.08);
  border-radius: 30px;
  background: rgba(255, 250, 244, 0.92);
  box-shadow: 0 16px 42px rgba(108, 66, 58, 0.045);
}

.customer-account .account-kicker {
  color: var(--accent-text);
}

.customer-account .account-intro h1 {
  margin: 8px 0 14px;
  color: var(--coral);
  font: 600 clamp(52px, 6vw, 82px)/0.98 var(--font-display);
  letter-spacing: -0.045em;
}

.customer-account .account-intro h1 .account-greeting {
  color: var(--ink);
}

.customer-account .account-intro > div > p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.account-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.7fr);
  gap: 22px;
  align-items: start;
}

.account-profile-panel,
.customer-account .customer-orders {
  border: 1px solid rgba(66, 47, 14, 0.09);
  border-radius: 28px;
  background: rgba(255, 250, 244, 0.95);
  box-shadow: 0 16px 42px rgba(108, 66, 58, 0.045);
}

.account-profile-panel {
  position: sticky;
  top: 20px;
  padding: 26px;
}

.customer-account .profile-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 0 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.customer-account .profile-card > img {
  width: 94px;
  height: 94px;
  border-width: 5px;
}

.customer-account .profile-card div {
  gap: 5px;
}

.customer-account .profile-card strong {
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.05;
}

.customer-account .profile-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.account-admin-link {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 15px 17px;
  border: 1px solid #d99d28;
  border-radius: 15px;
  background: var(--coral);
  color: var(--ink);
  transition: background 160ms ease, transform 160ms ease;
}

.account-admin-link:hover,
.account-admin-link:focus-visible {
  background: var(--coral-hover);
}

.account-admin-link:active {
  transform: scale(0.98);
}

.account-admin-link span {
  font-weight: 760;
}

.account-admin-link small {
  font-size: 10px;
}

.customer-account .account-settings {
  margin: 18px 0 0;
  border: 1px solid rgba(66, 47, 14, 0.1);
  border-radius: 16px;
  background: var(--pink-soft);
  overflow: hidden;
}

.customer-account .account-settings > summary {
  padding: 16px 18px;
  color: var(--accent-text);
  font-size: 11px;
}

.customer-account .account-settings-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 20px;
  border-top-color: rgba(66, 47, 14, 0.1);
}

.customer-account .account-settings-content h2 {
  color: var(--coral);
  font-size: 27px;
}

.customer-account .account-settings form {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
}

.customer-account .account-settings form button {
  grid-column: 1 / -1;
  width: 100%;
  border-color: #b17a10;
  background: var(--coral);
  color: var(--ink);
}

.customer-account .account-password-settings {
  background: rgba(255, 250, 244, 0.72);
}

.customer-account .account-settings form.account-password-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.customer-account .account-password-form label {
  display: grid;
  gap: 6px;
}

.customer-account .account-password-form input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(66, 47, 14, 0.17);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.customer-account .account-password-form input:focus {
  border-color: #b17a10;
  outline: 3px solid rgba(236, 181, 64, 0.25);
  outline-offset: 1px;
}

.customer-account .customer-orders {
  min-height: 520px;
  padding: clamp(24px, 3vw, 38px);
}

.customer-account .orders-title {
  margin-bottom: 28px;
}

.customer-account .orders-title h2 {
  color: var(--coral);
  font: 600 clamp(34px, 4vw, 48px)/1 var(--font-display);
  letter-spacing: -0.035em;
}

.customer-account .orders-title > span {
  width: auto;
  height: auto;
  padding: 8px 12px;
  border: 1px solid rgba(177, 122, 16, 0.2);
  border-radius: 999px;
  background: var(--butter);
  color: var(--accent-text);
  font-size: 10px;
  box-shadow: none;
}

.customer-account .no-orders {
  min-height: 360px;
  padding: 40px;
  border: 1px solid rgba(66, 47, 14, 0.07);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 18%, rgba(247, 233, 178, 0.78), transparent 11rem),
    var(--pink-soft);
}

.customer-account .no-orders::before {
  content: "+";
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(177, 122, 16, 0.24);
  border-radius: 50%;
  background: var(--paper);
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 34px;
}

.customer-account .no-orders h3 {
  margin: 16px 0 6px;
  color: var(--ink);
  font: 600 29px/1.15 var(--font-display);
}

.customer-account .no-orders a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 11px 18px;
  border: 1px solid #b17a10;
  border-radius: 999px;
  background: var(--coral);
  color: var(--ink);
  box-shadow: none;
}

@media (max-width: 900px) {
  .account-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .account-profile-panel {
    position: static;
  }
}

@media (max-width: 850px) {
  .customer-account .customer-header {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-inline: 20px;
  }
}

@media (max-width: 700px) {
  .customer-header-actions {
    gap: 10px;
  }

  .customer-header-profile span {
    display: none;
  }

  .customer-header-profile {
    padding: 4px;
    border: 0;
    background: transparent;
  }

  .customer-account .customer-content {
    width: calc(100% - 20px);
    padding-top: 20px;
  }

  .customer-account .account-intro {
    min-height: 0;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
    padding: 28px 24px;
    border-radius: 24px;
  }

  .customer-account .account-intro h1 {
    font-size: clamp(46px, 14vw, 62px);
  }

  .account-profile-panel,
  .customer-account .customer-orders {
    padding: 22px;
    border-radius: 24px;
  }
}

@media (max-width: 460px) {
  .customer-header-actions {
    gap: 6px;
  }

  .customer-shop-link,
  .customer-header form button {
    min-height: 38px;
    padding: 4px 0;
    font-size: 9px;
  }

  .customer-header-action-icon svg {
    width: 16px;
    height: 16px;
  }

  .customer-header-profile img {
    width: 34px;
    height: 34px;
  }

  .product-header-profile span {
    display: none;
  }

  .customer-account .profile-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .customer-account .profile-card > img {
    width: 72px;
    height: 72px;
  }

  .customer-account .no-orders {
    min-height: 320px;
    padding: 28px 18px;
  }
}
