/* ==========================================================================
   IDOCAN — COLOR MATERIAL FINISH (CMF) INTERACTIVE BOARD (10 PERSPECTIVES)
   ========================================================================== */

:root {
  --bg-studio: #E5E4E0;
  --bg-board: #F4F3EF;
  --ink-black: #141210;
  --ink-dark: #2C1D16;
  --ink-muted: #6E675F;
  --rule-light: #D5D1C8;
  --rule-dark: #181614;

  /* Gamme chromatique officielle IDOCAN */
  --camel-suede: #C6884E;
  --camel-light: #D9A16C;
  --cognac-leather: #8C4A22;
  --espresso-brown: #3A2214;
  --carbon-sole: #242220;
  --raw-ecru: #EAE3D5;
  --neon-yellow: #FFF000;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Syne', 'Inter', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg-studio);
  color: var(--ink-black);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  user-select: none;
}

/* ==================== CADRE STUDIO & PLANCHE D'ARCHITECTE ==================== */
.studio-backdrop {
  width: 100vw;
  height: 100vh;
  padding: clamp(10px, 1.6vmin, 22px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 45%, #EFECE6 0%, #DCDAD3 100%);
}

.cmf-board {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-board);
  box-shadow:
    0 20px 60px rgba(20, 18, 16, 0.14),
    0 2px 10px rgba(20, 18, 16, 0.08),
    inset 0 0 0 1px rgba(20, 18, 16, 0.06);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(14px, 2vmin, 28px) clamp(18px, 2.6vmin, 38px) clamp(10px, 1.5vmin, 20px);
  overflow: hidden;
}

.cmf-board::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image: radial-gradient(rgba(44, 29, 22, 0.08) 1px, transparent 0);
  background-size: 24px 24px;
  z-index: 0;
}

/* ==================== 4 REPÈRES DE COUPE (CROP MARKS ┌ ┐ └ ┘) ==================== */
.crop-mark {
  position: absolute;
  width: clamp(18px, 2.1vmin, 28px);
  height: clamp(18px, 2.1vmin, 28px);
  color: var(--ink-black);
  z-index: 30;
  pointer-events: none;
}
.crop-tl { top: 12px; left: 14px; }
.crop-tr { top: 12px; right: 14px; }
.crop-bl { bottom: 12px; left: 14px; }
.crop-br { bottom: 12px; right: 14px; }

.crop-mark path {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: drawStroke 1.1s var(--ease-expo) 0.15s forwards;
}

@keyframes drawStroke {
  to { stroke-dashoffset: 0; }
}

.connection-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 25;
}

/* ==================== HEADER & PILULES DE NAVIGATION ==================== */
.cmf-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 12px;
  padding-bottom: 6px;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 2px 6px 2px 0;
  transition: transform 0.25s var(--ease-expo);
}
.brand-lockup:hover {
  transform: translateX(3px);
}

.brand-logo-img {
  height: clamp(20px, 2.3vmin, 30px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(44, 29, 22, 0.12));
}

.brand-text-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.92rem, 1.2vw, 1.3rem);
  letter-spacing: 0.16em;
  color: var(--ink-dark);
}

.brand-serial {
  font-family: var(--font-mono);
  font-size: clamp(0.5rem, 0.56vw, 0.64rem);
  color: var(--ink-muted);
  letter-spacing: 0.08em;
}

.cmf-title-wrap {
  position: relative;
  display: inline-block;
}

.cmf-main-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.38vw, 1.5rem);
  letter-spacing: -0.01em;
  color: var(--ink-black);
  line-height: 1.15;
  padding-bottom: 5px;
}

.cmf-title-rule {
  position: absolute;
  bottom: 0;
  left: -38px;
  right: 0;
  height: 1.8px;
  background: var(--ink-black);
  transform-origin: left center;
  animation: scaleRule 0.9s var(--ease-expo) 0.25s backwards;
}

@keyframes scaleRule {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Navigation 5 pilules (MOOD | COLOR | OVERVIEW | DETAILS | 360° STUDIO) */
.cmf-nav {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.85vw, 14px);
  justify-self: center;
}

.nav-pill {
  appearance: none;
  background: transparent;
  border: 1px solid var(--ink-black);
  border-radius: 999px;
  padding: clamp(5px, 0.7vmin, 9px) clamp(14px, 1.45vw, 24px);
  font-family: var(--font-sans);
  font-size: clamp(0.6rem, 0.72vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-black);
  cursor: pointer;
  transition:
    background-color 0.35s var(--ease-expo),
    color 0.35s var(--ease-expo),
    transform 0.25s var(--ease-expo),
    box-shadow 0.35s var(--ease-expo);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.nav-pill .pill-index {
  font-family: var(--font-mono);
  font-size: 0.72em;
  opacity: 0.55;
}

.nav-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(20, 18, 16, 0.1);
}

.nav-pill.active {
  background: var(--ink-black);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(20, 18, 16, 0.22);
}

.nav-pill.active .pill-index {
  opacity: 0.85;
  color: var(--camel-light);
}

/* Actions Droite (Loupe + Commander) */
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(20, 18, 16, 0.22);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: clamp(0.55rem, 0.64vw, 0.68rem);
  font-weight: 600;
  color: var(--ink-black);
  cursor: pointer;
  transition: all 0.25s var(--ease-expo);
}

.tool-btn:hover,
.tool-btn.active {
  background: var(--camel-suede);
  border-color: var(--camel-suede);
  color: #fff;
}

.buy-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ink-dark);
  color: #F8F6F1;
  border: 1px solid var(--ink-dark);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: clamp(0.6rem, 0.7vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s var(--ease-expo);
  box-shadow: 0 6px 18px rgba(44, 29, 22, 0.2);
}

.buy-cta-btn:hover {
  background: var(--cognac-leather);
  border-color: var(--cognac-leather);
  transform: translateY(-2px);
}

.buy-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px #4ADE80;
}

