/* Voythia | Sélecteur de finitions de cuisine — élégant et utilisable au tactile. */
.finish-panel {
  position: absolute;
  z-index: 6;
  top: 50%;
  right: clamp(18px, 3.4vw, 58px);
  transform: translateY(-50%);
  width: min(316px, calc(100% - 36px));
  max-height: calc(100% - 20px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c7c9bb50 transparent;
  color: #f4f3eb;
  background: linear-gradient(150deg, rgba(35,42,39,.94), rgba(23,30,27,.96));
  border: 1px solid rgba(230,237,218,.23);
  border-radius: 17px;
  box-shadow: 0 22px 60px rgba(5,13,9,.30), inset 0 1px rgba(255,255,255,.10);
  padding: 21px 21px 17px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  font-family: 'DM Sans', system-ui, sans-serif;
}
.finish-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: .19em;
  font-weight: 700;
  color: #d5dacb;
}
.finish-kicker::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  background: #c9d6ae;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(211,231,198,.08);
}
.finish-panel h2 {
  margin: 13px 0 7px;
  font: 500 clamp(22px, 1.8vw, 28px)/1.22 'Manrope', system-ui, sans-serif;
  letter-spacing: -.053em;
}
.finish-panel h2 em {font-weight: 500; font-style: normal; color: #d3dfc7;}
.finish-panel-subtitle {
  max-width: 270px;
  margin: 0;
  color: #c5cfc2;
  font-size: 10.5px;
  line-height: 1.7;
}
.finish-subheader {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  border-top: 1px solid rgba(235,239,221,.19);
  margin-top: 20px;
  padding-top: 16px;
}
.finish-subheader > span:first-child {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .145em;
  color: #e3e9dc;
}
.finish-subheader > span:last-child {
  font-size: 8px;
  letter-spacing: .08em;
  color: #a9b9a8;
  white-space: nowrap;
}
.finish-current {
  padding: 9px 11px 10px;
  margin-top: 12px;
  border-radius: 8px;
  background: rgba(251,255,246,.075);
  border: 1px solid rgba(223,235,214,.18);
}
.finish-current-eyebrow {
  display:block;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing:.13em;
  color:#b7c3b5;
}
.finish-current strong {
  display:block;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -.015em;
  color: #f8f8f3;
  margin-top: 2px;
}
.finish-current-description {
  display: block;
  color:#c0cbbd;
  font-size: 9px;
  line-height: 1.45;
  min-height: 13px;
}
.finish-swatches {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  column-gap: 4px;
  row-gap: 10px;
  margin-top: 15px;
  align-items: start;
}
.finish-swatch {
  display:flex;
  min-width:0;
  min-height: 63px;
  align-items:center;
  flex-direction:column;
  justify-content:flex-start;
  gap: 7px;
  padding: 4px 1px 2px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #d7e0d3;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.finish-swatch:focus-visible,
.finish-reset:focus-visible {outline: 2px solid #e5efd7; outline-offset: 3px;}
.finish-swatch:hover {background: rgba(235,247,230,.07);}
.finish-swatch:active {transform: scale(.96);}
.finish-swatch.is-selected {background: rgba(240,247,231,.10); color:#fff;}
.finish-swatch-sample {
  display:block;
  flex:none;
  width: 31px;
  height: 31px;
  position:relative;
  border-radius:50%;
  background: var(--sample-color, #ab9472);
  border: 1px solid rgba(255,255,255,.30);
  box-shadow: 0 1px 5px rgba(0,0,0,.24), inset 0 1px 1px rgba(255,255,255,.14);
  transition: transform .17s ease;
}
.finish-swatch:hover .finish-swatch-sample {transform: scale(1.09);}
.finish-swatch.is-selected .finish-swatch-sample::after {
  content:'';
  position:absolute;
  inset:-5px;
  border:1.5px solid #e0ebd6;
  border-radius:50%;
}
.finish-swatch-sample.is-wood {
  background:
    repeating-linear-gradient(7deg, transparent 0 3px, rgba(62,38,24,.38) 3px 4px, transparent 4px 8px),
    repeating-linear-gradient(4deg, #b59670 0 7px, #8f6b4b 8px 11px, #bea37d 12px 18px);
  border-color:#e1c5a3b3;
}
.finish-swatch-label {
  display:block;
  max-width:100%;
  overflow-wrap:break-word;
  hyphens:auto;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .005em;
}
.finish-footnote {
  margin: 13px 0 0;
  font-size: 9px;
  line-height: 1.6;
  color:#acbaac;
  border-top:1px solid rgba(231,240,223,.14);
  padding-top: 12px;
}
.finish-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:10px;
}
.finish-actions span {font-size: 8px; letter-spacing: .06em; color:#aebead;}
.finish-reset {
  border: 0;
  color: #e5f1db;
  background: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 9px;
  padding: 7px 0 7px 5px;
  white-space: nowrap;
}
.finish-reset:hover:not(:disabled){color:#fff;}
.finish-reset:disabled{opacity:.45;cursor:default;text-decoration:none;}
@media (max-width: 1060px) and (min-width: 761px) {
  .finish-panel {width:273px;right:15px;padding:16px 15px;}
  .finish-swatch {gap:6px;}
}
@media (max-width: 760px) {
  /* Le panneau sort de la scène sur téléphone pour ne jamais cacher la cuisine. */
  .finish-panel {
    position:relative;
    top:auto;
    right:auto;
    transform:none;
    width:min(520px, calc(100% - 36px));
    max-height:none;
    overflow:visible;
    margin:20px auto 24px;
    padding:20px;
    grid-row: 3;
    box-shadow:0 16px 35px rgba(9,18,13,.20);
  }
  .finish-swatches {grid-template-columns:repeat(6,minmax(0,1fr));row-gap:11px;}
  .finish-swatch {min-height:66px;}
  .finish-swatch-label {font-size: 8px;}
  .scene-shell {grid-template-rows: minmax(380px,1fr) auto auto;}
  .scene-caption {grid-row:2;}
}
@media (max-width: 380px) {
  .finish-panel {padding:18px 13px;}
  .finish-swatches {column-gap:2px;}
  .finish-swatch-sample {width:28px;height:28px;}
}
@media (prefers-reduced-motion:reduce) {
  .finish-swatch, .finish-swatch-sample {transition:none!important;}
}
