/**
 * Braidabelle Studio — Animations CSS complémentaires
 */

/* ============================================================
   ANIMATIONS D'ENTRÉE
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  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 goldPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,39,0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(201,162,39,0); }
}

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

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

/* ============================================================
   BOUTON MAGNÉTIQUE
   ============================================================ */
.btn {
  will-change: transform;
}

.btn--primary:active {
  transform: scale(0.97) translateY(0) !important;
}

/* ============================================================
   SHIMMER (CHARGEMENT SKELETON)
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.05) 25%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* ============================================================
   HERO VISUAL FLOAT
   ============================================================ */
.hero__badge {
  animation: float 4s ease-in-out infinite;
}

.whatsapp-float:hover {
  animation: none;
}

/* ============================================================
   TEXTE GRADIENT OR
   ============================================================ */
.text-gradient-gold {
  background: linear-gradient(135deg, #E2BB4A 0%, #C9A227 50%, #A8841C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   LIGNE DÉCORATIVE OR
   ============================================================ */
.gold-line {
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, var(--color-gold), var(--color-gold-dark));
  margin: 1rem 0;
}

.gold-line--center { margin-left: auto; margin-right: auto; }

/* ============================================================
   CARD HOVER LIFT
   ============================================================ */
.service-card,
.blog-card,
.testimonial-card,
.value-card {
  will-change: transform;
}

/* ============================================================
   IMAGE REVEAL
   ============================================================ */
.img-reveal {
  overflow: hidden;
  position: relative;
}

.img-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-gold);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.img-reveal.is-revealed::after {
  transform: scaleX(0);
  transform-origin: right;
}

/* ============================================================
   BADGE PULSE
   ============================================================ */
.pulse-gold {
  animation: goldPulse 2s infinite;
}

/* ============================================================
   TAG ANIMÉ
   ============================================================ */
.service-card__tag {
  animation: scaleIn 0.4s ease both;
}

/* ============================================================
   LOADER SPINNER
   ============================================================ */
.loader-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(201,162,39,0.2);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: rotateSlow 0.7s linear infinite;
  margin: 2rem auto;
}

/* ============================================================
   SECTION TRANSITIONS
   ============================================================ */
.section {
  transition: background-color 0.5s ease;
}

/* ============================================================
   FOCUS VISIBLE (ACCESSIBILITÉ)
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.pagination__item a,
.pagination__item span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition-fast);
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}

.pagination__item a:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.pagination__item .current {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-black);
}

/* ============================================================
   NEWSLETTER FORM
   ============================================================ */
.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-gold) !important;
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .hero, .cta-booking, .instagram-section { display: none !important; }
  body { font-size: 12pt; color: black; background: white; }
  a { color: inherit; text-decoration: underline; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__badge,
  .whatsapp-float,
  .hero__scroll-line {
    animation: none !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
