/* =====================
   CONTAINER
===================== */

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* =====================
   COUNTDOWN WRAPPER
===================== */

.countdown {
    width: 100%;
    margin: 0 auto;
    font-weight: 900;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

/* =====================
   TIME BLOCK
===================== */

.countdown .bloc-time {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* TITLE */

.countdown .count-title {
    display: block;
    margin-bottom: 15px;
    font: normal 0.94em "Roboto";
    color: #1a1a1a;
    text-transform: uppercase;
}

/* =====================
   FIGURE CARD
===================== */

.countdown .figure {
    position: relative;
    height: 110px;
    width: 100px;
    margin-right: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 4px rgba(0,0,0,0.2),
                inset 2px 4px 0 rgba(255,255,255,0.08);
}

.countdown .figure:last-child {
    margin-right: 0;
}

.countdown .figure > span {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    font: normal 5.9em/107px "Lato";
    font-weight: 700;
    color: #03af7b;
}

/* =====================
   FLIP FACES
===================== */

.countdown .figure .top,
.countdown .figure .top-back {
    height: 50%;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.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,0.1);
}

.countdown .figure .top {
    z-index: 3;
    background-color: #f7f7f7;
    transform-origin: 50% 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.countdown .figure .bottom {
    z-index: 1;
}

.countdown .figure .bottom:before {
    content: "";
    position: absolute;
    top: 0;
    width: 100%;
    height: 50%;
    background-color: rgba(0,0,0,0.02);
}

.countdown .figure .bottom-back {
    z-index: 2;
    top: 0;
    height: 50%;
    overflow: hidden;
    background-color: #f7f7f7;
}

.countdown .figure .bottom-back span {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.countdown .figure .top-back {
    z-index: 4;
    bottom: 0;
    background-color: #fff;
    transform-origin: 50% 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.countdown .figure .top-back span {
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    margin: auto;
}

/* =====================
   TABLET
===================== */

@media (max-width: 900px) {

    .countdown {
        gap: 25px;
    }

    .countdown .figure {
        height: 90px;
        width: 80px;
    }

    .countdown .figure > span {
        font: normal 4em/86px "Lato";
    }
}

/* =====================
   MOBILE
===================== */

@media (max-width: 600px) {

    .countdown {
        gap: 20px;
    }

    .countdown .bloc-time {
        width: 45%;
    }

    .countdown .count-title {
        font-size: 0.75em;
    }

    .countdown .figure {
        height: 70px;
        width: 60px;
        margin-right: 6px;
    }

    .countdown .figure > span {
        font: normal 2.6em/66px "Lato";
    }
}

/* =====================
   VERY SMALL DEVICES
===================== */

@media (max-width: 360px) {

    .countdown .figure {
        height: 55px;
        width: 48px;
        margin-right: 4px;
    }

    .countdown .figure > span {
        font-size: 2em;
        line-height: 52px;
    }

    .countdown .count-title {
        font-size: 0.65em;
    }
}