/*********************BOX AVEC GROS TITRE ET VIDEO***********************/
.box_video{
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex; justify-content: center; align-items: center; 
}

.box_video .video_bg {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100vw; height: 100vh;
  z-index: 0;
  object-fit: cover;
}

.box_video h1{
    position: absolute; left: 27vw; top: 40vh;
    z-index: 1;
    font-weight: 900;
    font-size: 3.6vw;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, .6);
}

.box_video .negative_title{
    position: absolute; left: 27vw; top: 70vh;
    z-index: 1;
    font-weight: 900;
    font-size: 3.6vw;
    color: white;
    mix-blend-mode: difference;
    white-space: nowrap;
  overflow: hidden;
    height: 10vh; width: 50vw;
}

/*.negative_title span {
  position: absolute;
  width: 100%;
  opacity: 0;
  animation: fadeText 12s infinite;
}

.negative_title span:nth-child(1) { animation-delay: 0s; }
.negative_title span:nth-child(2) { animation-delay: 3s; }
.negative_title span:nth-child(3) { animation-delay: 6s; }
.negative_title span:nth-child(4) { animation-delay: 9s; }

@keyframes fadeText {
  0%, 20% { opacity: 1; transform: translateY(0); }
  25%, 100% { opacity: 0; transform: translateY(-20%); }
}*/




/*********************SAVOIR FAIRE + PHOTO MATOS***********************/
.container2{
    display: flex; justify-content: center;
    gap: 2vw;
    width: 85vw; height: 250vh;
    margin-left: auto; margin-right: auto; margin-top: 10vh;
    padding-bottom: 10vh;
}

.container2 .container2_1{
    flex: 1;
    height: 100%;
    display: flex; flex-direction: column; justify-content: center;
}

.container2 .container2_1 h1{
    font-size: 2.5vw;
    font-weight: 800;
}

.container2 .container2_1 h2{
    font-size: 3vw;
    margin-top: 5vh;
    font-family: "Smooch Sans", sans-serif;
}

.container2 .container2_1 h3{
    font-family: "Smooch Sans", sans-serif;
    font-size: 2vw;
    margin-top: 8vh;
}

.container2 .container2_1 p{
    font-family: "Smooch Sans", sans-serif;
    font-size: 1.7vw;
    margin-top: 3vh;
    color: #222;
    text-align: left;
}

.container2 .container2_2{
    flex: 1;
    height: 180vh;
    display : flex; flex-wrap : wrap; /*justify-content: center; align-items: center;*/
    gap: .5vw;
}

.container2 .container2_2 .deux_carres{
    width: 31%; height: 62%;
    display: flex; flex-direction: column;
    gap: .5vw;
}

.container2 .container2_2 .deux_carres div{
    flex: 1;
    width: 100%;
    background-color: red;
}

.petit_carre{
    width: 31%; height: calc(38% - .5vw);
    background-color: red;
}

.grand_vertical{
    width: calc(62% + .5vw); height: 62%;
    background-color: red;
}

.grand_horizontal{
    width: calc(62% + .5vw); height: calc(38% - .5vw);
    background-color: red;
}

.container2_2 > div:nth-child(1)
{
    background: url("../images/accueil/DSC05199.webp") no-repeat;
    background-position: center;
    background-size: cover;
}

.container2_2 > div:nth-child(2)
{
    background: url("../images/accueil/DSC05207.webp") no-repeat;
    background-position: center;
    background-size: cover;
}

.container2_2 > div:nth-child(3)
{
    background: url("../images/accueil/DSC05221.webp") no-repeat;
    background-position: center;
    background-size: cover;
}

.container2_2 > div:nth-child(4) > div:nth-child(1)
{
    background: url("../images/accueil/DSC05316.webp") no-repeat;
    background-position: center;
    background-size: cover;
}

.container2_2 > div:nth-child(4) > div:nth-child(2)
{
    background: url("../images/accueil/DSC05292.webp") no-repeat;
    background-position: center;
    background-size: cover;
}

.container2_2 > div:nth-child(5)
{
    background: url("../images/accueil/DSC05239.webp") no-repeat;
    background-position: center;
    background-size: cover;
}

.container2_2 > div:nth-child(6)
{
    background: url("../images/accueil/DSC05276.webp") no-repeat;
    background-position: center;
    background-size: cover;
}



/*********************ILS NOUS ONT FAIT CONFIANCE***********************/
.container3{
    width: 100vw;
    background-color: #222;
}

.container3 h1{
    color: white;
    text-align: center;
}

.logo_clients{
    width: 100vw;
    display: flex; justify-content: center; align-items: flex-end;
    flex-wrap: wrap; gap: 7vw;
    margin-top: 5vh;
    padding-bottom: 10vh;
}

