
@font-face {
    font-family: 'Century';
    src: url('../fonts/CENTURY_0.woff2') format('woff2'),
         url('../fonts/CENTURY_0.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
a { color: currentColor; }
.clearfix::after { display: block; content: ""; clear: both; }

body {
    font-family: 'Lato', sans-serif;
}

/***** #splashscreen *****/

#splashscreen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    height: 100vh;

    text-align: center;
    color: #fff;
    text-transform: uppercase;

    background-color: #4891c8;
}

#splashscreen h1 {
    display: inline-block;

    width: 460px;
    height: calc(460px * 846 / 878);
    margin-top: 120px;

    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;

    background: transparent url("../img/logo-club-brand-content-managers.png") no-repeat center center;
    background-size: cover;
}

@media screen and (max-width: 500px) {
    #splashscreen h1 {
        width: 350px;
        height: calc(350px * 846 / 878);
    }
}

@media screen and (max-width: 400px) {
    #splashscreen h1 {
        width: 270px;
        height: calc(270px * 846 / 878);
        margin-top: 80px;
    }
}

@media screen and (max-width: 300px) {
    #splashscreen h1 {
        width: 200px;
        height: calc(200px * 846 / 878);
    }
}

@media screen and (max-height: 800px) and (min-width: 500px) {
    #splashscreen h1 {
        margin-top: .5em;
        margin-bottom: 0;
    }
}

#splashscreen a {
    max-width: 70%;
    padding: 15px 35px;

    font-size: .9rem;
    text-decoration: none;
    line-height: 1.5;

    border: 1px solid #a8a187;
    border-radius: 30px;
}

#splashscreen span {
    font-size: .75rem;

    position: relative;
    margin-bottom: 70px;
}

#splashscreen span::after {
    content: '';

    display: inline-block;
    width: 9px;
    height: 56px;

    position: absolute;
    bottom: -70px;
    left: 50%;
    transform: translate(-50%, 0);

    background: transparent url("../img/scroll-white.png") no-repeat center center;
}

/***** #fixed-header *****/

#fixed-header {
    display: none;

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 120px;

    color: #fff;
    text-transform: uppercase;

    /* image différente de la grande, à la bonne taille, car Edge fait un rendu dégueu sur le resize, tout aliasé */
    background: #4891c8 url("../img/logo-club-brand-content-managers-small.png") no-repeat center center;
}

#fixed-header.visible {
    display: block;
}

#fixed-header a {
    position: absolute;
    top: 50%;
    right: 25%;
    transform: translate(50%, -50%);

    padding: 8px 18px;

    font-size: .8rem;
    text-decoration: none;

    border: 1px solid #fff;
    border-radius: 30px;
}

@media screen and (max-width: 640px) {
    #fixed-header {
        background-position: 25% center;
    }

    #fixed-header a {
        right: 15%;
        transform: translate(0, -50%);
        max-width: 50%;
        text-align: center;
    }
}

@media screen and (max-width: 400px) {
    #fixed-header {
        background-position: 10% center;
        background-size: 80px;
        height: 90px;
    }

    #fixed-header a {
        right: 5%;
    }
}

/***** #main *****/

#main > div {
    padding: 85px 0 100px;

    color: #a8a187;
    font-size: 18px;
}

#main > div:nth-child(even) {
    color: #fff;

    background-color: #a8a187;
}

#main > div > div {
    width: 90%;
    margin: 0 auto;
}

#main h2 {
    font-family: 'Century', serif;
    font-size: 80px;
    color: #000;
    font-weight: normal;
    margin-top: 0;
}

#main > div:nth-child(even) h2 {
    color: #fff;
}

#main .blue {
    color: #2d7bb5;
}

#main .underline {
    text-decoration: underline;
}

#main .italic {
    font-style: italic;
}

#main .emphasis {
    font-family: 'Century', serif;
    font-size: 24px;
}

#main .punct {
    color: #2d7bb5;
}

#main h2 .punct {
    font-size: inherit;
    padding: 0;
}

#main .emphasis .punct {
    font-size: 40px;
}

#main .emphasis span {
    vertical-align: middle;
}

#main > div > div > div p:not(.emphasis),
#main > div > div > div ol {
    line-height: 2;
}

@media screen and (max-width: 800px) {
    #main h2 {
        font-size: 60px;
    }

    #main br.opt {
        display: none;
    }
}

