﻿article {
    height: 100%;
    display: block;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-top-style: solid;
    border-top-width: 1px;
    border-top-color: rgba(255,255,255,0.5);
}

    article:first-of-type {
        border-top-width: 0;
        background-image: url('../Images/blasonlouvignies.jpg');
        background-size: cover;
    }

    article[id='presentation'] {
        background-image: url('../Images/vilianelegas.png');
        background-size: contain;
        background-position: bottom;
    }

    article[id='paris'] {
        background-image: url('../Images/paris_helene_low.jpg');
    }

    article[id='cesar'] {
        background-image: url('../Images/cesar_cleopatre_low.jpg');
    }

    article[id='achille'] {
        background-image: url('../Images/achille_low.jpg');
    }

    article[id='soldat'] {
        background-image: url('../Images/retraitedunsoldat_low.jpg');
    }

    article[id='bacchus'] {
        background-image: url('../Images/bacchus_low.jpg');
    }

    article[id='putti'] {
        background-image: url('../Images/putti_low.jpg');
    }

    article[id='proserpine'] {
        background-image: url('../Images/prosperpine_low.jpg');
    }

    article[id='alexandre'] {
        background-image: url('../Images/alexandre_low.jpg');
        background-size: 140%;
    }

    article[id='contact'] {
        background-image: url('../Images/groupe.jpg');
        background-position: center 20%;
    }

    article content {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        position: relative;
        overflow: hidden;
        position: relative;
        background-color: rgba(0,0,0,0.6);
    }

.TopSection, .MiddleSection, .BottomSection {
    width: 100%;
    display: flex;
    flex-grow: 0;
    flex-shrink: 0;
    box-sizing: border-box;
    z-index: 5;
}

.MiddleSection {
    height: 85vh;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.TopSection {
    height: 10vh;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.BottomSection {
    height: 5vh;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.LienVersArticle {
    font-size: 4vh;
}

.LienVersArticleSuivant, .LienVersArticlePrecedent {
    cursor: pointer;
    opacity: 0.5;
}

    .LienVersArticleSuivant:hover, .LienVersArticlePrecedent:hover {
        opacity: 1;
    }

.LienInactif {
    opacity: 0.2;
}

#home .MiddleSection {
    flex-direction: column;
}

#home h1, #home h2, #home h3 {
    text-shadow: 3px 3px 3px black;
    text-align: center;
}

#home h1 {
    font-size: 8vh;
    margin-bottom: 1vh;
    font-family: 'Tangerine', cursive;
}

#home h2 {
    font-variant: small-caps;
    font-size: 6vh;
}

#home h3 {
    position: relative;
    text-align: center;
    width: 100%;
}

    #home h3 span {
        font-size: 3vh;
        opacity: 0;
        animation-direction: normal;
        animation-iteration-count: 1;
        animation-fill-mode: forwards;
        animation-play-state: paused;
        animation-name: displayhomeh3;
        position: absolute;
        top: 0;
        margin: auto;
        left: 0;
        right: 0;
    }

@keyframes displayhomeh3 {
    25% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

#home h3 span:first-of-type {
    animation-delay: 21s;
    animation-duration: 5s;
}

#home h3 span:nth-of-type(2) {
    animation-delay: 26s;
    animation-duration: 7s;
}

#home h3 span:nth-of-type(3) {
    animation-delay: 72s;
    animation-duration: 8s;
}

#home h3 span:nth-of-type(4) {
    animation-delay: 146s;
    animation-duration: 9s;
    font-size: 2vh;
    width: 50%;
}

#IntroVideo {
    position: absolute;
    min-height: 100%;
    min-width: 100%;
    margin: auto;
    top: 0;
    bottom: 0;
    transition: opacity 3s;
    opacity: 0;
}

.IntroStarted #IntroVideo {
    opacity: 1 !important;
}

#IntroVideoPlaySpan {
    text-shadow: 3px 3px 3px black;
    text-align: center;
    cursor: pointer;
    font-size: 2vh;
}

    #IntroVideoPlaySpan span {
        font-size: 1.2em;
        margin-right: 1vh;
    }

#contact .MiddleSection {
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#contact h1 {
    font-size: 2vw;
    text-align: center;
    margin: 0;
    margin-bottom: 3vh;
}

#contact h2 {
    font-size: 1.2vw;
    margin: 0;
    margin-bottom: 5vh;
}

#contact table {
}

    #contact table td:first-of-type {
        white-space: nowrap;
        text-align: right;
        padding-right: 0.5vw;
        vertical-align: middle;
        font-size: 0.75vw;
        font-style: italic;
    }

    #contact table td:nth-of-type(2) {
        font-size: 0.9vw;
    }

    #contact table td[colspan] {
        text-align: justify;
        font-size: 0.9vw;
        vertical-align: top;
        width: 38vw;
    }

        #contact table td[colspan] span {
            font-size: 0.8em;
        }

    #contact table td[rowspan] {
        text-align: right;
        vertical-align: bottom;
    }

#contact h3 {
    font-size: 0.7vw;
    margin: 0;
    margin-top: 5vh;
    font-weight: 100;
    font-style: italic;
}

#contact .TopSection {
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
}

#mascotte {
    height: 15vh;
}


@media screen and (orientation: portrait) {
    .MiddleSection {
        height: 75vh;
    }

    #home h1 {
        font-size: 12vw;
    }

    #home h2 {
        font-size: 9vw;
    }

    #contact h1 {
        font-size: 6vw;
    }

    #contact h2 {
        font-size: 3vw;
    }

    #contact table td:first-of-type {
        font-size: 2vw;
    }

    #contact table td:nth-of-type(2) {
        font-size: 2.5vw;
    }

    #contact h3 {
        text-align: center;
        width: 75%;
        font-size: 2.5vw;
    }
}
