/* =========================================================================
   PORTFOLIO — Template single-projet
   Fichier : css/portfolio-projet.css (dans le thème enfant)
   ========================================================================= */

/* --- Hero image pleine largeur --- */
.projet-hero {
    width: 100%;
    max-height: 560px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.projet-hero img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* --- Wrapper centré --- */
.projet-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

/* --- En-tête projet --- */
.projet-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.projet-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.projet-subtitle {
    font-size: 0.95rem;
    color: #777;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}

/* --- Grille contenu + fiche technique --- */
.projet-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

/* --- Contenu éditeur (colonne gauche) --- */
.projet-content h2,
.projet-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.projet-content p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #333;
    margin-bottom: 1.5rem;
}

.projet-content img {
    width: 100%;
    height: auto;
    margin: 2rem 0;
}

/* --- Fiche technique (colonne droite) --- */
.projet-fiche-technique {
    position: sticky;
    top: 2rem;
    padding: 0;
}

.fiche-row {
    padding: 1rem 0;
    border-top: 1px solid #e0e0e0;
}

.fiche-row:last-child {
    border-bottom: 1px solid #e0e0e0;
}

.fiche-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 0.4rem;
}

.fiche-value {
    display: block;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* --- Responsive : passage en une colonne --- */
@media (max-width: 860px) {

    .projet-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projet-fiche-technique {
        position: static;
        order: -1; /* Fiche technique en premier sur mobile */
    }

    .projet-wrapper {
        padding: 0 1.25rem 3rem;
    }

    .projet-hero {
        max-height: 350px;
    }
}
