/* ==========================================
   CRIHD BLOG PAGE - STYLES COMPLETS
   ========================================== */

/* Réutilisation des styles existants de projet.css avec adaptations pour le blog */

/* ==========================================
   STRUCTURE GÉNÉRALE
   ========================================== */

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    background-color: white;
}

/* ==========================================
   STYLES SPÉCIFIQUES AU BLOG
   ========================================== */

/* Adaptations des informations d'auteur pour les articles */
.blog-article .blog-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    padding: 8px 0;
    border-top: 1px solid #f3f4f6;
    font-size: 12px;
}

.blog-article .author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.blog-article .author-name {
    font-weight: 500;
    color: #374151;
    margin-right: 8px;
}

.blog-article .reading-time {
    color: #6b7280;
    background: #f9fafb;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-left: auto;
}

/* ==========================================
   FILTRES ET RECHERCHE
   ========================================== */

/* Réutilisation des styles de jobs-filter-section existants */
.jobs-filter-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.filter-header {
    text-align: center;
    margin-bottom: 40px;
}

.filter-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
}

.filter-header p {
    color: #6c757d;
    font-size: 16px;
}

.jobs-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 14px;
}

.filter-select {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.filter-select:focus {
    outline: none;
    border-color: #c53c3c;
}

.filter-reset-btn {
    background-color: #c53c3c;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.filter-reset-btn:hover {
    background-color: #a73030;
}

.results-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    font-size: 14px;
    color: #6c757d;
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.view-btn {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    background-color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
}

.view-btn.active,
.view-btn:hover {
    border-color: #c53c3c;
    background-color: #c53c3c;
    color: white;
}



/* ==========================================
   ÉTATS ET ANIMATIONS
   ========================================== */

/* État caché pour le filtrage */
.blog-article.hidden {
    display: none;
}

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Délais d'animation échelonnés */
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
.project-card:nth-child(7) { animation-delay: 0.7s; }
.project-card:nth-child(8) { animation-delay: 0.8s; }
.project-card:nth-child(9) { animation-delay: 0.9s; }
