/* ============================================
   STYLES GLOBAUX EDUKOURA
   Unifie l'apparence de toutes les pages
   ============================================ */

/* Variables CSS */
:root {
    --edukoura-blue: #0072BC;
    --edukoura-orange: #F7A600;
    --edukoura-gold: #D4AF37;
    --text-dark: #2D3748;
    --text-light: #718096;
}

/* Polices par défaut */
* {
    font-family: 'Inter', sans-serif;
}

body {
    font-family: 'Inter', sans-serif;
}

.font-nunito {
    font-family: 'Nunito', sans-serif;
}

/* Couleurs utilitaires */
.text-edukoura-blue { color: #0072BC; }
.text-edukoura-orange { color: #F7A600; }
.text-edukoura-yellow { color: #F7A600; }
.text-edukoura-gold { color: #D4AF37; }
.bg-edukoura-blue { background-color: #0072BC; }
.bg-edukoura-orange { background-color: #F7A600; }
.bg-edukoura-yellow { background-color: #F7A600; }
.border-edukoura-blue { border-color: #0072BC; }

/* Navigation */
.navigation {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 114, 188, 0.1);
}

.logo-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
}

.logo-edu {
    color: #0072BC;
}

.logo-k {
    color: #F7A600;
}

.logo-oura {
    color: #0072BC;
}

/* Typographie */
.section-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
}

.gradient-text {
    background: linear-gradient(135deg, var(--edukoura-blue), var(--edukoura-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Boutons */
.btn-primary {
    background: linear-gradient(135deg, var(--edukoura-blue), #005A9A);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #005A9A, var(--edukoura-blue));
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 114, 188, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--edukoura-orange), #E69500);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #E69500, var(--edukoura-orange));
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(247, 166, 0, 0.3);
}

/* Animations */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.pulse-element {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Hero Sections */
.hero-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
}

.hero-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.3s;
}

.hero-buttons {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.6s;
}

/* Cards */
.program-card {
    transition: all 0.3s ease;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 114, 188, 0.15);
}

.module-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 114, 188, 0.1);
    transition: all 0.3s ease;
}

.module-card:hover {
    border-color: #0072BC;
    box-shadow: 0 20px 40px rgba(0, 114, 188, 0.1);
}

.benefit-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 114, 188, 0.1);
}

.value-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid var(--edukoura-blue);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 114, 188, 0.15);
}

.impact-card {
    background: linear-gradient(135deg, var(--edukoura-blue), #005A9A);
    color: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.impact-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 114, 188, 0.2);
}

/* Icons & Badges */
.module-icon {
    background: linear-gradient(135deg, #0072BC, #005a9a);
    box-shadow: 0 10px 30px rgba(0, 114, 188, 0.3);
}

.feature-badge {
    background: rgba(247, 166, 0, 0.1);
    color: #F7A600;
    border: 1px solid rgba(247, 166, 0, 0.2);
}

/* Counters */
.counter {
    font-size: 3rem;
    font-weight: 800;
    color: var(--edukoura-orange);
}

/* Quote Sections */
.quote-section {
    background: linear-gradient(135deg, var(--edukoura-blue), #005A9A);
    color: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '"';
    font-size: 8rem;
    position: absolute;
    top: -1rem;
    left: 2rem;
    opacity: 0.1;
    font-family: serif;
}

/* Flow Diagrams */
.flow-node {
    background: linear-gradient(135deg, #0072BC, #005a9a);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 114, 188, 0.3);
    transition: all 0.3s ease;
}

.flow-node:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 114, 188, 0.4);
}

.flow-arrow {
    position: relative;
    width: 100px;
    height: 2px;
    background: #F7A600;
    margin: 0 20px;
}

.flow-arrow::after {
    content: '';
    position: absolute;
    right: -8px;
    top: -6px;
    width: 0;
    height: 0;
    border-left: 14px solid #F7A600;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
}

/* Accessibilité */
.skip-to-content {
    position: absolute;
    left: -9999px;
    z-index: 999;
}

.skip-to-content:focus {
    left: 0;
    top: 0;
    background: #0072BC;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Focus visible amélioré */
*:focus-visible {
    outline: 3px solid #0072BC;
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #0072BC;
    outline-offset: 4px;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.focus\:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Navigation Active State */
.nav-link.active {
    color: var(--edukoura-blue) !important;
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--edukoura-blue);
}

/* Force logos in footer to render original colors (override accidental filters) */
.footer-logo {
    filter: none !important;
    mix-blend-mode: normal !important;
}

.dropdown-toggle.active {
    color: var(--edukoura-blue) !important;
    font-weight: 600;
}

/* Form Validation States */
.form-input.is-valid {
    border-color: #10b981;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2310b981'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.form-input.is-invalid {
    border-color: #ef4444;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ef4444'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.error-message::before {
    content: '⚠';
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 500px;
    z-index: 9999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-icon {
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-content strong {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}

.toast-content p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.toast-close:hover {
    background: #f3f4f6;
    color: #4b5563;
}

/* Loading Spinner */
.loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-image {
        min-height: 40vh;
    }
    
    .counter {
        font-size: 2rem;
    }
    
    .quote-section {
        padding: 2rem;
    }
    
    .toast {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}
