.container_intro{
    margin-top: 15vh;
    width: 100%;
    background-color: #eeeeee;
    display: flex; flex-direction: column; gap: 2vh;
    padding-bottom: 10vh;
    position: relative;
}

.container_intro h1{
    margin-left: 10vw; margin-top: 10vh;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 4.6vw;
}

.container_intro h2{
    margin-left: 10vw;
    font-family: "Smooch Sans", sans-serif;
    font-weight: 600;
    font-size: 3.6vw;
}

.container_intro p{
    margin-left: 10vw;
    font-weight: 500;
    font-size: 1.3vw;
}

.container2{
    display: flex; flex-direction: column; gap: 1vw;
    justify-content: center;
    align-items: center;
    width: 85%;
    margin-left: auto; margin-right: auto;
    padding-top: 10vh; padding-bottom: 10vh;
}

.container_images{
    width: 100%;
    display: flex; gap: 1vw;
}

.big_image{
    width: calc(60% - .5vw); height: 77vh;
    position: relative;
    border: 1px solid #eeeeee;
    box-sizing: border-box;
    background-color: blueviolet;
}

.lil_image{
    width: calc(40% - .5vw); height: 77vh;
    position: relative;
    border: 1px solid #eeeeee;
    box-sizing: border-box;
    background-color: blueviolet;
}

.container2 .reversed{
    flex-direction: row-reverse !important;
}

.overlay{
    opacity: 0;
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    background-color: rgba(0, 0, 0, .5);
    display: flex; flex-direction: column; gap: 4vh;
    justify-content: center; align-items: center;
    transition: all .4s ease-in-out;
}

.overlay:hover{
    opacity: 1;
}

.overlay h1{
    font-size: 3vw;
    font-size: 900;
    color: white;
    text-shadow: 0 0 5px rgba(0, 0, 0, .5);
}

.overlay p{
    font-size: 2vw;
    font-family: "Smooch Sans", sans-serif;
    color: white;
    text-shadow: 0 0 5px rgba(0, 0, 0, .5);
}

.overlay button.open_video{
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    background-color: black;
    text-decoration: underline;
    transition: all .3s ease-in-out;
    cursor: pointer;
}

.overlay button:hover{
    color: black;
    background-color: white;
}

.container_hidden_video{
    position: fixed;
    width: 100vw; height: 100vh;
    top: 0; left: 0;
    background-color: rgba(0, 0, 0, .7);
    z-index: 225;
    display: none; justify-content: center; align-items: center;
}

.container_hidden_video video, .container_hidden_video iframe{
    width: 80vw; aspect-ratio: 16 / 9;
}

.container_hidden_video button{
    border: none; background: none;
    font-size: 2vw; font-weight: 300;
    text-shadow: 0 0 5px rgba(0, 0, 0, .7);
    color: white;
    position: absolute; top: 2vh; right: 5vh;
    cursor: pointer;
    transition: all .3s ease-in-out;
}

.container_hidden_video button:hover{
    font-size: 2vw; font-weight: 500;
    text-shadow: 0 0 8px rgba(0, 0, 0, .7);
}

.container2 > div:nth-of-type(1) > div:nth-of-type(2){
    background: url("../images/realisations/coverMinia2.jpg") no-repeat;
    background-position: center;
    background-size: cover;
}

.container2 > div:nth-of-type(1) > div:nth-of-type(1){
    background: url("../images/realisations/coverMinia1.jpg") no-repeat;
    background-position: center;
    background-size: cover;
}

.container2 > div:nth-of-type(2) > div:nth-of-type(1){
    background: url("https://img.youtube.com/vi/MC3zP3WrKN4/maxresdefault.jpg") no-repeat;
    background-position: center;
    background-size: cover;
}

.container2 > div:nth-of-type(2) > div:nth-of-type(2){
    background: url("../images/realisations/coverMinia4.jpg") no-repeat;
    background-position: center;
    background-size: cover;
}

.container2 > div:nth-of-type(3) > div:nth-of-type(1){
    background: url("https://img.youtube.com/vi/Mz39b4QEtJM/maxresdefault.jpg") no-repeat;
    background-position: center;
    background-size: cover;
}

.container2 > div:nth-of-type(3) > div:nth-of-type(2){
    background: url("../images/realisations/coverMinia6.jpg") no-repeat;
    background-position: center;
    background-size: cover;
}


/************************FORMAT TABLETTE (< 1024px)************************/

@media (max-width: 1024px) {
    .container_intro h1 { font-size: 6vw; }
    .container_intro h2 { font-size: 5vw; }
    .container_intro p  { font-size: 2vw; }
    .overlay h1 { font-size: 4vw; }
    .overlay p  { font-size: 2.5vw; }
    .container_hidden_video button { font-size: 3vw; }
    .big_image, .lil_image { height: 60vh; }
}


/************************FORMAT MOBILE (< 768px)************************/

@media (max-width: 768px) {
    /* Collé directement sous le header fixe : margin-top: 0,
       le fond gris démarre à y=0 (sous le header transparent) */
    .container_intro {
        margin-top: 0;
    }
    /* Le h1 pousse le contenu sous le header (hauteur ≈ 1.7rem + 7.8vw) */
    .container_intro h1 { font-size: 10vw; margin-left: 5vw; margin-top: calc(2rem + 8vw); }
    .container_intro h2 { font-size: 7vw;  margin-left: 5vw; }
    .container_intro p  { font-size: 4vw;  margin-left: 5vw; }

    .container2 {
        width: 95%;
        padding-top: 5vh;
        padding-bottom: 5vh;
        gap: 3vw;
    }
    .container_images {
        flex-direction: column;
        gap: 3vw;
    }
    .big_image, .lil_image {
        width: 100%;
        height: 46vh;
    }

    /* Sur mobile, l'overlay reste visible : pas de hover disponible */
    .overlay {
        opacity: 1;
        background-color: rgba(0, 0, 0, 0.38);
    }
    .overlay h1 { font-size: 6vw; }
    .overlay p  { font-size: 4.5vw; }
    .overlay button.open_video { font-size: 3.5vw; padding: 8px 16px; }

    .container_hidden_video video,
    .container_hidden_video iframe { width: 95vw; }
    .container_hidden_video button { font-size: 7vw; right: 3vw; top: 1.5vh; }
}