/**
 * ===========================================
 * THÈME GLOBAL - 7 Profils d'Apprentissage
 * ===========================================
 * 
 * Ce fichier définit les variables CSS et styles custom
 * utilisés dans tout le projet en complément de Tailwind CSS.
 * 
 * CHARTE GRAPHIQUE : Nuances d'orange
 * - Boutons : #e64a17 (orange vif) / #d9781C (orange doré)
 * - Sections : Fond blanc avec ombres/relief
 * 
 * @author Apprendre à Apprendre
 * @version 2.0.0
 */

/* ===========================================
   VARIABLES CSS
   =========================================== */
:root {
    /* Couleurs principales - ORANGE */
    --color-primary: #e64a17;
    --color-primary-dark: #bf360c;
    --color-primary-light: #ff7043;
    
    --color-secondary: #d9781C;
    --color-secondary-dark: #c66a15;
    --color-secondary-light: #f5a623;
    
    /* Couleurs d'accent */
    --color-accent: #d9781C;
    --color-accent-dark: #c66a15;
    --color-accent-light: #f5a623;
    
    /* Couleurs de statut */
    --color-success: #48bb78;
    --color-success-dark: #38a169;
    --color-error: #f56565;
    --color-error-dark: #e53e3e;
    --color-warning: #ed8936;
    --color-warning-dark: #dd6b20;
    --color-info: #4299e1;
    --color-info-dark: #3182ce;
    
    /* Couleurs neutres */
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    
    /* Gradients - ORANGE */
    --gradient-primary: linear-gradient(135deg, #e64a17 0%, #d9781C 100%);
    --gradient-primary-hover: linear-gradient(135deg, #bf360c 0%, #c66a15 100%);
    --gradient-accent: linear-gradient(135deg, #d9781C 0%, #f5a623 100%);
    --gradient-success: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    --gradient-hero: linear-gradient(135deg, #e64a17 0%, #d9781C 50%, #f5a623 100%);
    
    /* Ombres */
    --shadow-xs: 0 0 0 1px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-primary: 0 4px 14px 0 rgba(230, 74, 23, 0.35);
    --shadow-primary-lg: 0 10px 30px 0 rgba(230, 74, 23, 0.4);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    
    /* Bordures */
    --border-radius-sm: 0.25rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --border-radius-2xl: 1.5rem;
    --border-radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Typographie */
    --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-mono: 'Fira Code', 'Monaco', 'Consolas', monospace;
}

/* ===========================================
   STYLES DE BASE
   =========================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===========================================
   BOUTONS PERSONNALISÉS - ORANGE
   =========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    transition: var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: var(--gradient-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-lg);
}

.btn-secondary {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(217, 120, 28, 0.35);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px 0 rgba(217, 120, 28, 0.4);
}

/* Bouton orange solide */
.btn-orange {
    background-color: #e64a17;
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-orange:hover {
    background-color: #bf360c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-lg);
}

/* Bouton orange outline */
.btn-orange-outline {
    background: white;
    color: #e64a17;
    border: 2px solid #e64a17;
}

.btn-orange-outline:hover {
    background: #e64a17;
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===========================================
   CARTES AVEC RELIEF
   =========================================== */
.card {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-card);
    transition: var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

/* Carte avec accent orange */
.card-accent {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-card);
    border-left: 4px solid var(--color-primary);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-gray-100);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--color-gray-100);
}

/* ===========================================
   SECTIONS EN RELIEF (remplace fond violet)
   =========================================== */
.section-highlight {
    background: white;
    border-radius: var(--border-radius-2xl);
    box-shadow: var(--shadow-card);
    padding: 2rem;
}

.section-highlight-lg {
    background: white;
    border-radius: var(--border-radius-2xl);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
}

/* Section avec bordure orange */
.section-orange-border {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-card);
    border-top: 4px solid var(--color-primary);
}

/* ===========================================
   STATISTIQUES - ORANGE
   =========================================== */
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-card);
}

/* ===========================================
   ALERTES / MESSAGES
   =========================================== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #def7ec;
    border-left: 4px solid var(--color-success);
    color: #03543f;
}

.alert-error {
    background-color: #fde8e8;
    border-left: 4px solid var(--color-error);
    color: #9b1c1c;
}

.alert-warning {
    background-color: #fef3cd;
    border-left: 4px solid var(--color-warning);
    color: #856404;
}

.alert-info {
    background-color: #e1effe;
    border-left: 4px solid var(--color-info);
    color: #1e40af;
}

/* ===========================================
   ANIMATIONS
   =========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

/* Classes d'animation */
.animate-fadeIn {
    animation: fadeIn 0.5s ease-out;
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease-out;
}

.animate-fadeInDown {
    animation: fadeInDown 0.5s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 0.5s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 0.5s ease-out;
}

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

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Délais d'animation */
.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; }

/* ===========================================
   MENU MOBILE
   =========================================== */
#mobile-menu {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    will-change: transform;
    box-shadow: none;
}

#mobile-menu.active {
    transform: translateX(0) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

#mobile-overlay:not(.hidden) {
    display: block !important;
}

@media (max-width: 767px) {
    #mobile-menu {
        display: block !important;
    }
}

/* ===========================================
   HEADER IMAGE
   =========================================== */
.header-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ===========================================
   FORMULAIRES
   =========================================== */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-gray-200);
    border-radius: var(--border-radius-lg);
    transition: var(--transition-fast);
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(230, 74, 23, 0.2);
}

.form-input::placeholder {
    color: var(--color-gray-400);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-gray-700);
}

/* ===========================================
   UTILITAIRES PERSONNALISÉS - ORANGE
   =========================================== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-orange {
    color: var(--color-primary);
}

.text-orange-dark {
    color: var(--color-primary-dark);
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-accent {
    background: var(--gradient-accent);
}

.bg-orange {
    background-color: var(--color-primary);
}

.bg-orange-light {
    background-color: #fff3e0;
}

.border-orange {
    border-color: var(--color-primary);
}

.shadow-primary {
    box-shadow: var(--shadow-primary);
}

.shadow-primary-lg {
    box-shadow: var(--shadow-primary-lg);
}

/* ===========================================
   LIENS - ORANGE
   =========================================== */
a.link-orange {
    color: var(--color-primary);
    transition: var(--transition-fast);
}

a.link-orange:hover {
    color: var(--color-primary-dark);
}

/* Navigation links - Orange */
.nav-link {
    color: #4b5563;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #e64a17 !important;
}

.nav-link-active {
    color: #e64a17 !important;
}

/* Liens dans le footer (fond sombre - blanc au survol) */
footer a {
    transition: color 0.2s ease;
}

/* Liens orange dans le footer si nécessaire */
footer a.link-orange-footer:hover {
    color: #e64a17 !important;
}

/* ===========================================
   ICONES EN ORANGE
   =========================================== */
.icon-orange {
    color: var(--color-primary);
}

.icon-box-orange {
    background: linear-gradient(135deg, #e64a17 0%, #d9781C 100%);
    color: white;
    border-radius: var(--border-radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===========================================
   RESPONSIVE UTILITIES
   =========================================== */
@media (max-width: 640px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .section-highlight,
    .section-highlight-lg {
        padding: 1.5rem;
    }
}

/* ===========================================
   PRINT STYLES
   =========================================== */
@media print {
    .no-print {
        display: none !important;
    }
}
