:root {
    --col: (50vw - 160px);
}

main {
    background: var(--cyan5);
}

/*USINE*/

#usine {
    position: relative;
    overflow: hidden;
}

#jour {
    background: url(img/jour.jpg) no-repeat center;
    height: 755px;
}

#nuit {
    background: url(img/nuit.jpg) no-repeat center;
    position: absolute;
    top: 0;
    z-index: 10;
    width: 100%;
    height: 755px;
    pointer-events: none;
}

.jour {
    opacity: .0;
}

.tuto {
    width: 40px;
    height: 60.6px;
    background: url(img/ici.svg);
    background-size: cover;
    position: absolute;
    left: 50%;
    z-index: 210;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    padding: 5px 2px 0 0;
    pointer-events: none;
    animation: tuto1 4s,
               tuto1-2 .8s infinite;
}

@keyframes tuto1 {
    0% {
        opacity: 0;
    }
    90% {
        opacity: 0;
    }
}

@keyframes tuto1-2 {
    100% {
        transform: translateY(15px);
    }
}

#tuto1 {
    top: 255px;
    margin-left: -410px;
}

#tuto3 {
    bottom: 60px;
    left: auto;
    right: 30px;
    width: 23px;
    height: 60px;
    background: url(img/souris.svg);
    display: none;
}

#page #volant,
#page #roue {
    max-width: 20000px !important;
}

#boite-volant {
    width: 149px;
    height: 157px;
    position: absolute;
    top: 332px;
    left: 50%;
    transform: translateX(-473px);
    z-index: 2;
    overflow: hidden;
    cursor: pointer;
}

.volant-fermer {
    animation: volant-fermer .12s steps(6);
}

.volant-ouvrir {
    animation: volant-ouvrir .10s steps(5);
}

@keyframes volant-fermer {

    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-900px);
    }
}

@keyframes volant-ouvrir {

    0% {
        transform: translateX(-750px);
    }
    100% {
        transform: translateX(0);
    }
}


#boite-roue {
    width: 510px;
    height: 380px;
    position: absolute;
    top: 154px;
    left: 50%;
    transform: translateX(-266px);
    z-index: 2;
    overflow: hidden;
}

#roue {
    margin-left: -2px;
}

.tourne {
    animation: roue .7s steps(24) infinite;
}

@keyframes roue {

    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-12600px);
    }
}

#boite-eau,
#boite-eau2 {
    position: absolute;
    top: 470px;
    left: 50%;
    transform: translateX(240px);
    z-index: 5;
    width: 720px;
    height: 64px;
    overflow: hidden;
}

#boite-eau2 {
    transform: translateX(-378px);
    width: 100px;
}

.eau {
    position: absolute;
    top: 0;
    left: 0;
    width: 1440px;
    height: 64px;
    background: url(img/eau.jpg);
    background-size: 360px;
    opacity: .07;
    animation: eau 7.5s infinite linear;
}

#boite-eau2 .eau {
    opacity: .15;
}

@keyframes eau {
    0% {
        transform: translateX(-720px);
    }
    100% {
        transform: translateX(0px);
    }
}

#cache-eau {
    position: absolute;
    top: 470px;
    left: 50%;
    transform: translateX(-352px);
    z-index: 6;
}

#piano1,
#piano2 {
    position: absolute;
    top: 230px;
    left: 50%;
    transform: translateX(532px);
    z-index: 15;
    width: 40px;
    height: 22px;
    cursor: pointer;
}

#piano2 {
    transform: translateX(602px);
    width: 136px;
}


/*FILS*/

.fil {
    border-color: var(--cyan3) !important;
    position: absolute;
    left: 50%;
    z-index: 200;
}

.passe {
    border-color: var(--jaune) !important;
}

.inter {
    background: var(--cyan3);
    width: 60px;
    height: 30px;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 0, 0, .2);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 210;
    transition: background .2s;
}

