/* ===== PAGE DÉTAILS PROJET - STYLE IMMERSIF ===== */

/* Configuration */
:root {
    --primary-color: #CF8CD6;
    --text-dark: #333;
    --text-grey: #666;
    --bg-light: #f9fbfc;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #CF8CD6 0%, #9e6cbd 100%);
}

body {
    background-color: var(--bg-light);
}

.main-content {
    padding: 0 0 4rem 0; /* Pas de padding en haut pour le banner */
    max-width: 100%;
}

/* --- BANDEAU D'EN-TÊTE --- */
.project-header-banner {
    background: var(--bg-light);
    padding: 4rem 2rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 3rem;
}

.project-category-tag {
    display: inline-block;
    padding: 6px 16px;
    background: white;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(207, 140, 214, 0.15);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.project-title-large {
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.1;
}

/* Bouton Retour Flottant */
.back-nav {
    position: absolute;
    top: 100px; /* Ajusté selon ton header */
    left: 40px;
    z-index: 10;
}

.btn-back-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    color: var(--text-dark);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.btn-back-circle:hover {
    transform: translateX(-5px);
    color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* --- CONTENEUR PRINCIPAL DU PROJET --- */
.project-detail-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Image plus large que le texte */
    gap: 4rem;
    align-items: start;
}

/* Colonne Visuelle */
.project-visual-col {
    position: relative;
}

.main-project-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Colonne Informations */
.project-info-col {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    position: sticky;
    top: 100px; /* Colle au scroll */
}

.info-section h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.info-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.project-desc-long {
    font-size: 1.05rem;
    color: var(--text-grey);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

/* Métadonnées (Date, Outils...) */
.meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.meta-item h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.meta-item p {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.project-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tag-pill {
    padding: 6px 14px;
    background: #fdf5fe;
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(207, 140, 214, 0.2);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .project-detail-wrapper {
        grid-template-columns: 1fr; /* Une seule colonne */
        gap: 3rem;
    }

    .project-info-col {
        position: static; /* Ne colle plus au scroll */
        padding: 2rem;
    }

    .project-title-large {
        font-size: 2.5rem;
    }

    .back-nav {
        top: 20px;
        left: 20px;
        position: relative; /* Remet dans le flux */
        margin-bottom: 1rem;
        display: inline-block;
    }
}