/* ========================================================================
   AAA Modern Design System
   Soft animations, reveal-on-scroll, gradient accents, floating blobs.
   Ces utilitaires s'appliquent à toutes les pages via site-shell.js.
   ======================================================================== */

/* ============ REVEAL ON SCROLL ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1),
              transform .7s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .05s; }
.reveal-delay-2 { transition-delay: .10s; }
.reveal-delay-3 { transition-delay: .15s; }
.reveal-delay-4 { transition-delay: .20s; }
.reveal-delay-5 { transition-delay: .25s; }
.reveal-delay-6 { transition-delay: .30s; }
.reveal-delay-7 { transition-delay: .35s; }
.reveal-delay-8 { transition-delay: .40s; }

/* Reveal variants */
.reveal-left { transform: translateX(-28px); }
.reveal-left.is-visible { transform: translateX(0); }
.reveal-right { transform: translateX(28px); }
.reveal-right.is-visible { transform: translateX(0); }
.reveal-scale { transform: scale(.95); }
.reveal-scale.is-visible { transform: scale(1); }

/* ============ KEYFRAMES ============ */
@keyframes aaa-float {
  0%, 100% { transform: translateY(0) translateX(0); }
  33%      { transform: translateY(-22px) translateX(12px); }
  66%      { transform: translateY(14px) translateX(-10px); }
}
@keyframes aaa-pulse-soft {
  0%, 100% { opacity: 1;    transform: scale(1); }
  50%      { opacity: .92;  transform: scale(1.04); }
}
@keyframes aaa-shimmer {
  0%, 100% { opacity: .5; }
  50%      { opacity: 1; }
}
@keyframes aaa-gradient-x {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes aaa-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.aaa-float       { animation: aaa-float 14s ease-in-out infinite; }
.aaa-float-slow  { animation: aaa-float 18s ease-in-out infinite reverse; }
.aaa-float-fast  { animation: aaa-float 10s ease-in-out infinite; }
.aaa-pulse-soft  { animation: aaa-pulse-soft 3.5s ease-in-out infinite; }
.aaa-shimmer     { animation: aaa-shimmer 2.5s ease-in-out infinite; }
.aaa-bob         { animation: aaa-bob 4s ease-in-out infinite; }

/* ============ SOFT CARDS ============ */
.soft-card {
  transition: transform .45s cubic-bezier(.16, 1, .3, 1),
              box-shadow .45s cubic-bezier(.16, 1, .3, 1),
              border-color .3s;
  will-change: transform;
}
.soft-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 24px 48px -16px rgba(30, 122, 154, .22),
    0 8px 16px -8px rgba(30, 122, 154, .12);
  border-color: rgba(30, 122, 154, .18);
}
.soft-card-amber:hover {
  box-shadow:
    0 24px 48px -16px rgba(245, 158, 11, .22),
    0 8px 16px -8px rgba(245, 158, 11, .12);
  border-color: rgba(245, 158, 11, .25);
}

/* ============ GRADIENT TEXT (animated gold) ============ */
.gradient-text {
  background: linear-gradient(135deg, #f59e0b 0%, #fcd34d 50%, #f59e0b 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: aaa-gradient-x 8s ease infinite;
}
.gradient-text-teal {
  background: linear-gradient(135deg, #1e7a9a 0%, #3ba5c9 50%, #1e7a9a 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: aaa-gradient-x 8s ease infinite;
}

/* ============ BACKGROUND BLOBS ============ */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  pointer-events: none;
}
.blob-amber   { background: #f59e0b; }
.blob-teal    { background: #3ba5c9; }
.blob-yellow  { background: #fcd34d; }
.blob-rose    { background: #fb7185; }

/* ============ GLASS BADGE ============ */
.glass-badge {
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .22);
}
.glass-card {
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: background-color .35s, border-color .35s, transform .45s cubic-bezier(.16,1,.3,1);
}
.glass-card:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .25);
  transform: translateY(-4px);
}

/* ============ IMAGE GALLERY HOVER ============ */
.gallery-item {
  overflow: hidden;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img { transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
.gallery-item:hover img { transform: scale(1.08); }

/* ============ BUTTON SHIMMER ============ */
.btn-shimmer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-shimmer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    transparent 30%,
    rgba(255, 255, 255, .35) 50%,
    transparent 70%);
  transform: translateX(-100%);
  transition: transform .9s ease;
  pointer-events: none;
  z-index: -1;
}
.btn-shimmer:hover::before { transform: translateX(100%); }

/* ============ ICON WRAP MICRO-INTERACTION ============ */
.icon-wrap {
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1),
              background-color .3s,
              box-shadow .3s;
}
.soft-card:hover .icon-wrap,
.group:hover .icon-wrap { transform: scale(1.08) rotate(-3deg); }

/* ============ CHECK CHIP / ROW STAGGER ============ */
.check-row {
  transition: transform .35s ease, background-color .25s, border-color .25s;
}
.check-row:hover { transform: translateX(4px); }

/* ============ QUOTE GLOW ============ */
.quote-glow {
  box-shadow: 0 30px 80px -30px rgba(30, 122, 154, .25);
}

/* ============ DOTTED PATTERN OVERLAY ============ */
.dotted-overlay {
  background-image: radial-gradient(circle at 1px 1px, currentColor 1px, transparent 0);
  background-size: 32px 32px;
}

/* ============ TIGHTER HEADINGS ============ */
.heading-tight  { letter-spacing: -.02em; line-height: 1.05; }
.heading-snug   { letter-spacing: -.01em; line-height: 1.15; }

/* ============ FOCUS STATES (accessibility) ============ */
.reveal a:focus-visible,
.soft-card a:focus-visible,
button.btn-shimmer:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 3px;
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .blob,
  .aaa-float,
  .aaa-float-slow,
  .aaa-float-fast,
  .aaa-pulse-soft,
  .aaa-shimmer,
  .aaa-bob,
  .gradient-text,
  .gradient-text-teal {
    animation: none !important;
  }
  .gradient-text,
  .gradient-text-teal {
    background-position: 0% 50% !important;
  }
  .soft-card:hover,
  .glass-card:hover,
  .gallery-item:hover,
  .gallery-item:hover img,
  .check-row:hover,
  .soft-card:hover .icon-wrap,
  .group:hover .icon-wrap {
    transform: none !important;
  }
}
