@import url('https://fonts.googleapis.com/css2?family=Poppins&family=Varela+Round&display=swap');

:root{
    --rouge:#ba3333;
    --rougeclair:#d47a7a;
    --rougefonce:#660b0b;
    --jaune:#ebad11;
    --vert:#3b7a50;
    --bleu:#1d948e;
    --bleuclair:#e6f8fc;
    --blancbg: rgba(255, 255, 255, 0.9);
    --blanccasse: #e8e8e8;
}

html, body{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    font-size:16px;
}

body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


main{
    flex-grow: 1;
}

footer{
    height: 300px;
}

h1{
    color: var(--rouge);
}

.responsive{
    width: 900px;
    margin: 0 auto;
}

.responsive2{
    width: 1200px;
    margin: 0 auto;
}

/*-----------HEADER-------------*/

header{
    border-bottom: 4px solid #ab1616;
    background-image: url(images/bureau.jpg);
    background-color: #fff;
    background-position: center top;
    background-size:contain;
    background-repeat: no-repeat;
}

#logo{
    position: absolute;
    margin-left: -55px;
    left: 50%;
    top: 28px;
}

#logo img{
    width: 100px;
}


#menu{
    height: 200px;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
    font-size: 1.1em;
    font-family: 'Varela Round', sans-serif;
}

#menu ul{
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
}


.btn{
    list-style-type: none;
    flex-grow: 1;
    border-right: #dedede 2px solid;
    height: 20px;
    text-align: center;
}

.btn a{
    color: #ab1616;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn a:hover{
    color: #dc9d9d;
}


.btn:last-child{
    border: none;
}


.btn svg{
    fill: #ab1616;
    transition: 0.3s;
}

.btn svg:hover{
    fill: #d47a7a;
}


/*-----------MAIN CONTENT-------------*/

/*-----------Home Page-------------*/

 main.homepage{

    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--blanccasse);
}


.homepage section#S1{
    width: 100%;
    z-index: 1;
    background-image: url(images/wavem.svg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right;
    position: relative;
}

#S1 .motif{
    position: absolute;
    height: 100%;
    width: 100%;
    background-image: url(images/bg2.svg);
    background-size: 60px;
    padding-bottom: 100px;
}

.mosaique{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    font-size: 0.9em;
    position: relative;
    padding-bottom: 150px;
}

.mosaique .photo{
    height: 320px;
    flex-basis: 30%;
    flex-grow: 1;
}

.mosaique .photo:nth-child(1){
    flex-basis: 68%;
    background: url(images/photos/entretien6.jpg);
    background-size: cover;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.mosaique .photo:nth-child(2){
    flex-basis: 32%;
    background:url(images/photos/expression2.jpg);
    background-size: cover;
}

.mosaique .photo:nth-child(3){
    flex-basis: 34%;
}

.mosaique .photo:nth-child(4){
    flex-basis: 34%;
    background:url(images/photos/reportage6.jpg);
    background-size: cover;
    background-position: center 25%;
}

.mosaique .photo:nth-child(5){
    flex-basis: 32%;
    background-color: var(--rouge);
    background-size: cover;
    padding: 30px;
    color: #fff;
    box-sizing: border-box;
}

.mosaique h3{
    margin: 0 0 5px 0;
}

.mosaique .encartblanc{
    background-color: rgba(255, 255, 255, 0.90);
    width: 50%;
    box-sizing: border-box;
    padding: 30px;
    height: 100%;
}


.homepage section#S2{
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: var(--blanccasse);
    flex-wrap: wrap;
    z-index: 2;
}

#S2 .motif{
    width: 100%;
    background-image: url(images/bg2.svg);
    background-size: 60px;
    padding-bottom: 60px;
}

.homepage .texte{
    padding: 20px 0px 120px 0px;
    font-size: 1em;
    color: #6f86a3;
    text-shadow: 0px 0px 5px #e8e8e8, 0px 0px 5px #e8e8e8, 0px 0px 5px #e8e8e8;
}

.homepage .texte li{
    font-weight: bold;
    list-style: inside url(images/arrow.svg);
    margin: 5px 0;
}

.bandeau{
    max-width: 100%;
    overflow: hidden;
    padding: 50px 0;
    margin-top: -100px;
    display: flex;
    justify-content: center;
}

.rotation{
    min-width: 105%;
    display: flex;
    justify-content: center;
    background-color: #738C88;
    transform: rotate(2deg);
    border-top: 8px solid var(--jaune);
}

.rotation img{
    max-width: 100%;
    max-height: 140px;
}

.homepage section#S3{
    position: relative;
    margin-top: -80px;
    overflow: hidden;
    width: 100%;
    padding: 30px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 3;
    background-image: url(images/bureaubg.jpg);
    background-size: cover;
    border-top: 8px solid var(--bleu);
}

