@font-face {
    font-family: 'GothamUltra';
    src: url('../font/GothamUltra.ttf') format('truetype');
}

body {
    font-family: 'GothamUltra', sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    font-size: 10vh;
    color: #fff;
}
a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}
.screen-2 a {
    background-image: url(../img/desktop-fond-2.jpg);
    background-position: left 11% bottom 47%;
}
.background-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../img/desktop-fond-1.jpg);
    background-size: cover;
    background-position: left 11% bottom 58%;
    background-repeat: no-repeat;
}
.background-screen.screen-2 {
    background-image: url(../img/desktop-fond-2.jpg);
    background-position: left 11% bottom 47%;
    opacity: 0;
}
body.screen-2 .background-screen.screen-1 {
    opacity: 0;
}
body.screen-2 .background-screen.screen-2 {
    opacity: 1;
}

p {
    margin: 0;
    padding: 0;
}

.css-images-to-preload {
    position: absolute;
    width: 1px;
    height: 1px;
    left: -9999px;
    overflow: hidden;
}

.loader-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: #202548; */
    background-color: rgba( 32, 37, 72, 0.85 );
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(0.1em);
    z-index: 10;
    opacity: 1;
    visibility: visible;
    transition-property: opacity, visibility;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;
}
body.images-loaded .loader-container {
    opacity: 0;
    visibility: hidden;
}
.loader-container svg {
    min-width: 200px;
    max-width: 620px;
    width: 10em;
}

.desktop-lievre-tortue-1 {
    display: block;
    position: absolute;
    width: 13.55em;
    left: calc(50% - 8.75em);
    top: -1.4em;
}
.desktop-lievre-tortue-2 {
    display: block;
    position: absolute;
    width: 15.4em;
    left: calc(50% - 9.1em);
    top: -1.5em;
    opacity: 0;
}
body.screen-2 .desktop-lievre-tortue-1 {
    opacity: 0;
}
body.screen-2 .desktop-lievre-tortue-2 {
    opacity: 1;
}

.logo-chartres-metropole {
    position: absolute;
    bottom: 0.3em;
    left: 0.3em;
    width: 0.95em;
}
.logo-filibus {
    position: absolute;
    bottom: -0.1em;
    right: -0.05em;
    width: 3.6em;
}

.svg-hemispheres-container {
    position: absolute;
    top: 57%;
    left: -0.2em;
}
.svg-hemispheres {
    position: absolute;
    top: 0;
    left: 0;
    height: 0.225em;
    transform: rotate(90deg);
}
.hemis-logo-lettre,
.hemis-logo-bulle {
    fill: #fff;
}
.hemis-logo-et {
    fill: #e3c2b8; /* La couleur de fond du terrain de sport */
}

.text-container.screen-1 .text-big {
    position: absolute;
    text-shadow: 0.05em 0.05em 0.2em rgba(0,0,0,0.45);
    top: 0.55em;
    left: calc(50% + -0.6em);
    text-align: right;
    font-size: 1.5em;
    text-transform: uppercase;
    line-height: 1;
    transform: skewX(-3deg) rotate(-1.5deg) rotateY(24deg);
    font-weight: 100;
}
.text-container.screen-1 .text-banner {
    position: absolute;
    text-shadow: 0.05em 0.05em 0.2em rgba(0, 0, 0, 0.45);
    top: 8.35em;
    left: calc(50% + 0em);
    font-size: 0.5em;
    text-transform: uppercase;
    transform: skewX(-3deg) rotate(-1.5deg) rotateY(24deg);
    font-weight: 100;
    background: #e74011;
    padding: 0.01em 0.9em 0.3em 0.85em;
    text-align: center;
    letter-spacing: 0.015em;
    line-height: 1.2;
    box-shadow: 0.1em 0.1em 0.2em 0em rgba(0, 0, 0, 0.45);
}
body.screen-2 .text-container.screen-1 {
    display: none;
}



.text-container.screen-2 .text-banner {
    position: absolute;
    text-shadow: 0.05em 0.05em 0.2em rgba(0, 0, 0, 0.45);
    top: 0.7em;
    left: calc(50% + -1.55em);
    font-size: 1em;
    text-transform: uppercase;
    transform: skewX(-3deg) rotate(-1.5deg) rotateY(24deg);
    font-weight: 100;
    background: #e74011;
    padding: 0.11em 0.3em 0.3em 0.5em;
    text-align: center;
    letter-spacing: 0.04em;
    line-height: 1.2;
    box-shadow: 0.1em 0.1em 0.2em 0em rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 1;
}
body.screen-2 .text-container.screen-2 .text-banner {
    opacity: 1;
}
.je-mabonne-exclamation-mark {
    font-size: 0;
    transition: font-size .75s ease-in-out .75s;
}
body.screen-2 .je-mabonne-exclamation-mark {
    font-size: 1em;
}
.text-clic-1,
.text-clic-2 {
    position: absolute;
    top: 4.1em;
    font-size: 0.6em;
    text-shadow: 0.05em 0.05em 0.2em rgba(0, 0, 0, 0.45);
    letter-spacing: 0.075em;
    transform: skewX(-3deg) rotate(-1.5deg) rotateY(24deg);
    text-align: center;
    left: calc(50% - 2.6em);
    width: 15.1em;
    opacity: 0;
}
body.screen-2 .text-clic-1 {
    animation: text-clic-1 2s linear 1.5s 1;
}
@keyframes text-clic-1 {
    0% {
        opacity: 0;
        margin-top: -0.3em;
    }
    25% {
        opacity: 1;
        margin-top: 0em;
    }
    75% {
        opacity: 1;
        margin-top: 0em;
    }
    100% {
        opacity: 0;
        margin-top: -0.3em;
    }
}

