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

/* Bannière du projet */
.project-banner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem 1rem;
    background: rgba(7, 9, 18, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    backdrop-filter: blur(18px);
}


.project-title {
    text-align: center;
}

.project-title h2 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.project-category {
    font-size: 1.2rem;
    color: #a0a0a0;
    margin-bottom: 1rem;
}

.project-image-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project-main-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-main-image:hover {
    transform: scale(1.02);
}

/* Aperçu du projet */
.project-overview {
    background: rgba(7, 9, 18, 0.85);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(18px);
}

.overview-content h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.overview-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.project-metadata {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.metadata-item h4 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.technologies-list {
    list-style: none;
    padding: 0;
}

.technologies-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    color: #e0e0e0;
}

.technologies-list li:before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.metadata-item p {
    color: #e0e0e0;
}

.project-link {
    color: var(--accent-color);
    text-decoration: none;
    display: inline-block;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: translateX(5px);
}

/* Fonctionnalités du projet */
.project-features {
    margin-bottom: 3rem;
}

.project-features h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-card {
    background: rgba(7, 9, 18, 0.85);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(18px);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: var(--accent-color);
}

.feature-card:hover .feature-icon,
.feature-card:hover h4 {
    color: #121212;
}

.feature-card:hover p {
    color: #121212;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.feature-card p {
    color: #a0a0a0;
    line-height: 1.5;
}

/* Galerie d'images */
.project-gallery {
    margin-bottom: 3rem;
}

.project-gallery h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    display: block;
    transition: filter 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(1.1);
}

/* Processus de développement */
.development-process {
    margin-bottom: 3rem;
}

.development-process h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: center;
}

.process-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.process-step.reverse {
    direction: rtl;
}

.process-step.reverse .step-content {
    direction: ltr;
}

.step-content h4 {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.step-content p {
    color: #e0e0e0;
    line-height: 1.6;
}

.step-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.step-image img {
    width: 100%;
    height: 300px;
    object-fit: contain;
}

/* Sections Défis et Apprentissages */
.project-challenges,
.project-learning {
    background: rgba(7, 9, 18, 0.85);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(18px);
}

.project-challenges h3,
.project-learning h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: center;
}

.challenges-list,
.learning-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.challenge-item,
.learning-item {
    padding: 1.5rem;
    background: rgba(26, 188, 156, 0.05);
    border-left: 3px solid var(--accent-color);
    border-radius: 8px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.challenge-item:hover,
.learning-item:hover {
    transform: translateX(5px);
    background: rgba(26, 188, 156, 0.1);
}

.challenge-item h4,
.learning-item strong {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.challenge-item p,
.learning-item p {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.challenge-item p strong {
    color: #fff;
    font-weight: 600;
}

/* Métriques dans les projets */
.metrics-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.metrics-list li {
    padding: 0.5rem 0;
    color: #e0e0e0;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
}

.metrics-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-links .project-link {
    display: inline-block;
    margin-top: 0.5rem;
}

/* Conclusion du projet */
.project-conclusion {
    background: rgba(7, 9, 18, 0.85);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(18px);
}

.project-conclusion h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.project-conclusion p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #e0e0e0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn.primary {
    background-color: var(--accent-color);
    color: #121212;
}

.btn.secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.btn.primary:hover {
    background-color: var(--accent-color);
    filter: brightness(1.1);
}

.btn.secondary:hover {
    background-color: var(--accent-color);
    color: #121212;
}

/* Responsive design */
@media (max-width: 992px) {
    .project-metadata,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .process-step {
        grid-template-columns: 1fr;
    }
    
    .process-step.reverse {
        direction: ltr;
    }
    
    .step-image {
        order: 1;
    }
    
    .step-content {
        order: 2;
    }
    
    .project-banner {
        grid-template-columns: 1fr;
    }
    
    .project-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .project-metadata,
    .features-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .metadata-item {
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid #333;
    }
    
    .metadata-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .project-title h2 {
        font-size: 1.8rem;
    }
    
    .project-category {
        font-size: 1rem;
    }
    
    .overview-content h3,
    .project-features h3,
    .project-gallery h3,
    .development-process h3,
    .project-challenges h3,
    .project-learning h3,
    .project-conclusion h3 {
        font-size: 1.5rem;
    }
    
    .challenge-item,
    .learning-item {
        padding: 1rem;
    }
    
    .challenge-item h4,
    .learning-item strong {
        font-size: 1rem;
    }
    
    .challenge-item p,
    .learning-item p {
        font-size: 0.9rem;
    }
}

.project-navigation {
    display: flex;
    justify-content: space-between;
    margin: 4rem 0;
    padding: 0 1rem;
}

.nav-button {
    display: flex !important;
    align-items: center !important;
    padding: 1rem 1.5rem !important;
    background: rgba(7, 9, 18, 0.85) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    border-bottom: none !important;
    color: #e0e0e0 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(18px) !important;
}

.nav-button:hover {
    background-color: var(--accent-color) !important;
    color: #121212 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3) !important;
    border-bottom: none !important;
    text-decoration: none !important;
}

a::after {
    border-bottom: none !important;
}

.nav-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.prev-button .nav-icon {
    margin-right: 0.8rem;
}

.next-button .nav-icon {
    margin-left: 0.8rem;
}

.next-button {
    flex-direction: row-reverse;
}

.nav-text {
    font-weight: 600;
}

/* Responsive pour la navigation entre projets */
@media (max-width: 576px) {
    .project-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-button {
        width: 100%;
        justify-content: center;
    }
}
