/* =====================================================
   POLYNESIAN FACULTY - STYLES GLOBAUX
   ===================================================== */

/* =====================================================
   BASE & TYPOGRAPHIE
   ===================================================== */
* { 
    font-family: 'Inter', sans-serif; 
}

/* =====================================================
   LOGO & NAVIGATION
   ===================================================== */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    color: #6366f1;
    text-decoration: none;
    transition: all 0.3s;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

/* =====================================================
   GRADIENTS & COULEURS
   ===================================================== */
.bg-gradient-brand {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 50%, #06B6D4 100%);
}

.bg-gradient-mesh {
    background-color: #8B5CF6;
    background-image: 
        radial-gradient(at 20% 80%, #EC4899 0, transparent 50%),
        radial-gradient(at 80% 20%, #06B6D4 0, transparent 50%),
        radial-gradient(at 40% 40%, #8B5CF6 0, transparent 50%);
}

.text-gradient {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 50%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =====================================================
   GLASS MORPHISM
   ===================================================== */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

.badge-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* =====================================================
   SCROLLBAR PERSONNALISÉE
   ===================================================== */
::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8B5CF6 0%, #EC4899 100%);
    border-radius: 6px;
}

/* =====================================================
   ACCESSIBILITÉ
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================
   PAGES FORMATIONS - STYLES SPÉCIFIQUES
   ===================================================== */

/* Hero formations */
.hero-gradient-education {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
}

.hero-gradient-avocat {
    background: linear-gradient(135deg, #EC4899 0%, #F59E0B 100%);
}

.hero-gradient-immobilier {
    background: linear-gradient(135deg, #06B6D4 0%, #10B981 100%);
}

/* Boutons principaux */
.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Cartes de modules */
.module-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

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

/* Timeline */
.timeline-dot {
    width: 16px;
    height: 16px;
    background: #8B5CF6;
    border-radius: 50%;
    position: relative;
}

.timeline-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 16px;
    bottom: -16px;
    width: 2px;
    background: #E5E7EB;
    transform: translateX(-50%);
}

/* Sections avec patterns */
.pattern-dots {
    background-image: radial-gradient(circle, #8B5CF6 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.05;
}

.pattern-grid {
    background-image: 
        linear-gradient(to right, #8B5CF6 1px, transparent 1px),
        linear-gradient(to bottom, #8B5CF6 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.03;
}

/* =====================================================
   PARCOURS - STYLES SPÉCIFIQUES
   ===================================================== */

/* Questions cards */
.question-card {
    animation: fadeInUp 0.5s ease-out;
}

.option-card {
    transition: all 0.3s ease;
}

.option-card:hover {
    transform: translateX(8px);
}

.option-card.selected {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    color: white;
    border-color: transparent;
}

/* Progress bar */
.progress-bar {
    height: 4px;
    background: #E5E7EB;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #8B5CF6 0%, #EC4899 100%);
    transition: width 0.5s ease;
}

/* =====================================================
   ADMIN - STYLES SPÉCIFIQUES
   ===================================================== */

/* Sidebar admin */
.admin-sidebar {
    background: linear-gradient(180deg, #1F2937 0%, #111827 100%);
    min-height: 100vh;
}

.admin-nav-item {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #D1D5DB;
    text-decoration: none;
}

.admin-nav-item:hover {
    background: rgba(139, 92, 246, 0.1);
    color: white;
}

.admin-nav-item.active {
    background: rgba(139, 92, 246, 0.2);
    color: #A78BFA;
    border-left: 3px solid #8B5CF6;
}

/* Stats cards */
.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tables admin */
.admin-table {
    width: 100%;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-table thead {
    background: #F9FAFB;
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-table td {
    padding: 1rem;
    border-top: 1px solid #E5E7EB;
}

.admin-table tbody tr:hover {
    background: #F9FAFB;
}

/* =====================================================
   ANIMATIONS SUPPLÉMENTAIRES
   ===================================================== */

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

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

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

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

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

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

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

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
    .logo {
        font-size: 1rem;
    }
    
    .logo img {
        width: 32px;
        height: 32px;
    }
    
    .hero-gradient-education,
    .hero-gradient-avocat,
    .hero-gradient-immobilier {
        padding: 3rem 1rem;
    }
    
    .module-card {
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .admin-sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 40;
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
}

/* =====================================================
   UTILITAIRES
   ===================================================== */

.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

.transition-all { transition-property: all; }
.transition-opacity { transition-property: opacity; }
.transition-transform { transition-property: transform; }

.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

.ease-in { transition-timing-function: ease-in; }
.ease-out { transition-timing-function: ease-out; }
.ease-in-out { transition-timing-function: ease-in-out; }