.buy-price {
  background: rgba(255, 255, 255, 0.16);
  padding: 2px 7px;
  border-radius: 999px;
  font-family: var(--font-mono);
}

/* ==================== GRILLE PRINCIPALE EN 3 COLONNES ==================== */
.cmf-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 29% 40% 31%;
  height: 100%;
  min-height: 0;
  align-items: stretch;
  transition: grid-template-columns 0.75s var(--ease-expo);
  padding-top: clamp(6px, 1vmin, 12px);
}

/* ==================== COLONNE GAUCHE : MOOD + PANTONE ==================== */
.col-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  padding-right: 10px;
  transition: all 0.7s var(--ease-expo);
}

.section-floating-tag {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 5px;
  opacity: 0.85;
}

/* --- 1. COLLAGE MOODBOARD --- */
.mood-cluster {
  position: relative;
  flex: 1 1 62%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  transition: all 0.7s var(--ease-expo);
}

.mood-collage {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 45vh;
}

.mood-card {
  position: absolute;
  background: #fff;
  padding: 3px;
  border-radius: 2px;
  box-shadow:
    0 12px 26px rgba(20, 18, 16, 0.15),
    0 2px 6px rgba(20, 18, 16, 0.08);
  transition:
    transform 0.55s var(--ease-expo),
    box-shadow 0.4s var(--ease-expo),
    filter 0.4s ease;
  cursor: grab;
  overflow: hidden;
}

.mood-card:hover {
  z-index: 15 !important;
  box-shadow: 0 20px 40px rgba(20, 18, 16, 0.26);
}

.mood-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mood-card-fashion {
  top: 4%;
  left: 2%;
  width: 44%;
  height: 60%;
  z-index: 3;
}

.fashion-color-strips {
  position: absolute;
  top: 18%;
  left: 12%;
  width: 68%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
}

.fashion-color-strips .strip {
  padding: 5px 7px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  font-family: var(--font-mono);
  font-size: 0.45rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
}
.strip-camel { background: #C6884E; color: #fff; }
.strip-cognac { background: #5B2E13; color: #fff; }
.strip-ecru { background: #F1ECE1; color: #1E1915; }
.strip small { opacity: 0.75; font-size: 0.4rem; }

.mood-card-editorial {
  top: 0%;
  left: 42%;
  width: 39%;
  height: 53%;
  z-index: 2;
}

.editorial-serif-overlay {
  position: absolute;
  bottom: 12%;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #FFFDF9;
  text-shadow: 0 3px 14px rgba(20, 12, 6, 0.65);
  pointer-events: none;
}

.mood-card-sphere {
  top: 43%;
  left: 43%;
  width: 28%;
  aspect-ratio: 1 / 1;
  height: auto;
  z-index: 6;
  border-radius: 3px;
}

.mood-card-macro {
  top: 41%;
  left: 68%;
  width: 25%;
  height: 45%;
  z-index: 4;
}

.mood-card-botanical {
  top: 61%;
  left: 16%;
  width: 54%;
  height: 37%;
  z-index: 5;
}

.botanical-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(20, 18, 16, 0.78);
  color: #F4F3EF;
  font-family: var(--font-mono);
  font-size: 0.48rem;
  padding: 3px 7px;
  letter-spacing: 0.08em;
}

.mood-expanded-story {
  display: none;
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.78);
  border-left: 3px solid var(--camel-suede);
  box-shadow: 0 8px 24px rgba(20, 18, 16, 0.06);
}
.story-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cognac-leather);
  margin-bottom: 5px;
}
.story-mini-logo {
  height: 15px;
  width: auto;
}
.mood-expanded-story p {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-dark);
}

/* --- 2. BLOC PANTONE® (Bas-Gauche) --- */
.color-cluster {
  flex: 0 0 auto;
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.7s var(--ease-expo);
}

.pantone-header {
  margin-bottom: 7px;
  padding-left: 14px;
}

.pantone-title {
  font-family: var(--font-sans);
  font-size: clamp(0.8rem, 1.02vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-black);
  text-align: center;
}

.pantone-subtitle-wrap {
  position: relative;
  display: inline-block;
  padding: 1px 10px;
  margin-top: 1px;
}

.yellow-highlighter {
  position: absolute;
  inset: 1px -4px 0px -4px;
  background: var(--neon-yellow);
  z-index: 0;
  transform-origin: left center;
  transform: skewX(-6deg);
  animation: highlightSwipe 0.85s var(--ease-expo) 0.75s backwards;
}

@keyframes highlightSwipe {
  from { transform: skewX(-6deg) scaleX(0); }
  to { transform: skewX(-6deg) scaleX(1); }
}

.pantone-subtitle {
  position: relative;
  z-index: 1;
  font-family: var(--font-sans);
  font-size: clamp(0.6rem, 0.74vw, 0.8rem);
  font-weight: 600;
  color: var(--ink-black);
}

.pantone-chips-row {
  display: flex;
  gap: clamp(8px, 0.85vw, 14px);
}

.pantone-chip {
  width: clamp(68px, 6.2vw, 94px);
  background: #FFFFFF;
  padding: 5px 5px 6px;
  border: 1px solid rgba(20, 18, 16, 0.15);
  box-shadow: 0 8px 18px rgba(20, 18, 16, 0.1);
  cursor: pointer;
  transition:
    transform 0.35s var(--ease-expo),
    box-shadow 0.35s var(--ease-expo);
}

.pantone-chip:hover,
.pantone-chip.is-highlighted {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 16px 30px rgba(20, 18, 16, 0.22);
}

