/* ─────────────────────────────────────────
   ROOT
───────────────────────────────────────── */
:root {
  --paper:  #ffffff;
  --paper2: #f5f5f5;
  --ink:    #0c0b09;
  --ash:    #9a9690;
  --rule:   #d8d4cc;
  --serif:  'IvyPresto Display', Helvetica, Arial, sans-serif;
  --serif2: 'IvyPresto Display', Helvetica, Arial, sans-serif;
  --caps:   'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
  --body:   'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease2:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cercle-chromatique-page {
  font-family: var(--body);
  background: #ffffff;
  color: var(--ink);
  overflow-x: hidden;
  cursor: auto;
}

/* Pas de grain */
.cercle-chromatique-page::before { display: none; }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.cercle-chromatique-page .hero {
  padding: 120px 56px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  max-width: 1600px;
  margin: 0 auto;
}
.cercle-chromatique-page .hero-left h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 100;
  font-size: clamp(48px, 5.5vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 28px;
}
.cercle-chromatique-page .hero-left h1 em { font-style: italic; display: block; }
.cercle-chromatique-page .hero-eyebrow {
  font-family: var(--caps);
  font-size: 8px; letter-spacing: 0.45em; text-transform: uppercase;
  color: var(--ash); margin-bottom: 24px;
  display: flex; align-items: center; gap: 16px;
}
.cercle-chromatique-page .hero-eyebrow::before {
  content: ''; width: 36px; height: 1px; background: var(--rule);
}
.cercle-chromatique-page .hero-right p {
  font-family: var(--serif);
  font-size: 15px; line-height: 1.9;
  font-weight: 100; font-style: italic;
  color: var(--ash); max-width: 420px; padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}

/* ─────────────────────────────────────────
   ROUE
───────────────────────────────────────── */
.wheel-section {
  padding: 60px 56px 0;
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
}
.wheel-container {
  position: relative;
  width: 480px; height: 480px;
  flex-shrink: 0;
}
.wheel-canvas {
  width: 480px; height: 480px;
  position: relative;
}
.wheel-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 140px; height: 140px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--rule);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  z-index: 10;
  transition: background 0.5s var(--ease), border-color 0.5s;
  pointer-events: none;
}
.wc-name {
  font-family: var(--serif);
  font-size: 13px; font-style: italic; font-weight: 100;
  color: var(--ink); text-align: center; line-height: 1.2;
  padding: 0 12px;
  transition: color 0.3s;
}
.wc-family {
  font-family: var(--caps);
  font-size: 7px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ash); transition: color 0.3s;
}
#wheel-svg { width: 480px; height: 480px; display: block; }

/* ─────────────────────────────────────────
   PANNEAU FAMILLES
───────────────────────────────────────── */
.wheel-panel {
  display: flex; flex-direction: column; gap: 0;
}
.wp-title {
  font-family: var(--serif);
  font-size: 11px; font-weight: 100; font-style: italic;
  color: var(--ash); margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--rule);
  letter-spacing: 0.03em;
}
.families {
  display: flex; flex-direction: column; gap: 0;
  margin-bottom: 36px;
}
.family-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; gap: 16px;
  cursor: pointer;
  transition: background 0.25s;
  position: relative;
}
.family-row:hover { background: rgba(0,0,0,0.015); }
.family-row.active .family-name { color: var(--ink); }
.family-row.active::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--ink);
}
.family-dot-wrap { display: flex; gap: 4px; }
.family-dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.family-row:hover .family-dot { transform: scale(1.15); }
.family-name {
  font-family: var(--serif);
  font-size: 14px; font-weight: 100; font-style: italic;
  color: var(--ash); flex: 1;
  transition: color 0.25s;
}
.family-count {
  font-family: var(--caps);
  font-size: 8px; letter-spacing: 0.15em; color: var(--rule);
}

