/* CSS pour les pages de détail projet */
/* À sauvegarder dans css/project-detail.css */

/* Navigation projet */
.project-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
    z-index: 1000;
    padding: 15px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn {
    color: #60a5fa;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.back-btn:hover {
    color: #34d399;
    border-color: #34d399;
    background: rgba(52, 211, 153, 0.1);
}

.project-nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #34d399;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #60a5fa, #34d399);
    border-radius: 1px;
}

/* Hero Section Projet */
.project-hero {
    padding: 120px 0 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.project-hero-content {
    flex: 1;
    max-width: 600px;
}

.project-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
    margin-bottom: 20px;
}

.project-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 20px;
    line-height: 1.2;
}

.project-hero-description {
    font-size: 1.2rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 30px;
}

.project-hero-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.tech-badge {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(52, 211, 153, 0.3);
    font-weight: 500;
}

.project-hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #60a5fa, #34d399);
    color: white;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.4);
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.8);
    color: #e4e4e7;
    border: 1px solid #334155;
}

.btn-secondary:hover {
    background: rgba(30, 41, 59, 1);
    border-color: #60a5fa;
}

.btn-outline {
    background: transparent;
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.5);
}

.btn-outline:hover {
    background: rgba(96, 165, 250, 0.1);
    border-color: #60a5fa;
}

.project-hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 60px;
}

.project-hero-image {
    width: 100%;
    max-width: 500px;
}

.image-placeholder, .diagram-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background: rgba(30, 41, 59, 0.6);
    border: 2px dashed #334155;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.image-placeholder:hover, .diagram-placeholder:hover {
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.05);
}

/* Sections de contenu */
.project-section {
    padding: 80px 0;
}

.project-section:nth-child(even) {
    background: rgba(15, 23, 42, 0.3);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #f1f5f9;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #60a5fa, #34d399);
    border-radius: 2px;
}

/* Grille de contenu */
.project-content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
}

.content-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.content-block {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.content-block h3 {
    color: #f1f5f9;
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.content-block h4 {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.content-placeholder {
    color: #94a3b8;
    line-height: 1.7;
}

.placeholder-text {
    color: #64748b;
    font-style: italic;
    background: rgba(51, 65, 85, 0.3);
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid #60a5fa;
    margin-bottom: 15px;
}

.info-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 8px;
    padding: 20px;
}

.info-card h4 {
    color: #34d399;
    font-size: 1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sections spéciales */
.architecture-content, .tech-content, .results-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.tech-category {
    background: rgba(51, 65, 85, 0.3);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 8px;
    padding: 20px;
}

.tech-category h4 {
    color: #60a5fa;
    margin-bottom: 10px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.metric-card {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #34d399;
    margin-bottom: 5px;
}

.metric-label {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Navigation entre projets */
.project-navigation {
    padding: 60px 0;
    background: rgba(15, 23, 42, 0.5);
}

.project-nav-arrows {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-arrow {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    max-width: 300px;
}

.nav-arrow:hover {
    color: #34d399;
    border-color: #34d399;
    transform: translateY(-3px);
}

.arrow {
    font-size: 1.5rem;
    color: #60a5fa;
}

.project-info {
    display: flex;
    flex-direction: column;
}

.nav-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 4px;
}

.project-title {
    font-weight: 600;
    color: #f1f5f9;
}

/* Footer */
.project-footer {
    padding: 40px 0;
    border-top: 1px solid rgba(51, 65, 85, 0.5);
    background: rgba(10, 10, 15, 0.8);
}

.footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-links {
    display: flex;
    gap: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
    .project-hero-visual {
        padding-left: 30px;
    }
    
    .project-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .project-nav-links {
        display: none;
    }
    
    .project-hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 0 60px;
    }
    
    .project-hero-visual {
        padding-left: 0;
        margin-top: 40px;
    }
    
    .project-nav-arrows {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-arrow {
        max-width: 100%;
    }
    
    .footer-actions {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .project-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
}

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

.content-block {
    animation: fadeInUp 0.6s ease forwards;
}

.content-block:nth-child(even) {
    animation-delay: 0.2s;
}

.content-block:nth-child(odd) {
    animation-delay: 0.4s;
}