.chip-swatch {
  position: relative;
  width: 100%;
  height: clamp(62px, 7.4vh, 88px);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.chip-hover-hint {
  font-family: var(--font-mono);
  font-size: 0.44rem;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(20, 18, 16, 0.72);
  padding: 3px 5px;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s ease;
  text-align: center;
}

.pantone-chip:hover .chip-hover-hint {
  opacity: 1;
  transform: translateY(0);
}

.chip-info {
  border: 1px solid var(--ink-black);
  padding: 3px 4px;
  line-height: 1.15;
}

.chip-brand {
  font-size: clamp(0.45rem, 0.52vw, 0.56rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink-black);
}

.chip-name {
  font-size: clamp(0.41rem, 0.47vw, 0.51rem);
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-code {
  font-family: var(--font-mono);
  font-size: clamp(0.39rem, 0.45vw, 0.48rem);
  font-weight: 600;
  color: var(--ink-black);
}

/* ==================== COLONNE CENTRALE : HERO MULTI-PERSPECTIVES ==================== */
.col-center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  z-index: 12;
}

.hero-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
}

/* Badge de télémétrie d'angle en haut de la chaussure */
.angle-telemetry-badge {
  position: absolute;
  top: 4px;
  z-index: 16;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(20, 18, 16, 0.14);
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: clamp(0.46rem, 0.54vw, 0.58rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-dark);
}

.telemetry-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--camel-suede);
}

.hero-ambient-glow {
  position: absolute;
  width: 58%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 136, 78, 0.22) 0%, rgba(198, 136, 78, 0) 72%);
  filter: blur(22px);
  pointer-events: none;
  transition: background 0.5s ease, transform 0.5s ease;
}

.floating-cords-svg {
  position: absolute;
  width: 96%;
  max-width: 560px;
  height: auto;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
  transition: opacity 0.4s ease, transform 0.6s var(--ease-expo);
}

.cord-path {
  filter: drop-shadow(0 12px 14px rgba(44, 29, 22, 0.18));
}

.hero-product-wrapper {
  position: relative;
  z-index: 3;
  width: min(92%, 490px);
  height: min(74vh, 590px);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  animation: heroFloat 5.2s ease-in-out infinite;
  cursor: ew-resize;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0px) rotateZ(0deg); }
  50% { transform: translateY(-9px) rotateZ(-0.6deg); }
}

.hero-product-img {
  position: absolute;
  max-width: 95%;
  max-height: 92%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 38px rgba(32, 20, 12, 0.26));
  opacity: 0;
  transform: scale(0.86) translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.45s var(--ease-expo),
    transform 0.55s var(--ease-expo),
    filter 0.4s ease;
}

.hero-product-img.active-img {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Points d'ancrage interactifs (Hotspots A à F) */
.product-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
}

.hotspot-pin {
  position: absolute;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  margin-top: -12px;
  border-radius: 50%;
  background: var(--ink-black);
  color: #fff;
  border: 2px solid #FFF;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.35s var(--ease-expo);
}

.product-hotspots.visible .hotspot-pin,
.hotspot-pin.pin-active {
  opacity: 1;
  transform: scale(1);
}

.hotspot-pin::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--camel-suede);
  animation: pinPulse 2s infinite;
}

@keyframes pinPulse {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.65); opacity: 0; }
}

.pin-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(20, 18, 16, 0.94);
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-sans);
  font-size: 0.58rem;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.pin-tooltip strong {
  color: var(--camel-light);
  font-family: var(--font-mono);
  font-size: 0.56rem;
}

.hotspot-pin:hover .pin-tooltip,
.hotspot-pin.pin-active .pin-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Dock des 10 Perspectives Studio en bas de la scène centrale */
.hero-controls {
  position: absolute;
  bottom: 2px;
  z-index: 18;
  max-width: 100%;
}

.perspective-dock {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 4px 6px;
  border-radius: 14px;
  border: 1px solid rgba(20, 18, 16, 0.14);
  box-shadow: 0 8px 22px rgba(20, 18, 16, 0.1);
}