/* ─────────────────────────────────────────
   SWATCHES
───────────────────────────────────────── */
.swatches-strip {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.swatch-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  background: #ffffff;
  border-radius: 0;
}
.swatch-pill:hover { border-color: var(--ink); }
.swatch-pill.active { border-color: var(--ink); background: var(--ink); }
.swatch-pill.active .pill-name { color: #ffffff; }
.pill-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.pill-name {
  font-family: var(--caps);
  font-size: 8px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ash); white-space: nowrap;
  transition: color 0.25s;
}

/* ─────────────────────────────────────────
   CATALOGUE
───────────────────────────────────────── */
.catalogue-section {
  padding: 80px 56px 0;
  max-width: 1600px; margin: 0 auto;
}
.cat-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 32px;
  padding-bottom: 20px; border-bottom: 1px solid var(--rule);
}
.cat-selected-color { display: flex; align-items: center; gap: 14px; }
.cat-color-preview {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  transition: background 0.5s var(--ease);
}
.cat-color-name {
  font-family: var(--serif);
  font-size: 18px; font-style: italic; font-weight: 100;
  color: var(--ink); transition: opacity 0.3s;
}
.cat-result-count {
  font-family: var(--caps);
  font-size: 8px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ash);
}
.cat-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 48px; overflow-x: auto;
}
.cat-tab {
  font-family: var(--caps);
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ash); padding: 12px 24px;
  border-bottom: 2px solid transparent;
  border-top: none; border-left: none; border-right: none;
  cursor: pointer; white-space: nowrap; background: none;
  transition: all 0.25s;
}
.cat-tab:hover { color: var(--ink); }
.cat-tab.active { color: var(--ink); border-bottom-color: var(--ink); }

/* ─────────────────────────────────────────
   GRILLE PRODUITS
───────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-bottom: 100px;
}
.prod-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.prod-card.visible { opacity: 1; transform: none; }
.prod-card-link { text-decoration: none; color: inherit; display: block; }
.prod-img {
  width: 100%; aspect-ratio: 3/4;
  position: relative; overflow: hidden;
}
.prod-img-fill {
  width: 100%; height: 100%;
  transition: transform 0.7s var(--ease);
}
.prod-card:hover .prod-img-fill { transform: scale(1.05); }
.prod-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,11,9,0.18) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.4s;
}
.prod-card:hover .prod-overlay { opacity: 1; }
.prod-tag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--caps); font-size: 7px; letter-spacing: 0.2em;
  text-transform: uppercase; color: #ffffff;
  padding: 4px 10px;
  background: rgba(12,11,9,0.45); backdrop-filter: blur(4px);
}
.prod-info { padding: 14px 4px 28px; }
.prod-name {
  font-family: var(--serif);
  font-size: 15px; font-weight: 100; font-style: italic;
  color: var(--ink); margin-bottom: 4px; line-height: 1.2;
}
.prod-colorname {
  font-family: var(--caps);
  font-size: 7px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ash); margin-bottom: 10px;
}
.prod-price {
  font-family: var(--caps);
  font-size: 13px; color: var(--ash); font-weight: 400;
}

/* ─────────────────────────────────────────
   HARMONIES — fond noir conservé
───────────────────────────────────────── */
.harmony-section {
  background: var(--ink);
  padding: 80px 56px;
}
.hs-inner {
  max-width: 1600px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: center;
}
.hs-left h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 100; font-style: italic;
  color: rgba(255,255,255,0.85); line-height: 1.2; margin-bottom: 20px;
}
.hs-left p {
  font-family: var(--body);
  font-size: 14px; line-height: 1.85; font-weight: 400;
  color: rgba(255,255,255,0.35); max-width: 340px;
}
.harmony-combos { display: flex; flex-direction: column; gap: 2px; }
.harmony-row {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer; transition: background 0.3s;
}
.harmony-row:hover { background: rgba(255,255,255,0.04); }
.h-swatches { display: flex; gap: 4px; }
.h-sw {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform 0.3s var(--ease);
}
.harmony-row:hover .h-sw { transform: scale(1.1); }
.h-label {
  flex: 1;
  font-family: var(--serif);
  font-size: 15px; font-style: italic; font-weight: 100;
  color: rgba(255,255,255,0.6);
}
.h-arrow { color: rgba(255,255,255,0.15); font-size: 14px; transition: all 0.3s; }
.harmony-row:hover .h-arrow { color: rgba(255,255,255,0.4); transform: translateX(4px); }

