/* Espace client: les regles restent limitees aux wrappers des pages compte. */
.account-layout,
.auth-page,
.facture-wrap,
.container.section[style*="max-width: 720px"] {
  --account-violet: #7c5cff;
  --account-cyan: #00d4ff;
  --account-glass: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.012) 55%), #111623;
  --account-line: linear-gradient(125deg, rgba(124,92,255,.82), rgba(0,212,255,.72));
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(230px, 270px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.account-layout :is(h1,h2,h3,h4),
.auth-page :is(h1,h2,h3,h4),
.facture-wrap :is(h1,h2,h3,h4),
.container.section[style*="max-width: 720px"] :is(h1,h2,h3,h4) {
  color: #f3f5ff;
}
.account-layout h1,
.auth-page h1,
.facture-wrap h1,
.container.section[style*="max-width: 720px"] h1 {
  font-family: 'Unbounded', var(--font-display, sans-serif);
  font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.24;
}
.account-layout h2,
.auth-page h2,
.facture-wrap h2,
.container.section[style*="max-width: 720px"] h2 {
  font-family: 'Unbounded', var(--font-display, sans-serif);
  font-weight: 600;
  letter-spacing: -.04em;
}
.account-layout .section-head,
.container.section[style*="max-width: 720px"] .section-head { gap: 1rem; flex-wrap: wrap; }
.account-content { min-width: 0; }
.account-content > h1 { margin-bottom: 1.4rem; }
.account-content h2:not(.mb-0),
.account-content .card > h2,
.auth-form-card > h2 { position: relative; padding-left: 14px; }
.account-content h2:not(.mb-0)::before,
.account-content .card > h2::before,
.auth-form-card > h2::before {
  content: ''; position: absolute; left: 0; top: .16em; bottom: .18em; width: 3px;
  border-radius: 9px; background: linear-gradient(180deg, var(--account-violet), var(--account-cyan));
}

/* Hairline gradient borders are painted through a mask, without blur/backdrop effects. */
.account-nav.card,
.account-content > .card,
.account-review-card,
.address-card,
.auth-form-card,
.auth-form-panel > .card,
.auth-page .auth-form-card .card,
.facture-wrap > .card,
.container.section[style*="max-width: 720px"] > .card,
.container.section[style*="max-width: 720px"] > .card > .card {
  position: relative;
  isolation: isolate;
  border: 1px solid transparent;
  border-radius: 20px;
  background: var(--account-glass, linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.012) 55%), #111623);
  box-shadow: 0 16px 42px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.035);
}
.account-nav.card::before,
.account-content > .card::before,
.account-review-card::before,
.address-card::before,
.auth-form-card::before,
.auth-form-panel > .card::before,
.auth-page .auth-form-card .card::before,
.facture-wrap > .card::before,
.container.section[style*="max-width: 720px"] > .card::before,
.container.section[style*="max-width: 720px"] > .card > .card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; padding: 1px; border-radius: inherit;
  background: linear-gradient(135deg, rgba(124,92,255,.82), rgba(0,212,255,.68) 52%, rgba(124,92,255,.22));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.account-content > .card { margin-bottom: 1.25rem; padding: clamp(1.25rem, 2vw, 1.8rem); }
.account-content > .card:last-child { margin-bottom: 0; }
.account-content h3,
.account-content .card h2,
.account-content .card h3 { margin-bottom: .9rem; }
.account-content .card p:last-child { margin-bottom: 0; }

