/* ========================================
   MODERN ENHANCEMENTS - WebFast DZ
   Améliorations CSS pour un rendu professionnel
   ======================================== */

/* === TRANSITIONS & ANIMATIONS FLUIDES === */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a,
button,
input,
select,
textarea,
.transition {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === CLASSES UTILITAIRES SUPPLÉMENTAIRES === */
.text-skin-muted {
  color: var(--secondary-light);
  opacity: 0.8;
}

.bg-skin-base {
  background-color: var(--bg-light);
}

/* === OMBRES MODERNES === */
.shadow-soft {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shadow-modern {
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-modern-lg {
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-modern-xl {
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-glow-blue {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.shadow-glow-cyan {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

/* === OPTIMISATION DES IMAGES === */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

img:hover {
  filter: brightness(1.05);
}

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

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

/* === SCROLLBAR MODERNE === */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--primary-light),
    var(--link-hover-light)
  );
  border-radius: 10px;
  border: 2px solid var(--bg-light);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--link-hover-light);
}

/* === ANIMATIONS PERSONNALISÉES === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

@keyframes pulse-subtle {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Classes d'animation réutilisables */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-down {
  animation: fadeInDown 0.6s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.4s ease-out;
}

.animate-pulse-subtle {
  animation: pulse-subtle 2s ease-in-out infinite;
}

/* === BOUTONS AMÉLIORÉS === */
.btn-gradient-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.btn-gradient-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-gradient-blue:active {
  transform: translateY(0);
}

/* === CARDS MODERNES === */
.card-modern {
  background: var(--card-bg-light);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-modern:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* === BADGES & TAGS === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.badge:hover {
  transform: scale(1.05);
}

/* === GRADIENT TEXT === */
.gradient-text {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === GLASS MORPHISM === */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* === AMÉLIORATION DE LA TYPOGRAPHIE === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}
h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}
h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

p {
  line-height: 1.7;
  color: var(--secondary-light);
}

/* === SÉPARATEURS DÉCORATIFS === */
.divider-gradient {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-light),
    transparent
  );
  margin: 2rem 0;
}

/* === OPTIMISATION MOBILE === */
@media (max-width: 768px) {
  .card-modern {
    padding: 1rem;
  }

  .btn-gradient-blue {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
}

/* === PERFORMANCE === */
.will-change-transform {
  will-change: transform;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* === LOADING STATES === */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--border-light) 25%,
    var(--card-bg-light) 50%,
    var(--border-light) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

/* === STATES === */
.is-loading {
  pointer-events: none;
  opacity: 0.6;
  cursor: wait;
}

.is-disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}
