/* ================================
   Glassmorphism Effects
   ================================ */

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
}

.glass-light {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
}

.glass-strong {
  background: var(--glass-bg);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px 0 var(--glass-shadow);
}

/* ================================
   Liquid Background
   ================================ */
.liquid-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.liquid-blob {
  position: absolute;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: morphing 20s ease-in-out infinite;
}

.blob-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -100px;
  background: linear-gradient(135deg, #667eea 0%, #4facfe 100%);
  animation-delay: 0s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  bottom: -50px;
  left: -50px;
  background: linear-gradient(135deg, #4facfe 0%, #667eea 100%);
  animation-delay: 5s;
}

.blob-3 {
  width: 350px;
  height: 350px;
  top: 30%;
  right: 20%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(79, 172, 254, 0.4) 100%);
  animation-delay: 10s;
}

@keyframes morphing {
  0%, 100% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    transform: rotate(0deg) scale(1);
  }
  25% {
    border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    transform: rotate(90deg) scale(1.1);
  }
  50% {
    border-radius: 50% 50% 30% 70% / 50% 70% 30% 60%;
    transform: rotate(180deg) scale(0.9);
  }
  75% {
    border-radius: 30% 70% 70% 30% / 70% 40% 60% 30%;
    transform: rotate(270deg) scale(1.05);
  }
}

/* ================================
   Product Page Styles
   ================================ */
.product-detail {
  padding: var(--spacing-xl) 0;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.product-images {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.main-image {
  padding: var(--spacing-xl);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-showcase svg {
  width: 100%;
  max-width: 300px;
  height: auto;
  color: var(--text-primary);
  filter: drop-shadow(0 30px 80px rgba(102, 126, 234, 0.4));
  animation: float 6s ease-in-out infinite;
}

.color-selector {
  padding: var(--spacing-md);
}

.color-selector h4 {
  margin-bottom: var(--spacing-sm);
  font-size: 1rem;
}

.color-options {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.color-option {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  border: 3px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.color-option:hover {
  transform: scale(1.1);
  border-color: var(--glass-border);
}

.color-option.active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--glass-bg);
}

.product-info {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.product-title {
  margin-bottom: 0;
}

.product-tagline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.product-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin: var(--spacing-sm) 0;
}

.product-description h3,
.product-description h4 {
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.product-description ul {
  list-style: none;
  padding-left: 0;
}

.product-description ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.product-guarantee {
  padding: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.product-guarantee p {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* How it works */
.how-it-works {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--glass-border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.step-card {
  padding: var(--spacing-lg);
  text-align: center;
  position: relative;
  transition: transform var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-5px);
}

.step-number {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--spacing-md);
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

/* ================================
   Contact Page
   ================================ */
.contact-section {
  padding: var(--spacing-xl) 0;
}

.contact-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.page-title {
  margin-bottom: var(--spacing-sm);
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--spacing-xl);
}

.contact-form-wrapper {
  padding: var(--spacing-lg);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Styles pour le select en mode sombre */
[data-theme="dark"] .form-input,
[data-theme="dark"] select.form-input {
  background: rgba(26, 26, 46, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] select.form-input:focus {
  background: rgba(26, 26, 46, 0.8);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Options du select en mode sombre */
[data-theme="dark"] select.form-input option {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.5rem;
}

/* Style pour le select ouvert */
[data-theme="dark"] select.form-input:hover {
  background: rgba(26, 26, 46, 0.7);
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.info-card {
  padding: var(--spacing-md);
  text-align: center;
}

.info-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.info-card h3 {
  margin-bottom: var(--spacing-sm);
  font-size: 1.125rem;
}

.info-card p {
  margin-bottom: 0;
}

/* ================================
   Legal Pages
   ================================ */
.legal-section {
  padding: var(--spacing-xl) 0;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--spacing-xl);
}

.legal-date {
  color: var(--text-tertiary);
  font-style: italic;
  margin-bottom: var(--spacing-md);
}

.legal-intro {
  background: var(--glass-bg);
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent-primary);
  margin-bottom: var(--spacing-lg);
  font-weight: 500;
}

.legal-text h2 {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--glass-border);
}

.legal-text h3 {
  margin-top: var(--spacing-md);
  color: var(--accent-primary);
}

.legal-text ul {
  margin-left: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.legal-text ul li {
  margin-bottom: 0.5rem;
}

.legal-text strong {
  color: var(--accent-primary);
}

/* ================================
   Responsive Adjustments
   ================================ */
@media (max-width: 968px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .liquid-blob {
    filter: blur(40px);
  }
  
  .blob-1,
  .blob-2,
  .blob-3 {
    width: 300px;
    height: 300px;
  }
}


