/* ============================================
   LuminCeramic — styles custom
   ============================================ */

/* Smooth scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #04060c; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7CFFB2, #5BC8FF);
  border-radius: 10px;
}

/* Selection */
::selection { background: #7CFFB2; color: #04060c; }

/* Body subtle noise / star texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(124,255,178,0.3), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(180,124,255,0.3), transparent),
    radial-gradient(1px 1px at 85% 20%, rgba(91,200,255,0.3), transparent);
  background-size: 800px 800px;
  opacity: 0.5;
  z-index: 1;
}

/* Navbar scrolled state */
#navbar.scrolled {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Filter buttons */
.filter-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #cbd5e1;
  transition: all .3s ease;
}
.filter-btn:hover {
  border-color: rgba(124,255,178,0.4);
  color: #7CFFB2;
}
.filter-btn.active {
  background: rgba(124,255,178,0.15);
  border-color: rgba(124,255,178,0.5);
  color: #7CFFB2;
  box-shadow: 0 0 24px rgba(124,255,178,0.25);
}

/* Gallery card */
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.05);
}
.gallery-card img,
.gallery-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease, filter .8s ease;
  display: block;
}
.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(4,6,12,0.9) 100%);
  z-index: 1;
  pointer-events: none;
}
.gallery-card .card-label {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gallery-card .card-label .tag {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: #7CFFB2;
  text-transform: uppercase;
}
.gallery-card .card-label .title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: white;
  line-height: 1.1;
}
.gallery-card:hover img,
.gallery-card:hover video {
  transform: scale(1.08);
  filter: brightness(1.15) saturate(1.2);
}
.gallery-card .glow-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--glow-color, rgba(124,255,178,0.35)) 0%, transparent 65%);
  opacity: 0;
  transition: opacity .6s ease;
  mix-blend-mode: screen;
  z-index: 1;
}
.gallery-card:hover .glow-overlay { opacity: 1; }

.gallery-card .light-badge {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  background: rgba(4,6,12,0.65);
  border: 1px solid rgba(255,255,255,0.15);
}
.gallery-card .light-badge.phospho {
  color: #7CFFB2;
  border-color: rgba(124,255,178,0.4);
}
.gallery-card .light-badge.retro {
  color: #FCD34D;
  border-color: rgba(252,211,77,0.4);
}

/* Hidden filtered items */
.gallery-card.hide {
  display: none;
}

/* Palette swatches */
.palette-swatch {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 0 0 rgba(255,255,255,0);
}
.palette-swatch:hover {
  transform: scale(1.18);
  box-shadow: 0 0 30px var(--c);
  border-color: rgba(255,255,255,0.5);
}

