@font-face {
    font-family: Papyrus;
    src: url(../fonts/papyrus.ttf);
}

@font-face {
    font-family: Euphemia;
    src: url(../fonts/Euphemia_Regular.ttf);
}

@font-face {
    font-family: Euphemia_Bold;
    src: url(../fonts/Euphemia_Bold.ttf);
}

@font-face {
    font-family: Euphemia_Italic;
    src: url(../fonts/Euphemia_Italic.ttf);
}

body {
    padding: 0;
    margin: 0;
    background-color: #C7CCED;
}

.impair {
    background-color: #000000;
    box-shadow: rgba(59, 66, 110, 0.5) 0px 2px 4px 0px, rgba(59, 66, 110, 0.75) 0px 2px 16px 0px;
}

.pair {
    background-color: #C7CCED;
}

.part {
    padding: 16px 8px;
}

/******** Part 1 :  Logo ********/
/* Global */
#logo {
    z-index: 1;
    position: relative;
}

#logo img {
    display: block;
    margin: auto;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    #logo {
        height: 100px;
        padding: 20px;
    }
    
    #logo img {
        height: 100px;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    #logo {
        height: 125px;
    }
    
    #logo img {
        height: 125px;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {   
    #logo {
        height: 150px;
    }
    
    #logo img {
        height: 150px;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    #logo {
        height: 200px;
    }
    
    #logo img {
        height: 200px;
    }
}

/******** Part 2 :  Photo + Phrase accroche ********/
/* Global */
#accroche {
    position: relative;
    padding: 0 !important;
}

#accroche img {
    display: block;
    margin: auto;
}

#accroche p {
    position: absolute;
    color: black;
    font-family: Papyrus;
    margin: 0 auto;
    text-align: center;
    left: 0;
    right: 0;
    top: 0;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {   
    #accroche img {
        max-width: 100%;
    }
    
    #accroche p {
        padding: 5px;
        max-width: 550px;
        font-size: 20px;
        text-shadow: 3px 3px 3px white;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    #accroche img {
        max-width: 600px;
    }
    
    #accroche p {
        max-width: 580px;
        font-size: 30px;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    #accroche img {
        max-width: 750px;
    }
    
    #accroche p {
        font-size: 40px;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    #accroche img {
        max-width: 900px;
    }
    
    #accroche p {
        font-size: 46px;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {    
    #accroche img {
        max-width: 1000px;
    }
    
    #accroche p {
        margin-top: 32px;
        font-size: 54px;
        max-width: 1000px;
    }
}

/******** Part 3 :  Présentation ********/
/* Global */
#presentation {
    z-index: 1;
    position: relative;
}

#container {
    margin: auto;
}

#presentation #container div {
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: space-evenly;
}

#presentation div img {
    max-width: 300px;
}

#presentation div a {
    color: aqua;
}

#presentation div p {
    color: white;
    text-align: justify;
    width: 100%;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    #container {
        max-width: 100%;
    }

    #presentation #container div {
        flex-direction: column-reverse;
    }

    #presentation div p {
        max-width: 550px;
    }

    #presentation div img {
        width: 100%;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    #container {
        max-width: 600px;
    }

    #presentation #container div {
        flex-direction: column-reverse;
    }

    #presentation div p {
        max-width: 580px;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    #container {
        max-width: 750px;
    }

    #presentation #container div {
        flex-direction: row;
        justify-content: space-between;
    }

    #presentation div p {
        max-width: 430px;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    #container {
        max-width: 900px;
    }

    #presentation div p {
        max-width: 580px;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    #container {
        max-width: 1000px;
    }

    #presentation div p {
        max-width: 650px;
    }
}

/******** Part 4 :  Objectifs ********/
/* Global */
#objectif h2 {
    display: block;
    width: 100%;
    text-align: center;
}

.objectif-card {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1em auto;
    height: 8em;
    max-width: 550px;
    padding: 1em;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    text-align: center;

}

.objectif-card p {
    padding: 1em;
    background-color: rgba(255,255,255,0.8);
}

.hidden-text {
    display: none;
}

