/* ============================================
   ENHANCEMENTS V2 — Effets Avancés Premium
   ============================================ */

/* === HERO TEXT REVEAL === */
.hero-content h1,
.hero-content h2,
.page-header-content h1 {
  overflow: hidden;
  display: inline-block;
}

.hero-content h1 .char,
.page-header-content h1 .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: charReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes charReveal {
  from {
    opacity: 0;
    transform: translateY(100%) rotate(10deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

/* === FLOATING LABELS ON FORMS === */
.form-group {
  position: relative;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  transform: translateY(-22px) scale(0.85);
  color: var(--gold) !important;
}

/* === SERVICE CARD ANIMATION === */
.service-card {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 164, 92, 0.3) 0%, transparent 70%);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.service-card:hover::before {
  width: 200%;
  height: 200%;
}

.service-card:hover {
  transform: translateY(-5px) scale(1.02) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(201, 164, 92, 0.2) !important;
}

.service-card-icon {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-icon {
  transform: rotateY(360deg) scale(1.15);
}

/* === GALLERY ITEM ENHANCED === */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(201, 164, 92, 0) 0%,
    rgba(201, 164, 92, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item-overlay {
  background: linear-gradient(to top,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.7) 50%,
    transparent 100%) !important;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.gallery-item:hover .gallery-item-overlay {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item-overlay h3 {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.gallery-item-overlay p {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.gallery-item:hover .gallery-item-overlay h3,
.gallery-item:hover .gallery-item-overlay p {
  transform: translateY(0);
  opacity: 1;
}

/* === COUNTER ANIMATION === */
.stat-number {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-lighter));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(201, 164, 92, 0.3));
}

.stat-item {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-item:hover .stat-number {
  animation: numberGlow 1s ease;
}

@keyframes numberGlow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(201, 164, 92, 0.3)); }
  50% { filter: drop-shadow(0 0 40px rgba(201, 164, 92, 0.8)); }
}

/* === FEATURE ITEM ENHANCED === */
.feature-item {
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold), var(--gold-lighter));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-item:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.feature-icon {
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-item:hover .feature-icon {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 20px rgba(201, 164, 92, 0.5));
}

/* === PROCESS STEP ENHANCED === */
.process-step {
  position: relative;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step:hover {
  transform: translateY(-8px);
}

.process-number {
  background: linear-gradient(135deg, var(--gold), var(--gold-lighter));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.5s ease;
}

.process-step:hover .process-number {
  transform: scale(1.2);
}

.process-icon {
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.process-icon::before {
  content: '';
  position: absolute;
  inset: -5px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step:hover .process-icon::before {
  opacity: 1;
  transform: scale(1);
  animation: iconRing 1.5s linear infinite;
}

@keyframes iconRing {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(360deg) scale(1); }
}

/* === CATEGORY CARD ENHANCED === */
.category-card {
  position: relative;
  overflow: hidden;
}

.category-card-content {
  position: relative;
  z-index: 2;
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center,
    rgba(201, 164, 92, 0.15) 0%,
    transparent 60%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.category-card:hover::after {
  opacity: 1;
}

/* === LINK UNDERLINE ENHANCED === */
.footer a:hover,
a:not(.btn-luxury):not(.nav-logo):not(.nav-cart) {
  position: relative;
}

a:not(.btn-luxury):not(.nav-logo):not(.nav-cart):not(.nav-menu a):hover {
  color: var(--gold-lighter);
}

/* === BUTTON LUXURY ENHANCED === */
.btn-luxury {
  position: relative;
  overflow: hidden;
  background-size: 200% 100%;
  background-image: linear-gradient(90deg,
    var(--gold) 0%,
    var(--gold-lighter) 50%,
    var(--gold) 100%);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
  background-position: 0% 50%;
}

.btn-luxury:hover {
  background-position: 100% 50%;
}

/* === CART ITEM REMOVE === */
.cart-item-remove {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.cart-item-remove:hover {
  transform: scale(1.2) rotate(15deg) !important;
  background: rgba(231, 76, 60, 0.2) !important;
  color: #e74c3c !important;
}

/* === ADMIN NAV TAB ENHANCED === */
.nav-tab {
  position: relative;
  overflow: hidden;
}

.nav-tab::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--gold);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(-50%);
  border-radius: 3px;
}

.nav-tab:hover::before {
  width: 60%;
}

.nav-tab.active::before {
  width: 80%;
  height: 0;
}

/* === ADMIN STATUS SWITCHER === */
.status-option {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.status-option:not(.active)::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

.status-option:not(.active):hover::before {
  width: 80%;
}

/* === SUBMISSION CARD HOVER === */
.submission-card {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.submission-card:hover {
  transform: translateY(-8px) scale(1.01) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(201, 164, 92, 0.15) !important;
}

/* === ATTACHMENT PREVIEW === */
.attachment-preview {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.attachment-preview:hover {
  transform: scale(1.1) rotate(3deg) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 10px 30px rgba(201, 164, 92, 0.3);
  opacity: 1 !important;
}

/* === LOADER PROGRESS === */
.loader-progress {
  position: relative;
}

.loader-progress::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%);
  animation: progressShimmer 1s linear infinite;
}

@keyframes progressShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* === COOKIE BANNER ENHANCED === */
.cookie-banner {
  background: linear-gradient(135deg,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(26, 26, 26, 0.95) 100%) !important;
  transform: translateY(120%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.cookie-banner.active {
  transform: translateY(0);
}

.btn-cookie {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-cookie:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* === DROPDOWN ITEM HOVER === */
.dropdown-menu li a {
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dropdown-menu li a:hover {
  padding-left: 30px !important;
  background: rgba(201, 164, 92, 0.1) !important;
  color: var(--gold) !important;
}

.dropdown-menu li a::before {
  content: '→';
  position: absolute;
  left: 10px;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--gold);
}

.dropdown-menu li a:hover::before {
  opacity: 1;
  left: 12px;
}

/* === MOBILE MENU TOGGLE ENHANCED === */
.nav-toggle {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nav-toggle.active {
  transform: rotate(180deg);
}

.nav-toggle span {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
  background: var(--gold) !important;
}

/* === FORM SUBMIT ENHANCED === */
.form-submit {
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.form-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-submit:hover::after {
  transform: translateX(100%);
}

/* === SUCCESS / ERROR MESSAGES === */
.form-status-message {
  animation: messageSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.form-status-message.success::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: #2ecc71;
  animation: progressBar 5s linear forwards;
}

.form-status-message.error::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: #e74c3c;
  animation: progressBar 5s linear forwards;
}

@keyframes progressBar {
  from { width: 100%; }
  to { width: 0%; }
}

/* === ADMIN PRODUCT EDIT CARD === */
.product-edit-card {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.product-edit-card:hover {
  transform: translateY(-5px) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3) !important;
}

.product-edit-img {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.product-edit-card:hover .product-edit-img {
  transform: scale(1.1) rotate(-3deg);
}

/* === DISCOUNT SLIDER === */
.discount-slider {
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  background: rgba(201, 164, 92, 0.2);
  outline: none;
  border-radius: 3px;
  cursor: pointer;
}

.discount-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--gold), var(--gold-lighter));
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(201, 164, 92, 0.5);
}

.discount-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
  box-shadow: 0 0 20px rgba(201, 164, 92, 0.8);
}

.discount-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--gold), var(--gold-lighter));
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

/* === BLUR ON LOADING === */
body.loading .loader {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* === SMOOTH PAGE LOAD === */
@keyframes contentFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

main, section {
  animation: contentFadeIn 1s ease;
}

/* === FOOTER LINKS === */
.footer-bottom {
  background: linear-gradient(135deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(26, 26, 26, 0.5) 100%);
  border-top: 1px solid rgba(201, 164, 92, 0.1);
}

.footer-legal-links a {
  position: relative;
  transition: all 0.3s ease !important;
}

.footer-legal-links a:hover {
  color: var(--gold-lighter) !important;
  letter-spacing: 0.5px;
}

/* === IMAGES OPTIMIZATION === */
img {
  transition: opacity 0.6s ease;
}

img[data-loaded="false"] {
  opacity: 0;
}

img[data-loaded="true"] {
  opacity: 1;
}

/* === LIGHTBOX CLOSE BUTTON === */
.lightbox-close {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.lightbox-close:hover {
  transform: rotate(90deg) scale(1.1);
  color: var(--gold) !important;
}

/* === SECTION HEADER ENHANCED === */
.section-header {
  position: relative;
}

.section-label {
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

.section-label::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 1px;
  background: var(--gold);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-header.active .section-label::after {
  width: 60px;
}

/* === CONTAINER MAX WIDTH FOR LARGE SCREENS === */
@media (min-width: 1600px) {
  .container {
    max-width: 1500px;
  }
}

/* === STAR RATING OR SPECIAL EFFECTS === */
.featured-tag {
  background: linear-gradient(135deg, var(--gold), var(--gold-lighter));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  position: relative;
}

.featured-tag::before {
  content: '✨ ';
  -webkit-text-fill-color: var(--gold);
}

/* === LIST ITEMS ENHANCED === */
.legal-content li,
.cgv-content li {
  position: relative;
  padding-left: 25px;
  transition: all 0.3s ease;
}

.legal-content li::before,
.cgv-content li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7em;
  top: 8px;
  transition: all 0.3s ease;
}

.legal-content li:hover,
.cgv-content li:hover {
  padding-left: 30px;
  color: var(--gold-lighter);
}

.legal-content li:hover::before,
.cgv-content li:hover::before {
  color: var(--gold-lighter);
  transform: rotate(45deg);
}

/* === MODAL STYLE OVERLAYS === */
.lightbox {
  background: rgba(10, 10, 10, 0.95);
}

/* === HOVER GLOW ON GOLD ELEMENTS === */
.section-label,
.product-category {
  transition: all 0.3s ease;
}

.section-label:hover,
.product-category:hover {
  text-shadow: 0 0 20px rgba(201, 164, 92, 0.5);
}

/* === SVG ANIMATIONS === */
.ornament-laurel,
.ornament-flower {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.title-ornament:hover .ornament-laurel,
.title-ornament:hover .ornament-flower {
  transform: rotate(360deg) scale(1.1);
}

/* === BACKDROP PRESERVE FOR MOBILE === */
@media (max-width: 768px) {
  .navbar {
    background: rgba(10, 10, 10, 0.95) !important;
  }

  .product-card:hover,
  .category-card:hover {
    transform: translateY(-5px) !important;
  }
}
