/* === Le Shop17 — Cabine virtuelle === */
:root {
  --bg: #faf7f3;
  --ink: #1a1a1a;
  --ink-soft: #5a5a5a;
  --accent: #c9a87c;       /* doré Côte d'Azur */
  --accent-dark: #a88758;
  --line: #ece4d8;
  --card: #ffffff;
  --shadow: 0 6px 24px rgba(0,0,0,.06);
  --radius: 12px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --fitzu-accent: #FF4A2E;
  --fitzu-accent-text: #C73520; /* texte AA sur --bg */
  --fitzu-accent-soft: #FFF0ED;
  --pill-padding-y: 8px;
  --pill-padding-x: 16px;
  --pill-font-size: 14px;
  --pill-font-weight: 500;
  --pill-radius: 999px;
  --pill-border: 1px solid transparent;
  --fitzu-text-scale: 1;
}

* { box-sizing: border-box; }
html {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  overflow-anchor: none;
  /* Évite le scroll horizontal dû au breakout 100vw des grilles produits */
  overflow-x: clip;
}
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* fa-clothes-hanger : icône Pro absente du FA Free 6.5.2 (polyfill SVG) */
.fa-solid.fa-clothes-hanger::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 4a3.5 3.5 0 0 0-3.5 3.5h2A1.5 1.5 0 0 1 12 6a1.5 1.5 0 0 1 1.5 1.5A1.5 1.5 0 0 1 12 9c-.55 0-1 .45-1 1v1.75L2.4 18.2A1 1 0 0 0 3 20h18a1 1 0 0 0 .6-1.8L13 11.75v-.9a3.5 3.5 0 0 0 2.5-3.35A3.5 3.5 0 0 0 12 4m0 9.5l6 4.5H6Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 4a3.5 3.5 0 0 0-3.5 3.5h2A1.5 1.5 0 0 1 12 6a1.5 1.5 0 0 1 1.5 1.5A1.5 1.5 0 0 1 12 9c-.55 0-1 .45-1 1v1.75L2.4 18.2A1 1 0 0 0 3 20h18a1 1 0 0 0 .6-1.8L13 11.75v-.9a3.5 3.5 0 0 0 2.5-3.35A3.5 3.5 0 0 0 12 4m0 9.5l6 4.5H6Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Icône Ma garde-robe (cintre) : 18px — liens dédiés, pas Mon profil */
#topnav-gallery-link .fa-clothes-hanger,
#drawer-gallery-link .fa-clothes-hanger,
#gen-in-progress-gallery .fa-clothes-hanger {
  font-size: 18px;
}

a { color: var(--ink); text-decoration: none; }
img { max-width: 100%; display: block; }

.site-head {
  position: sticky;
  top: 0;
  /* Au-dessus de la barre de filtres sticky (mobile). */
  z-index: 30;
  background: white;
}
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 32px;
  background: white; border-bottom: 1px solid var(--line);
  gap: 16px;
  max-height: 160px;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease, border-width 0.3s ease;
}
body.scroll-down .topbar {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  border-bottom-width: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .topbar { transition: none; }
}
.topbar-spacer { /* col 1 — vide pour équilibrer le centre */ }
.topbar-end {
  justify-self: end;
  display: flex; align-items: center; gap: 18px;
}
/* Avis Google : sous le sous-titre brand (stack centré), pas dans topbar-end
   pour ne pas déséquilibrer la grille 1fr auto 1fr ni décaler le logo. */
.header-google-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 100%;
  margin-top: 4px;
  padding: 2px 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.brand--has-logo .header-google-rating {
  margin-top: 6px;
}
.header-google-rating.hidden {
  display: none !important;
}
.header-google-rating:hover,
.header-google-rating:focus-visible {
  color: var(--ink);
  text-decoration: none;
}
.header-google-rating:focus-visible {
  outline: 2px solid var(--fitzu-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.header-google-rating__logo {
  display: block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}
.header-google-rating__star {
  color: #e6a800;
  font-size: 12px;
  line-height: 1;
}
.header-google-rating__score {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.header-google-rating__sep {
  color: var(--ink-soft);
  font-weight: 500;
}
.header-google-rating__count {
  color: var(--fitzu-accent);
  font-weight: 500;
  font-size: 11px;
}
@media (min-width: 769px) {
  .header-google-rating {
    margin-top: 6px;
    font-size: 13px;
    gap: 5px;
  }
  .header-google-rating__logo {
    width: 16px;
    height: 16px;
  }
  .header-google-rating__star {
    font-size: 14px;
  }
  .header-google-rating__count {
    font-size: 12px;
  }
}
@media (max-width: 768px) {
  .header-google-rating {
    font-size: 11px;
    gap: 3px;
    margin-top: 3px;
  }
  .header-google-rating__logo {
    width: 13px;
    height: 13px;
  }
  .header-google-rating__star {
    font-size: 11px;
  }
  .header-google-rating__count {
    font-size: 10px;
  }
}
.brand {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
}
.brand-logo-link {
  display: block;
  text-decoration: none;
  line-height: 0;
}
.brand-logo-link.hidden {
  display: none;
}
.drawer-logo-link {
  margin-bottom: 0;
}
.brand--has-logo .brand-logo-link {
  margin-bottom: 0;
}
.brand-tagline {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.2;
}
.brand-tagline--sub {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  text-transform: none;
}
.logo-img {
  height: 56px; width: auto; display: block;
  background: transparent;
}
.brand--has-logo .logo-img {
  height: 44px;
  margin-bottom: 0;
}
.brand-fitzu-platform {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  white-space: nowrap;
  gap: 0.35em;
  line-height: 1.2;
}
.brand--has-logo .brand-fitzu-platform {
  margin-top: 10px;
}
.brand-fitzu-platform--drawer {
  justify-content: flex-start;
}
.brand-fitzu-platform--drawer.drawer-brand--has-logo {
  margin-top: 10px;
}
.brand--fitzu-primary .brand-fitzu-platform,
.brand-fitzu-platform--fitzu-primary {
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 0;
}
.brand--fitzu-primary .brand-fitzu-platform .fitzu-mark,
.brand-fitzu-platform--fitzu-primary > .fitzu-mark {
  order: 1;
  font-size: 14px;
}
.brand--fitzu-primary .brand-platform-byline,
.brand-fitzu-platform--fitzu-primary .brand-platform-byline,
.brand-fitzu-platform--fitzu-primary .drawer-platform-byline {
  order: 2;
  display: inline-block;
  text-transform: none;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 500;
  background: linear-gradient(
    90deg,
    var(--ink-soft) 0%,
    var(--ink-soft) 38%,
    #b8b8b8 50%,
    var(--ink-soft) 62%,
    var(--ink-soft) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: cabine-tagline-shimmer 5s linear infinite;
}
@keyframes cabine-tagline-shimmer {
  0% {
    background-position: 120% 0;
    animation-timing-function: ease-in-out;
  }
  20% {
    background-position: -120% 0;
  }
  20.01%, 100% {
    background-position: 120% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand--fitzu-primary .brand-platform-byline,
  .brand-fitzu-platform--fitzu-primary .brand-platform-byline,
  .brand-fitzu-platform--fitzu-primary .drawer-platform-byline {
    animation: none;
    background: none;
    -webkit-text-fill-color: var(--ink-soft);
    color: var(--ink-soft);
  }
}
.brand--fitzu-primary .brand-fitzu-mark .fitzu-pill,
.brand-fitzu-platform--fitzu-primary > .fitzu-mark .fitzu-pill {
  font-size: 14px;
  padding: 2px 8px;
}
.brand-fitzu-platform--fitzu-primary.brand-fitzu-platform--drawer {
  align-items: flex-start;
}
.drawer-fitzu-by {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ink);
  line-height: 1.2;
}
.brand-platform-byline {
  font-size: 11px;
  letter-spacing: 0.2em;
  line-height: 1.2;
}
.brand-fitzu-mark {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.2;
  color: var(--ink);
}
.tag { display: none; } /* on garde la classe au cas où, masquée par défaut */

/* === Topnav desktop (Marques, Catégories, garde-robe, compte) — pas le drawer mobile === */
.topnav { display: flex; gap: 20px; align-items: center; }
.topnav a {
  color: var(--ink); font-size: 14px; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
}
.topnav a.active {
  color: var(--fitzu-accent);
  border-color: var(--fitzu-accent);
}
.topnav a.active i { color: var(--fitzu-accent); }
.topnav a i { font-size: 13px; color: var(--accent-dark); transition: color .15s ease; display: inline-block; width: 1em; text-align: center; }
.topnav a.topnav-icon-btn i { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .topnav a:not(.topnav-icon-btn):hover {
    color: var(--fitzu-accent);
    border-color: var(--fitzu-accent);
    background: transparent;
  }
  .topnav a:not(.topnav-icon-btn):hover i { color: var(--fitzu-accent); }
}
.topnav-sep {
  width: 1px; height: 18px; background: var(--line);
  margin: 0 4px; flex-shrink: 0;
}
/* 769px–1100px : liens compte / garde-robe en icônes cercle (évite la coupure du libellé) */
@media (min-width: 769px) and (max-width: 1100px) {
  .topbar {
    padding-left: 20px;
    padding-right: 20px;
    gap: 12px;
  }
  .topbar-end { gap: 10px; min-width: 0; }
  .topnav { gap: 8px; }
  .topnav a:not(.topnav-icon-btn) {
    font-size: 13px;
    padding: 4px 0;
    letter-spacing: -0.01em;
  }
  .topnav-sep {
    margin: 0 4px 0 10px;
    height: 16px;
  }
  .topnav a.topnav-icon-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    justify-content: center;
    gap: 0;
    flex-shrink: 0;
  }
  .topnav a.topnav-icon-btn .topnav-link-label {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
  }
  .topnav a.topnav-icon-btn i { font-size: 14px; }
  .topnav a.topnav-icon-btn.active {
    border-color: var(--fitzu-accent);
    color: var(--fitzu-accent);
  }
  .topnav a.topnav-icon-btn.active i { color: var(--fitzu-accent); }
}

/* === Quick-nav : pills catégories (Tout, Robes…) sous le header — pas le drawer mobile === */
.quick-nav {
  background: white;
  border-bottom: 1px solid var(--line);
}
.quick-nav-bar {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  /* Hauteur pills réservée avant /api/categories (anti-CLS mobile) */
  min-height: 46px;
}
.quick-nav-track-wrap {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.quick-nav-track {
  display: flex; gap: 8px;
  padding: 12px 8px 12px 24px;
  min-height: 46px;
  box-sizing: border-box;
  overflow-x: auto;
  scrollbar-width: none;             /* Firefox */
  -webkit-overflow-scrolling: touch; /* iOS smooth */
  scroll-snap-type: x proximity;
  scroll-padding-left: 24px;
  scroll-padding-right: 8px;
}
@media (hover: hover) and (pointer: fine) {
  .quick-nav-track { cursor: grab; }
  .quick-nav-track.is-dragging {
    cursor: grabbing;
    user-select: none;
    scroll-snap-type: none;
  }
  .quick-nav-track.is-dragging .quick-pill {
    cursor: grabbing;
    pointer-events: none;
  }
}
.quick-nav-search-btn {
  flex: 0 0 auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  padding: 0;
  border: none;
  border-left: 1px solid var(--line);
  background: white;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 16px;
  position: relative;
  z-index: 2;
  box-shadow: -8px 0 12px -8px rgba(30, 24, 16, 0.1);
  transition: background .2s ease, color .2s ease;
}
.quick-nav-search-btn i {
  display: inline-block;
  transition: transform .32s cubic-bezier(.4,0,.2,1), color .2s ease;
}
.quick-nav-search-btn:hover,
.quick-nav-search-btn.is-active {
  background: #f7f3eb;
  color: var(--ink);
}
.quick-nav-search-btn.is-active i {
  transform: scale(1.08) rotate(-10deg);
}
.quick-nav-search-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.quick-nav-search-panel.is-open {
  grid-template-rows: 1fr;
  pointer-events: auto;
}
.quick-nav-search-wrap {
  overflow: hidden;
  min-height: 0;
}
.quick-nav-search-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 12px;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity .24s cubic-bezier(.4,0,.2,1),
    transform .32s cubic-bezier(.4,0,.2,1);
}
.quick-nav-search-panel.is-open .quick-nav-search-inner {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .05s;
}
.quick-nav-search-panel:not(.is-open) .quick-nav-search-inner {
  transition-delay: 0s;
  transition-duration: .18s;
}
.quick-nav-search-input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-family: inherit;
  background: #f7f3eb;
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.quick-nav-search-input::placeholder { color: #9a9084; }
.quick-nav-search-panel.is-open .quick-nav-search-input,
.quick-nav-search-input:focus {
  outline: none;
  border-color: var(--fitzu-accent);
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 74, 46, .18);
}
.quick-nav-search-results {
  margin-top: 8px;
  max-height: min(50vh, 320px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity .26s cubic-bezier(.4,0,.2,1),
    transform .26s cubic-bezier(.4,0,.2,1),
    margin-top .26s cubic-bezier(.4,0,.2,1);
}
.quick-nav-search-results.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.quick-nav-search-results:empty {
  margin-top: 0;
  opacity: 0;
  transform: none;
}
@keyframes quickSearchHitIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.quick-nav-search-results.is-visible .quick-search-hit {
  animation: quickSearchHitIn .28s cubic-bezier(.4,0,.2,1) both;
}
.quick-nav-search-results.is-visible .quick-search-hit:nth-child(1) { animation-delay: 0ms; }
.quick-nav-search-results.is-visible .quick-search-hit:nth-child(2) { animation-delay: 24ms; }
.quick-nav-search-results.is-visible .quick-search-hit:nth-child(3) { animation-delay: 48ms; }
.quick-nav-search-results.is-visible .quick-search-hit:nth-child(4) { animation-delay: 72ms; }
.quick-nav-search-results.is-visible .quick-search-hit:nth-child(5) { animation-delay: 96ms; }
.quick-search-hit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .12s ease;
}
.quick-search-hit:hover,
.quick-search-hit:focus-visible {
  background: #f7f3eb;
  outline: none;
}
.quick-search-hit-thumb {
  flex: 0 0 auto;
  width: 44px;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
  background: #f0eae0;
}
.quick-search-hit-thumb--empty { display: block; }
.quick-search-hit-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.quick-search-hit-brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.quick-search-hit-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quick-search-hit-meta {
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quick-search-empty {
  margin: 4px 10px 0;
  font-size: 13px;
}
.quick-search-see-all {
  display: block;
  margin-top: 6px;
  padding: 12px 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 14px;
  font-weight: 600;
  color: var(--fitzu-accent, #ff4a2e);
  text-align: center;
  text-decoration: none;
}
.quick-search-see-all:hover,
.quick-search-see-all:focus-visible {
  color: var(--fitzu-accent-text, #c73520);
  text-decoration: underline;
}
@media (prefers-reduced-motion: reduce) {
  .quick-nav-search-panel,
  .quick-nav-search-inner,
  .quick-nav-search-results,
  .quick-nav-search-btn i { transition: none; }
  .quick-nav-search-results.is-visible .quick-search-hit { animation: none; }
}
/* Espaceur gauche : le padding du conteneur scroll est ignoré sur iOS au scrollLeft=0 */
.quick-nav-track::before {
  content: '';
  flex: 0 0 1px;
  scroll-snap-align: start;
}
.quick-nav-track::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.quick-pill,
.products-filter-toggle {
  display: inline-block;
  padding: var(--pill-padding-y) var(--pill-padding-x);
  border-radius: var(--pill-radius);
  font-size: var(--pill-font-size);
  font-weight: var(--pill-font-weight);
  line-height: 1.2;
  border: var(--pill-border);
}
.quick-pill {
  flex: 0 0 auto;
  background: #f7f3eb;
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
  -webkit-user-drag: none;
  user-select: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  scroll-snap-align: start;
}
.quick-pill.active {
  background: var(--ink);
  color: white;
}
@media (hover: hover) and (pointer: fine) {
  .quick-pill:hover:not(.active):not(.products-filter-toggle) {
    background: transparent;
    border-color: var(--fitzu-accent);
    color: var(--fitzu-accent);
  }
  .quick-pill.active:hover {
    background: var(--ink);
    border-color: transparent;
    color: white;
  }
}

/* === Bandeau in-app browser === */
.inapp-banner {
  background: #fdf6e9; border-bottom: 1px solid var(--accent);
  padding: 10px 16px; font-size: 13px;
  max-height: 80px;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease, border-width 0.3s ease;
}
body.scroll-down .inapp-banner:not(.hidden) {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  border-bottom-width: 0;
  pointer-events: none;
}
.inapp-banner-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  color: #6a5520;
}
#inapp-banner-close {
  background: none; border: none; font-size: 22px; cursor: pointer;
  color: #6a5520; line-height: 1;
}

/* === Auth modal === */
.auth-card { max-width: 420px; }
.auth-card h3 {
  font-family: var(--font-sans);
  font-size: 24px; margin: 0 0 8px;
}
.auth-card .muted { margin-bottom: 20px; }
.auth-card label {
  display: block; margin: 14px 0 6px;
  font-size: 13px; font-weight: 500;
}
.auth-card input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 15px; font-family: inherit;
}
.auth-card input:focus { outline: none; border-color: var(--accent); }
.auth-card .btn-large {
  margin-top: 20px; width: 100%;
  padding: 14px; font-size: 13px;
  text-transform: uppercase; letter-spacing: 1.2px;
}
.auth-card .btn-large i { margin-right: 8px; }
.auth-switch {
  text-align: center; margin: 16px 0 0;
  font-size: 13px; color: var(--ink-soft);
}
.auth-switch a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.otp-input {
  text-align: center;
  font-size: 28px !important;
  font-weight: 600;
  letter-spacing: 0.35em;
  font-variant-numeric: tabular-nums;
  padding: 16px 14px !important;
}
.otp-error {
  margin: 10px 0 0;
  font-size: 13px;
  color: #b42318;
  text-align: center;
}

/* === Galerie === */
.gallery-section { max-width: 1200px; margin: 0 auto; }
.gallery-header {
  text-align: center; margin-bottom: 32px;
}
.gallery-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 8px;
}
.gallery-page-title {
  font-family: var(--font-sans);
  font-size: 32px;
  margin: 0 0 8px;
  color: var(--fitzu-accent);
}
.gallery-header h2 {
  font-family: var(--font-sans);
  font-size: 32px; margin: 0 0 8px;
}
.gallery-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.gallery-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .15s ease;
}
.gallery-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

/* === Image générée (héros de la card) === */
.gallery-main {
  position: relative;
  aspect-ratio: 3/4;
  background: #f0eae0;
}
.gallery-main-skeleton {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(110deg, #f0eae0 8%, #faf6f0 18%, #f0eae0 33%);
  background-size: 200% 100%;
  animation: gallery-shimmer 1.4s ease-in-out infinite;
}
@keyframes gallery-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.gallery-main.is-loaded .gallery-main-skeleton { display: none; }
.gallery-main-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  position: relative;
  z-index: 0;
}
.gallery-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--ink-soft); font-size: 12px;
}
.gallery-placeholder.failed { color: #8a2929; }
.gallery-placeholder i { font-size: 28px; }
.spinner-small {
  width: 32px; height: 32px;
  border: 3px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 1s linear infinite;
}

/* Date en surimpression coin haut-gauche, fine et discrète */
.gallery-date {
  position: absolute; top: 10px; left: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--ink);
}

/* Mini-vignette "Avant" — photo originale en surimpression bas-gauche */
.gallery-before {
  position: absolute;
  bottom: 10px; left: 10px;
  width: 64px; height: 84px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid white;
  box-shadow: 0 3px 10px rgba(0,0,0,.25);
  cursor: pointer;
  padding: 0;
  background: #f0eae0;
  transition: transform .15s ease, box-shadow .15s ease;
}
.gallery-before:hover { transform: scale(1.06); box-shadow: 0 4px 14px rgba(0,0,0,.32); }
.gallery-before img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-before-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  font-size: 9px;
  font-weight: 600;
  text-align: center;
  padding: 3px 0;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* Boutons d'action ronds en overlay haut-droit */
.gallery-quick-actions {
  position: absolute; top: 10px; right: 10px;
  display: flex; gap: 6px;
}
.gallery-icon-btn {
  width: 34px; height: 34px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.gallery-icon-btn:hover { background: white; color: var(--accent-dark); }
.gallery-hide-icon {
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
}
.gallery-hide-card { max-width: 400px; }

/* QR code bas-droite (symétrique du « Avant ») */
.gallery-qr {
  position: absolute;
  bottom: 10px; right: 10px;
  width: 72px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid white;
  box-shadow: 0 3px 10px rgba(0,0,0,.25);
  padding: 4px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.gallery-qr:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(0,0,0,.32);
}
.gallery-qr img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.gallery-qr-label {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 3px;
  line-height: 1.2;
}

/* === Page publique /look/:token === */
.look-share-section {
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 48px;
}
.look-share-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 0;
  color: var(--ink-soft);
  font-size: 14px;
}
.look-share-content.hidden,
.look-share-error.hidden { display: none; }
.look-share-content {
  opacity: 0;
  transition: opacity 0.45s ease;
}
.look-share-content.is-visible { opacity: 1; }
.look-share-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.look-share-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f0eae0;
  box-shadow: var(--shadow);
}
.look-share-hero.is-loading {
  min-height: min(72vh, 640px);
}
.look-share-img-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, #f0eae0 8%, #faf7f2 18%, #f0eae0 33%);
  background-size: 200% 100%;
  animation: look-share-shimmer 1.4s ease-in-out infinite;
  transition: opacity 0.35s ease;
}
.look-share-img-skeleton.is-hidden {
  opacity: 0;
  pointer-events: none;
}
@keyframes look-share-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.look-share-img {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.55s ease;
}
.look-share-img.is-visible { opacity: 1; }
.look-share-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.look-share-product-block {
  background: #fdfbf7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.look-share-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px 16px 16px;
  text-align: center;
}
/* Spécificité > .gallery-product-thumb (même élément, règles plus bas dans le fichier) */
.gallery-product-thumb.look-share-product-thumb {
  width: min(72%, 220px);
  height: auto;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  background: transparent;
  border: 0;
}
.gallery-product-thumb.look-share-product-thumb img {
  object-fit: contain;
  background: transparent;
}
.look-share-product-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  text-align: center;
}
.gallery-product-brand.look-share-brand {
  letter-spacing: 1.4px;
  color: var(--fitzu-accent);
  text-decoration: none;
  text-underline-offset: 3px;
  display: inline-block;
}
.gallery-product-brand.look-share-brand:hover,
.gallery-product-brand.look-share-brand:focus-visible {
  color: var(--fitzu-accent-text);
  text-decoration: underline;
}
.gallery-product-name.look-share-name {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
  -webkit-line-clamp: 3;
  text-align: center;
  margin: 0;
}
.look-share-price {
  font-size: 16px;
  margin-top: 2px;
}
.look-share-try-wrap {
  margin: 0;
  padding: 0 16px 12px;
  text-align: center;
}
.look-share-try-wrap.hidden { display: none; }
.look-share-try-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 300px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.look-share-try-btn:hover { text-decoration: none; }
.look-share-order-wrap {
  margin: 0;
  padding: 0 16px 16px;
  text-align: center;
}
.look-share-order-wrap.hidden { display: none; }
.look-share-description-card {
  background: #fdfbf7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.look-share-description-title {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.look-share-description {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.look-share-description p {
  margin: 0 0 8px;
}
.look-share-description p:last-child {
  margin-bottom: 0;
}
.look-share-description .product-bullets {
  margin: 8px 0 0;
  padding-left: 18px;
}
.look-share-description .product-bullets li {
  margin: 0 0 6px;
}
.look-share-description .product-bullets li:last-child {
  margin-bottom: 0;
}
.look-share-buy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.look-share-share-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 4px 2px 0;
}
.look-share-hint {
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}
.look-share-actions {
  display: flex;
  justify-content: center;
}
.look-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 300px;
  padding: 14px 24px;
  font-size: 14px;
}
.look-share-error {
  text-align: center;
  padding: 48px 16px;
  color: #8a2929;
}
.look-share-error i { font-size: 36px; margin-bottom: 16px; }
.look-share-error p { margin-bottom: 20px; color: var(--ink-soft); }

@media (min-width: 900px) {
  .look-share-section {
    max-width: 980px;
    padding-bottom: 64px;
  }
  .look-share-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 36px 48px;
    align-items: start;
  }
  .look-share-hero.is-loading {
    min-height: min(78vh, 720px);
  }
  .look-share-aside {
    gap: 24px;
    padding-top: 4px;
  }
  .look-share-product-block {
    box-shadow: var(--shadow);
  }
  .look-share-product {
    gap: 18px;
    align-items: center;
    padding: 28px 24px 20px;
  }
  .gallery-product-thumb.look-share-product-thumb {
    width: min(80%, 280px);
    height: auto;
    aspect-ratio: 3 / 4;
  }
  .gallery-product-brand.look-share-brand {
    font-size: 11px;
    letter-spacing: 1.6px;
  }
  .gallery-product-name.look-share-name {
    font-size: 24px;
    line-height: 1.35;
    -webkit-line-clamp: 4;
  }
  .look-share-price {
    font-size: 18px;
  }
  .look-share-try-wrap {
    padding: 0 20px 14px;
  }
  .look-share-order-wrap {
    padding: 0 20px 18px;
  }
  .look-share-description-card {
    padding: 20px;
  }
  .look-share-description {
    font-size: 15px;
  }
  .look-share-buy {
    font-size: 15px;
  }
  .look-share-share-panel {
    gap: 14px;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .look-share-hint {
    text-align: center;
    font-size: 15px;
  }
  .look-share-actions {
    justify-content: stretch;
  }
  .look-share-btn {
    max-width: none;
    padding: 15px 24px;
    font-size: 15px;
  }
}

/* === Mini-card du produit réel sous l'image générée === */
.gallery-product-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: #fdfbf7;
  border-top: 1px solid var(--line);
  align-items: center;
}
.gallery-product-card.small { padding: 12px 16px; }
.gallery-product-thumb {
  width: 56px; height: 72px;
  background: #f0eae0;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.gallery-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-product-text {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.gallery-product-brand {
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.gallery-product-name {
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery-product-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* === Prompt décor Customisation (sous la photo) === */
.gallery-scene-prompt {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line);
  background: #faf8f4;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gallery-scene-prompt-label {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.gallery-scene-prompt-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery-scene-prompt-copy {
  align-self: flex-start;
  margin-top: 2px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.gallery-scene-prompt-copy:hover {
  color: var(--fitzu-accent);
  border-color: var(--fitzu-accent);
  background: var(--fitzu-accent-soft, rgba(232, 112, 58, 0.08));
}
.gallery-scene-prompt-copy.is-copied {
  color: var(--fitzu-accent);
  border-color: var(--fitzu-accent);
}

/* === Bouton achat externe (secondaire à l'essayage) === */
.product-buy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.15px;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.product-buy-link:hover {
  color: var(--fitzu-accent);
  background: transparent;
  border-color: var(--fitzu-accent);
  text-decoration: none;
}
.product-buy-link:hover .product-buy-link-arrow {
  color: var(--fitzu-accent);
  transform: translateX(4px);
}
.product-buy-link-arrow {
  font-size: 13px;
  color: var(--fitzu-accent);
  display: inline-block;
  transition: transform .2s ease, color .15s ease;
}
.product-buy-link > i {
  font-size: 14px;
  flex-shrink: 0;
}
@keyframes product-buy-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-1px); }
}
.product-buy-link.is-shake > i,
.product-buy-link.is-shake > span {
  animation: product-buy-shake 0.42s ease-in-out;
}
.gallery-buy-wrap {
  margin: 0;
  padding: 10px 16px 14px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  /* Story 9:16 en entier — pas de crop 3/4 */
  .gallery-main {
    aspect-ratio: auto;
  }
  .gallery-main.is-loading:not(.is-loaded) {
    aspect-ratio: 9 / 16;
  }
  .gallery-main:has(.gallery-placeholder) {
    aspect-ratio: 9 / 16;
  }
  .gallery-main-img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
}

/* === Carte colorimétrie === */
.color-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
}
.color-card-head {
  text-align: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  margin-bottom: 22px;
}
/* En-tête morpho : illustration + texte côte à côte (empilé sur mobile) */
.morpho-hero {
  display: flex; align-items: center; gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px; margin-bottom: 22px;
}
.morpho-hero .color-card-head {
  flex: 1; text-align: left; border-bottom: none;
  padding-bottom: 0; margin-bottom: 0;
}
.morpho-illu {
  width: 120px; height: 180px; object-fit: contain;
  flex-shrink: 0; border-radius: 10px;
  background: #fbf6ec; padding: 6px;
}
@media (max-width: 480px) {
  .morpho-hero { flex-direction: column; gap: 12px; text-align: center; }
  .morpho-hero .color-card-head { text-align: center; }
  .morpho-illu { width: 150px; height: 220px; }
}
.color-saison {
  font-family: var(--font-sans);
  font-size: 28px; font-weight: 600;
  margin: 6px 0 6px;
}
.color-eyebrow {
  display: block; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent-dark); margin-bottom: 4px;
}
.color-sub { font-size: 13px; color: var(--ink-soft); margin: 0; letter-spacing: .3px; }

.color-section { margin-bottom: 22px; }
.color-section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 12px;
}
.color-swatches {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.color-swatch {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  background: #fdfbf7;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
}
.color-swatch.avoid {
  opacity: 0.55;
  text-decoration: line-through;
  text-decoration-color: var(--ink-soft);
}
.color-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.1);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
}
.color-name { color: var(--ink); font-weight: 500; }

.color-metrics {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.color-metric { display: flex; justify-content: space-between; font-size: 13px; }
.color-metric-label { color: var(--ink-soft); font-weight: 500; }
.color-metric-value { color: var(--ink); font-weight: 600; text-transform: capitalize; }

.color-tips {
  font-size: 13px; line-height: 1.6; color: var(--ink-soft);
  margin: 0; padding-top: 16px; border-top: 1px solid var(--line);
  font-style: italic;
}

/* === Palette par saison de l'année === */
.color-seasonal-wrap { padding-top: 16px; border-top: 1px solid var(--line); }
.color-seasons {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 4px;
}
.season-card {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; background: #fdfbf7;
}
.season-head {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px;
}
.season-head i { color: var(--accent-dark); font-size: 13px; width: 16px; text-align: center; }
.season-ambiance { font-size: 12px; color: var(--ink-soft); margin: 0 0 10px; line-height: 1.45; }
.season-swatches { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.season-swatch { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink); }
.season-dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.08); flex-shrink: 0;
}
.season-color-name { white-space: nowrap; }

@media (max-width: 480px) {
  .color-card { padding: 22px 18px; }
  .color-saison { font-size: 22px; }
  .color-seasons { grid-template-columns: 1fr; }
}

/* === Carte profil === */
.profile-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}
.profile-avatar {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
  font-size: 22px; font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.profile-avatar-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 50%;
}
.profile-identity { min-width: 0; flex: 1; }
.profile-name {
  font-family: var(--font-sans);
  font-size: 18px; font-weight: 600;
  line-height: 1.25;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-bottom: 4px;
}
.profile-name-row .profile-name { flex: 1; min-width: 0; }
.profile-name-edit-btn {
  flex-shrink: 0;
  padding: 0;
  background: none;
  border: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.profile-name-edit-btn:hover { color: var(--ink); }
.profile-name-form { margin-bottom: 4px; }
.profile-name-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.profile-name-field { display: block; min-width: 0; }
.profile-name-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
}
.profile-name-field input:focus {
  outline: none;
  border-color: var(--fitzu-accent);
  box-shadow: 0 0 0 2px rgba(255, 74, 46, 0.15);
}
.profile-name-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.profile-member {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}
.profile-logout {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  background: none;
  border: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.profile-logout-icon { display: none; }
.profile-logout:hover { color: var(--ink); }
@media (max-width: 768px) {
  .profile-logout {
    position: relative;
    width: 36px;
    height: 36px;
    padding: 0;
    text-decoration: none;
  }
  .profile-logout-icon {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
  }
  .profile-logout-label {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
  }
}

.profile-facts {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.profile-fact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}
.profile-fact:last-child { border-bottom: none; }
.profile-fact i {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  color: var(--accent-dark);
  font-size: 14px;
}
.profile-fact-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}
.profile-fact-stat .profile-fact-text { color: var(--ink-soft); }
.profile-fact-stat strong {
  color: var(--ink);
  font-weight: 600;
}

/* Résumé express morpho + colorimétrie */
.profile-quick {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
}
.profile-quick-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #fdfbf7; cursor: pointer; text-align: left;
  font: inherit; color: var(--ink); transition: border-color .2s, background .2s;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.profile-quick-item:hover { border-color: var(--accent); background: #f7efe1; }
#pq-morpho-icon { color: var(--accent-dark); font-size: 18px; width: 26px; text-align: center; flex-shrink: 0; }
.pq-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pq-label { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-soft); }
.pq-value {
  font-size: 14px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pq-value.pq-todo { font-weight: 500; color: var(--accent-dark); font-style: italic; }
.pq-go { color: var(--ink-soft); font-size: 12px; flex-shrink: 0; }
.pq-illu { width: 26px; height: 38px; object-fit: contain; flex-shrink: 0; }
.pq-dots { display: flex; gap: 3px; width: 22px; flex-wrap: wrap; flex-shrink: 0; }
.pq-dots .pq-dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); }
.pq-dots > i { color: var(--accent-dark); font-size: 18px; }

@media (max-width: 480px) {
  .profile-card { padding: 16px; margin-bottom: 20px; }
  .profile-avatar { width: 48px; height: 48px; font-size: 20px; }
  .profile-name { font-size: 17px; }
  .profile-name-fields { grid-template-columns: 1fr; }
  .profile-quick { grid-template-columns: 1fr; gap: 8px; }
  .profile-quick-item { padding: 14px 16px; }
  .gallery-section .gallery-header { margin-bottom: 20px; }
  .gallery-section .gallery-header h2 { font-size: 22px; }
  .gallery-section .gallery-header .muted { font-size: 13px; line-height: 1.45; }
}

/* Formulaire avec 2 colonnes (prénom + nom) */
.form-row-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.form-row-2 label { margin: 14px 0 6px; }
@media (max-width: 380px) {
  .form-row-2 { grid-template-columns: 1fr; }
}
.gallery-empty .btn-primary { margin-top: 18px; display: inline-block; }

