/* ============================================
   REALISATIONS PAGE STYLES
   ============================================ */

/* Timeline Section */
.timeline-section {
    padding: 80px 0;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Ligne verticale de la timeline */
.timeline::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, 
        #90CAF9 0%, 
        #42A5F5 50%, 
        #1565C0 100%);
}

/* Timeline Item */
.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: flex-start;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Année */
.timeline-year {
    position: absolute;
    left: 0;
    width: 70px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1565C0;
    background: white;
    padding: 8px 0;
    z-index: 2;
}

/* Point sur la timeline */
.timeline-item::after {
    content: '';
    position: absolute;
    left: 68px;
    top: 10px;
    width: 24px;
    height: 24px;
    background: white;
    border: 4px solid #42A5F5;
    border-radius: 50%;
    z-index: 3;
    transition: all 0.3s ease;
}

.timeline-item:hover::after {
    transform: scale(1.3);
    border-color: #FF6F00;
}

/* Contenu */
.timeline-content {
    flex: 1;
    margin-left: 120px;
}

/* Project Card */
.project-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #90CAF9;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.project-card.active {
    border-left-color: #4CAF50;
}

.project-card.closed {
    border-left-color: #9E9E9E;
    opacity: 0.85;
}

.project-card.beta {
    border-left-color: #FF6F00;
}

.project-card.featured {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-left-width: 6px;
}

/* Project Header */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

/* Project Image */
.project-image {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project-image:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.project-image:hover img {
    transform: scale(1.05);
}

.project-title {
    font-size: 1.5rem;
    color: #1565C0;
    margin: 0;
}

/* Project Status */
.project-status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #C8E6C9;
    color: #2E7D32;
}

.status-closed {
    background: #e5e5e5;
    color: #666;
}

.status-beta {
    background: #FFE0B2;
    color: #E65100;
}

/* Project Description */
.project-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #424242;
    margin-bottom: 20px;
}

/* Technologies */
.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-badge {
    display: inline-block;
    padding: 8px 16px;
    background: #E3F2FD;
    color: #1565C0;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: #1976D2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

/* PayPal Badge Special */
.paypal-badge {
    background: #0070ba;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.paypal-badge svg {
    width: 18px;
    height: 18px;
}

.paypal-badge:hover {
    background: #005ea6;
    transform: translateY(-2px) scale(1.05);
}

/* Project Features */
.project-features {
    font-size: 0.95rem;
    color: #424242;
    font-style: italic;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 3px solid #90CAF9;
}

/* Project Note */
.project-note {
    font-size: 0.9rem;
    color: #757575;
    font-style: italic;
    margin-top: 15px;
}

/* Project Link */
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1976D2;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
}

.project-link:hover {
    background: #1565C0;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}

.project-link svg {
    width: 18px;
    height: 18px;
}

/* Project Private */
.project-private {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-top: 15px;
}

.project-private svg {
    width: 20px;
    height: 20px;
    color: #757575;
}

.project-private span {
    font-size: 0.9rem;
    color: #424242;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1565C0 0%, #42A5F5 100%);
}

.cta-card {
    text-align: center;
    color: white;
    max-width: 700px;
    margin: 0 auto;
}

.cta-card h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: white;
}

.cta-card p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #FF6F00;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background: #E65100;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

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

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-year {
        position: static;
        width: auto;
        display: inline-block;
        font-size: 1.1rem;
        margin-bottom: 10px;
        padding: 6px 12px;
        background: #E3F2FD;
        border-radius: 6px;
    }
    
    .timeline-item {
        flex-direction: column;
        padding-left: 50px;
    }
    
    .timeline-item::after {
        left: 8px;
        top: 40px;
    }
    
    .timeline-content {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .project-card {
        padding: 20px;
    }
    
    .project-title {
        font-size: 1.3rem;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cta-card h2 {
        font-size: 1.8rem;
    }
    
    .cta-card p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .timeline-section {
        padding: 40px 0;
    }
    
    .project-card {
        padding: 15px;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .project-description {
        font-size: 0.95rem;
    }
    
    .tech-badge {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .project-link {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .cta-card h2 {
        font-size: 1.5rem;
    }
}
