/* =============================================================================
   NAPAQARO.FR — Main CSS
   Point d'entrée principal - Import de tous les modules
   
   Structure modulaire :
   1. Variables (couleurs, typo, espacements)
   2. Base (reset, typographie de base)
   3. Layout (conteneurs, grilles)
   4. Components (header, cards, boutons)
   5. Footer (pied de page, sidebar)
   ============================================================================= */

@import url('variables.css');
@import url('base.css');
@import url('layout.css');
@import url('components.css');
@import url('footer.css');

/* =============================================================================
   NOTE: Les Google Fonts sont chargées en async dans le HTML pour de meilleures
   performances (évite le blocage du rendu).
   ============================================================================= */

/* =============================================================================
   ANIMATIONS PERSONNALISÉES
   ============================================================================= */

/* Fade in */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Fade in up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulse subtil */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Classes utilitaires d'animation */
.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

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

/* Délais d'animation pour effets stagger */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* =============================================================================
   ÉTATS DE CHARGEMENT
   ============================================================================= */

/* Skeleton loading */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-surface-muted) 25%,
    var(--color-border-light) 50%,
    var(--color-surface-muted) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

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

/* =============================================================================
   UTILITAIRES SUPPLÉMENTAIRES
   ============================================================================= */

/* Overflow */
.overflow-hidden {
  overflow: hidden;
}

/* Positions */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

/* Dimensions */
.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

/* Ratios d'aspect */
.aspect-video {
  aspect-ratio: 16 / 9;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

/* Object fit */
.object-cover {
  object-fit: cover;
}

.object-contain {
  object-fit: contain;
}

/* Transitions */
.transition-all {
  transition: all var(--transition-base);
}

.transition-colors {
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

/* Hover scale */
.hover-scale:hover {
  transform: scale(1.02);
}

/* Ligne décorative */
.line-accent {
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
}

/* =============================================================================
   OVERRIDES RESPONSIVE
   ============================================================================= */

/* Masquer sur mobile */
@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

/* Masquer sur desktop */
@media (min-width: 768px) {
  .hide-desktop {
    display: none !important;
  }
}

/* =============================================================================
   PRINT STYLES
   ============================================================================= */

@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .pagination,
  .btn,
  .mobile-toggle {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
  
  .article-content {
    font-size: 11pt;
  }
}
