@import "compass/css3";

.countdown {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    flex-direction: row-reverse;
}

.countdown .bloc-time {
    float: left;
    margin-right: 45px;
    text-align: center;
}

.countdown .bloc-time:last-child {
    margin-right: 0;
}

.countdown .count-title {
    display: block;
    margin-bottom: 15px;
    font: normal 1.35em 'Lato';
    color: #1a1a1a;
    text-transform: uppercase;
    font-weight: 600;
}

.countdown .figure {
    position: relative;
    float: left;
    height: 110px;
    width: 100px;
    margin-right: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow:
        0 3px 4px 0 rgba(0, 0, 0, .2),
        inset 2px 4px 0 0 rgba(255, 255, 255, .08);
}

.countdown .figure:last-child {
    margin-right: 0;
}

.countdown .figure>span {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    font: normal 4.5em/107px 'Lato';
    font-weight: 700;
    color: #be2e2e;
}

.countdown .figure .top:after,
.countdown .figure .bottom-back:after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.countdown .figure .top {
    z-index: 3;
    background-color: #cecece9d;
    transform-origin: 50% 100%;
    -webkit-transform-origin: 50% 100%;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    transform: perspective(200px);
}

.countdown .figure .bottom {
    z-index: 1;
}

.countdown .figure .bottom:before {
    content: "";
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: rgba(0, 0, 0, .02);
}

.countdown .figure .bottom-back {
    z-index: 2;
    top: 0;
    height: 50%;
    overflow: hidden;
    background-color: #f7f7f7;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}

.countdown .figure .bottom-back span {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.countdown .figure .top,
.countdown .figure .top-back {
    height: 50%;
    overflow: hidden;
    backface-visibility: hidden;
}

.countdown .figure .top-back {
    z-index: 4;
    bottom: 0;
    background-color: #fff;
    -webkit-transform-origin: 50% 0;
    transform-origin: 50% 0;
    transform: perspective(200px) rotateX(180deg);
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

.countdown .figure .top-back span {
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    margin: auto;
}

.countdown-desc {
    text-align: center;
    margin-bottom: 25px;
    color: #be2e2e;
    font-size: 30px;
}