:root {
    --radius: 350px;
}

@font-face {
    font-family: 'Nextou';
    src: url("resources/font.otf") format("opentype");
}


* {
    box-sizing: border-box;
    font-family: 'Nextou';
    /* font-family: 'poppins', sans-serif; */
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100dvh;
    width: 100dvw;
}

body {
    position: relative;
}

.fond {
    height: 100%;
    width: 100%;
    position: absolute;
    margin: 0;
    padding: 0;
    z-index: -1;
}

#root {
    padding: 50px;
    display: grid;
    grid-template-columns: 30% 1fr;
    gap: 50px;
    min-height: 100vh;

}

#root>div {
    display: flex;
   
    flex-direction: column;
    justify-content: center;
}

h1 {
    margin: 0;
    padding: 0;
    color: #a37bbf;
    text-align: center;
    font-size: 100px;
    display: flex;
    flex-direction: column;
}

h1>span:nth-child(2) {
    font-size: 50px;
}

a {
    border: none;
    color: #FFF;
    background-color: #e1a0cd;
    font-size: 25px;
    font-weight: 200;
    width: fit-content;
    padding: 0.7em 2em;
    margin: 0 auto;
    margin-top: 2em;
    border-radius: 30px;
    text-decoration: none;
}

a:hover {
    opacity: 0.8;
    cursor: pointer;
}

.clock {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.clock .picto {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    display: flex;
    flex-direction: column;
}

.clock .picto {
     transform: translate(calc(cos(var(--angle)) * var(--radius)), calc(sin(var(--angle)) * var(--radius)));
}

.clock .picto:nth-child(1) {
    --angle: 0
}

.clock .picto:nth-child(2) {
    --angle: 45deg
}

.clock .picto:nth-child(3) {
    --angle: 90deg
}

.clock .picto:nth-child(4) {
    --angle: 135deg
}

.clock .picto:nth-child(5) {
    --angle: 180deg
}

.clock .picto:nth-child(6) {
    --angle: 225deg
}

.clock .picto:nth-child(7) {
    --angle: 270deg
}

.clock .picto:nth-child(8) {
    --angle: 315deg
}

.clock .picto {
    width: 100px;
    height: 100px;
}

.clock .picto img {
    width: 100%;
}

.clock .picto span {
    margin-top: 10px;
    font-size: 18px;
    text-align: center;
    
}

.nextou-icon {
    width: 250px;
    height: 250px;
}

@media screen and (max-width: 1300px) {

    h1 {
        font-size: 75px;
    }

    h1>span:nth-child(2) {
        font-size: 40px;
    }

    a {
        font-size: 20px;
    }

    .nextou-icon {
        width: 150px;
        height: 150px;
    }

    .clock .picto {
        width: 75px;
        height: 75px;
    }

    .clock .picto span {
        font-size: 16px;
        font-weight: 600;
    }

    :root {
        --radius: 250px;
    }
}

@media screen and (max-width: 1000px) {
    #root {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .clock {
        height: calc(2 * var(--radius) + 2*100px);
    }
    
}


@media screen and (max-width: 650px) {
    .nextou-icon {
        width: 100px;
        height: 100px;
    }

    .clock .picto {
        width: 50px;
        height: 50px;
    }

    .clock .picto span {
        font-size: 14px;
        font-weight: 600;
    }

    :root {
        --radius : 200px
    }

    
}

@media screen and (max-width: 460px) {

    h1 {
        font-size: 35px;
    }

    h1>span:nth-child(2) {
        font-size: 20px;
    }

    a {
        font-size: 15px;
    }

    .nextou-icon {
        width: 75px;
        height: 75px;
    }

    .clock .picto img {
        width: 30px;
        height: 30px;
    }

    .clock .picto span {
        font-size: 12px;
        font-weight: 500;
    }

    :root {
        --radius : 120px
    }

    
}