/* ============================================================
   GEOVENTURES — Animations CSS
   Keyframes, micro-interactions, hero effects
   ============================================================ */

/* ==========================================
   KEYFRAMES
   ========================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,148,63,0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(201,148,63,0); }
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes draw-line {
  from { stroke-dashoffset: 1000; }
  to   { stroke-dashoffset: 0; }
}

@keyframes bounce-chevron {
  0%, 100% { transform: translateY(0) translateX(-50%); }
  50%       { transform: translateY(6px) translateX(-50%); }
}

@keyframes geo-drift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  33%  { transform: translate(20px, -15px) rotate(120deg); }
  66%  { transform: translate(-15px, 20px) rotate(240deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes grid-pan {
  0%   { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

@keyframes ripple {
  0%   { transform: scale(0); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes progress-bar {
  from { width: 0; }
  to   { width: var(--progress-w); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================
   HERO SECTION ANIMATIONS
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--gradient-dark);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Geometric grid pattern background */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,148,63,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,148,63,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: grid-pan 20s linear infinite;
}

/* Glowing orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(201,148,63,0.12) 0%, transparent 70%);
  top: -200px;
  right: -150px;
  animation: float 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0,48,128,0.4) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}

/* Floating geometric shapes */
.hero-geo {
  position: absolute;
  pointer-events: none;
  opacity: 0.07;
}

.hero-geo-1 {
  width: 200px;
  height: 200px;
  border: 2px solid var(--gold);
  top: 15%;
  right: 8%;
  animation: geo-drift 18s ease-in-out infinite;
  transform-origin: center;
}

.hero-geo-2 {
  width: 120px;
  height: 120px;
  border: 2px solid var(--gold);
  bottom: 20%;
  right: 20%;
  border-radius: 50%;
  animation: rotateSlow 25s linear infinite;
}

.hero-geo-3 {
  width: 80px;
  height: 80px;
  border: 2px solid rgba(255,255,255,0.3);
  top: 60%;
  left: 5%;
  transform: rotate(45deg);
  animation: geo-drift 22s ease-in-out infinite reverse;
}

/* Diagonal lines decoration */
.hero-lines {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
  opacity: 0.03;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--gold) 0px,
    var(--gold) 1px,
    transparent 1px,
    transparent 30px
  );
}

/* Hero Content Animation */
.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + 40px) 0 80px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(201,148,63,0.15);
  border: 1px solid rgba(201,148,63,0.3);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInDown 0.7s ease 0.2s forwards;
}

.hero-eyebrow span {
  font-family: var(--font-sub);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-gold 2s infinite;
}

.hero-title {
  font-family: var(--font-title);
  font-size: var(--fs-hero);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-title-accent {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-slogan {
  font-family: var(--font-sub);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-slogan strong {
  color: var(--gold);
  font-weight: 400;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.68);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 2.25rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease 1s forwards;
}

.hero-badges {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  opacity: 0;
  animation: fadeIn 0.8s ease 1.3s forwards;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-badge-icon {
  width: 36px;
  height: 36px;
  background: rgba(201,148,63,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-badge-icon svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.hero-badge-text {
  font-family: var(--font-sub);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}

.hero-badge-text strong {
  display: block;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: var(--fs-sm);
}

/* Hero right panel */
.hero-visual {
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: slideInRight 0.9s ease 0.5s forwards;
}

.hero-card-floating {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
}

.hero-card-floating::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 0.8s ease 1.5s forwards;
}

.scroll-indicator span {
  font-family: var(--font-sub);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
}

.scroll-chevron {
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(201,148,63,0.6);
  border-bottom: 2px solid rgba(201,148,63,0.6);
  transform: translateX(-50%) rotate(45deg);
  position: absolute;
  bottom: 0;
  left: 50%;
  animation: bounce-chevron 1.5s ease-in-out infinite;
}

/* ==========================================
   RIPPLE EFFECT ON BUTTONS
   ========================================== */
.btn .ripple-wave {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  animation: ripple 0.6s ease-out forwards;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

/* ==========================================
   LOADING SPINNER
   ========================================== */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* ==========================================
   TIMELINE (À Propos)
   ========================================== */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-gold);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  left: -47px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--gradient-gold);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px rgba(201,148,63,0.3);
}

.timeline-year {
  font-family: var(--font-title);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.timeline-item h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.timeline-item p {
  font-size: var(--fs-sm);
  line-height: 1.7;
}

/* ==========================================
   STAT COUNTER ANIMATION
   ========================================== */
.stat-number {
  animation: countUp 0.5s ease forwards;
}

/* ==========================================
   PAGE TRANSITION
   ========================================== */
.page-enter {
  animation: fadeIn 0.4s ease;
}

/* ==========================================
   MAP MARKER ANIMATION
   ========================================== */
@keyframes marker-pulse {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

.marker-ring {
  animation: marker-pulse 2s ease-out infinite;
}