.inter::after {
    content: '';
    display: block;
    background: var(--cyan5);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: -1px 1px 1px rgba(0, 0, 0, .3);
    position: absolute;
    top: 5px;
    left: 5px;
    transition: transform .1s;
}

.on1::after {
    transform: translateX(30px);
}

.on2 {
    background: var(--jaune);
}

.masse {
    position: absolute;
    left: 50%;
    z-index: 220;/*bug FF*/
}

.paf path {
    stroke: var(--jaune) !important;
}

.opacite {
    opacity: 1 !important;
    pointer-events: auto !important;
    filter: none !important;
}


/*INTRO*/
#boite-accueil {
    overflow: hidden !important;
    width: 100% !important;
    background: var(--cyan0);
}

#plus,
#moins {
    width: 10px;
    height: 2px;
    background: var(--cyan3);
    position: absolute;
    left: 50%;
    top: 40px;
    transform: translateX(-70px);
}

#plus::after {
    display: block;
    content: '';
    width: 2px;
    height: 10px;
    background: var(--cyan3);
    position: relative;
    top: -4px;
    left: 4px;
}

#moins {
    transform: translateX(60px);
}

.allume,
.allume::after {
    background: var(--jaune) !important;
}

#degrade {
    background: linear-gradient(var(--cyan5), var(--cyan2));
    position: relative;
    padding: 150px 0 0;
}

#f1,
#f2 {
    border-left: 2px solid;
    height: 175px;
    top: -94px;
    transform: translateX(-39px);
}

#f2 {
    border-bottom: 2px solid;
    width: 50px;
    transform: translateX(39px);
}

#m1 {
    top: 52px;
    transform: translateX(89px);
}

#f3 {
    border-top: 2px solid;
    border-left: 2px solid;
    height: 99px;
    top: 79px;
    left: 20%;
    right: calc(50% + 39px);
}

#flex-intro {
    display: flex;
    flex-wrap: wrap;
    padding: 0 20%;
}

#boite-oim {
    flex: 1;
    opacity: .02;
    transition: opacity .2s;
    position: relative;
}

#oim {
    width: 100%;
    height: 100%;
    background: #f0fbaf url(img/oim.jpg) no-repeat left 0 bottom 0;
    background-size: 100%;
    position: relative;
    z-index: 210;
}

#prenom {
    position: absolute;
    bottom: 0;
    z-index: 220;
    font: 600 .8em var(--ms);
    text-transform: uppercase;
    background: var(--jaune);
    padding: 3px 5px;
}

.eclair {
    width: 100px;
    height: 36px;
    background: url(img/eclair.svg);
    background-size: cover;
    position: absolute;
}

#e1 {
    top: 20%;
    left: 0%;
    transform: scale(.6) rotate(50deg);
    animation: 1s etincelle1 infinite;
}
@keyframes etincelle1 {
    100% {
        transform:  scale(.6) rotate(50deg) translateX(-300px);
        opacity: 0;
    }
}

#e2 {
    top: 30%;
    left: 0;
    transform: scale(1) rotate(25deg);
    animation: 1s .6s etincelle2 infinite;
}
@keyframes etincelle2 {
    100% {
        transform:  scale(1) rotate(25deg) translateX(-250px);
        opacity: 0;
    }
}

#e3 {
    top: 50%;
    left: 0;
    transform: scale(.8) rotate(-5deg);
    animation: 1s .2s etincelle3 infinite;
}
@keyframes etincelle3 {
    100% {
        transform:  scale(.8) rotate(-5deg) translateX(-250px);
        opacity: 0;
    }
}

#e4 {
    top: 75%;
    left: 0;
    transform: scale(.5) rotate(-35deg);
    animation: 1s .5s etincelle4 infinite;
}
@keyframes etincelle4 {
    100% {
        transform:  scale(.5) rotate(-35deg) translateX(-300px);
        opacity: 0;
    }
}

#texte-intro {
    flex: 2;
    margin: -0.4vw 0 -0.4vw 60px;
    color: var(--jaune);
    font-size: 1.5vw;
    line-height: 1.4em;
    opacity: .02;
    filter: saturate(0);
    transition: opacity .2s;
    text-align: justify;
}

