/* Waxangari - CSS minimal pour Tailwind */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Alpine.js x-cloak directive */
[x-cloak] {
    display: none !important;
}

/* ===== ANIMATIONS PERSONNALISÉES (conservées) ===== */

/* Animation du logo */
@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Animations d'entrée */
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Animation de pulsation pour l'arrière-plan */
@keyframes backgroundPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Animation de chargement */
@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Classes d'animation utilitaires */
.animate-float { animation: logoFloat 3s ease-in-out infinite; }
.animate-slide-up { animation: slideInUp 0.6s ease-out forwards; }
.animate-slide-down { animation: slideInDown 0.6s ease-out forwards; }
.animate-fade-in { animation: fadeIn 0.6s ease-out forwards; }
.animate-scale-in { animation: scaleIn 0.6s ease-out forwards; }

/* Animation au scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0, 0, 0.2, 1);
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, 
        rgb(229 231 235) 25%, 
        rgb(241 245 249) 50%, 
        rgb(229 231 235) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

/* ===== EXTENSIONS SPÉCIFIQUES WAXANGARI ===== */

/* Effet de brillance sur les liens de navigation */
.nav-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.nav-shimmer:hover::before {
    transform: translateX(100%);
}

/* Barre colorée pour les cartes */
.card-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #2563eb, #1d4ed8);
    opacity: 0;
    transition: opacity 0.3s;
}

.card-accent:hover::before {
    opacity: 1;
}

/* Gradient de texte pour les éléments spéciaux */
.text-gradient {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Focus accessible avec Tailwind */
.focus-ring:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.focus-ring:focus:not(:focus-visible) {
    outline: none;
}

/* ===== MODE SOMBRE (utilisant les classes Tailwind) ===== */

/* Variables CSS pour le mode sombre (si nécessaire) */
.dark {
    color-scheme: dark;
}

/* ===== COMPOSANTS SPÉCIAUX ===== */

/* Notification avec bordure colorée */
.notification-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
}

/* Backdrop blur pour les éléments flottants */
.backdrop-blur-supported {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ===== MEDIA QUERIES POUR LES ANIMATIONS ===== */

/* Réduction du mouvement pour l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== UTILITAIRES TAILWIND PERSONNALISÉS ===== */

/* Classes pour les hauteurs minimales spécifiques */
.min-h-32 { min-height: 8rem; }
.min-h-48 { min-height: 12rem; }
.min-h-64 { min-height: 16rem; }
.min-h-80 { min-height: 20rem; }
.min-h-96 { min-height: 24rem; }

/* Classes pour les largeurs spécifiques */
.w-15 { width: 3.75rem; }
.h-15 { height: 3.75rem; }

/* Espacement personnalisé pour les besoins spécifiques */
.gap-15 { gap: 3.75rem; }

/* ===== PRINT STYLES ===== */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-after: always;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