.angle-chip {
  background: transparent;
  border: 1px solid transparent;
  padding: 4px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: clamp(0.44rem, 0.5vw, 0.54rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.angle-chip:hover {
  color: var(--ink-black);
  border-color: rgba(20, 18, 16, 0.2);
}

.angle-chip.active {
  background: var(--ink-black);
  color: #fff;
}

.angle-chip.orbit-btn {
  background: rgba(198, 136, 78, 0.16);
  color: var(--cognac-leather);
  border-color: rgba(198, 136, 78, 0.4);
}

.angle-chip.orbit-btn.spinning {
  background: var(--camel-suede);
  color: #fff;
}

/* ==================== COLONNE DROITE : KNOLLING + TABLES + HIGHLIGHTS ==================== */
.col-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  padding-left: 8px;
  transition: all 0.7s var(--ease-expo);
}

.materials-knolling {
  position: relative;
  height: 38%;
  min-height: 175px;
  display: grid;
  grid-template-columns: 34% 66%;
  align-items: center;
}

.swatch-item {
  cursor: pointer;
  transition:
    transform 0.4s var(--ease-expo),
    filter 0.35s ease;
}

.swatch-item:hover,
.swatch-item.is-highlighted {
  transform: translateY(-5px) scale(1.04);
  z-index: 18 !important;
}

.knolling-left-stack {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
}

.swatch-cord-knot {
  width: 92%;
  max-width: 114px;
  filter: drop-shadow(0 6px 8px rgba(20, 18, 16, 0.2));
}

.knot-svg {
  width: 100%;
  height: auto;
  display: block;
}

.thread-spool {
  position: relative;
  width: clamp(52px, 4.6vw, 70px);
  height: clamp(22px, 2.4vh, 32px);
  display: flex;
  align-items: center;
  filter: drop-shadow(-6px 6px 8px rgba(20, 18, 16, 0.22));
}

.spool-flange {
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, #EAE6DF, #BDB6AA 60%, #8E8679);
  border-radius: 2px;
}

.spool-body {
  flex: 1;
  height: 84%;
  position: relative;
  overflow: hidden;
}

.spool-camel .spool-body {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0px, rgba(0,0,0,0.08) 2px, transparent 3px),
    linear-gradient(to bottom, #E0A365 0%, #C6884E 45%, #875220 100%);
}

.spool-espresso .spool-body {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0px, rgba(0,0,0,0.12) 2px, transparent 3px),
    linear-gradient(to bottom, #5C3A28 0%, #3A2214 50%, #1F1109 100%);
}

.raw-suede-sample {
  width: clamp(66px, 5.8vw, 90px);
  background: #fff;
  padding: 4px 3px 3px;
  box-shadow: 0 8px 16px rgba(20, 18, 16, 0.14);
}

.factory-tag {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: 0.36rem;
  color: var(--ink-black);
  padding: 1px 2px 3px;
  border-bottom: 1px solid #E2DFD9;
  line-height: 1.2;
}
.factory-tag small { color: var(--ink-muted); }

.raw-suede-cloth {
  width: 100%;
  height: clamp(48px, 5.4vh, 68px);
  background: #C6884E;
  background-image: url('assets/macro-heel-cup.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 1px;
}

.knolling-right-composition {
  position: relative;
  width: 100%;
  height: 100%;
}

.main-suede-card {
  position: absolute;
  top: 0%;
  left: 10%;
  width: 65%;
  z-index: 4;
  filter: drop-shadow(0 12px 22px rgba(20, 18, 16, 0.2));
}
.main-suede-card img {
  width: 100%;
  height: auto;
  display: block;
}

.draped-suede-fold {
  position: absolute;
  top: 14%;
  right: 2%;
  width: 30%;
  height: 62%;
  background: linear-gradient(135deg, #D59B62 0%, #B5753C 55%, #844E1E 100%);
  clip-path: polygon(10% 0%, 92% 4%, 100% 68%, 82% 100%, 0% 90%);
  z-index: 2;
  filter: drop-shadow(0 10px 16px rgba(20, 18, 16, 0.18));
  border-radius: 4px;
}

.woven-lattice-swatch {
  position: absolute;
  bottom: 2%;
  left: 2%;
  width: 36%;
  height: 52%;
  z-index: 6;
  background: #fff;
  padding: 2px;
  box-shadow: 0 10px 20px rgba(20, 18, 16, 0.22);
}
.woven-lattice-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ribbed-trim-swatch {
  position: absolute;
  bottom: 10%;
  left: 40%;
  width: 15%;
  height: 24%;
  z-index: 7;
  background: repeating-linear-gradient(
    90deg,
    #4E3222 0px,
    #4E3222 2px,
    #A67B56 2px,
    #A67B56 4px
  );
  box-shadow: 0 6px 14px rgba(20, 18, 16, 0.2);
}

.folded-leather-swatch {
  position: absolute;
  bottom: 8%;
  left: 58%;
  width: 19%;
  height: 36%;
  z-index: 8;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 20px rgba(20, 18, 16, 0.26);
}
.leather-top-fold {
  height: 36%;
  background: linear-gradient(to bottom, #6C3616, #4A220B);
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.leather-bottom-part {
  flex: 1;
  background: linear-gradient(to bottom, #352116, #24160E);
}

/* --- 2. TABLEAUX DE SPÉCIFICATIONS TECHNIQUES (Milieu-Droite) --- */
.specs-tables-container {
  display: flex;
  flex-direction: column;
  gap: clamp(5px, 0.9vh, 10px);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: clamp(0.43rem, 0.51vw, 0.57rem);
  letter-spacing: 0.03em;
  color: var(--ink-black);
}

.spec-table thead th {
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(0.45rem, 0.54vw, 0.6rem);
  letter-spacing: 0.05em;
  padding-bottom: 3px;
  border-bottom: 1.2px solid var(--ink-black);
}

.spec-table tbody tr {
  border-bottom: 1px solid var(--rule-light);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.spec-table tbody tr:hover,
.spec-table tbody tr.is-highlighted {
  background-color: rgba(255, 240, 0, 0.42);
}

.spec-table td {
  padding: clamp(2px, 0.34vh, 4px) 4px;
  vertical-align: middle;
}

.row-num,
.ref-code {
  width: 18px;
  font-weight: 700;
  color: var(--ink-black);
  border-right: 1px solid var(--rule-light);
}

.row-note {
  font-size: 0.9em;
  color: var(--ink-muted);
}

.ref-name {
  font-weight: 700;
  width: 26%;
}

.ref-pantone {
  width: 22%;
  white-space: nowrap;
}

.mini-swatch {
  display: inline-block;
  width: 9px;
  height: 9px;
  vertical-align: middle;
  margin-left: 4px;
  border: 1px solid rgba(0,0,0,0.25);
}

/* --- 3. SCHÉMA TECHNIQUE 'HIGHLIGHTS' (Vrai Profil Latéral + Callouts A–F) --- */
.highlights-block {
  padding-top: 3px;
}

.highlights-title {
  font-family: var(--font-sans);
  font-size: clamp(0.6rem, 0.76vw, 0.84rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.highlights-content {
  display: grid;
  grid-template-columns: 52% 48%;
  align-items: center;
  gap: 8px;
}

.real-profile-diagram {
  position: relative;
  width: 100%;
  height: clamp(78px, 10vh, 108px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-spec-img {
  width: 82%;
  height: auto;
  max-height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(20, 18, 16, 0.16));
}

.profile-callouts-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.highlights-legend {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: clamp(0.41rem, 0.49vw, 0.54rem);
  letter-spacing: 0.02em;
}

.legend-item {
  padding: 1.5px 4px;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.legend-item:hover,
.legend-item.is-highlighted {
  background: var(--ink-black);
  color: #fff;
  transform: translateX(3px);
}

/* ==================== VUE 05 : PLANCHE CONTACT DES 10 PERSPECTIVES ==================== */
.perspectives-gallery-panel {
  display: none;
  grid-column: 1 / -1;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 6px 0;
}

.perspectives-grid-10 {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: clamp(8px, 1.1vmin, 16px);
}

.persp-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(20, 18, 16, 0.12);
  border-radius: 4px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.35s var(--ease-expo);
  box-shadow: 0 6px 18px rgba(20, 18, 16, 0.06);
  overflow: hidden;
}

.persp-card:hover {
  transform: translateY(-5px);
  border-color: var(--camel-suede);
  box-shadow: 0 16px 32px rgba(44, 29, 22, 0.16);
}

.persp-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: clamp(0.44rem, 0.54vw, 0.58rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-black);
  background: var(--bg-board);
  padding: 2px 6px;
  border-radius: 2px;
}

.persp-card img {
  max-width: 92%;
  max-height: 68%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(32, 20, 12, 0.18));
  transition: transform 0.45s var(--ease-expo);
}

.persp-card:hover img {
  transform: scale(1.08);
}

.persp-macro-card img {
  width: 100%;
  height: 72%;
  max-width: 100%;
  object-fit: cover;
  border-radius: 2px;
  filter: none;
}

.persp-card small {
  font-family: var(--font-sans);
  font-size: clamp(0.48rem, 0.58vw, 0.64rem);
  color: var(--ink-muted);
  text-align: center;
}

/* ==================== ÉTATS DYNAMIQUES DES 5 ONGLETS ==================== */

/* 1. ÉTAT 'MOOD' */
.cmf-board[data-view="mood"] .cmf-grid {
  grid-template-columns: 58% 42% 0%;
}
.cmf-board[data-view="mood"] .col-right,
.cmf-board[data-view="mood"] .color-cluster {
  opacity: 0;
  pointer-events: none;
  transform: translateX(60px) scale(0.95);
  max-height: 0;
  overflow: hidden;
}
.cmf-board[data-view="mood"] .mood-collage {
  max-height: 64vh;
}
.cmf-board[data-view="mood"] .mood-expanded-story {
  display: block;
}

/* 2. ÉTAT 'COLOR' */
.cmf-board[data-view="color"] .cmf-grid {
  grid-template-columns: 46% 54% 0%;
}
.cmf-board[data-view="color"] .col-right,
.cmf-board[data-view="color"] .mood-cluster {
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
}
.cmf-board[data-view="color"] .col-left {
  justify-content: center;
  align-items: center;
}
.cmf-board[data-view="color"] .pantone-chip {
  width: clamp(115px, 11vw, 155px);
  padding: 8px 8px 10px;
}
.cmf-board[data-view="color"] .chip-swatch {
  height: clamp(130px, 18vh, 190px);
}
.cmf-board[data-view="color"] .chip-brand { font-size: 0.74rem; }
.cmf-board[data-view="color"] .chip-name { font-size: 0.68rem; }
.cmf-board[data-view="color"] .chip-code { font-size: 0.64rem; }

/* 4. ÉTAT 'DETAILS' */
.cmf-board[data-view="details"] .cmf-grid {
  grid-template-columns: 0% 44% 56%;
}
.cmf-board[data-view="details"] .col-left {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-60px);
  overflow: hidden;
}
.cmf-board[data-view="details"] .spec-table {
  font-size: clamp(0.55rem, 0.66vw, 0.72rem);
}
.cmf-board[data-view="details"] .highlights-legend {
  font-size: clamp(0.52rem, 0.62vw, 0.68rem);
}

/* 5. ÉTAT 'PERSPECTIVES' (Planche Contact 10 Angles) */
.cmf-board[data-view="perspectives"] .col-left,
.cmf-board[data-view="perspectives"] .col-center,
.cmf-board[data-view="perspectives"] .col-right {
  display: none;
}
.cmf-board[data-view="perspectives"] .perspectives-gallery-panel {
  display: block;
}

/* ==================== FOOTER D'ÉTAT ==================== */
.cmf-footer {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid rgba(20, 18, 16, 0.1);
  font-family: var(--font-mono);
  font-size: clamp(0.46rem, 0.55vw, 0.6rem);
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--camel-suede);
}

.kbd-hint kbd {
  background: #fff;
  border: 1px solid rgba(20, 18, 16, 0.2);
  border-radius: 3px;
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--ink-black);
}

/* ==================== LOUPE D'INSPECTION HD (MACRO ×2.5) ==================== */
.magnifier-loupe {
  position: fixed;
  width: 175px;
  height: 175px;
  border-radius: 50%;
  border: 2.5px solid var(--ink-black);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.32),
    inset 0 0 18px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.75);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-expo);
  background-image: url('assets/sandal-hero-clean.png?v=5');
  background-repeat: no-repeat;
  background-color: var(--bg-board);
}

.magnifier-loupe.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.loupe-crosshair {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(to right, transparent 49.5%, rgba(20,18,16,0.2) 50%, transparent 50.5%),
    linear-gradient(to bottom, transparent 49.5%, rgba(20,18,16,0.2) 50%, transparent 50.5%);
}

.loupe-badge {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink-black);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  padding: 2px 7px;
  border-radius: 99px;
  white-space: nowrap;
}

/* ==================== TIROIR DE COMMANDE E-COMMERCE LUXE ==================== */
.order-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.56);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.order-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.order-drawer {
  width: min(500px, 95vw);
  height: 100%;
  background: #F6F4EF;
  border-left: 1px solid rgba(20, 18, 16, 0.16);
  box-shadow: -24px 0 60px rgba(20, 18, 16, 0.28);
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-expo);
  overflow-y: auto;
}