/* Form inputs */
.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: white;
  font-size: 15px;
  transition: all .3s ease;
  outline: none;
}
.form-input::placeholder { color: #64748b; }
.form-input:focus {
  border-color: rgba(124,255,178,0.5);
  background: rgba(124,255,178,0.04);
  box-shadow: 0 0 24px rgba(124,255,178,0.15);
}
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237CFFB2' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
select.form-input option { background: #0a0e1a; color: white; }

/* Reveal animation initial state */
[data-anim="fade-up"] {
  opacity: 0;
  transform: translateY(40px);
}

/* Hero text glow pulse */
h1 .italic {
  animation: heroGlow 5s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { text-shadow: 0 0 30px rgba(124,255,178,0.4); }
  50%      { text-shadow: 0 0 60px rgba(124,255,178,0.9), 0 0 100px rgba(124,255,178,0.4); }
}

/* Loader fade out */
#loader.done {
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s ease;
}
#loader-fill.full { transform: scale(1.5); }

/* ============ Hero luxe still ============ */
.hero-zoom {
  animation: heroKenBurns 22s ease-in-out infinite alternate;
  transform-origin: center 60%;
  filter: brightness(0.85) saturate(1.05);
}
@keyframes heroKenBurns {
  0%   { transform: scale(1.04); }
  100% { transform: scale(1.15); }
}

.hero-line {
  animation: heroLine 6s ease-in-out infinite;
}
@keyframes heroLine {
  0%, 100% { opacity: 0.5; filter: blur(0px); }
  50%      { opacity: 1;   filter: blur(0.3px); }
}

/* ============ Pool / path frames — bordure phosphorescente animée ============ */
.pool-frame {
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 30px 60px rgba(0,0,0,0.5),
    0 0 80px rgba(124,255,178,0.05);
  transition: box-shadow .6s ease;
}
.pool-frame:hover {
  box-shadow:
    0 30px 60px rgba(0,0,0,0.6),
    0 0 100px rgba(124,255,178,0.18);
}

/* Phosphorescent outline pulse */
.pool-outline {
  stroke-dasharray: 1;
  animation: outlinePulse 4s ease-in-out infinite;
}
@keyframes outlinePulse {
  0%, 100% { opacity: 0.7; stroke-width: 0.6; }
  50%      { opacity: 1;   stroke-width: 0.9; }
}

/* Subtle pool water reflection animation */
.pool-svg {
  mix-blend-mode: screen;
}

/* ============ Auth gate ============ */
#authGate { animation: authFadeIn .5s ease both; }
@keyframes authFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.auth-shake { animation: authShake .45s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes authShake {
  10%, 90%  { transform: translateX(-2px); }
  20%, 80%  { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60%  { transform: translateX(6px); }
}

#authGate .form-input { font-size: 15px; }
#authGate button:disabled { opacity: .65; cursor: not-allowed; }

/* ============ Simulateur ============ */
.sim-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #cbd5e1;
  text-align: left;
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
  transition: all .25s ease;
}
.sim-chip:hover {
  border-color: rgba(124,255,236,0.3);
  background: rgba(124,255,236,0.04);
  color: #e2e8f0;
}
.sim-chip.active {
  background: rgba(124,255,236,0.12);
  border-color: rgba(124,255,236,0.55);
  color: #7CFFEC;
  box-shadow: 0 0 24px rgba(124,255,236,0.18);
}
.sim-chip-icon {
  font-size: 16px;
  opacity: 0.8;
}
.sim-chip-label {
  font-weight: 500;
}
.sim-chip-desc {
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}
.sim-chip.active .sim-chip-desc {
  color: rgba(124,255,236,0.7);
}
.sim-finish {
  align-items: center;
  text-align: center;
}

/* Range slider */
.sim-range {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 4px;
  cursor: pointer;
}
.sim-range::-webkit-slider-runnable-track {
  height: 3px;
  background: linear-gradient(90deg, rgba(124,255,236,0.6), rgba(124,255,236,0.15));
  border-radius: 3px;
}
.sim-range::-moz-range-track {
  height: 3px;
  background: linear-gradient(90deg, rgba(124,255,236,0.6), rgba(124,255,236,0.15));
  border-radius: 3px;
}
.sim-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #7CFFEC;
  border: 2px solid #04060c;
  margin-top: -8px;
  box-shadow: 0 0 16px rgba(124,255,236,0.6);
  transition: transform .15s ease;
}
.sim-range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #7CFFEC; border: 2px solid #04060c;
  box-shadow: 0 0 16px rgba(124,255,236,0.6);
}
.sim-range:hover::-webkit-slider-thumb { transform: scale(1.15); }

/* ============ Concierge conversationnel ============ */
#conciergeChat {
  scrollbar-width: thin;
  scrollbar-color: rgba(124,255,236,0.3) transparent;
}
#conciergeChat::-webkit-scrollbar { width: 4px; }
#conciergeChat::-webkit-scrollbar-thumb { background: rgba(124,255,236,0.25); border-radius: 4px; }

.cnc-bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  animation: cncBubbleIn .35s ease-out both;
}
@keyframes cncBubbleIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cnc-bot {
  background: rgba(124,255,236,0.06);
  border: 1px solid rgba(124,255,236,0.18);
  color: #e2e8f0;
  border-top-left-radius: 4px;
  align-self: flex-start;
  margin-right: auto;
}

.cnc-user {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: #cbd5e1;
  border-top-right-radius: 4px;
  margin-left: auto;
  text-align: right;
}

#conciergeChat { display: flex; flex-direction: column; }

