/* ========================================
   BOTTOM META INFORMATION
   ======================================== */

.project-meta-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.meta-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meta-label-bottom {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
}

.meta-value-bottom {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 600;
}

.project-link-bottom {
    color: #3498db !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-link-bottom:hover {
    color: #2980b9 !important;
    transform: translateX(2px);
}

/* ========================================
   BOTTOM TECHNOLOGIES
   ======================================== */

.project-technologies-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.tech-label-bottom {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
}

.tech-pills-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tech-pill-bottom {
    background: var(--gradient-blue);
    color: var(--text-primary);
    padding: 0.2rem 0.6rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

/* ========================================
   NOTABLE FACTS IN HERO
   ======================================== */

.project-notable-facts-hero {
    position: relative;
    z-index: 10;
    width: 350px;
    padding: 0 2rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.notable-facts-title-hero {
    display: none;
}

.fact-content-hero {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.fact-content-hero {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.fact-value-hero {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.fact-value-hero .highlight {
    color: var(--primary-blue);
    font-weight: 800;
}

/* Pour creator-praise, rendre toute la valeur bleue */
.fact-card-hero:has(.fact-icon-hero.creator-praise) .fact-value-hero {
    color: var(--primary-blue);
    font-weight: 800;
}

.fact-label-hero {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
}

/* Variantes d'icÃ´nes pour les faits dans le hero */
.fact-icon-hero.downloads {
    background: var(--gradient-blue);
}

.fact-icon-hero.duration {
    background: var(--gradient-teal);
}

.fact-icon-hero.award {
    background: var(--gradient-blue);
}

.fact-icon-hero.team {
    background: var(--gradient-teal);
}

.fact-icon-hero.feature {
    background: var(--gradient-blue);
}

.fact-icon-hero.ladder {
    background: var(--gradient-blue);
}

.fact-icon-hero.creator-praise {
    background: var(--gradient-blue);
}

/* ========================================
   PROJECT NOTABLE FACTS SIDEBAR
   ======================================== */

.project-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.notable-facts {
    margin-bottom: 2rem;
}

.notable-facts-title {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.5rem;
}

.notable-facts-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    background: var(--gradient-blue);
    border-radius: 1px;
}

.fact-card {
    /* Using glass-effect-strong properties */
    background: rgba(20, 24, 32, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    /* Custom properties */
    padding: var(--padding-glass);
    border-radius: var(--border-radius-md);
    margin-bottom: 1rem;
}

.fact-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-blue-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(52, 152, 219, 0.2);
}

.fact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-blue);
    border-radius: 0 2px 2px 0;
}

.fact-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 24, 32, 0.15);
    border-radius: var(--border-radius-md);
    z-index: -1;
}

.fact-value {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.fact-value .highlight {
    color: var(--primary-blue);
    font-weight: 800;
}

/* Pour creator-praise, rendre toute la valeur bleue */
.fact-card:has(.fact-icon.creator-praise) .fact-value {
    color: var(--primary-blue);
    font-weight: 800;
}

.fact-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Variantes d'icÃ´nes pour diffÃ©rents types de faits - utilisÃ©es par hero et sidebar */
.fact-icon.downloads,
.fact-icon-hero.downloads {
    background: var(--gradient-blue);
}

.fact-icon.duration,
.fact-icon-hero.duration {
    background: var(--gradient-teal);
}

.fact-icon.award,
.fact-icon-hero.award {
    background: var(--gradient-blue);
}

.fact-icon.team,
.fact-icon-hero.team {
    background: var(--gradient-teal);
}

.fact-icon.feature,
.fact-icon-hero.feature {
    background: var(--gradient-blue);
}

.fact-icon.ladder,
.fact-icon-hero.ladder {
    background: var(--gradient-blue);
}

.fact-icon.creator-praise,
.fact-icon-hero.creator-praise {
    background: var(--gradient-blue);
}

/* Animation pour les valeurs numÃ©riques */
.fact-value.animate-number {
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   STATUS STYLES
   ======================================== */

.status-terminÃ© {
    color: #2ecc71;
}

.status-en-cours {
    color: #f39c12;
}

.status-abandonnÃ© {
    color: #e74c3c;
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */

.nav-link {
    display: block;
    padding: var(--padding-glass);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    /* Glass effect inline */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.nav-link:hover {
    background: rgba(52, 152, 219, 0.1);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.nav-direction {
    display: block;
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.nav-title {
    display: block;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

/* ========================================
   SCROLL INDICATOR
   ======================================== */

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}



/* ========================================
   PROJECT DETAIL CONTENT
   ======================================== */

/* ========================================
   LAYOUT 2 COLONNES : ARTICLE + SIDEBAR
   ======================================== */

.project-content-layout {
    display: flex;
    justify-content: center;
    align-items: start;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Colonne principale - Article avec largeur fixe mais centré dans la page */
.project-main-content {
    flex: 0 0 972px; /* Largeur fixe de 972px */
    margin: 2rem 0 0 0;
}

/* Sidebar avec faits notables */
.project-sidebar {
    flex: 0 0 300px; /* Largeur fixe de 300px */
    position: sticky;
    top: 2rem;
    height: fit-content;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
    margin: 2rem 0;
}

/* Styles pour les faits notables restent identiques */
.notable-facts {
    margin-bottom: 2rem;
}

.notable-facts-title {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.5rem;
}

.notable-facts-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    background: var(--gradient-blue);
    border-radius: 1px;
}

/* Navigation en pleine largeur sous le layout */
.project-navigation {
    max-width: 1400px;
    margin: 3rem auto 2rem auto;
    padding: 0 2rem;
}

/* Responsive : Écrans moyens - article réduit et sidebar en dessous */
@media (max-width: 1350px) {
    .project-content-layout {
        flex-direction: column;
        gap: 2rem;
        max-width: 972px;
    }
    
    .project-main-content {
        flex: none;
        width: 100%;
        max-width: 972px;
        margin: 2rem auto 0 auto;
    }
    
    .project-sidebar {
        flex: none;
        position: static;
        margin: 2rem auto;
        max-width: 600px;
        width: 100%;
    }
    
    .project-navigation {
        max-width: 972px;
    }
}

/* Styles pour navigation et sidebar - maintenant en dehors de la grille */
.project-navigation {
    max-width: 972px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.project-sidebar {
    max-width: 972px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Styles .project-content supprimés - maintenant utilise .blog-content-wrapper du blog.css */

/* Styles de contenu supprimés - maintenant gérés par .blog-content-wrapper dans blog.css */

/* Animation d'apparition du contenu - conservée car spécifique aux projets */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
