/* BHR Error Pages — bijoux.heleneriu.fr — v3.0 — iter45 */

:root {
  --night: #0E0B1A;
  --gold: #D4B570;
  --amethyst: #6B4A8C;
  --cream: #E8E0D0;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--night);
  color: var(--cream);
  min-height: 100vh;
}

#layout-error {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--night);
}

/* ============================================================
   BASE HERO — shared by .bhr-404, .bhr-500, .bhr-error
   ============================================================ */
.bhr-404,
.bhr-500,
.bhr-error {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  padding: 2rem;
  box-sizing: border-box;
}

/* ============================================================
   ASTROLABE SVG BACKGROUND
   ============================================================ */
.bhr-404__astrolabe,
.bhr-500__astrolabe,
.bhr-error__astrolabe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 700px);
  height: min(90vw, 700px);
  pointer-events: none;
  opacity: 0.08;
  animation: bhr-rotate 60s linear infinite;
}

@keyframes bhr-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================================
   INNER CONTENT
   ============================================================ */
.bhr-404__inner,
.bhr-500__inner,
.bhr-error__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
}

/* ============================================================
   404 — HERO NUMBER
   ============================================================ */
.bhr-404__number {
  display: block;
  font-family: 'Italiana', serif;
  font-size: clamp(120px, 25vw, 240px);
  line-height: 1;
  color: var(--gold);
  letter-spacing: -4px;
  margin-bottom: 0.15em;
  text-shadow: 0 0 60px rgba(212, 181, 112, 0.25);
}

/* 500 / generic error code */
.bhr-500__number,
.bhr-error__number {
  display: block;
  font-family: 'Italiana', serif;
  font-size: clamp(120px, 25vw, 240px);
  line-height: 1;
  color: var(--amethyst);
  letter-spacing: -4px;
  margin-bottom: 0.15em;
  text-shadow: 0 0 60px rgba(107, 74, 140, 0.35);
}

/* ============================================================
   TITLES
   ============================================================ */
.bhr-404__title,
.bhr-500__title,
.bhr-error__title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--cream);
  margin: 0 0 1.2rem;
  line-height: 1.25;
}

/* ============================================================
   BODY TEXT
   ============================================================ */
.bhr-404__text,
.bhr-500__text,
.bhr-error__text {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 300;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: rgba(232, 224, 208, 0.75);
  line-height: 1.75;
  margin: 0 0 2.4rem;
}

/* ============================================================
   CTA BUTTONS GROUP
   ============================================================ */
.bhr-404__actions,
.bhr-500__actions,
.bhr-error__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}

.bhr-404__btn,
.bhr-500__btn,
.bhr-error__btn {
  display: inline-block;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

/* Filled — gold */
.bhr-404__btn--filled,
.bhr-500__btn--filled,
.bhr-error__btn--filled {
  background: var(--gold);
  color: var(--night);
  border: 1.5px solid var(--gold);
}

.bhr-404__btn--filled:hover,
.bhr-500__btn--filled:hover,
.bhr-error__btn--filled:hover {
  background: #c9a85c;
  border-color: #c9a85c;
  color: var(--night);
}

/* Outline — gold */
.bhr-404__btn--outline,
.bhr-500__btn--outline,
.bhr-error__btn--outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

.bhr-404__btn--outline:hover,
.bhr-500__btn--outline:hover,
.bhr-error__btn--outline:hover {
  background: rgba(212, 181, 112, 0.12);
}

/* ============================================================
   MAINTENANCE PAGE
   ============================================================ */
.bhr-maintenance {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  padding: 2rem;
  box-sizing: border-box;
  background: var(--night);
}

.bhr-maintenance__astrolabe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 700px);
  height: min(90vw, 700px);
  pointer-events: none;
  opacity: 0.08;
  animation: bhr-rotate 90s linear infinite;
}

.bhr-maintenance__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 560px;
}

.bhr-maintenance__gem {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  opacity: 0.8;
}

.bhr-maintenance__title {
  font-family: 'Italiana', serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--gold);
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}

.bhr-maintenance__subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--cream);
  margin: 0 0 1.2rem;
}

.bhr-maintenance__text {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  color: rgba(232, 224, 208, 0.65);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   EMPTY STATE COMPONENT — .bhr-empty-state
   Reusable: cart vide, no-results, wishlist vide, etc.
   ============================================================ */
.bhr-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  gap: 0;
}

.bhr-empty-state__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  opacity: 0.5;
  color: var(--gold);
}

.bhr-empty-state__icon svg {
  width: 100%;
  height: 100%;
}

.bhr-empty-state__title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--cream);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.bhr-empty-state__message {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  color: rgba(232, 224, 208, 0.65);
  line-height: 1.7;
  margin: 0 0 2rem;
  max-width: 360px;
}