.logo_clients > div{
    display: flex; flex-direction: column;
    justify-content: space-between; align-items: center;
}

.logo_clients .texte {
    margin-top: auto;
    text-align: center;
}

.logo_clients p{
    margin-top: 4vh;
    text-align: center;
    font-size: 1.4vw;
    font-weight: 200; letter-spacing: -1px;
    color: white;
}

.logo1 .images{
    display: flex; justify-content: center; align-items: center;
    gap: 5vw;
}

.logo1 .images p{
    font-size: 2vw;
    font-weight: 300;
    margin-top: 0 !important;
}

.logo1 .images .image1{
    aspect-ratio: 1/1;
    width: 15vw;
    background: url("../images/accueil/logo_clients/ritz.png") no-repeat;
    background-position: center;
    background-size: contain;
}

.logo1 .images .image2{
    aspect-ratio: 1763/211;
    width: 15vw;
    background: url("../images/accueil/logo_clients/logo-pfw.png") no-repeat;
    background-position: center;
    background-size: contain;
}

.logo2 .image{
    aspect-ratio: 1920/2191;
    width: 15vw;
    background: url("../images/accueil/logo_clients/JO.png") no-repeat;
    background-position: center;
    background-size: contain;
}

.logo3 .image{
    aspect-ratio: 860/564;
    width: 15vw;
    background: url("../images/accueil/logo_clients/fashion_TV.png") no-repeat;
    background-position: center;
    background-size: contain;
}

.logo4 .image{
    aspect-ratio: 395/130;
    width: 20vw;
    background: url("../images/accueil/logo_clients/o_Sullivan.png") no-repeat;
    background-position: center;
    background-size: contain;
}


/************************FORMAT TABLETTE (< 1024px)************************/

@media (max-width: 1024px) {
    .box_video h1 {
        font-size: 4.5vw;
        left: 10vw;
    }
    .box_video .negative_title {
        font-size: 4.5vw;
        left: 10vw;
        width: 80vw;
    }
    .container2 {
        width: 95vw;
    }
    .container2 .container2_1 h1 { font-size: 3vw; }
    .container2 .container2_1 h2 { font-size: 3.5vw; }
    .container2 .container2_1 h3 { font-size: 2.5vw; }
    .container2 .container2_1 p  { font-size: 2vw; }
    .logo_clients p { font-size: 2vw; }
    .logo1 .images .image1,
    .logo2 .image,
    .logo3 .image { width: 18vw; }
    .logo4 .image { width: 25vw; }
    .logo1 .images p { font-size: 3vw; }
}


/************************FORMAT MOBILE (< 768px)************************/

@media (max-width: 768px) {
    .box_video h1 {
        font-size: 9vw;
        left: 50%;
        top: 50vh;
        transform: translateX(-50%);
        text-align: center;
        width: 90vw;
        line-height: 1.2;
    }
    .box_video .negative_title {
        font-size: 9vw;
        left: 50%;
        top: 75vh;
        transform: translateX(-50%);
        width: 90vw;
        text-align: center;
    }

    .container2 {
        flex-direction: column;
        height: auto;
        width: 90vw;
        margin-top: 5vh;
        padding-bottom: 5vh;
        gap: 5vh;
    }
    .container2 .container2_1 {
        height: auto;
    }
    .container2 .container2_1 h1 { font-size: 6.5vw; }
    .container2 .container2_1 h2 { font-size: 7vw;   margin-top: 3vh; }
    .container2 .container2_1 h3 { font-size: 5.5vw; margin-top: 4vh; }
    .container2 .container2_1 p  { font-size: 4.2vw; line-height: 1.6; margin-top: 1.5vh; }

    /* Grille 2 colonnes pour les photos */
    .container2 .container2_2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 44vw;
        gap: 2.5vw;
        width: 100%;
        height: auto;
        flex-wrap: unset;
    }
    .container2 .container2_2 > div {
        width: 100% !important;
        height: 100% !important;
        min-height: 0;
    }
    /* deux_carres : une seule cellule avec 2 images empilées */
    .container2 .container2_2 .deux_carres {
        display: flex;
        flex-direction: column;
        gap: 2.5vw;
        height: 100% !important;
    }
    .container2 .container2_2 .deux_carres > div {
        flex: 1;
        width: 100%;
        height: auto !important;
    }

    .logo_clients {
        gap: 8vw;
        padding-bottom: 6vh;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .logo_clients p { font-size: 3.5vw; }
    .logo1 .images .image1,
    .logo2 .image,
    .logo3 .image { width: 32vw; }
    .logo4 .image { width: 42vw; }
    .logo1 .images p { font-size: 5vw; }
    .logo1 .images { gap: 3vw; }
}