/* Styles spécifiques aux pages de projet */

/* Hero section */
.project-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    background: linear-gradient(to bottom, var(--bg-color), var(--secondary-bg));
}

.project-header {
    max-width: 800px;
}

.project-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.project-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Project content */
.project-details {
    padding: 4rem 0;
}

.project-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.project-main-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 2rem;
}

.project-image-large {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.project-image-large img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.project-description,
.project-features,
.project-challenges,
.project-video {
    margin-bottom: 3rem;
}

.project-description h2,
.project-features h2,
.project-challenges h2,
.project-video h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.project-features ul {
    padding-left: 1.5rem;
}

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

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

/* Vidéo du projet */
.project-video video {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Sidebar */
.project-sidebar {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 2rem;
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(74, 144, 226, 0.2);
    padding-bottom: 0.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.info-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.info-value {
    text-align: right;
}

.technology-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.technology-tags span {
    background: rgba(74, 144, 226, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.sidebar-link {
    display: block;
    padding: 0.8rem 1rem;
    background: rgba(74, 144, 226, 0.2);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.sidebar-link:hover {
    background: var(--primary-color);
}

/* Navigation links */
.navigation-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.navigation-links .nav-link {
    display: block;
    padding: 0.8rem 1rem;
    background: rgba(74, 144, 226, 0.2);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    transition: var(--transition);
}

.navigation-links .nav-link:hover {
    background: var(--primary-color);
}

/* Gallery */
.project-gallery {
    margin-bottom: 4rem;
}

.project-gallery h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Related Projects */
.other-projects h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.related-project-card:hover {
    transform: translateY(-5px);
}

.related-project-image {
    height: 180px;
    overflow: hidden;
}

.related-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.related-project-content {
    padding: 1.5rem;
}

.related-project-content h3 {
    margin-bottom: 0.5rem;
}

.related-project-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.related-project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

/* Mini Player Styles */
.mini-player {
    position: fixed;
    bottom: 20px;
    right: -300px;
    width: 300px;
    background: rgba(20, 20, 30, 0.9);
    border-radius: 10px 0 0 10px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: right 0.3s ease;
}

.mini-player.active {
    right: 0;
}

.mini-player-toggle {
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20, 20, 30, 0.9);
    border: none;
    border-radius: 5px 0 0 5px;
    color: white;
    padding: 10px 5px;
    cursor: pointer;
}

.mini-player-toggle i {
    transition: transform 0.3s ease;
}

.mini-player.active .mini-player-toggle i {
    transform: rotate(180deg);
}

.mini-player-header {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-player-cover {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    margin-right: 15px;
}

.mini-player-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mini-player-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.mini-player-artist {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.mini-player-controls {
    display: flex;
    justify-content: space-between;
    padding: 15px;
}

.mini-player-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.mini-player-btn:hover {
    opacity: 1;
}

.mini-player-progress {
    padding: 0 15px 15px 15px;
}

.mini-player-progress-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2.5px;
    position: relative;
}

.mini-progress-end-point {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--primary-color);
    border-radius: 2.5px;
    width: 0%;
}

/* Utilisez pointer-events: none sur .fade-in et pointer-events: auto sur les éléments enfants */
.fade-in {
    pointer-events: none;
}

.fade-in * {
    pointer-events: auto;
}

/* Responsive */
@media (max-width: 992px) {
    .project-content-grid {
        grid-template-columns: 1fr;
    }
    
    .project-sidebar {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .project-header h1 {
        font-size: 2.5rem;
    }
    
    .project-main-content,
    .project-sidebar {
        padding: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .mini-player {
        width: 250px;
    }
}

/* Animation pour la galerie d'images */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 144, 226, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}