/* ========== Importation des polices ========== */
@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')
    
}
/* ========== Global Styles ========== */
header {
    background-color: rgba(0, 0, 0, 0);
    color: #F5F5F5;
    padding: 20px;
    text-align: center;
    height: 10vh; /* Hauteur proportionnelle à la taille de la fenêtre */
    flex-shrink: 0; /* Empêche le rétrécissement */
}

body {
    
    min-height: 100vh; /* Assure un remplissage complet de l'écran */
    overflow: hidden; /* Supprime le défilement */
    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: #6495ED;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    flex-direction: column; /* Pour flexbox */
    box-sizing: border-box;
    flex-grow: 1; /* Utilise tout l'espace restant */
    cursor: url('3D/curseur.png'), auto;
}

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

/* Image de fond */
body::before {
    content: "";
    position: absolute;
    top: 50%; /* Centré verticalement */
    left: 50%; /* Centré horizontalement */
    width: 1100px; /* Taille augmentée */
    height: 1100px; /* Taille augmentée */
    background-image: url('3D/fond liens.png');
    background-size: 70%, auto ;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(-50%, -40%); /* Décalage vertical pour qu'elle dépasse légèrement */
    z-index: -1; /* Derrière le contenu */
    display: block; /* Forcer son affichage */
    overflow-x: hidden; /* Empêche le débordement horizontal */
   
}

.liens-grid {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    position: relative;
    flex-grow: 1; /* Utilise l'espace disponible */
    min-height: 70vh; /* Hauteur dynamique */
}

.liens-grid li {
    position: absolute;
}

/* Positionnement personnalisé sur ordinateur */
.feuille1 { top: 25%; left: 51%; }
.feuille2 { top: 46%; left: 30%; }
.feuille3 { top: 38%; left: 46%; }
.feuille4 { top: 53%; left: 58%; }
.feuille5 { top: 22%; left: 65%; }
.feuille6 { top: 61%; left: 43%; }

/* Bouton de type "Feuille" */
.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;
}

/* Cercle jaune pour simuler un aimant */
.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);
}

/* Logo centré */
.liens-grid li a img {
    width: 40px; /* Taille fixe pour les logos */
    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; /* Pousse le footer en bas */
  width: 100%;
}


/* ========== Media Queries ========== */

/* Petits écrans (mobiles en portrait) */

@media (max-width: 600px) {
    
    header {
    flex-shrink: 0;
    width: 100%;
    text-align: center; /* Centre le texte */
    padding: 10px 0; /* Ajoute un peu d'espace */
    font-size: 1.5rem;
   
    }
    
    body {
        font-size: 1.5rem;
        overflow: hidden; /* Empêche le défilement */
        display: flex;
        flex-direction: column;
        justify-content: center; /* Aligne header, contenu, footer */
        height: 100%; /* Remplit l'écran sans déborder */
        width: 100%;
        align-items: center; /* Centre horizontalement */
        flex-grow: 1; /* Utilise tout l'espace restant */
    
    }

    /* Supprime l'image de fond */
    body::before {
        display: none;
    }

    /* Grille à une seule colonne */
    
    .liens-grid {
        display: grid;
        grid-template-columns: 1fr; /* Une seule colonne */
        padding: 10px 0; /* Ajoute un peu d'espace */
        gap: 1em; /* Espacement entre les éléments */
        height: 100%; /* Ajustement pour remplir la hauteur disponible */
        position: static;
        flex-shrink: 0; /* Utilise l'espace disponible */
    }

    /* Styles spécifiques pour chaque lien */
    .liens-grid li {
        position: static;
    }

    /* Variations gauche-droite pour les liens */
    .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; /* Réduit la taille du texte */
    text-align: center; /* Centrage du texte */
    white-space: normal; /* Permet le passage à la ligne */
    line-height: 1.4; /* Espacement entre les lignes */
    margin-top: auto ;
    width: 100%;
    flex-shrink: 0;
    padding: 20px;
    height: 5vh;
  }
}