.order-drawer-backdrop.open .order-drawer {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--ink-black);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-logo {
  height: 30px;
  width: auto;
}

.drawer-brand h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.07em;
  color: var(--ink-black);
}

.drawer-brand p {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-top: 1px;
}

.drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(20, 18, 16, 0.28);
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.drawer-close:hover {
  background: var(--ink-black);
  color: #fff;
  border-color: var(--ink-black);
}

.drawer-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 14px;
}

.drawer-product-preview {
  background: #FFFFFF;
  border: 1px solid rgba(20, 18, 16, 0.12);
  border-radius: 6px;
  padding: 12px 14px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(20, 18, 16, 0.04);
}

.drawer-preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  color: #065F46;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 3px 8px;
  border-radius: 99px;
}

.stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
}

.drawer-price-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  background: #2C1D16;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.drawer-product-preview img {
  height: 138px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(44, 29, 22, 0.18));
}

.drawer-mini-angles {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.drawer-thumb {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid var(--rule-light);
  background: #F6F4EF;
  color: var(--ink-dark);
  cursor: pointer;
  border-radius: 99px;
  transition: all 0.2s ease;
}

.drawer-thumb:hover {
  border-color: var(--ink-black);
}

.drawer-thumb.active {
  background: var(--ink-black);
  color: #fff;
  border-color: var(--ink-black);
}

.drawer-craft-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed rgba(20, 18, 16, 0.12);
}