/* Sidebar identity and navigation */
.account-nav.card {
  display: flex; flex-direction: column; gap: 5px;
  position: sticky; top: calc(var(--header-height, 72px) + 1rem);
  padding: 1rem; overflow: hidden;
}
.account-nav-user {
  display: flex; align-items: center; gap: 13px; min-width: 0;
  padding: .35rem .25rem 1.05rem; margin-bottom: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.account-avatar {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; flex: 0 0 50px; border-radius: 16px;
  background: linear-gradient(145deg, #211d3b, #101b2b); color: #fff;
  font: 700 .95rem 'Unbounded', sans-serif; letter-spacing: -.07em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 0 0 1px rgba(124,92,255,.7), 0 0 0 3px rgba(0,212,255,.16);
}
.account-nav-user > div:last-child { min-width: 0; }
.account-nav-user strong { display: block; color: #f6f7ff; font-size: .94rem; line-height: 1.35; }
.account-nav-user .account-nav-email {
  display: block; max-width: 100%; margin-top: 4px; overflow: hidden;
  color: #aeb7c9; font: 500 .66rem/1.45 'JetBrains Mono', monospace;
  text-overflow: ellipsis; white-space: nowrap; overflow-wrap: anywhere;
}
.account-nav > a {
  position: relative; display: flex; align-items: center; gap: 11px;
  min-height: 46px; padding: .62rem .7rem; border-radius: 12px;
  color: #b6bfd0; font-size: .88rem; font-weight: 600;
  transition: transform .2s ease, opacity .2s ease;
}
.account-nav > a::before {
  content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px;
  border-radius: 0 4px 4px 0; background: linear-gradient(180deg, var(--account-violet), var(--account-cyan));
  transform: scaleY(0); transform-origin: center; transition: transform .2s ease;
}
.account-nav > a:hover { color: #fff; background: rgba(255,255,255,.055); transform: translateX(4px); }
.account-nav > a.active { color: #fff; background: linear-gradient(100deg, rgba(124,92,255,.2), rgba(0,212,255,.07)); }
.account-nav > a.active::before { transform: scaleY(1); }
.account-nav > a > svg { width: 18px; height: 18px; flex: 0 0 18px; color: #8792aa; transition: none; }
.account-nav > a:hover > svg,
.account-nav > a.active > svg { color: var(--account-cyan); }
.account-nav > a .badge { margin-left: auto !important; padding: .2rem .5rem; font: 600 .64rem 'JetBrains Mono', monospace; }
.account-nav > a.account-nav-logout { margin-top: .6rem; padding-top: .75rem !important; border-top: 1px solid rgba(255,255,255,.1); color: #ff8196 !important; }
.account-nav > a.account-nav-logout::before { display: none; }
.account-nav > a.account-nav-logout > svg { color: #ff8196; }

/* Forms and actions */
.account-layout .form-group,
.auth-page .form-group,
.facture-wrap .form-group,
.container.section[style*="max-width: 720px"] .form-group { margin-bottom: 1.15rem; }
.account-layout .form-label,
.auth-page .form-label,
.facture-wrap .form-label,
.container.section[style*="max-width: 720px"] .form-label {
  margin-bottom: .55rem; color: #c7cede; font: 600 .69rem/1.4 'JetBrains Mono', monospace;
  letter-spacing: .075em; text-transform: uppercase;
}
.account-layout .form-control,
.auth-page .form-control,
.facture-wrap .form-control,
.container.section[style*="max-width: 720px"] .form-control {
  min-height: 48px; padding: .75rem .95rem; border: 1px solid rgba(160,174,200,.2);
  border-radius: 12px; background: rgba(7,11,20,.62); color: #f5f7ff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.22);
  transition: none;
}
.account-layout textarea.form-control,
.auth-page textarea.form-control,
.container.section[style*="max-width: 720px"] textarea.form-control { min-height: 120px; }
.account-layout .form-control::placeholder,
.auth-page .form-control::placeholder,
.container.section[style*="max-width: 720px"] .form-control::placeholder { color: #7f8aa0; opacity: 1; }
.account-layout .form-control:focus,
.auth-page .form-control:focus,
.container.section[style*="max-width: 720px"] .form-control:focus {
  outline: none; border-color: var(--account-cyan); background: rgba(8,16,27,.9);
  box-shadow: 0 0 0 4px rgba(0,212,255,.12), inset 0 1px 2px rgba(0,0,0,.2);
}
.account-layout :is(a,button,input,select,textarea,[tabindex]):focus-visible,
.auth-page :is(a,button,input,select,textarea,[tabindex]):focus-visible,
.facture-wrap :is(a,button,[tabindex]):focus-visible,
.container.section[style*="max-width: 720px"] :is(a,button,input,select,textarea,[tabindex]):focus-visible {
  outline: 2px solid #00d4ff; outline-offset: 3px;
}
.account-layout .btn-primary,
.auth-page .btn-primary,
.container.section[style*="max-width: 720px"] .btn-primary {
  border: 1px solid rgba(255,255,255,.13); border-radius: 12px;
  background: linear-gradient(110deg, #6948e8, #7c5cff 50%, #168ec7);
  color: #fff; box-shadow: 0 8px 22px rgba(91,69,221,.25);
  transition: transform .2s ease, opacity .2s ease;
}
.account-layout .btn-primary:hover,
.auth-page .btn-primary:hover,
.container.section[style*="max-width: 720px"] .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(91,69,221,.38); }
.account-layout .btn-primary:active,
.auth-page .btn-primary:active,
.container.section[style*="max-width: 720px"] .btn-primary:active { transform: translateY(1px); }
.account-layout .btn-secondary,
.account-layout .btn-outline,
.auth-page .btn-secondary,
.auth-page .btn-outline { border-color: rgba(172,185,211,.24); border-radius: 11px; background: rgba(255,255,255,.045); color: #dfe5f4; }
.account-layout .btn-secondary:hover,
.account-layout .btn-outline:hover,
.auth-page .btn-secondary:hover,
.auth-page .btn-outline:hover { border-color: rgba(0,212,255,.65); color: #fff; }
.account-layout a:not(.btn):hover,
.auth-page a:not(.btn):hover { color: #8ceaff; }
.account-layout .form-hint,
.auth-page .auth-form-hint { color: #aab4c8; }

/* Orders, reviews, addresses, security and shared data components */
.account-layout .table-wrap,
.container.section[style*="max-width: 720px"] .table-wrap { overflow-x: auto; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(5,9,17,.28); }
.account-layout table,
.container.section[style*="max-width: 720px"] table { width: 100%; border-collapse: collapse; }
.account-layout th,
.container.section[style*="max-width: 720px"] th { color: #aeb8cd; font: 600 .67rem 'JetBrains Mono', monospace; letter-spacing: .07em; text-transform: uppercase; }
.account-layout :is(th,td),
.container.section[style*="max-width: 720px"] :is(th,td) { padding: .9rem .85rem; border-bottom: 1px solid rgba(255,255,255,.075); text-align: left; }
.account-layout tr:last-child td,
.container.section[style*="max-width: 720px"] tr:last-child td { border-bottom: 0; }
.account-layout tbody tr:hover,
.container.section[style*="max-width: 720px"] tbody tr:hover { background: rgba(255,255,255,.025); }
.account-layout .summary-row,
.container.section[style*="max-width: 720px"] .summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem .2rem; border-bottom: 1px solid rgba(255,255,255,.07); color: #b8c1d3; }
.account-layout .summary-total,
.container.section[style*="max-width: 720px"] .summary-total { color: #fff; font-family: 'Unbounded', sans-serif; font-size: .95rem; }
.account-review-card { gap: .7rem; padding: 1.2rem; }
.account-review-produit { color: #f2f5ff; }
.account-review-titre { color: #e8ecf7; }
.account-review-meta { color: #aab4c8; }
.account-layout .address-card { padding: 1rem; background-color: rgba(7,11,20,.45); }
.account-layout .badge { letter-spacing: .04em; }
.account-layout .empty-state { padding: clamp(2rem, 6vw, 4rem) 1rem; color: #aab4c8; }
.account-layout .empty-state svg { color: #71809b; }
.account-layout .alert,
.auth-page .alert { border-radius: 14px; }
.account-layout code,
.account-layout [style*="font-family: monospace"] { font-family: 'JetBrains Mono', monospace !important; }
.account-layout .order-timeline,
.container.section[style*="max-width: 720px"] .order-timeline { gap: 0; }
.account-layout .order-timeline-step,
.container.section[style*="max-width: 720px"] .order-timeline-step { color: #96a1b7; font-size: .75rem; }
.account-layout .order-timeline-step::before,
.container.section[style*="max-width: 720px"] .order-timeline-step::before { background: rgba(166,178,204,.2); }
.account-layout .order-timeline-dot,
.container.section[style*="max-width: 720px"] .order-timeline-dot { background: #141b2a; border-color: #77839a; }
.account-layout .order-timeline-step.done .order-timeline-dot,
.container.section[style*="max-width: 720px"] .order-timeline-step.done .order-timeline-dot { background: #2dd6ae; border-color: #2dd6ae; }
.account-layout .order-timeline-step.active .order-timeline-dot,
.container.section[style*="max-width: 720px"] .order-timeline-step.active .order-timeline-dot { background: var(--account-cyan); border-color: var(--account-cyan); box-shadow: 0 0 0 5px rgba(0,212,255,.13); }
.account-layout .order-timeline-step.done::before,
.container.section[style*="max-width: 720px"] .order-timeline-step.done::before { background: #2dd6ae; }

/* Auth and contact panels */
.auth-page {
  position: relative; min-height: calc(100vh - var(--header-height, 72px));
  grid-template-columns: minmax(0, 1fr) minmax(400px, .9fr);
  background: radial-gradient(ellipse at 75% 45%, rgba(23,64,91,.18), transparent 48%);
}
.auth-visual { border-right-color: rgba(255,255,255,.08); background: linear-gradient(155deg,#101726,#090d16); }
.auth-visual-content h2 { font-family: 'Unbounded', sans-serif; font-size: clamp(1.8rem, 1.3rem + 1.3vw, 2.7rem); }
.auth-visual-content > p { color: #b7c1d2; }
.auth-visual-contact { border-color: rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.04); }
.auth-form-panel { position: relative; padding: clamp(2rem, 5vw, 5rem); }
.auth-form-card {
  max-width: 450px; padding: clamp(1.5rem, 3vw, 2.4rem); border-radius: 22px;
  background: var(--account-glass); box-shadow: 0 22px 65px rgba(0,0,0,.32), 0 0 70px rgba(124,92,255,.09);
}
.auth-form-card h1 { margin-bottom: .65rem; }
.auth-form-card > p.text-muted { color: #aeb8cb; }
.auth-form-hint, .auth-form-switch { color: #aeb8cb; }
.auth-form-divider { color: #8490a7; }
.auth-form-divider::before, .auth-form-divider::after { background: rgba(255,255,255,.13); }
.auth-form-card .input-icon-group > svg:first-child { color: #8d9ab1; }
.auth-form-card .input-toggle-visibility { color: #aab4c8; }
.auth-form-card .password-strength-label { color: #aab4c8; }
.auth-page .auth-orb { opacity: .26; }
.auth-page .auth-orb-1 { background: radial-gradient(circle, rgba(124,92,255,.52), transparent 70%); }
.auth-page .auth-orb-2 { background: radial-gradient(circle, rgba(0,212,255,.4), transparent 70%); animation-delay: -8s; }
.auth-page .auth-grid { opacity: .48; }

/* Invoice is opened outside the normal site shell. */
.facture-wrap { max-width: 980px; margin: 3rem auto; padding: 0 1.25rem; color: #e6eaf4; }
.facture-wrap .facture-actions { display: flex; justify-content: flex-end; margin-bottom: 1rem; }
.facture-wrap > .card { padding: clamp(1.5rem, 4vw, 3rem); }
.facture-wrap .facture-head,
.facture-wrap .facture-parties { color: #dce2ee; }
.facture-wrap .facture-parties h4 { font: 600 .7rem 'JetBrains Mono', monospace; letter-spacing: .07em; text-transform: uppercase; color: #91a0b8; }
.facture-wrap .text-muted { color: #aab4c7; }
.facture-wrap .table-wrap { margin: 1.5rem 0; overflow-x: auto; }

/* Entrance motion is one-shot and uses only composited properties. */
@keyframes account-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
  .account-content > * { animation: account-enter .55s cubic-bezier(.2,.7,.25,1) backwards; }
  .account-content > *:nth-child(2) { animation-delay: .06s; }
  .account-content > *:nth-child(3) { animation-delay: .12s; }
  .account-content > *:nth-child(4) { animation-delay: .18s; }
  .auth-form-card { animation: account-enter .65s cubic-bezier(.2,.7,.25,1) backwards; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-page .auth-orb { animation: none; }
  .account-content > *, .auth-form-card { animation: none !important; }
}

@media (max-width: 900px) {
  .account-layout { grid-template-columns: minmax(0,1fr); gap: 1.1rem; }
  .account-nav.card {
    position: relative; top: auto; flex-direction: row; align-items: center; gap: .45rem;
    padding: .7rem; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    scrollbar-width: thin; -webkit-overflow-scrolling: touch;
  }
  .account-nav-user { display: none; }
  .account-nav > a { flex: 0 0 auto; min-height: 42px; padding: .55rem .75rem; white-space: nowrap; }
  .account-nav > a::before { top: auto; right: 12px; bottom: 0; width: auto; height: 2px; transform: scaleX(0); }
  .account-nav > a.active::before { transform: scaleX(1); }
  .account-nav > a.account-nav-logout { margin: 0 0 0 .25rem; padding-top: .55rem !important; border-top: 0; border-left: 1px solid rgba(255,255,255,.12); }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-panel { min-height: 75vh; }
}
@media (max-width: 600px) {
  .account-content > .section-head { align-items: flex-start; }
  .account-content > .card { padding: 1.1rem; }
  .account-layout :is(th,td), .container.section[style*="max-width: 720px"] :is(th,td) { padding: .72rem .6rem; }
  .auth-form-panel { padding: 2rem 1rem; }
  .auth-form-card { padding: 1.35rem; }
  .facture-wrap { margin: 1.25rem auto; padding: 0 .75rem; }
  .account-layout .order-timeline-step,
  .container.section[style*="max-width: 720px"] .order-timeline-step { font-size: .65rem; }
}

/* Account dashboard refresh */
.account-hero {
  position: relative; isolation: isolate; overflow: hidden; margin: 0 0 1.35rem; padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid rgba(168,158,255,.22); border-radius: 22px;
  background: linear-gradient(125deg, rgba(124,92,255,.16), transparent 48%), linear-gradient(300deg, rgba(0,212,255,.09), transparent 44%), #101522;
  box-shadow: 0 18px 48px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.06);
}
.account-hero::after { content: ''; position: absolute; z-index: -1; width: 250px; height: 250px; top: -150px; right: -65px; border: 1px solid rgba(0,212,255,.15); border-radius: 50%; box-shadow: 0 0 0 28px rgba(0,212,255,.025), 0 0 0 58px rgba(124,92,255,.025); }
.account-hero-main { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.25rem; }
.account-hero-identity { display: flex; min-width: 0; align-items: center; gap: 1rem; }
.account-hero-avatar { display: grid; width: 68px; height: 68px; flex: 0 0 68px; place-items: center; border: 1px solid transparent; border-radius: 22px; background: linear-gradient(#151a2a,#151a2a) padding-box, linear-gradient(135deg,#7c5cff,#00d4ff) border-box; box-shadow: 0 0 0 4px rgba(124,92,255,.12); color: #fff; font: 700 1.18rem 'Unbounded',sans-serif; }
.account-hero-copy { min-width: 0; }
.account-eyebrow { display: flex; align-items: center; gap: .5rem; color: #aab5ca; font: 600 .61rem/1.5 'JetBrains Mono',monospace; letter-spacing: .12em; }
.account-eyebrow i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #00d4ff; }
.account-greeting { margin: .3rem 0 .22rem !important; color: #eef0fa; font: 500 clamp(1.15rem, 2vw, 1.6rem)/1.3 'Unbounded',sans-serif; letter-spacing: -.05em; }
.account-greeting span { color: #fff; }
.account-hero-meta { max-width: 100%; overflow-wrap: anywhere; color: #aeb8cb; font: 500 .67rem/1.6 'JetBrains Mono',monospace; }
.account-meta-sep { margin: 0 .5rem; color: #58647b; }
.account-hero-title { flex: 0 0 auto; text-align: right; }
.account-hero-title h1 { margin: .42rem 0 0; font-size: clamp(1.2rem, 2vw, 1.65rem); }
.account-stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .7rem; margin-top: 1.5rem; }
.account-stat { min-width: 0; display: flex; flex-direction: column; gap: .28rem; padding: .85rem .9rem; border: 1px solid rgba(180,190,215,.13); border-radius: 14px; background: rgba(7,11,20,.4); transition: transform .2s ease,opacity .2s ease; }
.account-stat:hover { transform: translateY(-2px); border-color: rgba(0,212,255,.45); background-color: rgba(0,212,255,.055); }
.account-stat span,.account-stat small { color: #a8b2c6; font: 600 .59rem/1.45 'JetBrains Mono',monospace; letter-spacing: .055em; }
.account-stat strong { color: #f6f7ff; font: 600 1.23rem/1.3 'Unbounded',sans-serif; }
.account-stat small { font-size: .58rem; font-weight: 400; letter-spacing: 0; }
.account-section { padding: clamp(1.15rem,2vw,1.7rem) !important; }
.account-content .account-section-title { display: flex; align-items: center; gap: .75rem; margin: 0 0 1.25rem !important; padding: 0 !important; font-size: 1rem; }
.account-content .account-section-title::before { display: none; }
.account-section-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid rgba(0,212,255,.2); border-radius: 12px; background: linear-gradient(145deg,rgba(124,92,255,.2),rgba(0,212,255,.09)); color: #78eaff; }
.account-section-icon svg { width: 19px; height: 19px; }
.account-layout .account-nav > a > svg { box-sizing: content-box; padding: 7px; margin: -7px 1px -7px -6px; border: 1px solid rgba(255,255,255,.07); border-radius: 9px; background: rgba(255,255,255,.035); }
.account-nav > a.active > svg { border-color: rgba(0,212,255,.18); background: rgba(0,212,255,.08); }
.account-nav > a.account-nav-shop { margin-top: .55rem; border-top: 1px solid rgba(255,255,255,.1); padding-top: .85rem; color: #c3cde0; }
.account-nav > a.account-nav-shop::before { display: none; }
.account-address-card { position: relative; overflow: hidden; min-height: 170px; border-radius: 15px; }
.account-address-ribbon { position: absolute; top: .8rem; right: .8rem; }
.account-address-add { margin-top: 1rem; border: 1px dashed rgba(164,177,205,.35); border-radius: 15px; background: rgba(255,255,255,.018); }
.account-address-add summary { display: flex; min-height: 72px; align-items: center; justify-content: center; gap: .6rem; padding: 1rem; color: #c8d1e2; cursor: pointer; font: 600 .72rem 'JetBrains Mono',monospace; letter-spacing: .05em; text-transform: uppercase; list-style: none; }
.account-address-add summary::-webkit-details-marker { display: none; }
.account-address-add summary span { color: #69e7ff; font-size: 1.4rem; }
.account-address-add[open] summary { border-bottom: 1px solid rgba(255,255,255,.09); }
.account-address-add form { padding: 1.2rem; }
.account-orders-grid { display: grid; gap: .85rem; }
.account-order-card,.account-subcard { border: 1px solid rgba(173,187,213,.13); border-radius: 17px; background: linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.014)),#101522; }
.account-order-card { min-width: 0; padding: 1.05rem 1.2rem; }
.account-order-card-top,.account-order-card-meta,.account-order-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.account-order-number { color: #aab8ce; font: 600 .68rem 'JetBrains Mono',monospace; letter-spacing: .05em; }
.account-order-card-meta { margin-top: .8rem; color: #a8b2c6; font: 500 .62rem 'JetBrains Mono',monospace; letter-spacing: .04em; }
.account-order-card-bottom { flex-direction: row-reverse; justify-content: flex-end; gap: .65rem; margin-top: .75rem; }
.account-order-card-bottom strong { color: #fff; font: 600 1.12rem 'Unbounded',sans-serif; letter-spacing: -.04em; }
.account-order-caption { color: #8996ac; font: 600 .58rem 'JetBrains Mono',monospace; }
.account-mini-track { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .4rem; margin: 1rem 0 0; padding: .75rem 0 0; border-top: 1px solid rgba(255,255,255,.08); list-style: none; }
.account-mini-track li { position: relative; padding-top: 13px; color: #8793a9; font: 500 .58rem/1.35 'JetBrains Mono',monospace; }
.account-mini-track li::before { content: ''; position: absolute; top: 0; left: 0; right: -0.4rem; height: 2px; background: rgba(166,178,204,.2); }
.account-mini-track li::after { content: ''; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border: 1px solid #77839a; border-radius: 50%; background: #111623; }
.account-mini-track li.is-done { color: #c8f8ef; }
.account-mini-track li.is-done::before,.account-mini-track li.is-done::after { background: #2dd6ae; border-color: #2dd6ae; }
.account-mini-track li:last-child::before { right: 0; }
.account-content > .account-hero { padding: clamp(1.1rem,2.5vw,2rem); }
.account-invoice-btn { min-height: 46px; padding-inline: 1.1rem; }
.account-order-items-list { display: grid; }
.account-order-item { display: flex; min-width: 0; align-items: center; gap: .9rem; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.075); }
.account-order-item:last-child { border-bottom: 0; }
.account-order-item img,.account-order-item-placeholder { width: 56px; height: 56px; flex: 0 0 56px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: #171e2d; object-fit: contain; }
.account-order-item-placeholder { display: grid; place-items: center; color: #8793aa; font: 700 .65rem 'Unbounded',sans-serif; }
.account-order-item-name { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: .35rem; }
.account-order-item-name strong { color: #eef1fb; overflow-wrap: anywhere; }
.account-order-item-name small { color: #9ba7bc; font: 500 .65rem 'JetBrains Mono',monospace; }
.account-order-item-total { flex: 0 0 auto; color: #fff; font-family: 'Unbounded',sans-serif; font-size: .78rem; }
.account-subcard { padding: clamp(1rem,2vw,1.5rem) !important; }
.account-review-card { border-radius: 17px; }
.account-review-head { gap: .6rem; flex-wrap: wrap; }
.account-layout :is(a,button,summary):focus-visible { outline: 2px solid #00d4ff; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .account-nav > a,.account-stat,.account-layout .btn-primary,.account-layout .conv-list-item { transition: transform .2s ease, opacity .2s ease; }
  .account-nav > a::before { transition: transform .2s ease; }
}
@media (max-width: 900px) { .account-hero-main { align-items: flex-start; flex-direction: column; } .account-hero-title { text-align: left; } .account-stat-grid { margin-top: 1.1rem; } }
@media (max-width: 600px) {
  .account-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
  .account-stat { padding: .72rem; }
  .account-hero-avatar { width: 56px; height: 56px; flex-basis: 56px; border-radius: 18px; }
  .account-hero-identity { gap: .8rem; }
  .account-hero-meta { font-size: .59rem; }
  .account-order-card { padding: .9rem; }
  .account-order-item img,.account-order-item-placeholder { width: 46px; height: 46px; flex-basis: 46px; }
  .account-order-item-total { font-size: .68rem; }
  .account-mini-track { gap: .2rem; }
  .account-mini-track li { font-size: .52rem; }
  .account-order-card-meta { font-size: .56rem; }
}

/* =====================================================================
   Barre de suivi de commande (detail commande + page "Suivi de commande").
   Les regles de mise en page avaient ete perdues : les etapes s'affichaient
   en simple liste verticale. Piste horizontale : points relies par un trait,
   etapes passees en vert, etape en cours en surbrillance.
   ===================================================================== */
.account-layout .order-timeline,
.container.section[style*="max-width: 720px"] .order-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 1.1rem 0 1.4rem;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01)), #111623;
}
.account-layout .order-timeline-step,
.container.section[style*="max-width: 720px"] .order-timeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  text-align: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
/* trait entre deux points : du centre de cette etape au centre de la suivante */
.account-layout .order-timeline-step::before,
.container.section[style*="max-width: 720px"] .order-timeline-step::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  z-index: 0;
}
.account-layout .order-timeline-step:last-child::before,
.container.section[style*="max-width: 720px"] .order-timeline-step:last-child::before { display: none; }
.account-layout .order-timeline-step.done::before,
.container.section[style*="max-width: 720px"] .order-timeline-step.done::before { background: linear-gradient(90deg, #2dd6ae, #00d4ff); }
.account-layout .order-timeline-dot,
.container.section[style*="max-width: 720px"] .order-timeline-dot {
  position: relative;
  z-index: 1;
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #77839a;
}
.account-layout .order-timeline-step.active,
.container.section[style*="max-width: 720px"] .order-timeline-step.active { color: #fff; }
.account-layout .order-timeline-step.active .order-timeline-dot,
.container.section[style*="max-width: 720px"] .order-timeline-step.active .order-timeline-dot {
  background: #00d4ff;
  border-color: #9cefff;
  box-shadow: 0 0 0 5px rgba(0, 212, 255, .16), 0 0 18px rgba(0, 212, 255, .55);
}
.account-layout .order-timeline-step.done,
.container.section[style*="max-width: 720px"] .order-timeline-step.done { color: #b9f3e3; }

/* En-tete du detail de commande : retour, statut et facture alignes proprement */
.account-content > .section-head { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .75rem; }
.account-content > a.text-muted { display: inline-flex; margin: .2rem 0 .4rem; }

/* En-tete du compte : un titre long (ex. sujet de conversation) passe sous
   l'identite au lieu d'ecraser la colonne "Bonjour ..." */
.account-hero-identity { flex-shrink: 0; }
.account-hero-title { min-width: 0; flex: 0 1 auto; }
.account-hero-title h1 { overflow-wrap: anywhere; }
.account-hero-main:has(.account-hero-title h1:not(:empty)) { flex-wrap: wrap; }
@media (max-width: 560px) {
  .account-layout .order-timeline-step,
  .container.section[style*="max-width: 720px"] .order-timeline-step { font-size: .58rem; letter-spacing: .02em; }
}
