/* ============================================================
   INTERTOUR — Animations & Utilitaires CSS
   ============================================================ */

/* --- Icones SVG (remplacement des emojis) --- */
.icon { display: inline-flex; align-items: center; justify-content: center; }
svg.icon-svg {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.stat-item__icon svg.icon-svg,
.info-card__icon svg.icon-svg { width: 1.5em; height: 1.5em; }
.particle svg.icon-svg { width: 1.4em; height: 1.4em; }
.navbar__link svg.icon-svg,
.navbar__mobile-link svg.icon-svg,
.navbar__dropdown-link svg.icon-svg,
.navbar__phone svg.icon-svg,
.navbar__mobile-tel svg.icon-svg,
.navbar__mobile-sub svg.icon-svg,
.btn svg.icon-svg          { width: 1.1em; height: 1.1em; }

/* --- Animations 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 fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  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 float {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-14px); }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(250,160,2,0.5); }
  50%      { box-shadow: 0 0 0 16px rgba(250,160,2,0); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes float-particle {
  0%,100% { transform: translateY(0) rotate(0deg); }
  33%     { transform: translateY(-20px) rotate(5deg); }
  66%     { transform: translateY(10px) rotate(-5deg); }
}
@keyframes counter-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slide-in-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes plane-fly {
  0%   { transform: translateX(-60px) translateY(20px); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(120vw) translateY(-60px); opacity: 0; }
}

/* --- Classes d'Animation --- */
.animate-fade-up    { animation: fadeInUp 0.7s ease forwards; }
.animate-fade-down  { animation: fadeInDown 0.7s ease forwards; }
.animate-fade-left  { animation: fadeInLeft 0.7s ease forwards; }
.animate-fade-right { animation: fadeInRight 0.7s ease forwards; }
.animate-scale-in   { animation: scaleIn 0.5s ease forwards; }
.animate-float      { animation: float 4s ease-in-out infinite; }
.animate-pulse-gold { animation: pulse-gold 2s ease-in-out infinite; }

/* Délais */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* --- Scroll Reveal (class toggle par JS) --- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal--left  { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
.reveal--left.visible, .reveal--right.visible { transform: translateX(0); }
.reveal--scale { transform: scale(0.88); }
.reveal--scale.visible { transform: scale(1); }

/* --- Glassmorphism --- */
.glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
}
.glass--dark {
  background: rgba(10,42,28,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
}
.glass--gold {
  background: rgba(250,160,2,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(250,160,2,0.25);
}

/* --- Tag Promo --- */
.promo-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gradient-gold);
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xs);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-gold);
}

/* --- Étoiles --- */
.stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--color-primary);
  font-size: var(--font-size-sm);
}

/* --- Séparateur décoratif doré --- */
.gold-line { width: 60px; height: 4px; background: var(--gradient-gold); border-radius: var(--radius-full); margin: var(--space-md) auto; }
.gold-line--left { margin-left: 0; }

/* --- Icônes SVG --- */
.icon-svg { width: 1.2em; height: 1.2em; display: inline-block; vertical-align: middle; }

/* --- Divider ❯ --- */
.divider { display: flex; align-items: center; gap: var(--space-md); margin: var(--space-lg) 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--color-light-gray); }
.divider span { font-size: var(--font-size-sm); color: var(--color-mid-gray); white-space: nowrap; }

/* --- Page Loader --- */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--gradient-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader__content { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

.loader__launchpad { position: relative; width: 300px; height: 170px; }
.loader__launchpad::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 330px; height: 330px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(250,160,2,0.14) 0%, transparent 65%);
  animation: glow-pulse 1.6s ease-in-out infinite;
}
@keyframes glow-pulse { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

.loader__logo {
  position: absolute;
  left: 75px; top: 10px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 0 0 6px rgba(250,160,2,0.14), 0 0 60px rgba(250,160,2,0.28);
  animation: badge-float 1.9s ease-in-out infinite;
}
.loader__logo img { width: 132px; height: 132px; object-fit: contain; border-radius: 50%; }
@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.loader__runway {
  position: absolute;
  left: 50%; bottom: 2px;
  transform: translateX(-50%);
  width: 220px; height: 2px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.35), var(--color-primary), transparent);
  border-radius: var(--radius-full);
}

.loader__plane {
  position: absolute;
  left: 0; top: 118px;
  width: 46px; height: 46px;
  z-index: 2;
  animation: plane-takeoff 1.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.loader__plane svg { width: 100%; height: 100%; filter: drop-shadow(0 0 10px rgba(250,160,2,0.7)); }
@keyframes plane-takeoff {
  0%   { left: -34px;  top: 118px; transform: scale(0.55) rotate(0deg);    opacity: 0; }
  12%  {                                                                    opacity: 1; }
  35%  { left: 55px;   top: 96px;  transform: scale(1) rotate(-5deg); }
  60%  { left: 150px;  top: 48px;  transform: scale(1.08) rotate(-16deg); }
  85%  { left: 250px;  top: -8px;  transform: scale(1) rotate(-22deg);    opacity: 1; }
  100% { left: 336px;  top: -54px; transform: scale(0.9) rotate(-26deg);   opacity: 0; }
}

.loader__text {
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  animation: fade-blink 1.5s ease-in-out infinite;
}
.loader__text span { color: var(--color-primary); }
@keyframes fade-blink { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

.loader__bar { width: 240px; height: 3px; background: rgba(255,255,255,0.12); border-radius: var(--radius-full); overflow: hidden; }
.loader__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), #FAA002);
  animation: bar-fill 1.9s ease-in-out forwards;
}
@keyframes bar-fill {
  0%   { width: 0%; }
  70%  { width: 72%; }
  100% { width: 100%; }
}

/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  box-shadow: var(--shadow-lg);
  animation: slide-in-up 0.4s ease;
  z-index: var(--z-toast);
  max-width: 340px;
}
.toast--success { background: var(--color-success); color: #fff; }
.toast--error   { background: var(--color-error); color: #fff; }

/* --- Mobile Bottom Nav --- */
.mobile-bottom-nav { display: none; }

@media (max-width: 768px) {
  body { padding-bottom: 70px !important; }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 10000;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
  }
  .mobile-bottom-nav::-webkit-scrollbar { display: none; }
  .mobile-bottom-nav { -ms-overflow-style: none; scrollbar-width: none; }

  .bottom-nav-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s ease;
  }
  .bottom-nav-item:hover, .bottom-nav-item.active { color: var(--color-primary); font-weight: 700; }
  .bottom-nav-item svg { width: 22px; height: 22px; margin-bottom: 4px; stroke-width: 2; }
}