#texte-intro a {
    color: var(--jaune);
    text-decoration: underline;
}

#texte-intro a:hover {
    text-decoration: none;
}

#f4 {
    border-left: 2px solid;
    border-bottom: 2px solid;
    width: calc(30% + 20px);
    height: 130px;
    margin-top: -15px;
    transform: translateX(calc(-100% + 20px));
}

#f5 {
    border-top: 2px solid;
    width: 90px;
    margin-top: 113px;
}

#m2 {
    margin-top: 85px;
    transform: translateX(89px);
}

/*PORTFOLIO-------------------------*/

#tuto2 {
    margin: 20px 0 0 -18px;
    display: none;
}

#i1 {
    top: -21px;
}

#f6,
#f8 {
    border-left: 2px solid;
    height: 100%;
    /* transform: translateX(0); */
}

#f7,
#f9 {
    border-bottom: 2px solid;
    width: 90px;
    bottom: 0;
    /* transform: translateX(0); */
}

#m3,
#m4 {
    bottom: -20px;
    transform: translateX(90px);
}

#portfolio {
    margin-top: 120px;
    padding-bottom: 100px;
    position: relative;
    display: flex;
    flex-wrap: wrap;
}

#portfolio .col {
    flex: 1;
    padding: 0 80px;
}

.boite-projet {
    margin-top: 80px;
    background: #044;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.neige {
    background: url(img/neige.gif) !important;
}

.projet {
    opacity: 0;
}

.opacite-projet {
    opacity: .94 !important;
}

#phares {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    animation: phares 3s infinite steps(1);
}

@keyframes phares {
    50% {
        opacity: 0;
    }
}

.mac {
    position: relative;
    z-index: 2;
}

.contenu-mac {
    position: absolute;
    top: calc(var(--col) * .092);
    left: 9%;
    width: 82.5% !important;
}

.contenu-pixel {
    position: absolute;
    top: calc(var(--col) * .043);
    left: 2%;
    width: 95% !important;
}

#bassou {
    animation: 4s bassou infinite;
}

@keyframes bassou {
    25% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(calc(var(--col) * -.5));
    }
    75% {
        transform: translateY(calc(var(--col) * -1));
    }
    100% {
        transform: translateY(calc(var(--col) * -1.47));
    }
}


#lignes {
    position: absolute;
    left: 25%;
    bottom: 30px;
    transform: translateX(calc(-50% + 35px));
    display: flex;
    opacity: 0;
}

#lignes > * {
    border-left: 2px solid rgba(0,0,0,.15);
    height: 350px;
    margin-right: 60px;
    animation: 2.5s ligne infinite;
}

@keyframes ligne {
    90% {
        transform: translateY(0);
    }
    95% {
        transform: translateY(-40px);
    }
}

#l2 {
    margin-top: -20px;
    animation-delay: .1s;
}
#l3 {
    margin-top: -40px;
    animation-delay: .2s;
}
#l4 {
    margin-top: -60px;
    animation-delay: .3s;
}
#l5 {
    margin-top: -80px;
    animation-delay: .4s;
}
#l6 {
    margin-top: -100px;
    animation-delay: .5s;
}
#l7 {
    margin-top: -120px;
    animation-delay: .6s;
}
#l8 {
    margin-top: -140px;
    animation-delay: .7s;
}
#l9 {
    margin-top: -160px;
    animation-delay: .8s;
}
#l10 {
    margin-top: -180px;
    animation-delay: .9s;
}


#voir-portfolio {
    display: block;
    position: absolute;
    bottom: 23vw;
    left: 50%;
    transform: translateX(-315px);
    z-index: 2;
    width: 353px;
    opacity: 0;
    pointer-events: none;
    text-decoration: none !important;
}

