/**
 * Styles pour les templates de projets
 * 
 * @package Synergin
 * @since 1.0.0
 */

/* ========================================
   ARCHIVE PROJETS
   ======================================== */

.projets-archive .page-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
}

.projets-archive .page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.projets-archive .archive-description {
    max-width: 800px;
    margin: 0 auto;
    color: #666;
    font-size: 18px;
    line-height: 1.6;
}

.projets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.projet-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.projet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.projet-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.projet-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.projet-card:hover .projet-thumbnail img {
    transform: scale(1.05);
}

.projet-content {
    padding: 25px;
}

.projet-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.projet-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.projet-title a:hover {
    color: #f39c12;
}

.projet-categories {
    margin-bottom: 15px;
}

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(90deg, #f39c12, #e74c3c);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    margin-right: 5px;
}

.projet-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.projet-footer .read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f39c12;
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.projet-footer .read-more:hover {
    gap: 12px;
}

.no-projects {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 18px;
}

/* ========================================
   SINGLE PROJET
   ======================================== */

.projet-single {
    margin: 0 auto;
    padding: 40px 20px;
}

.projet-single .entry-header {
    margin-bottom: 30px;
}

.projet-single .entry-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.projet-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.projet-meta .meta-label {
    font-weight: 600;
    color: #333;
    margin-right: 8px;
}

.projet-meta a {
    color: #f39c12;
    text-decoration: none;
    transition: color 0.3s ease;
}

.projet-meta a:hover {
    color: #e67e22;
}

.projet-featured-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.projet-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.projet-single .entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 60px;
}

.projet-single .entry-content h2 {
    font-size: 32px;
    font-weight: 600;
    margin: 40px 0 20px 0;
}

.projet-single .entry-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 30px 0 15px 0;
}

.projet-single .entry-content p {
    margin-bottom: 20px;
}

/* Galerie du projet */
.projet-gallery {
    margin: 60px 0;
}

.projet-gallery h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Tags */
.projet-single .entry-footer {
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.projet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.tags-label {
    font-weight: 600;
    color: #333;
}

.tag-link {
    display: inline-block;
    padding: 6px 15px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #f39c12;
    color: #fff;
}

/* Navigation entre projets */
.post-navigation {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
}

.post-navigation a {
    display: block;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-navigation a:hover {
    background: #f39c12;
    color: #fff;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #999;
}

.post-navigation a:hover .nav-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.post-navigation .nav-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.post-navigation a:hover .nav-title {
    color: #fff;
}

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

@media (max-width: 768px) {
    .projets-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .projet-single .entry-title {
        font-size: 32px;
    }
    
    .projet-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .post-navigation .nav-links {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .projets-archive .page-title {
        font-size: 28px;
    }
    
    .projet-single .entry-title {
        font-size: 24px;
    }
    
    .projet-single .entry-content {
        font-size: 16px;
    }
}