.drawer-craft-pills span {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  color: #5C4938;
  background: #F7F3EE;
  padding: 3px 8px;
  border-radius: 4px;
}

.size-selector-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.size-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--ink-black);
}

.size-fit-note {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 500;
  color: #0F766E;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}

.size-btn {
  padding: 9px 0;
  border: 1px solid rgba(20, 18, 16, 0.18);
  border-radius: 4px;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-black);
  cursor: pointer;
  transition: all 0.18s ease;
}

.size-btn:hover {
  border-color: var(--camel-suede);
  background: #FDFBF7;
}

.size-btn.active {
  background: #181411;
  color: #fff;
  border-color: #181411;
  box-shadow: 0 4px 10px rgba(24, 20, 17, 0.22);
}

/* Barre Horizontale Quantité */
.qty-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid rgba(20, 18, 16, 0.14);
  border-radius: 5px;
  padding: 8px 12px;
}

.qty-bar-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.qty-bar-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--ink-black);
}

.qty-bar-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ink-muted);
}

.qty-controls {
  display: flex;
  align-items: center;
  border: 1px solid rgba(20, 18, 16, 0.22);
  border-radius: 4px;
  background: #fff;
  height: 32px;
  overflow: hidden;
}

.qty-btn {
  width: 32px;
  height: 100%;
  border: none;
  background: #F3F0EA;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-black);
  transition: background 0.18s ease;
}
.qty-btn:hover {
  background: var(--ink-black);
  color: #fff;
}

#orderQtyInput {
  width: 38px;
  height: 100%;
  border: none;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ink-black);
  background: #fff;
}

/* Formulaire Client avec Labels Clairs */
.checkout-quick-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid rgba(20, 18, 16, 0.12);
  border-radius: 6px;
  padding: 14px;
}

.form-section-title {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--ink-black);
  letter-spacing: 0.04em;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(20, 18, 16, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input-group label {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  color: #3D332B;
  letter-spacing: 0.03em;
}

.input-group label span {
  color: #C2410C;
}

.input-group label small {
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: none;
}

.checkout-quick-form input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid rgba(20, 18, 16, 0.2);
  border-radius: 4px;
  background: #FAF9F6;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--ink-black);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.checkout-quick-form input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--camel-suede);
  box-shadow: 0 0 0 3px rgba(198, 136, 78, 0.18);
}

.submit-order-btn {
  margin-top: 4px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #241710 0%, #3B2416 100%);
  color: #fff;
  border: 1px solid #181411;
  border-radius: 5px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(36, 23, 16, 0.22);
  transition: transform 0.18s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.submit-order-btn:hover {
  background: linear-gradient(135deg, #8C4A22 0%, #6E3715 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(140, 74, 34, 0.28);
}

.drawer-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding-top: 2px;
}

.order-success-banner {
  background: #ECFDF5;
  border: 1px solid #10B981;
  border-radius: 5px;
  color: #065F46;
  padding: 12px 14px;
  font-size: 0.78rem;
  line-height: 1.4;
}

/* ==================== BOUTONS ADMIN & MODAL GOOGLE SHEETS ORGANISÉ ==================== */
.sheet-admin-btn {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(236, 253, 245, 0.85);
}
.sheet-admin-btn:hover {
  background: #0F9D58;
  border-color: #0F9D58;
  color: #fff;
}
.sheet-count-badge {
  background: #0F9D58;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  padding: 1px 6px;
  border-radius: 99px;
}
.sheet-admin-btn:hover .sheet-count-badge {
  background: #fff;
  color: #0F9D58;
}

/* Modal Google Sheets Live */
.sheet-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.62);
  backdrop-filter: blur(6px);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sheet-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.sheet-modal {
  width: min(1360px, 96vw);
  max-height: 88vh;
  background: var(--bg-board);
  border: 1px solid rgba(20, 18, 16, 0.2);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
}

.sheet-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: #FFFFFF;
  border-bottom: 1.5px solid var(--ink-black);
}

.sheet-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gsheet-icon {
  font-size: 1.5rem;
}

.sheet-title-group h2 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  color: var(--ink-dark);
}

.sheet-title-group p {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ink-muted);
}

.sheet-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sheet-action-btn {
  background: #0F9D58;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.sheet-action-btn:hover {
  background: #0B8043;
}

.sheet-webhook-bar {
  padding: 14px 22px;
  background: #EFECE6;
  border-bottom: 1px solid var(--rule-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.webhook-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.webhook-input-group label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--ink-dark);
}

.webhook-input-group input {
  flex: 1;
  min-width: 260px;
  padding: 8px 12px;
  border: 1px solid var(--rule-light);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: #fff;
}

.webhook-save-btn {
  background: var(--ink-black);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  cursor: pointer;
}

.webhook-copy-script-btn {
  background: #fff;
  color: var(--ink-dark);
  border: 1px solid var(--ink-dark);
  padding: 8px 14px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
}
.webhook-copy-script-btn:hover {
  background: var(--camel-suede);
  color: #fff;
  border-color: var(--camel-suede);
}

.webhook-status-line {
  font-size: 0.7rem;
  color: var(--ink-muted);
}

.sheet-table-wrapper {
  flex: 1;
  overflow: auto;
  background: #fff;
  padding: 0;
}

