/* =========================================================
   CHEZ MOI — Customizer / Product Page Specific Styles
   ========================================================= */

.product-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  padding: 40px 0 100px;
}

/* Left preview sticky stage */
.product-stage {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--card);
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  padding: clamp(30px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-s);
  min-height: 520px;
  overflow: hidden;
  transition: background-color .6s;
}

/* Switcher interactif Vue 3D vs Photos Réelles */
.stage-mode-switcher {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  background: rgba(22, 26, 23, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  z-index: 10;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.stage-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.stage-mode-btn:hover {
  color: #FFFFFF;
}

.stage-mode-btn.active {
  background: #FFF9F1;
  color: #1A1E1B;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.stage-ambient {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  filter: blur(60px);
  transition: background 0.8s ease;
  pointer-events: none;
  z-index: 0;
}

.stage-viewport {
  width: 100%;
  max-width: 440px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.stage-viewport svg {
  width: 100%;
  height: 100%;
  max-height: 360px;
  filter: drop-shadow(0 20px 30px rgba(44, 51, 47, 0.12));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stage-controls {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  z-index: 2;
}

.stage-pill-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.stage-pill-btn:hover {
  border-color: var(--fg);
  transform: translateY(-1px);
}

.stage-pill-btn.active {
  background: var(--forest);
  color: #FFF9F1;
  border-color: var(--forest);
}

/* Product Info / Form */
.product-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.product-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.product-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.badge-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--line);
  color: var(--fg);
}

.badge-tag.highlight {
  background: var(--safran);
  color: var(--ink);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 14px;
}

.main-price {
  font-family: var(--f-logo);
  font-size: 42px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1;
}

.price-desc {
  font-size: 14px;
  color: var(--muted);
}

/* Selection Blocks */
.config-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.config-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.config-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg);
}

.config-val {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

/* Model Toggle Tabs */
.model-switch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.model-card-opt {
  border: 1.5px solid var(--line);
  border-radius: var(--r-m);
  padding: 16px 14px;
  background: var(--card);
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.model-card-opt:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.model-card-opt.active {
  border-color: var(--terracotta);
  background: color-mix(in srgb, var(--terracotta) 4%, var(--card));
  box-shadow: 0 4px 18px rgba(208, 106, 78, 0.12);
}

.model-card-opt h4 {
  margin: 0;
  font-family: var(--f-logo);
  font-size: 17.5px;
  line-height: 1.15;
}

.model-card-opt p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

.model-card-opt .opt-price {
  font-weight: 700;
  font-size: 13px;
  color: var(--terracotta);
  margin-bottom: 2px;
}

/* Color Swatches Grid */
.color-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.color-chip-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  transition: all 0.25s ease;
}

.color-chip-btn:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.color-chip-btn.active {
  border-color: var(--fg);
  box-shadow: 0 4px 12px rgba(44, 51, 47, 0.12);
  background: var(--bg-alt);
}

.color-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1), 0 3px 6px rgba(0,0,0,0.08);
  position: relative;
}

.color-chip-btn.active .color-circle::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid var(--fg);
  border-radius: 50%;
}

.color-chip-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

/* Dimensions Slider & Presets UX */
.dimension-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.dim-control-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dim-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.preset-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.preset-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.2s;
}

.preset-pill:hover {
  border-color: var(--line-strong);
}

.preset-pill.active {
  background: var(--forest);
  color: #FFF9F1;
  border-color: var(--forest);
}

/* Callout Note */
.fit-guarantee {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--r-s);
  background: color-mix(in srgb, var(--sauge) 25%, var(--card));
  border: 1px solid rgba(169, 183, 154, 0.4);
  font-size: 13.5px;
  line-height: 1.5;
}

.fit-guarantee svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--forest);
}

/* Action Bar */
.action-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.shipping-recap {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

/* Responsive */
@media (max-width: 992px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .product-stage {
    position: relative;
    top: 0;
    min-height: 420px;
  }
  .color-picker-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 580px) {
  .color-picker-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .model-switch-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Known Switch Standards (Dooxie, Odace, Céliane, etc.) ---------- */
.known-standards-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.standards-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.standards-bar-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg);
}

.standards-bar-hint {
  font-size: 11px;
  color: var(--muted);
}

.standards-pills-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.std-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  color: var(--fg);
  cursor: pointer;
  transition: all 0.22s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.std-pill:hover {
  border-color: var(--terracotta);
  transform: translateY(-1px);
}

