/* == SCROLLYTELLING EMA FUITES == */

/* Fond dynamique */
body {
  transition: background-color 0.8s ease;
}

/* Hero parallaxe */
.hero-scroll {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--darker-bg, #040f1c);
}

.parallax-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.layer-bg {
  background: linear-gradient(180deg, #040f1c 0%, #041520 40%, #071a2e 100%);
  z-index: 0;
}

.layer-canvas { z-index: 1; pointer-events: none; }
.layer-bubbles { z-index: 2; pointer-events: none; }
.layer-sonar { z-index: 3; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.layer-drops { z-index: 4; pointer-events: none; }
.layer-content { z-index: 5; position: relative; padding: 0 5%; max-width: 800px; margin: 0 auto; }

/* Bulles flottantes */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,
    rgba(0, 184, 148, 0.25),
    rgba(0, 184, 148, 0.05) 60%,
    transparent 100%
  );
  border: 1px solid rgba(0, 184, 148, 0.15);
  animation: bubbleFloat var(--duration, 8s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50%       { transform: translateY(-30px) scale(1.05); opacity: 1; }
}

/* Ondes sonar agrandies */
.sonar-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--accent, #00b894);
  transform: scale(1);
  opacity: 0;
  animation: sonarExpand 3s ease-out infinite;
}
.ring-1 { width: 80px;  height: 80px;  animation-delay: 0s; }
.ring-2 { width: 80px;  height: 80px;  animation-delay: 0.8s; }
.ring-3 { width: 80px;  height: 80px;  animation-delay: 1.6s; }
.ring-4 { width: 80px;  height: 80px;  animation-delay: 2.4s; }
@keyframes sonarExpand {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(6);   opacity: 0; }
}

/* Gouttelettes dérivantes */
.drop {
  position: absolute;
  width: 6px;
  height: 10px;
  background: var(--accent, #00b894);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity: 0.5;
  animation: dropDrift var(--duration, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  filter: blur(0.5px);
}
@keyframes dropDrift {
  0%   { transform: translateY(0)     rotate(0deg);   opacity: 0.3; }
  50%  { transform: translateY(-20px) rotate(180deg); opacity: 0.7; }
  100% { transform: translateY(0)     rotate(360deg); opacity: 0.3; }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  opacity: 0.6;
  animation: indicatorFade 2s ease-in-out infinite;
}
.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-muted, #8db8d8);
  text-transform: uppercase;
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--accent, #00b894);
  border-bottom: 2px solid var(--accent, #00b894);
  transform: rotate(45deg);
  animation: arrowBounce 1.5s ease-in-out infinite;
}
@keyframes arrowBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(5px); }
}
@keyframes indicatorFade {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.8; }
}

/* == Section Journey — sticky scrollytelling == */
.scrollytelling-journey {
  position: relative;
  min-height: 300vh;
  background: var(--darker-bg, #040f1c);
}

.journey-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.journey-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Pipe SVG animé */
.pipe-svg {
  width: min(500px, 90vw);
  height: min(500px, 90vw);
  opacity: 0.15;
  transition: opacity 0.5s;
}

/* Cercle thermique */
.thermal-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 100, 0, 0.6) 0%,
    rgba(0, 184, 148, 0.3) 40%,
    transparent 70%
  );
  transform: scale(0);
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.5s;
  opacity: 0;
}
.thermal-circle.visible {
  transform: scale(1);
  opacity: 1;
}

/* Textes des étapes journey */
.journey-steps {
  position: relative;
  z-index: 10;
}

.journey-step {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 10%;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.journey-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.journey-step__content {
  max-width: 500px;
}

.journey-step__number {
  font-size: 6rem;
  font-weight: 800;
  color: var(--accent, #00b894);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: -1rem;
  font-family: var(--font-display, 'font-heading', sans-serif);
}

.journey-step__title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-main, #f0f8ff);
  margin-bottom: 1rem;
  font-family: var(--font-heading, 'font-heading', sans-serif);
}

.journey-step__text {
  color: var(--text-muted, #8db8d8);
  font-size: 1.05rem;
  line-height: 1.7;
}

.journey-step__tag {
  display: inline-block;
  margin-top: 1rem;
  padding: 6px 14px;
  border: 1px solid var(--accent, #00b894);
  border-radius: 20px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent, #00b894);
  text-transform: uppercase;
}

/* Split words animation */
.split-words .word {
  display: inline-block;
  overflow: hidden;
}
.split-words .word-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
}
.split-words.is-visible .word-inner {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .journey-step { padding: 0 6%; }
  .journey-step__number { font-size: 4rem; }
  .scrollytelling-journey { min-height: 400vh; }
  .sonar-ring { width: 50px; height: 50px; }
}
