/* Styles généraux */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

@font-face {
    font-family: 'fibel'; /* Nom de la police */
    src: url('fonts/fibel.ttf') format('truetype'); /* Chemin vers le fichier de police */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Minecraft';
    src: /*url('fonts/minecraft.ttf') format('truetype'),*/
        url('fonts/minecraft.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'fibel_2'; /* Nom de la police */
    src: url('fonts/Fibel_2.ttf') format('truetype'); /* Chemin vers le fichier de police */
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: #121212;
    color: #f0f0f0;
    font-family: 'fibel_2';
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background-color: #1e1e1e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

header .logo {
    font-family: 'Minecraft', sans-serif;
    font-size: 1.2rem;
    color: #ff6f61;
    font-weight: bold;
}

nav ul {
    list-style-type: none;
    display: flex;
    gap: 20px;
}

.nav-link {
    font-size: 1.2rem;
    font-family: 'Minecraft', sans-serif;
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ff6f61;
}


footer {
    text-align: center;
    background-color: #1e1e1e; /* Optionnel : pour différencier le footer */
    font-family: 'Minecraft';
    padding: 1px 0;
}

.contact-container {
    display: flex;
    justify-content: center; /* Centre les colonnes horizontalement */
    gap: 40px; /* Espacement entre les colonnes */
}

.contact-column {
    text-align: left; /* Pour garder le texte aligné à gauche dans les colonnes */
}

.contact-column p {
    margin: 10px 0; /* Espacement entre les éléments */
}

.contact-column a {
    text-decoration: none;
    color: #ff6f61; /* Couleur des liens */
}

.contact-column a:hover {
    color: #007BFF; /* Couleur au survol */
}


footer a {
    font-family: 'Minecraft';
    color: #ff6f61;
    text-decoration: none;
}

footer p {
    margin-bottom: -5px; /* Espacement réduit à 2 pixels entre chaque ligne */
    font-size: 14px; /* Ajuste la taille de la police si nécessaire */
}

.page-header {
    text-align: center;
    font-family: 'Inter'; /* Police Inter */
    margin: 30px 0;
    color: #f0f0f0;
    margin: 1px;
}

.page-header h1 {
    font-family: 'Inter'; /* Police Inter */
    -webkit-text-fill-color: transparent; /* Remplissage transparent */
    -webkit-text-stroke-color: #f0f0f0; /* Couleur de la bordure */
    -webkit-text-stroke-width: 2px; /* Épaisseur des lettres creuses */
    letter-spacing: 10px; /* Espacement des lettres */
    font-size: calc(1.525rem + 3.3vw); /* Taille dynamique */
    margin-bottom: 10px; /* Espacement réduit sous le titre */
}

.page-header h2 {
    font-family: 'Fibel_2'; /* Police Fibel */
    font-size: 1.5rem; /* Sous-titre plus petit */
    font-weight: bold;
    color: #9d93ff;; /* Couleur plus douce pour le sous-titre */
    margin-top: 0;
    margin-bottom: 5px;
}

.page-header p {
    font-size: 0.7rem;
    font-family: 'Inter';
    font-weight: bold;
    color: #ccc;
    margin: 0;
}

.project-section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-section h2 {
    font-size: 3rem;
    color: #ff6f61;
    margin-bottom: 20px;
}

.project {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    background-color: #1e1e1e;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animation fluide */
}

.project:hover {
    transform: scale(1.03); /* Grossit légèrement */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6); /* Ajoute une ombre plus marquée */
}

.project-preview {
    flex: 1;
    max-width: 40%; /* Sur PC, la prévisualisation occupe la moitié */
}

.project-info {
    flex: 1;
    max-width: 60%; /* Sur PC, le texte occupe l'autre moitié */
}

.project-info h3 {
    margin: 10px 0;
    font-size: 2rem;
    color: #f0f0f0;
}

.project-info p {
    margin: 10px 0;
    font-size: 1.5rem;
    font-family: 'fibel_2';
    color: #ccc;
}

.project-info h4 {
    margin: 10px 0;
    font-size: 1rem;
    font-weight: bold;
    color: #9d93ff;
}

.project-link {
    color: #ff6f61;
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: bold;
}

/* Styles pour mobile */
@media (max-width: 850px) {

    /* Header */
    header .logo {
        font-size: 0.6rem; /* Réduit la taille du logo */
    }

    .nav-link {
        font-size: 0.6rem; /* Réduit la taille des liens */
    }

    .page-header {
        font-size: 0.9rem; /* Réduit globalement la taille de la section */
        text-align: center; /* Centre les éléments dans le header */
    }
    .page-header h1 {
        font-size: 2.5rem; /* Taille réduite du titre */
        margin: 0.5rem 0; /* Espacement réduit autour du titre */
    }
    .page-header h2 {
        font-size: 1rem; /* Taille réduite du sous-titre */
        margin: 0.3rem 0; /* Moins d'espace entre les lignes */
    }
    .page-header p {
        font-size: 0.4rem; /* Réduit la taille du texte */
        word-wrap: break-word; /* Empêche les débordements de texte */
    }

    /* Projet */
    .project {
        flex-direction: column; /* Empile les éléments verticalement */
        gap: 10px; /* Ajoute un espacement uniforme */
    }

    .project-section h2 {
        font-size: 2rem; /* Réduit la taille du titre */
    }

    .project-preview {
        width: 100%; /* Les iframes prennent toute la largeur */
        height: auto; /* Ajuste automatiquement la hauteur */
    }

    .project-info {
        max-width: 100%; /* Le texte prend toute la largeur */
        text-align: center; /* Centre le texte pour plus de lisibilité */
    }
    .project-info h3 {
        font-size: 1.2rem; /* Réduit la taille des titres */
    }
    .project-info p {
        font-size: 1rem; /* Taille réduite pour les descriptions */
    }

    .project-link {
        font-size: 1rem; /* Réduit la taille des liens */
    }

    /* Iframes */
    iframe {
        display: none; /* Cache les iframes par défaut */
        /*width: 250%; /* Ajuste la largeur au conteneur parent */
        /*height: 40vh; /* Utilise toute la hauteur visible de la fenêtre */
        /*border: none;*/
    }

    footer {
        position: relative;
        bottom: 0;
        width: 100%;
    }

    footer p {
        font-size: 0.6rem;
    }

    .contact-container {
        display: grid;
        grid-template-columns: 1fr; /* Une seule colonne */
        gap: 0; /* Supprime tout espace entre les éléments */
        text-align: center; /* Centre le texte */
    }

    .contact-column {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px; /* Petit espace entre l'icône et le texte */
    }

    .contact-column p {
        margin: 1%;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap; /* Empêche le retour à la ligne */
    }

    .contact-column i {
        font-size: 1em; /* Ajuste la taille des icônes si nécessaire */
    }
    
}