
/* /////////////////////////////////////////////////////////////////////////////
                                                                GENERAL STYLE
//////////////////////////////////////////////////////////////////////////////*/

/* /////// COLORS (font & background) */
body {
    background-color: #FBF2EA;
    color: #434343;
}

/* h1, h2 {
    color: white;
} */

h3, h4 {
    color: #AA492A;
}

figcaption {
    color: #8E8E8E;
}

/* ///////// Fonts  */

body {
    font-family: 'Overpass', Courier, monospace;
    font-size: 1em;
    font-weight: 300;
}

h1 {
    font-size: 1em;

}

h3 {
    font-family: 'Fantasque sans mono', sans-serif;
    font-size: 1.6em;
    font-weight: 400;
}

h4 {
    font-family: 'Fantasque sans mono', sans-serif;
    font-size: 1.2em;
    font-weight: 400;
}

figcaption {
    font-style: italic;
}

.def {
    font-size: 0.9em;
    font-style: italic;
    font-weight: 300;
}



/* /////////////////////////////////////////////////////////////////////////////
                                                                        HEADER
//////////////////////////////////////////////////////////////////////////////*/


header {
    display:none !important;
    position: fixed;
    width: 80vw;
    padding: 0 10vw;
    height: 5vh;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    background-color: white;
}

header :nth-child(1n+2) {
    margin-left: 2vw;
}


/* /////////////////////////////////////////////////////////////////////////////
                                                                    NAV DU HAUT
//////////////////////////////////////////////////////////////////////////////*/

#nav_pages {
    position: fixed;
    width: 95vw;
    margin-left: 2.5vw;
    bottom: 5vh;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
}

#nav_pages button {
    background-color: #e3bfb030;
    width: 8vw;
    border: none;
    padding: 2vh 1.5vw;
    cursor: pointer;
    text-decoration: underline;
}

#nav_pages button:first-child {
    background: url(../assets/mini-fleche_left.svg) no-repeat;
    background-position: 10% 45%;
    text-align: right;
}


#nav_pages button:last-child {
    background: url(../assets/mini-fleche_right.svg) no-repeat;
    background-position: 90% 45%;
    text-align: left;
}


/* /////////////////////////////////////////////////////////////////////////////
                                                                GENERAL LAYOUT
//////////////////////////////////////////////////////////////////////////////*/

#wrapper {
    margin-top: 6vh;
	display: flex;
	flex-flow: column nowrap;
}

iframe {
    border: #AA492A 1px solid;
}
/* ////////////////////////////////////////////////////////////////////// */
/* Section = part I */
#wrapper section {
    /* display: none; */
	flex: 0 auto;
    width: 80vw;
    margin-left: 10vw;
    margin-bottom: 10vh;
}

section.visible {
    display: inline-block !important;
}

/* ////////////////////////////////////////////////////////////////////// */
/* partie = part I.1 */
h4 {
    margin-top: 0.5em;
}

.partie {
    /* display: none; */
    width: 100%;
    border-top: 1px solid #8E8E8E;
}

.partie.visible {
    display: inline-block !important;
}

/* ////////////////////////////////////////////////////////////////////// */
/* sous-partie = part I.1.a */
.sous-partie {
    /* display: none; */
    margin-top: 2vh;
    border-top: 1px solid #e3bfb030;
}

.sous-partie.visible {
    display: flex;

	flex-flow: row wrap;
	justify-content: space-between;
}

/* Tous les H5 prennent toute la largeur */
.sous-partie h5 {
    flex: 1 0 100%;
}
.index-paragraph {
    position: relative;
    color: #AA492A;
    margin-left: -3vw;
    padding-right: 2vw;
}




/* ////////////////////////////////////////////////////////////////////// */
/* étape = part I.1.a.§1 */
.etape {
	display: flex;
	flex-flow: column nowrap;
    align-items: center;
    margin-top: 12vh;
}

.etape p {
    margin-bottom: 2vh;
    opacity: 1;
    /* animation: drop-down 0.5s ease-out forwards; */
}

.etape

.etape figure {
    height: 55vh;
}

.etape img {
    max-width: 100%;
}

.etape.full-width {
    flex: 1 0 70%;
    padding: 0;
}

.etape figcaption {
    transition: 0.2s ease-out;
    margin-top: -1vh;
    opacity: 0;
}

.etape figure:hover figcaption {
    margin-top: 1vh;
    opacity: 1;
}





/* /////////////////////////////////////////////////////////////////////////////
                                                             LAYOUT SOUS-PARTIES
//////////////////////////////////////////////////////////////////////////////*/

/* sous-partie, layout 1 element */
.layout1 div {
	flex: 0 1 70%;
    padding: 0 15%;
}

.proto {
    padding: 0 !important;

}

.layout1 .etape {
	margin-top: 8vh;
}

.layout1 > :nth-child(1n+1) figure {
    opacity: 1;
    /* animation: appears 0.5s ease-in 1s forwards ; */
}


/* sous-partie, layout 2 elements */
.layout2 div {
	flex: 0 1 40%;
}

/* ///// Animation */
.layout2 > :nth-child(1n+1) figure {
    opacity: 1;
    /* animation: appears 0.3s ease-in 1s forwards ; */
}


.layout2 > :nth-child(1n+2) figure {
    opacity: 1;
    /* animation: appears  0.3s ease-in 3s forwards ; */
}




/* sous-partie, layout 3 elements */
.layout3 div {
	flex: 0 0 30%;
}

/* ///// Animation */
.layout3 > :nth-child(3n+1) figure {
    opacity: 1;
    /* animation: appears 0.3s ease-in 1s forwards ; */
}

.layout3 > :nth-child(3n+2) figure {
    opacity: 1;
    /* animation: appears  0.3s ease-in 2.5s forwards ; */
}

.layout3 > :nth-child(3n+3) figure {
    opacity: 1;
    /* animation: appears  0.3s ease-in 4s forwards ; */
}




/* /////////////////////////////////////////////////////////////////////////////
                                                               ANNIMATION
//////////////////////////////////////////////////////////////////////////////*/

/* @keyframes appears {
    from {
        opacity: 0;
    } 
    to {
        opacity: 1;
    }
}

@keyframes drop-down {
    0% {
        margin-top: -1vh;
    } 
    20% {
        opacity: 0;
    } 
    100% {
        opacity: 1;
        margin-top: 0vh;
    }
}
 */