.sep{
    padding: 30px;
    position: relative;
}

.alterneflex{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.separateur{
    position: absolute;
    right: 50%;
    align-items: center;
    height: 92%;
    width: 1px;
    background-color: #bac4c4;
    display: none;
}

.box{
    font-size: 0.9em;
    flex-basis: 50%;
    padding: 20px;
    box-sizing: border-box;
    color: #ffffff;
    margin: 20px 0;
    text-shadow: 2px 2px 10px 
    rgba(0,0,0,0.3);
}

.box ul{
    padding: 0 10px;
}

.box h3{
    padding-left: 30px;

}
.box:nth-child(4n+1){
    border-radius: 10px 0 0 10px;
    background-image: linear-gradient(150deg, 
    rgba(165,181,182,1) 10%, 
    rgba(165,181,182,0) 100%);
    background-color: #a5b5b6;
    box-shadow: 2px 2px 10px 
    rgba(0,0,0,0.2);
    transition: 0.3s;
}

.box:nth-child(4n+1):hover{
    background-color: #718586;
    box-shadow: 5px 10px 20px 
    rgba(0,0,0,0.5);
}

.box:nth-child(4n+4){
    border-radius: 0 10px 10px 0;
    background-image: linear-gradient(210deg, 
    rgba(165,181,182,1) 10%, 
    rgba(165,181,182,0) 100%);
    background-color: #a5b5b6;
    box-shadow: 2px 2px 10px 
    rgba(0,0,0,0.2);
    transition: 0.3s;
}

.box:nth-child(4n+4):hover{
    background-color: #718586;
    box-shadow: 5px 10px 20px 
    rgba(0,0,0,0.5);
}


/*-----------Actions-------------*/

main.actions{
    max-width: 100%;
    background-color: var(--blanccasse);
    background-repeat: no-repeat;
    background-position: right;
    background-size: cover;
}

.actions .motif{
    background: url(images/bg2.svg);
    background-size: 70px;
    height: 100%;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

.actions section{
    background: var(--blancbg);
    flex-grow: 1;
    margin-top: -30px;
    margin-bottom: -30px;
    padding: 50px;
    box-sizing: border-box;
}


.penchetete{
    height: 200px;
    min-width: 110%;
    transform: rotate(3deg);
    margin-top: -50px;
    background-color: #ffffff;
    background-image: url(images/motif1.png);
    background-size: 70px;
    border-bottom: var(--bleu) 7px solid;
}

.penchepied{
    height: 200px;
    min-width: 110%;
    transform: rotate(3deg);
    margin-bottom: -50px;
    background-color: #ffffff;
    background-image: url(images/motif1.png);
    background-size: 70px;
    border-top: var(--bleu) 7px solid;
}

.actionscontainer{
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.blocactions{
    width: 45%;
    height: 155px;
    margin: 10px 0;
    text-decoration: none;
}

.blocactions .fiche{
    position: relative;
    overflow: hidden;
    background: #1d948e;
    box-sizing: border-box;
    border: #aec7ca 2px solid;
    border-radius: 10px;
    width: 100%;
    height: 150px;
    margin: 5px 0 0 0;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
    transition: 0.2s;
}

.blocactions:hover .fiche{
    margin: 0 0 5px 0;
    box-shadow: 5px 10px 10px rgba(0,0,0,0.3);
    background: #b6dee2;
}

.fiche h2{
    color: #fff;
    position: relative;
    margin: 0;
    z-index: 1;
    padding: 10px;
    text-shadow: 2px 2px 2px #000000;
}

.fiche img{
    object-fit: cover;
    position: absolute;
    width: 100%;
    min-height: 100%;
    z-index: 0;
    transition: 0.2s;
}


.blocactions .fiche .mobile{
    position: absolute;
    height: 150%;
    width: 150%;
    background: linear-gradient( 
        #ffffff, 
        #7a9aa6);
    border-radius: 150px;
    top: 100%;
    left: 0%;
    transform: rotate(-45deg);
    z-index: 0;
    transition: 0.2s;
}

.blocactions:hover .fiche .mobile{
    top: 80%;
    left: -20%;
    transform: rotate(45deg);
    text-align: right;
}

.blocactions .fiche .mobile2{
    position: absolute;
    height: 150%;
    width: 150%;
    background: linear-gradient(-90deg,
        #dfcbcb, 
        var(--rouge) 40%);
    border-radius: 150px;
    top: 98%;
    left: -4%;
    transform: rotate(-43deg);
    z-index: 0;
    transition: 0.2s;
}

.blocactions:hover .fiche .mobile2{
    top: 50%;
    left: -30%;
    transform: rotate(45deg);
}

/*-----------Actions2-------------*/

.actions2{
    background-color: var(--blanccasse);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.actions2 .bgcontent{
    position: absolute;
    Top: 0;
    bottom: 0;
    background-color: rgba(255,255,255, 0.6);
}

.actions2 .motif{
    position: relative;
    background-image: url(images/bg2.svg);
    background-size: 65px;
    background-repeat: repeat;
    width: 100%;
    height: 100%;

}

.actions2 .marge{
    padding: 200px 30px;
    box-sizing: border-box;
}

.waveh1{
    position: absolute;
    top: 0;
    min-width: 100%;
}

.waveh2{
    position: absolute;
    bottom: 0;
    
}

/*-----------Page-------------*/

main.page{
    background: url(images/bg2.svg);
    background-size: 70px;
    background-color: var(--blanccasse);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9em;
}

.page section{
    background: var(--blancbg);
    flex-grow: 1;
}

.page h1, .page h2, .page h3, .page h4{
    color: var(--rouge);
}

.page .texte{
    padding: 20px 70px;
}

.page .texte a{
    color: var(--rouge);
    transition: 0.3s;
}

.page .texte a:hover{
    color: var(--rougeclair);
}

.video{
    position: relative;
    margin: 30px 50px;
    padding-bottom:56.25%;
    height:0;
    overflow:hidden;
}

.entete{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    min-width: 100%;
    height: 300px;
}

img.bloctete{
    object-fit: cover;
}

.bloctete{
    width: 50%;
    box-sizing: border-box;
    height: 150px;
}

.entete h1 {
    color: #ffffff;
    font-size: 2em;
    text-shadow: 2px 2px 3px 
    rgba(0,0,0,0.4);
    padding: 0 40px;
    text-align: center;
}

.bloctete:nth-child(2){
    background-color: var(--rouge);
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(images/bg1.svg);
    background-size: 150px;
    border-radius: 0 0 0 100px;
}

.bloctete:last-child{
    height: 300px;
}

.enplein{
    width: 100%;
    height: 300px;
    object-fit: cover;
    padding: 20px 0;
}

.enpied{
    display: flex;
    width: 100%;
    height: 200px;
    padding-top: 40px;
}

.enpied img{
    width: 50%;
    object-fit: cover;
}

/*-----------Contact-------------*/

.contactcontainer{
    width: 100%;
    
}

.carte{
    width: 75%;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 30px;
}

/*-----------FOOTER-------------*/

footer{
    padding-top: 5px;
    background: linear-gradient(90deg, 
    rgba(186,51,51,1) 0%,
    rgb(202, 122, 122) 50%, 
    rgba(186,51,51,1) 100%);
    text-align: center;
}

.footergradient{
    height: 100%;
    width: 100%;
    background: radial-gradient(circle, 
    rgba(186,51,51,1) 0%, 
    rgba(142,29,29,1) 100%);
}

.footercontent{
    position: relative;
    text-align: center;
    font-size: 0.9em;
    color: #f4cbcb;
    padding-top: 100px;
    box-sizing: border-box;
    height: 100%;
    width: 100%;
    background-image: url(images/bg1.svg);
    background-size: 150px;
}

.btn_foot{
    color: #d88e8e;
    text-decoration: none;
    font-size: 0.9em;
    transition: 0.4s;
}

.btn_foot:hover{
    color: #e0b9b9;
}

.return{
    position: relative;
}

.return a{
    position: absolute;
    top: -50px;
    right: -70px;
    z-index: 10;
}

.return a svg{
    fill: rgba(255,255,255, 0.3);
    transition: 0.3s;
 }

 .return a svg:hover{
    fill: rgba(255,255,255, 0.6);
 }


 @media (max-width: 1200px) {

    .responsive2{
        width: 95%;
    }

}

@media (max-device-width: 1000px) {

    .return a{
        right: 2%;
    }

}


@media (max-width: 900px) {

    .responsive{
        width: 95%;
    }

    

}

@media (max-device-width: 770px) {
    .mosaique{
        font-size: 1.65em;
    }

    .homepage .texte {
        font-size: 0.9em;
    }

    .mosaique .photo:nth-child(1n){
        flex-basis: 100%;
    }
    .mosaique .photo:nth-child(3){
        display: none;
    }

    .mosaique .encartblanc{
        width: 100%;
    }

    .blocactions{
        width: 90%;
        
    }

    .box:nth-child(4n+1), .box:nth-child(4n+4){
        flex-basis: 100%;
        border-radius: 20px;
        padding: 40px;
        font-size: 0.9em;
    }

    footer{
        height: 500px;
    }

    .footercontent{
        font-size: 1.8em;
    }

    #menu {
        height: 500px
    }

    #logo{
        top: 60px;
        margin-left: -100px;
    }

    #logo img{
        width: 200px;
    }

    #menu ul{
        font-size: 2em;
        margin-top: -40px;

    }

}