.std-pill.active {
  background: var(--forest);
  color: #FFF9F1;
  border-color: var(--forest);
  box-shadow: 0 2px 8px rgba(44, 51, 47, 0.2);
}
body.night .std-pill.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.std-pill-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(208, 106, 78, 0.15);
  color: var(--terracotta);
}
.std-pill.active .std-pill-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #FFF9F1;
}

/* Banner de correspondance automatique (affichée uniquement quand la dimension correspond, sinon ignorée) */
.standard-match-banner {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--r-s);
  background: color-mix(in srgb, var(--sauge) 20%, var(--card));
  border: 1.5px solid var(--sauge);
  animation: fadeInMatch 0.3s ease;
}

@keyframes fadeInMatch {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.standard-match-banner .match-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sauge-dark);
  color: #FFF9F1;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.match-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.match-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.match-brand {
  font-weight: 700;
  font-size: 14px;
  color: var(--fg);
}

.match-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--forest);
  color: #FFF9F1;
}
body.night .match-badge {
  background: var(--safran);
  color: var(--ink);
}

.match-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}

.match-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  font-size: 12px;
}
.match-meta b {
  color: var(--fg);
  font-family: monospace;
}
.match-ok {
  color: var(--sage-dark);
  font-weight: 700;
}
body.night .match-ok { color: var(--sauge); }

/* ---------- Guide des Standards Comparatif ---------- */
.standards-guide-section {
  padding-top: 20px;
}

.standards-table-wrap {
  overflow-x: auto;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-s);
}

.standards-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.standards-table th {
  padding: 16px 20px;
  background: var(--bg);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.standards-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.standards-table tr:last-child td {
  border-bottom: none;
}

.standards-table tr:hover td {
  background: rgba(0, 0, 0, 0.015);
}
body.night .standards-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.table-brand-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-desc-text {
  font-size: 13px;
  color: var(--muted);
  max-width: 320px;
}

.table-dim-badge {
  font-family: monospace;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: inline-block;
  white-space: nowrap;
}

.btn-apply-std {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-apply-std:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #FFF9F1;
}

/* =========================================================
   Éditions Poétiques & Capsules Selector
   ========================================================= */
.edition-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
}

.edition-card-opt {
  position: relative;
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-m);
  padding: 12px 8px 10px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--fg);
}

.edition-card-opt:hover {
  border-color: var(--fg);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 51, 47, 0.06);
}

.edition-card-opt.active {
  border-color: var(--terracotta);
  background: color-mix(in srgb, var(--terracotta) 4%, var(--card));
  box-shadow: 0 0 0 1px var(--terracotta), 0 6px 16px rgba(208, 106, 78, 0.12);
}

.edition-card-tag {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--line);
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1.2;
}

.edition-card-tag.highlight {
  background: color-mix(in srgb, var(--terracotta) 15%, var(--card));
  color: var(--terracotta);
}

.edition-card-opt.active .edition-card-tag.highlight {
  background: var(--terracotta);
  color: #FFF9F1;
}

.edition-card-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  color: var(--fg);
  transition: transform 0.25s ease;
}

.edition-card-opt:hover .edition-card-icon {
  transform: scale(1.1);
}

.edition-card-opt h4 {
  font-size: 12.5px;
  font-weight: 700;
  margin: 0 0 2px;
  line-height: 1.2;
}

.edition-card-opt p {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 6px;
  line-height: 1.2;
}

.edition-price-diff {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.04);
}

body.night .edition-price-diff {
  background: rgba(255, 255, 255, 0.06);
}

.edition-card-opt.active .edition-price-diff {
  color: var(--terracotta);
  background: color-mix(in srgb, var(--terracotta) 12%, transparent);
}

/* =========================================================
   Stage Photo Gallery Mode (Real Atelier High-Res Shots)
   ========================================================= */
.stage-photo-view {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeInPhoto 0.35s ease;
  z-index: 1;
}

@keyframes fadeInPhoto {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.stage-photo-wrap {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: var(--r-m);
  overflow: hidden;
  box-shadow: var(--shadow-m);
  background: var(--bg);
}

.stage-main-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.stage-main-photo:hover {
  transform: scale(1.03);
}

.stage-photo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(44, 51, 47, 0.85);
  backdrop-filter: blur(8px);
  color: #FFF9F1;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stage-photo-thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.stage-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--r-s);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.65;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.stage-thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.stage-thumb.active {
  opacity: 1;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 2px var(--terracotta);
}

@media (max-width: 600px) {
  .edition-selector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