/* === Lightbox photo originale === */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20, 18, 14, 0.92);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 80vh;
  touch-action: pan-y pinch-zoom;
}
.lightbox-img {
  max-width: 90vw; max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox--carousel .lightbox-img {
  transition: opacity .2s ease;
  max-height: 90vh;
}
.lightbox--carousel .lightbox-stage {
  max-height: 90vh;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
  z-index: 1;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  letter-spacing: 0.5px;
  font-weight: 500;
  pointer-events: none;
}
.lightbox-caption {
  position: absolute;
  bottom: 20px;
  color: white;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 500;
}
.lightbox-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-zoom-controls {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
  z-index: 1;
}
.lightbox-zoom-btn {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.lightbox-zoom-btn:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-zoom-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.lightbox-img {
  cursor: zoom-in;
  transition: transform .2s ease;
  transform-origin: center center;
}
.lightbox-img.is-zoomed {
  cursor: zoom-out;
}
.lightbox-stage.is-zoomed {
  overflow: auto;
  touch-action: pan-x pan-y pinch-zoom;
}

/* === Boutons de partage dans le résultat === */
.share-buttons {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  margin: 18px 0;
}
.btn-share {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px;
  background: white; border: 1px solid var(--line); color: var(--ink);
  font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none;
  border-radius: 8px;
  transition: border-color .15s ease, color .15s ease;
}
.btn-share:hover { border-color: var(--accent); }
.btn-share-ig:hover { color: #E1306C; border-color: #E1306C; }
.btn-share-wa:hover { color: #25D366; border-color: #25D366; }
.btn-share i { font-size: 16px; }

/* === Bouton WhatsApp flottant (cabine) === */
.cabine-whatsapp {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 45;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cabine-whatsapp:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}
.cabine-whatsapp__icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
}
.cabine-whatsapp__rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cabine-whatsapp__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(37, 211, 102, 0.55);
  animation: cabine-whatsapp-pulse 2.4s ease-out infinite;
}
.cabine-whatsapp__ring:nth-child(2) {
  animation-delay: 1.2s;
}
@keyframes cabine-whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.55);
    opacity: 0;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

.result-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }

/* === Burger mobile === */
.burger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; padding: 0;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.burger span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}

/* === Drawer latéral (ouvre depuis la droite) === */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 280px; max-width: 80vw;
  background: white;
  box-shadow: -4px 0 24px rgba(0,0,0,.08);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  z-index: 50;
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
}
.drawer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}
.drawer-logo-img {
  height: 42px; width: auto; display: block;
}
.drawer-close {
  background: none; border: none; cursor: pointer;
  font-size: 30px; line-height: 1; color: var(--ink-soft);
  width: 36px; height: 36px;
}
.drawer-nav {
  display: flex; flex-direction: column;
  padding: 12px 0;
  flex: 1;
}
.drawer-nav a {
  padding: 16px 24px;
  font-size: 17px; color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-sans);
}
/* Drawer-nav : menu burger mobile uniquement (masqué sur desktop via .burger) */
.drawer-nav a:hover, .drawer-nav a:active {
  background: transparent;
  color: var(--fitzu-accent);
}
.drawer-nav a.active { color: var(--fitzu-accent); font-weight: 600; }
.drawer-footer {
  padding: 20px 24px;
  font-size: 13px; color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(20,18,14,.4);
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease;
  z-index: 49;
}
.drawer-backdrop.open {
  opacity: 1; pointer-events: auto;
}

/* === Responsive mobile === */
@media (max-width: 768px) {
  :root {
    --pill-padding-y: 7px;
    --pill-padding-x: 14px;
    --pill-font-size: 13px;
  }
  .topbar { padding: 10px 16px; }
  .burger { display: flex; }
  .topnav { display: none; }
  .logo-img { height: 44px; }

  .quick-nav-track {
    padding: 10px 6px 10px 16px;
    gap: 6px;
    scroll-padding-left: 16px;
    scroll-padding-right: 6px;
  }
  .quick-nav-track::before { flex-basis: 1px; }
  .quick-nav-search-btn { width: 46px; font-size: 15px; }
  .quick-nav-search-inner { padding: 0 16px 10px; }

  main { padding: 16px 16px 60px; }

  .hero { padding: 30px 16px 20px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }
  .section h2 { font-size: 22px; }

  .product-card .body { padding: 10px 12px 10px; }

  .product-wrap { gap: 24px; }
  .product-info .product-title-row h1 { font-size: 26px; }
  .price { font-size: 19px; margin-bottom: 18px; }
  .fitting-box { padding: 18px; }

  .modal-card, .overlay-card, .result-card { padding: 22px; }
  .overlay-card-stream { max-width: 92%; }
  .scan-wrap { aspect-ratio: 3/4; }
}

main { max-width: 1200px; margin: 0 auto; padding: 24px 32px 80px; }

.hero {
  text-align: center;
  padding: 60px 20px 40px;
}
.hero h1 {
  font-family: var(--font-sans);
  font-size: 44px; margin: 0 0 14px; font-weight: 700;
}
.hero p { color: var(--ink-soft); font-size: 17px; max-width: 600px; margin: 0 auto; }

.section { margin: 0 0 40px; }

.section-home-html {
  margin-bottom: 28px;
}
.home-custom-html-content {
  font-size: 1rem;
  line-height: 1.5;
}
.home-custom-html-content img {
  max-width: 100%;
  height: auto;
  display: block;
}
.home-custom-html-content a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tenant-home-html-preview {
  display: block;
  width: 100%;
  min-height: 180px;
  max-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.section > h2 {
  font-family: var(--font-sans);
  font-size: 28px; margin: 0 0 28px;
  text-align: center;
}
.section .row-between h2 {
  font-family: var(--font-sans);
  font-size: 28px; margin: 0;
}

.row-between { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }

.products-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.products-head h1,
.products-head h2 {
  font-family: var(--font-sans);
  font-size: 28px;
  margin: 0;
  text-align: center;
  justify-self: center;
  grid-column: 2;
}
/* Ancre CTA hero custom → titre catalogue (header sticky). */
#products-title,
.products-head {
  scroll-margin-top: 120px;
}
.products-head .link-back {
  justify-self: start;
  grid-column: 1;
  white-space: nowrap;
}
.products-head-spacer {
  grid-column: 3;
  justify-self: end;
  width: 1px;
  height: 1px;
  visibility: hidden;
}

.products-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 22px;
}
/* Sticky mobile : sous le header cabine (quick-nav catégories). */
@media (max-width: 768px) {
  .products-filters:not(.hidden) {
    position: -webkit-sticky;
    position: sticky;
    top: var(--cabine-sticky-head-height, 46px);
    z-index: 20;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 18px;
    padding: 10px 16px 12px;
    box-sizing: border-box;
    background: var(--bg, #faf7f3);
    border-bottom: 1px solid var(--line);
    /* iOS Safari : évite scintillement / couche incorrecte */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}
.products-filter {
  position: relative;
}
.products-filter-toggle {
  margin: 0;
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.products-filter-toggle:hover,
.products-filter.is-open .products-filter-toggle {
  border-color: var(--fitzu-accent);
  background: #fdfaf4;
}
.products-filter-label {
  font-weight: inherit;
}
.products-filter-summary {
  color: var(--ink-soft);
  font-size: 13px;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.products-filter-summary:not(:empty)::before {
  content: '·';
  margin: 0 6px 0 2px;
  color: var(--line);
}
.products-filter-panel {
  position: fixed;
  z-index: 40;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 32px));
  max-height: min(320px, 50vh);
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.products-filter-panel.is-positioning {
  visibility: hidden;
  pointer-events: none;
}
.products-filter-panel.hidden { display: none; }
.products-filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.products-filter-option:hover { background: #f8f4ec; }
.products-filter-option.is-selected {
  background: var(--fitzu-accent-soft, #fdf6e9);
  font-weight: 600;
}
.products-filter-option input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--fitzu-accent);
}
.products-filter-color-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}
.products-filter-clear {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 8px 4px;
}
.products-filter-clear:hover { color: var(--accent-dark); }

@media (max-width: 768px) {
  .products-head h1,
  .products-head h2 { font-size: 22px; }
  .products-filters {
    justify-content: center;
    gap: 6px;
  }
  .products-filter-summary { max-width: 96px; }
  .products-filter-panel {
    min-width: min(280px, calc(100vw - 32px));
  }
}

.link-back { color: var(--ink-soft); font-size: 14px; }
.link-back:hover { color: var(--accent-dark); }
.product-page > .link-back {
  display: inline-block;
  margin: 0;
}

/* Grilles */
.grid { display: grid; gap: 20px; }
/* Desktop : même densité que .grid-products (≈7 cols full-bleed) */
.grid-brands,
.grid-cats,
.grid-colors,
.brands-group-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
@media (min-width: 1400px) {
  .grid-brands,
  .grid-cats,
  .grid-colors,
  .brands-group-grid,
  .grid-products,
  .grid-new-products,
  #new-products-grid,
  #categories-new-products-grid,
  #colors-new-products-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

.card-tile-color {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.color-tile-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
  flex-shrink: 0;
}
.product-color-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft, #6a6a6a);
}
.product-card .product-color-hint {
  margin: 4px 0 0;
}
.product-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.product-color-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.section-intro { margin: -8px 0 20px; }

.section-search {
  max-width: 420px;
  margin: -12px auto 24px;
}
.section-search-input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-family: inherit;
  background: #f7f3eb;
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.section-search-input::placeholder { color: #9a9084; }
.section-search-input:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 3px rgba(196, 167, 125, .18);
}
.section-search-empty {
  text-align: center;
  margin: 0 0 20px;
}

.brands-browse { position: relative; }
.brands-directory {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.brands-group-letter {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.brands-index {
  position: fixed;
  right: max(4px, env(safe-area-inset-right, 0px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 8px 2px;
  overflow: visible;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.brands-index-letter {
  --letter-scale: 1;
  --letter-translate-y: 0px;
  appearance: none;
  border: 0;
  background: none;
  font: 600 10px/1.15 var(--font-sans);
  color: var(--accent-dark);
  padding: 1px 6px;
  cursor: pointer;
  border-radius: 4px;
  position: relative;
  transform: translateY(var(--letter-translate-y)) scale(var(--letter-scale));
  transform-origin: center center;
  transition: transform 0.18s ease-out, color 0.12s ease, background 0.12s ease;
  will-change: transform;
}
.brands-index.is-scrubbing .brands-index-letter {
  transition: color 0.12s ease;
}
.brands-index-letter.is-disabled {
  color: #c8bfb3;
  cursor: default;
}
.brands-index-letter.is-active,
.brands-index-letter:not(.is-disabled):hover {
  color: var(--fitzu-accent);
  background: var(--fitzu-accent-soft);
}
.brands-index.is-scrubbing .brands-index-letter {
  background: none;
}
.brands-index.is-scrubbing .brands-index-letter.is-active {
  font-weight: 700;
  color: var(--fitzu-accent);
}
.brands-index-hint {
  display: none;
}
@media (min-width: 769px) {
  .brands-index-letter {
    font-size: 11px;
    padding: 2px 8px;
  }
}
.grid-products{
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  /* Hauteur naturelle des cartes : évite le trou sous « Essayez en live » (stretch grille). */
  align-items: start;
}
/* Même densité que .grid-products (3 cols figées → auto-fill, puis 7 cols ≥1400px) */
.grid-new-products {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  align-items: start;
}

/*
 * Index + listings : breakout viewport + gutter (pas collé aux bords).
 * Couvre : /marques, /categories, /couleurs, marquee « Nos dernières marques »,
 * listings produits (/marque/…, /categorie/…, /couleur/…), nouveautés, featured, looks.
 * Titres (.section-head, .products-head) restent dans le padding de main.
 */
:root {
  --listing-gutter: 16px;
}
@media (min-width: 769px) {
  :root {
    --listing-gutter: 24px;
  }
}

.grid-products,
.grid-new-products,
.grid-brands,
.brands-group-grid,
.grid-cats,
.grid-colors,
.recent-looks-carousel,
.brands-marquee-carousel,
#products-grid,
#featured-picks-grid,
#home-ssr-featured-grid,
#new-products-grid,
#categories-new-products-grid,
#colors-new-products-grid,
#cats-grid,
#colors-grid,
#brands-marquee-home,
#brands-marquee {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-inline: var(--listing-gutter);
  box-sizing: border-box;
}

/* Titres featured SSR (hors main) : même gutter que les listings */
#home-ssr-featured > .section-head {
  padding-inline: var(--listing-gutter);
}

/* Skeletons accueil : réserve l’espace avant injection API (CLS desktop) */
@keyframes home-skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.product-card--skeleton {
  pointer-events: none;
  cursor: default;
}
.product-card--skeleton:hover {
  transform: none;
  box-shadow: none;
}
.product-card--skeleton .img-wrap,
.brand-marquee-card--skeleton {
  background: linear-gradient(90deg, #f0eae0 0%, #e8e0d4 40%, #f0eae0 80%);
  background-size: 200% 100%;
  animation: home-skeleton-shimmer 1.15s ease-in-out infinite;
}
.product-card--skeleton .body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 10px;
  /* Aligne la hauteur réelle (marque + nom + prix + CTA) pour limiter le CLS */
  min-height: 96px;
  box-sizing: border-box;
}
@media (min-width: 769px) {
  .product-card--skeleton .body {
    padding: 14px 16px 12px;
    min-height: 104px;
  }
}
.skeleton-line {
  display: block;
  height: 14px;
  width: 88%;
  border-radius: 4px;
  background: #ece4d8;
}
.skeleton-line--sm { width: 42%; height: 11px; }
.skeleton-line--xs { width: 28%; height: 13px; margin-top: 4px; }
.brand-marquee-card--skeleton {
  min-height: 92px;
  border: 1px solid var(--line);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .product-card--skeleton .img-wrap,
  .brand-marquee-card--skeleton {
    animation: none;
    background: #f0eae0;
  }
}

.recent-looks-carousel {
  overflow-x: auto;
  overflow-y: hidden;
  padding-top: 4px;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  outline: none;
}
.recent-looks-carousel::-webkit-scrollbar { display: none; }
.recent-looks-carousel.is-dragging { cursor: grabbing; }
.recent-looks-track {
  display: flex;
  gap: 16px;
  width: max-content;
  align-items: stretch;
  user-select: none;
}
.recent-looks-track > .product-card.recent-look-card {
  flex: 0 0 auto;
  width: 200px;
  min-width: 200px;
}
.recent-looks-track > .product-card.recent-look-card img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}
@media (max-width: 768px) {
  .grid-new-products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .recent-looks-track { gap: 12px; }
  .recent-looks-track > .product-card.recent-look-card {
    width: 150px;
    min-width: 150px;
  }
}
.section-recent-looks {
  padding-bottom: 8px;
}
.instagram-follow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px auto 4px;
  max-width: 560px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  transition: background 0.15s ease;
}
.instagram-follow:hover {
  background: rgba(255, 74, 46, 0.04);
}
.instagram-follow__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  display: block;
}
.instagram-follow__text {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.35em;
  line-height: 1.35;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
}
.instagram-follow__line strong {
  font-weight: 700;
  color: var(--ink);
}
.instagram-follow__line em {
  font-style: normal;
  font-weight: 600;
  color: var(--fitzu-accent);
}
@media (max-width: 768px) {
  .instagram-follow {
    gap: 10px;
    padding: 10px 12px;
  }
  .instagram-follow__icon {
    width: 32px;
    height: 32px;
  }
  .instagram-follow__text {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 2px;
    font-size: 14px;
    white-space: normal;
  }
}
.section-brands-marquee {
  padding-bottom: 8px;
  overflow: visible;
}
.brands-marquee-carousel {
  /* overflow-y:hidden clippe tout transform hors du scrollport :
     marge Y sur le track (dans le flux), pas de padding sur le scrollport. */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  outline: none;
}
.brands-marquee-carousel::-webkit-scrollbar { display: none; }
.brands-marquee-carousel.is-dragging { cursor: grabbing; }
.brands-marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  align-items: stretch;
  user-select: none;
  /* Padding Y uniquement : le X casserait halfWidth (boucle seamless).
     Doit absorber scale(1.02) + ombre basse pour garder la bordure 4 côtés. */
  padding-top: 12px;
  padding-bottom: 16px;
}
.brand-marquee-card {
  flex: 0 0 auto;
  width: 210px;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 22px 18px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transform-origin: center center;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.brand-marquee-card:hover {
  /* scale centré : grossit dans le padding du track, bordure 1px intacte 4 côtés */
  transform: scale(1.02);
  box-shadow: var(--shadow);
  border-color: var(--fitzu-accent);
}
.brand-marquee-card-label {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}
.brand-marquee-card-count {
  color: var(--ink-soft);
  font-size: 12px;
}
@media (max-width: 768px) {
  .brands-marquee-track { gap: 10px; }
  .brand-marquee-card {
    width: 184px;
    min-width: 184px;
    padding: 18px 14px;
  }
  .brand-marquee-card-label { font-size: 14px; }
}

/* Eyebrow + titre + CTA centré pour les sections "Nouveautés" */
.section-head { text-align: center; margin-bottom: 28px; }
.section-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--fitzu-accent-text); margin-bottom: 6px;
}
.section-head h2 {
  font-family: var(--font-sans);
  font-size: 28px; margin: 0;
}
.section-cta { text-align: center; margin-top: 28px; }

.card-tile {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  cursor: pointer;
}
.card-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.grid-brands .card-tile:hover,
.grid-cats .card-tile:hover,
.grid-colors .card-tile:hover { border-color: var(--fitzu-accent); }
.card-tile .label {
  font-family: var(--font-sans); font-size: 19px; font-weight: 600;
  line-height: 1.3; overflow-wrap: break-word; hyphens: auto;
}
.card-tile .brand-tile-label,
.brand-marquee-card-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow-wrap: normal;
  hyphens: none;
}
.brand-tile-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-news-badge {
  display: inline-block;
  flex: 0 0 auto;
  flex-shrink: 0;
  color: #d73a3a;
  border: 1px solid #d73a3a;
  background: #fff;
  border-radius: 5px;
  padding: 1px 6px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}
.card-tile .count { color: var(--ink-soft); font-size: 13px; margin-top: 6px; }

/* Grilles catalogue — responsive (après définitions de base pour garantir la cascade) */
@media (max-width: 768px) {
  .grid-brands,
  .grid-cats {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 12px;
  }
  .grid-colors {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
  }
  .grid-products,
  .grid-new-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .card-tile {
    padding: 14px 10px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
  }
  .card-tile .label { font-size: 15px; }
  .card-tile .count { font-size: 11px; margin-top: 4px; }
  .card-tile-color {
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 12px 8px;
  }
  .color-tile-swatch {
    width: 32px;
    height: 32px;
  }
  .section-intro { margin-bottom: 16px; }
  .section > h2 { margin-bottom: 20px; }
}

@media (max-width: 480px) {
  .grid-colors {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  }
}

@media (max-width: 380px) {
  .grid-brands,
  .grid-cats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-colors {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .grid-colors {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

.product-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card .img-wrap { position: relative; aspect-ratio: 3/4; background: #f0eae0; overflow: hidden; }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-sale-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #c73520;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #c73520;
  border-radius: 4px;
  pointer-events: none;
}
.product-image .product-sale-badge {
  top: 10px;
  right: 10px;
  font-size: 12px;
  padding: 4px 8px;
}
.price--sale,
.price.price--sale {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 10px;
}
.product-info .price--sale {
  justify-content: flex-start;
}
.price-regular {
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.product-card .price-regular { font-size: 13px; }
.product-info .price-regular { font-size: 16px; }
.price-current {
  font-weight: 700;
  color: #c73520;
}
.product-card .price-current { font-size: 14px; }
.product-info .price-current { font-size: 22px; }
.product-card.recent-look-card {
  width: 100%;
  min-width: 0;
}
.product-card.recent-look-card .img-wrap {
  aspect-ratio: 9 / 16;
  background: #1a1a1a;
}
.product-card.recent-look-card .img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.product-card.recent-look-card .body,
.product-card--skeleton.recent-look-card .body {
  width: 100%;
  align-items: center;
  text-align: center;
  /* Footer marque seul : pas le min-height produit (nom + prix + CTA) */
  min-height: 0;
  padding: 10px 12px 12px;
}
.product-card.recent-look-card .brand-tag {
  width: 100%;
  margin-bottom: 0;
}
.product-tried-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: var(--fitzu-accent);
  background: rgba(255, 240, 237, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--fitzu-accent);
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(255, 74, 46, 0.12);
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.product-tried-badge:hover {
  background: var(--fitzu-accent-soft);
  border-color: var(--fitzu-accent);
  box-shadow: 0 2px 8px rgba(255, 74, 46, 0.18);
}
.product-tried-badge i { font-size: 9px; opacity: 0.9; color: var(--fitzu-accent); }
.product-card .img-wrap .product-tried-badge {
  bottom: 10px;
  left: 10px;
}
.product-image .product-tried-badge {
  top: 10px;
  left: 10px;
  right: auto;
}
.product-card .body {
  padding: 14px 16px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}
.product-card .brand-tag {
  font-size: 11px;
  margin-bottom: 4px;
  line-height: 1.35;
}
.product-card .brand-tag-label {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.product-card .brand-tag-name {
  color: var(--fitzu-accent-text);
  font-weight: 500;
}
.product-card .name { font-size: 15px; font-weight: 500; width: 100%; }
.product-card .price { font-size: 14px; color: var(--ink); margin-top: 8px; font-weight: 600; width: 100%; }
.product-card .product-try-live {
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 0;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: #9A4A38;
  background: transparent;
  border: 1px solid #c48a78;
  border-radius: 999px;
}

.products-count-hint {
  text-align: center;
  margin: -4px 0 12px;
  font-size: 14px;
}
.products-count-hint.hidden + .products-filters {
  margin-top: 0;
}
.products-grid-sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
}
.products-grid-loader {
  text-align: center;
  margin: 8px 0 24px;
  font-size: 14px;
}

/* Page produit */
.product-page { padding: 0; }
.product-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 20px;
}
@media (max-width: 768px) { .product-wrap { grid-template-columns: 1fr; gap: 30px; } }

/* Carrousel « Vous aimez aussi » (fiche produit) */
.section-related-products {
  margin-top: 48px;
  padding-bottom: 8px;
}
.section-related-products > .section-head {
  padding-inline: var(--listing-gutter);
  margin-bottom: 16px;
}
.section-related-products > .section-head h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.related-products-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}
.related-products-nav {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0 4px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  z-index: 2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.related-products-nav:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: #fdf6e9;
}
.related-products-nav:disabled,
.related-products-nav[hidden] {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
}
.related-products-nav[hidden] {
  display: none;
}
.related-products-carousel,
#related-products-carousel {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: none;
  margin: 0;
  padding-inline: var(--listing-gutter);
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  padding-top: 4px;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
  outline: none;
  scroll-snap-type: x proximity;
}
.related-products-carousel::-webkit-scrollbar { display: none; }
.related-products-carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.related-products-track {
  display: flex;
  gap: 16px;
  width: max-content;
  align-items: stretch;
  user-select: none;
}
.related-products-track > .product-card {
  flex: 0 0 auto;
  width: 200px;
  min-width: 200px;
  scroll-snap-align: start;
}
/* Desktop : centrer la rangée quand toutes les cards tiennent ; sinon scroll depuis la gauche */
@media (min-width: 769px) {
  .related-products-carousel.is-centered,
  #related-products-carousel.is-centered {
    display: flex;
    justify-content: center;
  }
  .related-products-carousel.is-centered .related-products-track,
  #related-products-carousel.is-centered .related-products-track {
    margin-inline: auto;
  }
}
.related-products-track > .product-card img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}
@media (max-width: 768px) {
  .section-related-products { margin-top: 36px; }
  .related-products-shell {
    padding-inline: 4px;
  }
  .related-products-nav {
    margin: 0 2px;
  }
  .related-products-carousel,
  #related-products-carousel {
    padding-inline: 0;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    container-type: inline-size;
    container-name: related-carousel;
  }
  .related-products-track {
    gap: 0;
  }
  .related-products-track > .product-card {
    /* 1 carte = largeur du viewport carrousel (entre les flèches) */
    flex: 0 0 100cqw;
    width: 100cqw;
    min-width: 100cqw;
    max-width: 100cqw;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
}
@media (min-width: 769px) {
  .related-products-shell {
    padding-inline: 0;
  }
  .related-products-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    margin: 0;
    box-shadow: 0 2px 10px rgba(30, 24, 16, 0.08);
  }
  .related-products-prev { left: max(8px, calc(var(--listing-gutter) - 8px)); }
  .related-products-next { right: max(8px, calc(var(--listing-gutter) - 8px)); }
  .related-products-carousel,
  #related-products-carousel {
    width: 100%;
    padding-inline: var(--listing-gutter);
  }
  /* Cards « Vous aimez aussi » un peu plus grandes sur PC (~+20 %) */
  .related-products-track > .product-card {
    width: 240px;
    min-width: 240px;
  }
}
.product-media { display: flex; flex-direction: column; gap: 20px; }
.product-image { position: relative; }
.product-image img {
  width: 100%; border-radius: var(--radius); aspect-ratio: 3/4; object-fit: cover;
  background: #f0eae0;
}

