@font-face {
    font-family: "labeur";
    src: url("../src/font/terminal-grotesque-webfont.woff");
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* variables */
:root{
    --main-padding: 15px;
    --main-font: "labeur" ; 
    --main-fontsize: 17px;
    --mauve: #7a11a6;
    --lila: #c261eb;
    --rose: #e6c7f3; 
    --background : #202020;
}

body{
    overflow-x: hidden;
    background-color: var(--background);
    padding: 15px;
    margin-top: 200px;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display : grid;

    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas: 
        "txt roue roue" 
        "txt roue roue"
        "txt roue roue";
    gap: 5px;

    cursor: url("../src/img/souris_lila.png") 5 5, auto;
}

a:hover{
    cursor: url("../src/img/souris_rose.png") 5 5, auto;
}
header{
    position: fixed;
    display: flex;
    padding: 15px;
    padding-right: 50px;
    justify-content: space-between;
    top: 0;
    left: 0;
    right: 0;
    margin-left: var(--main-padding);    
    font-size: var(--main-fontsize);
    font-family:var(--main-font);
    color:var(--rose);
}
#svg_logo{
    display: flex;
    margin-left: 120px;
    width: 200px;
    height: 200px;    
    justify-content: center;
    align-items: center;
}
#svg_logo a{    
    display: block;
    width: 140px;
    height: 140px;
    background-color: var(--background);
    border-radius: 50%;
    padding: 5px;
    animation: ani 4s linear infinite;
}
#svg_logo svg{
    width: 100%;
    filter: drop-shadow(0px 0px 5px rgba(122, 17, 166, 0.8));
}
/*@keyframes ani{
    0% {transform: rotateX(0deg) ;}
    50% {transform: rotateX(0deg);}
    100% {transform: rotateX(360deg) ;}
}*/
#svg_logo path,
#svg_logo ellipse{
    fill: var(--mauve);
}

header{
    position: fixed;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    padding: 15px;
    padding-right: 50px;
    top: 0;
    left: 0;
    right: 0;
    margin-left: var(--main-padding);    
    font-size: var(--main-fontsize);
    font-family:var(--main-font);
    color:var(--rose);
}
header::before{
content: "";
z-index: -1;
display: block;
position: fixed;
top: 0;
left: 0;
right: 0;
height: 45px;
background-color: var(--background);
}
header nav{
    display: flex;
}
ul#social {
    display: flex;
    gap: 50px;
}
ul#social li {
    display: block;
    list-style: none;
    min-width: 4rem;
}
ul#social li > a{
    color: var(--rose);
    text-decoration-line: none;
}
ul#social li > a:hover{
    color: var(--lila);
    text-decoration-line: underline;
}
/*structure de la page */


#intro-txt{
    grid-area: txt;
    justify-self: left;
    align-self: start;
    max-width: 460px;
    padding-top: 100px;

    margin-left: var(--main-padding);
    font-size: var(--main-fontsize);
    font-family:var(--main-font);
    color:var(--rose);
}
#intro-txt p{
    margin-bottom: 8px;
}


/*placement de la zone d'action */
#roue-externe{
    grid-area: roue;
    position: fixed;
    right: -43.5vw;
    bottom: -43.5vw;

    width: 87vw;
    height: 87vw;
    transform-origin: center;
    transform: rotate(0);

/*background: #e6c7f3; */
}
/*permet de contenir les éléments à l'intérieur 
et de suivre ses mouvements*/
.roue-wrapper{
    position: relative;
    width: 100%;
    height:100%;
}

/*placement et dimension des axes de placements des éléments */
.aiguille{
    position: absolute;
    bottom: 50%;
    left: 42.5%;
    height: 50%;
    width: 12.5%;
    transform-origin: bottom center;
    transform: rotate(0deg);
/*background-color: #c261eb; */
}
/*définition du placement des éléments enfants
autour du point de départ défini précédemment

que veux dire nth ?
*/
.aiguille:nth-child(2){
    transform: rotate(36deg);
}
.aiguille:nth-child(3){
    transform: rotate(72deg);
}
.aiguille:nth-child(4){
    transform: rotate(108deg);
}
.aiguille:nth-child(5){
    transform: rotate(144deg);
}
.aiguille:nth-child(6){
    transform: rotate(180deg);
}
.aiguille:nth-child(7){
    transform: rotate(216deg);
}
.aiguille:nth-child(8){
    transform: rotate(252deg);
}
.aiguille:nth-child(9){
    transform: rotate(288deg);
}
.aiguille:nth-child(10){
    transform: rotate(324deg);
}
/*taille de la boite du svg et de l'animantion*/
.aiguille .svg-projet{
    width: 100%;
    aspect-ratio: 1/1;
transition: transform 250ms ease-in-out;
}
.aiguille .svg-projet:hover{
    transform-origin: center;
    transform: scale(1.2);
    transition: transform 250ms ease;
}
/*disposition dans la boite taille et effet du svg*/
.aiguille svg{
    display: block;
    margin: 0 auto;
    max-height: 100%;
    max-width: 100%;    
    filter: drop-shadow(0px 0px 5px rgba(122, 17, 166, 0.8));
}
.svg-projet path,
.svg-projet ellipse{
    fill: var(--mauve);
}

@media screen and (max-width:1200px){

    header{
        flex-direction: column-reverse;
        align-items: center;
        padding: 10px 0 0 0;
        margin: 0;
    }

    #svg_logo{
        margin-left: 0;
    }

    .aiguille .svg-projet{
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        -webkit-tap-highlight-color: transparent;
    }

    ul#social li {
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        -webkit-tap-highlight-color: transparent; 
    }

    #svg_logo a{    
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        -webkit-tap-highlight-color: transparent; 
    }
}
@media screen and (max-width: 500px){
   
   body{grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: 
        "txt" 
        "txt"
        "roue";
   }

   #intro-txt{
    padding-top: 50px;
   }

   header{
    flex-direction: column-reverse;
    align-items: center;
    padding: 10px 0 0 0;
    margin: 0;
   }

   #svg_logo{
    justify-self: center;
    margin-left: 0;
    }
    
   #roue-externe{
    right: 7.2vw;
    bottom: -43.5vw;
   }

   .aiguille .svg-projet{
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-tap-highlight-color: transparent;
    }

    ul#social li {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-tap-highlight-color: transparent; 
    }

    #svg_logo a{    
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-tap-highlight-color: transparent; 
    }
}

