@keyframes animation-background-color {
    from, to {
        background-color: #639c;
    }
    40%, 60% {
        background-color: #936c;
    }
    50%, 70% {
        background-color: #669c;
    }
}

body {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    font-family: Iowan Old Style, Apple Garamond, Baskerville,
                 Times New Roman, Droid Serif, Times, Source Serif Pro,
                 serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
    line-height: 1.45;
    min-height: 100vh;
    color: white;
    background-color: #639c;
    margin: 0;
    /* animation: animation-background-color 40s infinite;*/
}

a {
    color: inherit;
}

header {
    position: fixed;
    top: 0;
    right: 0;
}

header nav {
    padding: 30px 50px;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav > ul {
    display: flex;
}

header nav > ul li {
    position: relative;
}

header nav > ul li a {
    white-space: nowrap;
}

header nav > ul > li > ul {
    position: absolute;
    display: none;
    padding-top: 10px;
}

header nav > ul > li:hover > ul {
    display: flex;
}


header nav:hover a {
    opacity: 0.75;
}

header a {
    color: inherit;
    font-size: 0.8em;
    letter-spacing: 0.05em;
    padding-bottom: 5px;
    margin: 0 20px;
    opacity: 0.5;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 1s ease;
    border-bottom: 1px solid transparent;
}

header a:hover {
    opacity: 1;
    transition: opacity .3s ease;
    border-color: currentColor;
}

#nav-logo {
    position: fixed;
    top: 0;
    left: 0;
    width: 80px;
    height: 48px;
    opacity: 1;
    background-image: url('/medias/logo.svg');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    border: none;
    padding: 0;
    margin: 17.5px 0 17.5px 35px;
}

.page-index #nav-logo {
    width: 400px;
    height: 240px;
    pointer-events: none;
}

@media(max-width: 1280px) {
    header nav ul {
        display: flex;
        flex-flow: column;
        text-align: right;
    }

    header nav > ul li {
        margin-bottom: 2px;
    }

    header nav > ul a {
        margin: 0;
        padding-bottom: 1px;
    }

    header nav > ul > li > ul {
        position: relative;
        display: flex;
        padding-top: 0;
    }
}

@media(max-width: 440px) {
    header nav > ul li {
        margin-bottom: 0;
    }

    header nav > ul li a {
        font-size: 10px;
    }

}

@media(max-width: 840px) {
    .page-index #nav-logo {
        width: 120px;
        height: 72px;
        margin-top: 25px;
    }

    header nav {
        padding-right: 35px;
    }

    body header nav a {
        opacity: 1;
    }

    body:not(.page-index) header nav > ul li {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    body:not(.page-index) header nav > ul > li > ul {
        flex-flow: row;
        align-items: center;
    }

    body:not(.page-index) header nav > ul li a + ul::before {
        content: '–';
        margin-inline: 10px;
    }

    body:not(.page-index) main {
        padding-top: 100px;
    }

    body:not(.page-index) header {
        width: 100%;
        background-color: inherit;
        box-shadow: 0 2px 5px 2px rgba(0,0,0, 0.15);
    }

    body:not(.page-index) header:after,
    body:not(.page-index) header:before {
        content: '';
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }
    body:not(.page-index) header:before {
        background-color: inherit;
        z-index: -1;
    }

    body:not(.page-index) header:after {
        background-color: white;
        z-index: -2;
    }

    body:not(.page-index) header nav {
        float: right;
        padding: 20px 30px 15px 0;
    }

    body:not(.page-index) header nav ul li:last-child {
        margin-bottom: 0;
    }

    body:not(.page-index) #nav-logo {
        margin: 27.5px 0 27.5px 30px;
    }
}


footer {
    padding: 20px;
    font-size: 0.6em;
    text-align: center;
    text-transform: uppercase;
}

main {
    flex: 1;
/*    margin-right: calc(290px - 50vw - 125px);
    margin-left: calc(290px - 50vw + 125px);*/
}

h1 {
    margin: 30px 0 40px;
    padding-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 1px solid currentColor;
}

article {
    width: 580px;
    margin-bottom: 65px;
}

@media(max-width: 620px) {
    main {
        width: 100%;
        width: calc(100% - 50px);
        margin: 0 auto;
    }

    article {
        width: 100%;
    }
}

article h2 {
    margin-top: 2.5em;
}

article h3 {
    margin-top: 1.5em;
}

article p {
    font-size: 1.125em;
}

article abbr {
    font-variant: all-small-caps;
}

article figure img {
    max-width: 100%;
    margin-bottom: 10px;
    border-radius: 2px;
    box-shadow: 0 2.5px 5px 2px rgba(66, 33, 99, .35);
}

article figure {
    width: 90%;
    margin: 30px auto;
}

article figure audio {
    width: 100%;
    background-color: #c3c;
    border-radius: 3px;
}

article figure legend {
    flex-basis: 100%;
    font-size: 0.8em;
    font-style: italic;
}

article aside {
    float: left;
    width: 230px;
    margin: 0.5em 20px 0 -250px;
    text-align: right;
}

article aside h3 {
    margin-bottom: 0.5em;
}

article aside figure {
    width: 100%;
    margin: 0 0 15px;
}

article aside figure img {
    margin-bottom: 5px;
}

article aside a {
    font-size: 0.85em;
}

#aside-vanessa figure {
    margin-bottom: 0;
}

#aside-vanessa figure img {
    margin-bottom: 0;
}

#aside-lmv figure {
    margin-bottom: 0;
}

#aside-lmv figure img {
    margin-bottom: 0;
}

