/* =============================================================================
   PROJECT VACUUM TUBE STATUS - Styles spécifiques
   ============================================================================= */

/* Hero projet */
.hero-project {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #4a5568 100%);
    min-height: 50vh;
    position: relative;
    overflow: hidden;
}

.hero-project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="vacuum-tube" x="0" y="0" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="8" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/><circle cx="15" cy="15" r="3" fill="rgba(255,255,255,0.03)"/><line x1="15" y1="7" x2="15" y2="23" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23vacuum-tube)"/></svg>') repeat;
    opacity: 0.4;
}

.project-status {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Barre de progression globale */
.project-progress {
    margin-top: 2rem;
    max-width: 400px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #48bb78, #38a169);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Vue d'ensemble */
.project-overview {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.overview-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color, #e2e8f0);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.overview-card:nth-child(2)::before {
    background: linear-gradient(90deg, #48bb78, #38a169);
}

.overview-card:nth-child(3)::before {
    background: linear-gradient(90deg, #ed8936, #dd7324);
}

.overview-card:nth-child(4)::before {
    background: linear-gradient(90deg, #f56565, #e53e3e);
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 2.5rem; /* Réduit de 3rem */
    margin-bottom: 1rem;
    display: block;
}

.overview-card h3 {
    font-size: 1.2rem; /* Réduit de 1.3rem */
    font-weight: 600;
    color: var(--dark-text, #2d3748);
    margin-bottom: 1rem;
}

.overview-card p {
    color: var(--text-color, #4a5568);
    line-height: 1.6;
    font-size: 0.95rem; /* Augmenté */
}

/* Sections de progression */
.progress-section {
    padding: 4rem 0;
}

.phase-category {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color, #e2e8f0);
}

/* Types de phases */
.phase-category.completed {
    border-left: 5px solid #48bb78;
}

.phase-category.in-progress {
    border-left: 5px solid #ed8936;
}

.phase-category.challenging {
    border-left: 5px solid #f56565;
}

.phase-category.planning {
    border-left: 5px solid #667eea;
}

.phase-header {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.phase-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.phase-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-text, #2d3748);
    margin: 0;
}

.phase-status {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.phase-status.completed {
    background: rgba(72, 187, 120, 0.1);
    color: #22543d;
}

.phase-status.in-progress {
    background: rgba(237, 137, 54, 0.1);
    color: #7b341e;
}

.phase-status.challenging {
    background: rgba(245, 101, 101, 0.1);
    color: #742a2a;
}

.phase-status.planning {
    background: rgba(102, 126, 234, 0.1);
    color: #3c366b;
}

.phase-progress {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color, #3182ce);
}

.phase-content {
    padding: 2rem;
    background: white;
}

/* Tests grid */
.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.test-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color, #e2e8f0);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.test-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.test-item.completed {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.08) 0%, rgba(72, 187, 120, 0.03) 100%);
    border-color: rgba(72, 187, 120, 0.3);
    border-left: 4px solid #48bb78;
}

.test-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(72, 187, 120, 0.3);
}

.test-details h4 {
    font-size: 1rem; /* Réduit légèrement */
    font-weight: 600;
    color: var(--dark-text, #2d3748);
    margin: 0 0 0.5rem 0;
}

.test-details p {
    color: var(--text-color, #4a5568);
    font-size: 0.9rem; /* Augmenté de 0.9rem */
    line-height: 1.6;
    margin: 0;
}

/* Défis techniques */
.challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.challenge-item {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e2e8f0);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.challenge-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.challenge-item.solvable {
    border-left: 4px solid #ed8936;
    background: linear-gradient(135deg, #ffffff 0%, rgba(237, 137, 54, 0.02) 100%);
}

.challenge-header {
    background: linear-gradient(135deg, #f7fafc 0%, rgba(237, 137, 54, 0.08) 100%);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.challenge-header h4 {
    font-size: 1rem; /* Réduit de 1.1rem */
    font-weight: 600;
    color: var(--dark-text, #2d3748);
    margin: 0;
}

.difficulty-level {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid;
}

.difficulty-level.easy {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.15) 0%, rgba(72, 187, 120, 0.1) 100%);
    color: #22543d;
    border-color: rgba(72, 187, 120, 0.3);
}

.difficulty-level.medium {
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.15) 0%, rgba(237, 137, 54, 0.1) 100%);
    color: #7b341e;
    border-color: rgba(237, 137, 54, 0.3);
}

.difficulty-level.hard {
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.15) 0%, rgba(245, 101, 101, 0.1) 100%);
    color: #742a2a;
    border-color: rgba(245, 101, 101, 0.3);
}

.challenge-details {
    padding: 1.5rem;
}

.challenge-details p {
    margin: 0.5rem 0;
    line-height: 1.6;
    font-size: 0.9rem; /* Augmenté */
}

.spec-tag {
    background: linear-gradient(135deg, var(--primary-color, #3182ce) 0%, #2c5282 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem; /* Légèrement augmenté */
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(49, 130, 206, 0.2);
}

.cost-note {
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.1) 0%, rgba(245, 101, 101, 0.05) 100%);
    color: #742a2a;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem; /* Augmenté */
    margin-top: 1rem;
    border-left: 3px solid #f56565;
}

/* Défi majeur */
.major-challenge {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color, #e2e8f0);
    overflow: hidden;
}

.challenge-breakdown {
    padding: 2rem;
}

.technical-problem,
.proposed-solution {
    margin-bottom: 2rem;
}

.technical-problem h5,
.proposed-solution h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-text, #2d3748);
    margin-bottom: 1rem;
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.solution-part {
    background: var(--light-bg, #f7fafc);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color, #3182ce);
}

.solution-part h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-text, #2d3748);
    margin-bottom: 0.5rem;
}

.architecture-benefits {
    background: rgba(72, 187, 120, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #48bb78;
}

.benefit-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.benefit-tag {
    background: #48bb78;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Stratégie tubes */
.strategy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.strategy-category {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color, #e2e8f0);
    overflow: hidden;
}

.strategy-category.modern {
    border-left: 4px solid #48bb78;
}

.strategy-category.vintage {
    border-left: 4px solid #ed8936;
}

.strategy-header {
    background: var(--light-bg, #f7fafc);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coverage-level {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.coverage-level.full {
    background: rgba(72, 187, 120, 0.1);
    color: #22543d;
}

.coverage-level.basic {
    background: rgba(237, 137, 54, 0.1);
    color: #7b341e;
}

.strategy-content {
    padding: 1.5rem;
}

.tube-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tube-tag {
    background: var(--dark-text, #2d3748);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

/* Timeline */
.roadmap-section {
    padding: 4rem 0;
    background: var(--light-bg, #f7fafc);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color, #e2e8f0);
}

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid;
}

.timeline-marker.completed {
    background: #48bb78;
    border-color: #48bb78;
}

.timeline-marker.current {
    background: #ed8936;
    border-color: #ed8936;
    box-shadow: 0 0 0 4px rgba(237, 137, 54, 0.2);
}

.timeline-marker.future {
    background: white;
    border-color: var(--border-color, #e2e8f0);
}

/* Opportunités */
.opportunities-section {
    padding: 4rem 0;
}

.opportunity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.opportunity-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e2e8f0);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.opportunity-card.interested {
    border-left: 4px solid #667eea;
}

.opportunity-card.simplified {
    border-left: 4px solid #48bb78;
}

.opportunity-card.enhanced {
    border-left: 4px solid #ed8936;
}

.opportunity-card .card-header {
    background: var(--light-bg, #f7fafc);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-badge.open {
    background: rgba(102, 126, 234, 0.1);
    color: #3c366b;
}

.status-badge.feasible {
    background: rgba(72, 187, 120, 0.1);
    color: #22543d;
}

.status-badge.development {
    background: rgba(237, 137, 54, 0.1);
    color: #7b341e;
}

.opportunity-card .card-content {
    padding: 1.5rem;
}

.contact-options {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Section collaboration */
.collaboration-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.collaboration-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.collaboration-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.collaboration-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.benefit-item {
    text-align: center;
}

.benefit-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .solution-grid,
    .strategy-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .phase-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .test-grid,
    .challenge-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-options {
        flex-direction: column;
    }
    
    .timeline {
        padding-left: 0;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-marker {
        left: 5px;
    }
}

@media (max-width: 480px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .collaboration-benefits {
        grid-template-columns: 1fr;
    }
    
    .hero-project {
        min-height: 40vh;
    }
}