/* EUROCOPY - Éléments de défilement */

/* Bouton de retour en haut */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #182f27, #33cccc);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(9, 33, 92, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: linear-gradient(135deg, #33cccc, #182f27);
  box-shadow: 0 6px 20px rgba(9, 33, 92, 0.4);
}

.back-to-top:active {
  transform: scale(0.95);
}

.arrow-up {
  width: 12px;
  height: 12px;
  border-left: 3px solid white;
  border-top: 3px solid white;
  transform: rotate(45deg);
  margin-top: 4px;
}

/* Barre de progression de défilement */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(to right, #09215c, #33cccc);
  z-index: 1000;
  transition: width 0.2s;
}

/* Animation d'indicateur de défilement */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.scroll-indicator.hidden {
  opacity: 0;
}

.scroll-indicator-text {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  color: #09215c;
  font-weight: 700;
}

.scroll-indicator-icon {
  width: 30px;
  height: 50px;
  border: 2px solid #09215c;
  border-radius: 15px;
  position: relative;
}

.scroll-indicator-icon:before {
  content: '';
  width: 6px;
  height: 6px;
  background: #09215c;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollIndicator 2s infinite;
}

@keyframes scrollIndicator {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0;
  }
}

/* Effet de vague pour les boutons */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: rippleEffect 0.8s linear;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Indicateur de section active */
.section-indicator {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
}

.section-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(9, 33, 92, 0.3);
  margin: 10px 0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.section-indicator-dot.active {
  width: 14px;
  height: 14px;
  background: #09215c;
}

.section-indicator-dot:hover {
  background: #33cccc;
}

/* Effet de survol sur les sections au défilement */
.section-highlight {
  transition: transform 0.5s ease, box-shadow 0.5s ease, opacity 0.5s ease;
}

.section-highlight.active {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 5;
  position: relative;
}

/* Effet de parallaxe sur les sections */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: translateY(0);
  transition: transform 0.5s ease-out;
  z-index: -1;
}

/* Animation du curseur personnalisé */
.mouse-follower {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(9, 33, 92, 0.2);
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  backdrop-filter: invert(0.5);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.mouse-follower.interactive {
  width: 50px;
  height: 50px;
  background-color: rgba(51, 204, 204, 0.2);
}

/* Effet de dévoilement au défilement */
.reveal-container {
  position: relative;
  overflow: hidden;
}

.reveal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #09215c;
  transform: scaleX(1);
  transform-origin: right;
  z-index: 1;
}

/* Effet visuel au défilement des sections */
.section-visible {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}

.section-visible.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animation de soulignement pour les liens de navigation */
.nav-link-hover {
  position: relative;
  text-decoration: none;
}

.nav-link-hover:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: #33cccc;
  transition: width 0.3s ease;
}

.nav-link-hover:hover:after {
  width: 100%;
}

/* Effet de mise en évidence pour les chiffres */
.highlight-number {
  position: relative;
  display: inline-block;
}

.highlight-number:before {
  content: '';
  position: absolute;
  width: 100%;
  height: 30%;
  background-color: rgb(0 0 0 / 7%);
  bottom: 0;
  left: 0;
  z-index: -1;
  transition: height 0.3s ease;
}

.highlight-number:hover:before {
  height: 100%;
}

/* Effet de transition entre les sections */
.section-transition {
  position: relative;
}

.section-transition:after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, transparent, white);
  z-index: 1;
  pointer-events: none;
  display:none
  
}

/* Effet de défilement spécial pour les témoignages */
.testimonial-scroll {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 15px;
  scrollbar-width: thin;
  scrollbar-color: #33cccc #f0f0f0;
}

.testimonial-scroll::-webkit-scrollbar {
  width: 8px;
}

.testimonial-scroll::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

.testimonial-scroll::-webkit-scrollbar-thumb {
  background-color: #33cccc;
  border-radius: 4px;
}

/* Animation d'entrée pour le chargement de page */
@keyframes pageLoadAnimation {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-load-animation {
  animation: pageLoadAnimation 1s ease forwards;
}

/* Animation de défilement en douceur */
html {
  scroll-behavior: smooth;
}

/* Media Queries */
@media (max-width: 768px) {
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }
  
  .arrow-up {
    width: 10px;
    height: 10px;
  }
  
  .section-indicator {
    display: none;
  }
  
  .scroll-indicator {
    bottom: 20px;
  }
  
  .scroll-indicator-icon {
    width: 25px;
    height: 40px;
  }
  
  .mouse-follower {
    display: none;
  }
}
