/* Enhanced Modern Luxury Hero Styles */
:root {
  --primary-color: #d97706;
  --primary-light: #f59e0b;
  --primary-dark: #b45309;
  --secondary-color: #fbbf24;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --surface: #ffffff;
  --surface-elevated: #f9fafb;
  --border-light: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
}

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 1rem 60px;
  overflow: hidden;
  text-align: center;
}

/* Enhanced multi-layered background system */
.hero-background {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.bg-gradient-primary {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(217, 119, 6, 0.03) 0%,
    rgba(245, 158, 11, 0.02) 50%,
    rgba(251, 191, 36, 0.01) 100%
  );
}

.bg-gradient-secondary {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(217, 119, 6, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(245, 158, 11, 0.06) 0%, transparent 50%);
}

.bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 25% 25%, rgba(217, 119, 6, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
  background-size: 800px 800px, 600px 600px;
  animation: patternFloat 20s ease-in-out infinite;
}

.bg-mesh {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(217, 119, 6, 0.02) 1px, transparent 1px),
    linear-gradient(rgba(217, 119, 6, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
}

@keyframes patternFloat {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(-30px, -20px) rotate(1deg);
  }
  66% {
    transform: translate(20px, -15px) rotate(-1deg);
  }
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 1.25rem;
  padding: 1.25rem 0;
}

.hero-con {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 1rem;
}

/* Enhanced badge with glassmorphism and animations */
.hero-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: var(--radius-xl);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-color);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-md);
}

.badge-glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.hero-badge:hover .badge-glow {
  opacity: 0.1;
}

.badge-icon {
  font-size: 1.125rem;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.1) rotate(5deg);
  }
}

.badge-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.hero-badge:hover .badge-shimmer {
  left: 100%;
}

/* Enhanced typography with better hierarchy */
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
  text-rendering: optimizeLegibility;
}

.title-line {
  display: block;
  animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.title-line:nth-child(2) {
  animation-delay: 0.1s;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 40%,
    var(--secondary-color) 80%,
    #fcd34d 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 300%;
  animation: gradientShift 6s ease-in-out infinite, slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-description {
  max-width: 700px;
  margin: 0 auto 1rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
  position: relative;
  padding: 0 1rem;
}

.description-highlight {
  color: var(--primary-color);
  font-weight: 600;
}

/* Enhanced action buttons with better interactions */
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0.75rem 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.btn-large {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.3);
}

.btn-primary .btn-text {
  position: relative;
  z-index: 1;
  color: white;
  transition: color 0.3s ease;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-color) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(217, 119, 6, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-icon,
.play-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.btn-primary:hover .btn-icon {
  transform: translateX(3px);
}

.btn-secondary:hover .play-icon {
  transform: scale(1.1);
}

/* Style spécifique pour le bouton Instagram */
.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white !important;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(220, 39, 67, 0.3);
}

.btn-instagram:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(220, 39, 67, 0.4);
  color: white !important;
}

.btn-instagram .instagram-icon {
  fill: white;
  transition: transform 0.3s ease;
}

.btn-instagram:hover .instagram-icon {
  transform: scale(1.1);
}

/* Added trust indicators for credibility */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin: 3rem 0 0;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 800px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 30px;
  background: var(--border-light);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Enhanced visual section with better image treatment */
.hero-visual {
  position: relative;
  animation: fadeInRight 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
  padding: 2rem;
  margin: -2rem;
}

.hero-image-container {
  position: relative;
}

.image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-wrapper:hover .image-overlay {
  opacity: 1;
}

.image-wrapper:hover .hero-image {
  transform: scale(1.05);
}

/* Enhanced floating tag with better visual hierarchy */
.floating-tag {
  position: absolute;
  top: -3rem;
  left: -3rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  width: 320px;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: float 6s ease-in-out infinite;
}

.tag-glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.floating-tag:hover .tag-glow {
  opacity: 0.1;
}

.floating-tag:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.tag-badge {
  position: absolute;
  top: -16px;
  left: 2rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.tag-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 1rem 0 1.25rem;
  line-height: 1.3;
}

.tag-price {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.price-value {
  font-weight: 800;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.price-period {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.btn-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  padding: 1.125rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-tag::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-color) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-tag:hover::before {
  opacity: 1;
}

.btn-tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(217, 119, 6, 0.45);
  color: white;
}

.btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.btn-tag:hover .btn-arrow {
  transform: translateX(3px);
}

/* Enhanced floating elements */
.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.3);
  max-width: 220px;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: float 5s ease-in-out infinite;
}

.floating-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: var(--shadow-xl);
}

.card-1 {
  top: 20%;
  left: 8%;
  animation-delay: 0s;
}

.card-2 {
  bottom: 20%;
  right: 8%;
  animation-delay: 2.5s;
}

.card-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.card-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.875rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.card-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
  font-weight: 500;
}

/* Enhanced FAB - Simplified Devis Button */
.fab-devis-button {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  padding: 16px 24px;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 600;
  font-size: 1rem;
  animation: float 4s ease-in-out infinite;
  overflow: hidden;
}

.fab-devis-text {
  color: white;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.fab-devis-button i {
  font-size: 18px;
  color: white;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.fab-devis-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-color) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fab-devis-button:hover::before {
  opacity: 1;
}

.fab-devis-button:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.fab-devis-button:hover i {
  transform: translateY(3px);
}

/* Enhanced WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: float 4s ease-in-out infinite;
  overflow: hidden;
}

.whatsapp-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.3);
  animation: whatsappPulse 2s ease-in-out infinite;
}

@keyframes whatsappPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

/* Enhanced Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-12px) rotate(0.5deg);
  }
  50% {
    transform: translateY(-18px) rotate(0deg);
  }
  75% {
    transform: translateY(-8px) rotate(-0.5deg);
  }
}

/* Enhanced responsive design */
@media (max-width: 768px) {
  .hero {
    padding: 100px 1rem 60px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }

  .hero-content {
    gap: 2.5rem;
  }

  .hero-stats {
    gap: 2rem;
    justify-content: center;
  }

  .stat-item:not(:last-child)::after {
    right: -1rem;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .btn-large {
    width: 100%;
    justify-content: center;
  }

  .floating-card {
    display: none;
  }

  .hero-visual {
    order: -1;
    position: relative;
    padding-top: 6rem;
  }

  .floating-tag {
    position: absolute;
    top: -5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    z-index: 10;
  }

  .fab-devis-button {
    bottom: 20px;
    left: 20px;
    padding: 14px 20px;
    font-size: 0.9rem;
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
    font-size: 24px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
  }

  .floating-tag {
    width: 280px;
    padding: 2rem;
  }

  .tag-title {
    font-size: 1.125rem;
  }
}

/* Accessibility enhancements */
.btn-large:focus-visible,
.btn-tag:focus-visible,
.fab-devis-button:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hero-badge,
  .btn-secondary,
  .floating-card,
  .floating-tag {
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .hero-badge,
  .hero-title,
  .hero-description,
  .hero-actions,
  .hero-visual,
  .hero-stats {
    animation: none;
  }

  .floating-card,
  .floating-tag,
  .whatsapp-float {
    animation: none;
  }

  .bg-pattern {
    animation: none;
  }

  .gradient-text {
    animation: none;
  }

  .badge-shimmer,
  .whatsapp-pulse {
    display: none;
  }
}
