body {
    background-color: #333333 !important;
}

#footer {
    background-color: #333333;
    z-index: -1;
}

h1, p {
    font-family: 'Roboto', sans-serif;
}

/* h2, h3, h4, h5, h6, p */


/* Bougie */
.cadre {
    position: relative;
    width: 400px;
    height: 400px;
    overflow: hidden;
    z-index: -1;
    margin: 0 auto;
}


.bougie {
    position: absolute;
    width: 60px;
    height: 200px;
    top: 160px;
    left: 170px;
    background: #fff;
    border-radius: 3px;
    box-shadow: inset -10px 0 0 0 #E0e5ff;
}


.ombre {
    position: absolute;
    width: 120px;
    height: 8px;
    background: #222223;
    bottom: -8px;
    left: -30px;
    border-radius: 3px;
}

.meche {
    position: absolute;
    width: 4px;
    height: 15px;
    top: -15px;
    left: 28px;
    background: #AD88A9;
}


.flame {
    position: absolute;
    width: 16px;
    height: 26px;
    top: -32px;
    left: 22px;
    background: #FFad00;
    border-radius: 8px 8px 8px 8px / 20px 20px 8px 8px;


    animation: 
    vent 15s ease-in-out infinite,
    taille 20s ease-in-out infinite,
    mouvement 10s ease-in-out infinite;
    transform-origin: 50% 100%;
}


@keyframes vent {

    0%, 22%, 49%, 62%, 81%, 100% {
        border-radius: 2px 14px 8px 8px / 20px 20px 8px 8px;
    }

    14%, 32%, 56%, 70%, 89% {
        border-radius: 14px 2px 8px 8px / 20px 20px 8px 8px;
    }

}


@keyframes taille {

    0%, 22%, 49%, 62%, 81%, 100% {

        transform: scale(1,3);

    }

    14%, 32%, 56%, 70%, 89% {

        transform: scale(1.5);

    }


}


@keyframes mouvement {

    0%, 22%, 49%, 62%, 81%, 100% {

        box-shadow: 0 0 10px 0 rgba(255, 202,0,0.7);

    }

    14%, 32%, 56%, 70%, 89% {

        box-shadow: 0 0 0px 0 rgba(255, 202,0,0.7);

    }


}

