/* Styles pour les pages de détail de projet */

.project-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.project-header {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.2);
}

.project-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.project-header h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.project-header:hover h2::after {
    width: 100%;
}

.project-date {
    display: inline-block;
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 1rem;
    vertical-align: middle;
}

.tech-stack {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-stack span {
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tech-stack span:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

.project-description {
    line-height: 1.8;
    color: var(--text-color);
}

.project-description h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.project-description h3::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 3px;
}

.project-description p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.project-description ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.project-description li {
    margin-bottom: 0.5rem;
    position: relative;
}

.project-description li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.project-status {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(var(--primary-color-rgb), 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.project-status h3 {
    margin-top: 0;
}

.project-status p {
    margin-bottom: 0;
}

.project-process, .project-casestudy {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-process:hover, .project-casestudy:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.project-process h3, .project-casestudy h3 {
    margin-top: 0;
    color: var(--text-color);
}

.project-process h3::before, .project-casestudy h3::before {
    display: none;
}

.cta-button {
    display: inline-block;
    padding: 12px 25px;
    margin-top: 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button.secondary {
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-5px);
}

/* Responsive styles */
@media (max-width: 768px) {
    .project-header h2 {
        font-size: 2rem;
    }
    
    .project-date {
        display: block;
        margin: 1rem 0 0;
    }
    
    .project-process, .project-casestudy {
        padding: 1.2rem;
    }
}

/* Animation d'entrée pour les sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-header,
.project-description h3,
.project-description p,
.project-description ul,
.project-process,
.project-casestudy,
.project-status,
.cta-button {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.project-header { animation-delay: 0.1s; }
.project-process { animation-delay: 0.2s; }
.project-casestudy { animation-delay: 0.3s; }
.project-description h3:nth-of-type(1) { animation-delay: 0.4s; }
.project-description p:nth-of-type(1) { animation-delay: 0.45s; }
.project-description h3:nth-of-type(2) { animation-delay: 0.5s; }
.project-description ul:nth-of-type(1) { animation-delay: 0.55s; }
.project-description h3:nth-of-type(3) { animation-delay: 0.6s; }
.project-description ul:nth-of-type(2) { animation-delay: 0.65s; }
.project-status { animation-delay: 0.7s; }
.cta-button { animation-delay: 0.8s; }