body{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 100px;
    margin-top: 0px;
}
header{
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.page-title{
    font-family: 'Montserrat';
    font-size: 5vw;
    font-weight: bold;
    text-align: center;
}
hr{
    width: 50%;
    height: 0.3rem;
    border-radius: 0.1rem;
    background-color: black;
}
main{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.PhotoGallery{
    width: 50%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    align-content: space-evenly;
    gap:0.5rem;

}
.Photobox{
    width: 50%;
    border: 0px solid green
}

img{
    width: 100%;
    color: white;
}

.CrewBox{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 5rem; 
    border: 0px solid firebrick;  
}
.Cast{
    margin-bottom: 5rem;
}
.role{
    font-family: 'Montserrat';
    font-size: 2rem;
    text-align: center;
    line-height: 4rem;
}
.nom{
    font-family: 'Montserrat';
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    line-height: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#LaCasa img{
    width: 50%;
    border-radius: 1rem;
    margin-top: 1.5rem;
}
#asso{
    font-size: var(--taille-departement); /* avant : 3rem - taille commune définie dans styleCommun.css */
}
.VideoBox{
    width: 100%;
    height: 37rem;
}







/*=======================Phones====================================*/

@media (max-width:1300px) {
    body{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 0px;
    margin-top: 0px;
    }
    header{
        width: 92%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .page-title{
        font-family: 'Montserrat';
        font-size: 5vw;
        font-weight: bold;
    }
    hr{
        width: 92%;
        height: 0.3rem;
        border-radius: 0.1rem;
        background-color: black;
    }
    main{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .PhotoGallery{
        width: 92%;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        align-content: space-evenly;

    }
    .Photobox{
        width: 48%;
        border: 0px solid green
    }

    img{
        width: 100%;
        color: white;
    }

    .CrewBox{
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-top: 5rem; 
        border: 0px solid firebrick;  
    }
    .Cast{
        margin-bottom: 5rem;
    }
    .role{
        font-family: 'Montserrat';
        font-size: 2rem;
        text-align: center;
        line-height: 4rem;
    }
    .nom{
        font-family: 'Montserrat';
        font-size: 3rem;
        font-weight: bold;
        text-align: center;
        line-height: 6rem;
    }

    .VideoBox{
        margin-top: 5rem;
    }
}

:where(img[width][height]) { height: auto; } /* ajouté par maj-images-html.ps1 */

/* --- Bouton Retour (identique sur toutes les pages) --- */
.buttonbox{
	width: 100%;
	display: flex;
	align-items: left;
	border: solid rgb(8, 118, 245) 0px;
}
button{
    background-color: rgba(245, 245, 220, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    border: none;
    font-size: 1vw;
    height: fit-content;
    font-family: 'Montserrat';
    font-weight: bold;
    padding: 1rem;
    transition: 0.2s ease-in-out;
    cursor:pointer;
    text-wrap: nowrap;
	border: solid red 0px;
}
button:hover{
    color: green;
    text-shadow: 0.4rem 0.4rem 0rem rgba(0, 128, 0, 0.411);
    opacity: 0.5;
}
@media (max-width:1000px) {
	button{
		font-size: clamp(15px, 3.5vw, 22px);
	}
}

/* <picture> n'a pas de boîte propre : l'image garde la mise en page prévue pour <img> */
picture { display: contents; }

/* --- Téléphones : barre sous le titre plus fine --- */
@media (max-width: 600px) {
    hr{ height: 2.5px; border: none; }
}

/* --- Barre sous le titre : mêmes dimensions que sur Salle Complète --- */
hr{ width: 75%; height: 0.15rem; border: none; border-radius: 1rem; }
@media (max-width:1000px) {
    hr{ width: 92%; }
}

/* --- Tablette / téléphone : moins d espace entre la galerie et les crédits --- */
@media (max-width:1000px) {
    .Crewbox, .CrewBox{ margin-top: 2rem; }
}

/* --- Ordinateur : espace entre la galerie et les crédits harmonisé (~75px) --- */
@media (min-width:1001px) {
    .Crewbox, .CrewBox{ margin-top: 4rem; }
}


/* =====================================================================
   Galerie La Casa (toutes largeurs) :
   photo portrait 9:16 à gauche, les deux photos 16:9 à droite,
   réparties sur la hauteur du portrait (espaces égaux en haut, entre elles, en bas).
   Colonnes 1 : 1.2 -> les deux 16:9 laissent ~3 espaces égaux sur la hauteur du portrait.
   ===================================================================== */
.GrilleLaCasa{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    column-gap: 0.5rem;
    align-items: stretch;
}
.GrilleLaCasa .Photobox{ width: 100%; }
.GrilleLaCasa img{ display: block; width: 100%; height: auto; }
.ColonnePaysages{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

/* La zone principale prend toute la largeur : la galerie (50% sur ordinateur, 92% sur téléphone)
   a ainsi la même largeur que sur les autres pages projet, et le player YouTube la suit. */
main{ width: 100%; }
/* Cette page passait en mode "téléphone" dès 1300px (les autres pages : 1000px).
   Au-dessus de 1000px, la galerie reprend donc la largeur des autres pages (50%). */
@media (min-width:1001px) {
    .PhotoGallery{ width: 50%; }
}

/* =====================================================================
   Espacements alignés sur les autres pages projet
   (mesurés sur Ballade, Couleur Sang, TADA... : crédits -> player 32px tél. / 48px ordi,
    player -> bas de page ~124px tél. / 100px ordi)
   ===================================================================== */
/* Crédits -> player YouTube (avant : 8px) */
body .PhotoGallery .VideoBox{ margin-top: 1.5rem; } /* + 0.5rem de gap de la galerie = 2rem (32px) */
@media (min-width:1001px) {
    body .PhotoGallery .VideoBox{ margin-top: 2.5rem; } /* = 3rem (48px) */
}
/* Player -> bas de page (avant : 0px sur téléphone) */
@media (max-width:1300px) {
    body{ margin-bottom: 7.75rem; } /* 124px */
}
@media (min-width:1001px) {
    body{ margin-bottom: 100px; }
}

/* Au sein des crédits (CrewBox) :
   avant, 80px de vide entre le logo "La Casa" et l'équipe -> comme Ligne 53 / WCD / SOYYO (40px) */
.Cast{ margin-bottom: 2.5rem; }
#LaCasa img{ margin-top: 0.75rem; } /* "Association" -> logo : avant 1.5rem */
