
@font-face {
    font-family: 'Borel' ;
    src: url('fonts/Borel-Regular.ttf')
}

@font-face {
    font-family: 'Roboto' ;
    src: url('fonts/Roboto-Regular.ttf')
}

@font-face {
    font-family: 'Geist' ;
    src: url('fonts/Geist-VariableFont_wght.ttf')
}

* { cursor: url('3D/main.png') 16 16, auto; }

header {
    background-color: rgba(0, 0, 0, 0);
    color: #F5F5F5;
    padding: 10px;
    text-align: center;
    height: 10vh; 
    flex-shrink: 0; 
}

body {
    
    min-height: 100vh; 
    overflow: hidden;
    width: 100%;
    height: 100%;
    font-family: 'Borel', sans-serif;
    position: relative;
    font-size: 1.5rem;
    color: #F5F5F5;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    background-color: #CBCDCB;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    flex-direction: column; 
    box-sizing: border-box;
    flex-grow: 1;
    cursor: url('3D/curseur.png'), auto;
}

h1, h2, h3 {
    font-family: Borel, sans-serif;
}

#logo-title {
    width: 300px;       
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

#logo-title:hover {
    transform: scale(1.05);
}

header h1 {
    margin: 20px;
    padding: 0;
    line-height: 1;
}

header h1 a {
    display: inline-block;
}


body::before {
    content: "";
    position: absolute;
    top: 50%; 
    left: 50%; 
    width: 1100px; 
    height: 1100px; 
    background-image: url('3D/fond liens.png');
    background-size: 70%, auto ;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(-50%, -40%); 
    z-index: -1;
    display: block; 
    overflow-x: hidden;
   
}

.liens-grid {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    position: relative;
    flex-grow: 1; 
    min-height: 70vh; 
}

.liens-grid li {
    position: absolute;
}


.feuille1 { top: 25%; left: 51%; }
.feuille2 { top: 46%; left: 33%; }
.feuille3 { top: 38%; left: 46%; }
.feuille4 { top: 53%; left: 58%; }
.feuille5 { top: 22%; left: 65%; }
.feuille6 { top: 61%; left: 43%; }
.feuille7 { top: 30%; left: 36%; }
.feuille8 { top: 61%; left: 63%; }
.feuille9 { top: 58%; left: 37%; }


.post-it-button {
    background-color: #ffffff;
    border: none;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.post-it-button::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background-color: rgb(255, 229, 114);
    border-radius: 50%;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}


.liens-grid li a img {
    width: 40px; 
    height: auto;
    position: absolute;
    z-index: 0;
    pointer-events: none;

}

footer {
  font-family: 'Borel', sans-serif;
  color: #F5F5F5;
  text-align: center;
  padding-top: 20px;
  height: 10vh;
  font-size: 1rem;
  margin-top: auto; 
  width: 100%;
}


@media (max-width: 600px) {
    
    header {
    flex-shrink: 0;
    width: 100%;
    text-align: center; 
    padding: 10px 0; 
    font-size: 1.5rem;
   
    }
    
    body {
        font-size: 1.5rem;
        overflow: hidden; 
        display: flex;
        flex-direction: column;
        justify-content: center; 
        height: 100%; 
        width: 100%;
        align-items: center; 
        flex-grow: 1; 
    
    }

    /* supprime l'image de fond */
    body::before {
        display: none;
    }
    
    .liens-grid {
        display: grid;
        grid-template-columns: 1fr; 
        padding: 10px 0; 
        gap: 1em; 
        height: 100%; 
        position: static;
        flex-shrink: 0; 
    }

    .liens-grid li {
        position: static;
    }

    
    .feuille1 { transform: translateX(-20%); }
    .feuille2 { transform: translateX(12%); }
    .feuille3 { transform: translateX(-15%); }
    .feuille4 { transform: translateX(42%); }
    .feuille5 { transform: translateX(-50%); }
    .feuille6 { transform: translateX(4%); }

    .post-it-button {
        width: 70px;
        height: 70px;
    }

    .liens-grid li a img {
        width: 50px;
    }
    
     footer {
    font-size: 0.85rem; 
    text-align: center; 
    white-space: normal;
    line-height: 1.4;
    margin-top: auto ;
    width: 100%;
    flex-shrink: 0;
    padding: 20px;
    height: 5vh;
  }
}
