/* EUROCOPY - Effets CSS avancés et animations */

/* ===== EFFETS DE PARTICULES ===== */
.particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  inset: 0;
  position: fixed;
  z-index: -1;
  opacity: 0.7;
}

/* ===== EFFETS DE TEXTE AVANCÉS ===== */

/* Effet de texte clignotant */
.text-blink {
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Effet de texte machine à écrire */
.text-typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--accent-color);
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
  display: inline-block;
  max-width: fit-content;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--accent-color) }
}

/* Effet de texte qui se dessine */
.text-draw {
  color: transparent;
  -webkit-text-stroke: 1px var(--primary-color);
  position: relative;
}

.text-draw:after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  color: var(--primary-color);
  overflow: hidden;
  animation: text-draw 4s ease-in-out forwards;
}

@keyframes text-draw {
  0% { width: 0; }
  100% { width: 100%; }
}

/* ===== BOUTONS AVANCÉS ===== */

/* Bouton avec effet d'onde */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.btn-ripple:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  20% {
    transform: scale(25, 25);
    opacity: 0.5;
  }
  100% {
    transform: scale(50, 50);
    opacity: 0;
  }
}

/* Bouton avec effet de lueur */
.btn-glow {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-glow:before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
  transform: rotate(30deg);
  z-index: -1;
  animation: btn-glow 3s linear infinite;
}

@keyframes btn-glow {
  0% { transform: rotate(30deg) translateX(-100%); }
  100% { transform: rotate(30deg) translateX(100%); }
}

/* ===== EFFETS DE CARTE 3D ===== */
.card-3d {
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card-3d:hover {
  transform: rotateY(10deg) rotateX(10deg);
}

/* ===== EFFETS DE SURVOL D'IMAGE ===== */
.img-hover-zoom {
  overflow: hidden;
}

.img-hover-zoom img {
  transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
  transform: scale(1.1);
}

/* Effet de révélation d'image */
.img-reveal {
  position: relative;
  overflow: hidden;
}

.img-reveal:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  transform: translateX(-100%);
  animation: img-reveal 1.5s forwards 0.5s;
  z-index: 1;
}

.img-reveal:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--secondary-color);
  transform: translateX(-100%);
  animation: img-reveal 1.5s forwards;
  z-index: 2;
}

.img-reveal img {
  opacity: 0;
  animation: fade-in 0.5s forwards 1.5s;
}

@keyframes img-reveal {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* ===== EFFETS DE CHARGEMENT ===== */
.loading-dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-color);
  margin: 0 5px;
  animation: loading-dots 1.5s infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loading-dots {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ===== EFFETS DE BORDURE ===== */
.border-gradient {
  position: relative;
  border-radius: 12px;
  padding: 5px;
}

.border-gradient:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: border-rotation 3s linear infinite;
}

@keyframes border-rotation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== EFFETS DE SCROLL ===== */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid var(--primary-color);
  border-radius: 15px;
}

.scroll-down:before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: scroll-down 2s infinite;
}

@keyframes scroll-down {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(20px); opacity: 0; }
}

/* ===== EFFETS DE FOCUS ===== */
.focus-spotlight {
  position: relative;
  overflow: hidden;
}

.focus-spotlight:after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.7));
  opacity: 0;
  transition: opacity 0.5s ease;
}

.focus-spotlight:hover:after {
  opacity: 1;
}

/* ===== CURSEUR PERSONNALISÉ ===== */
.custom-cursor {
/*  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-color);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.3s ease;*/
}

.custom-cursor.enlarge {
/*  transform: translate(-50%, -50%) scale(2);*/
}

/* ===== DÉFILEMENT PARALLAXE ===== */
.parallax-section {
  position: relative;
  overflow: hidden;
  height: 500px;
}

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

/* ===== EFFET DE SUPERPOSITION ===== */
.overlay-effect {
  position: relative;
  overflow: hidden;
}

.overlay-effect:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(9, 33, 92, 0), rgba(9, 33, 92, 0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.overlay-effect:hover:before {
  opacity: 1;
}

.overlay-effect .overlay-content {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  padding: 20px;
  color: white;
  transition: bottom 0.3s ease;
  z-index: 2;
}

.overlay-effect:hover .overlay-content {
  bottom: 0;
}

/* ===== EFFET DE NÉON ===== */
.neon-text {
  color: #fff;
  text-shadow: 0 0 5px var(--primary-color),
               0 0 10px var(--primary-color),
               0 0 20px var(--primary-color),
               0 0 40px var(--primary-color);
  animation: neon-pulse 1.5s infinite alternate;
}

@keyframes neon-pulse {
  0% { text-shadow: 0 0 5px var(--primary-color),
                   0 0 10px var(--primary-color),
                   0 0 20px var(--primary-color),
                   0 0 40px var(--primary-color); }
  100% { text-shadow: 0 0 10px var(--primary-color),
                     0 0 20px var(--primary-color),
                     0 0 30px var(--primary-color),
                     0 0 60px var(--primary-color); }
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
  .parallax-section {
    height: 300px;
  }
  
  .text-typewriter {
    white-space: normal;
    border-right: none;
    animation: none;
  }
  
  .border-gradient:before {
    animation: none;
  }
}
