/* ============================================ */
/* Tadam - EFFETS SUBTILS                      */
/* Hover discrets, transitions douces          */
/* ============================================ */

/* === Variables === */
:root {
  --fx-duration-fast: 0.15s;
  --fx-duration-normal: 0.25s;
  --fx-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Header Clean - Epuré === */
.header-clean {
  background: white;
  border-bottom: 1px solid #eee;
}

.header-clean .main-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.header-clean .main-nav a:not(.btn) {
  color: #1a1a2e;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--fx-duration-normal) var(--fx-easing);
}

.header-clean .main-nav a:not(.btn):hover {
  color: #D4AF37;
}

.header-clean .main-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary, #D4AF37), var(--accent, #FF8C42));
  transition: width var(--fx-duration-normal) var(--fx-easing);
  transform: translateX(-50%);
}

.header-clean .main-nav a:not(.btn):hover::after {
  width: 80%;
}

.header-clean .user-menu .btn-primary {
  background: linear-gradient(135deg, #D4AF37, #B8941F);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: transform var(--fx-duration-fast) var(--fx-easing),
              box-shadow var(--fx-duration-fast) var(--fx-easing);
}

.header-clean .user-menu .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* === Effets Hover Subtils pour Cartes === */
.card-solution,
.card-problem,
.entreprise-benefit,
.faq-item-lovable,
.recap-box {
  transition: transform var(--fx-duration-normal) var(--fx-easing),
              box-shadow var(--fx-duration-normal) var(--fx-easing);
}

.card-solution:hover,
.card-problem:hover,
.entreprise-benefit:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* === Effets Hover Boutons === */
.btn {
  transition: transform var(--fx-duration-fast) var(--fx-easing),
              box-shadow var(--fx-duration-fast) var(--fx-easing),
              background var(--fx-duration-fast) var(--fx-easing);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary:hover {
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

/* === Focus States pour Accessibilité === */
.btn:focus,
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.4);
}

.btn-primary:focus,
.btn-primary:focus-visible {
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.5), 0 4px 15px rgba(212, 175, 55, 0.25);
}

.btn-secondary:focus,
.btn-secondary:focus-visible {
  box-shadow: 0 0 0 3px rgba(100, 100, 100, 0.3);
}

.btn-danger:focus,
.btn-danger:focus-visible {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.4);
}

.btn-success:focus,
.btn-success:focus-visible {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.4);
}

.btn-outline:focus,
.btn-outline:focus-visible {
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

/* Focus pour inputs */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Skip Link pour navigation clavier */
.skip-link {
  position: fixed;
  top: -200px; /* Complètement en dehors de l'écran */
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a; /* Fond noir pour contraste 21:1 avec blanc */
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.3s ease, opacity 0.2s ease;
  border: 2px solid #D4AF37; /* Bordure or pour garder l'identité visuelle */
  opacity: 0; /* Invisible par défaut */
  pointer-events: none; /* Pas d'interaction si invisible */
}

.skip-link:focus {
  top: 16px; /* Apparaît en haut avec marge */
  opacity: 1; /* Visible */
  pointer-events: auto; /* Interaction réactivée */
}

/* === Focus pour éléments interactifs (cartes cliquables) === */
[role="button"]:focus,
[role="button"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.4);
}

.ecom-mode-card:focus,
.ecom-mode-card:focus-visible,
.ecom-duration-card:focus,
.ecom-duration-card:focus-visible,
.ecom-pickup-mode-card:focus,
.ecom-pickup-mode-card:focus-visible,
.ecom-consigne-card:focus,
.ecom-consigne-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.5);
  border-color: #D4AF37;
}

/* === Hover sur les icônes === */
.icon-box {
  transition: transform var(--fx-duration-normal) var(--fx-easing),
              background var(--fx-duration-normal) var(--fx-easing);
}

.card-solution:hover .icon-box,
.card-problem:hover .icon-box {
  transform: scale(1.05);
}

/* === Recap Box - Layout propre === */
/* Les styles principaux sont dans style-site-premium.css */
/* Ce fichier ajoute uniquement les effets hover */

.recap-box:hover .recap-image img {
  transform: scale(1.05);
}

/* === FAQ Items === */
.faq-item-lovable {
  transition: border-color var(--fx-duration-normal) var(--fx-easing);
}

.faq-item-lovable:hover {
  border-color: rgba(212, 175, 55, 0.3);
}

/* === Links avec soulignement subtil === */
.footer-section a {
  position: relative;
  transition: color var(--fx-duration-fast) var(--fx-easing);
}

.footer-section a:hover {
  color: #D4AF37;
}

/* === Parallax Sections (Reveal Effect - Mobile Friendly) === */
/* Approche moderne sans background-attachment: fixed (problématique sur iOS) */
.parallax-section {
  position: relative;
  min-height: 60vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image de fond avec effet de zoom subtil au scroll */
.parallax-section .parallax-bg {
  position: absolute;
  inset: -10%; /* Débordement pour l'effet de mouvement */
  width: 120%;
  height: 120%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Overlay sombre pour lisibilité */
.parallax-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
}

/* Images par section */
.parallax-section-1 .parallax-bg {
  background-image: url('../images/rise-2200x955px.jpg');
}

.parallax-section-2 .parallax-bg {
  background-image: url('../images/canyon-cityliteon-2-scaled.jpg');
}

.parallax-section-3 .parallax-bg {
  background-image: url('../images/sunn-urb-rely-photo.jpg');
}

.parallax-section-4 .parallax-bg {
  background-image: url('../images/Velo-urbain-Kalkhoff.jpeg');
}

/* Contenu parallax - avec animation d'entrée */
.parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 3rem 2.5rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation quand visible */
.parallax-section.in-view .parallax-content {
  transform: translateY(0);
  opacity: 1;
}

/* Animation de l'image de fond quand visible */
.parallax-section.in-view .parallax-bg {
  animation: parallaxZoom 20s ease-out forwards;
}

@keyframes parallaxZoom {
  0% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.parallax-content h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.parallax-content h2 .gradient-text {
  background: linear-gradient(135deg, #D4AF37, #FF8C42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.parallax-content p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: white;
  margin-bottom: 2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.parallax-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.parallax-stat {
  text-align: center;
}

.parallax-stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #D4AF37, #FF8C42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.parallax-stat-label {
  display: block;
  font-size: 0.85rem;
  color: white;
  margin-top: 0.25rem;
}

/* === Media Queries === */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Mobile nav is handled by style-layout.css with position:fixed + right:-100%
   DO NOT use display:none here as it breaks the slide-in animation */

@media (max-width: 768px) {
  .parallax-section {
    min-height: 50vh;
  }

  .parallax-content {
    margin: 1rem;
    padding: 2rem 1.5rem;
    max-width: calc(100% - 2rem);
  }

  .parallax-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .parallax-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .parallax-stats {
    gap: 1.5rem;
  }

  .parallax-stat-value {
    font-size: 1.75rem;
  }

  .parallax-stat-label {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .parallax-section {
    min-height: 45vh;
  }

  .parallax-content {
    padding: 1.5rem 1rem;
  }

  .parallax-content h2 {
    font-size: 1.25rem;
  }

  .parallax-stats {
    flex-direction: column;
    gap: 1rem;
  }
}