.gsheet-live-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.gsheet-live-table thead th {
  position: sticky;
  top: 0;
  background: #2C1D16;
  color: #F4F3EF;
  padding: 10px 8px;
  text-align: left;
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.gsheet-live-table tbody tr {
  border-bottom: 1px solid #E5E2DC;
}
.gsheet-live-table tbody tr:nth-child(even) {
  background: #FAF8F5;
}
.gsheet-live-table tbody tr:hover {
  background: #FEF9C3;
}

.gsheet-live-table td {
  padding: 9px 8px;
  border-right: 1px solid #ECE9E2;
  white-space: nowrap;
  color: var(--ink-black);
}

.status-select-pill {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid var(--rule-light);
  background: #FEF3C7;
  color: #92400E;
  cursor: pointer;
}

.wa-direct-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.58rem;
}
.wa-direct-btn:hover {
  background: #1DA851;
}

/* ==================== BOUTON NOTIFICATIONS, CONFIRMATION AUTO "OUI" & TOASTS ==================== */
.notif-admin-btn {
  border-color: rgba(198, 136, 78, 0.55);
  background: rgba(254, 243, 199, 0.75);
  position: relative;
}
.notif-admin-btn:hover {
  background: #2C1D16;
  border-color: #2C1D16;
  color: #fff;
}
.notif-count-badge {
  background: #D93025;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 99px;
  animation: pulseNotifBadge 1.8s infinite;
}
@keyframes pulseNotifBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}

.auto-confirm-prompt {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(6, 95, 70, 0.35);
}
.auto-confirm-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  color: #065F46;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.auto-confirm-sub {
  font-size: 0.72rem;
  color: #064E3B;
  margin-bottom: 10px;
}
.auto-confirm-btns {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr;
  gap: 8px;
}
.confirm-oui-btn {
  background: #0F9D58;
  color: #fff;
  border: 1.5px solid #0B7A43;
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.confirm-oui-btn:hover {
  background: #0B8043;
  transform: translateY(-1px);
}
.confirm-non-btn {
  background: #fff;
  color: #991B1B;
  border: 1px solid #FCA5A5;
  padding: 10px 8px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
}
.auto-confirm-links {
  margin-top: 8px;
  text-align: center;
}
.auto-confirm-links a {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #065F46;
  font-weight: 700;
}
.auto-confirm-done {
  margin-top: 10px;
  padding: 10px;
  background: #D1FAE5;
  border: 1.5px solid #059669;
  border-radius: 4px;
  text-align: center;
}
.done-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  color: #065F46;
  margin-bottom: 4px;
}

/* Modal Centre de Notifications */
.notif-modal {
  width: min(880px, 95vw);
  max-height: 84vh;
  background: var(--bg-board);
  border: 1.5px solid var(--ink-black);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
}
.notif-filter-bar {
  padding: 12px 22px;
  background: #EFECE6;
  border-bottom: 1px solid var(--rule-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.notif-tabs {
  display: flex;
  gap: 8px;
}
.notif-tab {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 6px 12px;
  border: 1px solid rgba(20, 18, 16, 0.2);
  background: #fff;
  color: var(--ink-dark);
  border-radius: 99px;
  cursor: pointer;
}
.notif-tab.active {
  background: var(--ink-black);
  color: #fff;
  border-color: var(--ink-black);
}
.notif-sheet-link {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #0F9D58;
  text-decoration: none;
}
.notif-feed-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #FAF8F5;
}
.notif-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
  border: 1px solid #E5E0D6;
  border-left: 4px solid #D97706;
  padding: 12px 16px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(20, 18, 16, 0.05);
}
.notif-card.type-confirmed {
  border-left-color: #0F9D58;
  background: #F4FBF7;
}
.notif-card.type-cancelled {
  border-left-color: #D93025;
  background: #FEF2F2;
}
.notif-card-main h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink-black);
  margin-bottom: 4px;
}
.notif-card-main p {
  font-size: 0.72rem;
  color: #4A3F37;
  line-height: 1.45;
}
.notif-card-meta {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* Bouton dans le tableau Google Sheet pour simuler/valider le clic client OUI */
.reply-yes-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #10B981;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.58rem;
}
.sim-client-oui-btn {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #F59E0B;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  cursor: pointer;
}
.sim-client-oui-btn:hover {
  background: #0F9D58;
  color: #fff;
  border-color: #0F9D58;
}

/* Toasts Notifications Temps Réel (Haut-Droite) */
.live-toast-container {
  position: fixed;
  top: 66px;
  right: 22px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.live-toast {
  pointer-events: auto;
  width: min(380px, 90vw);
  background: #181411;
  color: #F7F5F0;
  border-left: 5px solid #F59E0B;
  padding: 14px 16px;
  border-radius: 4px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  animation: toastSlideIn 0.35s var(--ease-expo);
}
.live-toast.toast-confirmed {
  border-left-color: #10B981;
  background: #064E3B;
}
.live-toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #FCD34D;
  margin-bottom: 4px;
}
.live-toast.toast-confirmed .live-toast-header {
  color: #6EE7B7;
}
.live-toast h5 {
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.live-toast p {
  font-size: 0.7rem;
  color: rgba(247, 245, 240, 0.88);
  line-height: 1.4;
}
@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* ==================== MODAL MOT DE PASSE PROPRIÉTAIRE (ADMIN) ==================== */
.admin-login-box {
  width: min(420px, 92vw);
  background: var(--bg-board);
  border: 1.5px solid var(--ink-black);
  padding: 24px;
  border-radius: 6px;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.4);
}
.admin-login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--ink-black);
  margin-bottom: 14px;
}
.admin-login-header h3 {
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  flex: 1;
}
.admin-login-desc {
  font-size: 0.74rem;
  color: var(--ink-muted);
  line-height: 1.45;
  margin-bottom: 14px;
}
.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-login-form input {
  padding: 11px 12px;
  border: 1px solid var(--ink-black);
  background: #fff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.admin-login-error {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #D93025;
  font-weight: 700;
}