.product-brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0 10px;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.4;
}
.product-brand-row__item.hidden {
  display: none;
}
.product-brand-row__sep {
  color: rgba(0, 0, 0, 0.2);
  font-weight: 300;
  user-select: none;
  line-height: 1;
}
.product-brand-row__sep.hidden {
  display: none;
}
.product-brand-row__color {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.product-brand-row__color .product-color-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--ink-soft, #6a6a6a);
}
.product-meta-label {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.product-brand-row .brand-tag,
.product-info .product-brand-row .brand-tag {
  margin-bottom: 0;
  display: inline;
}
.product-brand-row .product-color-hint {
  margin: 0;
  padding-left: 0;
  border-left: none;
  font-size: inherit;
  font-weight: inherit;
}
.product-info .brand-tag {
  font-size: 12px;
  margin-bottom: 8px;
  line-height: 1.4;
}
.product-info .brand-tag-label {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.product-info .brand-tag-name,
.product-info .brand-tag-link {
  color: var(--fitzu-accent-text);
  font-weight: 500;
}
.product-info .brand-tag-link {
  text-decoration: none;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.product-info .brand-tag-link:hover,
.product-info .brand-tag-link:active,
.product-info .brand-tag-link:focus-visible {
  color: var(--fitzu-accent-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.product-title-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
  text-align: left;
}
.product-info .product-title-row h1 {
  font-family: var(--font-sans);
  font-size: 34px;
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}
.product-info .price {
  text-align: left;
}
.price { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
@media (max-width: 768px) {
  .product-title-row {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .product-info .product-title-row h1,
  #p-name,
  .product-info .price,
  #p-price {
    width: 100%;
    text-align: center;
  }
  .product-info .price--sale {
    justify-content: center;
  }
  .product-brand-row {
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
    text-align: center;
    font-size: 11px;
    gap: 0 8px;
  }
  .product-brand-row__sep { padding: 0 1px; }
  .product-brand-row .product-color-value { gap: 6px; }
  .product-brand-row .product-color-value__name { display: none; }
}
.product-actions-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 10px;
}
.product-klarna-hint {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 18px;
  padding: 0;
}
.product-klarna-hint.hidden,
.product-klarna-hint[hidden] {
  display: none !important;
}
.product-klarna-hint__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: 100%;
  padding: 5px 11px;
  border: none;
  border-radius: 999px;
  background: color-mix(in srgb, #ffa8cd 14%, #fff);
  color: #2a1a22;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.product-klarna-hint__dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffa8cd;
  box-shadow: 0 0 0 2px color-mix(in srgb, #FFB3C7 45%, transparent);
}
.product-klarna-hint__label {
  flex: 0 0 auto;
  padding: 1px 6px;
  border-radius: 4px;
  background: #ffa8cd;
  color: #111;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
}
.product-klarna-hint__text {
  min-width: 0;
}
@media (min-width: 768px) {
  .product-klarna-hint {
    justify-content: flex-start;
  }
}
.product-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.15px;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.product-share-btn:hover {
  color: var(--fitzu-accent);
  border-color: var(--fitzu-accent);
}
.product-share-btn i {
  font-size: 14px;
}
.product-actions-wrap .product-buy-link {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  padding: 10px 14px;
}
.product-actions-wrap .product-buy-link.hidden,
.result-buy-wrap.hidden { display: none; }
.product-actions-wrap .product-buy-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}
.product-size-wrap {
  width: 100%;
  margin: 12px 0 20px;
  text-align: center;
}
.product-size-wrap.hidden { display: none; }
.product-size-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.product-size-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--text, #1a1a1a);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.product-size-btn:hover:not(:disabled) {
  border-color: var(--fitzu-accent, #c45c26);
  color: var(--fitzu-accent, #c45c26);
}
.product-size-btn.is-selected {
  border-color: var(--fitzu-accent, #c45c26);
  background: color-mix(in srgb, var(--fitzu-accent, #c45c26) 12%, #fff);
  color: var(--fitzu-accent, #c45c26);
}
.product-size-btn:disabled,
.product-size-btn.is-oos {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}
.product-size-stock {
  margin: 10px 0 0;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  min-height: 1.2em;
  border-radius: 10px;
}
.product-size-stock.hidden { display: none !important; }
.product-size-stock.is-critical {
  color: var(--fitzu-accent, #ff4a2e);
  font-weight: 700;
  background: color-mix(in srgb, var(--fitzu-accent, #ff4a2e) 12%, #fff);
}
.product-size-stock.is-low {
  color: var(--text, #1a1a1a);
  font-weight: 650;
  background: rgba(0, 0, 0, 0.04);
}
.product-size-stock.is-ok {
  color: var(--text, #1a1a1a);
  font-weight: 550;
  background: rgba(0, 0, 0, 0.03);
}
.product-size-hint {
  margin: 8px 0 0;
  font-size: 12px;
  text-align: center;
}
.product-size-hint.hidden { display: none; }
.product-size-skeleton {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.product-size-skeleton.hidden { display: none; }
.product-size-skel {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: product-size-shimmer 1.1s ease-in-out infinite;
}
@keyframes product-size-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
/* Mobile / tablette portrait : pastilles centrées. Desktop (≥768px) : à gauche. */
@media (min-width: 768px) {
  .product-size-wrap,
  .product-size-hint,
  .product-size-stock {
    text-align: left;
  }
  .product-size-options,
  .product-size-skeleton {
    justify-content: flex-start;
  }
}
@media (max-width: 480px) {
  .product-actions-wrap {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .product-actions-wrap .product-share-btn,
  .product-actions-wrap .product-more-btn {
    flex: 0 0 auto;
    padding: 10px 10px;
  }
  .product-actions-wrap .product-buy-link:not(.hidden) {
    flex: 1 1 0;
    min-width: 0;
    margin-left: 0;
    padding: 10px 12px;
    font-size: 13px;
  }
  .product-actions-wrap .product-buy-link:not(.hidden) > i {
    font-size: 13px;
  }
}
.app-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(12px);
  z-index: 10050;
  max-width: min(90vw, 360px);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: rgba(20, 20, 20, 0.92);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.app-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.result-buy-wrap {
  margin: 12px 0 4px;
  text-align: center;
}
.desc {
  color: var(--ink-soft); line-height: 1.6;
  margin-top: 32px; padding-top: 28px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 120px;
}
.desc p { margin: 0 0 14px; }
.desc p:last-child { margin-bottom: 0; }
.product-bullets {
  list-style: none; padding: 0; margin: 12px 0 0;
}
.product-bullets li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
  border-bottom: 1px solid var(--line);
}
.product-bullets li:last-child { border-bottom: none; }
.product-bullets li::before {
  content: '';
  position: absolute;
  left: 4px; top: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* === Boîte d'essayage — style éditorial sobre === */
.fitting-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.fitting-head { margin-bottom: 24px; }
.fitting-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 8px;
}
.fitting-box > .fitting-head > .fitting-eyebrow,
.decor-zone-head .fitting-eyebrow {
  color: var(--fitzu-accent);
}
.fitting-title {
  font-family: var(--font-sans);
  font-size: 22px; font-weight: 600;
  margin: 0; letter-spacing: -.2px;
}
.fitting-intro {
  font-size: 14px; color: var(--ink-soft); line-height: 1.6;
  margin: 10px 0 0; max-width: 42ch;
}

/* Zone d'upload — pas de bordure dashed */
.upload-zone { margin-bottom: 18px; }
.upload-actions { display: flex; gap: 8px; }
.upload-btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 18px;
  background: var(--ink); color: white;
  font-size: 13px; font-weight: 500; letter-spacing: .3px;
  cursor: pointer;
  border: 1px solid var(--ink);
  border-radius: 2px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.upload-btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.upload-btn i { font-size: 15px; }
.upload-btn-secondary {
  background: white; color: var(--ink); border: 1px solid var(--ink);
}
.upload-btn-secondary:hover {
  background: white; color: var(--accent-dark); border-color: var(--accent);
}

/* Page produit : boutons upload pill + hover orange Fitzu */
.fitting-box .upload-zone .upload-btn {
  border-radius: 999px;
}
.fitting-box .upload-zone .upload-btn:hover {
  background: var(--fitzu-accent);
  border-color: var(--fitzu-accent);
}
.fitting-box .upload-zone .upload-btn-secondary:hover {
  background: var(--fitzu-accent-soft);
  color: var(--fitzu-accent);
  border-color: var(--fitzu-accent);
}

@media (max-width: 480px) {
  .upload-actions { flex-direction: column; gap: 8px; }
  .upload-btn { padding: 15px; font-size: 14px; }
}

.preview-zone {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.preview-zone img {
  max-height: 320px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* === Sélecteur de décor — liste verticale épurée === */
.decor-zone { margin-bottom: 20px; }
.decor-zone-head { margin-bottom: 14px; text-align: center; }
.decor-title {
  font-family: var(--font-sans);
  font-size: 18px; font-weight: 600;
  margin: 4px 0 0;
}

.decor-grid {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: white;
}

.decor-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: white;
  border: none;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  width: 100%;
  transition: background .12s ease;
}
.decor-row:last-child { border-bottom: none; }
.decor-row:hover { background: #fdfbf7; }
.decor-zone .decor-row.selected { background: var(--fitzu-accent-soft); }

/* Radio circulaire à gauche */
.decor-radio {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  position: relative;
  transition: border-color .15s ease;
}
.decor-zone .decor-row:hover .decor-radio { border-color: var(--fitzu-accent); }
.decor-zone .decor-row.selected .decor-radio { border-color: var(--fitzu-accent); border-width: 5px; }

.decor-icon {
  flex-shrink: 0;
  width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--accent-dark);
  transition: color .12s ease;
}
.decor-zone .decor-icon { color: var(--ink); }
.decor-zone .decor-row.selected .decor-icon { color: var(--fitzu-accent); }

.decor-text {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.decor-name {
  font-size: 14px; font-weight: 600;
  font-family: var(--font-sans);
  color: var(--ink);
}
.decor-city { font-weight: 400; color: var(--ink-soft); }
.decor-mood {
  font-size: 10px; color: var(--accent-dark);
  letter-spacing: 1.4px; text-transform: uppercase; font-weight: 600;
  transition: color .12s ease;
}
.decor-zone .decor-mood { color: var(--ink-soft); }
.decor-zone .decor-row.selected .decor-mood { color: var(--fitzu-accent); }

.decor-custom-zone {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.decor-custom-zone.hidden { display: none; }
.decor-custom-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.decor-custom-prompt {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 84px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: #fff;
  resize: vertical;
  transition: border-color .15s ease;
}
.decor-custom-prompt:focus {
  outline: none;
  border-color: var(--fitzu-accent);
}
.decor-custom-hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.link-button {
  background: none; border: none;
  color: var(--ink-soft); font-size: 13px;
  cursor: pointer; padding: 4px 0;
  text-decoration: underline; text-decoration-color: var(--line);
  text-underline-offset: 4px;
  transition: color .15s ease;
  font-family: inherit;
}
.link-button:hover { color: var(--accent-dark); text-decoration-color: var(--accent); }
.link-button--ink {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink);
}
.link-button--ink:hover {
  color: var(--fitzu-accent);
  text-decoration-color: var(--fitzu-accent);
}

/* Bouton générer en mode édito */
.btn-large {
  width: 100%;
  padding: 16px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  border-radius: 2px;
}
.btn-large i { margin-right: 8px; font-size: 14px; }

/* Bouton générer — fond noir, baguette orange */
.gen-pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 340px);
  max-width: 340px;
  margin: 8px auto 0;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  transition: background 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.gen-pill-btn:hover:not(:disabled) { background: #252525; }
.gen-pill-btn:disabled {
  cursor: default;
  opacity: 0.88;
}
.gen-pill-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  user-select: none;
}
.gen-pill-icon {
  color: #FF4A2E;
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(.4, 0, .2, 1), color 0.15s ease;
}
.gen-pill-btn.is-busy .gen-pill-icon,
.gen-pill-btn.is-sending .gen-pill-icon {
  color: #fff;
  font-size: 15px;
}
.gen-pill-label {
  white-space: nowrap;
}
@media (min-width: 769px) {
  .gen-pill-btn {
    width: min(100%, 300px);
    max-width: 300px;
    transition: background 0.15s ease, opacity 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease;
  }
  .gen-pill-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 74, 46, 0.22);
  }
  .gen-pill-btn:hover:not(:disabled):not(.is-busy):not(.is-sending) .gen-pill-icon {
    transform: scale(1.12) rotate(-10deg);
  }
}
@media (max-width: 768px) {
  .gen-pill-btn {
    width: min(92%, 320px);
    max-width: 320px;
    padding: 13px 20px;
    font-size: 13px;
  }
}

.hidden { display: none !important; }

/* Boutons */
.btn-primary, .btn-secondary {
  border: none; font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease, background .15s ease;
}
.btn-primary {
  background: var(--ink); color: white;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary {
  background: white; color: var(--ink); border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: var(--accent); }
/* Admin : boutons secondaires / outline → hover orange Fitzu */
body.admin .btn-secondary:hover,
body.admin .btn-secondary:focus-visible {
  border-color: var(--fitzu-accent);
  color: var(--fitzu-accent);
  background: var(--fitzu-accent-soft);
}
.btn-large { width: 100%; padding: 16px; font-size: 16px; }

.crm-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.crm-sync-status { margin: 0 0 12px; }

.crm-carddav-card {
  margin: 0 0 14px;
  padding: 12px 14px;
}
.crm-carddav-summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  list-style: none;
}
.crm-carddav-summary::-webkit-details-marker { display: none; }
.crm-carddav-summary i { margin-right: 6px; }
.crm-carddav-badge {
  font-weight: 500;
  font-size: 0.85rem;
}
.crm-carddav-badge.is-on { color: var(--fitzu-accent, #e85d04); }
.crm-carddav-fields {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  max-width: 720px;
}
.crm-carddav-copy-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.crm-carddav-copy-row input {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
}
.crm-carddav-hint { margin: 4px 0 0; font-size: 0.9rem; }

/* Spécificité > .cards (grid) : Total fixe + piste swipe (mois / vendeurs) */
.cards.crm-stats-cards {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 14px;
  /* visible + padding : border 2px sélection vendeur non clipée */
  overflow: visible;
  padding-block: 3px;
}
.crm-stats-scroll-track {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: stretch;
  min-width: 0;
  gap: 8px;
  padding-block: 3px;
  overflow: visible;
}
.crm-stat-sellers {
  display: contents;
}
.cards.crm-stats-cards > .crm-stat-total,
.crm-stats-scroll-track .crm-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 72px;
  min-height: 64px;
  margin-bottom: 0;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cards.crm-stats-cards .crm-stat-card:hover { border-color: var(--accent); }
.cards.crm-stats-cards .crm-stat-card[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: none;
}
.cards.crm-stats-cards .crm-stat-card.crm-stat-seller[aria-pressed="true"] {
  border: 2px solid var(--fitzu-accent);
  box-shadow: none;
  min-height: 112px;
  padding: 12px 10px 10px;
  background: color-mix(in srgb, var(--fitzu-accent) 5%, #fff);
}
.cards.crm-stats-cards .crm-stat-card .label {
  font-size: 10px;
  letter-spacing: 0.4px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}
.cards.crm-stats-cards .crm-stat-card .value {
  font-size: 20px;
  margin-top: 4px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* Recherche CRM : barre blanche, bordure + loupe orange (dans le header) */
.crm-search-bar,
.crm-search-bar.card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--ink);
  min-width: 0;
}
.crm-page-head.sa-page-head {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}
.crm-page-head > .crm-search-bar {
  flex: 1 1 auto;
  min-width: 200px;
  max-width: none;
}
.crm-page-head > .crm-toolbar {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  margin-left: 0;
  gap: 10px;
}
.crm-search-hint {
  display: block;
  margin: 4px 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.crm-search-label { flex: 1 1 auto; margin: 0; width: 100%; }
.crm-search-input-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.crm-search-input-wrap > .fa-magnifying-glass {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fitzu-accent);
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}
.crm-search-label .crm-search-input-wrap input,
.crm-sale-client-search-field .crm-search-input-wrap input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px 12px 40px;
  border: 2px solid var(--fitzu-accent);
  border-radius: 999px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: #141210;
  min-height: 44px;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.crm-search-label .crm-search-input-wrap input::placeholder,
.crm-sale-client-search-field .crm-search-input-wrap input::placeholder {
  color: #8a8680;
}
.crm-search-label .crm-search-input-wrap input:focus,
.crm-sale-client-search-field .crm-search-input-wrap input:focus {
  outline: none;
  border-color: var(--fitzu-accent);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--fitzu-accent) 35%, transparent),
    0 0 10px color-mix(in srgb, var(--fitzu-accent) 28%, transparent);
}
.crm-search-label .crm-search-input-wrap input::-webkit-search-cancel-button,
.crm-sale-client-search-field .crm-search-input-wrap input::-webkit-search-cancel-button {
  cursor: pointer;
}

.crm-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}

.crm-scroll-sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
}

.crm-scroll-status {
  margin: 8px 0 0;
  font-size: 13px;
}

#crm-table {
  table-layout: fixed;
  width: 100%;
  min-width: 0;
}
#crm-table tbody tr.crm-row {
  vertical-align: middle;
  cursor: pointer;
}
#crm-table tbody tr.crm-row:hover {
  background: color-mix(in srgb, var(--fitzu-accent-soft) 55%, #fff);
}
#crm-table th,
#crm-table td {
  padding-left: 8px;
  padding-right: 8px;
  font-size: 13px;
}
#crm-table .crm-filter-row th {
  padding-top: 4px;
  padding-bottom: 8px;
  vertical-align: top;
  font-weight: 400;
  background: var(--bg, #f7f5f1);
}
#crm-table .crm-col-filter {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  background: #fff;
}
#crm-table select.crm-col-filter {
  padding-right: 4px;
}
#crm-table .crm-col-view {
  width: 2.75rem;
  min-width: 2.75rem;
  max-width: 2.75rem;
  text-align: center;
  padding-left: 4px;
  padding-right: 4px;
}
#crm-table .crm-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
/* Œil CRM : hover orange Fitzu (pas le doré cabine) */
#crm-table .crm-view-btn:hover,
#crm-table .crm-view-btn:focus-visible {
  color: var(--fitzu-accent);
  border-color: var(--fitzu-accent);
  background: var(--fitzu-accent-soft);
}
#crm-table .crm-col-created {
  width: 7.5rem;
  min-width: 7rem;
  font-size: 12px;
  white-space: nowrap;
}
#crm-table th.crm-sortable {
  padding: 0;
}
#crm-table .crm-sort-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
#crm-table .crm-sort-btn:hover { color: var(--accent-dark, var(--accent)); }
#crm-table th.crm-sortable[aria-sort="ascending"] .crm-sort-btn::after,
#crm-table th.crm-sortable[aria-sort="descending"] .crm-sort-btn::after {
  margin-left: 4px;
  font-weight: 400;
  opacity: 0.75;
}
#crm-table th.crm-sortable[aria-sort="ascending"] .crm-sort-btn::after { content: "↑"; }
#crm-table th.crm-sortable[aria-sort="descending"] .crm-sort-btn::after { content: "↓"; }
#crm-table .crm-col-name,
#crm-table .crm-col-firstname { width: 11%; }
#crm-table .crm-col-email {
  width: 18%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#crm-table .crm-col-phone {
  width: 12%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#crm-table .crm-col-source {
  width: 7.5rem;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}
#crm-table .crm-col-notes {
  width: 14%;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 0;
}
#crm-table .crm-col-actions {
  width: 7.25rem;
  min-width: 7.25rem;
  text-align: center;
  white-space: nowrap;
  padding-left: 4px;
  padding-right: 4px;
}
.crm-date-cell {
  display: inline-block;
  line-height: 1.25;
}
.crm-date-day,
.crm-date-time {
  display: block;
  white-space: nowrap;
}
#crm-table th.crm-col-created,
#crm-table th.crm-col-actions {
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.crm-source-cell {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crm-source-wc { font-size: 10px; margin-top: 2px; }
.crm-phone-trigger {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  text-decoration: underline dotted var(--line);
  text-underline-offset: 3px;
}
.crm-phone-trigger:hover { color: var(--accent-dark); }
.crm-phone-edit { display: flex; flex-direction: column; gap: 8px; min-width: 180px; }
.crm-phone-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
.crm-phone-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.crm-phone-actions .btn-secondary { padding: 6px 12px; font-size: 12px; }
.crm-phone-status { margin: 0; font-size: 11px; }
.crm-modal-card {
  max-width: 560px;
  width: min(560px, calc(100vw - 32px));
  max-height: min(92vh, 920px);
  margin: max(12px, env(safe-area-inset-top, 0px)) auto max(12px, env(safe-area-inset-bottom, 0px));
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: auto;
  align-self: center;
}
.crm-modal-scroll {
  padding: 14px 16px 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 0 1 auto;
  min-height: 0;
  max-height: min(88vh, 860px);
}
.crm-add-modal-card .crm-modal-scroll {
  padding: 12px 16px;
  flex: 1 1 auto;
  max-height: none;
}
/* Fiche détail CRM : compacte (caisse / iPad, pas full-bleed) */
.modal-card.crm-modal-card.crm-detail-modal-card {
  max-width: min(680px, 94vw);
  width: min(680px, 94vw);
  max-height: min(92vh, 860px);
  height: auto;
}
/* Nouveau / modifier client : air viewport + header/footer fixes */
.modal-card.crm-modal-card.crm-add-modal-card {
  max-width: min(640px, 94vw);
  width: min(640px, 94vw);
  max-height: min(calc(100dvh - 64px), calc(100vh - 64px), 720px);
  height: auto;
  margin: max(32px, env(safe-area-inset-top, 0px)) auto max(32px, env(safe-area-inset-bottom, 0px));
}
.crm-add-modal-head {
  flex-shrink: 0;
  padding: 14px 44px 10px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.crm-detail-modal-card h3,
.crm-add-modal-card h3 {
  margin: 0 32px 2px 0;
  font-size: 17px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: normal;
}
.crm-add-modal-card h3 {
  margin: 0;
}
#crm-detail-modal-sub,
#crm-add-modal-sub {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.35;
}
#crm-add-modal-sub {
  margin: 4px 0 0;
}
.crm-pos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 10px;
  margin: 0;
  align-items: start;
}
.crm-detail-zones {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}
.crm-detail-zone {
  background: color-mix(in srgb, var(--bg, #f7f5f1) 88%, #fff);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px 10px;
  min-width: 0;
}
.crm-detail-zone-title {
  margin: 0 0 10px;
  padding: 0 0 6px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.2;
}
.crm-detail-zone .crm-pos-grid {
  gap: 8px 12px;
}
/* Identité : grille 2 cols max (pas 3) pour laisser email/tél lisibles */
.crm-detail-zone--identity .crm-pos-grid {
  grid-template-columns: 1fr 1fr;
}
.crm-detail-item--contact {
  grid-column: 1 / -1;
}
.crm-detail-item--contact dd {
  word-break: normal;
  overflow-wrap: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crm-pos-band {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  padding: 3px 0 1px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.2;
}
.crm-pos-band:first-child { margin-top: 0; }
.btn-crm-sale {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  background: var(--fitzu-accent);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .1s ease, box-shadow .1s ease, background .15s ease, filter .15s ease;
}
.btn-crm-sale:hover { filter: brightness(0.96); }
.btn-crm-sale:disabled {
  opacity: 0.55;
  cursor: default;
  filter: none;
}
/* CRM : aérer titre + recherche + toolbar sous le sous-menu */
#view-crm > .sa-page-head {
  margin-top: 16px;
  padding-top: 8px;
  margin-bottom: 14px;
}
/* Toolbar CRM : même gabarit / hauteur que la barre de recherche */
.crm-toolbar > .btn-crm-sale,
.crm-toolbar > .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  box-sizing: border-box;
}
.crm-toolbar > .btn-crm-sale > i,
.crm-toolbar > .btn-primary > i {
  font-size: 0.95em;
  line-height: 1;
  flex-shrink: 0;
}
.crm-toolbar > .btn-primary:hover,
#crm-add-contact-btn:hover {
  background: var(--fitzu-accent);
  border-color: var(--fitzu-accent);
  color: #fff;
}
/* Ajouter un client : bordure orange au repos / actif / focus (comme select vendeur) */
body.admin #crm-add-contact-btn {
  border: 2px solid var(--fitzu-accent);
  box-sizing: border-box;
}
body.admin #crm-add-contact-btn:active,
body.admin #crm-add-contact-btn:focus-visible {
  background: var(--fitzu-accent);
  border-color: var(--fitzu-accent);
  color: #fff;
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fitzu-accent) 18%, transparent);
}
/*
 * Nouvelle vente : MÊME pattern que Nouveau client (#crm-add-modal).
 * Overlay = .modal (flex center H+V). Carte = .crm-modal-card + max-height.
 * Shell = .crm-add-form (flex column, flex 1, min-height 0).
 * Corps = .crm-modal-scroll (flex 1, max-height none, overflow-y auto).
 * Footer = flex-shrink 0 (hors scroll). Mixte agrandit le corps, pas la carte.
 */
html.admin-modal-scroll-lock,
html.admin-modal-scroll-lock body {
  overflow: hidden !important;
  overscroll-behavior: none;
  height: 100%;
  height: 100dvh;
}
.modal-card.crm-modal-card.crm-sale-modal-card {
  max-width: min(608px, 94vw);
  width: min(608px, 94vw);
  max-height: min(calc(100dvh - 64px), calc(100vh - 64px), 720px);
  height: auto;
  margin: max(32px, env(safe-area-inset-top, 0px)) auto max(32px, env(safe-area-inset-bottom, 0px));
  padding: 0;
}
.crm-sale-modal-shell {
  margin: 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0;
}
.crm-sale-modal-card .crm-modal-scroll {
  padding: 14px 16px 12px;
  flex: 1 1 auto;
  max-height: none;
}
.crm-sale-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 12px;
  margin: 0;
  position: relative;
  background: #fff;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--line);
  z-index: 1;
  flex-shrink: 0;
}
#crm-sale-payment-mixed {
  min-width: 0;
  max-width: 100%;
}
.crm-sale-footer .crm-add-actions {
  width: 100%;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.crm-sale-footer .crm-add-actions .btn-crm-sale,
.crm-sale-footer .crm-add-actions .btn-secondary {
  min-height: 44px;
}
.crm-sale-form {
  margin-top: 4px;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
}
.crm-sale-client-next-actions,
.crm-sale-form-actions {
  width: 100%;
}
@media (max-width: 560px) {
  .crm-sale-footer .crm-add-actions {
    justify-content: stretch;
  }
  .crm-sale-footer .crm-add-actions .btn-crm-sale,
  .crm-sale-footer .crm-add-actions .btn-secondary {
    flex: 1 1 auto;
  }
}
/* Messages d'erreur modale Nouvelle vente (centrés, accent Fitzu, flash à l'apparition) */
#crm-sale-error,
#crm-sale-create-error {
  margin: 10px 0 4px;
  padding: 0 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fitzu-accent-text, var(--fitzu-accent));
}
#crm-sale-error:not(.hidden),
#crm-sale-create-error:not(.hidden) {
  animation: crm-sale-error-attention 0.55s ease-in-out 1;
}
@keyframes crm-sale-error-attention {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(1px); }
}
@media (prefers-reduced-motion: reduce) {
  #crm-sale-error:not(.hidden),
  #crm-sale-create-error:not(.hidden) {
    animation: none;
  }
}
.crm-sale-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}
.crm-sale-step-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.crm-sale-step-pill.is-active {
  border-color: var(--fitzu-accent);
  background: color-mix(in srgb, var(--fitzu-accent) 12%, #fff);
  color: var(--fitzu-accent);
}
.crm-sale-step-pill.is-done {
  border-color: color-mix(in srgb, var(--fitzu-accent) 45%, var(--line));
  color: var(--ink);
}
.crm-sale-step-client {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  width: 100%;
  min-height: 0;
  min-width: 0;
}
.crm-sale-client-search-wrap {
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-sizing: border-box;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.crm-sale-client-search-wrap .sa-field > span:first-child {
  color: var(--ink-soft);
}
.crm-sale-client-selected,
.crm-sale-client-create-toggle,
.crm-sale-client-next-actions { width: 100%; }
/* Créer client : bordure orange Fitzu (repos + actif/focus), hover orange plein */
body.admin #crm-sale-client-create-btn {
  border: 2px solid var(--fitzu-accent);
  box-sizing: border-box;
}
body.admin #crm-sale-client-create-btn:hover,
body.admin #crm-sale-client-create-btn:active,
body.admin #crm-sale-client-create-btn:focus-visible {
  background: var(--fitzu-accent);
  border-color: var(--fitzu-accent);
  color: #fff;
  outline: none;
}
body.admin #crm-sale-client-create-btn:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fitzu-accent) 18%, transparent);
}
.crm-sale-client-create-form {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
  box-sizing: border-box;
}
.crm-sale-client-search-field { margin: 0; width: 100%; }
.crm-sale-client-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  max-height: min(160px, 22dvh, 22vh);
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  min-height: 0;
  flex-shrink: 1;
}
.crm-sale-client-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
/* Highlight uniquement via .is-keyboard-active (flèche / survol JS) ou client déjà choisi */
.crm-sale-client-result.is-selected,
.crm-sale-client-result.is-keyboard-active {
  border-color: var(--fitzu-accent);
  background: color-mix(in srgb, var(--fitzu-accent) 8%, #fff);
}
.crm-sale-client-result.is-keyboard-active {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fitzu-accent) 35%, transparent);
}
.crm-sale-client-result-name {
  font-weight: 700;
  font-size: 13px;
}
.crm-sale-client-result-meta {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--ink-soft);
}
.crm-sale-client-result-pick {
  font-size: 11px;
  font-weight: 700;
  color: var(--fitzu-accent);
  align-self: center;
}
.crm-sale-client-search-status {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
}
.crm-sale-client-selected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--fitzu-accent) 40%, var(--line));
  background: color-mix(in srgb, var(--fitzu-accent) 8%, #fff);
  font-size: 13px;
  box-sizing: border-box;
}
.crm-sale-client-selected strong { font-weight: 700; }
.crm-sale-client-create-hint { margin: 0 0 8px; font-size: 12px; }
.crm-sale-client-create-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.crm-sale-client-create-grid .sa-field { margin: 0; }
.crm-sale-client-create-grid .sa-field > span {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-soft);
}
.crm-sale-client-create-grid input,
.crm-sale-client-create-grid select {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-size: 13px;
  min-height: 30px;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
}
.crm-sale-client-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fafafa;
  font-size: 13px;
}
.crm-sale-client-chip strong { font-weight: 700; }
.crm-sale-client-chip-change {
  border: none;
  background: transparent;
  color: var(--fitzu-accent);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.crm-sale-client-chip-change:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .crm-sale-client-create-grid {
    grid-template-columns: 1fr;
  }
}
.crm-sale-seller-top {
  margin: 12px 0 14px;
  padding: 12px 14px;
  /* Section neutre : l'orange Fitzu est uniquement sur le <select> */
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.crm-sale-seller-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 13px;
  max-width: none;
}
.crm-sale-seller-field > span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.crm-sale-seller-field select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 2px solid var(--fitzu-accent);
  font-size: 16px;
  min-height: 48px;
  background: #fff;
  width: 100%;
  max-width: 360px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.crm-sale-seller-field select:focus {
  outline: none;
  border-color: var(--fitzu-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fitzu-accent) 18%, transparent);
}
.crm-sale-collab {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fafafa;
}
.crm-sale-collab[hidden],
.crm-sale-collab.is-empty {
  display: none;
}
.crm-sale-collab-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.crm-sale-collab-hint {
  margin: 2px 0 8px;
  font-size: 12px;
}
.crm-sale-collab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.crm-sale-collab-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}
.crm-sale-collab-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--fitzu-accent);
  cursor: pointer;
}
.crm-sale-collab-badges,
.store-sales-seller-wrap,
.crm-sale-card-seller-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  min-width: 0;
  vertical-align: middle;
}
.crm-sale-collab-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.crm-sale-origin-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0 0;
  font-size: 13px;
  max-width: none;
}
.crm-sale-origin-field > span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.crm-sale-origin-field select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 16px;
  min-height: 44px;
  background: #fff;
  width: 100%;
  max-width: 360px;
}
.crm-sale-origin-field select:focus {
  outline: none;
  border-color: var(--fitzu-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fitzu-accent) 18%, transparent);
}
.crm-sale-date-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0 0;
  font-size: 13px;
  max-width: none;
}
.crm-sale-date-field > span:first-child {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.crm-sale-datetime-inputs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.crm-sale-date-field input[type="date"],
.crm-sale-date-field input[type="time"] {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 16px;
  min-height: 44px;
  background: #fff;
  min-width: 0;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
.crm-sale-date-field input[type="date"] {
  width: 100%;
  max-width: 9.5rem;
}
.crm-sale-date-field input[type="time"] {
  width: 100%;
  max-width: 7.5rem;
}
.crm-sale-date-field input[type="date"]:focus,
.crm-sale-date-field input[type="time"]:focus {
  outline: none;
  border-color: var(--fitzu-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fitzu-accent) 18%, transparent);
}
.crm-sale-seller-hint {
  margin: 8px 0 0;
  font-size: 12px;
}
.crm-sale-lines-head,
.crm-sale-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 4.5rem 88px 36px;
  gap: 6px;
  align-items: start;
}
.crm-sale-lines-head {
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  align-items: center;
}
.crm-sale-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.crm-sale-line input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
  min-height: 40px;
  background: #fff;
}
.crm-sale-product-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.crm-sale-product-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}
.crm-sale-line-thumb {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  border-radius: 6px;
}
.crm-sale-line-thumb.hidden {
  display: none;
}
.crm-sale-line-thumb .crm-sale-product-result-thumb {
  grid-row: auto;
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.crm-sale-product-row .crm-sale-name {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}
.crm-sale-size-field {
  display: flex;
  align-items: flex-start;
  min-width: 0;
}
/* Garde le slot grille Taille (sinon .hidden global = display:none !important décale Tarif) */
.crm-sale-size-field.hidden {
  display: flex !important;
  visibility: hidden;
  pointer-events: none;
}
.crm-sale-size-field .crm-sale-size {
  width: 100%;
  min-width: 0;
  padding: 8px 6px;
  text-align: center;
}
.crm-sale-size-field .crm-sale-size[readonly] {
  background: color-mix(in srgb, var(--line) 35%, #fff);
  color: var(--ink);
  cursor: default;
}
.crm-sale-product-results {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: min(40vh, 280px);
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.crm-sale-product-results.hidden { display: none; }
.crm-sale-product-result {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
  min-height: 52px;
}
.crm-sale-product-result--no-thumb {
  grid-template-columns: minmax(0, 1fr) auto;
}
.crm-sale-product-result--no-thumb .crm-sale-product-result-meta {
  grid-column: 1 / -1;
}
/* Highlight via flèche / survol JS (.is-keyboard-active) ou focus clavier natif */
.crm-sale-product-result:focus,
.crm-sale-product-result.is-keyboard-active {
  border-color: var(--fitzu-accent);
  background: color-mix(in srgb, var(--fitzu-accent) 8%, #fff);
  outline: none;
}
.crm-sale-product-result.is-keyboard-active {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fitzu-accent) 35%, transparent);
}
.crm-sale-product-result-thumb {
  grid-row: 1 / -1;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  align-self: center;
}
.crm-sale-product-result-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.crm-sale-product-result-name {
  font-weight: 700;
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crm-sale-product-result-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--fitzu-accent);
  align-self: start;
  white-space: nowrap;
}
.crm-sale-product-result-meta,
.crm-sale-product-status {
  grid-column: 2 / -1;
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
}
.crm-sale-product-chip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--fitzu-accent) 35%, var(--line));
  background: color-mix(in srgb, var(--fitzu-accent) 8%, #fff);
  font-size: 11px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.crm-sale-product-chip.hidden { display: none; }
.crm-sale-product-chip .crm-sale-product-result-thumb {
  grid-row: auto;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  flex-shrink: 0;
}
.crm-sale-product-chip-label {
  font-weight: 600;
  color: var(--ink);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crm-sale-product-unlink {
  border: none;
  background: transparent;
  color: var(--fitzu-accent);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  min-height: 28px;
  flex-shrink: 0;
}
.crm-sale-product-unlink:hover { text-decoration: underline; }
.crm-sale-variation-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.crm-sale-variation-picker.hidden { display: none; }
.crm-sale-variation-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  color: inherit;
}
.crm-sale-variation-btn em {
  font-style: normal;
  font-weight: 700;
  color: var(--fitzu-accent);
}
.crm-sale-variation-btn:focus,
.crm-sale-variation-btn.is-keyboard-active {
  border-color: var(--fitzu-accent);
  background: color-mix(in srgb, var(--fitzu-accent) 8%, #fff);
  outline: none;
}
.crm-sale-variation-btn.is-keyboard-active {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fitzu-accent) 35%, transparent);
}
.crm-sale-line-remove {
  width: 36px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.crm-sale-line-remove:hover {
  border-color: var(--fitzu-accent);
  color: var(--fitzu-accent);
}
.crm-sale-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.crm-sale-payment {
  margin: 14px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  min-width: 0;
}
.crm-sale-payment-legend {
  padding: 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.crm-sale-payment-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.crm-sale-payment-mixed {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.crm-sale-payment-mixed.hidden,
.crm-sale-payment-mixed[hidden] {
  display: none;
}
.crm-sale-payment-mixed-hint {
  margin: 0 0 8px;
  font-size: 12px;
}
.crm-sale-payment-mixed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.crm-sale-payment-amount-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
  min-height: 40px;
  background: #fff;
}
.crm-sale-size {
  box-sizing: border-box;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  min-height: 40px;
  background: #fff;
}
.crm-sale-payment-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 72px;
  padding: 10px 8px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.crm-sale-payment-btn i {
  font-size: 20px;
  color: var(--ink-soft);
}
.crm-sale-payment-btn:hover,
.crm-sale-payment-btn:focus-visible {
  border-color: var(--fitzu-accent);
  color: var(--fitzu-accent);
  background: var(--fitzu-accent-soft);
  outline: none;
}
.crm-sale-payment-btn:hover i,
.crm-sale-payment-btn:focus-visible i {
  color: var(--fitzu-accent);
}
.crm-sale-payment-btn.is-selected,
.crm-sale-payment-btn[aria-pressed="true"] {
  border-color: var(--fitzu-accent);
  background: var(--fitzu-accent);
  color: #fff;
}
.crm-sale-payment-btn.is-selected i,
.crm-sale-payment-btn[aria-pressed="true"] i {
  color: #fff;
}
#crm-sale-payment-error {
  margin: 8px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--fitzu-accent-text, var(--fitzu-accent));
}
@media (max-width: 640px) {
  .crm-sale-payment-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .crm-sale-payment-options {
    grid-template-columns: 1fr;
  }
  .crm-sale-payment-btn {
    flex-direction: row;
    justify-content: flex-start;
    min-height: 52px;
    padding: 10px 14px;
  }
  .crm-sale-payment-mixed-grid {
    grid-template-columns: 1fr;
  }
  .crm-sale-product-row {
    gap: 6px;
  }
  .crm-sale-lines-head,
  .crm-sale-line {
    grid-template-columns: 56px minmax(0, 1fr) 4rem 80px 36px;
  }
  .crm-sale-size-field .crm-sale-size {
    padding: 8px 4px;
    font-size: 13px;
  }
}
.crm-sale-payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.crm-sale-payment-badge i {
  font-size: 12px;
  color: var(--fitzu-accent);
}
.crm-sale-card-payment {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  font-weight: 600;
}
.crm-sale-card-payment i {
  color: var(--fitzu-accent);
}
.crm-seller-sale-payment {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.crm-seller-sale-payment i {
  color: var(--fitzu-accent);
}
.store-sales-payment {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}
.store-sales-payment .crm-sale-payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--fitzu-accent-soft);
  border: 1px solid color-mix(in srgb, var(--fitzu-accent) 28%, var(--line));
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.store-sales-payment .crm-sale-payment-badge i {
  color: var(--fitzu-accent);
}
.store-sales-payment--empty {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.crm-sale-total-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.crm-sale-total-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.crm-sale-total {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.crm-sales-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.crm-detail-zone-title-sub {
  font-weight: 500;
  font-size: 0.85em;
  color: var(--ink-soft);
}
.crm-sale-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}
.crm-sale-card--online {
  border-color: color-mix(in srgb, #21759b 35%, var(--line));
  background: color-mix(in srgb, #21759b 4%, #fff);
}
.crm-sale-channel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.crm-sale-channel--boutique {
  color: var(--fitzu-accent-text, var(--fitzu-accent));
}
.crm-sale-channel--boutique i {
  color: var(--fitzu-accent);
}
.crm-sale-channel--online {
  color: #21759b;
}
.crm-sale-channel--online i {
  color: #21759b;
}
.crm-sales-online-hint {
  margin: 8px 0 0;
  font-size: 12px;
}
.crm-sales-online-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
}
.crm-sale-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 4px;
  font-size: 12px;
}
.crm-sale-card-date { font-weight: 600; }
.crm-sale-card-seller { color: var(--ink-soft); }
.crm-sale-card-origin { color: var(--ink-soft); font-size: 12px; }
.crm-sale-card-total {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.crm-sale-card-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 1.35;
}
.crm-sale-card-lines li {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 10px;
  justify-content: space-between;
  padding: 4px 0;
  border-top: 1px dashed color-mix(in srgb, var(--line) 70%, transparent);
}
.crm-sale-card-lines li:first-child { border-top: none; }
.crm-sale-card-line-thumb {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: color-mix(in srgb, var(--line) 35%, #fff);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.crm-sale-card-line-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.crm-sale-card-line-label {
  flex: 1 1 auto;
  min-width: 0;
}
.crm-sale-card-line-price {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}
@media (min-width: 768px) {
  .crm-sale-card-line-thumb {
    width: 48px;
    height: 48px;
  }
}
.crm-sale-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.crm-sale-edit-btn,
.crm-seller-sale-edit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}
.crm-sale-edit-btn > i,
.crm-seller-sale-edit > i {
  font-size: 11px;
}
.crm-sale-edit-btn:hover,
.crm-sale-edit-btn:focus-visible,
.crm-seller-sale-edit:hover,
.crm-seller-sale-edit:focus-visible {
  color: var(--fitzu-accent);
  border-color: var(--fitzu-accent);
  background: var(--fitzu-accent-soft);
  outline: none;
}
.crm-sales-empty {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
}
.crm-stat-seller .crm-stat-metrics {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
  width: 100%;
}
.crm-stat-seller .crm-stat-metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  font-size: 10px;
  line-height: 1.2;
  color: var(--ink-soft);
}
.crm-stat-seller .crm-stat-metric-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.crm-stat-seller .crm-stat-metric--ca {
  color: var(--fitzu-accent);
}
.crm-stat-seller .crm-stat-metric--ca .crm-stat-metric-value {
  font-size: 13px;
  font-weight: 300;
  color: var(--fitzu-accent);
}
.cards.crm-stats-cards .crm-stat-card.crm-stat-seller {
  min-width: 110px;
  min-height: 96px;
  padding: 8px 8px 6px;
  box-sizing: border-box;
}
.cards.crm-stats-cards .crm-stat-card.crm-stat-seller .value {
  display: none;
}