.text-clic-2 {
    margin-top: 0.6em;
    font-size: 0.5em;
    top: 5em;
    left: calc(50% - 3em);
    width: 18em;
}
body.screen-2 .text-clic-2 {
    animation: text-clic-2 0.5s linear 3s 1, text-clic-2-stay 1s linear 3.5s infinite;
}
@keyframes text-clic-2 {
    0% {
        opacity: 0;
        margin-top: 0.3em;
    }
    100% {
        opacity: 1;
        margin-top: 0em;
    }
}
@keyframes text-clic-2-stay {
    0% {
        opacity: 1;
        margin-top: 0em;
    }
    100% {
        opacity: 1;
        margin-top: 0em;
    }
}

.clic-hand-container {
    position: absolute;
    height: 0.5em;
    top: 1em;
    left: calc(50% - 0.2em);
    width: 4em;
    opacity: 0;
}
body.screen-2 .clic-hand-container {
    opacity: 1;
    animation: clic-hand-move 2s ease-in-out 1s 1, clic-hand-stay 1s linear 3s infinite;
}
@keyframes clic-hand-move {
    0% {
        height: 0.5em;
        top: 1em;
        transform: rotate(0deg);
        transform-origin: 0 50%;
    }
    100% {
        height: 1.25em;
        top: 2.4em;
        transform: rotate(-340deg);
        transform-origin: 0 50%;
    }
}
@keyframes clic-hand-stay {
    0% {
        height: 1.25em;
        top: 2.4em;
        transform: rotate(-340deg);
        transform-origin: 0 50%;
    }
    100% {
        height: 1.25em;
        top: 2.4em;
        transform: rotate(-340deg);
        transform-origin: 0 50%;
    }
}
.clic-hand {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 100%;
}
.clic-hand-container::before {
    content: "";
    position: absolute;
    top: 0.08em;
    right: 0.68em;
    border-radius: 50%;
    border: solid 0 #e74011;
}
body.screen-2 .clic-hand-container::before {
    animation: clic-hand-circle 2s linear 10s infinite;
}
@keyframes clic-hand-circle {
    0% {
        border-width: 0.05em;
        height: 0em;
        width: 0em;
        top: 0.08em;
        right: 0.68em;
    }
    25% {
        border-width: 0.05em;
        height: 1.2em;
        width: 1.2em;
        top: -0.5em;
        right: 0.08em;
    }
    50% {
        border-width: 0.05em;
        height: 0.6em;
        width: 0.6em;
        top: -0.2em;
        right: 0.38em;
    }
    75% {
        border-width: 0.05em;
        height: 1.2em;
        width: 1.2em;
        top: -0.5em;
        right: 0.08em;
    }
    100% {
        border-width: 0.05em;
        height: 0em;
        width: 0em;
        top: 0.08em;
        right: 0.68em;
    }
}



/* Mode vertical */
@media screen and ( max-aspect-ratio: 3 / 2 ) {
    .logo-filibus {
        width: 2.25em;
        bottom: -0.05em;
        right: auto;
        left: 0em;
    }
    .logo-chartres-metropole {
        left: auto;
        right: 0.15em;
        bottom: 0.15em;
        width: 0.6em;
    }
    .text-container.screen-1 .text-big {
        font-size: 0.84em;
        width: 100%;
        text-align: center;
        left: 0;
        top: 0.5em;
    }
    .text-container.screen-1 .text-banner {
        top: 7.65em;
        left: calc(50% - 7.2em);
        font-size: 0.3em;
        width: 14.6em;
        padding: 0.1em 0 0.2em;
    }
    .desktop-lievre-tortue-1 {
        width: 7.7em;
        top: 2.4em;
        left: calc(50% - 3.5em);
    }
    .desktop-lievre-tortue-2 {
        width: 10.6em;
        top: 1.1em;
        left: calc(50% - 5.15em);
    }

    .text-container.screen-2 .text-banner {
        font-size: 0.6em;
        top: 1.1em;
        left: calc(50% - 4.4em);
        width: 8.8em;
        padding: 0.1em 0em 0.25em;
    }
    .svg-hemispheres-container {
        top: 54%;
        left: -0.15em;
    }
    .svg-hemispheres {
        height: 0.12em;
    }



    .text-clic-1,
    .text-clic-2 {
        top: 5.5em;
        left: calc(50% - 8.1em);
        width: 16.4em;
        font-size: 0.32em;
    }

    .clic-hand-container {
        position: absolute;
        left: calc(50% - 2.3em);
        width: 4em;
        opacity: 0;

        height: 0.5em;
        top: 1.6em;
        transform: rotate(-10deg);
        transform-origin: 0 50%;
    }
    body.screen-2 .clic-hand-container {
        opacity: 1;
        animation: clic-hand-move-vertical 2s ease-in-out 1s 1, clic-hand-stay-vertical 1s linear 3s infinite;
    }
    @keyframes clic-hand-move-vertical {
        0% {
            height: 0.5em;
            top: 1.6em;
            transform: rotate(-10deg);
            transform-origin: 0 50%;
        }
        100% {
            height: 1.25em;
            top: 1.6em;
            transform: rotate(-340deg);
            transform-origin: 0 50%;
        }
    }
    @keyframes clic-hand-stay-vertical {
        0% {
            height: 1.25em;
            top: 1.6em;
            transform: rotate(-340deg);
            transform-origin: 0 50%;
        }
        100% {
            height: 1.25em;
            top: 1.6em;
            transform: rotate(-340deg);
            transform-origin: 0 50%;
        }
    }
    body.screen-2 .clic-hand-container::before {
        animation: clic-hand-circle 2s linear 3s infinite;
    }
}