/**
 * Design System myCFiia - Hexagones Animés
 * Hexagones SVG avec animations de flottement
 */

/* ====================================
   Container des hexagones animés
   ==================================== */
.anidiv {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.anidiv div {
    position: absolute;
    width: 128px;
    height: 128px;
    background: transparent;
    border: none;
}

.anidiv div img {
    width: 100%;
    height: 100%;
}

/* ====================================
   Positions et animations individuelles
   ==================================== */
.anidiv div:nth-child(1) {
    top: 12%;
    left: 42%;
    animation: animate 10s linear infinite;
}

.anidiv div:nth-child(2) {
    top: 70%;
    left: 50%;
    animation: animate 7s linear infinite;
}

.anidiv div:nth-child(3) {
    top: 17%;
    left: 6%;
    animation: animate 9s linear infinite;
}

.anidiv div:nth-child(4) {
    top: 20%;
    left: 60%;
    animation: animate 10s linear infinite;
}

.anidiv div:nth-child(5) {
    top: 67%;
    left: 10%;
    animation: animate 6s linear infinite;
}

.anidiv div:nth-child(6) {
    top: 80%;
    left: 70%;
    animation: animate 12s linear infinite;
}

.anidiv div:nth-child(7) {
    top: 60%;
    left: 80%;
    animation: animate 15s linear infinite;
}

.anidiv div:nth-child(8) {
    top: 32%;
    left: 25%;
    animation: animate 16s linear infinite;
}

.anidiv div:nth-child(9) {
    top: 85%;
    left: 25%;
    animation: animate 9s linear infinite;
}

.anidiv div:nth-child(10) {
    top: 20%;
    left: 80%;
    animation: animate 5s linear infinite;
}

/* ====================================
   Animation principale
   ==================================== */
@keyframes animate {
    0% {
        transform: scale(0) translateY(0) rotate(0);
        opacity: 1;
    }

    100% {
        transform: scale(1.3) translateY(-90px) rotate(360deg);
        opacity: 0;
    }
}

@-webkit-keyframes animate {
    0% {
        -webkit-transform: scale(0) translateY(0) rotate(0);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(1.3) translateY(-90px) rotate(360deg);
        opacity: 0;
    }
}

/* ====================================
   Responsive
   ==================================== */
@media (max-width: 768px) {
    .anidiv div {
        width: 80px;
        height: 80px;
    }
}