/* Panneau ventes par vendeur (caisse dense) */
.crm-seller-sales-panel {
  margin: 0 0 14px;
  padding: 10px 12px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--fitzu-accent) 4%, #fff);
}
.crm-seller-sales-panel.hidden { display: none; }
.crm-seller-sales-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 8px;
}
.crm-seller-sales-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
.crm-seller-sales-sub {
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.35;
}
.crm-seller-sales-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: min(42vh, 360px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.crm-seller-sale-row {
  display: flex;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: transparent;
  color: inherit;
}
.crm-seller-sale-row:last-child { border-bottom: none; }
.crm-seller-sale-main {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1.1fr) 5.5rem minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 6px 10px;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 7px 6px 7px 10px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.crm-seller-sale-row:hover,
.crm-seller-sale-main:hover,
.crm-seller-sale-main:focus-visible {
  background: color-mix(in srgb, var(--fitzu-accent) 10%, #fff);
  outline: none;
}
.crm-seller-sale-edit {
  flex: 0 0 auto;
  align-self: center;
  margin-right: 6px;
}
.crm-seller-sale-date {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.crm-seller-sale-client {
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crm-seller-sale-total {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--fitzu-accent-text);
  text-align: right;
  white-space: nowrap;
}
.crm-seller-sale-summary {
  font-size: 11px;
  color: var(--ink-soft);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crm-seller-sales-empty {
  margin: 0;
  padding: 14px 12px;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
}
.crm-seller-sales-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.crm-seller-sales-status {
  margin: 0;
  font-size: 11px;
}
@media (max-width: 720px) {
  .crm-seller-sale-row {
    flex-wrap: wrap;
    padding: 4px 0;
  }
  .crm-seller-sale-main {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "date total"
      "client client"
      "payment payment"
      "summary summary";
    gap: 2px 8px;
    padding: 6px 8px;
    width: 100%;
  }
  .crm-seller-sale-date { grid-area: date; }
  .crm-seller-sale-total { grid-area: total; }
  .crm-seller-sale-client { grid-area: client; }
  .crm-seller-sale-payment { grid-area: payment; }
  .crm-seller-sale-summary { grid-area: summary; white-space: normal; }
  .crm-seller-sale-edit {
    margin: 0 8px 6px auto;
  }
}

.crm-add-form {
  margin: 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0;
}
.crm-add-modal-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.crm-add-section {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  min-width: 0;
}
.crm-add-section--optional {
  background: color-mix(in srgb, var(--bg, #f7f5f1) 70%, #fff);
}
.crm-add-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin: 0 0 8px;
  padding: 0 0 6px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.crm-add-section-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}
.crm-add-section-sub {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-soft);
}
.crm-add-section-sub .sa-required {
  font-size: 11px;
}
.crm-add-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  margin: 0;
  align-items: start;
}
.crm-add-grid--seller {
  grid-template-columns: 1fr;
}
/* Section vendeur : fond/bordure neutres (hérite de .crm-add-section) ;
   accent orange uniquement sur le select « Choisir un vendeur » */
.crm-add-section--seller select {
  border: 2px solid var(--fitzu-accent);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.crm-add-section--seller select:focus,
.crm-add-section--seller select:focus-visible {
  outline: none;
  border-color: var(--fitzu-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fitzu-accent) 18%, transparent);
}
.crm-add-grid--shop {
  grid-template-columns: 1fr 1fr;
}
.crm-add-grid--address {
  grid-template-columns: 1.2fr 0.8fr 1fr;
}
.crm-add-form .sa-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 0;
  font-size: 14px;
  min-width: 0;
}
.crm-add-form .sa-field > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.2;
}
.crm-add-form .sa-field input,
.crm-add-form .sa-field select,
.crm-add-form .sa-field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.3;
  min-height: 38px;
  height: 38px;
  min-width: 0;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.crm-add-form .sa-field textarea {
  height: auto;
  min-height: 56px;
  max-height: 120px;
  resize: vertical;
  padding: 8px 10px;
}
.crm-add-form .sa-field input:focus,
.crm-add-form .sa-field select:focus,
.crm-add-form .sa-field textarea:focus {
  outline: none;
  border-color: var(--fitzu-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fitzu-accent) 18%, transparent);
}
.crm-add-notes-field { margin: 0; }
.crm-add-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0;
  position: relative;
  background: #fff;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--line);
  z-index: 1;
  flex-shrink: 0;
}
/* Erreur collée au footer (toujours visible, hors zone scroll) */
.crm-add-error {
  flex: 1 0 100%;
  order: -1;
  margin: 0 0 4px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #f0b4ae;
  background: #fdecea;
  color: #8f1d16;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 1px 0 color-mix(in srgb, #b3261e 12%, transparent);
}
.crm-add-error:not(.hidden) {
  animation: crm-add-error-pulse 0.55s ease;
}
.crm-add-error--dup,
#crm-sale-create-error.crm-dup-banner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  text-align: left;
  font-weight: 500;
}
.crm-add-error--dup .crm-dup-msg,
#crm-sale-create-error.crm-dup-banner .crm-dup-msg {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
}
.crm-dup-existing {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.crm-dup-name {
  font-size: 14px;
  font-weight: 700;
}
.crm-dup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
}
.crm-dup-meta-item::before {
  content: '';
}
.crm-dup-cta {
  align-self: stretch;
  width: 100%;
  min-height: 42px;
  margin-top: 2px;
}
#crm-sale-create-error.crm-dup-banner {
  margin: 12px 0 8px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #f0b4ae;
  background: #fdecea;
  color: #8f1d16;
  text-align: left;
}
#crm-sale-create-error.crm-dup-banner .crm-dup-cta {
  background: var(--fitzu-accent);
  color: #fff;
  border: none;
}
@keyframes crm-add-error-pulse {
  0% { transform: scale(0.98); opacity: 0.55; }
  40% { transform: scale(1.01); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.crm-add-hint {
  margin: 0;
  flex: 1 1 180px;
  font-size: 12px;
  line-height: 1.35;
}
.crm-add-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  flex: 0 0 auto;
}
.crm-add-actions .btn-crm-sale,
.crm-add-actions .btn-secondary {
  min-height: 40px;
  padding: 10px 18px;
  font-size: 14px;
}
.crm-detail-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 8px 0 0;
  border-top: 1px solid var(--line);
  z-index: 1;
  flex-shrink: 0;
}
.crm-detail-actions {
  justify-content: space-between;
}
.crm-detail-contact-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.crm-detail-main-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
  justify-content: flex-end;
}
.crm-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  min-width: 0;
}
.crm-detail-zone dt {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.15;
}
.crm-detail-zone dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: normal;
  min-width: 0;
}
.crm-detail-item--wide {
  grid-column: 1 / -1;
}
.crm-detail-item--wide dd {
  word-break: normal;
  overflow-wrap: anywhere;
  white-space: normal;
}
@media (min-width: 640px) {
  .crm-pos-grid {
    grid-template-columns: 1fr 1fr;
  }
  .crm-detail-zone--identity .crm-pos-grid,
  .crm-detail-zone--visits .crm-pos-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 768px) {
  .modal-card.crm-modal-card.crm-detail-modal-card {
    max-width: min(680px, 94vw);
    width: min(680px, 94vw);
  }
  .modal-card.crm-modal-card.crm-add-modal-card {
    max-width: min(640px, 92vw);
    width: min(640px, 92vw);
    max-height: min(calc(100dvh - 64px), calc(100vh - 64px), 720px);
  }
  .modal-card.crm-modal-card.crm-sale-modal-card {
    max-width: min(608px, 92vw);
    width: min(608px, 92vw);
    max-height: min(calc(100dvh - 64px), calc(100vh - 64px), 720px);
  }
  .crm-pos-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  /* Fiche détail : Identité | Visites en haut, Ventes full width en dessous */
  .crm-detail-zones {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 12px;
    align-items: start;
  }
  .crm-detail-zone--sales,
  #crm-detail-sales-zone {
    grid-column: 1 / -1;
  }
  .crm-detail-zone--identity .crm-pos-grid {
    grid-template-columns: 1fr 1fr;
  }
  .crm-detail-zone--visits .crm-pos-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .crm-add-grid,
  .crm-add-grid--shop,
  .crm-add-grid--address {
    grid-template-columns: 1fr 1fr;
  }
  .crm-add-grid--identity .crm-add-field--birthday,
  .crm-add-grid .sa-field--full {
    grid-column: 1 / -1;
  }
  .crm-add-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .crm-add-actions {
    width: 100%;
    justify-content: stretch;
  }
  .crm-add-actions .btn-crm-sale,
  .crm-add-actions .btn-secondary {
    flex: 1 1 auto;
  }
  .crm-detail-actions {
    flex-wrap: wrap;
  }
  .crm-detail-main-actions {
    margin-left: 0;
    width: 100%;
  }
}
.crm-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.crm-row-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
}
.crm-row-action-btn:hover,
.crm-row-action-btn:focus-visible {
  color: var(--fitzu-accent);
  border-color: var(--fitzu-accent);
  background: var(--fitzu-accent-soft);
}
.crm-row-action-btn--danger:hover,
.crm-row-action-btn--danger:focus-visible { color: #8a2929; border-color: #8a2929; background: #fff; }
.crm-row-action-btn--call {
  color: var(--fitzu-accent);
  background: var(--fitzu-accent-soft);
  border-color: color-mix(in srgb, var(--fitzu-accent) 35%, #fff);
  text-decoration: none;
}
.crm-row-action-btn--call:hover {
  color: var(--fitzu-accent-text);
  background: color-mix(in srgb, var(--fitzu-accent) 14%, #fff);
  border-color: var(--fitzu-accent);
}
.crm-row-action-btn--wa { color: #128c7e; background: #e7f8f0; border-color: #b8e6d4; text-decoration: none; font-size: 15px; }
.crm-row-action-btn--wa:hover,
.crm-row-action-btn--wa:focus-visible {
  color: #0d6b5f;
  background: #d8f3e8;
  border-color: #8fd4b8;
}
.crm-row-action-btn--disabled {
  color: var(--muted);
  background: #f5f4f2;
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}
a.crm-row-action-btn { text-decoration: none; }
.sa-required { font-style: normal; color: var(--fitzu-accent-text, #C73520); }
.sa-required--or { opacity: 0.85; }
.sa-field--full { grid-column: 1 / -1; }
.sa-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
  min-height: 72px;
}
.crm-notes-preview-wrap {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.crm-notes-preview {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crm-notes-preview--empty { font-style: italic; }
.crm-notes-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #faf9f7;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.crm-notes-toggle:hover { background: #f0eee9; color: var(--ink); }
.crm-notes-toggle[aria-expanded="true"] { transform: rotate(180deg); }
.crm-notes-row td {
  padding: 0 14px 12px;
  background: #faf8f4;
  border-bottom: 1px solid var(--line);
}
.crm-notes-panel {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.crm-notes-full {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
  cursor: pointer;
}
.crm-notes-full.muted { cursor: default; }
.crm-notes-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.crm-notes-edit-btn {
  border: none;
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.crm-notes-edit-btn:hover { color: var(--accent); }
.crm-notes-close.btn-secondary,
.crm-notes-cancel-edit.btn-secondary { padding: 6px 12px; font-size: 12px; }
.crm-notes-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
  min-height: 140px;
  background: #fff;
}
#crm-add-notes {
  min-height: 140px;
  resize: vertical;
}
.crm-notes-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.crm-notes-actions .btn-secondary { padding: 6px 12px; font-size: 12px; }
.crm-notes-status { margin: 0; font-size: 11px; }
.crm-contact-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}
.crm-call-btn,
.crm-email-btn,
.crm-sms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}
.crm-call-btn {
  color: var(--fitzu-accent);
  background: var(--fitzu-accent-soft);
  border: 1px solid color-mix(in srgb, var(--fitzu-accent) 35%, #fff);
}
.crm-call-btn:hover {
  color: var(--fitzu-accent-text);
  background: color-mix(in srgb, var(--fitzu-accent) 14%, #fff);
  border-color: var(--fitzu-accent);
}
.crm-call-btn--disabled {
  color: var(--muted);
  background: #f5f4f2;
  border-color: var(--line);
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}
.crm-email-btn {
  color: #245b8a;
  background: #eef5fb;
  border: 1px solid #c5d9eb;
}
.crm-email-btn:hover {
  color: #1a4568;
  background: #dfeaf5;
  border-color: #245b8a;
}
.crm-sms-btn {
  color: #2a6b5a;
  background: #eef8f4;
  border: 1px solid #c5e0d8;
}
.crm-sms-btn:hover {
  color: #1d4f42;
  background: #dceee7;
  border-color: #2a6b5a;
}
.crm-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  color: #128c7e;
  background: #e7f8f0;
  border: 1px solid #b8e6d4;
  text-decoration: none;
  flex-shrink: 0;
}
.crm-wa-btn:hover {
  background: #d4f1e4;
  border-color: #128c7e;
}

/* CRM mobile / tablette : cartes (œil, nom, prénom, email, tél, WA) */
@media (max-width: 900px) {
  #view-crm .sa-page-head.row-between,
  #view-crm .crm-page-head.sa-page-head {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
    margin-top: 12px;
    padding-top: 6px;
    margin-bottom: 18px;
  }
  #view-crm .crm-page-head > .crm-search-bar {
    max-width: none;
    width: 100%;
    min-width: 0;
  }
  #view-crm .crm-page-head > .crm-toolbar {
    margin-left: 0;
    width: 100%;
  }
  .crm-toolbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .crm-toolbar > .btn-primary,
  .crm-toolbar > .btn-secondary,
  .crm-toolbar > .btn-crm-sale {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  .crm-toolbar > .btn-crm-sale,
  .crm-toolbar > .btn-primary,
  #crm-add-contact-btn {
    padding: 12px 16px;
    font-size: 14px;
    min-height: 44px;
    border-radius: 999px;
  }
  .crm-toolbar-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .crm-toolbar-secondary > .btn-secondary {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    padding: 11px 10px;
    font-size: 12px;
    line-height: 1.25;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }
  .crm-toolbar-secondary > .btn-secondary:only-child,
  #crm-sync-wc-btn.hidden + #csv-link {
    grid-column: 1 / -1;
  }
  .crm-search-hint {
    font-size: 13px;
    margin-bottom: 8px;
  }
  .crm-search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 0;
    background: transparent;
    border: none;
  }
  .cards.crm-stats-cards {
    flex-wrap: nowrap;
    gap: 6px;
    margin-bottom: 10px;
  }
  .cards.crm-stats-cards > .crm-stat-total {
    flex: 0 0 auto;
    align-self: stretch;
    width: auto;
    min-width: 4.75rem;
    max-width: 34%;
    min-height: 52px;
    padding: 6px 8px;
  }
  .crm-stats-scroll-track {
    flex: 1 1 auto;
    align-items: stretch;
    min-width: 0;
    gap: 6px;
    padding-block: 3px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .crm-stats-scroll-track::-webkit-scrollbar {
    display: none;
  }
  .crm-stats-scroll-track .crm-stat-card {
    flex: 0 0 auto;
    align-self: stretch;
    min-width: 4.5rem;
    min-height: 52px;
    width: max-content;
    max-width: none;
    padding: 6px 8px;
    scroll-snap-align: start;
  }
  .cards.crm-stats-cards .crm-stat-card.crm-stat-seller {
    min-height: 88px;
  }
  .cards.crm-stats-cards .crm-stat-card.crm-stat-seller[aria-pressed="true"] {
    min-height: 104px;
    padding: 10px 8px 8px;
  }
  .cards.crm-stats-cards .crm-stat-card .value { font-size: 16px; margin-top: 2px; }
  .cards.crm-stats-cards .crm-stat-card .label { font-size: 8px; letter-spacing: 0.2px; }
  .crm-search-label { flex: 1 1 auto; }

  .crm-table-wrap {
    overflow: visible;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  #crm-table,
  #crm-table.data-table {
    display: block;
    width: 100%;
    min-width: 0;
    table-layout: auto;
    border: 0;
  }
  #crm-table thead {
    display: none;
  }
  #crm-table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  #crm-table tbody tr.crm-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas:
      "view name actions"
      "view firstname actions"
      "view email actions";
    gap: 2px 10px;
    align-items: center;
    margin: 0;
    padding: 12px 12px 12px 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(20, 18, 14, 0.04);
  }
  #crm-table tbody tr.crm-row > td {
    display: block;
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
  }
  #crm-table .crm-col-view {
    grid-area: view;
    align-self: start;
    padding-top: 2px;
  }
  #crm-table .crm-col-name {
    grid-area: name;
    font-weight: 600;
    font-size: 15px;
  }
  #crm-table .crm-col-firstname {
    grid-area: firstname;
    color: var(--ink);
  }
  #crm-table .crm-col-email {
    grid-area: email;
    color: var(--ink-soft);
    font-size: 13px;
  }
  #crm-table .crm-col-actions {
    grid-area: actions;
    align-self: center;
    width: auto;
    min-width: 0;
    text-align: right;
    white-space: nowrap;
  }
  #crm-table .crm-col-phone,
  #crm-table .crm-col-notes,
  #crm-table .crm-col-created,
  #crm-table .crm-col-source,
  #crm-table .crm-notes-row,
  #crm-table .crm-edit-btn {
    display: none !important;
  }
  #crm-table .crm-view-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  #crm-table .crm-row-actions {
    gap: 6px;
  }
  #crm-table .crm-row-action-btn {
    width: 36px;
    height: 36px;
  }
  #crm-table tbody tr:not(.crm-row) {
    display: block;
    padding: 18px 12px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    background: #faf9f7;
    text-align: center;
  }
  #crm-table tbody tr:not(.crm-row) td {
    display: block;
    border: 0;
    padding: 0;
  }
  .crm-call-btn,
  .crm-email-btn,
  .crm-sms-btn,
  .crm-wa-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

@media (max-width: 430px) {
  #crm-table tbody tr.crm-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    padding: 10px 10px 10px 6px;
    gap: 2px 8px;
  }
  #crm-table .crm-view-btn,
  #crm-table .crm-row-action-btn {
    width: 34px;
    height: 34px;
  }
  #crm-table .crm-col-name { font-size: 14px; }
  #crm-table .crm-col-email { font-size: 12px; }
}

/* Modale */
.modal, .overlay {
  position: fixed; inset: 0; background: rgba(20, 18, 14, .55);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; backdrop-filter: blur(4px);
  padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  overflow-y: auto;
}
.modal-card, .overlay-card, .result-card {
  background: white; border-radius: 16px; padding: 32px;
  max-width: 460px; width: 92%; box-shadow: var(--shadow);
  position: relative;
}
/* CRM : ne pas laisser .modal-card (460px) écraser fiche / édition / vente */
.modal-card.crm-modal-card.crm-detail-modal-card {
  max-width: min(680px, 94vw);
  width: min(680px, 94vw);
  height: auto;
}
.modal-card.crm-modal-card.crm-add-modal-card {
  max-width: min(640px, 94vw);
  width: min(640px, 94vw);
  max-height: min(calc(100dvh - 64px), calc(100vh - 64px), 720px);
  height: auto;
}
/* Nouvelle vente : re-assert APRÈS .modal-card (même pattern que add) */
.modal-card.crm-modal-card.crm-sale-modal-card {
  max-width: min(608px, 94vw);
  width: min(608px, 94vw);
  max-height: min(calc(100dvh - 64px), calc(100vh - 64px), 720px);
  height: auto;
}
.modal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none;
  font-size: 28px; line-height: 1;
  color: var(--ink-soft); cursor: pointer;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.modal-close:hover { background: var(--bg); color: var(--ink); }
.modal-card h3, .overlay-card h3, .result-card h3 {
  font-family: var(--font-sans);
  font-size: 24px; margin: 0 0 8px;
}
.muted { color: var(--ink-soft); font-size: 14px; }
#contact-form label {
  display: block; margin: 18px 0 6px;
  font-size: 13px; font-weight: 500; color: var(--ink);
}
#contact-form input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-family: inherit; font-size: 15px;
}
#contact-form input:focus { outline: none; border-color: var(--accent); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }

/* Overlay loading */
.overlay-card { text-align: center; }
.spinner {
  width: 50px; height: 50px; margin: 0 auto 18px;
  border: 4px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.overlay-card-stream { max-width: 480px; }

/* Zone de génération cinématographique */
.scan-wrap {
  position: relative; width: 100%; aspect-ratio: 2/3;
  background: #1a1814; border-radius: 12px; overflow: hidden;
  margin-bottom: 18px;
  transform-origin: center center;
}
.scan-wrap.gen-phase-active {
  animation: genBreathe 4s ease-in-out infinite;
}
@keyframes genBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.01); }
}
.scan-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(0);
  transition: filter 0.8s ease, opacity 0.4s ease;
}
.scan-wrap.gen-phase-active .scan-photo {
  filter: blur(2.5px);
}
.scan-wrap.gen-revealing .scan-photo {
  opacity: 0;
}
/* Lueur maquillage / coiffure sur le visage */
.beauty-shimmer {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.scan-wrap.gen-beauty-active .beauty-shimmer {
  opacity: 1;
  background: radial-gradient(ellipse 75% 45% at 50% 26%,
    rgba(255, 196, 172, 0.32) 0%,
    rgba(255, 148, 128, 0.12) 38%,
    transparent 68%);
  animation: beautyGlow 2.6s ease-in-out infinite;
}
.scan-wrap.gen-hair-active .beauty-shimmer {
  opacity: 1;
  background: linear-gradient(165deg,
    rgba(255, 250, 242, 0.22) 0%,
    transparent 32%,
    rgba(255, 236, 210, 0.14) 48%,
    transparent 72%);
  animation: hairGloss 2.4s ease-in-out infinite;
}
@keyframes beautyGlow {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}
@keyframes hairGloss {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(-3%); opacity: 1; }
}
.scan-wrap.gen-revealing .beauty-shimmer,
.scan-wrap.gen-revealing-done .beauty-shimmer {
  opacity: 0;
  animation: none;
}
/* Voile centré pour lisibilité du texte */
.scan-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 58% at 50% 40%,
    rgba(20, 18, 14, 0.84) 0%,
    rgba(20, 18, 14, 0.48) 42%,
    rgba(20, 18, 14, 0.12) 62%,
    transparent 78%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.scan-wrap.gen-revealing .scan-overlay {
  opacity: 1;
}
.scan-wrap.gen-revealing-done .scan-overlay {
  opacity: 0;
}
/* Lumière diffuse de studio, gauche → droite */
.studio-sweep {
  position: absolute; inset: 0;
  background: linear-gradient(105deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 248, 235, 0.07) 46%,
    rgba(255, 248, 235, 0.13) 50%,
    rgba(255, 248, 235, 0.07) 54%,
    transparent 62%,
    transparent 100%);
  background-size: 220% 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.scan-wrap.gen-phase-active .studio-sweep {
  opacity: 1;
  animation: studioSweep 7s ease-in-out infinite;
}
@keyframes studioSweep {
  0% { background-position: -120% 0; }
  100% { background-position: 220% 0; }
}
.scan-wrap.gen-revealing .studio-sweep {
  opacity: 0;
  animation: none;
}
/* Texte d'étape unique — centré verticalement sur l'image */
.gen-image-ui {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 22px;
  z-index: 2;
  pointer-events: none;
  text-align: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.scan-wrap.gen-revealing .gen-image-ui {
  opacity: 1;
}
.scan-wrap.gen-revealing-done .gen-image-ui {
  opacity: 0;
}
.gen-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 300px;
  margin: 0 auto;
}
.gen-step-counter {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1;
  transition: opacity 0.35s ease;
}
.gen-step-label {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1.35;
  min-height: 1.35em;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.gen-step-label.gen-step-label-exit {
  opacity: 0;
  transform: translateY(-8px);
}
.gen-step-label.gen-step-label-enter {
  opacity: 0;
  transform: translateY(10px);
}
.scan-wrap.gen-phase-active .gen-step-label {
  animation: genLabelPulse 2.4s ease-in-out infinite;
}
.scan-wrap.gen-generate-active .gen-step-label {
  animation: genLabelPulse 1.6s ease-in-out infinite;
}
@keyframes genLabelPulse {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}
.gen-step-ellipsis {
  display: inline-flex;
  gap: 1px;
  margin-left: 1px;
  vertical-align: baseline;
}
.gen-step-ellipsis span {
  opacity: 0.25;
  animation: genEllipsisBlink 1.1s ease-in-out infinite;
}
.gen-step-ellipsis span:nth-child(2) { animation-delay: 0.18s; }
.gen-step-ellipsis span:nth-child(3) { animation-delay: 0.36s; }
@keyframes genEllipsisBlink {
  0%, 70%, 100% { opacity: 0.25; }
  35% { opacity: 1; }
}
.scan-wrap.gen-ready-active .gen-step-label {
  font-size: 22px;
  letter-spacing: 0.03em;
  animation: genReadyPulse 1.15s ease-in-out infinite;
}
.scan-wrap.gen-ready-active .gen-step-counter {
  color: rgba(255, 107, 74, 0.75);
}
@keyframes genReadyPulse {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
  }
  50% {
    transform: scale(1.04);
    text-shadow: 0 0 22px rgba(255, 74, 46, 0.5), 0 2px 16px rgba(0, 0, 0, 0.65);
  }
}
/* Image finale — révélation par flou artistique */
.final-reveal {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(24px);
  z-index: 3;
  transition: opacity 0.4s ease, filter 0.8s ease;
}
.final-reveal.revealing-blur {
  opacity: 1;
  filter: blur(24px);
}
.final-reveal.revealing-sharp {
  opacity: 1;
  filter: blur(0);
}
/* Barre de progression sous la carte blanche */
.gen-progress-block { margin-top: 6px; }
.gen-progress-track {
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.gen-progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fitzu-accent), #ff6b4a);
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .scan-wrap.gen-phase-active { animation: none; }
  .scan-wrap.gen-phase-active .studio-sweep {
    animation: none;
    opacity: 0.25;
    background-position: 50% 0;
  }
  .scan-wrap.gen-phase-active .scan-photo { filter: blur(1.5px); }
  .scan-wrap.gen-phase-active .gen-step-label { animation: none; opacity: 1; }
  .scan-wrap.gen-generate-active .gen-step-label { animation: none; opacity: 1; }
  .scan-wrap.gen-ready-active .gen-step-label { animation: none; opacity: 1; transform: none; }
  .gen-step-ellipsis span { animation: none; opacity: 0.85; }
  .gen-step-label.gen-step-label-exit,
  .gen-step-label.gen-step-label-enter { opacity: 1; transform: none; }
  .scan-wrap.gen-beauty-active .beauty-shimmer,
  .scan-wrap.gen-hair-active .beauty-shimmer { animation: none; opacity: 0.55; }
  .final-reveal { filter: none !important; transition: opacity 0.4s ease; }
  .final-reveal.revealing-blur { filter: none; }
}

/* Résultat */
.result-card { max-width: 520px; text-align: center; }
.result-card img {
  width: 100%; max-height: 60vh; object-fit: contain;
  border-radius: 12px; margin: 14px 0;
  background: #f0eae0;
}
.result-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }

/* === Admin === */
body.admin {
  background: #f7f5f1;
  /* Ne PAS redéfinir --fitzu-text-scale ici : ça écrasait la valeur posée sur <html> */
  zoom: var(--fitzu-text-scale, 1);
}
.admin-text-scale {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px;
  background: #fff;
}
.admin-text-scale-btn {
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.admin-text-scale-btn:hover:not(:disabled) {
  background: var(--fitzu-accent-soft);
  color: var(--fitzu-accent);
}
.admin-text-scale-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.admin-text-scale-reset {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
  padding-left: 6px;
  padding-right: 6px;
}
.admin-main { max-width: 1200px; margin: 0 auto; padding: 24px 32px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 26px; }
/* CRM stats : flex nowrap doit gagner sur .cards (grid) */
.cards.crm-stats-cards {
  display: flex;
  flex-wrap: nowrap;
  grid-template-columns: none;
}
.crm-stats-scroll-track {
  display: flex;
  flex-wrap: nowrap;
}
.card {
  background: var(--card);
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid #46464670;
  margin-bottom: 18px;
}
.stat-card .label { font-size: 12px; text-transform: uppercase; color: var(--ink-soft); letter-spacing: 1px; }
.stat-card .value { font-size: 28px; font-weight: 700; margin-top: 6px; font-family: var(--font-sans); }
.stat-card .sub { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }

.login { display: flex; justify-content: center; align-items: center; padding: 80px 20px; }
.login-card { background: white; padding: 36px; border-radius: var(--radius); width: 360px; box-shadow: var(--shadow); }
.login-card h2 { margin: 0 0 18px; font-family: var(--font-sans); }
.login-card input { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; margin-bottom: 18px; }

/* Écran de connexion admin — plein écran, sans chrome back-office */
body.admin.admin-boot #login-screen,
body.admin.admin-boot #admin-app {
  display: none !important;
}
body.admin.admin-gate {
  min-height: 100vh;
  background: linear-gradient(165deg, #faf7f3 0%, #f0ebe3 100%);
  overflow: hidden;
}
.admin-login {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px 20px;
}
.admin-login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  padding: 40px 36px 36px;
  text-align: center;
}
.admin-login-brand {
  margin-bottom: 4px;
}
.admin-login-logo {
  display: block;
  width: auto;
  max-width: min(100%, 260px);
  height: 52px;
  margin: 0 auto 12px;
  object-fit: contain;
}
.admin-login-brand--has-logo #admin-login-fitzu {
  margin-top: 4px;
}
.admin-login-brand--has-logo .sa-login-tagline,
.admin-login-brand--has-logo .sa-login-mark {
  font-size: 10px;
}
.admin-login-tag {
  margin: 0 0 28px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.admin-login-label {
  display: block;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.admin-login-card input[type="email"],
.admin-login-card .otp-input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  margin-bottom: 16px;
  background: #faf8f5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.admin-login-card input[type="email"]:focus,
.admin-login-card .otp-input:focus {
  outline: none;
  border-color: var(--fitzu-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fitzu-accent) 18%, transparent);
  background: #fff;
}
.admin-login-submit {
  width: 100%;
  margin-top: 4px;
}
.admin-login-card .muted {
  font-size: 14px;
  margin: 0 0 16px;
  line-height: 1.5;
}
.admin-login-card .auth-switch {
  margin-top: 14px;
}
.admin-login-card .otp-error {
  text-align: left;
  margin-bottom: 12px;
}

.gens-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gens-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.gens-select-all-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}
.gens-heart-hint {
  margin: 0 0 12px;
  font-size: 13px;
}
.btn-danger {
  border-color: #c45c5c;
  color: #8a2929;
}
.btn-danger:hover {
  border-color: #8a2929;
  color: #8a2929;
  background: #fdf5f5;
}
.gen-card { position: relative; background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gen-card--blacklisted {
  border-color: #e0a0a0;
  box-shadow: inset 0 0 0 1px rgba(138, 41, 41, 0.08);
}
.gen-card--featured {
  border-color: var(--fitzu-accent);
  box-shadow: inset 0 0 0 1px rgba(232, 120, 48, 0.12);
}
.gen-scene-prompt {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
  background: #faf8f4;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.gen-scene-prompt-label {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.gen-scene-prompt-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gen-scene-prompt-copy {
  align-self: flex-start;
  margin-top: 2px;
  font-size: 11px;
  padding: 4px 10px;
}
.gen-scene-prompt-copy.is-copied {
  color: var(--fitzu-accent);
  border-color: var(--fitzu-accent);
}
.gen-heart-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.gen-heart-btn:hover { color: var(--fitzu-accent); }
.gen-heart-btn.is-featured { color: var(--fitzu-accent); }
.gen-heart-btn i { font-size: 16px; }
.gen-heart-btn:disabled { opacity: 0.6; cursor: wait; }
.section-featured-looks {
  margin-top: 8px;
  margin-bottom: 8px;
}
.gen-card-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gen-card-actions .gen-blacklist-btn {
  font-size: 12px;
  padding: 6px 10px;
}
.gen-blacklist-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #fbe4e4;
  color: #8a2929;
  vertical-align: middle;
}
.gen-select {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
}
.gen-card .imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.gen-card .imgs img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.gen-card .info { padding: 12px 14px; }
.gen-card .info .name { font-weight: 600; font-size: 14px; }
.gen-card .info .gen-client { font-size: 13px; color: var(--ink); margin-top: 2px; }
.gen-card .info .meta { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.gen-card .info .gen-cost strong { color: var(--ink); font-weight: 600; }
.gen-card .info .gen-duration--slow strong { color: #8a2929; }
.gen-duration-breakdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}
.gen-duration-bar {
  display: inline-flex;
  width: 48px;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  background: #e8e4df;
  flex-shrink: 0;
}
.gen-dur-seg { display: block; height: 100%; min-width: 1px; }
.gen-dur-seg--prep { background: #9ca3af; }
.gen-dur-seg--api { background: #4a7fd4; }
.gen-dur-seg--post { background: #5a9e6f; }
.gen-status {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
}
.gen-status.success { background: #e8f3ec; color: #2c6b3f; }
.gen-status.failed  { background: #fbe4e4; color: #8a2929; }
.gen-status.pending { background: #fdf3d8; color: #7a5e15; }

/* === Switch de provider IA dans l'admin === */
.provider-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 14px;
}
.provider-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  background: white;
  transition: border-color .15s ease, background .15s ease;
}
.provider-option:hover { border-color: var(--accent); }
.provider-option.selected { border-color: var(--ink); background: #fdf6e9; }
.provider-option.disabled { opacity: 0.5; cursor: not-allowed; }
.provider-option input { margin: 0; }
.provider-option-name { font-weight: 600; font-size: 14px; }
.provider-option-model { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
@media (max-width: 600px) {
  .provider-switch { grid-template-columns: 1fr; }
}

.data-table { width: 100%; border-collapse: collapse; background: white; border-radius: var(--radius); overflow: hidden; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; font-size: 14px; }
.data-table th { background: #f0eee9; font-weight: 600; }
.data-table tr { border-bottom: 1px solid var(--line); }
.data-table tr:last-child { border-bottom: none; }

/* ============================================================
   Mon profil : photo de référence, accordéons, carte morphologie
   ============================================================ */

.gallery-page .gallery-page-title,
.profile-page .gallery-page-title {
  color: var(--ink);
}

.gallery-page .gallery-page-title .fa-clothes-hanger {
  margin-right: 0.35em;
}

.profile-page .fitting-eyebrow,
.profile-page .color-eyebrow {
  color: var(--fitzu-accent);
}

.profile-page .profile-fact i,
.profile-page #pq-morpho-icon,
.profile-page .pq-dots > i,
.profile-page .pq-go,
.profile-page .accordion-label i,
.profile-page .season-head i,
.profile-page .reference-actions .upload-btn-secondary i {
  color: var(--fitzu-accent);
}

.profile-page .pq-value.pq-todo {
  color: var(--fitzu-accent);
}

.profile-page .profile-quick-item:hover {
  border-color: var(--fitzu-accent);
  background: var(--fitzu-accent-soft);
}

.profile-page .reference-gallery-badge {
  background: var(--fitzu-accent-soft);
  color: var(--fitzu-accent);
}

.profile-page .reference-gallery-item.is-selected,
.profile-page .reference-photo-item.is-selected {
  border-color: var(--fitzu-accent);
  box-shadow: 0 0 0 2px rgba(255, 74, 46, 0.28);
}

.profile-page .reference-gallery-item.is-default,
.profile-page .reference-photo-item.is-default {
  border-color: var(--fitzu-accent);
}

/* --- Accordéon --- */
.accordion {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 18px;
  overflow: hidden;
  scroll-margin-top: 140px;
}
.accordion-head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: none; border: none; cursor: pointer;
  font: inherit; color: var(--ink); text-align: left;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.accordion-label {
  font-family: var(--font-sans);
  font-size: 18px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
}
.accordion-label i { color: var(--accent-dark); font-size: 16px; }
.accordion-chevron { color: var(--ink-soft); transition: transform .25s ease; }
.accordion.collapsed .accordion-chevron { transform: rotate(-90deg); }
.accordion-body { padding: 0 22px 6px; }
.accordion.collapsed .accordion-body { display: none; }
.accordion .color-card,
.accordion .morpho-card { border: none; padding: 6px 0 18px; margin: 0; }
.accordion-empty { padding: 0 0 18px; font-size: 13px; }

/* --- Carte morphologie --- */
.morpho-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.morpho-chip {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  background: #fdfbf7; border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--ink);
}
.morpho-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.morpho-list li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px;
  background: #fdfbf7; border: 1px solid var(--line);
  border-radius: 10px;
}
.morpho-li-name { font-weight: 600; font-size: 13px; }
.morpho-li-why { font-size: 12px; color: var(--ink-soft); }
.morpho-list-avoid li { opacity: .85; }
.morpho-list-avoid .morpho-li-name {
  text-decoration: line-through; text-decoration-color: var(--ink-soft);
}

/* --- Carte photo d'analyse (morphologie + colorimétrie) --- */
.analysis-photo-card {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 18px;
}
.analysis-photo-head { margin-bottom: 16px; }
.analysis-photo-title {
  font-family: var(--font-sans);
  font-size: 20px; font-weight: 600; margin: 4px 0 6px;
}
.analysis-photo-sub { font-size: 13px; margin: 0; line-height: 1.55; }
.analysis-photo-sub strong { font-weight: 600; }
.analysis-photo-preview { margin-bottom: 14px; }
.analysis-photo-img {
  width: 120px; height: 200px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line);
}
.analysis-photo-empty { font-size: 13px; margin: 0 0 14px; }
.analysis-photo-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
}

/* --- Carte photos d'essayage (Mon profil) --- */
.reference-card {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 18px;
}
.reference-head { margin-bottom: 16px; }
.reference-title {
  font-family: var(--font-sans);
  font-size: 20px; font-weight: 600; margin: 4px 0 6px;
}
.reference-sub { font-size: 13px; margin: 0; line-height: 1.5; }
.reference-preview { margin-bottom: 16px; }
.reference-preview img {
  width: 160px; height: 200px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line);
}
.reference-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  width: 100%;
}
.reference-photo-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: #fdfbf7;
}
.reference-photo-item.is-selected { border-color: var(--accent); }
.reference-photo-item img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block;
}
.reference-photo-badge {
  position: absolute; top: 6px; left: 6px;
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; padding: 2px 6px; border-radius: 4px;
  background: rgba(0,0,0,.55); color: #fff;
}
.reference-photo-delete {
  position: absolute; top: 6px; right: 6px;
  width: 26px; height: 26px; border: none; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; line-height: 1;
}
.reference-photo-delete:hover { background: #b3261e; }
.reference-max-hint { margin: 10px 0 0; font-size: 13px; text-align: center; width: 100%; }
.reference-choice-list { display: grid; gap: 10px; margin-bottom: 8px; }
.reference-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.reference-status {
  margin-top: 14px; font-size: 13px; color: var(--ink-soft);
  display: flex; align-items: center; gap: 8px;
}
.reference-status.error { color: #b3261e; }

/* Galerie photos de référence (Mon profil) */
.reference-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  width: 100%;
  margin-bottom: 16px;
}
.reference-gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: #faf7f2;
  aspect-ratio: 3/4;
  cursor: pointer;
}
.reference-gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.reference-gallery-item.is-selected {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 2px rgba(139, 94, 60, 0.25);
}
.reference-gallery-item.is-dragging { opacity: 0.45; }
.reference-gallery-item.drag-over {
  border-color: var(--accent-dark);
  box-shadow: inset 0 0 0 2px rgba(139, 94, 60, 0.35);
}
.reference-gallery--product.reference-gallery--single {
  display: flex;
  justify-content: center;
  overflow-x: visible;
  margin-bottom: 4px;
}
.reference-gallery--product.reference-gallery--single .reference-gallery-item {
  flex: 0 0 auto;
  width: min(220px, 72vw);
  max-width: 280px;
  aspect-ratio: 3/4;
}
.reference-gallery--product.reference-gallery--multi .reference-gallery-item {
  flex: 0 0 88px;
  width: 88px;
}
.upload-zone .link-button { margin-top: 12px; width: 100%; text-align: center; }
.reference-gallery-badge {
  position: absolute; top: 6px; left: 6px;
  background: var(--accent-dark); color: white;
  font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px;
  letter-spacing: 0.02em;
}
.reference-gallery-delete {
  position: absolute; top: 4px; right: 4px;
  width: 28px; height: 28px; border: none; border-radius: 50%;
  background: rgba(0,0,0,0.55); color: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.reference-gallery-delete:hover { background: rgba(179, 38, 30, 0.85); }
.reference-gallery-item.is-dragging { opacity: 0.45; }
.reference-gallery-item.drag-over { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(139, 94, 60, 0.35); }
.reference-count { font-size: 12px; margin: -8px 0 12px; }
.reference-gallery-hint { font-size: 12px; margin: -8px 0 12px; }

/* Galerie horizontale compacte (fiche produit) */
.reference-gallery--horizontal {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
  grid-template-columns: unset;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 0;
  padding-bottom: 4px;
}
.reference-gallery--horizontal::-webkit-scrollbar { display: none; }
.reference-gallery--horizontal .reference-gallery-item {
  flex: 0 0 72px;
  width: 72px;
  aspect-ratio: 3/4;
  padding: 0;
  font: inherit;
  color: inherit;
  background: #faf7f2;
}
.reference-gallery--horizontal .reference-gallery-item:focus-visible {
  outline: 2px solid var(--fitzu-accent);
  outline-offset: 2px;
}
.reference-gallery--product .reference-gallery-item.is-default {
  border-color: var(--fitzu-accent);
}
.reference-gallery--product .reference-gallery-badge {
  background: var(--fitzu-accent-soft);
  color: var(--fitzu-accent);
}
.reference-gallery--product .reference-gallery-item.is-selected {
  border-color: var(--fitzu-accent);
  box-shadow: 0 0 0 2px rgba(255, 74, 46, 0.28);
}
.reference-gallery--product .reference-gallery-item.drag-over {
  border-color: var(--fitzu-accent);
  box-shadow: inset 0 0 0 2px rgba(255, 74, 46, 0.35);
}
.reference-gallery--horizontal .reference-gallery-badge {
  font-size: 9px;
  padding: 1px 4px;
}
.reference-actions.is-disabled label {
  opacity: 0.45; pointer-events: none; cursor: not-allowed;
}

/* --- Choix photo de référence (page produit) --- */
.reference-choice-lead { font-size: 13px; margin: 0 0 8px; }
.reference-choice-list { display: grid; gap: 8px; }
.reference-choice { margin-bottom: 16px; display: grid; gap: 10px; }
.reference-choice-btn {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 12px 14px;
  background: #fdfbf7; border: 1px solid var(--accent);
  border-radius: 12px; cursor: pointer; text-align: left;
  font: inherit; color: var(--ink); transition: background .2s;
}
.reference-choice-btn:hover { background: #f7efe1; }
.reference-choice-img {
  flex: 0 0 56px; width: 56px; height: 72px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line);
}
.reference-choice-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.reference-choice-text strong {
  font-size: 14px; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis;
}
.reference-choice-arrow { flex: 0 0 auto; }
.reference-choice-text .muted { font-size: 12px; }
.reference-choice-btn > i { color: var(--accent-dark); }
.reference-choice .link-button { align-self: center; }

/* CTA photo manquante (fiche produit) */
.reference-missing-cta {
  margin-bottom: 18px;
  display: grid;
  gap: 12px;
  text-align: center;
  justify-items: center;
}
.reference-missing-cta .btn-add-photo {
  width: auto;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border-radius: 999px;
  transition: background .15s ease, border-color .15s ease;
}
.reference-missing-cta .btn-add-photo i {
  margin-right: 0;
  font-size: 14px;
}
.reference-missing-cta .btn-add-photo:hover {
  background: var(--fitzu-accent);
  border-color: var(--fitzu-accent);
  color: #fff;
}
.reference-missing-hint { font-size: 13px; margin: 0; line-height: 1.5; max-width: 36ch; margin-inline: auto; }

/* Modale génération déjà en cours */
.gen-in-progress-card {
  max-width: 400px;
  text-align: center;
  background: linear-gradient(165deg, #fffdf9 0%, #faf3e8 100%);
  border: 1px solid var(--line);
}
.gen-in-progress-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(168, 135, 88, 0.35);
}
.gen-in-progress-card h3 { font-size: 22px; margin-bottom: 10px; }
.gen-in-progress-msg { line-height: 1.55; margin: 0; }
.gen-in-progress-actions {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}
.gen-in-progress-actions .btn-large {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

/* Modale orientation photo de référence */
.ref-prompt-card { max-width: 420px; text-align: center; }
.ref-prompt-card > .muted { margin: 8px 0 0; line-height: 1.55; }
.ref-prompt-actions {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}
.ref-prompt-actions .upload-btn,
.ref-prompt-actions .btn-large { width: 100%; justify-content: center; }
.ref-prompt-profile { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }

@media (max-width: 600px) {
  .reference-card { padding: 18px 20px; }
  .accordion-head { padding: 16px 18px; }
  .accordion-body { padding: 0 18px 6px; }

  /* Mobile : photo CENTRÉE en haut, puis deux boutons plus petits centrés
     en dessous (au lieu de la photo collée à gauche + gros boutons). */
  .reference-body { display: flex; flex-direction: column; align-items: center; }
  .reference-preview { margin-bottom: 18px; text-align: center; }
  .reference-preview img { width: 70vw; max-width: 260px; height: auto; aspect-ratio: 3/4; border-radius: 14px; }
  .reference-actions {
    flex-direction: row; flex-wrap: wrap; justify-content: center;
    gap: 8px; width: 100%;
  }
  .reference-actions .upload-btn {
    flex: 0 1 auto; padding: 10px 16px; font-size: 12.5px;
  }
  .reference-actions .upload-btn i { font-size: 13px; }
  .reference-status { width: 100%; justify-content: center; margin-top: 12px; text-align: center; }
}

/* === Modale "Remplacer ma photo de référence" === */
.ref-modal-card { max-width: 420px; text-align: center; }
.ref-modal-sub, #ref-modal-sub { margin: 4px 0 0; }
.ref-modal-body { margin-top: 18px; }
.ref-modal-figure {
  width: 140px; height: 186px; margin: 0 auto 18px;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  background: #f3ece0;
}
.ref-modal-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ref-progress-block { text-align: left; }
.ref-progress-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; color: var(--ink); margin-bottom: 8px; gap: 12px;
}
.ref-progress-head span:last-child { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ref-progress-track {
  height: 8px; background: var(--line); border-radius: 999px; overflow: hidden;
}
.ref-progress-bar {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transition: width .4s ease;
}
.ref-progress-bar.indeterminate {
  width: 40% !important;
  animation: ref-indeterminate 1.2s ease-in-out infinite;
}
@keyframes ref-indeterminate {
  0%   { margin-left: -40%; }
  100% { margin-left: 100%; }
}
.ref-progress-hint {
  margin: 12px 0 0; font-size: 12px; color: var(--accent-dark);
  display: flex; align-items: center; gap: 7px; line-height: 1.4;
}
.ref-progress-hint i { font-size: 11px; }
.ref-modal-error {
  margin-top: 14px; padding: 10px 12px; border-radius: 8px;
  background: #fdecea; color: #b3261e; font-size: 13px; text-align: left;
}

/* === Rendez-vous catalogue (réglages sync) === */
.catalog-rendezvous-card {
  overflow: hidden;
  position: relative;
}
.catalog-rendezvous {
  position: relative;
}
.catalog-rendezvous-hero {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
  padding: 4px 0 2px;
}
.catalog-rendezvous-moon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, #fff8ec 0%, #f0d9a8 38%, var(--accent) 70%, var(--accent-dark) 100%);
  box-shadow:
    inset -10px -8px 0 rgba(168, 135, 88, 0.25),
    0 10px 28px rgba(168, 135, 88, 0.28);
  animation: catalog-moon-float 5.5s ease-in-out infinite;
}
@keyframes catalog-moon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.catalog-rendezvous-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 600;
}
.catalog-rendezvous-copy h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.catalog-rendezvous-lead {
  margin: 0;
  max-width: 38rem;
  line-height: 1.45;
}
.catalog-rendezvous-beats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.catalog-beat {
  appearance: none;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fffdf9 0%, #f7f1e7 100%);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.catalog-beat:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(168, 135, 88, 0.14);
}
.catalog-beat.is-active {
  border-color: var(--fitzu-accent);
  background: linear-gradient(180deg, #fff7f4 0%, #ffe8e2 100%);
  box-shadow: 0 0 0 1px rgba(255, 74, 46, 0.25), 0 10px 22px rgba(255, 74, 46, 0.12);
}
.catalog-beat-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}
.catalog-beat-icon--moon {
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff8ec, var(--accent) 70%, var(--accent-dark));
  box-shadow: inset -5px -4px 0 rgba(168, 135, 88, 0.28);
}
.catalog-beat-icon--clock {
  border-radius: 50%;
  border: 2px solid var(--accent-dark);
  background: #fffdf9;
}
.catalog-beat-icon--clock::before,
.catalog-beat-icon--clock::after {
  content: '';
  position: absolute;
  background: var(--accent-dark);
  border-radius: 1px;
  left: 50%;
  top: 50%;
  transform-origin: bottom center;
}
.catalog-beat-icon--clock::before {
  width: 2px;
  height: 8px;
  margin-left: -1px;
  margin-top: -8px;
}
.catalog-beat-icon--clock::after {
  width: 2px;
  height: 6px;
  margin-left: -1px;
  margin-top: -6px;
  transform: rotate(90deg);
  transform-origin: bottom center;
}
.catalog-beat-icon--pause {
  border-radius: 6px;
  background: rgba(168, 135, 88, 0.15);
}
.catalog-beat-icon--pause::before,
.catalog-beat-icon--pause::after {
  content: '';
  position: absolute;
  top: 7px;
  width: 4px;
  height: 14px;
  border-radius: 1px;
  background: var(--accent-dark);
}
.catalog-beat-icon--pause::before { left: 8px; }
.catalog-beat-icon--pause::after { right: 8px; }
.catalog-beat.is-active .catalog-beat-icon--moon {
  background: radial-gradient(circle at 30% 30%, #fff0ed, #ff8a74 65%, var(--fitzu-accent));
  box-shadow: inset -5px -4px 0 rgba(199, 53, 32, 0.22);
}
.catalog-beat.is-active .catalog-beat-icon--clock { border-color: var(--fitzu-accent-text); }
.catalog-beat.is-active .catalog-beat-icon--clock::before,
.catalog-beat.is-active .catalog-beat-icon--clock::after { background: var(--fitzu-accent-text); }
.catalog-beat.is-active .catalog-beat-icon--pause { background: var(--fitzu-accent-soft); }
.catalog-beat.is-active .catalog-beat-icon--pause::before,
.catalog-beat.is-active .catalog-beat-icon--pause::after { background: var(--fitzu-accent-text); }
.catalog-beat-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.catalog-beat-desc {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.35;
}
.catalog-schedule-custom {
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(201, 168, 124, 0.7);
  background: rgba(255, 248, 236, 0.65);
}
.catalog-freq-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.catalog-freq-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.catalog-freq-chip:hover { border-color: var(--accent); }
.catalog-freq-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.catalog-time-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.catalog-time-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-soft);
}
.catalog-time-field select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
}
.catalog-time-field select:focus {
  outline: none;
  border-color: var(--fitzu-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fitzu-accent) 18%, transparent);
}
.catalog-rendezvous-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}
.catalog-status-pill {
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.catalog-status-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.catalog-status-pill strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.catalog-schedule-description {
  margin: 0 0 14px;
  font-size: 13px;
}
.catalog-schedule-interval-hint {
  margin: 0 0 4px;
  font-size: 13px;
}
.catalog-rendezvous-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
@media (max-width: 720px) {
  .catalog-rendezvous-beats,
  .catalog-rendezvous-status,
  .catalog-time-row {
    grid-template-columns: 1fr;
  }
  .catalog-rendezvous-hero {
    grid-template-columns: 56px 1fr;
  }
  .catalog-rendezvous-moon {
    width: 56px;
    height: 56px;
  }
}

/* === Progression sync catalogue (admin) === */
.catalog-sync-progress { margin-top: 12px; }
.catalog-sync-log {
  margin-top: 10px;
  max-height: 180px;
  overflow-y: auto;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8f7f5;
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.catalog-sync-log-line { margin: 0 0 4px; word-break: break-word; }
.catalog-sync-log-line:last-child { margin-bottom: 0; }
.catalog-sync-sources-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.catalog-sync-source-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8f7f5;
  border: 1px solid var(--line);
  font-size: 13px;
}
.catalog-sync-source-item.is-running { border-color: var(--accent); background: rgba(255, 74, 46, 0.06); }
.catalog-sync-source-item.is-done { border-color: #2e7d32; background: rgba(46, 125, 50, 0.06); }
.catalog-sync-source-item.is-error { border-color: #b3261e; background: #fdecea; }
.catalog-sync-source-status { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.catalog-sync-source-item.is-running .catalog-sync-source-status { color: var(--accent-dark); }
.catalog-sync-source-item.is-done .catalog-sync-source-status { color: #2e7d32; }
.catalog-sync-source-item.is-error .catalog-sync-source-status { color: #b3261e; }

.ref-modal-actions { margin-top: 20px; }
.ref-modal-actions .btn-large { width: 100%; }

@media (max-width: 480px) {
  .ref-modal-figure { width: 120px; height: 160px; }
}

/* === Marque Fitzu (alignée fitzu.fr) === */
.fitzu-mark {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  display: inline-block;
  color: var(--ink);
  line-height: 1.2;
}
.fitzu-pill {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 2px 9px;
  line-height: 1.2;
  vertical-align: baseline;
}
.fitzu-pill:hover {
  background: rgba(26, 26, 26, 0.05);
}
.fitzu-pill:focus-visible {
  outline: 2px solid var(--fitzu-accent);
  outline-offset: 2px;
}
.fitzu-word {
  display: inline-block;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.2;
}
.fitzu-dot {
  color: var(--fitzu-accent);
  font-size: 0.55em;
  line-height: 1;
  flex-shrink: 0;
  display: inline-block;
  margin: 0;
}
.fitzu-tagline {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}
.fitzu-platform-title {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  white-space: nowrap;
  gap: 0.35em;
  line-height: 1.2;
}
.fitzu-platform-title--center {
  justify-content: center;
  width: 100%;
}
.sa-field-note {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
}

/* === Super-admin Fitzu === */
.sa-login-mark {
  font-size: 12px;
  margin: 0;
}
.sa-login-tagline {
  font-size: 12px;
  margin: 0;
}
.sa-topbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.sa-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.sa-topbar-start {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 1;
  max-width: min(420px, 55vw);
}
.sa-topbar-logo-link {
  display: block;
  line-height: 0;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
}
.sa-topbar-logo-link.hidden { display: none; }
.sa-topbar-logo-link:focus-visible {
  outline: 2px solid var(--fitzu-accent);
  outline-offset: 3px;
}
.sa-topbar-logo {
  height: 36px;
  width: auto;
  max-width: min(180px, 42vw);
  display: block;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}
.sa-brand {
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.sa-brand-tagline {
  font-size: 11px;
  letter-spacing: 0.2em;
}
.sa-brand-mark {
  font-size: 11px;
  line-height: 1.2;
}
.sa-client-tagline {
  font-size: 11px;
  letter-spacing: 0.2em;
}
.sa-client-mark {
  font-size: 11px;
  line-height: 1.2;
}
.sa-mainnav {
  display: flex;
  gap: 4px;
  flex: 1;
}
.sa-nav-link {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.sa-nav-link:hover { color: var(--ink); background: rgba(11, 11, 12, 0.04); }
.sa-nav-link.active { color: var(--ink); background: rgba(255, 74, 46, 0.1); }
.sa-topbar-end {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.sa-user { font-size: 12px; color: var(--ink-soft); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}
.sa-logout-icon { display: none; }
.sa-logout-btn:hover { background: #f3f2ef; }
.sa-subnav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.sa-subnav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.sa-subnav-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  width: 100%;
}
.sa-sub-link-icon {
  margin-right: 6px;
  font-size: 12px;
  opacity: 0.8;
}
.sa-sub-link.active .sa-sub-link-icon,
.sa-sub-link:hover .sa-sub-link-icon {
  opacity: 1;
}
.sa-sub-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 10px 12px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.sa-sub-link:hover { color: var(--ink); }
.sa-sub-link.active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--fitzu-accent);
}
.sa-sub-link--external {
  margin-left: auto;
  color: var(--fitzu-accent);
  font-weight: 600;
}
.sa-sub-link--external:hover { color: var(--fitzu-accent-text); }
.sa-subnav-sep {
  width: 1px;
  height: 20px;
  background: var(--line);
  margin: 0 8px;
}
.sa-tenant-picker select {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  min-width: 200px;
  background: #faf8f5;
}
.sa-page-head { margin-bottom: 24px; }
.sa-page-head h1 {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
}
.sa-page-head .muted { margin: 0; font-size: 14px; }
.sa-form-card { max-width: 960px; }
/* Marques & logos (cabine démo) : carte plus large pour tenir toutes les actions */
#multi-catalog-card.sa-form-card {
  max-width: min(1280px, 100%);
}
.multi-catalog-list .mc-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.multi-catalog-list .mc-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.multi-catalog-list .mc-table th,
.multi-catalog-list .mc-table td {
  vertical-align: top;
  padding: 10px 8px;
  text-align: left;
}
.multi-catalog-list .mc-col-name { width: 18%; }
.multi-catalog-list .mc-col-url { width: 22%; }
.multi-catalog-list .mc-col-type { width: 12%; white-space: nowrap; }
.multi-catalog-list .mc-col-count { width: 7%; white-space: nowrap; }
.multi-catalog-list .mc-col-sync { width: 12%; white-space: nowrap; }
.multi-catalog-list .mc-col-actions { width: 29%; }
.multi-catalog-list .mc-url {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.multi-catalog-list .mc-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft, #6b6560);
  background: #f0ebe4;
  border-radius: 4px;
  white-space: nowrap;
}
.multi-catalog-list .mc-badge--warn {
  color: #8a2929;
  background: #f8eaea;
}
.multi-catalog-list .multi-catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-content: flex-start;
  min-width: 0;
}
.multi-catalog-list .btn-sm {
  padding: 5px 8px;
  font-size: 12px;
  line-height: 1.2;
  flex: 0 0 auto;
}
.multi-catalog-list .mc-btn-delete {
  min-width: 28px;
  padding-left: 8px;
  padding-right: 8px;
}
@media (max-width: 900px) {
  .multi-catalog-list .mc-col-actions {
    min-width: 200px;
  }
}
.sa-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.sa-form-grid--branding { margin-top: 16px; gap: 20px 24px; }
.sa-field--wide { grid-column: 1 / -1; }
.sa-form-section h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.sa-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 14px;
}
.sa-field span em { color: #b3261e; font-style: normal; }
.sa-field input,
.sa-field select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  background: #faf8f5;
  font-family: inherit;
}
.sa-field input:focus,
.sa-field select:focus,
.sa-field textarea:focus {
  outline: none;
  border-color: var(--fitzu-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fitzu-accent) 18%, transparent);
  background: #fff;
}
.sa-hint { font-size: 12px; color: var(--ink-soft); }
.sa-checkbox-group { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.sa-checkbox-group--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.sa-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}
.sa-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--fitzu-accent);
  cursor: pointer;
}
.sa-logo-upload { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.sa-logo-preview {
  width: 120px;
  height: 72px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #faf8f5;
  overflow: hidden;
}
.sa-logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sa-logo-preview--dark { background: #2a2a2a; }
.sa-form-actions { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.sa-form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}
.sa-form-status--error { background: #fdecea; color: #b3261e; }
.sa-form-status--ok { background: #e8f3ec; color: #2c6b3f; }
.sa-success-card {
  margin-top: 20px;
  padding: 20px 22px;
  background: linear-gradient(135deg, #f7f3eb 0%, #fdfbf7 100%);
  border: 1px solid var(--accent);
  border-radius: 12px;
}
.sa-success-card h3 { margin: 0 0 10px; font-size: 18px; }
.sa-success-card ul { margin: 12px 0 0; padding-left: 18px; }
.sa-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.sa-status--active { background: #e8f3ec; color: #2c6b3f; }
.sa-status--suspended { background: #fbe4e4; color: #8a2929; }
.sa-actions-cell { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-sm { padding: 5px 10px !important; font-size: 12px !important; }
body.admin .sa-topbar + .sa-subnav + .admin-main,
body.admin .sa-topbar ~ .admin-main,
body.admin #client-topbar + #client-subnav + .admin-main { padding-top: 8px; }
@media (max-width: 768px) {
  .sa-topbar-inner { padding: 0 16px; gap: 12px; }
  .sa-mainnav { gap: 2px; overflow-x: auto; }
  .sa-nav-link { padding: 8px 10px; font-size: 13px; white-space: nowrap; }
  .sa-user { display: none; }
  .sa-topbar-end { gap: 8px; }
  .admin-text-scale-btn { padding: 5px 6px; }
  .sa-logout-btn {
    position: relative;
    width: 36px;
    height: 36px;
    padding: 0;
  }
  .sa-logout-icon {
    display: inline-block;
    font-size: 16px;
    line-height: 1;
  }
  .sa-logout-label {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
  }
  .sa-subnav-inner { padding: 0 16px; }
  #client-subnav .sa-subnav-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #client-subnav .sa-subnav-group::-webkit-scrollbar { display: none; }
  #client-subnav .sa-sub-link { white-space: nowrap; flex-shrink: 0; }
  .admin-main { padding: 16px !important; }
  .sa-sub-link--external { margin-left: 0; }
}

/* === Admin — Stocks WooCommerce === */
.wc-catalog-stats {
  margin-bottom: 18px;
  padding: 18px 20px 16px;
}
.wc-catalog-stats.is-loading .wc-catalog-stat__value,
.wc-catalog-stats.is-preview .wc-catalog-stat__value {
  color: var(--ink-soft);
}
.wc-catalog-stats.is-loading .wc-catalog-stat__value {
  opacity: 0.55;
}
.wc-catalog-stats.is-preview .wc-catalog-stat__value {
  opacity: 0.82;
}
.wc-catalog-stats.is-complete .wc-catalog-stats__meta {
  color: var(--ink-soft);
}
.wc-catalog-stats.is-error .wc-catalog-stats__meta {
  color: #b42318;
}
.wc-catalog-stats__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink-soft);
}
.wc-catalog-stats__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 14px;
}
.wc-catalog-filter-clear {
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wc-catalog-filter-clear:hover { background: #faf8f5; }
.wc-catalog-filter-clear:active { background: #f5f0ea; }
.wc-catalog-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 640px) {
  .wc-catalog-stats__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}
.wc-catalog-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 88px;
  padding: 14px 10px;
  border-radius: 14px;
  background: #faf8f5;
  border: 1px solid var(--line);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}
.wc-catalog-stat:hover {
  border-color: #d8cfc3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.wc-catalog-stat:active { transform: scale(0.98); }
.wc-catalog-stat.is-active {
  border-width: 2px;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(44, 36, 28, 0.08);
}
.wc-catalog-stat--warn.is-active {
  border-color: #8a2929;
  box-shadow: 0 0 0 3px rgba(138, 41, 41, 0.12);
}
.wc-catalog-stat--alert.is-active {
  border-color: #9a6b1a;
  box-shadow: 0 0 0 3px rgba(154, 107, 26, 0.12);
}
.wc-catalog-stat__value {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.wc-catalog-stat__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.25;
}
.wc-catalog-stat--warn {
  background: #fdf5f5;
  border-color: #ecd8d8;
}
.wc-catalog-stat--warn .wc-catalog-stat__value { color: #8a2929; }
.wc-catalog-stat--alert {
  background: #fff8ef;
  border-color: #f0dfc4;
}
.wc-catalog-stat--alert .wc-catalog-stat__value { color: #9a6b1a; }
.wc-catalog-stats__meta {
  margin: 12px 0 0;
  font-size: 12px;
  text-align: center;
}
.wc-products-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px 20px;
}
.wc-products-search-label { flex: 1 1 280px; margin: 0; }
/* Gestion stock : champ recherche bordure orange Fitzu + coins arrondis */
.wc-products-search-label input,
#wc-products-search {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--fitzu-accent);
  border-radius: 12px;
  font-size: 16px;
  background: #fff;
  color: var(--ink, #1a1a1a);
}
.wc-products-search-label input:focus,
#wc-products-search:focus {
  outline: none;
  border-color: var(--fitzu-accent);
  box-shadow: 0 0 0 3px var(--fitzu-accent-soft);
}
.wc-products-count { margin: 0; font-size: 13px; }
.wc-products-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr));
  gap: 14px;
  align-items: start;
}
@media (min-width: 480px) {
  .wc-products-list {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}
@media (min-width: 768px) {
  .wc-products-list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }
}
.wc-product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.28s cubic-bezier(.4, 0, .2, 1);
}
.wc-product-card.is-expanded,
.wc-product-card.is-collapsing {
  grid-column: span 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: visible;
}
@media (min-width: 900px) {
  .wc-product-card.is-expanded,
  .wc-product-card.is-collapsing {
    grid-column: span 3;
  }
}
@media (max-width: 479px) {
  .wc-product-card.is-expanded,
  .wc-product-card.is-collapsing {
    grid-column: 1 / -1;
  }
}
.wc-product-card__head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px;
  cursor: pointer;
  min-height: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.wc-product-card__head:hover { background: #faf8f5; }
.wc-product-card__head:active { background: #f5f0ea; }
.wc-product-card__media {
  position: relative;
  width: 100%;
}
.wc-product-card__thumb-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}
.wc-product-card__thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
  background: #f0eae0;
  display: block;
}
.wc-product-card__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--ink-soft);
}
.wc-product-card__rupture {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
}
.wc-product-card__rupture-label {
  display: block;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(138, 41, 41, 0.94);
  color: #fff;
  font-size: clamp(11px, 2.8vw, 13px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.wc-product-card__info { flex: 1; min-width: 0; }
.wc-product-card__name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wc-product-card__meta {
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.wc-product-card__sku {
  word-break: break-all;
}
.wc-product-card__price {
  font-weight: 600;
  color: var(--ink);
}
.wc-product-card__price-line {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.wc-product-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: #eee9e0;
  color: var(--ink-soft);
}
.wc-product-badge--variable { background: #e8eef8; color: #2a4a7a; }
.wc-product-badge--draft {
  background: #f3efe6;
  color: #7a6540;
}
.wc-product-card.is-draft {
  opacity: 0.96;
}
.wc-pc-field--lifecycle {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.wc-pc-lifecycle__status {
  margin: 0 0 10px;
  font-size: 13px;
}
.wc-pc-lifecycle__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wc-pc-lifecycle__actions .btn-secondary.is-current,
.wc-pc-lifecycle__actions .btn-secondary:disabled {
  opacity: 0.55;
}
.wc-pc-lifecycle__actions [data-action="wc-delete-product"]:hover,
.wc-pc-lifecycle__actions [data-action="wc-delete-product"]:focus-visible {
  border-color: rgba(196, 92, 92, 0.45);
  color: #8a2929;
  background: #fdf5f5;
}
#admin-confirm-modal .admin-confirm-ok--danger:hover,
#admin-confirm-modal .admin-confirm-ok--danger:focus-visible {
  border-color: rgba(196, 92, 92, 0.45);
  color: #8a2929;
  background: #fdf5f5;
}
.wc-product-card__stock-summary {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
}
/* Filet : span vide (padding/fond) → pastille blanche sinon */
.wc-product-card__stock-summary:empty {
  display: none;
}
.wc-product-card__stock-summary.is-out {
  color: #fff;
  background: rgba(138, 41, 41, 0.92);
}
.wc-product-card__brand {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wc-product-card__brand-label {
  font-weight: 700;
  color: var(--ink);
}
.wc-product-card__brand-value {
  font-weight: 600;
  color: #ff7a5c; /* orange Fitzu éclairci */
  color: color-mix(in srgb, var(--fitzu-accent) 72%, #fff);
}
.wc-product-card__chevron {
  align-self: center;
  font-size: 16px;
  color: var(--ink-soft);
  transition: transform 0.28s cubic-bezier(.4, 0, .2, 1);
  line-height: 1;
  padding: 4px 0 2px;
}
.wc-product-card.is-expanded .wc-product-card__chevron,
.wc-product-card.is-collapsing .wc-product-card__chevron { transform: rotate(180deg); }
.wc-product-card.is-expanded .wc-product-card__head,
.wc-product-card.is-collapsing .wc-product-card__head {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  min-height: 0;
  border-bottom: 1px solid var(--line);
}
.wc-product-card.is-expanded .wc-product-card__head .wc-product-card__media,
.wc-product-card.is-collapsing .wc-product-card__head .wc-product-card__media {
  display: none;
}
.wc-product-card.is-expanded .wc-product-card__name,
.wc-product-card.is-collapsing .wc-product-card__name {
  font-size: 15px;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  overflow: hidden;
}
.wc-product-card.is-expanded .wc-product-card__meta,
.wc-product-card.is-collapsing .wc-product-card__meta {
  font-size: 12px;
  gap: 6px;
}
.wc-product-card.is-expanded .wc-product-card__chevron,
.wc-product-card.is-collapsing .wc-product-card__chevron {
  align-self: center;
  margin-left: auto;
  font-size: 18px;
  padding: 0;
  flex-shrink: 0;
}
/* Expand / collapse fluide (hauteur + fade/slide), pattern grid 0fr/1fr */
.wc-product-card__body {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0;
  border-top: none;
  pointer-events: none;
  transition: grid-template-rows 0.32s cubic-bezier(.4, 0, .2, 1);
}
.wc-product-card.is-expanded:not(.is-collapsing) .wc-product-card__body {
  grid-template-rows: 1fr;
  pointer-events: auto;
}
.wc-product-card__body-clip {
  overflow: hidden;
  min-height: 0;
}
.wc-product-card__expand-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 14px 14px;
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
  transform-origin: top center;
  transition:
    opacity 0.24s cubic-bezier(.4, 0, .2, 1),
    transform 0.32s cubic-bezier(.4, 0, .2, 1);
}
.wc-product-card.is-expanded:not(.is-collapsing) .wc-product-card__expand-layout {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.04s;
}
.wc-product-card.is-collapsing .wc-product-card__expand-layout {
  opacity: 0;
  transform: translateY(-6px) scale(0.99);
  transition-delay: 0s;
  transition-duration: 0.18s, 0.22s;
}
@media (min-width: 480px) {
  .wc-product-card__expand-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 16px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wc-product-card,
  .wc-product-card__body,
  .wc-product-card__expand-layout,
  .wc-product-card__chevron {
    transition: none !important;
  }
}
/* View Transitions (Stocks) : pendant le morph natif, le DOM saute directement
   au layout final (transitions CSS gelées) ; le navigateur anime old → new. */
.wc-vt-lock .wc-product-card,
.wc-vt-lock .wc-product-card__body,
.wc-vt-lock .wc-product-card__expand-layout,
.wc-vt-lock .wc-product-card__chevron {
  transition: none !important;
}
::view-transition {
  pointer-events: none;
}
::view-transition-group(*) {
  animation-duration: 0.32s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
::view-transition-old(*),
::view-transition-new(*) {
  animation-duration: 0.32s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
.wc-product-card__expand-media {
  flex: 0 0 auto;
  width: 100%;
  max-width: 200px;
}
@media (min-width: 768px) {
  .wc-product-card__expand-media {
    max-width: 240px;
  }
}
.wc-product-card__expand-media .wc-product-card__thumb-wrap {
  width: 100%;
  background: #faf8f5;
}
.wc-product-card__expand-media .wc-product-card__thumb {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  max-height: min(50vh, 420px);
  object-fit: contain;
}
.wc-product-card__expand-stock {
  flex: 1;
  min-width: 0;
  overflow: visible;
}
.wc-product-card__expand-stock .wc-stock-simple,
.wc-product-card__expand-stock .wc-stock-variations {
  padding-top: 0;
}

/* Fiche éditable Stocks (titre, description, cat, marque, photos) */
.wc-product-content {
  margin-top: 4px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
}
.wc-product-content__loading {
  margin: 0 0 10px;
  font-size: 13px;
}
.wc-pc-skeleton--desc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}
.wc-pc-skeleton--meta {
  display: inline-block;
  width: 42%;
  min-width: 120px;
  margin: 0;
  vertical-align: middle;
}
.wc-pc-skeleton--gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.wc-pc-skeleton__thumb {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  margin: 0;
}
.wc-pc-field[data-ready="0"] .wc-pc-field__icon-btn,
.wc-pc-field[data-ready="partial"] .wc-pc-field__icon-btn {
  opacity: 0.4;
}
body.admin-store-mode .wc-pc-skeleton__thumb {
  width: 104px;
  height: 104px;
}
.wc-pc-field {
  margin-top: 14px;
}
.wc-pc-field:first-child {
  margin-top: 0;
}
.wc-pc-field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.wc-pc-field__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-soft, #6b6560);
}
.wc-pc-field__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wc-pc-field__icon-btn:hover:not(:disabled) {
  border-color: var(--fitzu-accent);
  color: var(--fitzu-accent);
  background: var(--fitzu-accent-soft);
}
.wc-pc-field__icon-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.wc-pc-field__title-text {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.wc-pc-field__slug {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  word-break: break-all;
}
.wc-pc-field__slug-label {
  font-weight: 600;
  margin-right: 4px;
  color: var(--ink-soft);
}
.wc-pc-field__permalink {
  color: var(--fitzu-accent);
  text-decoration: none;
}
.wc-pc-field__permalink:hover,
.wc-pc-field__permalink:focus-visible {
  text-decoration: underline;
}
.wc-pc-field__slug-hint {
  margin-top: 8px;
}
.wc-pc-field__meta-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}
.wc-pc-field__html {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  max-height: 220px;
  overflow-y: auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf8f5;
}
.wc-pc-field__html p {
  margin: 0 0 0.65em;
}
.wc-pc-field__html p:last-child {
  margin-bottom: 0;
}
.wc-pc-field__html strong,
.wc-pc-field__html b {
  font-weight: 700;
}
.wc-pc-field__input,
.wc-pc-field__select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
}
.wc-pc-field__input--price {
  max-width: 180px;
  font-variant-numeric: tabular-nums;
}
.wc-pc-field__toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.wc-pc-field__fmt {
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.wc-pc-field__fmt:hover {
  border-color: var(--fitzu-accent);
  color: var(--fitzu-accent);
}
.wc-pc-field__editor {
  min-height: 140px;
  max-height: 280px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  line-height: 1.55;
}
.wc-pc-field__editor:focus {
  outline: 2px solid color-mix(in srgb, var(--fitzu-accent) 45%, transparent);
  outline-offset: 1px;
}
.wc-pc-field__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.wc-pc-field__actions .btn-primary,
.wc-pc-field__actions .btn-secondary,
.wc-pc-add-photo {
  min-height: 44px;
}
.wc-pc-add-photo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.wc-pc-field__hint {
  margin: 8px 0 0;
  font-size: 12px;
}
.wc-pc-field__save-loader {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 13px;
}
.wc-pc-field__save-spinner {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border: 2px solid var(--line);
  border-top-color: var(--fitzu-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.wc-pc-field__status {
  margin: 12px 0 0;
  font-size: 13px;
  min-height: 1.2em;
}
.wc-pc-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.wc-pc-gallery__item {
  position: relative;
  margin: 0;
  width: 88px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #faf8f5;
}
.wc-pc-gallery__item.is-featured {
  border-color: var(--fitzu-accent);
  box-shadow: 0 0 0 1px var(--fitzu-accent);
}
.wc-pc-gallery__item img {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: cover;
}
.wc-pc-gallery__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3px 4px;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
}
.wc-pc-gallery__ops {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wc-pc-gallery__badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--fitzu-accent);
  border-radius: 6px;
}
.wc-pc-gallery__btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.wc-pc-gallery__btn--danger {
  color: #b42318;
}
body.admin-store-mode .wc-product-content {
  padding: 14px 16px 18px;
}
body.admin-store-mode .wc-pc-field__title-text {
  font-size: 17px;
}
body.admin-store-mode .wc-pc-gallery__item,
body.admin-store-mode .wc-pc-gallery__item img {
  width: 104px;
  height: 104px;
}
.wc-stock-linkzu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 2px 0 0;
}
.wc-stock-linkzu-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
body.admin-store-mode #view-wc-products .wc-product-card.is-expanded .wc-stock-linkzu,
body.admin-store-mode #view-wc-products .wc-product-card.is-collapsing .wc-stock-linkzu {
  justify-content: flex-start;
}
.wc-stock-linkzu-copy i {
  font-size: 13px;
  pointer-events: none;
}
.wc-stock-linkzu-copy:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.04);
}
.wc-stock-linkzu-copy:disabled {
  opacity: 0.55;
  cursor: wait;
}
.wc-stock-linkzu-copy.is-copied {
  border-color: #1f8a65;
  color: #1f8a65;
  background: color-mix(in srgb, #1f8a65 8%, #fff);
}
.wc-stock-linkzu-copy.is-error {
  border-color: #b42318;
  color: #b42318;
}
.wc-stock-simple {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
}
.wc-stock-simple label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}
.wc-stock-simple input[type="number"] {
  width: 120px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 18px;
  text-align: center;
}
.wc-size-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 10px;
  margin: 8px 0 4px;
}
.wc-size-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 36px;
}
.wc-size-pill__size {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  text-align: center;
}
.wc-size-pill__qty {
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink-soft);
  text-align: center;
}
.wc-size-pill.is-out .wc-size-pill__size {
  border-color: var(--fitzu-accent);
  background: #fff;
  color: var(--fitzu-accent);
  text-decoration: none;
}
.wc-size-pill.is-out .wc-size-pill__qty {
  color: var(--fitzu-accent);
}
.wc-size-pill.is-pending .wc-size-pill__size {
  border-style: dashed;
  color: var(--ink-soft);
}
.wc-size-pill.is-pending .wc-size-pill__qty {
  color: var(--ink-soft);
  font-weight: 500;
}
.wc-stock-variations { padding-top: 12px; }
.wc-stock-variation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.wc-stock-variation:last-child { border-bottom: none; }
.wc-stock-variation__delete {
  flex-shrink: 0;
  min-width: 36px;
  padding: 6px 10px;
  font-size: 18px;
  line-height: 1;
  color: var(--ink-soft);
}
.wc-stock-variation__delete:hover {
  border-color: var(--fitzu-accent);
  color: var(--fitzu-accent);
  background: var(--fitzu-accent-soft);
}
.wc-stock-variation--skeleton { pointer-events: none; }
.wc-skeleton-line--variation-label { width: 48px; margin: 0; }
.wc-skeleton-line--variation-meta { width: 40%; margin: 0; flex: 1; }
.wc-skeleton-block--stepper {
  width: 140px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}
