@import url('reset.css');
@import url('font-awesome.min.css');
@import url('fonts.css');

/*   
    ======================
            Global    
    ======================
*/

html {
    font-size: 10px;
    font-size: 62.5%;
}

body {
    background: #2b83c0;
    font-family: 'nexa_lightregular', Verdana, sans-serif;
    margin: 0;
}

body {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

#page_04 h1, .bandeau h2, #page_04 .item.bloc .info p {
    font-family: 'nexa_boldregular', Verdana, sans-serif;
    font-weight: 700;
}

/* =================== */

#page_04 {
    background-color: #ffffff;
    background-image: url(/images/fond-flocon.jpg);
    background-size: 100%;
    background-repeat: no-repeat;
}

/* pour fixer le fond, avec jquery */
.fixed {
    background-attachment: fixed;
}

#page_04 h1 {
    font-size: 4.5rem;
    color: black;
    text-align: center;
    padding: 3rem 0 0.8rem 0;
}


/* ====== Photos  ====== */
#page_04 .row {
    margin: 0 auto;
    padding: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: distribute;
    justify-content: space-around;
}

.photos {
    width: 100%;
    padding: 2rem 8rem;
}

.photos .item {
    position: relative;
    -webkit-transition: all 0.35s ease-in-out;
    transition: all 0.35s ease-in-out;
}

.photos .item a {
    color: #333;
}

.photos .item.clic a {
    text-decoration: none;
}

.photos .item img {
    width: 100%;
    height: 100%;
}


/* =======  Partie visible  ======== */
#page_04 {
    padding-bottom: 6rem;
}

#page_04 .item.bloc {
    position: relative;
}

.bandeau {
    position: absolute;
    bottom: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
}

.legende {
    position: relative;
    width: 100%;
}

/* légendes avec lignes bleues */
.bandeau h2 {
    font-size: 2rem;
    margin: 0;
    width: 100%;
    color: blue;
    background: -webkit-linear-gradient(45deg, #1ad2ea 10%, #1d99db 90%);
    background: linear-gradient(45deg, #1ad2ea 10%, #1d99db 90%);
    padding: 2rem 0 2rem 3rem;
}

/* conteneur cercle + flèche */
.bouton {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    padding-right: 2rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
}

/* icône cercle */
.cercle {
    position: relative;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border: 2px solid white;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

/* icône flèche*/
.fa-chevron-up {
    font-size: 2rem;
    text-align: center;
    color: white;
    text-shadow: 0.3rem 0.1rem 0.5rem gray;
}

#page_04 .item.bloc .info {
    position: absolute;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}


/* === texte qui s'affiche lors du clic === */
#page_04 .item.bloc {
    overflow: hidden;
}

#page_04 .item.bloc a {
    cursor: pointer;
}

#page_04 .item.bloc.colored .info {
    background: #1a4a72;
    background: rgba(15, 44, 129, 0.6);
}

#page_04 .item.bloc .img {
    -webkit-transition: all 0.35s ease-in-out;
    transition: all 0.35s ease-in-out;
    -webkit-transform: scale(1);
    transform: scale(1);
}

#page_04 .item.bloc .info {
    background: #333333;
    background: rgba(0, 0, 0, 0.6);
    visibility: hidden;
    opacity: 0;
    -webkit-transition: all 0.35s ease-in-out;
    transition: all 0.35s ease-in-out;
}

#page_04 .item.bloc .info p {
    position: relative;
    padding: 0 3rem 8rem 3rem;
    text-align: left;
    font-size: 1.8rem;
    line-height: normal;
    color: white;
}

#page_04 .item.bloc.clic a .img {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
}

#page_04 .item.bloc.clic a .info {
    visibility: visible;
    opacity: 1;
}

#page_04 .item.bloc .info {
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
}

#page_04 .item.bloc.clic a .info {
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

#page_04 .item.bloc .fa-chevron-up {
    -webkit-transition: all 0.35s ease-in-out;
    transition: all 0.35s ease-in-out;
}

/* Preset pour flèches animées */
@-webkit-keyframes bob {
    0% {
        -webkit-transform: translateY(-6px);
        transform: translateY(-6px);
    }
    50% {
        -webkit-transform: translateY(0px);
        transform: translateY(0px);
    }
    100% {
        -webkit-transform: translateY(-6px);
        transform: translateY(-6px);
    }
}

@keyframes bob {
    0% {
        -webkit-transform: translateY(-6px);
        transform: translateY(-6px);
    }
    50% {
        -webkit-transform: translateY(0px);
        transform: translateY(0px);
    }
    100% {
        -webkit-transform: translateY(-6px);
        transform: translateY(-6px);
    }
}

@-webkit-keyframes bob-float {
    100% {
        -webkit-transform: translateY(-6px);
        transform: translateY(-6px);
    }
}

@keyframes bob-float {
    100% {
        -webkit-transform: translateY(-6px);
        transform: translateY(-6px);
    }
}
/* Flèche qui s'anime lors du clic */
#page_04 .item.bloc.clic a .fa-chevron-up {
    -webkit-animation-name: bob-float, bob;
    animation-name: bob-float, bob;
    -webkit-animation-duration: .3s, 1.5s;
    animation-duration: .3s, 1.5s;
    -webkit-animation-delay: 0s, .3s;
    animation-delay: 0s, .3s;
    -webkit-animation-timing-function: ease-out, ease-in-out;
    animation-timing-function: ease-out, ease-in-out;
    -webkit-animation-iteration-count: 1, infinite;
    animation-iteration-count: 1, infinite;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -webkit-animation-direction: normal, alternate;
    animation-direction: normal, alternate;
}

/*   
    ======================
         Media Query    
    ======================
*/

/* ============================= */
@media (max-width: 1280px) {
    #page_04 .item.bloc .info p {
        padding: 0 2rem 8rem 2rem;
    }
}
/* ============================= */
@media (max-width: 960px) {
    #page_04 .row {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        -ms-grid-row-align: center;
        align-items: center;
    }
    .photos {
        width: 85%;
    }
}
/* ============================= */
@media (max-width: 768px) {
    .photos {
        width: 90%;
    }
    .bandeau h2 {
        font-size: 3rem;
        padding: 3rem 1rem;
    }
}
/* ============================= */
@media (max-width: 640px) {
    .photos {
        
        padding: 2rem 2.5rem;
    }
    #page_04 .item.bloc .info p {
        font-family: 'nexa_lightregular', Verdana, sans-serif;
    }
    .bandeau h2 {
        font-size: 2rem;
        padding: 2rem 1rem;
    }
}
/* ============================= */
@media (max-width: 480px) {
    .photos {
        width: 95%;
        padding: 2rem;
    }
    #page_04 .item.bloc .info p {
        font-size: 1.6rem;
        padding: 0 3rem 5rem 3rem;
    }
}
/* ============================= */
@media (max-width: 360px) {
    .photos {
        padding: 1.75rem 1rem;
     }
    #page_04 .item.bloc .info p {
        font-size: 1.5rem;
        padding: 0 3rem 5.5rem 3rem;
    }
}
/* ============================= */
@media (max-width: 320px) {
    .photos {
        padding: 1.5rem 0.6rem;
     }
    #page_04 .item.bloc .info p {
        font-size: 1.4rem;
        padding: 0 3rem 4rem 3rem;
    }
    .bandeau h2 {
        padding: 1.5rem 1rem;
    }
}