html {
    scroll-behavior: smooth;
    padding: 0;
    margin: 0;
}


body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.2;
    background-image: url(./images_parrain/fond.png);
    background-repeat: no-repeat;
    background-position-x: right;
    background-color: #fefefe;
    color: #333333;
}

header {
    width: 100%;
    position: relative;
    display: flex;
    margin: 0;
}

#logo {
    height: 60px;
    padding: 15px;
}



/**************** Main BLoc 1 **************/

.container {
    height: auto;
    max-width: 1300px;
    display: flex;
    margin: auto;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-top: 20px;
    position: relative;
    justify-content: center;
}

.container_txt {
    height: auto;
    width: 50%;
    margin: 20px;
    position: relative;
    padding-left: 5%;
}

h1 {
    font-size: 47px;
}

#p_title {
    font-size: 25px;
}

#bloc_un {
    margin-bottom: 3%;
    animation: SlideUp;
    animation-iteration-count: 1;
    animation-duration: 1.3s;
}

.span-img {
    height: auto;
    width: 18%;
    vertical-align: middle;
}


.container_img {
    width: 50%;
    height: auto;
    display: flex;
    justify-content: center;
}

#hello_guy {
    margin-right: -40%;
}


.container_btn {
    width: 100%;
    height: auto;
}

.btn_primary {
    border: 3px solid #0689D9;
    border-radius: 50px;
    background-color: #0689D9;
    color: white;
    transition-duration: 300ms;
    height: auto;
    width: 40%;
    padding: 18px;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.btn_primary:hover {
    background-color: #0277c0;
}

.container_btn_down {
    margin-top: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
}


.btn_secondary {
    background-color: white;
    border: none;
}

#down {
    position: relative;
    max-width: 30px;
    margin-top: 15px;
    animation-duration: 0.5s;
    animation-name: glissement;
    animation-direction: alternate;
    animation-iteration-count: infinite;
}


a {
    height: auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    height: auto;
    width: 100%;
    padding: 15px;
    font-size: 20px;
    color: #333333;
}

.link_logo {
    height: auto;
    width: auto;
    display: flex;
    padding: 0;
}

.rocket {
    position: fixed;
    height: auto;
    width: auto;
    margin-left: 93%;
    margin-top: 30%;
    z-index: 999;
    transition: all 0.3s ease-in-out;
    opacity: 0;
}

#rocket {
    width: auto;
    height: 70px;
    padding: 10px;
    z-index: 9999;
    transition: all 0.3s ease-in-out;
}

#rocket:hover {
    transform: translateY(-30px);
}


.rocket.scroll {
    display: block !important;
    transition: all 0.3s ease-in-out;
    opacity: 1;
}




/*********** animation btn down ************/


@keyframes glissement {
    from {
        top: 0;
    }

    to {
        top: 10%;
    }
}


/*********** animation bloc un ************/

@keyframes SlideUp {
    from {
        visibility: hidden;
        opacity: 0;
        transform: translateY(80px);
    }

    to {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
}


/*************** CARDS ***************/

h2 {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
}

.container_bloc {
    width: 95%;
    height: auto;
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    margin-top: 3%;
}


#bloc {
    font-size: 20px;
    width: 65%;
    margin: auto;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

.container_bloc_card {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    background-image: url(./images_parrain/fond_cards.png);
    background-repeat: no-repeat;
    background-position-y: 70%;
    margin-top: 1%;
}

#questionguy {
    height: auto;
    width: 30%;
    position: absolute;
    left: -25px;
    top: 40px;
}

.card {
    position: relative;
    margin-top: 9%;
    height: auto;
    width: 22%;
    background-color: #0689D9;
    text-align: left;
    padding: 30px;
    padding-top: 50px;
    padding-bottom: 50px;
    border-radius: 20px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
}

.number_card {
    background-color: #0689D9;
    border: solid 6px white;
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 75px;
    height: 75px;
    position: absolute;
    top: -45px;
    font-size: xx-large;
    font-weight: bold;
    box-shadow: 1px -4px 10px rgba(0, 0, 0, 0.1);
}


.p_card {
    color: white;
    padding: 20px;
    padding-bottom: 10px;
}



/******** parrainage **********/


.container_parrainage {
    height: auto;
    width: 100%;
    margin-top: 7.5%;
    padding-top: 4%;
    padding-bottom: 4%;
    background-color: #DAE6EC;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 20px;
}

.container_txt_parrainage {
    height: auto;
    width: 60%;
    margin-bottom: 2%;
}

.container_btn_parrainage {
    width: 45%;
    height: auto;
    display: flex;
    justify-content: center;
}

#partage {
    height: auto;
    width: 10%;
    position: absolute;
    left: 80%;
    top: 60px;
}