.wc-stock-variation__label {
  font-weight: 600;
  font-size: 15px;
  min-width: 64px;
}
.wc-stock-variation__size-wrap {
  flex-shrink: 0;
  min-width: 72px;
}
.wc-stock-variation__size {
  font-weight: 600;
  font-size: 14px;
  min-width: 72px;
  max-width: 110px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.wc-stock-variation__size:focus {
  outline: none;
  border-color: var(--fitzu-accent);
}
.wc-stock-variations-add {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.wc-stock-variations-add__hint {
  margin: 0 0 8px;
  font-size: 12px;
}
.wc-stock-variations-add__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.wc-stock-variations-add__row .wc-stock-add-size {
  min-width: 110px;
  flex: 1 1 110px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.wc-stock-variations-add__row .wc-stock-add-qty {
  width: 72px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.wc-stock-variations-add__row .wc-stock-feedback {
  min-width: 4.5rem;
}
.wc-stock-variation__meta {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wc-stock-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}
.wc-stock-stepper .wc-stock-feedback {
  flex: 0 0 auto;
  min-width: 4.5rem;
  margin-left: 2px;
}
.wc-stock-feedback {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
}
.wc-stock-feedback.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.wc-stock-feedback.is-pending {
  color: #5c574f;
  background: #f3f0eb;
  padding: 4px 8px;
  border-radius: 6px;
}
.wc-stock-feedback.is-ok {
  color: #1b7f4a;
  background: #e3f6eb;
  padding: 4px 8px;
  border-radius: 6px;
}
.wc-stock-feedback.is-error {
  color: #c0392b;
  background: #fdecea;
  padding: 4px 8px;
  border-radius: 6px;
}
.wc-stock-simple .wc-stock-feedback {
  margin-top: 0;
}
.wc-stock-stepper button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.wc-stock-stepper button:active { background: #f0ebe3; }
.wc-stock-stepper button:disabled { opacity: 0.45; cursor: not-allowed; }
.wc-stock-stepper input {
  width: 64px;
  min-width: 48px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 18px;
  text-align: center;
  padding: 0;
}
/* Carte étendue : label/meta à gauche, stepper ± toujours visible à droite */
.wc-product-card.is-expanded .wc-stock-variation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
}
.wc-product-card.is-expanded .wc-stock-variation__label {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.wc-product-card.is-expanded .wc-stock-variation__meta {
  grid-column: 1;
  grid-row: 2;
  white-space: nowrap;
}
.wc-product-card.is-expanded .wc-stock-stepper {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-content: flex-end;
  max-width: none;
  min-width: 210px;
}
.wc-product-card.is-expanded .wc-stock-stepper .wc-stock-feedback {
  width: auto;
  padding-top: 0;
}
.wc-stock-loading {
  padding: 16px 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.wc-stock-error {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.wc-stock-error .wc-stock-loading {
  padding: 0;
}
.wc-products-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.wc-products-pagination button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
}
.wc-products-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--ink-soft);
}
.wc-product-card--skeleton { pointer-events: none; }
.wc-product-card--skeleton .wc-product-card__head { cursor: default; }
.wc-product-card--skeleton .wc-product-card__head:hover { background: transparent; }
.wc-product-card--skeleton .wc-product-card__media {
  position: relative;
}
.wc-skeleton-block {
  background: linear-gradient(90deg, #eee9e0 25%, #f7f4ef 50%, #eee9e0 75%);
  background-size: 200% 100%;
  animation: wc-skeleton-shimmer 1.2s ease-in-out infinite;
  border-radius: 8px;
}
.wc-skeleton-line { height: 14px; margin-bottom: 8px; }
.wc-skeleton-line--title { width: 85%; height: 16px; }
.wc-skeleton-line--meta { width: 55%; margin-bottom: 0; }
.wc-skeleton-line--stock {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 56px;
  height: 22px;
  margin-bottom: 0;
  border-radius: 999px;
}
@keyframes wc-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Admin — ambiances / décors */
.sa-settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sa-settings-subnav .sa-sub-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
  flex-shrink: 0;
}
.sa-settings-subnav .sa-sub-link.active {
  background: #fdf6e9;
  color: var(--ink);
  font-weight: 600;
}
.sa-seo-pre {
  margin: 8px 0 0;
  padding: 12px 14px;
  max-height: 280px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f7f5f1;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}
.decors-admin-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.decors-admin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.decors-admin-row:last-child { border-bottom: none; }
.decors-admin-row:hover { background: #fdfbf7; }
.decors-admin-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--fitzu-accent);
  flex-shrink: 0;
}
.decors-admin-row--custom { cursor: default; }
.decors-admin-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  flex-shrink: 0;
  background: #f7f5f1;
}
.decors-bg-preview-wrap {
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.decors-bg-preview-wrap.hidden { display: none; }
.decors-bg-preview {
  display: block;
  width: min(100%, 320px);
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f7f5f1;
}
.decors-admin-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.decors-icon-field { margin-top: 6px; }
.decors-icon-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.decors-icon-trigger:hover {
  border-color: var(--accent);
  background: #fdfbf7;
}
.decors-icon-trigger-preview {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--accent-dark);
  flex-shrink: 0;
}
.decors-icon-trigger-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  color: var(--ink-soft);
}
.decors-icon-trigger-hint {
  margin-left: auto;
  font-size: 13px;
  color: var(--accent-dark);
  font-weight: 500;
}
.fa-icon-modal-card {
  max-width: 620px;
  width: 94%;
  max-height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.fa-icon-modal-sub {
  margin: 0 0 10px;
  font-size: 13px;
}
.fa-icon-modal-count {
  margin: 0 0 10px;
  font-size: 12px;
}
.icon-picker-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.icon-picker-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.icon-picker-tab:hover,
.icon-picker-tab.active {
  border-color: var(--accent);
  background: #fdf6e9;
  color: var(--ink);
}
.icon-picker-tab-count {
  opacity: .7;
  font-weight: 400;
}
.fa-icon-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}
.fa-icon-page-info {
  font-size: 13px;
  color: var(--ink-soft);
  min-width: 90px;
  text-align: center;
}
.fa-icon-grid .bi,
.decor-icon.bi,
.decors-icon-trigger-preview.bi {
  font-size: 1.1em;
  line-height: 1;
}
.fa-icon-grid .lucide-icon,
.decors-icon-trigger-preview.lucide-icon,
.decor-icon.lucide-icon {
  display: inline-flex;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.125em;
}
.fa-icon-grid .lucide-icon svg,
.decors-icon-trigger-preview.lucide-icon svg,
.decor-icon.lucide-icon svg {
  width: 100%;
  height: 100%;
}
.lucide-icon--fallback .lucide-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  font-size: 0.85em;
  line-height: 1;
  opacity: 0.55;
}
.fa-icon-modal-sub code {
  font-size: 12px;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
}
.fa-icon-search {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 12px;
}
.fa-icon-search:focus {
  outline: none;
  border-color: var(--fitzu-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fitzu-accent) 18%, transparent);
}
.fa-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 8px;
  overflow-y: auto;
  flex: 1;
  min-height: 120px;
  max-height: min(52vh, 420px);
  padding: 2px;
}
.fa-icon-grid-btn {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 16px;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.fa-icon-grid-btn:hover,
.fa-icon-grid-btn.selected {
  border-color: var(--accent);
  background: #fdf6e9;
  color: var(--ink);
}
.fa-icon-empty {
  margin: 8px 0 0;
  text-align: center;
}
.sa-divider {
  border: none;
  border-top: 1px solid var(--line);
}

/* Nouveaux produits WooCommerce */
.np-form { max-width: 720px; }
.np-import-progress {
  margin: 12px 0 0;
}
.np-import-progress-card {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #46464670; /* même bordure que .card / traitements auto */
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}
.np-import-progress-head { margin-bottom: 10px; }
.np-import-progress--error .np-import-progress-card {
  border-color: rgba(180, 35, 24, 0.25);
}
/* Import URL / publication NP : barre + spinner orange Fitzu (pas le doré cabine) */
#view-new-products .ref-progress-bar,
#view-new-products .np-import-progress .ref-progress-bar,
#view-new-products .np-publish-progress .ref-progress-bar,
body.admin-store-mode #view-new-products .ref-progress-bar {
  background: linear-gradient(
    90deg,
    var(--fitzu-accent),
    color-mix(in srgb, var(--fitzu-accent) 72%, #7a180c)
  );
}
#view-new-products .np-publish-step--active .np-publish-step-icon,
body.admin-store-mode #view-new-products .np-publish-step--active .np-publish-step-icon {
  border-color: var(--fitzu-accent);
  border-top-color: transparent;
}
#view-new-products .spinner-small.np-wia-status-spinner,
body.admin-store-mode #view-new-products .spinner-small.np-wia-status-spinner {
  border-top-color: var(--fitzu-accent);
}
.np-url-import {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: #faf8f5;
}
.np-url-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.np-url-row input[type="url"],
#np-product-url {
  flex: 1 1 220px;
  min-width: 0;
  border: 2px solid var(--fitzu-accent);
}
.np-url-row input[type="url"]:focus,
#np-product-url:focus {
  outline: none;
  border-color: var(--fitzu-accent);
  box-shadow: 0 0 0 3px var(--fitzu-accent-soft);
  background: #fff;
}
.np-workspace {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.np-workspace-media,
.np-workspace-fields {
  min-width: 0;
}
.np-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}
.np-grid--price {
  grid-template-columns: 1fr;
  max-width: 280px;
}
@media (min-width: 720px) {
  .np-grid:not(.np-grid--price) { grid-template-columns: 200px 1fr; align-items: start; }
}
.np-photo-preview {
  position: relative;
  margin-top: 10px;
  min-height: 200px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  background: #faf8f5;
  padding: 8px;
}
.np-photo-preview--generating {
  min-height: 220px;
}
.np-preview-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 16px;
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(3px);
  border-radius: 10px;
}
.np-preview-loader--solo {
  position: relative;
  inset: auto;
  min-height: 200px;
  flex: 1;
}
.np-preview-spinner {
  width: 52px;
  height: 52px;
  margin: 0;
  border-width: 4px;
  border-top-color: var(--fitzu-accent, #e87722);
}
.np-preview-loader-text {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}
.np-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.np-gallery-thumb {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.np-gallery-thumb--primary {
  border-color: var(--fitzu-accent, #e87722);
  box-shadow: 0 0 0 1px var(--fitzu-accent, #e87722);
}
.np-gallery-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.np-gallery-thumb figcaption {
  padding: 4px 8px 6px;
  font-size: 11px;
  text-align: center;
  color: #666;
}
.np-gallery-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.np-gallery-remove:hover {
  background: var(--fitzu-accent, #e87722);
}
.np-gallery-note {
  margin: 8px 0 0;
  font-size: 12px;
  text-align: center;
}
.np-studio-panel,
.np-content-panel {
  margin: 14px 0;
  padding: 14px 16px;
  background: #faf8f5;
}
.np-studio-title {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 14px;
}
.np-studio-models {
  margin: 12px 0 4px;
}
.np-studio-models-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
}
.np-studio-models-empty {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.np-studio-models-empty.hidden { display: none; }
.np-studio-panel .store-looks-models-grid {
  margin-bottom: 8px;
}
.np-studio-panel .btn-primary,
.np-content-panel .btn-secondary {
  margin-top: 10px;
  width: 100%;
}
.np-studio-panel .btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.np-studio-loader {
  margin-top: 12px;
}
.np-studio-loader-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}
.np-gallery-thumb--source {
  border-color: var(--fitzu-accent, #e87722);
}
.np-photo-preview img {
  width: 100%;
  height: auto;
  display: block;
}
.np-fields { display: grid; gap: 14px; }
.np-fields--identified {
  grid-template-columns: 1fr;
  margin-bottom: 14px;
}
@media (min-width: 620px) {
  .np-fields--identified { grid-template-columns: 1fr 1fr; }
}
.np-processing { margin: 16px 0; padding: 14px 16px; background: #faf8f5; }
.np-processing-title { margin: 0 0 8px; font-weight: 600; font-size: 14px; }
.np-processing-list { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-soft); }
.np-processing-list li.np-status--ok { color: #1a7f37; }
.np-processing-list li.np-status--err { color: #b42318; }
.np-inline-status { margin: 6px 0 0; font-size: 13px; }
.np-wia-status {
  margin: 10px 0 4px;
  padding: 12px 14px;
  font-size: 13px;
}
.np-wia-status-text {
  margin: 0;
  line-height: 1.45;
}
.np-wia-status.sa-form-status--ok .np-wia-status-text {
  font-size: 13px;
  font-weight: 500;
}
.np-wia-status-text.hidden {
  display: none;
}
.np-wia-status--loading {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(201, 168, 124, 0.45);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  animation: np-wia-status-pulse 1.8s ease-in-out infinite;
}
.np-wia-status-loader.hidden {
  display: none;
}
.np-wia-status-loader-head {
  margin-bottom: 10px;
}
.np-wia-status-loader-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.np-wia-status-spinner {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-width: 2px;
}
.np-description-field--wia-loading textarea,
.np-description-field--wia-loading .sa-rich-editor,
.np-description-field--wia-loading .sa-rich-toolbar {
  opacity: 0.72;
  pointer-events: none;
}
.sa-rich-editor--np-desc {
  min-height: 140px;
  max-height: 360px;
  overflow-y: auto;
  white-space: pre-wrap;
}
.sa-rich-editor--np-desc p {
  margin: 0 0 0.65em;
}
.sa-rich-editor--np-desc p:last-child {
  margin-bottom: 0;
}
.np-description-preview-wrap {
  margin-top: 8px;
}
.np-description-preview-label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}
.np-description-preview {
  padding: 10px 12px;
  border: 1px solid var(--line, rgba(0, 0, 0, 0.12));
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.02);
  font-size: 13px;
  line-height: 1.5;
  max-height: 220px;
  overflow-y: auto;
}
.np-description-preview p {
  margin: 0 0 0.65em;
}
.np-description-preview p:last-child {
  margin-bottom: 0;
}
@keyframes np-wia-status-pulse {
  0%, 100% {
    border-color: rgba(201, 168, 124, 0.45);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  }
  50% {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 168, 124, 0.18);
  }
}
.np-wia-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
}
/* WIA CTA : orange Fitzu flat + texte blanc (actif) */
.np-wia-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.25;
  border: 1px solid var(--fitzu-accent);
  border-radius: 999px;
  background: var(--fitzu-accent);
  color: #fff;
  cursor: pointer;
  box-shadow: none;
  transition: filter .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
}
.np-wia-btn:hover:not(:disabled):not(.is-loading) {
  filter: brightness(0.94);
  box-shadow: none;
}
.np-wia-btn:active:not(:disabled):not(.is-loading) {
  filter: brightness(0.9);
}
.np-wia-btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--fitzu-accent) 55%, #fff);
  outline-offset: 2px;
}
.np-wia-btn-label {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
  color: #fff;
}
.np-wia-btn:disabled {
  background: #fff;
  color: var(--ink-soft, #6b6b6b);
  border: 1px solid var(--line, #e8e4de);
  box-shadow: none;
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}
.np-wia-btn:disabled .np-wia-btn-label {
  color: inherit;
  font-weight: 600;
}
.np-wia-btn.is-loading {
  opacity: 0.82;
  pointer-events: none;
  filter: none;
  cursor: wait;
}
.np-confirm-desc {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 14px;
}
.np-color-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 18px;
  font-size: 14px;
}
.np-variations { margin: 16px 0; padding: 14px 16px; }
.np-toggle { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 12px; }
.np-variations-list { display: grid; gap: 10px; margin-bottom: 12px; }
.np-variation-row {
  display: grid;
  grid-template-columns: 1fr 100px 44px;
  gap: 8px;
  align-items: center;
}
.np-variation-row select,
.np-variation-row input {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  font-size: 16px;
}
.np-variation-remove {
  min-width: 44px;
  height: 44px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}
.np-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.np-subtab {
  border: 1px solid var(--line);
  background: #fff;
  color: #333;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.np-subtab.is-active {
  border-color: var(--fitzu-accent, #e87722);
  color: var(--fitzu-accent, #e87722);
  background: var(--fitzu-accent-soft, #fff4eb);
}
.np-subtab-count {
  min-width: 1.4em;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--fitzu-accent, #e87722);
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}
.np-edit-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--fitzu-accent, #e87722);
  background: var(--fitzu-accent-soft, #fff4eb);
}
.np-edit-banner p { margin: 4px 0 0; }
.np-status-choice {
  margin-top: 16px;
  padding: 12px 14px;
}
.np-status-choice legend {
  font-weight: 600;
  padding: 0 4px;
}
.np-status-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.np-status-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  background: #fff;
}
.np-status-option:has(input:checked) {
  border-color: var(--fitzu-accent, #e87722);
  background: var(--fitzu-accent-soft, #fff4eb);
}
.np-drafts-panel { padding: 14px 16px; }
.np-drafts-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.np-drafts-list {
  display: grid;
  gap: 12px;
}
/* Finaliser : skeletons pendant hydratation progressive de la fiche */
.np-form--hydrating .np-field--loading > input,
.np-form--hydrating .np-field--loading > select,
.np-form--hydrating .np-field--loading > textarea {
  opacity: 0.35;
}
.np-field--loading .np-field-skeleton-host {
  margin-top: 8px;
}
.np-field-skeleton--desc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}
.np-field-skeleton--meta {
  display: inline-block;
  width: 42%;
  min-width: 120px;
  margin: 0;
  vertical-align: middle;
}
.np-field-skeleton--variations {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.np-field-skeleton--gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.np-photo-preview.np-field--loading {
  min-height: 96px;
}
.np-draft-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}
.np-draft-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #f3f3f3;
}
.np-draft-card-main { min-width: 0; }
.np-draft-card-main strong {
  display: block;
  margin-bottom: 4px;
}
.np-draft-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.np-edit-banner > div:first-child {
  flex: 1 1 220px;
  min-width: 0;
}
@media (max-width: 640px) {
  .np-draft-card {
    grid-template-columns: 64px 1fr;
  }
  .np-draft-card-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .np-draft-card .btn-primary,
  .np-draft-card .btn-danger {
    flex: 1 1 auto;
  }
}
.np-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.np-actions .btn-primary {
  width: 100%;
  min-height: 48px;
  font-size: 16px;
}
.np-actions .btn-primary.is-disabled,
.np-actions .btn-secondary.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.np-actions .btn-primary.is-disabled:hover {
  background: var(--ink);
}
@media (min-width: 520px) {
  .np-actions .btn-primary { width: auto; min-width: 260px; }
}

.np-publish-progress {
  position: sticky;
  top: 8px;
  z-index: 50;
  margin-bottom: 16px;
}
.np-publish-progress-card {
  padding: 16px 18px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.np-publish-progress-head { margin-bottom: 10px; }
.np-publish-progress-steps {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.np-publish-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.35;
}
.np-publish-step-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  position: relative;
}
.np-publish-step--pending .np-publish-step-icon { background: #fff; }
.np-publish-step--active {
  color: var(--ink);
  font-weight: 600;
}
.np-publish-step--active .np-publish-step-icon {
  border-color: var(--fitzu-accent);
  border-top-color: transparent;
  animation: np-publish-spin .8s linear infinite;
}
.np-publish-step--done { color: #1a7f37; }
.np-publish-step--done .np-publish-step-icon {
  border-color: #1a7f37;
  background: #1a7f37;
}
.np-publish-step--done .np-publish-step-icon::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.np-publish-step--error { color: #b42318; }
.np-publish-step--error .np-publish-step-icon {
  border-color: #b42318;
  background: #b42318;
}
.np-publish-step--error .np-publish-step-icon::before,
.np-publish-step--error .np-publish-step-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  background: #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}
.np-publish-step--error .np-publish-step-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
@keyframes np-publish-spin {
  to { transform: rotate(360deg); }
}
.np-publish-progress-message {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
}
.np-publish-progress-message a { color: var(--accent-dark); }
.np-publish-progress--success .np-publish-progress-card {
  border: 1px solid rgba(26, 127, 55, 0.25);
}
.np-publish-progress--error .np-publish-progress-card {
  border: 1px solid rgba(180, 35, 24, 0.25);
}
.np-publish-progress--warn .np-publish-progress-card {
  border: 1px solid rgba(180, 120, 20, 0.35);
}
.np-publish-brand-warn {
  display: inline-block;
  margin-top: 6px;
  color: #8a5a00;
  font-size: 12.5px;
  line-height: 1.4;
}


/* --- Coups de cœur / Notre sélection (admin) --- */
.featured-selection-card,
.featured-catalog-card { margin-bottom: 20px; }
.featured-selection-head,
.featured-catalog-head { margin-bottom: 14px; }
.featured-selection-head h3,
.featured-catalog-head h3 { margin: 0 0 4px; font-size: 17px; }
.featured-selection-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}
.featured-selection-head-row h3 { margin: 0; }
#featured-clear-all-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.featured-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}
.featured-brand-filter {
  margin: 0;
  min-width: min(280px, 100%);
  flex: 1 1 220px;
}
.featured-brand-filter span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.featured-selection-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.featured-strip-item {
  flex: 0 0 112px;
  width: 112px;
  text-align: center;
}
.featured-strip-thumb {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f0eae0;
  border: 1px solid var(--line);
  position: relative;
}
.featured-strip-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-strip-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--ink-soft);
  font-size: 22px;
}
.featured-strip-item.is-cabine-disabled .featured-strip-thumb,
.featured-masonry-item.is-cabine-disabled .featured-masonry-img {
  opacity: 0.42;
  filter: grayscale(0.75);
}
.featured-strip-item.is-cabine-disabled .featured-strip-brand,
.featured-masonry-item.is-cabine-disabled .featured-masonry-brand {
  opacity: 0.55;
}
.featured-strip-brand {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.featured-strip-actions {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
}
.featured-strip-actions .btn-sm {
  min-width: 28px;
  padding: 2px 6px;
  font-size: 12px;
  line-height: 1.2;
}
.featured-selection-empty { margin: 0; }
.featured-catalog-masonry {
  column-count: 4;
  column-gap: 14px;
}
@media (max-width: 1100px) {
  .featured-catalog-masonry { column-count: 3; }
}
@media (max-width: 768px) {
  .featured-catalog-masonry { column-count: 2; }
}
.featured-masonry-item {
  break-inside: avoid;
  margin: 0 0 14px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}
.featured-masonry-item.is-selected {
  border-color: var(--fitzu-accent);
  box-shadow: 0 0 0 1px var(--fitzu-accent);
}
.featured-masonry-img img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}
.featured-masonry-brand {
  padding: 8px 10px 10px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.featured-star {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.featured-star:hover { color: var(--fitzu-accent); }
.featured-star.is-selected { color: var(--fitzu-accent); }
.featured-star i { font-size: 16px; }
.featured-disable-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.featured-strip-thumb .featured-disable-btn {
  top: 6px;
  left: 6px;
  width: 24px;
  height: 24px;
  font-size: 16px;
}
.featured-disable-btn:hover {
  color: #8a2f2f;
  background: #fff;
}
.featured-disable-btn.is-disabled {
  color: #8a2f2f;
  background: rgba(255, 245, 245, 0.96);
}
.featured-catalog-more { margin-top: 16px; text-align: center; }
.featured-catalog-sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
}
.featured-catalog-loader {
  margin: 10px 0 4px;
  font-size: 13px;
}

/* Smart Share Links — catalogue + stats */
.smart-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.smart-catalog-search { flex: 1 1 220px; margin: 0; }
.smart-catalog-search input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
}
.smart-catalog-count { margin: 0; font-size: 13px; }
.smart-catalog-item .smart-catalog-name {
  padding: 0 10px 8px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink);
}
.smart-catalog-copy {
  display: block;
  width: calc(100% - 20px);
  margin: 0 10px 12px;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  cursor: pointer;
}
.smart-catalog-copy:hover { background: rgba(0, 0, 0, 0.04); }
.smart-catalog-copy:disabled { opacity: 0.55; cursor: wait; }
.sl-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.sl-kpi {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.sl-kpi .label { font-size: 12px; color: var(--muted, #6b6b6b); }
.sl-kpi .value { font-size: 1.4rem; font-weight: 650; margin-top: 4px; }
.sl-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.sl-charts h4 { margin: 0 0 10px; font-size: 14px; }
.sl-bar-row {
  display: grid;
  grid-template-columns: 88px 1fr 36px;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
}
.sl-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-bar-track {
  height: 8px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
}
.sl-bar-fill {
  display: block;
  height: 100%;
  background: var(--ink);
  border-radius: 999px;
}
.sl-bar-value { text-align: right; color: var(--muted, #6b6b6b); }
@media (max-width: 640px) {
  .sl-kpi-row { grid-template-columns: 1fr; }
}

/* Linkzu */
.linkzu-result {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.linkzu-result-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft, #5a5a5a);
}
.linkzu-result-body {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.linkzu-result-media {
  display: none;
  flex: 0 0 auto;
}
.linkzu-result-media.is-visible {
  display: inline-flex;
}
.linkzu-result-media .linkzu-media {
  width: 48px;
  height: 48px;
}
.linkzu-result-media .linkzu-media--no-preview {
  width: 48px;
  height: 48px;
}
.linkzu-result-media .linkzu-preview {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}
.linkzu-result-media .linkzu-media .linkzu-favicon {
  right: -5px;
  bottom: -5px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #141824;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.18);
  color: rgba(244, 242, 239, 0.9);
}
.linkzu-result-media .linkzu-media--no-preview .linkzu-favicon {
  position: absolute;
  inset: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: #f3f0eb;
  box-shadow: none;
}
.linkzu-result-media .linkzu-favicon-fallback {
  font-size: 14px;
  color: var(--ink-soft, #6b6b6b);
}
.linkzu-result-media .linkzu-media--no-preview .linkzu-favicon-fallback {
  font-size: 1.15rem;
}
.linkzu-share-row {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.linkzu-share-input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf8f5;
  font: inherit;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink, #1a1a1a);
  word-break: break-all;
  cursor: text;
}
.linkzu-share-input:focus {
  outline: none;
  border-color: var(--fitzu-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fitzu-accent) 18%, transparent);
  background: #fff;
}
.linkzu-copy-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  border: 1px solid transparent;
}
.linkzu-copy-btn i {
  pointer-events: none;
}
.linkzu-copy-btn:hover:not(:disabled) {
  background: var(--fitzu-accent);
  border-color: var(--fitzu-accent);
  color: #fff;
}
.linkzu-copy-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.linkzu-result-target {
  margin: 10px 0 0;
  font-size: 0.9rem;
  word-break: break-all;
}
.linkzu-top-card { margin-top: 16px; }
.linkzu-list-card { margin-top: 16px; }
.linkzu-section-lead {
  margin: 4px 0 0;
  font-size: 0.9rem;
}
.linkzu-list { margin-top: 10px; }
.linkzu-top { margin-top: 12px; }
.linkzu-list-ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.linkzu-row {
  border: 1px solid var(--line, #e6e6e6);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}
.linkzu-row-target {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-soft, #6b6b6b);
}
.linkzu-row-target .linkzu-dest-text {
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-all;
}
.linkzu-row-target .linkzu-media {
  margin-top: 0;
}
.linkzu-media {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
}
.linkzu-media--no-preview {
  width: 20px;
  height: 20px;
}
.linkzu-preview {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f0eb;
  flex: 0 0 auto;
}
.linkzu-preview.is-broken {
  display: none;
}
.linkzu-preview-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.linkzu-preview-img.is-broken {
  display: none;
}
.linkzu-media .linkzu-favicon {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.linkzu-media--no-preview .linkzu-favicon {
  position: static;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  box-shadow: none;
  background: transparent;
}
.linkzu-favicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  line-height: 1;
}
.linkzu-favicon-img {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  object-fit: contain;
  background: #faf8f5;
}
.linkzu-media--no-preview .linkzu-favicon-img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}
/* FA globe : présent dans le DOM uniquement sans favicon (ou après onerror). */
.linkzu-favicon-fallback {
  display: inline-block;
  font-size: 12px;
  color: var(--ink-soft, #6b6b6b);
  line-height: 1;
}
.linkzu-favicon--fallback-only .linkzu-favicon-img {
  display: none;
}
.linkzu-dest-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}
.linkzu-dest-cell .linkzu-dest-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.linkzu-row-share {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}
.linkzu-row-url {
  flex: 1 1 180px;
  min-width: 0;
  font-size: 0.8rem;
  word-break: break-all;
  padding: 8px 10px;
  border-radius: 8px;
  background: #faf8f5;
  border: 1px solid var(--line);
  color: var(--ink, #1a1a1a);
}
.linkzu-row-stats {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-soft, #6b6b6b);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.linkzu-stats-total {
  color: var(--ink-soft, #6b6b6b);
}
.linkzu-sources {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.linkzu-source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink, #1a1a1a);
  font-variant-numeric: tabular-nums;
}
.linkzu-source i {
  font-size: 14px;
  line-height: 1;
  color: var(--ink-soft, #6b6b6b);
}
.linkzu-source-count {
  font-size: 12px;
  font-weight: 600;
}

/* Linkzu : attente type LLM (phrases cycliques) */
.linkzu-wait {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 14px 4px;
  color: var(--ink-soft, #6b6b6b);
}
.linkzu-wait-pulse {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #c9a87c);
  box-shadow: 0 0 0 0 rgba(201, 168, 124, 0.45);
  animation: linkzu-wait-pulse 1.6s ease-out infinite;
}
.linkzu-wait-text {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.linkzu-wait-text.is-swap {
  opacity: 0;
  transform: translateY(4px);
}
.linkzu-wait-caret {
  display: inline-block;
  width: 0.55ch;
  margin-left: 1px;
  border-right: 2px solid var(--accent, #c9a87c);
  animation: linkzu-caret-blink 0.9s step-end infinite;
  vertical-align: -0.05em;
}
@keyframes linkzu-wait-pulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 168, 124, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(201, 168, 124, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 168, 124, 0); }
}
@keyframes linkzu-caret-blink {
  50% { border-color: transparent; }
}

/* Linkzu Top 10 */
.linkzu-top-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line, #e6e6e6);
  border-radius: 10px;
  background: #fff;
}
.linkzu-top-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
.linkzu-top-table th,
.linkzu-top-table td {
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  vertical-align: middle;
}
.linkzu-top-table th {
  background: #f7f4ef;
  font-weight: 600;
  color: var(--ink-soft, #5a5a5a);
  white-space: nowrap;
}
.linkzu-top-table tr {
  border-bottom: 1px solid var(--line, #e6e6e6);
}
.linkzu-top-table tbody tr:last-child {
  border-bottom: none;
}
.linkzu-top-table tbody tr:hover {
  background: #faf8f5;
}
.linkzu-top-rank {
  width: 3rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--accent, #c9a87c);
}
.linkzu-top-opens {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
.linkzu-top-short code {
  font-size: 12px;
  word-break: break-all;
  background: #faf8f5;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 6px;
}
.linkzu-top-dest {
  max-width: 260px;
  color: var(--ink-soft, #6b6b6b);
}
.linkzu-top-source {
  white-space: nowrap;
}
.linkzu-top-source i {
  margin-right: 4px;
  color: var(--ink-soft, #6b6b6b);
}
.linkzu-top-actions-th,
.linkzu-top-actions {
  text-align: right;
  white-space: nowrap;
  width: 1%;
}
.linkzu-top-actions .linkzu-copy-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  font-size: 13px;
}
.linkzu-landing-banner {
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--line, #e6e6e6);
  border-radius: 10px;
  background: var(--fitzu-accent-soft, #fff4ef);
  color: var(--ink, #1a1a1a);
  font-size: 0.92rem;
  line-height: 1.45;
}
.linkzu-public-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.linkzu-public-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fitzu-accent, #e85d2a);
}
.linkzu-public-open {
  flex: 0 0 auto;
  align-self: center;
}
.linkzu-public-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 4px;
}
@media (max-width: 960px) {
  .linkzu-public-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .linkzu-public-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.linkzu-public-latest-card { margin-top: 4px; }
.linkzu-public-latest { margin-top: 12px; }
.linkzu-public-latest-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 18px;
  align-items: start;
}
@media (max-width: 640px) {
  .linkzu-public-latest-grid { grid-template-columns: 1fr; }
}
.linkzu-public-latest-media .linkzu-media {
  --linkzu-preview-size: 72px;
}
.linkzu-public-latest-media .linkzu-preview,
.linkzu-public-latest-media .linkzu-preview-img {
  width: 72px;
  height: 72px;
}
.linkzu-public-latest-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft, #5a5a5a);
}
.linkzu-public-latest-target {
  margin: 10px 0 0;
  font-size: 13px;
  word-break: break-all;
}
.linkzu-creators-card { margin-top: 16px; }
.linkzu-creators { margin-top: 12px; }
.linkzu-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  white-space: nowrap;
}
.linkzu-badge--landing {
  background: #fff0eb;
  color: #c43c1e;
  border: 1px solid #ffc9ba;
}
.linkzu-row-target .linkzu-badge {
  flex-shrink: 0;
  margin-left: 4px;
}
.linkzu-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--muted, #6b6b6b);
}
.linkzu-creator-meta,
.linkzu-creator-chip {
  font-size: 12px;
}
.linkzu-creator-chip {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 6px;
  background: #f4f4f4;
  border: 1px solid var(--line, #e6e6e6);
}
.linkzu-created { font-variant-numeric: tabular-nums; }
.linkzu-top-campaign {
  white-space: nowrap;
}

/* Réglages : vendeurs CRM */
.crm-stat-sellers {
  display: contents;
}
.sellers-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 520px;
}
.sellers-list-empty {
  padding: 12px 14px;
  border: 1px dashed var(--line, #e6e6e6);
  border-radius: 10px;
  background: #faf8f5;
}
.sellers-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line, #e6e6e6);
  border-radius: 10px;
  background: #fff;
}
.sellers-list-item--editing {
  flex-wrap: wrap;
  background: #faf8f5;
}
.sellers-list-name {
  font-weight: 600;
  font-size: 15px;
}
.sellers-list-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.sellers-edit-input {
  flex: 1 1 180px;
  min-width: 140px;
  padding: 8px 10px;
  border: 1px solid var(--line, #e6e6e6);
  border-radius: 8px;
  font: inherit;
}
.sellers-add-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin-top: 14px;
  max-width: 520px;
}
.sellers-add-field {
  flex: 1 1 200px;
  margin: 0;
}
.sellers-add-field input {
  width: 100%;
}

/* === CA boutique (caisse dense, iPad) === */
.ca-page-head {
  align-items: flex-end;
  gap: 12px 16px;
  margin-bottom: 14px;
}
.ca-page-sub { margin: 4px 0 0; }
.ca-month-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ca-month-label { margin: 0; }
.ca-month-label select {
  min-width: 180px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
.ca-month-chart {
  margin: 0 0 16px;
  padding: 14px 16px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.ca-month-chart[hidden] {
  display: none;
}
.ca-month-chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 8px;
}
.ca-month-chart-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.ca-month-chart-sub {
  margin: 0;
  font-size: 12px;
}
.ca-month-chart-plot {
  position: relative;
  width: 100%;
}
.ca-month-chart-plot canvas {
  display: block;
  width: 100%;
  height: 112px;
  cursor: crosshair;
  touch-action: manipulation;
}
.ca-month-chart-tooltip {
  position: absolute;
  z-index: 2;
  min-width: 96px;
  max-width: 200px;
  padding: 6px 9px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--fitzu-accent) 28%, var(--line));
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink);
  pointer-events: none;
  white-space: nowrap;
}
.ca-month-chart-tooltip strong {
  font-weight: 700;
  color: var(--fitzu-accent-text, var(--fitzu-accent));
}
.ca-month-chart-tooltip span {
  color: var(--ink-soft, #6b6b6b);
  font-size: 11px;
}
.cards.ca-kpi-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.cards.ca-kpi-cards.ca-kpi-cards--no-wc {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ca-kpi-card {
  margin-bottom: 0;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  box-shadow: none;
  background: #fff;
}
.ca-kpi-card.is-loading .value {
  opacity: 0.4;
}
.ca-kpi-card.is-loading .sub {
  opacity: 0.7;
}
.ca-kpi-card .label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.3;
}
.ca-kpi-card .label .fa-brands,
.ca-kpi-card .label .fa-solid {
  font-size: 0.95em;
  opacity: 0.75;
}
.ca-kpi-card .value {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-top: 10px;
}
.ca-kpi-card .sub {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.ca-kpi-card--wc .label {
  color: #21759b;
}
.ca-kpi-card--total {
  background: color-mix(in srgb, var(--fitzu-accent) 5%, #fff);
}
.ca-kpi-card--total .label {
  color: var(--fitzu-accent-text);
}
.ca-kpi-card--total .value {
  color: var(--ink);
  font-weight: 700;
}
.ca-kpi-delta { font-weight: 550; }
.ca-delta--up { color: #1b7a3d; }
.ca-delta--down { color: #b42318; }
.ca-delta--flat { color: var(--ink-soft); }
.ca-days-panel {
  padding: 12px 14px 14px;
  margin-bottom: 0;
}
.ca-days-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 8px;
}
.ca-days-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.ca-days-status { margin: 0; font-size: 13px; }
.ca-days-table-wrap { overflow-x: auto; }
.ca-days-table { width: 100%; }
.ca-days-table th,
.ca-days-table td {
  padding: 8px 10px;
  vertical-align: middle;
}
.ca-col-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ca-money { font-weight: 700; color: var(--fitzu-accent-text); }
.ca-day-row {
  cursor: pointer;
}
.ca-day-row:hover { background: var(--fitzu-accent-soft); }
.ca-day-row[aria-selected="true"] {
  background: color-mix(in srgb, var(--fitzu-accent) 12%, #fff);
  outline: 1px solid color-mix(in srgb, var(--fitzu-accent) 35%, transparent);
}
.ca-day-row--today .ca-day-label { font-weight: 700; }
.ca-day-row--empty { opacity: 0.55; }
.ca-today-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 650;
  color: var(--fitzu-accent-text);
  background: var(--fitzu-accent-soft);
}
.ca-top-sellers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.ca-top-seller {
  font-size: 13px;
  white-space: nowrap;
}
.ca-day-accordion-row > td {
  padding: 0 10px 10px;
  border-top: none;
  background: color-mix(in srgb, var(--fitzu-accent) 6%, #fff);
}
.ca-day-row[aria-expanded="true"] td {
  border-bottom-color: transparent;
}
.ca-day-detail {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--fitzu-accent) 28%, var(--line));
  border-radius: var(--radius);
  background: #fff;
}
.ca-day-detail--accordion {
  margin-top: 2px;
}
.ca-day-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.ca-day-detail-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}
.ca-sellers-table th,
.ca-sellers-table td { padding: 7px 8px; }

@media (max-width: 1100px) {
  .cards.ca-kpi-cards,
  .cards.ca-kpi-cards.ca-kpi-cards--no-wc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .cards.ca-kpi-cards,
  .cards.ca-kpi-cards.ca-kpi-cards--no-wc {
    grid-template-columns: 1fr;
  }
  .ca-kpi-card .value { font-size: 18px; }
  .ca-kpi-card { padding: 16px 16px 14px; }
  .ca-days-table th:nth-child(3),
  .ca-days-table td:nth-child(3) {
    display: none;
  }
}

/* Email / Avis : aperçu HTML live */
.sale-email-preview-wrap {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f4f4f4;
  overflow: hidden;
}
.sale-email-preview-body {
  display: block;
  width: 100%;
  min-height: 640px;
  background: #f4f4f4;
  overflow: auto;
  color: #1a1a1a;
  color-scheme: light only;
}
@media (max-width: 640px) {
  .sale-email-preview-body { min-height: 720px; }
}

/* === Mode magasin (iPad / caisse) === */
/* Catalogue / stock : infos centrées sous chaque produit (prix, tailles) */
body.admin-store-mode #view-wc-products .wc-product-card__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}
body.admin-store-mode #view-wc-products .wc-product-card__name {
  text-align: center;
  width: 100%;
  margin-bottom: 6px;
}
body.admin-store-mode #view-wc-products .wc-product-card__price-line {
  text-align: center;
  margin: 0 0 8px;
  font-size: 16px;
}
body.admin-store-mode #view-wc-products .wc-size-pills {
  justify-content: center;
  width: 100%;
  margin: 0 0 8px;
}
body.admin-store-mode #view-wc-products .wc-product-card__meta {
  justify-content: center;
  width: 100%;
}
/* Liste compacte iPad : masquer badge/SKU repliés, garder prix + tailles */
body.admin-store-mode #view-wc-products .wc-product-card:not(.is-expanded):not(.is-collapsing) .wc-product-card__meta {
  display: none;
}
body.admin-store-mode #view-wc-products .wc-product-card.is-expanded .wc-product-card__info,
body.admin-store-mode #view-wc-products .wc-product-card.is-collapsing .wc-product-card__info {
  align-items: flex-start;
  text-align: left;
}
body.admin-store-mode #view-wc-products .wc-product-card.is-expanded .wc-product-card__name,
body.admin-store-mode #view-wc-products .wc-product-card.is-expanded .wc-product-card__price-line,
body.admin-store-mode #view-wc-products .wc-product-card.is-collapsing .wc-product-card__name,
body.admin-store-mode #view-wc-products .wc-product-card.is-collapsing .wc-product-card__price-line {
  text-align: left;
}
body.admin-store-mode #view-wc-products .wc-product-card.is-expanded .wc-size-pills,
body.admin-store-mode #view-wc-products .wc-product-card.is-expanded .wc-product-card__meta,
body.admin-store-mode #view-wc-products .wc-product-card.is-collapsing .wc-size-pills,
body.admin-store-mode #view-wc-products .wc-product-card.is-collapsing .wc-product-card__meta {
  justify-content: flex-start;
}
body.admin-store-fab-visible .admin-main {
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}
/* Accueil cards : plein écran sans topbar admin */
body.admin-store-home #sa-topbar,
body.admin-store-home #client-topbar {
  display: none !important;
}
/* Pleine largeur écran (accueil + pages métier)
   !important : bat .admin-main { padding: 16px !important } ≤768px */
body.admin-store-mode .admin-main {
  max-width: none !important;
  width: 100%;
  margin: 0;
  padding-left: calc(16px + env(safe-area-inset-left, 0px)) !important;
  padding-right: calc(16px + env(safe-area-inset-right, 0px)) !important;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  body.admin-store-mode .admin-main {
    padding-left: calc(20px + env(safe-area-inset-left, 0px)) !important;
    padding-right: calc(20px + env(safe-area-inset-right, 0px)) !important;
  }
}
/* Accueil iPad : header bord à bord (main sans padding H, padding sur head/grid) */
body.admin-store-home .admin-main {
  padding-top: calc(12px + env(safe-area-inset-top, 0px)) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.admin-store-home .store-home-head,
body.admin-store-home .store-home-grid {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding-left: calc(16px + env(safe-area-inset-left, 0px));
  padding-right: calc(16px + env(safe-area-inset-right, 0px));
}
@media (min-width: 768px) {
  body.admin-store-home .store-home-head,
  body.admin-store-home .store-home-grid {
    padding-left: calc(20px + env(safe-area-inset-left, 0px));
    padding-right: calc(20px + env(safe-area-inset-right, 0px));
  }
}
/* Topbars SA/client visibles hors accueil : pleine largeur écran */
body.admin-store-mode .sa-topbar-inner {
  max-width: none;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  padding-left: calc(16px + env(safe-area-inset-left, 0px));
  padding-right: calc(16px + env(safe-area-inset-right, 0px));
}
@media (min-width: 768px) {
  body.admin-store-mode .sa-topbar-inner {
    padding-left: calc(20px + env(safe-area-inset-left, 0px));
    padding-right: calc(20px + env(safe-area-inset-right, 0px));
  }
}

/* Nouveau produit : layout iPad / mode magasin */
body.admin-store-mode #view-new-products .np-form,
body.admin-store-mode #view-new-products .np-publish-progress,
body.admin-store-mode #view-new-products .np-costs-panel {
  max-width: none;
  width: 100%;
}
body.admin-store-mode #view-new-products .np-form {
  padding: 18px 20px 22px;
}
body.admin-store-mode #view-new-products .sa-page-head {
  max-width: none;
  margin-bottom: 14px;
}
body.admin-store-mode #view-new-products .sa-page-head h1 {
  font-size: 24px;
}
body.admin-store-mode #view-new-products .sa-page-head .muted {
  font-size: 14px;
  max-width: 62ch;
}
/* Cards Nouveau produit : bordure foncée comme .np-processing / .card */
#view-new-products .card {
  border: 1px solid #46464670;
}
#view-new-products .np-import-progress--error .np-import-progress-card {
  border-color: rgba(180, 35, 24, 0.25);
}
#view-new-products .np-publish-progress--success .np-publish-progress-card {
  border-color: rgba(26, 127, 55, 0.25);
}
#view-new-products .np-publish-progress--error .np-publish-progress-card {
  border-color: rgba(180, 35, 24, 0.25);
}
#view-new-products .np-publish-progress--warn .np-publish-progress-card {
  border-color: rgba(180, 120, 20, 0.35);
}
body.admin-store-mode #view-new-products .np-url-import {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #46464670;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}
body.admin-store-mode #view-new-products .np-url-import > .sa-field > span {
  color: var(--ink, #1a1a1a);
  font-weight: 600;
}
body.admin-store-mode #view-new-products .np-url-row {
  flex-wrap: nowrap;
  gap: 12px;
}
body.admin-store-mode #view-new-products .np-url-row input[type="url"],
body.admin-store-mode #view-new-products #np-product-url {
  flex: 1 1 auto;
  min-height: 48px;
  font-size: 16px;
  border: 2px solid var(--fitzu-accent);
  border-radius: var(--pill-radius, 999px);
  background: #fff;
  color: var(--ink, #1a1a1a);
  padding: 10px 18px;
}
body.admin-store-mode #view-new-products .np-url-row input[type="url"]:focus,
body.admin-store-mode #view-new-products #np-product-url:focus {
  outline: none;
  border-color: var(--fitzu-accent);
  box-shadow: 0 0 0 3px var(--fitzu-accent-soft);
  background: #fff;
}
body.admin-store-mode #view-new-products .np-workspace {
  gap: 20px;
}
body.admin-store-mode #view-new-products .np-photo-preview {
  min-height: 280px;
}
body.admin-store-mode #view-new-products .np-grid--price {
  max-width: none;
  margin-bottom: 14px;
}
/* Mode iPad : Prix, puis Titre (plein largeur), puis Marque | Catégorie */
body.admin-store-mode #view-new-products .np-fields--identified {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
body.admin-store-mode #view-new-products .np-fields--identified > .sa-field:first-child {
  grid-column: 1 / -1;
}
body.admin-store-mode #view-new-products .np-workspace-fields .sa-field input,
body.admin-store-mode #view-new-products .np-workspace-fields .sa-field select,
body.admin-store-mode #view-new-products .np-workspace-fields .sa-field textarea {
  min-height: 48px;
  font-size: 16px;
}
body.admin-store-mode #view-new-products #np-description,
body.admin-store-mode #view-new-products .sa-rich-editor--np-desc {
  min-height: 160px;
}
body.admin-store-mode #view-new-products .np-processing,
body.admin-store-mode #view-new-products .np-costs-panel {
  margin: 0;
  padding: 12px 14px;
}
body.admin-store-mode #view-new-products .np-costs-table {
  font-size: 13px;
}
body.admin-store-mode #view-new-products .np-actions {
  position: static;
  margin-top: 18px;
  padding: 0;
  background: none;
}
body.admin-store-mode #view-new-products .np-wia-actions {
  margin: 12px 0 6px;
}
body.admin-store-mode #view-new-products .np-wia-btn:not(:disabled) {
  min-height: 48px;
  padding: 12px 20px;
  box-shadow: none;
}
body.admin-store-mode #view-new-products .np-wia-btn-label {
  font-size: 15px;
}
body.admin-store-mode #view-new-products .np-actions .btn-primary {
  width: 100%;
  min-height: 52px;
  font-size: 17px;
}

