/* =========================================================
   PAGE PROJET — Le Bouillon Culte
   La typo (h2, p2, caption, text-muted…) vient de index.css.
   Ici : seulement la mise en page et quelques ajustements.
   ========================================================= */

.page-projet {
    padding-top: 40px;
}


/* ---------- Vidéo en tête, calée à droite ---------- */
.video-cadre {
    margin-left: auto;       /* collé à droite */
    border-left: 1px solid var(--couleur-gris);
    border-bottom: 1px solid var(--couleur-gris);
    padding-left: 40px;
    padding-bottom: 20px;
    margin-bottom: 90px;
    box-sizing: border-box;  /* bordures + padding comptés dans la taille */
}

.format-video { 
    width: 77%;
     height: 44vh; } 
     
.format-image { width: 66%; height: 55vh; margin-top:  -70px;}   /* même hauteur que les vidéos */
   
.video-cadre video,
.video-cadre img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;       /* remplit le cadre sans déformer */
}


/* ---------- Numéro + titre ---------- */
.titre-projet {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 90px;
}

.numero {
    flex: 0 0 auto;
    font-family: var(--police-titre);
    font-size: 32px;
}

.titre-projet .h2 {
    line-height: 1.05;
}


/* ---------- Texte + contributeurs ---------- */
.description {
    display: flex;
    gap: 64px;
    align-items: flex-start;
    margin-bottom: 90px;
}

.description-texte {
    flex: 1;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.description-texte p {
    max-width: 478px;
    line-height: 1.6;
    text-align: left;
}

.contributeurs {
    flex: 0 0 320px;
}

.contributeurs .caption {
    margin-bottom: 12px;
}

.contributeur {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid var(--couleur-gris);
}

.contributeur:last-child {
    border-bottom: 1px solid var(--couleur-gris);
}

.contributeur p {
    font-size: 14px;
}


/* ---------- Galerie photo ---------- */
.plein-écran img{
    width: 100%;
    height: 100%;
}
.galerie {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
    width: 100%;
}

.galerie-grande img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.galerie-cote {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.galerie-legendes {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.galerie-cote img {
    width: 100%;
    height: auto;
    background: #f4e3e0;
}


/* =========================================================
   TABLETTE — 800px à 1199px
   ========================================================= */
@media (max-width: 1199px) {

    .titre-projet {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 40px;
    }

    .titre-projet .h2 {
        font-size: 32px;
    }

    .description {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 40px;
    }

    .contributeurs {
        flex: 0 0 auto;
    }

    .description-texte p {
        max-width: 100%;
    }

    .galerie,
    .galerie-cote {
        gap: 16px;
    }

    .galerie-grande img {
        min-height: 0;
        height: auto;
    }
}


/* =========================================================
   MOBILE — jusqu'à 799px
   ========================================================= */
@media (max-width: 799px) {

    .page-projet {
        padding-top: 16px;
    }
    .video-cadre {
        width: 100%;
        padding-left: 0;
        border-left: none;
    }

    .video-cadre,
    .titre-projet,
    .description {
        margin-bottom: 24px;
    }

    .titre-projet .h2 {
        font-size: 22px;
    }

    .description-texte p {
        font-size: 15px;
        text-align: left;
    }

    .galerie {
        grid-template-columns: 1fr;
    }

    .galerie-grande img {
        min-height: 220px;
    }
}