/* Typing indicator */
.cnc-typing { display: inline-flex; gap: 4px; align-items: center; padding: 12px 16px; }
.cnc-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #7CFFEC;
  opacity: 0.4;
  animation: cncTyping 1.2s ease-in-out infinite;
}
.cnc-typing span:nth-child(2) { animation-delay: .15s; }
.cnc-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes cncTyping {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}

/* Option chips */
.cnc-option {
  padding: 9px 14px;
  background: rgba(124,255,236,0.05);
  border: 1px solid rgba(124,255,236,0.25);
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 12.5px;
  cursor: pointer;
  transition: all .2s ease;
}
.cnc-option:hover {
  background: rgba(124,255,236,0.15);
  border-color: rgba(124,255,236,0.6);
  color: #7CFFEC;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(124,255,236,0.15);
}

/* Send button (input flow) */
.cnc-send {
  width: 44px;
  border-radius: 999px;
  background: rgba(124,255,236,0.15);
  border: 1px solid rgba(124,255,236,0.4);
  color: #7CFFEC;
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
  transition: all .2s ease;
}
.cnc-send:hover {
  background: rgba(124,255,236,0.3);
  box-shadow: 0 0 20px rgba(124,255,236,0.35);
}

.cnc-invalid {
  border-color: rgba(253,164,175,0.5) !important;
  animation: authShake .45s cubic-bezier(.36,.07,.19,.97);
}

/* ============ Palette cards (coloris sur mesure) ============ */
.palette-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 3 / 5;
  border: 1px solid rgba(255,255,255,0.06);
  background: #04060c;
  transition: transform .5s ease, border-color .5s ease, box-shadow .5s ease;
  cursor: default;
}
.palette-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s ease, filter .8s ease;
}
.palette-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4,6,12,0.92) 100%);
  pointer-events: none;
}
.palette-card figcaption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.palette-card .palette-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 300;
  color: #f1f5f9;
  line-height: 1;
}
.palette-card .palette-sub {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #94a3b8;
}
.palette-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}
.palette-card:hover img {
  transform: scale(1.06);
  filter: brightness(1.08) saturate(1.1);
}

.palette-badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.7));
}
.palette-badge--natural { left: 10px; }
.palette-badge--relit { right: 10px; }
.palette-badge.full { height: 14px; width: auto; }
.palette-badge.compact { height: 16px; width: 16px; display: none; }
@media (max-width: 640px) {
  .palette-badge.full { display: none; }
  .palette-badge.compact { display: block; }
  .palette-badge { top: 8px; }
  .palette-badge--natural { left: 8px; }
  .palette-badge--relit { right: 8px; }
}

/* ============ Side quick-nav (catégories) ============ */
.side-nav-toggle { writing-mode: horizontal-tb; }
.side-nav-panel {
  box-sizing: border-box;
  width: 0;
  padding: 20px 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  background: rgba(10,14,26,0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: none;
  border-radius: 0 20px 20px 0;
  transition: width .4s ease, opacity .3s ease, padding .4s ease;
  white-space: nowrap;
  align-self: center;
}
#sideNav.open .side-nav-panel {
  width: 268px;
  padding: 20px 22px;
  opacity: 1;
  pointer-events: auto;
}
.side-nav-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  font-size: 13px;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color .2s ease, padding-left .2s ease;
}
.side-nav-panel a:last-child { border-bottom: none; }
.side-nav-panel a:hover { color: #7CFFEC; padding-left: 8px; }
.side-nav-panel .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
  flex-shrink: 0;
}

/* ============ Scenes couleur (jour + teinte nocturne au choix) ============ */
.scene-night { transition: opacity .6s ease; }
.scene-badge { transition: color .3s ease, border-color .3s ease; }
.scene-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: rgba(4,6,12,0.55);
  flex-shrink: 0;
}
.scene-swatch:hover { transform: scale(1.14); box-shadow: 0 0 26px var(--c); }
.scene-swatch.active {
  border-color: rgba(255,255,255,0.85);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.12), 0 0 26px var(--c);
}
.scene-swatch--day { background: linear-gradient(135deg, #FDE68A, #FCA65B); }

/* Responsive tweaks */
@media (max-width: 640px) {
  h1 { font-size: 2.5rem !important; line-height: 1.1; }
  section { padding-top: 5rem; padding-bottom: 5rem; }
}