/* Animation email */
    
    .letter-image {
        position: fixed;
        bottom: 10px;
        right: 40px;
        width: 200px;
        height: 200px;
        -webkit-transform: translate(-50%, -50%);
        -moz-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        cursor: pointer;
        transform: scale(0.5)
    }
    
    .animated-mail {
        position: absolute;
        height: 150px;
        width: 200px;
        -webkit-transition: .4s;
        -moz-transition: .4s;
        transition: .4s;
    }
        
    .body {
        position: absolute;
        bottom: 0;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 0 0 100px 200px;
        border-color: transparent transparent #e95f55 transparent;
        z-index: 2;
    }
        
    .top-fold {
        position: absolute;
        top: 50px;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 50px 100px 0 100px;
        -webkit-transform-origin: 50% 0%;
        -webkit-transition: transform .4s .4s, z-index .2s .4s;
        -moz-transform-origin: 50% 0%;
        -moz-transition: transform .4s .4s, z-index .2s .4s;
        transform-origin: 50% 0%;
        transition: transform .4s .4s, z-index .2s .4s;
        border-color: #cf4a43 transparent transparent transparent;
        z-index: 2;
    }
        
    .back-fold {
        position: absolute;
        bottom: 0;
        width: 200px;
        height: 100px;
        background: #cf4a43;
        z-index: 0;
    }
        
    .left-fold {
        position: absolute;
        bottom: 0;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 50px 0 50px 100px;
        border-color: transparent transparent transparent #e15349;
        z-index: 2;
    }
        
    .letter {
        left: 20px;
        bottom: 0px;
        position: absolute;
        width: 160px;
        height: 60px;
        background: white;
        z-index: 1;
        overflow: hidden;
        -webkit-transition: .4s .2s;
        -moz-transition: .4s .2s;
        transition: .4s .2s;
    }
            
    .letter-border {
        height: 10px;
        width: 100%;
    background: repeating-linear-gradient(
    -45deg,
    #cb5a5e,
    #cb5a5e 8px,
    transparent 8px,
    transparent 18px
    );
    }
            
    .letter-title {
        margin-top: 10px;
        margin-left: 5px;
        height: 10px;
        width: 40%;
        background: #cb5a5e;
    }
    .letter-context {
        margin-top: 10px;
        margin-left: 5px;
        height: 10px;
        width: 20%;
        background: #cb5a5e;
    }
    
    .letter-stamp {
        margin-top: 30px;
        margin-left: 120px;
        border-radius: 100%;
        height: 30px;
        width: 30px;
        background: #cb5a5e;
        opacity: 0.3;
    }

    
    .shadow {
        position: absolute;
        top: 200px;
        left: 50%;
        width: 400px;
        height: 30px;
        transition: .4s;
        transform: translateX(-50%);
        -webkit-transition: .4s;
        -webkit-transform: translateX(-50%);
        -moz-transition: .4s;
        -moz-transform: translateX(-50%);
        
        border-radius: 100%;
        background: radial-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.0), rgba(0,0,0,0.0));
    }
    
    .letter-image:hover .animated-mail {
        transform: translateY(50px);
        -webkit-transform: translateY(50px);
        -moz-transform: translateY(50px);
    }
    
    .letter-image:hover .animated-mail .top-fold {
        transition: transform .4s, z-index .2s;
        transform: rotateX(180deg);
        -webkit-transition: transform .4s, z-index .2s;
        -webkit-transform: rotateX(180deg);
        -moz-transition: transform .4s, z-index .2s;
        -moz-transform: rotateX(180deg);
        z-index: 0;
    }
    
    .letter-image:hover .animated-mail .letter {
        height: 180px;
    }
    
    .letter-image:hover .shadow {
        width: 250px;
    }



/* Contact form */

#overlayContactForm {

    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #00000070;

    animation-duration: 0.6s;
    animation-name: animForm;

}

.imgPlane {
    max-width: 30px;
    margin-top: -8px;
}

#contactForm {
    background-color: #333333;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 12px;
    box-shadow: 0px 0px 50px 0px #000000;
    padding: 40px;

    animation-duration: 0.6s;
    animation-name: animForm;

}
      
@keyframes animForm {
0%{
    opacity: 0;
}

100%{
    opacity: 1;
}
}

#closeForm {
    position: absolute;
    top: 12px;
    right: 12px;
    max-width: 26px;
    background-color: #fff;
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
}

.btn-dt {

    background-color: #ECA11A;
    background: radial-gradient(#ECA11A, #EC7E13);
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    padding: 10px 10px;
    border: 1px solid #EC7E13;
    border-radius: 6px;

}

.btn-dt:hover {
    box-shadow: 0px 0px 24px 0px #313131a8;
}


/* Loader contact form */

.loader {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    position: relative;
}

.anim-interieur {
    width: 100px;
    height: 50px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.rect {
    background: #fff;
    display: inline-block;
    height: 60px;
    width: 6px;
    margin: 0px 1px;
    animation: loader 1.2s infinite ease-in-out;
}

@keyframes loader {
    0% {
        transform: scaleY(0.4);
    }
    20% {
        transform: scaleY(1);
    }
    40% {
        transform: scaleY(0.4);
    }
    100% {
        transform: scaleY(0.4);
    }
}

.rect2 {
    animation-delay: -1.1s;
}
.rect3 {
    animation-delay: -1s;
}
.rect4 {
    animation-delay: -0.9s;
}
.rect5 {
    animation-delay: -0.8s;
}
