﻿/* -- proprietaires.html - Page-specific styles -- */

/* -- CUSTOM PROPERTIES -- */
:root {
  --gold: #F2B54A;
  --gold-dim: rgba(242, 181, 74, 0.12);
  --ink: #1D0D06;
  --cream: #FAFAF9;
}

/* WARDEN -- ADVANCED FORM SYSTEM (LIGHT) */
.field-wrap {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.field-wrap:focus-within {
  transform: translateX(3px);
}

.field-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(50, 22, 10, 0.35);
  margin-bottom: 0.55rem;
  transition: color 0.35s;
}

.field-wrap:focus-within .field-label {
  color: #D49620;
}

.field-input,
.field-textarea,
.dropdown-toggle {
  width: 100%;
  background: transparent !important;
  border: none;
  border-bottom: 1px solid rgba(50, 22, 10, 0.12);
  padding: 0.7rem 0 0.9rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #1D0D06;
  outline: none;
  transition: border-color 0.4s;
  caret-color: #F2B54A;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  -webkit-tap-highlight-color: transparent;
}

.field-textarea {
  resize: none;
  line-height: 1.75;
}

.field-input::placeholder,
.field-textarea::placeholder,
.dropdown-toggle.placeholder-state {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(50, 22, 10, 0.4);
}

.dropdown-toggle {
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.field-input:focus,
.field-textarea:focus,
.dropdown-toggle:focus {
  border-color: transparent;
  outline: none;
  box-shadow: none;
  background-color: transparent !important;
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: #1D0D06 !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

.field-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(to right, #F2B54A, #D49620);
  transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
  pointer-events: none;
}

.field-input:focus~.field-underline,
.field-textarea:focus~.field-underline,
.field-wrap:focus-within .field-underline {
  width: 100%;
}
}

.dropdown-arrow {
  color: rgba(50, 22, 10, 0.3);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s;
  flex-shrink: 0;
}

[data-dropdown]:focus-within .dropdown-arrow,
[data-dropdown].open .dropdown-arrow {
  color: #D49620;
}

.dropdown-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  width: 100%;
  background: #FFFFFF;
  border: 1px solid rgba(50, 22, 10, 0.07);
  border-radius: 1rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  z-index: 100;
  overflow: hidden;
}

.dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu-inner {
  padding: 0.4rem;
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 181, 74, 0.35) transparent;
}

.dropdown-menu-inner::-webkit-scrollbar {
  width: 3px;
}

.dropdown-menu-inner::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown-menu-inner::-webkit-scrollbar-thumb {
  background: rgba(242, 181, 74, 0.4);
  border-radius: 2px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.9rem;
  border-radius: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.83rem;
  font-weight: 400;
  color: rgba(50, 22, 10, 0.6);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}

.dropdown-item:hover {
  background: rgba(242, 181, 74, 0.07);
  color: #1D0D06;
}

.dropdown-item.selected {
  color: #D49620;
  font-weight: 600;
  background: rgba(242, 181, 74, 0.06);
}

.dropdown-item .item-check {
  margin-left: auto;
  opacity: 0;
  color: #F2B54A;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.dropdown-item.selected .item-check {
  opacity: 1;
}

.btn-submit {
  width: 100%;
  padding: 1.15rem 2rem;
  background: #1D0D06;
  color: #F2B54A;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s, color 0.3s;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #F2B54A;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-submit:hover::before {
  transform: scaleX(1);
}

.btn-submit:hover {
  color: #1D0D06;
  box-shadow: 0 0 40px rgba(242, 181, 74, 0.22);
}

.btn-submit span,
.btn-submit svg {
  position: relative;
  z-index: 1;
}

.btn-arrow {
  transition: transform 0.3s;
  transform-origin: center;
}

.btn-submit:hover .btn-arrow {
  transform: rotate(90deg);
}

.btn-submit.btn-form:hover .btn-arrow {
  transform: translateX(4px);
}

.field-input.error,
.field-textarea.error,
.dropdown-toggle.error {
  border: none !important;
  border-bottom: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
}

.field-input.error~.field-underline,
.field-textarea.error~.field-underline,
.dropdown-toggle.error~.field-underline {
  width: 100%;
  background: #C45C3A;
  height: 1.5px !important;
  animation: shake 0.4s ease;
  z-index: 10;
  position: relative;
  border-radius: 0;
  box-shadow: none;
}

.success-overlay {
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 4rem;
  z-index: 50;
  padding: 3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.checkmark-circle {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 1px solid rgba(242, 181, 74, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulseRing {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(242, 181, 74, 0.15);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(242, 181, 74, 0);
  }
}

/* -- NOISE OVERLAY -- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* -- HERO -- */
.hero-bg {
  background: var(--ink);
}

.hero-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  animation: slowPan 50s ease-in-out infinite alternate;
  filter: brightness(0.55) contrast(1.1);
}

.hero-overlay {
  background: linear-gradient(170deg,
      rgba(29, 13, 6, 0.0) 0%,
      rgba(29, 13, 6, 0.3) 40%,
      rgba(29, 13, 6, 0.82) 75%,
      rgba(29, 13, 6, 1) 100%);
}

.hero-side-gradient {
  background: linear-gradient(to right, rgba(29, 13, 6, 0.7), transparent 40%, transparent 60%, rgba(29, 13, 6, 0.7));
}

@keyframes slowPan {
  from {
    transform: scale(1.06) translate(0, 0);
  }

  to {
    transform: scale(1.14) translate(-2%, 1%);
  }
}

/* -- ANIMATED LINE -- */
.line-draw {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLine 1.8s ease-out 0.5s forwards;
}

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

/* -- HERO TEXT ENTRANCE -- */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px) rotateX(20deg);
  animation: wordReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wordReveal {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

/* -- FLOATING BADGE -- */
.floating-badge {
  animation: floatBadge 6s ease-in-out infinite;
}

@keyframes floatBadge {

  0%,
  100% {
    transform: translateY(0px) rotate(-2deg);
  }

  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

/* -- FADE IN UP -- */
@keyframes fadeInUp {
  to {
    opacity: 1;
  }
}

/* -- HERO SCROLL INDICATOR -- */
.hero-scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeInUp 1s 1.8s forwards;
}

.scroll-line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, rgba(242, 181, 74, 0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.6;
  }

  50% {
    transform: scaleY(0.6);
    opacity: 1;
  }
}

/* -- TESTIMONIAL CAROUSEL -- */
.testimonial-carousel-container {
  position: relative;
  overflow: hidden;
  perspective: 2000px;
}

.testimonial-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-slide {
  min-width: 100%;
  padding: 0.5rem;
  display: flex;
  justify-content: center;
}

.testimonial-card-wrapper {
  width: 100%;
  max-width: 800px;
  padding: 1px;
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.1;
  transition: all 0.4s;
}

.carousel-dot.active {
  width: 24px;
  border-radius: 10px;
  background: var(--gold);
  opacity: 1;
}

.tilt-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.tilt-card>* {
  transform: translateZ(50px);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}