@media(max-width: 1100px) {
    article aside {
        float: none;
        width: initial;
        margin: 20px 0;
        text-align: initial;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }

    article aside figure {
        min-width: calc(50% - 7.5px);
    }

    #aside-vanessa {
        float: left;
        width: 40%;
        margin: 0 25px 5px 0;
    }

    #aside-vanessa figure {
        width: 100%
    }

    #aside-lmv {
        justify-content: flex-start;
    }

    #aside-lmv figure,
    #aside-mellitus figure {
        margin-right: 25px;
        align-self: flex-start;
    }

    #aside-lmv h3,
    #aside-mellitus h3 {
        margin-top: 0;
    }

}

article dl {

}

article dt {

}

article dd {
    margin-bottom: 15px;
}

article dd ul {
    padding-left: 0;
    list-style: none;
}

article dd li {
    margin-bottom: 0.2em;
}

article dd figure {
    width: 100%;
    display: flex;
    flex-flow: wrap;
    justify-content: space-between;
    margin: 10px 0;
}

article dd figure img {
    width: calc(50% - 7.5px);
}

/*
 * Home Page
 */
.page-index {
    overflow: hidden;
}

.page-index::before {
    content: '';
    width: 100vw;
    height: 100vh;
    background-image: url('/medias/lmv-visual-2.jpg');
    background-size: cover;
    background-position: center center;
    background-blend-mode: soft-light;
    animation: animation-background-color-index 40s infinite;
}

.page-index main > svg {
    width: 30vw;
    height: auto;
    fill: white;
    position: relative;
    top: 40px;
    left: 50px;
}

@media(max-width: 620px) {
    .page-index main > svg {
        top: 30px;
        left: 20px;
    }
}

.page-index footer {
    opacity: 0.5;
}

/*
 * About
 */
@media(max-width: 1100px) {
    .page-about article aside {
        justify-content: center;
    }
}

/*
 * Production
 */
.production-info {
    text-align: center;
}

.production-info p {
    font-size: 0.85em;
}

.production-info ul {
    font-size: 0.65em;
    padding-left: 0;
}

.production-info ul li {
    display: inline;
    text-transform: uppercase;
    white-space: nowrap;
}

.production-info ul li.crew-many {
    display: inline;
    text-transform: uppercase;
    white-space: initial;
}

.production-info ul li span {
    white-space: nowrap;
}

.production-info ul li strong {
    font-size: 1.25em;
    text-transform: none;
}

h2#developpement {
    margin: 30px 0 40px;
    padding-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 1px solid currentColor;
}

/*
 * Contact
 */
.page-contact h2 {
    display: none;
}

.page-contact aside div {
    margin-bottom: 1.5em;
}

.page-contact aside h3:first-child {
    margin-top: 0.5em;
}

.page-contact #social-links a {
    line-height: 0;
    display: inline-block;
    margin-right: 5px;
    opacity: 0.85;
    transition: opacity .3s ease;
    border: #fff9 1px solid;
    border-radius: 4px;
}

.page-contact #social-links a:hover {
    opacity: 1;
}

.page-contact #social-links a:last-child {
    margin-right: 0;
}

.page-contact form {
    padding-top: 0.8em;
}

.page-contact .message {
    margin-top: -35px;
}

.page-contact .form-field {
    margin-bottom: 15px;
}

.page-contact .form-field label {
    display: none;
}

.page-contact .field-textarea {
    height: 300px;
    resize: none;
}

.page-contact .field-firstname,
.page-contact .field-lastname {
    display: none;
    float: left;
    width: calc(50% - 7.5px);
}
.page-contact .field-firstname {
    margin-right: 15px;
}

.page-contact .field-submit button {
    position: relative;
}

.page-contact .field-submit button::before,
.page-contact .field-submit button::after {
    content: none;
}

.page-contact .field-submit button.resolving {
    color: transparent;
}

.page-contact .field-submit button.resolving::before,
.page-contact .field-submit button.resolving::after {
    content: '';
}

.page-contact .field-submit button::after {
    border: 3px solid #fff;
    animation: submit-loading 1s ease infinite;
    z-index: 10;
}

.page-contact .field-submit button::before {
    border: 3px dashed #fff;
    animation: submit-loading 2s linear infinite;
    z-index: 5;
}

.page-contact .field-submit button::after,
.page-contact .field-submit button::before {
    box-sizing: border-box;
    position: absolute;
    top: calc(50% - 15px); left: calc(50% - 15px);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    border-left: 3px solid transparent;
    border-bottom: 3px solid transparent;
}

@keyframes submit-loading {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

.form-field input,
.form-field button,
.form-field select,
.form-field textarea {
    box-sizing: border-box;
    font-size: 1em;
    font-family: inherit;
    width: 100%;
    border: none;
    border-radius: 2px;
    padding: 8px 0 8px 15px;
    color: #639;
    background-color: white;
}

.form-field [type="button"],
.form-field [type="submit"] {
    color: white;
    background-color: transparent;
    border: 1px solid white;
    text-transform: uppercase;
    width: auto;
    padding: 8px 15px;
}

.form-field [type="button"]:disabled,
.form-field [type="submit"]:disabled {
    opacity: 0.25;
    background-color: #fff2;
}

.form-field textarea {
    min-height: 300px;
}

.form-field .form-error {
    color: lightpink;
    font-size: 0.8em;
    margin: 5px 0 0;
}

p.message {
    padding: 8px 15px;
    border-radius: 2px;
    border: 1px solid currentColor;
}

.message.message-success {
    color: white;
    background-color: transparent;
}

.message.message-error {
    color: lightpink;
    background-color: #dc143c33;
}