@media (min-width: 900px) {
  body.admin-store-mode #view-new-products .np-workspace {
    display: grid;
    grid-template-columns: minmax(300px, 38%) minmax(0, 1fr);
    gap: 24px 28px;
    align-items: start;
  }
  body.admin-store-mode #view-new-products .np-workspace-media {
    position: sticky;
    top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  body.admin-store-mode #view-new-products .np-photo-preview {
    min-height: 360px;
  }
  body.admin-store-mode #view-new-products .np-fields--identified {
    grid-template-columns: 1fr 1fr;
  }
  body.admin-store-mode #view-new-products .np-fields--identified > .sa-field:first-child {
    grid-column: 1 / -1;
  }
  body.admin-store-mode #view-new-products .np-grid--price {
    max-width: 220px;
  }
  body.admin-store-mode #view-new-products .np-processing-list {
    display: grid;
    gap: 4px;
    padding-left: 0;
    list-style: none;
  }
  body.admin-store-mode #view-new-products .np-actions .btn-primary {
    width: auto;
    min-width: 280px;
  }
}

@media (min-width: 900px) and (orientation: landscape) {
  body.admin-store-mode #view-new-products .sa-page-head .muted {
    display: none;
  }
  body.admin-store-mode #view-new-products .np-workspace {
    grid-template-columns: minmax(320px, 36%) minmax(0, 1fr);
  }
  body.admin-store-mode #view-new-products .np-photo-preview {
    min-height: min(42vh, 420px);
  }
}

/* FAB mode caisse / iPad : pastille blanche + icône noire (tous états) */
.admin-store-fab {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  /* Sous les modales CRM (.modal z-index: 100) */
  z-index: 90;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.admin-store-fab:hover {
  filter: brightness(0.97);
  transform: scale(1.04);
}
.admin-store-fab:active {
  transform: scale(0.97);
}
.admin-store-fab--home,
.admin-store-fab--desk {
  background: #fff;
  color: var(--ink);
  border: none;
}
.admin-store-fab--desk:hover {
  background: #fff;
  color: var(--ink);
  border: none;
  filter: brightness(0.97);
}

.store-home {
  padding: 8px 0 24px;
  /* Espace pour la pilule FITZU fixe bas gauche (+ FAB bas droite déjà géré via body) */
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}
.store-home-fitzu {
  position: fixed;
  left: calc(20px + env(safe-area-inset-left, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  line-height: 0;
}
.store-home-fitzu .fitzu-mark {
  line-height: 1.2;
}
.store-home-copyright {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  line-height: 1.2;
  pointer-events: none;
  user-select: none;
}
.store-home-copyright i {
  font-size: 11px;
}
.store-home-head {
  display: grid;
  /* Logo + avis à gauche, actions + horloge à droite (même si avis masqué). */
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand end";
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 28px;
  text-align: left;
}
.store-home-head-end {
  grid-area: end;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.store-home-head-brand {
  display: flex;
  align-items: center;
  gap: 10px 12px;
  min-width: 0;
  grid-area: brand;
  justify-self: start;
}
.store-home-google-rating-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  flex-shrink: 1;
}
.store-home-google-rating-wrap.hidden {
  display: none !important;
}
.store-home-google-rating {
  font-size: 15px;
  gap: 6px;
  margin-top: 0;
  padding: 4px 0;
  justify-content: flex-start;
}
.store-home-google-review-copy {
  flex-shrink: 0;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  min-height: 30px;
}
.store-home-google-review-copy.is-copied {
  border-color: var(--fitzu-accent);
  color: var(--fitzu-accent);
  background: var(--fitzu-accent-soft);
}
.store-home-google-rating .header-google-rating__logo {
  width: 18px;
  height: 18px;
}
.store-home-google-rating .header-google-rating__star {
  font-size: 16px;
}
.store-home-google-rating .header-google-rating__score {
  font-size: 16px;
  font-weight: 700;
}
.store-home-google-rating .header-google-rating__count {
  font-size: 14px;
}
.store-home-logo-wrap {
  flex-shrink: 0;
  line-height: 0;
}
.store-home-logo-wrap.hidden {
  display: none;
}
/* Trait vertical logo | avis (visible seulement si les deux blocs sont présents). */
.store-home-brand-sep {
  display: none;
  width: 1px;
  height: 22px;
  background: var(--line);
  flex-shrink: 0;
  align-self: center;
  margin: 0 2px;
}
.store-home-head-brand:has(.store-home-logo-wrap:not(.hidden)):has(.store-home-google-rating-wrap:not(.hidden)) .store-home-brand-sep {
  display: block;
}
.store-home-logo {
  height: 36px;
  width: auto;
  max-width: min(180px, 42vw);
  display: block;
  object-fit: contain;
  object-position: left center;
}
.store-home-datetime {
  text-align: right;
  min-width: 0;
  flex-shrink: 0;
}
.store-home-refresh-btn {
  flex-shrink: 0;
  white-space: nowrap;
  animation: store-home-refresh-attention 2.4s ease-in-out infinite;
}
.store-home-refresh-btn:hover,
.store-home-refresh-btn:focus-visible {
  animation: none;
}
@keyframes store-home-refresh-attention {
  0%, 100% {
    transform: translateX(0);
    border-color: var(--line);
    box-shadow: 0 0 0 0 transparent;
  }
  8% {
    transform: translateX(-1.5px);
  }
  16% {
    transform: translateX(1.5px);
  }
  24% {
    transform: translateX(-1px);
  }
  32% {
    transform: translateX(0);
  }
  50% {
    border-color: var(--fitzu-accent);
    box-shadow: 0 0 0 3px var(--fitzu-accent-soft);
  }
}
@media (prefers-reduced-motion: reduce) {
  .store-home-refresh-btn {
    animation: none;
  }
}
.store-home-clock {
  display: block;
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.store-home-date {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.3;
}
.store-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.store-home-card {
  appearance: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 148px;
  padding: 24px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  text-align: center;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.store-home-card:hover {
  border-color: var(--fitzu-accent);
  background: var(--fitzu-accent-soft);
  box-shadow: 0 8px 24px rgba(255, 74, 46, 0.1);
  transform: translateY(-2px);
}
.store-home-card:active {
  transform: translateY(0);
}
.store-home-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--fitzu-accent-soft);
  color: var(--fitzu-accent);
  font-size: 24px;
}
.store-home-card-label {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}
.store-home-card-sub {
  display: block;
  max-width: 100%;
  margin-top: -6px;
  padding: 0 4px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
  color: #939393;
  letter-spacing: 0.01em;
}
.store-home-card--disabled,
.store-home-card:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.store-home-card--disabled:hover,
.store-home-card:disabled:hover {
  border-color: var(--line);
  background: #fff;
  transform: none;
  box-shadow: none;
}
.store-home-card.is-keyboard-focus,
.store-home-card:focus-visible {
  outline: 3px solid var(--fitzu-accent);
  outline-offset: 3px;
  border-color: var(--fitzu-accent);
  background: var(--fitzu-accent-soft);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--fitzu-accent) 22%, transparent);
  transform: translateY(-2px);
}
.store-home-card.is-keyboard-focus:focus {
  outline: 3px solid var(--fitzu-accent);
}

@media (min-width: 768px) {
  .store-home-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
  .store-home-card {
    min-height: 168px;
  }
  .store-home-google-rating {
    font-size: 16px;
  }
  .store-home-google-rating .header-google-rating__logo {
    width: 20px;
    height: 20px;
  }
  .store-home-google-rating .header-google-rating__star,
  .store-home-google-rating .header-google-rating__score {
    font-size: 18px;
  }
  .store-home-google-rating .header-google-rating__count {
    font-size: 15px;
  }
  .store-home-clock {
    font-size: 34px;
  }
  .store-home-date {
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  .store-home-head {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand end";
    align-items: center;
    gap: 10px 12px;
  }
  .store-home-head-brand {
    grid-area: brand;
    flex-wrap: wrap;
    gap: 8px 10px;
  }
  .store-home-google-rating {
    padding: 2px 0;
  }
  .store-home-head-end {
    gap: 8px;
  }
  .store-home-refresh-btn {
    padding: 5px 10px;
    font-size: 11px;
  }
  .store-home-grid {
    gap: 12px;
  }
  .store-home-card {
    min-height: 128px;
    padding: 18px 12px;
    gap: 10px;
  }
  .store-home-card-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  .store-home-card-label {
    font-size: 15px;
  }
  .store-home-card-sub {
    font-size: 11.5px;
    margin-top: -4px;
  }
  .store-home-card-badge--lg {
    min-width: 30px;
    height: 30px;
    font-size: 15px;
  }
}

/* Dernières ventes (mode magasin) */
.store-sales-head {
  margin-bottom: 16px;
}
.store-sales-overview {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px 16px;
  margin-bottom: 14px;
}
.store-sales-sellers {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 0;
  flex: 0 1 auto;
}
.store-sales-month-chart {
  flex: 1 1 220px;
  min-width: min(100%, 200px);
  margin: 0;
  padding: 8px 12px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 72px;
}
.store-sales-month-chart[hidden] {
  display: none;
}
.store-sales-month-chart canvas {
  display: block;
  width: 100%;
  height: 56px;
}
.store-sales-month-chart-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 14px;
}
.store-sales-month-chart-edge {
  font-size: 10px;
  font-weight: 550;
  color: #939393;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.store-sales-month-chart-caption {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-soft, #6b6b6b);
  letter-spacing: 0.02em;
  text-align: center;
  flex: 1 1 auto;
}
@media (max-width: 900px) {
  .store-sales-month-chart {
    flex-basis: 100%;
  }
}
.store-sales-sellers:empty,
.store-sales-sellers[hidden] {
  display: none;
}
.store-sales-sellers-empty {
  margin: 0;
  text-align: center;
  font-size: 13px;
  width: 100%;
}
.store-sales-seller-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: fit-content;
  min-width: 128px;
  max-width: 100%;
  min-height: 72px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  text-align: center;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.store-sales-seller-card:hover {
  border-color: var(--fitzu-accent);
  background: var(--fitzu-accent-soft);
}
.store-sales-seller-card:focus-visible {
  outline: 2px solid var(--fitzu-accent);
  outline-offset: 2px;
}
.store-sales-seller-card.is-selected {
  border-color: var(--fitzu-accent);
  background: var(--fitzu-accent-soft);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--fitzu-accent) 28%, transparent);
}
.store-sales-seller-card-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}
.store-sales-seller-card-ca {
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.store-sales-seller-card-hint {
  font-size: 11px;
  font-weight: 550;
  color: #939393;
  letter-spacing: 0.01em;
}
.store-sales-search {
  margin-bottom: 14px;
}
.store-sales-day {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 6px 0 2px;
  padding: 4px 2px 2px;
}
.store-sales-day:first-child {
  margin-top: 0;
}
.store-sales-day-label {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-transform: capitalize;
}
.store-sales-day--today .store-sales-day-label {
  color: var(--fitzu-accent-text, var(--fitzu-accent));
}
.store-sales-day-badge,
.store-sales-today-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--fitzu-accent-text, var(--fitzu-accent));
  background: var(--fitzu-accent-soft);
  border: 1px solid color-mix(in srgb, var(--fitzu-accent) 28%, transparent);
}
.store-sales-email-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #1b5e20;
  background: #e8f5e9;
  border: 1px solid color-mix(in srgb, #2e7d32 24%, transparent);
}
.store-sales-email-badge i {
  font-size: 10px;
}
.store-sales-row--today {
  border-color: color-mix(in srgb, var(--fitzu-accent) 35%, var(--line));
  background: color-mix(in srgb, var(--fitzu-accent-soft) 55%, #fff);
}
.crm-sale-archive-modal-card {
  max-width: min(440px, 94vw);
  width: min(440px, 94vw);
}
.crm-sale-archive-modal-card textarea {
  width: 100%;
  resize: vertical;
  min-height: 72px;
}
.store-sales-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.store-sales-empty {
  margin: 24px 0;
  text-align: center;
}
.store-sales-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.store-sales-row:hover {
  border-color: var(--fitzu-accent);
  background: var(--fitzu-accent-soft);
}
.store-sales-row:focus-visible {
  outline: 2px solid var(--fitzu-accent);
  outline-offset: 2px;
}
.store-sales-row-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 240px;
  min-width: 0;
}
.store-sales-row-aside {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 10px;
  flex: 0 1 auto;
  margin-left: auto;
  align-self: center;
}
.store-sales-row-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
}
.store-sales-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.3;
}
.store-sales-meta-sep {
  color: var(--ink-soft);
  font-weight: 500;
}
.store-sales-products {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.35;
}
.store-sales-product-line {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-sales-product-more {
  font-weight: 600;
}
.store-sales-date {
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.store-sales-seller {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-sales-client {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-sales-origin {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-sales-total {
  font-size: 15px;
  font-weight: 750;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-left: 0;
  line-height: 1;
}
.store-sales-row-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
/* Pills compactes alignées sur .store-sales-payment .crm-sale-payment-badge */
.store-sales-row-actions .btn-sm {
  min-height: 0 !important;
  height: auto !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px !important;
  font-weight: 700;
  line-height: 1.2;
}
.store-sales-row-actions .btn-sm i {
  font-size: 12px;
  line-height: 1;
}
.store-sales-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}
.store-sales-status {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 720px) {
  .store-sales-row-aside {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
  .store-sales-total {
    margin-left: 0;
  }
  .store-sales-row-top {
    gap: 6px 10px;
  }
}

/* Nos clients (mode magasin) */
.store-clients-head {
  margin-bottom: 12px;
}
.store-clients-search {
  display: block;
  margin: 0 0 16px;
}
.store-clients-search input {
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 17px;
  background: #fff;
}
.store-clients-search input:focus {
  outline: none;
  border-color: var(--fitzu-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fitzu-accent) 18%, transparent);
}
.store-clients-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.store-clients-empty {
  margin: 24px 0;
  text-align: center;
}
.store-clients-empty--create {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 220px;
  margin: 32px 0;
  padding: 24px 16px;
}
.store-clients-empty--create p {
  margin: 0;
  font-size: 16px;
}
.store-clients-create-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  /* btn-primary a border:none : forcer la bordure orange visible */
  border: 2px solid var(--fitzu-accent);
  box-sizing: border-box;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.store-clients-create-btn > i {
  font-size: 15px;
}
body.admin .store-clients-create-btn:hover,
body.admin .store-clients-create-btn:active,
body.admin .store-clients-create-btn:focus-visible {
  background: var(--fitzu-accent);
  border-color: var(--fitzu-accent);
  color: #fff;
  outline: none;
}
body.admin .store-clients-create-btn:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fitzu-accent) 18%, transparent);
}
.store-clients-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  min-height: 64px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.store-clients-row:hover,
.store-clients-row:focus-visible {
  border-color: color-mix(in srgb, var(--fitzu-accent) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fitzu-accent) 14%, transparent);
  outline: none;
}
.store-clients-row-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 180px;
}
.store-clients-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
}
.store-clients-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.store-clients-sales {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.store-clients-sale-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  border: 1px solid transparent;
}
.store-clients-sale-badge--boutique {
  color: var(--fitzu-accent-text, var(--fitzu-accent));
  background: var(--fitzu-accent-soft, color-mix(in srgb, var(--fitzu-accent) 12%, #fff));
  border-color: color-mix(in srgb, var(--fitzu-accent) 28%, var(--line));
}
.store-clients-sale-badge--boutique i {
  color: var(--fitzu-accent);
  font-size: 11px;
}
.store-clients-sale-badge--online {
  color: #21759b;
  background: color-mix(in srgb, #21759b 8%, #fff);
  border-color: color-mix(in srgb, #21759b 28%, var(--line));
}
.store-clients-sale-badge--online i {
  color: #21759b;
  font-size: 12px;
}
.store-clients-sale-badge.is-zero {
  opacity: 0.42;
  font-weight: 600;
}
.store-clients-phone {
  font-size: 14px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.store-clients-created {
  font-size: 13px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.store-clients-created--today {
  color: var(--fitzu-accent-text, var(--fitzu-accent));
  font-weight: 600;
}
.store-clients-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}
.store-clients-row-actions .btn-sm,
.store-clients-row-actions a.btn-sm {
  min-height: 48px;
  min-width: 48px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-sizing: border-box;
}
/* Clic toujours sur le <a> (mailto/sms/tel), pas sur l'icône (iOS Safari) */
.store-clients-row-actions a.btn-sm > i,
.store-clients-row-actions a.btn-sm > span {
  pointer-events: none;
}
.crm-contact-actions a > i {
  pointer-events: none;
}
.store-clients-row-actions .store-clients-email {
  color: #245b8a;
  border-color: #c5d9eb;
  background: #eef5fb;
}
.store-clients-row-actions .store-clients-email:hover {
  color: #1a4568;
  border-color: #245b8a;
  background: #dfeaf5;
}
.store-clients-row-actions .store-clients-sms {
  color: #2a6b5a;
  border-color: #c5e0d8;
  background: #eef8f4;
}
.store-clients-row-actions .store-clients-sms:hover {
  color: #1d4f42;
  border-color: #2a6b5a;
  background: #dceee7;
}
.store-clients-row-actions .store-clients-wa {
  color: #128c7e;
  border-color: #b8e6d4;
  background: #e7f8f0;
}
.store-clients-row-actions .store-clients-wa:hover {
  color: #0b6b5f;
  border-color: #128c7e;
  background: #d4f1e4;
}
.store-clients-row-actions .store-clients-action--disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}
.store-clients-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}
.store-clients-status {
  margin: 0;
  font-size: 13px;
}


/* Mémo (bureau + mode magasin) */
.store-home-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--fitzu-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  box-sizing: border-box;
  pointer-events: auto;
}
/* Badge chiffre plus lisible (Nouveau produit + Vente en ligne) */
.store-home-card-badge--lg {
  top: 16px;
  right: 16px;
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  font-size: 16px;
  font-weight: 800;
}
/* Anneau outline qui pulse autour du badge (count > 0) ; chiffre stable ; Mémo sans --lg non concerné */
.store-home-card-badge--lg:not(.hidden)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid var(--fitzu-accent);
  pointer-events: none;
  animation: store-home-badge-ring 2.4s ease-out infinite;
}
@keyframes store-home-badge-ring {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .store-home-card-badge--lg:not(.hidden)::after {
    animation: none;
    opacity: 0;
  }
}
.memo-view {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  /* Espace pour le FAB + (et stack au-dessus du FAB magasin si présent) */
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}
body.admin-store-fab-visible .memo-view {
  padding-bottom: calc(160px + env(safe-area-inset-bottom, 0px));
}
.memo-head {
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.memo-new-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: 999px;
  min-height: 44px;
  padding: 12px 22px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.memo-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.memo-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  flex: 1 1 auto;
  min-width: 0;
}
.memo-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.memo-seller-filter {
  display: inline-flex;
  align-items: center;
  margin: 0;
  min-width: 0;
}
.memo-seller-filter select {
  min-height: 36px;
  max-width: 180px;
  padding: 6px 28px 6px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #1a1a1a);
  box-sizing: border-box;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.4 0.6L6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 7px;
}
.memo-seller-filter select:focus {
  outline: none;
  border-color: var(--fitzu-accent);
}
body.admin-store-mode .memo-seller-filter select {
  min-height: 40px;
  max-width: 160px;
  font-size: 14px;
}
/* Filtres : pills proportionnées (comme .btn-* / chips admin), pas capsules écrasées */
.memo-filter-btn {
  min-height: 36px;
  padding: 8px 14px !important;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 999px;
  box-sizing: border-box;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.memo-filter-btn.active {
  border-color: var(--fitzu-accent);
  color: var(--fitzu-accent);
  background: var(--fitzu-accent-soft);
}
.memo-status {
  margin: 0 0 14px;
  font-size: 13px;
}
/* FAB + nouvelle note (bas droite, style store FAB) */
.memo-fab {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 91;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: var(--fitzu-accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.memo-fab:hover {
  filter: brightness(0.95);
  transform: scale(1.04);
}
.memo-fab:active {
  transform: scale(0.97);
}
/* Au-dessus du FAB mode magasin / accueil quand les deux sont visibles */
body.admin-store-fab-visible .memo-fab {
  bottom: calc(20px + 58px + 14px + env(safe-area-inset-bottom, 0px));
}
.memo-form {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}
.memo-form-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}
.memo-form > .sa-field {
  margin-bottom: 0;
  min-width: 0;
  max-width: 100%;
}
.memo-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 8px;
  margin-top: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
.memo-form-grid > .sa-field {
  margin-bottom: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.memo-form .sa-field select,
.memo-form .sa-field textarea,
.memo-form .sa-field input[type="date"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.memo-form-grid .sa-field select {
  padding: 7px 8px;
  font-size: 13px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* iOS/iPad : input[type=date] a une largeur intrinsèque énorme */
.memo-form-grid .sa-field input[type="date"] {
  display: block;
  width: 100%;
  max-width: 9.5rem;
  min-width: 0;
  padding: 7px 8px;
  font-size: 13px;
  line-height: 1.25;
  -webkit-appearance: none;
  appearance: none;
}
.memo-form .sa-field select[data-memo-author] {
  border: 2px solid var(--fitzu-accent);
}
.memo-field-due {
  max-width: 9.5rem;
}
.memo-due-date-field {
  max-width: 9.5rem;
}
.memo-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}
/* CTA formulaire : même gabarit que .btn-crm-sale / .btn-secondary admin */
.memo-form-actions .btn-secondary,
.memo-form-actions .btn-crm-sale,
.memo-form-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  box-sizing: border-box;
}
/* Tablette / iPad : auteur + destinataire + échéance sur une ligne sans overflow */
@media (min-width: 640px) {
  .memo-form-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
  }
  .memo-field-author,
  .memo-field-assignee {
    max-width: 100%;
  }
  .memo-field-due {
    width: 100%;
    max-width: 9.5rem;
    justify-self: start;
  }
  .memo-due-date-field:not(.hidden) {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 9.5rem;
  }
}
@media (min-width: 960px) {
  .memo-form-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 9.5rem) minmax(0, 9.5rem);
  }
  .memo-field-due {
    max-width: 9.5rem;
  }
  .memo-due-date-field:not(.hidden) {
    grid-column: auto;
    max-width: 9.5rem;
  }
}
.memo-form-error {
  margin: 10px 0 0;
  color: #b42318;
}
.memo-contact-field {
  margin-top: 10px;
  min-width: 0;
}
.memo-contact-field .sa-field {
  margin-bottom: 0;
}
.memo-contact-field input[type="search"] {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.memo-contact-selected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--fitzu-accent-soft, #fff7f0);
  font-size: 13px;
}
.memo-contact-chip-text {
  min-width: 0;
  flex: 1 1 auto;
}
.memo-contact-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  max-height: 180px;
  overflow-y: auto;
}
.memo-contact-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.memo-contact-result.is-keyboard-active {
  border-color: var(--fitzu-accent);
  color: var(--fitzu-accent);
  background: var(--fitzu-accent-soft);
}
.memo-contact-result.is-keyboard-active {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fitzu-accent) 35%, transparent);
}
.memo-contact-result-name {
  font-weight: 600;
  font-size: 14px;
}
.memo-contact-result-meta {
  font-size: 12px;
  color: #667085;
}
.memo-contact-status {
  margin: 6px 0 0;
  font-size: 12px;
}
.memo-row-contact {
  margin: 4px 0 2px;
  font-size: 13px;
  color: #344054;
}
.memo-row-contact a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.memo-row-contact i {
  margin-right: 4px;
  opacity: 0.7;
}
.memo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}
.memo-empty {
  margin: 24px 0;
  text-align: center;
}
.memo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.memo-row--done {
  opacity: 0.72;
  background: color-mix(in srgb, var(--ink) 3%, #fff);
}
.memo-row-main {
  flex: 1 1 240px;
  min-width: 0;
  position: relative;
}
.memo-row-body {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}
.memo-row-meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}
.memo-row-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--fitzu-accent);
  background: var(--fitzu-accent-soft);
}
.memo-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}
/* Actions ligne : même radius pill que .btn-secondary, padding digne (évite capsules écrasées btn-sm) */
.memo-row-actions .btn-sm {
  min-height: 44px;
  padding: 0 16px !important;
  font-size: 13px !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  box-sizing: border-box;
  transition: background .15s ease, border-color .15s ease, color .15s ease, filter .15s ease;
}
body.admin-store-mode .memo-row-actions .btn-sm {
  min-height: 48px;
  padding: 0 18px !important;
}
@media (max-width: 700px) {
  .memo-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .memo-seller-filter {
    flex: 1 1 auto;
  }
  .memo-seller-filter select {
    width: 100%;
    max-width: none;
  }
  .memo-new-btn {
    width: 100%;
    justify-content: center;
  }
  .memo-form-actions .btn-secondary,
  .memo-form-actions .btn-crm-sale,
  .memo-form-actions .btn-primary {
    flex: 1 1 auto;
    min-width: 140px;
  }
}