/* ─────────────────────────────────────────
   TENDANCES SAISON
───────────────────────────────────────── */
.tendances-section {
  padding: 80px 56px;
  max-width: 1600px; margin: 0 auto;
}
.ts-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--rule);
}
.ts-title {
  font-family: var(--serif);
  font-size: 22px; font-style: italic; font-weight: 100;
}
.ts-sub {
  font-family: var(--caps);
  font-size: 8px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ash);
}
.tendances-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
}
.tend-card { cursor: pointer; transition: transform 0.4s var(--ease); }
.tend-card:hover { transform: translateY(-4px); }
.tend-swatch {
  width: 100%; aspect-ratio: 1;
  position: relative; overflow: hidden; margin-bottom: 12px;
}
.tend-fill { width: 100%; height: 100%; transition: transform 0.6s var(--ease); }
.tend-card:hover .tend-fill { transform: scale(1.06); }
.tend-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,11,9,0.25) 0%, transparent 60%);
}
.tend-year {
  position: absolute; top: 8px; right: 8px;
  font-family: var(--caps); font-size: 6px; letter-spacing: 0.22em;
  color: rgba(255,255,255,0.6); padding: 3px 8px;
  background: rgba(12,11,9,0.3); backdrop-filter: blur(4px);
}
.tend-name {
  font-family: var(--serif);
  font-size: 14px; font-style: italic; font-weight: 100;
  color: var(--ink); margin-bottom: 4px;
}
.tend-ref {
  font-family: var(--caps);
  font-size: 7px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ash);
}

/* ─────────────────────────────────────────
   BOUTONS
───────────────────────────────────────── */
.btn-primary,
.cat-tab.cta {
  display: inline-block;
  padding: 14px 48px;
  background: #000;
  color: #fff;
  font-family: century-gothic, Helvetica, Arial, times, sans-serif;
  font-size: 15px; font-weight: 400;
  text-align: center; text-decoration: none;
  border: 1px solid #000;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn-primary:hover { background: #fff; color: #000; }

/* ─────────────────────────────────────────
   EMPTY STATE
───────────────────────────────────────── */
.empty-state {
  grid-column: 1 / -1; padding: 80px 0;
  text-align: center; display: none;
}
.empty-state.visible { display: block; }
.empty-state h3 {
  font-family: var(--serif);
  font-size: 24px; font-style: italic; font-weight: 100;
  color: var(--ash); margin-bottom: 12px;
}
.empty-state p {
  font-family: var(--body);
  font-size: 13px; color: var(--rule); font-weight: 400;
}

/* ─────────────────────────────────────────
   OVERLAY TRANSITION
───────────────────────────────────────── */
.color-transition {
  position: fixed; inset: 0; z-index: 500;
  pointer-events: none; opacity: 0; transition: opacity 0.3s;
}
.color-transition.flash { opacity: 0.06; transition: opacity 0s; }
.color-transition.fade-out { opacity: 0; transition: opacity 0.6s; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1200px) {
  .wheel-section { grid-template-columns: 1fr; }
  .wheel-container { margin: 0 auto; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .tendances-grid { grid-template-columns: repeat(3, 1fr); }
  .hs-inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .cercle-chromatique-page .hero { grid-template-columns: 1fr; padding: 100px 24px 0; gap: 32px; }
  .wheel-section { padding: 40px 24px 0; }
  .wheel-canvas { width: 320px; height: 320px; }
  #wheel-svg { width: 320px; height: 320px; }
  .wheel-container { width: 320px; height: 320px; }
  .wheel-center { width: 100px; height: 100px; }
  .catalogue-section { padding: 60px 24px 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .tendances-section { padding: 60px 24px; }
  .tendances-grid { grid-template-columns: repeat(2, 1fr); }
  .harmony-section { padding: 60px 24px; }
}