/* ==================== BARRE D'ACHAT FIXE MOBILE & RESPONSIVE SMARTPHONE ==================== */
.mobile-sticky-bar {
  display: none;
}

@media (max-width: 1024px) {
  html, body {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
  }

  .studio-backdrop {
    width: 100%;
    height: auto;
    min-height: 100vh;
    padding: 0;
  }

  .cmf-board {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    padding: 14px 16px 96px;
  }

  .crop-mark,
  .connection-layer {
    display: none;
  }

  /* Header Mobile : Logo à gauche, Bouton Commander à droite, Onglets scrollables dessous */
  .cmf-header {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(20, 18, 16, 0.1);
  }

  .header-left {
    grid-column: 1 / 2;
    grid-row: 1;
  }

  .header-actions {
    grid-column: 2 / 3;
    grid-row: 1;
    justify-self: end;
    gap: 6px;
  }

  /* Masquer le bouton Loupe sur mobile tactile */
  #toggleLoupeBtn {
    display: none;
  }

  .cmf-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-self: stretch;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding: 4px 2px;
  }
  .cmf-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-pill {
    padding: 8px 15px;
    font-size: 0.72rem;
    flex-shrink: 0;
  }

  /* Grille principale empilée avec LA SANDALE HERO EN PREMIER (order: -1) */
  .cmf-grid {
    display: flex !important;
    flex-direction: column;
    gap: 24px;
    height: auto;
    padding-top: 12px;
  }

  .col-center {
    order: -1;
    width: 100%;
  }

  .col-left {
    order: 1;
    width: 100%;
    padding-right: 0;
    gap: 22px;
  }

  .col-right {
    order: 2;
    width: 100%;
    padding-left: 0;
    gap: 20px;
  }

  /* Scène centrale 360° optimisée pour le tactile (Swipe gauche/droite) */
  .hero-stage {
    min-height: 360px;
    padding: 28px 0 54px;
  }

  .angle-telemetry-badge {
    font-size: 0.56rem;
    padding: 5px 10px;
    max-width: 96%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-product-wrapper {
    width: 100%;
    height: 310px;
    touch-action: pan-y;
  }

  .hero-controls {
    width: 100%;
    bottom: 0;
  }

  .perspective-dock {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 8px;
    gap: 6px;
    border-radius: 12px;
  }
  .perspective-dock::-webkit-scrollbar {
    display: none;
  }

  .angle-chip {
    font-size: 0.66rem;
    padding: 7px 12px;
    flex-shrink: 0;
  }

  /* États des onglets sur Mobile (sans coupure ni décalage) */
  .cmf-board[data-view="mood"] .col-right,
  .cmf-board[data-view="mood"] .color-cluster {
    display: none !important;
  }
  .cmf-board[data-view="mood"] .mood-cluster {
    display: flex !important;
    opacity: 1 !important;
    max-height: none !important;
    transform: none !important;
  }

  .cmf-board[data-view="color"] .col-right,
  .cmf-board[data-view="color"] .mood-cluster {
    display: none !important;
  }
  .cmf-board[data-view="color"] .color-cluster {
    display: flex !important;
    opacity: 1 !important;
    max-height: none !important;
    transform: none !important;
    width: 100%;
  }

  .cmf-board[data-view="details"] .col-left {
    display: none !important;
  }
  .cmf-board[data-view="details"] .col-right {
    display: flex !important;
    opacity: 1 !important;
    max-height: none !important;
    transform: none !important;
  }

  /* Lisibilité mobile des cartes Pantone, Moodboard et Tableaux */
  .mood-collage {
    height: 320px;
  }

  .pantone-chips-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
  }

  .pantone-chip {
    width: 100% !important;
  }

  .chip-swatch {
    height: 95px !important;
  }

  .chip-brand { font-size: 0.65rem !important; }
  .chip-name { font-size: 0.62rem !important; }
  .chip-code { font-size: 0.56rem !important; }

  .materials-knolling {
    height: 240px;
  }

  .spec-table {
    font-size: 0.65rem !important;
  }
  .spec-table thead th {
    font-size: 0.68rem !important;
  }
  .spec-table td {
    padding: 6px 5px;
  }

  .highlights-content {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .highlights-legend {
    font-size: 0.66rem !important;
    gap: 5px;
  }

  .perspectives-grid-10 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 10px;
  }

  .persp-card {
    min-height: 175px;
  }
  .persp-tag {
    font-size: 0.56rem;
  }
  .persp-card small {
    font-size: 0.65rem;
  }

  .cmf-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.58rem;
  }
  .footer-right {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Barre d'achat fixe en bas de l'écran du téléphone */
  .mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 185;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(24, 20, 17, 0.96);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(198, 136, 78, 0.35);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.28);
  }

  .mobile-sticky-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .mobile-sticky-thumb {
    width: 44px;
    height: 36px;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
    padding: 2px;
    flex-shrink: 0;
  }

  .mobile-sticky-info strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-sticky-info span {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: #FCD34D;
  }

  .mobile-sticky-buy-btn {
    background: linear-gradient(135deg, #C6884E 0%, #8C4A22 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 11px 16px;
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(198, 136, 78, 0.4);
  }

  /* Tiroir de commande plein écran ultra-confortable au pouce sur téléphone */
  .order-drawer {
    width: 100vw;
    height: 100dvh;
    padding: 14px 16px 30px;
  }

  .drawer-product-preview img {
    height: 115px;
  }

  /* Grille de pointures 4 × 2 sur téléphone pour des boutons larges et faciles à toucher */
  .size-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .size-btn {
    padding: 11px 0;
    font-size: 0.86rem;
  }

  /* Champs empilés sur 1 colonne sur téléphone avec font-size 16px (empêche le zoom auto iOS Safari) */
  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .checkout-quick-form input {
    font-size: 16px;
    padding: 11px 12px;
  }

  .submit-order-btn {
    padding: 15px 16px;
    font-size: 0.85rem;
  }

  .auto-confirm-btns {
    grid-template-columns: 1fr;
  }
}