.bhr-empty-state__cta {
  display: inline-block;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 1.75rem;
  border-radius: 2px;
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  transition: background 0.2s ease;
}

.bhr-empty-state__cta:hover {
  background: rgba(212, 181, 112, 0.12);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  .bhr-404__actions,
  .bhr-500__actions,
  .bhr-error__actions {
    flex-direction: column;
    align-items: center;
  }

  .bhr-404__btn,
  .bhr-500__btn,
  .bhr-error__btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

/* ============================================================
   ALERT BANNERS — override Bootstrap/PS defaults
   Classes: .alert-danger, .alert-success, .alert-warning, .alert-info
   ============================================================ */

/* Reset Bootstrap background/color */
.alert {
  border-radius: 2px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.9rem;
  padding: 0.875rem 1.25rem;
  line-height: 1.6;
}

.alert ul {
  margin: 0;
  padding: 0 0 0 1.1em;
}

.alert li {
  margin: 0;
  list-style: disc;
}

/* Danger — terracotta adouci, pas de rouge Bootstrap */
.alert-danger,
.alert[data-alert="danger"] {
  background: rgba(180, 60, 60, 0.15) !important;
  border: 1px solid rgba(224, 122, 95, 0.5) !important;
  color: #E8C8B8 !important;
}

/* Success — vert sauge dark */
.alert-success,
.alert[data-alert="success"],
.ps-alert-success {
  background: rgba(60, 120, 80, 0.15) !important;
  border: 1px solid rgba(122, 175, 122, 0.5) !important;
  color: #C0DEC0 !important;
}

/* Warning — gold atténué */
.alert-warning,
.alert[data-alert="warning"] {
  background: rgba(212, 181, 112, 0.1) !important;
  border: 1px solid rgba(212, 181, 112, 0.4) !important;
  color: var(--cream, #E8E0D0) !important;
}

/* Info — amethyst */
.alert-info,
.alert[data-alert="info"] {
  background: rgba(107, 74, 140, 0.15) !important;
  border: 1px solid rgba(107, 74, 140, 0.4) !important;
  color: var(--cream, #E8E0D0) !important;
}

/* ============================================================
   BROKEN IMAGE FALLBACK
   ============================================================ */
img.img-broken,
img[src=""],
img:not([src]) {
  background: rgba(107, 74, 140, 0.1);
  border: 1px dashed rgba(212, 181, 112, 0.25);
  min-width: 40px;
  min-height: 40px;
  display: block;
  position: relative;
}

/* Texte alt visible sur image cassée */
img.img-broken::after,
img[src=""]::after {
  content: attr(alt);
  display: block;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.75rem;
  color: rgba(232, 224, 208, 0.4);
  text-align: center;
  padding: 0.5rem;
}

/* ============================================================
   LOADING — spinner sur bouton panier ajax
   ============================================================ */
.add-to-cart.loading,
.btn-primary.loading,
[data-button-action="add-to-cart"].loading {
  pointer-events: none;
  opacity: 0.65;
  position: relative;
  color: transparent !important;
}

.add-to-cart.loading::after,
.btn-primary.loading::after,
[data-button-action="add-to-cart"].loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: var(--night, #0E0B1A);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: bhr-spin 0.7s linear infinite;
}

@keyframes bhr-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================================
   EMPTY STATE — catégorie vide / wishlist vide
   Correction gap + icon sizing
   ============================================================ */
.bhr-empty-state {
  gap: 0; /* spacings via margin sur enfants */
  padding: 5rem 2rem;
}

.bhr-empty-state__icon {
  width: 72px;
  height: 72px;
  opacity: 0.6;
  color: var(--gold, #D4B570);
  margin-bottom: 1.75rem;
}

.bhr-empty-state__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.bhr-empty-state__title {
  margin-bottom: 0.875rem;
}

.bhr-empty-state__message {
  margin-bottom: 2.25rem;
}

/* ============================================================
   SEARCH NO-RESULTS — icone et espacement
   ============================================================ */
#js-product-list-top ~ .bhr-empty-state,
.search .bhr-empty-state,
#search .bhr-empty-state {
  min-height: 40vh;
}

/* Icone recherche barrée PS native (#search_no_result_icon) */
.no-products-found .search-noresult-icon,
.search-noresult .material-icons,
.page-not-found .search-noresult-icon {
  color: var(--gold, #D4B570);
  opacity: 0.5;
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

/* === ERRORS 80 DÉFAUTS === */
/* "404" ne doit pas déborder, fit dans le viewport */
.bhr-404, .bhr-error-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px clamp(16px, 4vw, 60px);
  position: relative;
  overflow: hidden;
}
.bhr-404__number, .bhr-error__code {
  font-family: 'Italiana', serif !important;
  font-size: clamp(80px, 18vw, 220px) !important;
  line-height: 0.85 !important;
  color: var(--gold, #D4B570) !important;
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: block;
  width: auto;
  max-width: 100%;
  text-align: center;
  margin: 0 auto 12px;
  overflow: visible;
}

.bhr-404__title, .bhr-error__title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: clamp(1.4rem, 3.6vw, 2.4rem) !important;
  font-style: italic;
  color: var(--cream, #E8E0D0) !important;
  margin-bottom: 16px;
}
.bhr-404__text, .bhr-error__text {
  color: rgba(232,224,208,0.85);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* CTA group — wrap properly */
.bhr-404__cta, .bhr-error__cta, .bhr-cta-group {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  justify-content: center !important;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
.bhr-404__cta a, .bhr-cta-group a, .bhr-cta-group .btn {
  flex: 0 1 auto;
  min-width: 200px;
  text-align: center;
}
@media (max-width: 480px) {
  .bhr-404__cta a, .bhr-cta-group a { width: 100%; min-width: 0; }
}

/* ============================================================
   INLINE SUCCESS/ERROR — position robuste
   ============================================================ */
.help-block,
.form-error,
.field-error,
.bj-field-msg {
  position: relative;
  z-index: 1;
  clear: both;
}

/* Evite collapse dans flex parent */
.form-group .help-block,
.form-group .field-error {
  flex-basis: 100%;
}

/* ============================================================
   LOADING STATES — .is-loading generalized
   ============================================================ */
/* btn-secondary / outline variants */
.btn-secondary.is-loading::after,
.btn-outline-gold.is-loading::after {
  border-top-color: var(--gold, #D4B570);
}

/* Unified: any .loading or .is-loading on .btn */
.btn.loading,
.btn.is-loading {
  pointer-events: none;
  opacity: 0.65;
  position: relative;
  color: transparent !important;
}

.btn.loading::after,
.btn.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: var(--night, #0E0B1A);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: bhr-spin 0.7s linear infinite;
}

/* Spinner colour for light-text buttons */
.btn-secondary.loading::after,
.btn-secondary.is-loading::after,
.btn-outline-gold.loading::after,
.btn-outline-gold.is-loading::after {
  border-top-color: var(--gold, #D4B570);
}

/* ============================================================
   ITER 13 — POLISH FIN
   ============================================================ */

/* ------------------------------------------------------------
   404 ILLUSTRATIVE SVG — géode / cristal cassé
   ------------------------------------------------------------ */
.bhr-404__geode {
  width: clamp(120px, 22vw, 200px);
  height: clamp(120px, 22vw, 200px);
  margin: 0 auto 1.5rem;
  opacity: 0.9;
  filter: drop-shadow(0 0 24px rgba(212, 181, 112, 0.3));
  animation: bhr-geode-float 4s ease-in-out infinite;
}

@keyframes bhr-geode-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ------------------------------------------------------------
   500 PAGE GRACEFUL — retry countdown
   ------------------------------------------------------------ */
.bhr-500__grace {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.bhr-500__retry-ring {
  width: 56px;
  height: 56px;
  position: relative;
  margin: 0 auto 0.5rem;
}

.bhr-500__retry-ring svg {
  width: 100%;
  height: 100%;
}

.bhr-500__retry-ring circle {
  fill: none;
  stroke: var(--gold, #D4B570);
  stroke-width: 3;
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  stroke-linecap: round;
  transform-origin: center;
  transform: rotate(-90deg);
  animation: bhr-ring-fill 5s linear forwards;
}

@keyframes bhr-ring-fill {
  to { stroke-dashoffset: 0; }
}

.bhr-500__retry-label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 224, 208, 0.5);
}

/* ------------------------------------------------------------
   EMPTY CART — icône hexagonale + CTA catalogue
   ------------------------------------------------------------ */
.bhr-empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 2rem;
  text-align: center;
}

.bhr-empty-cart__hex {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.75rem;
  opacity: 0.75;
  color: var(--gold, #D4B570);
  filter: drop-shadow(0 0 12px rgba(212, 181, 112, 0.2));
}

.bhr-empty-cart__hex svg {
  width: 100%;
  height: 100%;
}

.bhr-empty-cart__title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--cream, #E8E0D0);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.bhr-empty-cart__text {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  color: rgba(232, 224, 208, 0.6);
  line-height: 1.7;
  margin: 0 0 2rem;
  max-width: 340px;
}

.bhr-empty-cart__cta {
  display: inline-block;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 1.75rem;
  border-radius: 2px;
  background: var(--gold, #D4B570);
  color: var(--night, #0E0B1A);
  border: 1.5px solid var(--gold, #D4B570);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.bhr-empty-cart__cta:hover {
  background: #c9a85c;
  border-color: #c9a85c;
  color: var(--night, #0E0B1A);
}

/* ------------------------------------------------------------
   EMPTY WISHLIST — message poétique
   ------------------------------------------------------------ */
.bhr-empty-wishlist {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 2rem;
  text-align: center;
}

.bhr-empty-wishlist__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  opacity: 0.6;
  color: var(--amethyst, #6B4A8C);
}

.bhr-empty-wishlist__icon svg {
  width: 100%;
  height: 100%;
}

.bhr-empty-wishlist__poem {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(232, 224, 208, 0.8);
  line-height: 1.8;
  margin: 0 0 0.5rem;
  max-width: 400px;
  font-weight: 300;
}

.bhr-empty-wishlist__sub {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  color: rgba(232, 224, 208, 0.45);
  margin: 0 0 2rem;
}

.bhr-empty-wishlist__cta {
  display: inline-block;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 1.75rem;
  border-radius: 2px;
  background: transparent;
  color: var(--gold, #D4B570);
  border: 1.5px solid var(--gold, #D4B570);
  transition: background 0.2s ease;
}

.bhr-empty-wishlist__cta:hover {
  background: rgba(212, 181, 112, 0.1);
}

/* ------------------------------------------------------------
   TOAST NOTIFICATIONS — dark + gold
   ------------------------------------------------------------ */
.bhr-toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  pointer-events: none;
  max-width: 360px;
  width: calc(100vw - 3rem);
}

.bhr-toast {
  pointer-events: all;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 3px;
  border-left: 3px solid transparent;
  background: rgba(14, 11, 26, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(232, 224, 208, 0.08);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.875rem;
  color: var(--cream, #E8E0D0);
  line-height: 1.5;
  animation: bhr-toast-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bhr-toast.bhr-toast--out {
  animation: bhr-toast-out 0.22s ease-in both;
}

@keyframes bhr-toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes bhr-toast-out {
  to { opacity: 0; transform: translateX(20px); }
}

.bhr-toast--success { border-left-color: #7AAF7A; }
.bhr-toast--info    { border-left-color: var(--amethyst, #6B4A8C); }
.bhr-toast--warning { border-left-color: var(--gold, #D4B570); }
.bhr-toast--error   { border-left-color: #E07A5F; }

.bhr-toast__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  opacity: 0.9;
}

.bhr-toast--success .bhr-toast__icon { color: #7AAF7A; }
.bhr-toast--info    .bhr-toast__icon { color: var(--amethyst, #6B4A8C); }
.bhr-toast--warning .bhr-toast__icon { color: var(--gold, #D4B570); }
.bhr-toast--error   .bhr-toast__icon { color: #E07A5F; }

.bhr-toast__body {
  flex: 1;
  min-width: 0;
}

.bhr-toast__title {
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.2rem;
  color: var(--cream, #E8E0D0);
}

.bhr-toast__msg {
  font-weight: 300;
  color: rgba(232, 224, 208, 0.75);
}

.bhr-toast__close {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: rgba(232, 224, 208, 0.35);
  line-height: 1;
  font-size: 1rem;
  margin-top: -1px;
  transition: color 0.15s;
}

.bhr-toast__close:hover {
  color: rgba(232, 224, 208, 0.75);
}

/* ------------------------------------------------------------
   SKELETON SCREENS — shimmer linéaire 2.4s
   ------------------------------------------------------------ */
@keyframes bhr-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

.bhr-skeleton {
  background: rgba(232, 224, 208, 0.06);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.bhr-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 181, 112, 0.08) 40%,
    rgba(212, 181, 112, 0.14) 50%,
    rgba(212, 181, 112, 0.08) 60%,
    transparent 100%
  );
  background-size: 600px 100%;
  animation: bhr-shimmer 2.4s ease-in-out infinite;
}

.bhr-skeleton--text {
  height: 1em;
  border-radius: 2px;
  margin-bottom: 0.5em;
}

.bhr-skeleton--title {
  height: 1.6em;
  width: 60%;
  border-radius: 2px;
  margin-bottom: 0.75em;
}

.bhr-skeleton--thumb {
  width: 100%;
  padding-bottom: 100%; /* carré */
  border-radius: 2px;
}

.bhr-skeleton--thumb-landscape {
  width: 100%;
  padding-bottom: 60%;
  border-radius: 2px;
}

.bhr-skeleton--circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bhr-skeleton--btn {
  height: 2.6em;
  width: 140px;
  border-radius: 2px;
}

/* Product card skeleton */
.bhr-skeleton-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ------------------------------------------------------------
   SPINNERS — ring gold rotation 0.8s linear
   ------------------------------------------------------------ */
@keyframes bhr-ring-spin {
  to { transform: rotate(360deg); }
}

.bhr-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 2.5px solid rgba(212, 181, 112, 0.2);
  border-top-color: var(--gold, #D4B570);
  border-radius: 50%;
  animation: bhr-ring-spin 0.8s linear infinite;
  flex-shrink: 0;
}

.bhr-spinner--sm {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

.bhr-spinner--lg {
  width: 48px;
  height: 48px;
  border-width: 3px;
}

.bhr-spinner--overlay {
  position: fixed;
  inset: 0;
  z-index: 8888;
  background: rgba(14, 11, 26, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Page load overlay — auto-hide via JS, but provides CSS fallback */
.bhr-page-loading .bhr-spinner--overlay {
  display: flex;
}

/* ------------------------------------------------------------
   NETWORK OFFLINE INDICATOR
   ------------------------------------------------------------ */
.bhr-offline-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(14, 11, 26, 0.96);
  border-top: 1px solid rgba(224, 122, 95, 0.5);
  color: #E8C8B8;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.bhr-offline-bar.is-visible {
  transform: translateY(0);
  pointer-events: all;
}

.bhr-offline-bar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E07A5F;
  animation: bhr-offline-pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes bhr-offline-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

body.is-online .bhr-offline-bar {
  border-top-color: rgba(122, 175, 122, 0.5);
  color: #C0DEC0;
}

body.is-online .bhr-offline-bar__dot {
  background: #7AAF7A;
  animation: none;
}

/* ------------------------------------------------------------
   FORM ERRORS BANNER — top page
   ------------------------------------------------------------ */
.bhr-form-errors-banner {
  display: none;
  position: sticky;
  top: 0;
  z-index: 800;
  background: rgba(180, 60, 60, 0.18);
  border-bottom: 1px solid rgba(224, 122, 95, 0.55);
  backdrop-filter: blur(8px);
  padding: 0.875rem clamp(1rem, 4vw, 2rem);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.875rem;
  color: #E8C8B8;
  line-height: 1.6;
  animation: bhr-banner-in 0.25s ease both;
}

.bhr-form-errors-banner.is-visible {
  display: block;
}

@keyframes bhr-banner-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bhr-form-errors-banner__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.bhr-form-errors-banner__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: #E07A5F;
}

.bhr-form-errors-banner__title {
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.25rem;
  color: #E8C8B8;
}

.bhr-form-errors-banner__list {
  margin: 0;
  padding: 0 0 0 1em;
  list-style: disc;
  color: rgba(232, 200, 184, 0.8);
}

.bhr-form-errors-banner__list li {
  margin: 0;
}

/* ============================================================
   ITER 26 — POLISH ERRORS 4e PASSE
   ============================================================ */

/* ------------------------------------------------------------
   1. .alert-danger — Modal PS natif renforcé
      Icone ⚠ à gauche, border-left accent, titre gras
   ------------------------------------------------------------ */
.alert-danger,
.alert[data-alert="danger"] {
  background: rgba(180, 60, 60, 0.18) !important;
  border: none !important;
  border-left: 3px solid #E07A5F !important;
  border-radius: 0 2px 2px 0 !important;
  color: #E8C8B8 !important;
  padding: 0.875rem 1.1rem !important;
}

/* Titre fort dans alert-danger */
.alert-danger strong,
.alert-danger .alert-danger__title {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  color: #E07A5F;
}

/* Icone danger pseudo — affichée si pas d'icone SVG injectée */
.alert-danger::before {
  content: '⚠';
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 1em;
  vertical-align: -0.05em;
  opacity: 0.85;
}

/* Désactiver ::before si SVG injecté (classe .has-icon) */
.alert-danger.has-icon::before { display: none; }

/* ------------------------------------------------------------
   2. Banner "Cette page n'existe pas" — .bhr-page-not-found-bar
      Sticky top, fond nuit, message + CTA retour
   ------------------------------------------------------------ */
.bhr-page-not-found-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 850;
  background: rgba(14, 11, 26, 0.97);
  border-bottom: 1px solid rgba(212, 181, 112, 0.35);
  backdrop-filter: blur(10px);
  padding: 0.75rem clamp(1rem, 4vw, 2rem);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.875rem;
  color: var(--cream, #E8E0D0);
  animation: bhr-banner-in 0.25s ease both;
}

.bhr-page-not-found-bar.is-visible { display: block; }

.bhr-page-not-found-bar__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.bhr-page-not-found-bar__msg {
  flex: 1;
  min-width: 0;
  color: rgba(232, 224, 208, 0.85);
  font-weight: 300;
}

.bhr-page-not-found-bar__msg strong {
  font-weight: 500;
  color: var(--cream, #E8E0D0);
}

.bhr-page-not-found-bar__cta {
  flex-shrink: 0;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.45rem 1.1rem;
  border: 1.5px solid var(--gold, #D4B570);
  border-radius: 2px;
  color: var(--gold, #D4B570);
  background: transparent;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.bhr-page-not-found-bar__cta:hover {
  background: rgba(212, 181, 112, 0.12);
}

/* ------------------------------------------------------------
   3. Inline form validation — icones cohérentes
      .has-error → icône ✕ rouge  |  .has-success → icône ✓ vert
      .has-info  → icône ℹ amethyst
   ------------------------------------------------------------ */
.form-group.has-error .form-control,
.form-group.is-invalid .form-control {
  border-color: rgba(224, 122, 95, 0.7) !important;
  background-color: rgba(180, 60, 60, 0.07) !important;
  padding-right: 2.4rem;
}

.form-group.has-success .form-control,
.form-group.is-valid .form-control {
  border-color: rgba(122, 175, 122, 0.6) !important;
  background-color: rgba(60, 120, 80, 0.07) !important;
  padding-right: 2.4rem;
}

.form-group.has-info .form-control {
  border-color: rgba(107, 74, 140, 0.5) !important;
  padding-right: 2.4rem;
}

/* Pseudo-icone positionnée dans le champ */
.form-group.has-error,
.form-group.has-success,
.form-group.has-info {
  position: relative;
}

.form-group.has-error::after,
.form-group.has-success::after,
.form-group.has-info::after {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
}

.form-group.has-error::after   { content: '✕'; color: #E07A5F; }
.form-group.has-success::after { content: '✓'; color: #7AAF7A; }
.form-group.has-info::after    { content: 'ℹ'; color: var(--amethyst, #6B4A8C); }

/* Message inline — cohérence couleur avec icone */
.form-group.has-error .help-block,
.form-group.has-error .field-error,
.form-group.has-error .bj-field-msg {
  color: #E07A5F;
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

.form-group.has-success .help-block,
.form-group.has-success .bj-field-msg {
  color: #7AAF7A;
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

.form-group.has-info .help-block,
.form-group.has-info .bj-field-msg {
  color: rgba(107, 74, 140, 0.9);
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

/* Hint "info" distinct de l'erreur */
.form-group .bj-field-hint {
  display: block;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(232, 224, 208, 0.45);
  margin-top: 0.25rem;
  line-height: 1.5;
}

/* ------------------------------------------------------------
   4. Server error banner — .bhr-server-error-bar
      Sticky, fond rouge sombre, bouton reload
   ------------------------------------------------------------ */
.bhr-server-error-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 860;
  background: rgba(140, 30, 30, 0.22);
  border-bottom: 1px solid rgba(224, 122, 95, 0.5);
  backdrop-filter: blur(10px);
  padding: 0.7rem clamp(1rem, 4vw, 2rem);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.875rem;
  color: #E8C8B8;
  animation: bhr-banner-in 0.25s ease both;
}

.bhr-server-error-bar.is-visible { display: block; }

.bhr-server-error-bar__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.bhr-server-error-bar__msg {
  flex: 1;
  min-width: 0;
  font-weight: 300;
}

.bhr-server-error-bar__reload {
  flex-shrink: 0;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border: 1.5px solid rgba(224, 122, 95, 0.7);
  border-radius: 2px;
  color: #E07A5F;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.bhr-server-error-bar__reload:hover {
  background: rgba(224, 122, 95, 0.1);
}

/* ------------------------------------------------------------
   5. Image cassée — icone cohérente (SVG background)
      Remplace pseudo ::after qui ne fonctionne pas sur <img>
   ------------------------------------------------------------ */
.img-broken-wrap {
  display: inline-block;
  position: relative;
  background: rgba(107, 74, 140, 0.08);
  border: 1px dashed rgba(212, 181, 112, 0.2);
  border-radius: 2px;
  min-width: 48px;
  min-height: 48px;
}

.img-broken-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(212,181,112,0.35)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px 28px;
  pointer-events: none;
}

/* Icone alt-text en caption sous le wrap */
.img-broken-wrap figcaption,
.img-broken-caption {
  display: block;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.72rem;
  color: rgba(232, 224, 208, 0.35);
  text-align: center;
  padding: 0.3rem 0.5rem 0;
}

/* ------------------------------------------------------------
   6. Cohérence loading — dots / ring / progress
      Un seul style dots (.bhr-dots), ring (.bhr-spinner déjà défini)
      Progress bar (.bhr-progress)
   ------------------------------------------------------------ */

/* Loading dots — 3 points rebond séquentiel */
.bhr-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bhr-dots__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold, #D4B570);
  opacity: 0.3;
  animation: bhr-dot-bounce 1.2s ease-in-out infinite;
}

.bhr-dots__dot:nth-child(1) { animation-delay: 0s; }
.bhr-dots__dot:nth-child(2) { animation-delay: 0.2s; }
.bhr-dots__dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bhr-dot-bounce {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); }
  40%           { opacity: 1;   transform: scale(1.15); }
}

/* Progress bar thin — .bhr-progress */
.bhr-progress {
  width: 100%;
  height: 2px;
  background: rgba(232, 224, 208, 0.1);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}

.bhr-progress__bar {
  height: 100%;
  background: var(--gold, #D4B570);
  border-radius: 1px;
  transition: width 0.3s ease;
  min-width: 0;
}

/* Indeterminate progress */
.bhr-progress--indeterminate .bhr-progress__bar {
  width: 40% !important;
  animation: bhr-progress-slide 1.6s ease-in-out infinite;
}

@keyframes bhr-progress-slide {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

/* Règle de cohérence : bouton primaire → ring ; page overlay → ring lg ;
   inline texte → dots ; upload/step → progress */

/* ------------------------------------------------------------
   7. Skeleton variants — block / text / image / button
      Déjà partiellement définis, on ajoute --image et --block
   ------------------------------------------------------------ */
.bhr-skeleton--image {
  width: 100%;
  padding-bottom: 75%;  /* ratio 4:3 par défaut */
  border-radius: 2px;
}

.bhr-skeleton--block {
  width: 100%;
  height: 120px;
  border-radius: 2px;
}

/* Skeleton ligne courte (60%) / longue (90%) */
.bhr-skeleton--text-sm  { width: 45%; }
.bhr-skeleton--text-md  { width: 70%; }
.bhr-skeleton--text-lg  { width: 90%; }

/* Skeleton card produit complet */
.bhr-skeleton-product {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ------------------------------------------------------------
   8. Empty list / pagination empty state — .bhr-list-empty
   ------------------------------------------------------------ */
.bhr-list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3.5rem 2rem;
  text-align: center;
  border: 1px dashed rgba(212, 181, 112, 0.15);
  border-radius: 2px;
}

.bhr-list-empty__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  opacity: 0.4;
  color: var(--gold, #D4B570);
}

.bhr-list-empty__icon svg {
  width: 100%;
  height: 100%;
}

.bhr-list-empty__title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cream, #E8E0D0);
  margin: 0 0 0.4rem;
}

.bhr-list-empty__msg {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  color: rgba(232, 224, 208, 0.5);
  margin: 0;
  line-height: 1.6;
}

/* Pagination empty state — remplace les flèches nav quand 0 résultats */
.bhr-pagination-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(232, 224, 208, 0.35);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------
   9. Form hint vs error — clarté sémantique
      .bj-field-hint  → gris clair, pas d'icone
      .bj-field-error → rouge, préfixé ✕
      .bj-field-info  → amethyst, préfixé ℹ
   ------------------------------------------------------------ */
.bj-field-hint {
  display: block;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(232, 224, 208, 0.4);
  margin-top: 0.25rem;
  line-height: 1.5;
}

.bj-field-error {
  display: block;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: #E07A5F;
  margin-top: 0.3rem;
  line-height: 1.5;
}

.bj-field-error::before {
  content: '✕ ';
  font-size: 0.7em;
  vertical-align: 0.1em;
}

.bj-field-info {
  display: block;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(107, 74, 140, 0.85);
  margin-top: 0.25rem;
  line-height: 1.5;
}

.bj-field-info::before {
  content: 'ℹ ';
  font-size: 0.85em;
  vertical-align: -0.05em;
}

/* END ITER 26 */

/* ============================================================
   ITER 45 — POLISH ERRORS 5e PASSE
   Maintenance · Rate limit · Offline · Validation summary ·
   Field grouping · Success modal · Toast adaptive · Top bar
   ============================================================ */

/* ------ Maintenance page graceful design ------ */
.bj-maintenance {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 2rem 1.5rem;
}

.bj-maintenance__icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  opacity: 0.6;
  animation: bj-maintenance-pulse 2.5s ease-in-out infinite;
}

@keyframes bj-maintenance-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 0.9; transform: scale(1.06); }
}

.bj-maintenance__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 500;
  color: rgba(232, 224, 208, 0.9);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.bj-maintenance__body {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.92rem;
  font-weight: 300;
  color: rgba(232, 224, 208, 0.55);
  max-width: 38ch;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.bj-maintenance__eta {
  display: inline-block;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(171, 148, 122, 0.7);
  border: 1px solid rgba(171, 148, 122, 0.25);
  border-radius: 20px;
  padding: 0.3rem 1rem;
}

/* ------ Rate limit message friendly ------ */
.bj-ratelimit {
  background: rgba(224, 122, 95, 0.07);
  border: 1px solid rgba(224, 122, 95, 0.28);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.bj-ratelimit__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.bj-ratelimit__content {}

.bj-ratelimit__title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: #E07A5F;
  margin-bottom: 0.25rem;
}

.bj-ratelimit__msg {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(232, 224, 208, 0.6);
  line-height: 1.6;
}

.bj-ratelimit__countdown {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(224, 122, 95, 0.75);
  margin-top: 0.4rem;
  letter-spacing: 0.03em;
}

/* ------ Network offline indicator ------ */
.bj-offline-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9900;
  background: rgba(20, 16, 12, 0.94);
  border-top: 1px solid rgba(224, 122, 95, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bj-offline-banner.is-visible {
  transform: translateY(0);
}

.bj-offline-banner__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E07A5F;
  animation: bj-offline-blink 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes bj-offline-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

.bj-offline-banner__text {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(232, 224, 208, 0.75);
  letter-spacing: 0.02em;
}

/* ------ Form validation summary top ------ */
.bj-validation-summary {
  background: rgba(224, 122, 95, 0.06);
  border: 1px solid rgba(224, 122, 95, 0.3);
  border-left: 3px solid #E07A5F;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  animation: bj-summary-in 0.3s ease;
}

@keyframes bj-summary-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bj-validation-summary__title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #E07A5F;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bj-validation-summary__title::before {
  content: '⚠';
  font-size: 0.9em;
}

.bj-validation-summary__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bj-validation-summary__list li {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(232, 224, 208, 0.65);
  line-height: 1.5;
}

.bj-validation-summary__list li a {
  color: rgba(224, 122, 95, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.bj-validation-summary__list li a:hover {
  color: #E07A5F;
}

/* ------ Field error grouping ------ */
.bj-field-group {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.75rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  margin-bottom: 0.5rem;
}

.bj-field-group.has-error {
  border-color: rgba(224, 122, 95, 0.3);
  background: rgba(224, 122, 95, 0.04);
}

.bj-field-group.has-error .bj-field-group__label {
  color: rgba(224, 122, 95, 0.85);
}

.bj-field-group__label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(232, 224, 208, 0.5);
  margin-bottom: 0.35rem;
  display: block;
  transition: color 0.2s ease;
}

.bj-field-group__errors {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.4rem;
}

/* ------ Success confirmation modal ------ */
.bj-success-modal {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(14, 11, 8, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.bj-success-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.bj-success-modal__card {
  background: rgba(28, 22, 16, 0.97);
  border: 1px solid rgba(171, 148, 122, 0.2);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.bj-success-modal.is-open .bj-success-modal__card {
  transform: scale(1);
}

.bj-success-modal__icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  display: block;
}

.bj-success-modal__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: rgba(232, 224, 208, 0.92);
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
}

.bj-success-modal__body {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(232, 224, 208, 0.55);
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.bj-success-modal__btn {
  display: inline-block;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(232, 224, 208, 0.85);
  background: rgba(171, 148, 122, 0.12);
  border: 1px solid rgba(171, 148, 122, 0.3);
  border-radius: 22px;
  padding: 0.55rem 1.6rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.bj-success-modal__btn:hover {
  background: rgba(171, 148, 122, 0.2);
  border-color: rgba(171, 148, 122, 0.5);
}

/* ------ Toast position adaptive ------ */
.bj-toast-stack {
  position: fixed;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  /* default: bottom-right */
  bottom: 1.5rem;
  right: 1.5rem;
  align-items: flex-end;
}

/* Adaptive positions */
.bj-toast-stack--top-right    { top: 1.5rem; right: 1.5rem; bottom: auto; align-items: flex-end; }
.bj-toast-stack--top-left     { top: 1.5rem; left: 1.5rem; right: auto; bottom: auto; align-items: flex-start; }
.bj-toast-stack--bottom-left  { bottom: 1.5rem; left: 1.5rem; right: auto; align-items: flex-start; }
.bj-toast-stack--bottom-center {
  bottom: 1.5rem;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  align-items: center;
}

@media (max-width: 480px) {
  /* On mobile: always bottom-center full width */
  .bj-toast-stack,
  .bj-toast-stack--top-right,
  .bj-toast-stack--top-left,
  .bj-toast-stack--bottom-left,
  .bj-toast-stack--bottom-center {
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    transform: none;
    align-items: stretch;
    padding: 0 0.75rem 0.75rem;
  }
}

/* ------ Loading bar top progress ------ */
.bj-top-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10200;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.bj-top-progress__track {
  height: 100%;
  background: rgba(171, 148, 122, 0.15);
}

.bj-top-progress__bar {
  height: 100%;
  background: linear-gradient(90deg,
    rgba(171, 148, 122, 0.4),
    rgba(232, 224, 208, 0.85),
    rgba(171, 148, 122, 0.6)
  );
  background-size: 200% 100%;
  width: 0%;
  transition: width 0.25s ease;
  border-radius: 0 1px 1px 0;
  box-shadow: 0 0 8px rgba(232, 224, 208, 0.3);
}

.bj-top-progress.is-indeterminate .bj-top-progress__bar {
  width: 60%;
  animation: bj-progress-slide 1.6s ease-in-out infinite;
}

@keyframes bj-progress-slide {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

.bj-top-progress.is-complete .bj-top-progress__bar {
  width: 100%;
  transition: width 0.15s ease, opacity 0.4s ease 0.2s;
  opacity: 0;
}

/* END ITER 45 */