#voir-portfolio span {
    display: block;
    background: url(img/portfolio.svg) no-repeat;
    width: 305px;
    height: 60px;
    padding: 14px 0 0 20px;
    font: 600 1.4em var(--ms);
    color: var(--cyan3);
    transition: .1s;
}

#voir-portfolio:hover span {
    transform: translateX(10px);
}

#nom {
    position: absolute;
    top: 43%;
    right: -135px;
    z-index: 200;
    color: var(--cyan2);
    transform: rotate(-90deg);
}

#tiret {
    display: inline-block;
    width: 180px;
    height: 6px;
    margin: 0 5px;
    border-top: 2px solid;
}

/* CHIFFRES ---------------------------*/

#chiffres {
    position: relative;
    height: 600px;
}

/* #f8 {
    height: 100%;
    width: 50px;
    border-left: 2px solid;
    border-bottom: 2px solid;
} */


#tuto4 {
    margin: -95px 0 0 -19px;
    display: none;
}

#i2 {
    margin-top: -16px;
}

#xp {
    color: var(--jaune);
    font: 600 2.4em/1.1em var(--ms);
    transform: rotate(-7deg) translateX(-50%);
    transform-origin: left top;
    position: absolute;
    left: 25%;
    top: 250px;
    z-index: 2;
    opacity: .03;
    pointer-events: none;
    filter: saturate(0);
    transition: .2s;
    white-space: nowrap;
}

#xp i {
    font-style: normal;
    font-size: 3.4em;
    font-weight: 780;
}

#xp span {
    font-size: 1.6em;
    font-weight: 780;
}

#e5 {
    top: -40px;
    left: -120px;
    transform: rotate(40deg) scale(1.3);
}

#e6 {
    bottom: -40px;
    left: -100px;
    transform: rotate(-30deg) scale(.9);
}

#e7 {
    bottom: -20px;
    right: -120px;
    transform: rotate(35deg) scale(1.2);
}

#e8 {
    top: -20px;
    right: -100px;
    transform: rotate(-35deg);
}

.chiffre {
    color: var(--jaune);
    font: 600 1.5em/1.1em var(--ms);
    position: absolute;
    z-index: 2;
    transform: translateX(-50%);
    text-align: center;
}

#c1 {
    left: 65%;
    top: 200px;
}

#c2 {
    left: 80%;
    top: 400px;
}

#c3 {
    left: 90%;
    top: 100px;
}

.bat-fond {
    font-size: 100px;
    font-weight: 780;
    line-height: 1em;
    color: var(--cyan2);
}

.bat-cache {
    font-size: 100px;
    font-weight: 780;
    line-height: 1em;
    background: url(img/charge.png) repeat-x 0 10px;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: absolute;
    width: 100%;
}

.chiffre i {
    font-style: normal;
    opacity: .05;
    pointer-events: none;
    filter: saturate(0);
}

#jauge {
    position: absolute;
    bottom: 150px;
    right: 0;
    width: 100px;
    font-size: .65em;
    text-transform: uppercase;
    background: #055;
    color: var(--cyan2);
    padding: 3px 0 3px 5px;
}


/*COMPETENCES ---------------------------*/

#competences {
    background: rgba(0, 85, 85, .96);
    background: #055;
    color: #001818;
    color: #fff;
    color: var(--jaunec);
    line-height: 1em;
    padding: 50px 0;
    margin: 50px 0 0;
    position: relative;
}

#competences .neige {
    opacity: .04;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

#competences h2 {
    color: var(--jaunec);
    font: 4em var(--ha);
    text-align: center;
    padding-bottom: 10px;
    transform: skewY(-4deg);
    opacity: .03;
    text-shadow: 1px 1px 0 var(--cyan5),
                 2px 2px 0 var(--cyan5),
                 3px 3px 0 var(--cyan5),
                 4px 4px 0 var(--cyan5);
}

#colones-competences {
    display: flex;
    flex-wrap: wrap;
    opacity: .03;
    gap: 64px;
    padding: 0 64px;
}

.col-competences {
    flex: 1;
}

