/* Styles pour le breadcrumb responsive */
.breadcrumb-container {
    position: relative;
}

/* Version mobile - visible uniquement sur mobile */
.breadcrumb-mobile-view {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.dark .breadcrumb-mobile-view {
    background: rgba(17, 24, 39, 0.9);
    border-color: rgba(75, 85, 99, 0.3);
}

.breadcrumb-home {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb-home:hover {
    color: #3b82f6;
}

.dark .breadcrumb-home {
    color: #9ca3af;
}

.dark .breadcrumb-home:hover {
    color: #60a5fa;
}

.breadcrumb-separator {
    color: #9ca3af;
    font-size: 0.75rem;
}

.breadcrumb-current {
    color: #374151;
    font-weight: 600;
}

.dark .breadcrumb-current {
    color: #f3f4f6;
}

/* Version desktop - visible uniquement sur desktop */
.breadcrumb-desktop-view {
    display: none;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.breadcrumb-desktop-view .breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-desktop-view .breadcrumb-link {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.breadcrumb-desktop-view .breadcrumb-link:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.breadcrumb-desktop-view .breadcrumb-current {
    color: #374151;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 0.5rem;
}

.dark .breadcrumb-desktop-view .breadcrumb-link {
    color: #9ca3af;
}

.dark .breadcrumb-desktop-view .breadcrumb-link:hover {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

.dark .breadcrumb-desktop-view .breadcrumb-current {
    color: #f3f4f6;
    background: rgba(96, 165, 250, 0.1);
}

/* Responsive - Masquer mobile sur desktop et afficher desktop */
@media (min-width: 768px) {
    .breadcrumb-mobile-view {
        display: none;
    }
    
    .breadcrumb-desktop-view {
        display: flex;
    }
}

/* Responsive - Masquer desktop sur mobile et afficher mobile */
@media (max-width: 767px) {
    .breadcrumb-mobile-view {
        display: flex;
    }
    
    .breadcrumb-desktop-view {
        display: none;
    }
}

/* Variables CSS */
:root {
    --tutorial-primary: #3B82F6;
    --tutorial-secondary: #8B5CF6;
    --tutorial-success: #10B981;
    --tutorial-warning: #F59E0B;
    --tutorial-danger: #EF4444;
    --tutorial-info: #06B6D4;
}

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Classes d'animation */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

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

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

/* Cartes de tutoriels */
.tutorial-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tutorial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.tutorial-card:hover::before {
    left: 100%;
}

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

.featured-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 193, 7, 0.1));
    border-color: #F59E0B !important;
}

.featured-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-top: 20px solid #F59E0B;
}

/* Badges de difficulté */
.difficulty-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.difficulty-facile {
    background-color: #D1FAE5;
    color: #065F46;
}

.difficulty-moyen {
    background-color: #FEF3C7;
    color: #92400E;
}

.difficulty-avancé {
    background-color: #FEE2E2;
    color: #991B1B;
}

.dark .difficulty-facile {
    background-color: #064E3B;
    color: #A7F3D0;
}

.dark .difficulty-moyen {
    background-color: #78350F;
    color: #FDE68A;
}

.dark .difficulty-avancé {
    background-color: #7F1D1D;
    color: #FECACA;
}

/* Limitation de lignes */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Effet de survol pour les boutons */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Styles pour le contenu des tutoriels */
.tutorial-content {
    line-height: 1.7;
    color: #374151;
}

.tutorial-content h1,
.tutorial-content h2,
.tutorial-content h3,
.tutorial-content h4,
.tutorial-content h5,
.tutorial-content h6 {
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1F2937;
}

.tutorial-content h1 {
    font-size: 2.25rem;
    border-bottom: 2px solid #E5E7EB;
    padding-bottom: 0.5rem;
}

.tutorial-content h2 {
    font-size: 1.875rem;
    color: #3B82F6;
}

.tutorial-content h3 {
    font-size: 1.5rem;
    color: #8B5CF6;
}

.tutorial-content p {
    margin-bottom: 1.5rem;
}

.tutorial-content ul,
.tutorial-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.tutorial-content li {
    margin-bottom: 0.5rem;
}

.tutorial-content blockquote {
    border-left: 4px solid #3B82F6;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    background-color: #F8FAFC;
    padding: 1rem;
    border-radius: 0.5rem;
}

.tutorial-content code {
    background-color: #F1F5F9;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
}

.tutorial-content pre {
    background-color: #1F2937;
    color: #F9FAFB;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.tutorial-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

/* Mode sombre pour le contenu */
.dark .tutorial-content {
    color: #D1D5DB;
}

.dark .tutorial-content h1,
.dark .tutorial-content h2,
.dark .tutorial-content h3,
.dark .tutorial-content h4,
.dark .tutorial-content h5,
.dark .tutorial-content h6 {
    color: #F9FAFB;
}

.dark .tutorial-content h1 {
    border-bottom-color: #374151;
}

.dark .tutorial-content blockquote {
    background-color: #374151;
    border-left-color: #60A5FA;
}

.dark .tutorial-content code {
    background-color: #374151;
    color: #F9FAFB;
}

/* Barre de progression de lecture */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Styles pour les filtres */
.filter-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.dark .filter-section {
    background: rgba(17, 24, 39, 0.8);
    border-color: rgba(75, 85, 99, 0.3);
}

/* Styles pour la recherche */
.search-container {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 50;
    max-height: 300px;
    overflow-y: auto;
}

.dark .search-results {
    background: #1F2937;
    border-color: #374151;
}

.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #E5E7EB;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dark .search-result-item {
    border-bottom-color: #374151;
}

.search-result-item:hover {
    background-color: #F3F4F6;
}

.dark .search-result-item:hover {
    background-color: #374151;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Styles pour les statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scale(1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .tutorial-content h1 {
        font-size: 1.875rem;
    }
    
    .tutorial-content h2 {
        font-size: 1.5rem;
    }
    
    .tutorial-content h3 {
        font-size: 1.25rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* Styles pour les notifications */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background-color: #10B981;
}

.notification.error {
    background-color: #EF4444;
}

.notification.info {
    background-color: #3B82F6;
}

.notification.warning {
    background-color: #F59E0B;
}

/* Styles pour les boutons d'action */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-btn.edit {
    background-color: #3B82F6;
    color: white;
}

.action-btn.delete {
    background-color: #EF4444;
    color: white;
}

.action-btn.featured {
    background-color: #F59E0B;
    color: white;
}

.action-btn.publish {
    background-color: #10B981;
    color: white;
}

/* Styles pour les formulaires */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.dark .form-label {
    color: #D1D5DB;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
    background-color: white;
}

.dark .form-input,
.dark .form-textarea,
.dark .form-select {
    background-color: #1F2937;
    border-color: #374151;
    color: #F9FAFB;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-help {
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 0.25rem;
}

.dark .form-help {
    color: #9CA3AF;
}

/* Styles pour les tags */
.tags-input {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.5rem;
    min-height: 2.5rem;
    align-items: center;
}

.dark .tags-input {
    border-color: #374151;
    background-color: #1F2937;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background-color: #3B82F6;
    color: white;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.tag-remove {
    cursor: pointer;
    margin-left: 0.25rem;
}

.tag-input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    min-width: 100px;
}

.dark .tag-input {
    color: #F9FAFB;
}

