/* ECF Vincennes - Custom Styles */

/* Variables CSS pour les couleurs */
:root {
    --ecf-blue: #00AEEF;
    --ecf-blue-dark: #0088CC;
    --ecf-red: #E30613;
    --ecf-red-dark: #C4050F;
}

/* Styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #1f2937;
}

/* Scroll smooth */
html {
    scroll-behavior: smooth;
}

/* Focus states améliorés */
input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
}

/* Animations personnalisées */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 200px;
        transform: translateY(0);
    }
}

/* Animation pour les FAQ */
.faq-content {
    animation: slideDown 0.3s ease-out;
    overflow: hidden;
}

.faq-arrow.rotated {
    transform: rotate(90deg);
}

/* Loading spinner personnalisé */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Styles pour les étoiles des avis */
.star-filled {
    color: #fbbf24;
    fill: currentColor;
}

.star-empty {
    color: #d1d5db;
}

/* Hover effects améliorés */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Gradient backgrounds personnalisés */
.bg-gradient-ecf {
    background: linear-gradient(135deg, var(--ecf-blue) 0%, var(--ecf-blue-dark) 100%);
}

.bg-gradient-ecf-red {
    background: linear-gradient(135deg, var(--ecf-red) 0%, var(--ecf-red-dark) 100%);
}

/* Styles pour les sections avec fond décoratif */
.hero-bg {
    background: linear-gradient(135deg, #ffffff 0%, #dbeafe 50%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

/* Modal animations */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

.modal-enter {
    animation: fadeInUp 0.3s ease-out;
}

/* Responsive typography */
@media (max-width: 640px) {
    .text-responsive {
        font-size: 1.5rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .text-responsive {
        font-size: 1.875rem;
    }
}

@media (min-width: 1025px) {
    .text-responsive {
        font-size: 2.25rem;
    }
}

/* Styles pour les boutons avec icônes */
.btn-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease-in-out;
}

.btn-with-icon:hover .icon-arrow {
    transform: translateX(4px);
}

.btn-with-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Styles pour la timeline */
.timeline-line {
    background: linear-gradient(to right, var(--ecf-blue), var(--ecf-red), #10b981);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--ecf-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ecf-blue-dark);
}

/* Styles pour les badges */
.badge-success {
    background-color: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Styles pour les cartes de formation */
.formation-card {
    position: relative;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.formation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.formation-card.popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ecf-blue), var(--ecf-red));
}

/* Styles pour les témoignages */
.testimonial-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--ecf-blue), var(--ecf-red));
}

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

/* Styles pour les statistiques */
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--ecf-blue), var(--ecf-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Styles pour les icônes animées */
.icon-bounce:hover {
    animation: bounce 0.5s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Styles pour les formulaires */
.form-input {
    transition: all 0.2s ease-in-out;
    border: 2px solid #e5e7eb;
}

.form-input:focus {
    border-color: var(--ecf-blue);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
}

.form-input:invalid {
    border-color: var(--ecf-red);
}

/* Styles pour les alertes/notifications */
.alert {
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid;
}

.alert-success {
    background-color: #ecfdf5;
    border-left-color: #10b981;
    color: #065f46;
}

.alert-error {
    background-color: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}

/* Styles pour les liens externes */
.external-link::after {
    content: '↗';
    margin-left: 0.25rem;
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.external-link:hover::after {
    transform: translate(2px, -2px);
}

/* Media queries pour responsive design */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }
    
    .mobile-full {
        width: 100%;
    }
    
    .mobile-text-center {
        text-align: center;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: black;
        background: white;
    }
    
    .bg-gradient-to-r,
    .bg-gradient-to-br {
        background: white !important;
        color: black !important;
    }
}

/* Accessibilité - mode sombre */
@media (prefers-color-scheme: dark) {
    .dark-mode-text {
        color: #f9fafb;
    }
    
    .dark-mode-bg {
        background-color: #1f2937;
    }
}

/* Styles pour les animations d'entrée */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Styles pour les tooltips */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}

.tooltip:hover::before {
    opacity: 1;
}

/* Styles pour les indicateurs de chargement */
.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% {
        color: rgba(0,0,0,0);
        text-shadow: .25em 0 0 rgba(0,0,0,0),
                     .5em 0 0 rgba(0,0,0,0);
    }
    40% {
        color: currentColor;
        text-shadow: .25em 0 0 rgba(0,0,0,0),
                     .5em 0 0 rgba(0,0,0,0);
    }
    60% {
        text-shadow: .25em 0 0 currentColor,
                     .5em 0 0 rgba(0,0,0,0);
    }
    80%, 100% {
        text-shadow: .25em 0 0 currentColor,
                     .5em 0 0 currentColor;
    }
}