/**
 * AIPEC Theme - CSS Personnalisé
 * Ajouts et modifications spécifiques au projet
 * Chargé après main.css et carousel.css
 */

/* Variables CSS personnalisées */
:root {
    --primary-green: #059669;
    --primary-green-dark: #047857;
    --primary-green-light: #10b981;
}

/* Animations personnalisées */
@keyframes fadeInUp {
    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);
    }
}

/* Classes utilitaires pour animations */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

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

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

/* Classes utilitaires personnalisées */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.backdrop-blur-custom {
    backdrop-filter: blur(8px);
}

.bg-gradient-green {
    background: linear-gradient(135deg, #059669, #047857);
}

.bg-gradient-green-light {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Améliorations pour l'accessibilité */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles améliorés */
.btn-primary:focus,
.btn-secondary:focus,
.btn-outline:focus {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* Styles pour l'administration WordPress */
.wp-admin .aipec-admin-section {
    background: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wp-admin .aipec-admin-notice {
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid #059669;
    background: #f0fdf4;
}

/* Corrections pour certains plugins WordPress */
.wp-block-image {
    margin: 0;
}

.wp-block-group {
    margin: 0;
}

/* Améliorations pour les formulaires */
.aipec-form input,
.aipec-form textarea,
.aipec-form select {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.aipec-form input:focus,
.aipec-form textarea:focus,
.aipec-form select:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Responsive améliorations */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem !important;
    }
    
    .hero-content p {
        font-size: 1rem !important;
    }
}

/* Print styles */
@media print {
    .hero-nav,
    .hero-indicators,
    .hero-counter,
    .mobile-menu,
    #mobile-menu-toggle,
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        display: none !important;
    }
    
    .hero-carousel {
        height: auto !important;
        min-height: auto !important;
    }
    
    .hero-slide {
        position: static !important;
        opacity: 1 !important;
    }
    
    .hero-slide:not(:first-child) {
        display: none !important;
    }
}

/* Styles pour le mode sombre (futur) */
@media (prefers-color-scheme: dark) {
    /* Préparation pour le mode sombre */
    /* À activer plus tard si nécessaire */
}

/* Ajustements finaux */
/* Ajoutez ici vos styles personnalisés futurs */