@media screen and (max-width: 500px) {
    #main h2 {
        font-size: 40px;
    }
}

/***** bloc 1 *****/

#main > div:first-child > div > div {
    display: flex;
    justify-content: space-around;
}

#main > div:first-child > div > div p {
    width: 40%;
}

#main > div:first-child > div > div p:not(.emphasis) .punct {
    font-size: 16px;
    padding: 0 10px;
}

@media screen and (max-width: 800px) {
    #main > div:first-child > div > div {
        flex-direction: column;
    }

    #main > div:first-child > div > div p {
        width: 100%;
    }
}

/***** bloc 2 *****/

#main > div:first-child + div > div > div p.emphasis {
    width: 40%;
    margin-left: 5%;
}

#main > div:first-child + div > div > div {
    display: inline-block;
    width: 100%;
}

#main > div:first-child + div ol {
    display: flex;
    justify-content: space-around;
    padding-left: 0;
    margin-bottom: 0;
    margin-top: 4em;
    list-style-type: none;
    counter-reset: ol_li;
}

#main > div:first-child + div ol li {
    width: 35%;
    min-height: 120px;
    padding-left: 140px;
    counter-increment: ol_li;
    position: relative;
    padding-top: 10px;
}

#main > div:first-child + div ol li::before {
    content: '0' counter(ol_li);

    display: block;
    width: 120px;
    height: 120px;

    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(0, -50%);

    font-family: 'Century', serif;
    color: #2d7bb5;
    font-size: 70px;
    border: 1px solid #fff;
    border-radius: 50%;
    line-height: 110px;
    text-align: center;
}

@media screen and (max-width: 1280px) {
    #main > div:first-child + div ol li {
        width: 45%;
    }
}

@media screen and (max-width: 1024px) {
    #main > div:first-child + div > div > div p.emphasis {
        width: 50%;
    }

    #main > div:first-child + div ol li {
        width: 49%;
    }
}

@media screen and (max-width: 800px) {
    #main > div:first-child + div h2 .maj {
        text-transform: none;
    }

    #main > div:first-child + div > div > div p.emphasis {
        width: 100%;
        margin-left: 0;
    }

    #main > div:first-child + div ol {
        flex-direction: column;
        margin-top: 0;
    }

    #main > div:first-child + div ol li {
        width: 100%;
        margin-top: 2em;
        padding-top: 25px;
    }
}

@media screen and (max-width: 600px) {
    #main > div:first-child + div ol li {
        min-height: 100px;
        padding-left: 110px;
        padding-top: 0;
    }

    #main > div:first-child + div ol li::before {
        width: 100px;
        height: 100px;
        font-size: 55px;
        line-height: 92px;
    }
}

/***** bloc 3 *****/

#main > div:last-child h2 .maj {
    text-transform: uppercase;
}

@media screen and (max-width: 800px) {
    #main > div:last-child h2 .maj {
        text-transform: none;
    }
}

#main > div:last-child > div > div {
    display: flex;
    justify-content: space-around;
}

#main > div:last-child > div > div > * {
    width: 40%;
}

#main > div:last-child > div > div > ul {
    padding-left: 0;
    list-style-type: none;
    line-height: 2;
}

#main > div:last-child > div > div li:not(:first-child) {
    margin-top: 1em;
}

#main > div:last-child > div > div li::before {
    content: '•';
    color: #2d7bb5;
    margin-right: 10px;
}

#main > div:last-child > div > div + div {
    margin-top: 2em;
}

#main > div:last-child > div > div:last-child {
    display: block;
}

#main > div:last-child > div > div:last-child p {
    width: 90%;
    margin-left: 5%;
}

#main > div:last-child > div > div:last-child p span {
    vertical-align: text-bottom;
    line-height: 35px;
}

@media screen and (max-width: 800px) {
    #main > div:last-child > div > div {
        flex-direction: column;
    }

    #main > div:last-child > div > div ul,
    #main > div:last-child > div > div p {
        width: 100%;
    }

    #main > div:last-child > div > div:last-child p {
        width: 100%;
        margin-left: 0;
    }
}

/***** footer *****/

footer {
    height: 180px;
    background: #000 url("../img/logo-club-brand-content-managers-small.png") no-repeat center center;
    position: relative;
}

footer::before {
    content: '';
    background: transparent url("../img/scroll-blue.png") no-repeat center center;
    display: inline-block;
    width: 10px;
    height: 97px;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
}
