.projet-detail-container {
    flex: 1;
    padding: 8rem 4rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.projet-detail-back-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
}

.projet-detail-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #2b3a87 0%, #4a6fa5 100%);
    color: var(--text-white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.projet-detail-back:hover {
    background: linear-gradient(135deg, #3545a0 0%, #5a80c5 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(74, 111, 165, 0.35);
}

.projet-detail-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

/* Layout principal */
.projet-detail-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Colonne gauche - Informations */
.projet-detail-sidebar {
    background: rgba(20, 26, 55, 0.6);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 193, 219, 0.1);
    position: sticky;
    top: 7rem;
}

.projet-detail-logo {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.projet-detail-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.projet-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.projet-detail-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.75rem 0.5rem;
    margin: 0 -0.5rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.projet-detail-info-item:hover {
    background: rgba(74, 111, 165, 0.07);
}

.projet-detail-info-item + .projet-detail-info-item {
    border-top: 1px solid rgba(184, 193, 219, 0.07);
}

.projet-detail-info-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 600;
}

.projet-detail-info-value {
    font-size: 1rem;
    color: var(--text-white);
    font-weight: 500;
}

a.projet-detail-collaborator {
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

a.projet-detail-collaborator::after {
    content: "↗";
    font-size: 0.8rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

a.projet-detail-collaborator:hover {
    color: #4a6fa5;
}

a.projet-detail-collaborator:hover::after {
    opacity: 1;
}

.projet-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.projet-detail-tag {
    font-size: 0.85rem;
    color: var(--text-white);
    background: rgba(74, 111, 165, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    border: 1px solid rgba(74, 111, 165, 0.4);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.projet-detail-tag:hover {
    background: rgba(74, 111, 165, 0.45);
    border-color: rgba(74, 111, 165, 0.65);
}

.projet-detail-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(184, 193, 219, 0.1);
}

.projet-detail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #2b3a87 0%, #4a6fa5 100%);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.projet-detail-link:hover {
    background: linear-gradient(135deg, #3545a0 0%, #5a80c5 100%);
    transform: translateY(-2px);
}

.projet-detail-link img {
    width: 20px;
    height: 20px;
}

.projet-detail-link.github {
    background: rgba(184, 193, 219, 0.1);
}

.projet-detail-link.github:hover {
    background: rgba(184, 193, 219, 0.2);
}

/* Colonne droite - Contenu principal */
.projet-detail-main {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.projet-detail-section {
    background: rgba(20, 26, 55, 0.6);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 193, 219, 0.1);
}

.projet-detail-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    padding-left: 0.75rem;
    border-bottom: 1px solid rgba(184, 193, 219, 0.1);
    border-left: 3px solid #4a6fa5;
}

.projet-detail-section p {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.projet-detail-section p:last-child {
    margin-bottom: 0;
}

/* Galerie de captures d'écran */
.projet-detail-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
    margin-top: 1rem;
}

.projet-detail-screenshot {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(184, 193, 219, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: zoom-in;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.2);
}

.projet-detail-screenshot:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(74, 111, 165, 0.3);
    border-color: rgba(74, 111, 165, 0.4);
}

.projet-detail-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.projet-detail-screenshot:hover img {
    transform: scale(1.04);
}

/* Liste de fonctionnalités */
.projet-detail-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.projet-detail-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.6;
}

.projet-detail-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 5px;
    height: 5px;
    background: linear-gradient(135deg, #2b3a87, #4a6fa5);
    border-radius: 50%;
}

/* Lightbox pour les images */
.projet-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.projet-lightbox.active {
    display: flex;
}

.projet-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.projet-lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--text-white);
    cursor: pointer;
    background: none;
    border: none;
    transition: transform 0.3s ease;
}

.projet-lightbox-close:hover {
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .projet-detail-content {
        grid-template-columns: 280px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .projet-detail-container {
        padding: 7rem 2rem 2rem;
    }

    .projet-detail-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .projet-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projet-detail-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: 1.5rem;
        align-items: start;
    }

    .projet-detail-logo {
        margin-bottom: 0;
    }

    .projet-detail-links {
        border-top: none;
        margin-top: 1rem;
        padding-top: 0;
    }

    .projet-detail-gallery {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .projet-detail-title {
        font-size: 2rem;
    }

    .projet-detail-sidebar {
        grid-template-columns: 1fr;
    }

    .projet-detail-logo {
        max-width: 200px;
        margin: 0 auto 1rem;
    }

    .projet-detail-section {
        padding: 1.5rem;
    }

    .projet-detail-section p {
        font-size: 1rem;
    }
}