/************ Container footer ****************/




.container_left {
    width: 15%;
    height: 10%;
    position: relative;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}



#logo_foot {
    height: 70px;
    width: auto;
}

.container_right {
    width: 40%;
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}


.container_foot {
    height: auto;
    max-width: 1300px;
    display: flex;
    margin: auto;
    padding-top: 60px;
    padding-bottom: 40px;
    margin-top: 20px;
    justify-content: space-around;
}

.txt_foot {
    padding-top: 50px;
}

#lien_foot {
    text-decoration: none;
    padding: 0;
    height: auto;
    font-size: 17px;
}



/******************* BREAKPOINT *****************/

/* tablette */
@media only screen and (min-device-width : 805px) and (max-device-width : 1080px) {

    .rocket.scroll {
        display: none !important;
    }

    #bloc_un {
        display: flex;
        flex-direction: column;
    }

    .container_txt {
        padding-left: 0;
        width: 70%;
    }

    .container_img {
        width: 50%;
        height: 90%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #img_phone {
        margin-top: 5%;
        margin-left: 12%;
        margin-bottom: 5%;
    }


    .container {
        align-items: center;
    }


    h1 {
        font-size: 45px;
    }

    #p_title {
        font-size: 25px;
    }

    button {
        font-size: 17px;
    }

    #card {
        width: 95%;
        margin-top: 5%;
        margin-bottom: 5%;
    }


    .card {
        padding-bottom: 30px;
    }

    .container_btn_down {
        margin-top: -25px;
    }

    #questionguy {
        margin-left: 3%;
    }

}




/* phone*/
@media screen and (min-device-width : 340px) and (max-device-width : 804px) {

    .rocket.scroll {
        display: none !important;
    }

    body {
        margin: 0;
        font-family: Helvetica, sans-serif;
        background-image: url(./images_parrain/fond_phone.png);
        background-repeat: no-repeat;
        background-position-x: right;
    }

    .btn_primary {
        width: 60%;
    }

    #bloc_un {
        margin-top: 3%;
        display: flex;
        flex-direction: column;
    }

    .container_txt {
        padding-left: 0;
        width: 10%;
    }

    .container_btn_down {
        padding-top: 10%;
    }

    .container_bloc_card {
        justify-content: center;
        margin-top: 10%;
    }

    .container_bloc {
        align-items: center;
    }

    #card {
        align-items: center;
    }

    .card {
        width: 80%;
        margin-bottom: 10%;
        margin-top: 10%;
    }

    .p_card {
        padding: 15px;
    }



    #bloc {
        font-size: 15px;
        width: 100%;
    }

    .container_btn {
        margin-top: 32px;
    }


    .container_img {
        width: 80%;
        height: 40%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 32px;
    }

    #hello_guy {
        width: 90%;
        height: auto;
        margin-right: -80px;
    }

    .container {
        align-items: center;
    }


    h1 {
        font-size: 30px;
    }

    #p_title {
        font-size: 15px;
    }

    button {
        font-size: 15px;
    }

    #card {
        width: 95%;
        text-align: center;
    }


    .card {
        padding-bottom: 30px;
    }

    .container_btn_down {
        margin-top: -25px;
    }

    .btn_secondary {
        font-size: 15px;
    }


    h2 {
        width: 90%;
    }


    .container_bloc_card {
        margin-top: 0;
        background-image: url(./images_parrain/fond_phone_card.png);
        background-position: center;
        padding-bottom: 7%;
    }

    #card1 {
        margin-top: 30%;
    }

    #questionguy {
        display: none;
    }

    .container_parrainage {
        margin-top: 0;
        width: 90%;
    }

    .container_txt_parrainage {
        text-align: left;
        height: auto;
        width: 90%;
        padding-top: 7%;
        padding-bottom: 2%;
    }

    .container_btn_parrainage {
        height: auto;
        width: 90%;
        margin-bottom: 7%;
    }

    #partage {
        height: auto;
        width: 20%;
        top: -25px;
        margin-left: -10%;
    }


    .container_foot {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 350px;
    }

    .container_left {
        align-items: center;
        width: 95%;
        height: auto;
    }

    .container_right {
        width: 90%;
        padding-top: 20px;
    }

    /* #img_phone {
        display: none;
    } */

    .container_txt {
        width: 90%;
    }

}

/*************** grand ecran ***********/

@media (min-width:1920px) {
    #bloc_un {
        margin-top: 80px;
    }

    .container_btn_down {
        margin-top: 176px;
    }

    .container_bloc {
        margin-top: 120px;
    }

    #container_partage {
        margin-top: 152px;
    }

    .container_foot {
        margin-top: 120px;
    }
}