/* --- Vente en ligne (commandes WooCommerce) --- */
.wc-orders-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
}
.wc-orders-search-label,
.wc-orders-status-filter {
  flex: 1 1 180px;
  min-width: 0;
}
.wc-orders-search-label input,
.wc-orders-status-filter select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
.wc-orders-count {
  margin: 0;
  flex: 0 0 auto;
}
.wc-orders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wc-orders-page-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.wc-orders-page-head-row h1 {
  margin: 0;
}
.wc-orders-todo-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--fitzu-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.wc-orders-todo-badge.hidden { display: none; }
.wc-order-card--todo {
  border-color: rgba(255, 74, 46, 0.35);
  background: linear-gradient(180deg, #fff8f6 0%, #fff 70%);
}
.wc-order-card--delivery {
  border-color: rgba(29, 95, 168, 0.35);
  background: linear-gradient(180deg, #f3f8fd 0%, #fff 70%);
}
.wc-order-card__number-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.wc-order-card__todo-badge,
.wc-order-card__delivery-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.2;
}
.wc-order-card__todo-badge {
  background: var(--fitzu-accent);
}
.wc-order-card__delivery-badge {
  background: #1d5fa8;
}
.wc-order-card__todo-badge i,
.wc-order-card__delivery-badge i {
  font-size: 11px;
  line-height: 1;
}
.wc-orders-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 16px;
  color: var(--ink-soft);
  font-size: 14px;
}
.wc-orders-loader.hidden { display: none; }
.wc-orders-loader .spinner-small {
  border-top-color: var(--fitzu-accent, var(--accent));
  flex: 0 0 auto;
}
.wc-order-card {
  appearance: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px 16px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wc-order-card:hover {
  border-color: var(--fitzu-accent);
  box-shadow: 0 4px 16px rgba(255, 74, 46, 0.08);
}
.wc-order-card:focus {
  outline: none;
}
.wc-order-card:focus-visible {
  border-color: var(--fitzu-accent);
  box-shadow: 0 0 0 3px rgba(255, 74, 46, 0.22);
}
.wc-order-card .wc-order-card__status-select,
.wc-order-card .wc-order-card__status-save,
.wc-order-card .wc-order-contact-btn {
  cursor: pointer;
}
.wc-order-card__main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wc-order-card__aside {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  align-self: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0;
  border: 0;
}
.wc-order-card__number {
  display: block;
  font-weight: 700;
  font-size: 15px;
}
.wc-order-card__number i {
  margin-right: 6px;
  color: #21759b;
}
.wc-order-card__customer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
}
.wc-order-card__customer {
  margin: 0;
  font-weight: 600;
  flex: 0 1 auto;
  min-width: 0;
}
.wc-order-card__meta,
.wc-order-card__items,
.wc-order-card__origin {
  margin: 0;
  font-size: 13px;
}
.wc-order-card__items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
  color: var(--ink-soft);
  line-height: 1.35;
}
.wc-order-card__item {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wc-order-card__item-more {
  font-weight: 600;
}
.wc-order-card__contact {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.wc-order-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
  line-height: 1;
  flex: 0 0 auto;
}
.wc-order-contact-btn--email:hover {
  border-color: var(--fitzu-accent);
  color: var(--fitzu-accent);
  background: var(--fitzu-accent-soft, #fff4f1);
}
.wc-order-contact-btn--note {
  cursor: pointer;
  font: inherit;
}
.wc-order-contact-btn--note:hover {
  border-color: var(--fitzu-accent);
  color: var(--fitzu-accent);
  background: var(--fitzu-accent-soft, #fff4f1);
}
.wc-order-contact-btn--wa {
  color: #128c7e;
  border-color: #b7e0da;
}
.wc-order-contact-btn--wa:hover {
  background: #e8f8f5;
  border-color: #128c7e;
}
.wc-order-note-modal-card {
  max-width: 440px;
}
.wc-order-note-modal-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
}
.wc-order-note-modal-card h3 i {
  color: var(--fitzu-accent);
  font-size: 0.9em;
}
.wc-order-note-modal-card #wc-order-note-modal-sub {
  margin: 0 0 14px;
}
.wc-order-note-modal-card #wc-order-note-modal-feedback {
  margin: 8px 0 0;
  min-height: 1.2em;
}
.wc-order-note-modal-card #wc-order-note-modal-feedback.sa-form-status--error {
  color: #a35a55;
}
.wc-order-card__status-select {
  flex: 0 1 auto;
  min-width: 132px;
  max-width: 210px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.25;
  background: #fff;
}
.wc-order-card__status-save {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 4px 9px !important;
  font-size: 12px !important;
  line-height: 1.25;
}
.wc-order-card__status {
  flex: 0 0 auto;
}
.wc-order-card__feedback {
  margin: 0;
  font-size: 12px;
  min-height: 0;
}
.wc-order-card__feedback:empty {
  display: none;
}
@media (max-width: 720px) {
  .wc-order-card {
    flex-wrap: wrap;
    align-items: stretch;
  }
  .wc-order-card__aside {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
.wc-order-origin {
  margin-top: 6px !important;
}
.wc-order-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #f3f0eb;
  color: #5c574f;
  white-space: nowrap;
}
.wc-order-status--processing { background: #e8f1fb; color: #1d5fa8; }
.wc-order-status--livraison { background: #e8f1fb; color: #1d5fa8; }
.wc-order-status--completed { background: #e3f6eb; color: #1b7f4a; }
.wc-order-status--on-hold,
.wc-order-status--pending { background: #fff4e5; color: #9a5b00; }
.wc-order-status--cancelled,
.wc-order-status--failed,
.wc-order-status--refunded { background: #faf4f3; color: #a35a55; }
.wc-orders-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
/* Au-dessus de la fiche CRM (#crm-detail-modal z-index 100) */
#wc-order-modal,
#wc-order-note-modal {
  z-index: 120;
}
/*
 * Modale bornée à l’écran (portrait + paysage) :
 * top + bottom absolute → marge fixe, jamais hors écran.
 * Seul .wc-order-modal-body défile.
 * Important : ne PAS forcer display ici — .hidden doit pouvoir masquer la modale.
 */
#wc-order-modal:not(.hidden) {
  display: block;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: none;
  box-sizing: border-box;
}
#wc-order-modal.hidden {
  display: none !important;
}
.wc-order-modal-card {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 0px));
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(720px, calc(100vw - 24px));
  max-width: min(720px, calc(100vw - 24px));
  max-height: none;
  height: auto;
  margin: 0;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  box-sizing: border-box;
}
@media (orientation: landscape) and (max-height: 560px) {
  .wc-order-modal-card {
    top: max(6px, env(safe-area-inset-top, 0px));
    bottom: max(6px, env(safe-area-inset-bottom, 0px));
    width: min(720px, calc(100vw - 12px));
    max-width: min(720px, calc(100vw - 12px));
    padding: 10px 14px;
  }
  .wc-order-modal-head h3 {
    font-size: 18px;
  }
  .wc-order-modal-body {
    margin-top: 6px;
  }
  .wc-order-modal-footer {
    margin-top: 8px;
    padding-top: 8px;
  }
}
.wc-order-modal-head {
  flex-shrink: 0;
  padding-right: 36px;
}
.wc-order-modal-footer {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.wc-order-modal-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.wc-order-modal-head h3 i {
  color: #21759b;
}
.wc-order-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
/* iframe d’impression (hors écran mais dimensionnée — Chrome ignore 0×0) */
#wc-order-print-frame {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 800px !important;
  height: 1100px !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}
.wc-order-section {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.wc-order-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.wc-order-section h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.wc-order-section p {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.4;
}
.wc-order-section--status {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.wc-order-section--status .sa-field {
  flex: 1 1 200px;
  margin: 0;
}
.wc-order-lines,
.wc-order-notes {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wc-order-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.wc-order-line:last-child { border-bottom: none; }
.wc-order-line__thumb {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.wc-order-line__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wc-order-line__body {
  flex: 1;
  min-width: 0;
}
@media (max-width: 640px), (max-height: 500px) and (orientation: landscape) {
  .wc-order-line {
    gap: 12px;
    padding: 12px 0;
    align-items: flex-start;
  }
  .wc-order-line__thumb {
    width: 120px;
    height: 120px;
    border-radius: 10px;
  }
}
.wc-order-line__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-weight: 600;
  white-space: nowrap;
}
.wc-order-note {
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: #f7f5f2;
}
.wc-order-note.is-customer {
  background: #e8f1fb;
}
.wc-order-note p { margin: 0 0 4px; }
.wc-order-note p:last-child { margin: 0; }
.wc-order-checkout-note {
  margin-top: 8px !important;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff4e5;
}
#view-online-orders .sa-page-head h1 i {
  color: #21759b;
  margin-right: 6px;
}

/* === Footer cabine (hors demo) — persistant sous #view === */
.cabine-footer {
  margin-top: 24px;
  padding: 32px 16px calc(28px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-align: center;
}
.cabine-footer.hidden,
.cabine-footer[hidden] {
  display: none !important;
}
.cabine-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cabine-footer__brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 24px;
  width: 100%;
}
.cabine-footer__brand[hidden] {
  display: none !important;
}
.cabine-footer__logo {
  display: block;
  max-height: 32px;
  max-width: min(180px, 60vw);
  width: auto;
  height: auto;
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
}
.cabine-footer__logo[hidden] {
  display: none !important;
}
.cabine-footer__grid {
  display: grid;
  gap: 28px;
  width: 100%;
  justify-items: center;
}
.cabine-footer__col {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cabine-footer__heading {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}
.cabine-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.cabine-footer__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  text-align: center;
}
.cabine-footer__item i {
  margin-top: 0;
  color: var(--fitzu-accent, #FF4A2E);
  width: 1em;
  text-align: center;
  flex-shrink: 0;
}
.cabine-footer__item a {
  color: inherit;
  text-decoration: none;
  word-break: break-word;
}
.cabine-footer__item a:hover,
.cabine-footer__item a:focus-visible {
  color: var(--fitzu-accent, #FF4A2E);
  text-decoration: underline;
}
.cabine-footer__about {
  margin-top: 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.cabine-footer__about[hidden] {
  display: none !important;
}
.cabine-footer__about-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cabine-footer__about-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 36em;
}
.cabine-footer__about-text strong,
.cabine-footer__about-text b {
  font-weight: 700;
}
.cabine-footer__status {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
}
.cabine-footer__status--open,
.cabine-footer__status--closed {
  color: var(--ink);
}
.cabine-footer__hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
  text-align: center;
  width: 100%;
}
.cabine-footer__hours-text {
  margin: 0;
  white-space: pre-line;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  text-align: center;
}
.cabine-footer__map-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f0eae0;
  margin-left: auto;
  margin-right: auto;
}
.cabine-footer__map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.cabine-footer__map-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  text-decoration: none;
  background: transparent;
}
.cabine-footer__map-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
}
.cabine-footer__directions {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}
.cabine-footer__info {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  width: 100%;
  justify-items: center;
  text-align: center;
}
.cabine-footer__info-block {
  min-width: 0;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cabine-footer__info-icon {
  display: block;
  margin: 0 0 8px;
  color: var(--fitzu-accent, #FF4A2E);
  font-size: 1.25rem;
  line-height: 1;
  width: 1em;
  text-align: center;
}
.cabine-footer__info-title {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
}
.cabine-footer__info-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
  text-align: center;
}
.cabine-footer__pay-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 14px;
  margin-top: 10px;
}
.cabine-footer__pay-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cabine-footer__pay-icon i {
  font-size: 28px;
  line-height: 1;
}
.cabine-footer__pay-svg {
  display: block;
  width: 52px;
  height: 18px;
}
.cabine-footer__pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.cabine-footer__pay-badge--klarna {
  background: #ffa8cd;
  color: #000000;
}
/* Couleurs officielles marques paiement */
.cabine-footer__pay-icon--apple-pay {
  color: #000000;
}
.cabine-footer__pay-icon--visa {
  color: #1A1F71;
}
.cabine-footer__pay-icon--paypal {
  color: #003087;
}
.cabine-footer__wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex: 0 0 auto;
  width: auto;
  max-width: max-content;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 12px;
  border: 1.5px solid #25D366;
  border-radius: 999px;
  background: transparent;
  color: #25D366;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.cabine-footer__wa-btn i {
  color: #25D366;
  font-size: 1.1em;
  line-height: 1;
}
.cabine-footer__wa-btn:hover,
.cabine-footer__wa-btn:focus-visible {
  border-color: #25D366;
  background: rgba(37, 211, 102, 0.08);
  color: #25D366;
  outline: none;
}
.cabine-footer__wa-btn:hover i,
.cabine-footer__wa-btn:focus-visible i {
  color: #25D366;
}
.cabine-footer__copy-row {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  width: 100%;
  text-align: center;
}
.cabine-footer__copy {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.2;
  text-align: center;
}
.cabine-footer__powered {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.2;
}
.cabine-footer__powered .fitzu-mark {
  font-size: 11px;
}
@media (min-width: 769px) {
  .cabine-footer {
    padding: 40px 32px calc(36px + env(safe-area-inset-bottom, 0px));
    text-align: left;
  }
  .cabine-footer__inner {
    display: block;
  }
  .cabine-footer__brand {
    justify-content: flex-start;
    margin-bottom: 28px;
  }
  .cabine-footer__logo {
    max-height: 36px;
    margin-left: 0;
    margin-right: 0;
  }
  .cabine-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    justify-items: stretch;
  }
  .cabine-footer__col {
    max-width: none;
    align-items: stretch;
    text-align: left;
  }
  .cabine-footer__heading {
    text-align: left;
  }
  .cabine-footer__list {
    align-items: stretch;
  }
  .cabine-footer__item {
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
  }
  .cabine-footer__item i {
    margin-top: 3px;
  }
  .cabine-footer__about {
    align-items: flex-start;
    text-align: left;
  }
  .cabine-footer__about-title,
  .cabine-footer__about-text {
    text-align: left;
  }
  .cabine-footer__status {
    text-align: left;
  }
  .cabine-footer__hours-list {
    align-items: stretch;
    text-align: left;
  }
  .cabine-footer__hours-text {
    text-align: left;
  }
  .cabine-footer__map-frame {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
  .cabine-footer__map-actions {
    justify-content: flex-start;
  }
  .cabine-footer__info {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    justify-items: stretch;
    text-align: left;
  }
  .cabine-footer__info-block {
    max-width: none;
    align-items: stretch;
    text-align: left;
  }
  .cabine-footer__info-title,
  .cabine-footer__info-text {
    text-align: left;
  }
  .cabine-footer__pay-icons {
    justify-content: flex-start;
  }
  .cabine-footer__wa-btn {
    align-self: flex-start;
  }
  .cabine-footer__copy-row {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
  }
  .cabine-footer__copy {
    text-align: left;
  }
  .cabine-footer__powered {
    justify-content: flex-start;
  }
}

/* Admin : blocs footer Réglages */
.sa-footer-blocks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sa-footer-block {
  margin: 0;
  padding: 12px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.sa-footer-block legend {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* Admin : éditeur rich minimal (Gras) footer */
.sa-rich-toolbar {
  display: flex;
  gap: 8px;
  margin: 6px 0 8px;
}
.sa-rich-fmt {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
}
.sa-rich-fmt:hover {
  border-color: var(--fitzu-accent);
  color: var(--fitzu-accent);
  background: var(--fitzu-accent-soft);
}
.sa-rich-editor {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf8f5;
  font-size: 14px;
  line-height: 1.45;
  font-family: inherit;
  color: var(--ink);
  outline: none;
}
.sa-rich-editor:focus {
  border-color: var(--fitzu-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fitzu-accent) 18%, transparent);
  background: #fff;
}
.sa-rich-editor--hours {
  min-height: 110px;
  max-height: 240px;
  overflow-y: auto;
}
.sa-rich-editor--short {
  min-height: 44px;
  max-height: 120px;
  overflow-y: auto;
}
.sa-rich-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--ink-soft);
  pointer-events: none;
}
.sa-rich-editor strong,
.sa-rich-editor b {
  font-weight: 700;
}
.cabine-footer__hours-text strong,
.cabine-footer__hours-text b,
.cabine-footer__info-text strong,
.cabine-footer__info-text b {
  font-weight: 700;
}

/* --- Store looks (Générer un look mode magasin) --- */
.store-looks-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.store-looks-tab.active {
  border-color: var(--fitzu-accent);
  color: var(--fitzu-accent);
  background: var(--fitzu-accent-soft);
}
.store-looks-filters {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 220px);
  gap: 10px;
  margin-bottom: 12px;
}
@media (max-width: 700px) {
  .store-looks-filters { grid-template-columns: 1fr; }
}
.store-looks-filters .sa-field { margin: 0; }
.store-looks-filters input,
.store-looks-filters select {
  min-height: 48px;
  font-size: 16px;
}
.store-looks-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.store-looks-product-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  min-height: 180px;
}
.store-looks-product-card:hover,
.store-looks-product-card:focus-visible {
  border-color: var(--fitzu-accent);
  outline: none;
}
.store-looks-product-card__img {
  display: block;
  aspect-ratio: 3 / 4;
  background: #f4f2ef;
  overflow: hidden;
}
.store-looks-product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.store-looks-product-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 10px 10px;
  text-align: center;
  align-items: center;
}
.store-looks-product-card__brand {
  font-size: 12px;
  color: var(--ink-soft);
}
.store-looks-product-card__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.store-looks-foot { margin-top: 12px; }
.store-looks-back { margin-bottom: 12px; }
.store-looks-split {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.2fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .store-looks-split { grid-template-columns: 1fr; }
}
.store-looks-product-pane {
  position: sticky;
  top: 12px;
}
.store-looks-product-photo-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: #f4f2ef;
  border: 1px solid var(--line);
}
.store-looks-product-img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.store-looks-gen-product-head {
  margin: 0 0 16px;
}
.store-looks-product-name {
  margin: 0 0 4px;
  font-size: 1.15rem;
  line-height: 1.3;
}
.store-looks-product-brand {
  margin: 0;
  font-size: 0.9rem;
}
.store-looks-product-brand:empty {
  display: none;
}
.store-looks-models-block h3,
.store-looks-decors-block h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.store-looks-hint { margin: 0 0 10px; font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.store-looks-models-settings-card.sa-form-card,
.store-looks-models-settings-card {
  max-width: none;
  width: 100%;
}
#store-looks-models-empty { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#store-looks-models-empty.hidden { display: none; }
.store-looks-models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.store-looks-model-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  min-height: 120px;
  text-align: center;
  font-size: 12px;
}
.store-looks-model-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
.store-looks-model-card.selected {
  border-color: var(--fitzu-accent);
  background: var(--fitzu-accent-soft);
}
.store-looks-gen-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}
.store-looks-gen-actions .btn-crm-sale {
  min-height: 52px;
  font-size: 1.05rem;
}
.store-looks-result {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}
.store-looks-result-img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  background: #f4f2ef;
}
.store-looks-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.store-looks-mine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.store-looks-mine-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.store-looks-mine-card__media {
  position: relative;
  width: 100%;
}
.store-looks-mine-card__preview {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #f4f2ef;
  cursor: pointer;
}
.store-looks-mine-card__preview img {
  width: 100%;
  max-height: 320px;
  height: auto;
  object-fit: contain;
  display: block;
}
.store-looks-mine-card__overlay-btn {
  position: absolute;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: background 0.15s ease, transform 0.15s ease;
}
.store-looks-mine-card__overlay-btn:hover,
.store-looks-mine-card__overlay-btn:focus-visible {
  background: rgba(255, 255, 255, 0.32);
  outline: none;
}
.store-looks-mine-card__overlay-btn:active {
  transform: scale(0.96);
}
.store-looks-mine-card__bottom-actions {
  position: absolute;
  z-index: 2;
  bottom: 11px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}
.store-looks-mine-card__bottom-actions .store-looks-mine-card__overlay-btn {
  position: static;
  pointer-events: auto;
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.store-looks-mine-card__bottom-actions .store-looks-mine-card__overlay-btn:hover,
.store-looks-mine-card__bottom-actions .store-looks-mine-card__overlay-btn:focus-visible {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.14);
  color: #111;
  outline: none;
}
.store-looks-mine-card__overlay-btn.store-looks-mine-card__delete {
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  font-size: 12px;
  color: rgba(26, 26, 26, 0.52);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.store-looks-mine-card__overlay-btn.store-looks-mine-card__delete:hover,
.store-looks-mine-card__overlay-btn.store-looks-mine-card__delete:focus-visible {
  color: #8a2929;
  background: rgba(253, 245, 245, 0.95);
  border-color: rgba(196, 92, 92, 0.38);
  outline: none;
}
.store-looks-preview-actions {
  max-width: min(92vw, 520px);
  margin: 10px auto 0;
  text-align: center;
}
.store-looks-preview-linkzu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 6px 12px;
}
.store-looks-preview-linkzu i {
  font-size: 11px;
}
.store-looks-preview-linkzu.is-copied,
.store-looks-mine-card__linkzu.is-copied {
  color: var(--fitzu-accent);
}
.store-looks-preview-linkzu.is-error,
.store-looks-mine-card__linkzu.is-error {
  color: #b54a4a;
}
.store-looks-preview-actions.hidden {
  display: none !important;
}
.store-looks-preview.lightbox {
  z-index: 320;
}
.store-looks-preview .lightbox-img {
  width: auto;
  height: auto;
  object-fit: contain;
}
.store-looks-preview .lightbox-caption {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 500;
  text-align: center;
  max-width: min(90vw, 520px);
  padding: 0 12px;
}
.store-looks-preview-nav.hidden,
.store-looks-preview-counter.hidden {
  display: none !important;
}
.store-looks-preview-counter {
  top: 72px;
}
.store-looks-mine-card__product-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 0;
  margin: 10px auto 0;
  display: block;
  background: #f4f2ef;
}
.store-looks-mine-card__body {
  width: 100%;
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.store-looks-mine-card__product {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}
.store-looks-mine-card__meta {
  margin: 4px 0 0;
  font-size: 12px;
}
.store-looks-mine-card__prompt {
  margin: 6px 0 0;
  padding: 0 12px 8px;
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
}
.store-looks-mine-card__prompt-copy {
  font-size: 11px;
  padding: 3px 10px;
}
.store-looks-mine-card__prompt-copy.is-copied {
  color: var(--fitzu-accent);
  border-color: var(--fitzu-accent);
}
.store-looks-preview-prompt {
  max-width: min(92vw, 520px);
  margin: 10px auto 0;
  text-align: center;
}
.store-looks-preview-prompt-copy {
  font-size: 11px;
  padding: 4px 10px;
}
.store-looks-preview-prompt-copy.is-copied {
  color: var(--fitzu-accent);
  border-color: var(--fitzu-accent);
}
.store-looks-decor-custom-hint {
  margin-bottom: 12px;
}
.store-looks-decor-custom-field {
  margin: 0;
}
#store-looks-decor-reuse-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
#store-looks-decor-reuse-btn i {
  color: #fff;
  font-size: 12px;
}
#store-looks-decor-reuse-btn:hover,
#store-looks-decor-reuse-btn:focus-visible {
  background: var(--fitzu-accent);
  border-color: var(--fitzu-accent);
  color: #fff;
  outline: none;
}
#store-looks-decor-reuse-btn:hover i,
#store-looks-decor-reuse-btn:focus-visible i {
  color: #fff;
}
/* Re-assert après .modal-card (max-width 460px) : même pattern que CRM */
#store-looks-prompt-reuse-modal .modal-card.store-looks-prompt-reuse-card {
  max-width: min(98vw, 1400px) !important;
  width: min(98vw, 1400px);
  max-height: 92vh;
  overflow: auto;
}
.store-looks-prompt-reuse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 12px;
  max-height: min(920px, calc(92vh - 10rem));
  overflow-y: auto;
  align-content: start;
}
.store-looks-prompt-reuse-item {
  display: block;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #f4f2ef;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.store-looks-prompt-reuse-item:hover,
.store-looks-prompt-reuse-item:focus-visible {
  border-color: var(--fitzu-accent);
  box-shadow: 0 0 0 2px var(--fitzu-accent-soft);
  outline: none;
}
.store-looks-prompt-reuse-item img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  display: block;
}
.store-looks-mine-card__stats {
  margin: 6px 0 0;
  font-size: 11px;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  line-height: 1.35;
}
.store-looks-mine-card__stats--empty {
  font-size: 11px;
  opacity: 0.7;
}
.store-models-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
@media (min-width: 900px) {
  .store-models-settings-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}
.store-models-settings-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.store-models-settings-item .store-looks-action-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.store-models-settings-thumb {
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  border-radius: 10px;
  overflow: hidden;
}
.store-models-settings-thumb:focus-visible {
  outline: 2px solid var(--fitzu-accent);
  outline-offset: 2px;
}
.store-models-settings-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
  pointer-events: none;
}
#store-looks-picker-modal .modal-card.store-looks-picker-card {
  max-width: min(98vw, 1400px) !important;
  width: min(98vw, 1400px);
  max-height: 92vh;
  overflow: auto;
}
.store-looks-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 12px;
  max-height: min(920px, calc(92vh - 10rem));
  overflow-y: auto;
  align-content: start;
}
.store-looks-picker-item {
  display: block;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #f4f2ef;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.store-looks-picker-item:hover,
.store-looks-picker-item:focus-visible {
  border-color: var(--fitzu-accent);
  box-shadow: 0 0 0 2px var(--fitzu-accent-soft);
  outline: none;
}
.store-looks-picker-item img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  display: block;
}
body.admin-store-mode #view-store-looks .store-looks-product-card,
body.admin-store-mode #view-store-looks .store-looks-model-card {
  min-height: 160px;
}