.text-focus-in {
	-webkit-animation: text-focus-in 0.25s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
	        animation: text-focus-in 0.25s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

.scale-in-ver-top {
	-webkit-animation: scale-in-ver-top 0.25s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
	        animation: scale-in-ver-top 0.25s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.slide-out-top {
	-webkit-animation: slide-out-top 0.25s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
	        animation: slide-out-top 0.25s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

@-webkit-keyframes text-focus-in {
    0% {
        -webkit-filter: blur(12px);
                filter: blur(12px);
        opacity: 0;
        height: 0;
    }
    100% {
        -webkit-filter: blur(0px);
                filter: blur(0px);
        opacity: 1;
        height: auto;
    }
    }
    @keyframes text-focus-in {
    0% {
        -webkit-filter: blur(12px);
                filter: blur(12px);
        opacity: 0;
        height: 0;
    }
    100% {
        -webkit-filter: blur(0px);
                filter: blur(0px);
        opacity: 1;
        height: auto;
    }
}

@-webkit-keyframes scale-in-ver-top {
    0% {
        -webkit-transform: scaleY(0);
                transform: scaleY(0);
        -webkit-transform-origin: 100% 0%;
                transform-origin: 100% 0%;
        opacity: 1;
    }
    100% {
        -webkit-transform: scaleY(1);
                transform: scaleY(1);
        -webkit-transform-origin: 100% 0%;
                transform-origin: 100% 0%;
        opacity: 1;
    }
    }
    @keyframes scale-in-ver-top {
    0% {
        -webkit-transform: scaleY(0);
                transform: scaleY(0);
        -webkit-transform-origin: 100% 0%;
                transform-origin: 100% 0%;
        opacity: 1;
    }
    100% {
        -webkit-transform: scaleY(1);
                transform: scaleY(1);
        -webkit-transform-origin: 100% 0%;
                transform-origin: 100% 0%;
        opacity: 1;
    }
}

@-webkit-keyframes slide-out-top {
    0% {
        -webkit-transform: translateY(0);
                transform: translateY(0);
        opacity: 1;
        height: 100%;
    }
    100% {
        -webkit-transform: translateY(-1000px);
                transform: translateY(-1000px);
        opacity: 0;
        height: 0;
    }
    }
    @keyframes slide-out-top {
    0% {
        -webkit-transform: translateY(0);
                transform: translateY(0);
        opacity: 1;
        height: 100%;
    }
    100% {
        -webkit-transform: translateY(-1000px);
                transform: translateY(-1000px);
        opacity: 0;
        height: 0;
    }
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .show-hidden-text {
        position: fixed;
        top: 0;
        left: 0;
        text-align: center;
        color: white;
        width: 100%;
        background-color: rgba(0,0,0,0.8);
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        height: 100%;
        max-height: 100%;
    }

    .show-hidden-text h3 {
        margin: 0;
    }

    .show-hidden-text p {
        width: 90%;
        max-width: 550px;
        overflow: scroll;
        margin: 0;
        height: 60%;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    .objectif-card {
        max-width: 580px;
    }

    .objectif-card p {
        font-size: 1.5em;
    }

    .show-hidden-text {
        position: fixed;
        top: 0;
        left: 0;
        text-align: center;
        color: white;
        width: 100%;
        background-color: rgba(0,0,0,0.8);
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        height: 100%;
        max-height: 100%;
    }

    .show-hidden-text h3 {
        margin: 0;
    }

    .show-hidden-text p {
        width: 90%;
        max-width: 750px;
        overflow: scroll;
        margin: 0;
        height: 60%;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    #objectif-list {
        margin: auto;
        max-width: 750px;
        display: flex;
        align-items: center;
        justify-content: center;
        align-content: space-between;
        flex-flow: row wrap;
    }

    .objectif-card {
        flex: 1 1 25%;
        margin: 0.5em;
        cursor: pointer;
    }

    .objectif-card p {
        font-size: 1.25em;
        cursor: pointer;
    }

    .show-hidden-text p {
        text-align: justify;
        width: 100%;
        max-width: 750px;
        overflow: auto;
    }

    .show-hidden-text {
        position: relative;
        top: auto;
        left: auto;
        transform: translate(0, 0);
        padding: 0;
        text-align: center;
        color: black;
        width: 100%;
        max-width: 750px;
        background-color: transparent;
        display: block;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    #objectif-list {
        max-width: 900px;
    }
    
    .show-hidden-text {
        max-width: 900px;
    }

    .show-hidden-text p {
        width: 100%;
        max-width: 900px;
        overflow: auto;
    }

    .show-hidden-text {
        position: relative;
        top: auto;
        left: auto;
        transform: translate(0, 0);
        padding: 0;
        text-align: center;
        color: black;
        width: 100%;
        max-width: 750px;
        background-color: transparent;
        display: block;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    #objectif-list {
        max-width: 1000px;
    }

    .show-hidden-text {
        max-width: 1000px;
    }

    .show-hidden-text p {
        width: 100%;
        max-width: 1000px;
        overflow: auto;
    }
}

/*
#obj-hidden-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 50%;
    left: 50%;
    max-height: 80vh;
    transform: translate(-50%, -50%);
    background-color: rgba(0,0,0,0.8);
    color: white;
    padding: 16px;
    overflow: scroll;
    z-index: 10;
}

#obj-hidden-1 p {
    margin: auto;
    display: block;
    max-width: 1000px;
}
*/

/******** Part 5 :  Forfaits ********/
/* Global */
#forfaits h2, #forfaits p, #forfaits h3 {
    color: white;
    display: block;
    text-align: center;
    margin: auto;
}

#forfait-list {
    margin: auto;
}

.forfait-column {
    -webkit-box-shadow: inset 0px 0px 0px 5px #FFFFFF; 
    box-shadow: inset 0px 0px 0px 5px #FFFFFF;
}

.forfait-column h3 {
    font-size: 32px;
}

.forfait-column p {
    font-size: 24px;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    #forfait-list {
        max-width: 550px;
    }

    .forfait-column {
        margin: 1.667% 0;
        padding: 16px 8px;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    #forfait-list {
        max-width: 580px;
    }

    .forfait-column {
        margin: 1.667% 0;
        padding: 16px 8px;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .forfait-column {
        margin: 1.667%;
        max-width: 27%;
    }
    
    #forfait-list {
        display: flex;
        align-items: center;
        justify-content: center;
        align-content: space-between;
        flex-flow: row wrap;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    #forfait-list {
        max-width: 900px;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    #forfait-list {
        max-width: 1000px;
    }
}


/******** Part 6 :  Avantages financiers ********/
/* Global */
#avantage-financier h2, #avantage-financier a, #avantage-financier p {
    color: black;
    display: block;
    text-align: center;
    max-width: 550px;
    margin: 0 auto;
}

#avantage-financier a {
    color: #5770be;
}

#avantage-financier p {
    text-align: justify;
}

#avantage-financier img {
    width: 100%;
    max-width: 300px;
    display: block;
    margin: auto;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) { }

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) { }

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {    
    #avantage-financier p {
        max-width: 750px;
    }

    #urssaf-service-immediat {
        max-width: 750px !important;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    #avantage-financier p {
        max-width: 900px;
    }

    #urssaf-service-immediat {
        max-width: 900px !important;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) { }


/******** Part 7 : Réseaux sociaux et contact ********/
/* Global */
#contact h2, #contact p {
    display: block;
    margin: auto;
    text-align: center;
    color: white;
}

#rs-container {
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: space-between;
    flex-flow: row wrap;
}

/* Papyrus / Zaffino */

#contact a {
    text-align: center;
    margin: 10px 1.667%;
    color: aqua;
}

#contact a span {
    padding: 0 5px;
}

#contact a span img {
    height: 25px;
    vertical-align: middle;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) { }

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) { }


/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) { }

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) { }

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) { }



/******** Part 8 : Footer ********/
/* Global */
#footer p {
    display: block;
    margin: auto;
    text-align: center;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) { }

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) { }


/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) { }

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) { }

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) { }