/* ==========================================================================
   HERO INTERACTION : ESSUYER L'ÉCRAN
   Spécifications techniques de M4 Services inc.
   ========================================================================== */

.hero-section {
  position: relative;
  height: 100svh;
  min-height: 620px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-bg);
  /* Fond géométrique subtil pour enrichir la couche propre */
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(253, 93, 0, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(0, 0, 0, 0.02) 0%, transparent 40%);
}

/* Couche propre (contenu DOM accessible à tout moment) */
.hero-clean-layer {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-top: calc(var(--header-height) + 1.5rem);
  padding-bottom: 3rem;
  pointer-events: auto;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.15rem;
  border-radius: var(--radius-pill);
  background-color: rgba(253, 93, 0, 0.1);
  border: 1px solid rgba(253, 93, 0, 0.3);
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(253, 93, 0, 0.12);
}

.hero-title {
  margin-bottom: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
}

.hero-title .text-accent {
  color: var(--color-accent);
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 700px;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-highlights {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  width: 100%;
  max-width: 740px;
}

.hero-highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.hero-highlight-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Couche de saleté : CANVAS interactif */
.hero-wipe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
  z-index: 25;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  will-change: opacity;
}

/* État nettoyé : opacité 0 et libération des pointer-events */
.hero-wipe-canvas.is-cleaned {
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
  touch-action: auto !important;
}

/* Pastille de progression (Propre à X %) */
.clean-status-badge {
  position: absolute;
  bottom: 2rem;
  left: clamp(1.25rem, 4vw, 3rem);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.clean-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.clean-status-badge.is-hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

/* Bouton « Tout nettoyer » accessible */
.clean-bypass-btn {
  position: absolute;
  bottom: 2rem;
  right: clamp(1.25rem, 4vw, 3rem);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.clean-bypass-btn:hover {
  color: var(--color-text);
  border-color: var(--color-accent);
  background-color: var(--color-card);
  transform: translateY(-2px);
}

.clean-bypass-btn.is-hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

/* Instruction flottante pour mobile / écran tactile */
.clean-hint {
  position: absolute;
  top: calc(var(--header-height) + 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.8rem;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.clean-hint.is-hidden {
  opacity: 0;
}

/* Accessibilité : Mode sans animations (prefers-reduced-motion) */
@media (prefers-reduced-motion: reduce) {
  .hero-wipe-canvas {
    display: none !important;
  }
  .clean-status-badge,
  .clean-bypass-btn,
  .clean-hint {
    display: none !important;
  }
}

/* Responsive mobile */
@media (max-width: 640px) {
  .hero-section {
    min-height: 580px;
  }
  
  .clean-status-badge {
    bottom: 1.25rem;
    left: 1rem;
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
  }
  
  .clean-bypass-btn {
    bottom: 1.25rem;
    right: 1rem;
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
  }
}