.col-competences h3 {
    color: var(--jaunec);
    font: 700 1.3em var(--ms);
    text-transform: uppercase;
    margin: 44px 0 19px;
    text-shadow: -1px -1px 0 rgba(0, 0, 0, .6);
}

.competence {
    position: relative;
    margin-bottom: 32px;
    padding-bottom: 9px;
    overflow: hidden;
    text-shadow: -1px -1px 0 rgba(0, 0, 0, .2);
}

.competence:last-child {
    margin-bottom: 0;
}

.competence::before {
    display: block;
    content: '';
    width: 100%;
    height: 5px;
    background: #044;
    position: absolute;
    bottom: 0;
    box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .3);
}
.competence::after {
    display: block;
    content: '';
    height: 5px;
    background: var(--jaune);
    position: absolute;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: 3px 0 0 rgba(0, 0, 0, .2), inset 0 1px 0 rgba(0, 0, 0, .3);
}

#colones-competences.opacite .rempli::after {
    transform: translateX(0);
}

.comp3::after {
    width: 30%;
    transition: .3s;
}
.comp4::after {
    width: 40%;
    transition: .4s;
}
.comp5::after {
    width: 50%;
    transition: .5s;
}
.comp6::after {
    width: 60%;
    transition: .6s;
}
.comp7::after {
    width: 70%;
    transition: .7s;
}
.comp8::after {
    width: 80%;
    transition: .8s;
}
.comp9::after {
    width: 90%;
    transition: .9s;
}
.comp10::after {
    width: 100%;
    transition: 1s;
}

/* CLIENTS ---------------------------*/

#iencli {
    background: var(--jaunec);
    padding: 80px 32px 70px;
    position: relative;
    overflow: hidden;
    opacity: .03;
}

#barres1,
#barres2 {
    background: url(img/barres.svg);
    width: 301px;
    height: 220px;
    position: absolute;
    top: -20px;
    left: 50%;
    margin-left: -600px;
    opacity: .1;
}

#barres2 {
    margin-left: 299px;
    transform: scaleX(-1);
}

#iencli h2 {
    color: var(--cyan3);
    font: 3em/1em var(--ha);
    text-align: center;
    padding-bottom: 90px;
    transform: skewY(-4deg);
}

.logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

#logos-iencli {
    margin-bottom: 60px;
}

.logos figure {
    text-align: center;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logos figure img {
    display: inline-block !important;
}

.logos figcaption {
    color: #099;
    font-weight: bold;
}


/*SARAH ---------------------------*/

#sarah-julie {
    display: flex;
    opacity: .05;
}

#video-sarah {
    flex: 1;
    background: var(--cyan0);
    position: relative;
    overflow: hidden;

}

#video-sarah video {
    opacity: .8;
    /* display: block; */
    width: calc(100% + 4px);
    margin: -2px 0 0 -2px;
    display: none;
}

.opacite #video-sarah video {
    display: block;
}

#txt-sarah {
    flex: 1;
    background: var(--jaune);
}

.mot {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    text-align: center;
    color: var(--jaune);
    font: 700 2.8em var(--ms);
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0,20,20,.4);
    animation: 6s mots infinite;
    opacity: 0;
}

@keyframes mots {

    1% {
        opacity: 1;
    }
    2% {
        opacity: 0;
    }
    3% {
        opacity: 1;
    }
    4% {
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    32% {
        opacity: 1;
    }
    33% {
        opacity: 0;
    }
}

#mot2 {
    animation-delay: 2s;
}

#mot3 {
    animation-delay: 4s;
}

#attention {
    background: url(img/attention.svg) no-repeat right bottom;
    width: 41px;
    height: 36px;
    position: absolute;
    right: 14px;
    bottom: 16px;
}

#txt-sarah {
    text-align: center;
    padding: 16px;
    color: var(--cyan4);
    line-height: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

#txt-sarah img {
    width: 180px;
    display: inline-block;
}

#txt-sarah strong {
    font: 700 1.5em var(--ms);
    text-transform: uppercase;
}
