@charset "UTF-8";
body {
    padding: 0;
    margin: 0;
    overflow: hidden;
}
.container {
    /* background-color: orangered; */
    height: 100vh;
    width: 100vw;
    display: flex;
}

#tresse-container {
    height: 90px;
    width: 90px;
    position: absolute;
    top: 40%;
    left: 20%;
    rotate: -90deg;
    /* animation-name: rotation; */
    /* animation-duration: 2.5s; */
    /* animation-iteration-count: infinite; */
}
@keyframes rotation{
    from{
        rotate: 0deg;
    }
    to{
        rotate: 360deg;
    }
}

/* Ici on dit quand quand on hover sur le container de tresse, toutes les div à l'intérieur qui ont la classe "cercle" vont avoir l'animation */

#tresse-container>.cercle {
    /* transform: scale(2); */
    background-color: orange;
    animation-name: cuire;
    animation-duration: 2.5s;
    animation-direction: alternate-reverse;
    animation-iteration-count: infinite;
   
}

@keyframes cuire {
    from {
        background-color: #ff9b54;
        border-color:  #FF6B00;
        transform: scale(2)
    }
    to {
        background-color: #FF6B00;
        border-color: #ff9b54;
        transform: scale(5)
    }
}

.cercle {
    background-color: beige;
    border: solid 5px;
    border-color: #FF6B00;
    transition: transform 1s ease-in-out, background-color 1s ease-in-out;
    transform-origin: center;
    transform: scale(1);
}
.tresse-container div{
    border-style: solid 5px;
    border: blue;
}
#cercle1 {
    height: 90px;
    width: 90px;
    border-radius: 50%;
    position: absolute;
    margin-top: 152px;
    margin-left: -40%;
    z-index: 0;
}

#cercle2 {
    height: 90px;
    width: 90px;
    border-radius: 50%;
    position: absolute;
    margin-top: 42px;
    margin-left: 0%;
    z-index: 1;
}

#cercle3 {
    height: 90px;
    width: 90px;
    border-radius: 50%;
    position: absolute;
    margin-top: 152px;
    margin-left: 40%;
    z-index: 2;
}

#cercle4 {
    height: 90px;
    width: 90px;
    border-radius: 50%;
    position: absolute;
    margin-top: 300px;
    margin-left: -30%;
    z-index: -1;
}

#cercle5 {
    height: 90px;
    width: 90px;
    border-radius: 50%;
    position: absolute;
    margin-top: 300px;
    margin-left: 30%;
    z-index: 1;
}

#cercle6 {
    height: 90px;
    width: 90px;
    border-radius: 50%;
    position: absolute;
    margin-top: 450px;
    margin-left: -40%;
    z-index: -2;
}

#cercle7 {
    height: 90px;
    width: 90px;
    border-radius: 50%;
    position: absolute;
    margin-top: 450px;
    margin-left: 40%;
    z-index: 0;
}

#cercle8 {
    height: 90px;
    width: 90px;
    border-radius: 50%;
    position: absolute;
    margin-top: 590px;
    margin-left: 0%;
    z-index:-1;
}
@media screen and (max-width: 600px){
    
.container {
    /* background-color: orangered; */
    height: 100vh;
    width: 100vw;
    display: flex;
}

#tresse-container {
    height: 90px;
    width: 90px;
    position: absolute;
    top: 20%;
    left: 45%;
    rotate: 0deg;
    /* animation-name: rotation; */
    /* animation-duration: 2.5s; */
    /* animation-iteration-count: infinite; */
}
@keyframes rotation{
    from{
        rotate: 0deg;
    }
    to{
        rotate: 360deg;
    }
}

/* Ici on dit quand quand on hover sur le container de tresse, toutes les div à l'intérieur qui ont la classe "cercle" vont avoir l'animation */

#tresse-container>.cercle {
    /* transform: scale(2); */
    background-color: orange;
    animation-name: cuire;
    animation-duration: 2.5s;
    animation-direction: alternate-reverse;
    animation-iteration-count: infinite;
   
}

@keyframes cuire {
    from {
        background-color: #ff9b54;
        border-color:  #FF6B00;
        transform: scale(1)
    }
    to {
        background-color: #FF6B00;
        border-color: #ff9b54;
        transform: scale(4)
    }
}

.cercle {
    background-color: beige;
    border: solid 5px;
    border-color: #FF6B00;
    transition: transform 1s ease-in-out, background-color 1s ease-in-out;
    transform-origin: center;
    transform: scale(1);
}
.tresse-container div{
    border-style: solid 5px;
    border: blue;
}
#cercle1 {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    position: absolute;
    margin-top: 62px;
    margin-left: -20%;
    z-index: 0;
}

#cercle2 {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    position: absolute;
    margin-top: 42px;
    margin-left: 0%;
    z-index: 1;
}

#cercle3 {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    position: absolute;
    margin-top: 62px;
    margin-left: 20%;
    z-index: 2;
}

#cercle4 {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    position: absolute;
    margin-top: 90px;
    margin-left: -20%;
    z-index: -1;
}

#cercle5 {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    position: absolute;
    margin-top: 90px;
    margin-left: 20%;
    z-index: 1;
}

#cercle6 {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    position: absolute;
    margin-top: 120px;
    margin-left: -20%;
    z-index: -2;
}

#cercle7 {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    position: absolute;
    margin-top: 120px;
    margin-left: 20%;
    z-index: 0;
}

#cercle8 {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    position: absolute;
    margin-top: 150px;
    margin-left: 0%;
    z-index:-1;
}
}