/* Pour tous les dispositifs */
body {
    background-color: #000;
    color: #fed132;
    font-family: 'Arial', sans-serif;
    font-size: 1.6vh;
    line-height: 1.6;
    margin: 0;
    overflow: hidden; /* Empêcher le défilement horizontal et vertical sur tous les appareils */
}

nav {
    height: 100vh; 
    overflow-y: auto; 
    position: relative; /* Pour positionner le titre au-dessus de la nav */
}

/* Titre au-dessus de la barre de navigation */
h1 {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: black; /* Couleur de fond pour le titre */
    padding: 10px; /* Espace autour du titre */
    text-align: center; /* Centrage du texte */
    width: 100%; /* Prend toute la largeur de la nav */
}

/* Style des libellés des champs */
label {
    display: block;
    margin-bottom: 10px;
    color: #fed132;
}

/* Style des champs de saisie */
input {
    width: 95%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    background-color: #444;
    color: #fed132;
    border-radius: 5px;
}

/* Style des boutons */
button[type="submit"], button[type="button"] {
    width: 40%;
    padding: 10px;
    background-color: #fed132;
    border: none;
    color: #000;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 50px;
}

button[type="submit"]:hover, button[type="button"]:hover {
    background-color: #2c2c2c;
}

/* Style spécifique pour l'image Ko-fi */
.social-links img.social-icon {
    width: 45px !important;
    height: auto;
    margin-top: -1px !important; 
}

/* Ajustements pour les dispositifs mobiles avec une largeur d'écran inférieure à 600px */
@media screen and (max-width: 600px) {
    body {
        overflow: hidden; /* Empêcher le défilement horizontal et vertical */
    }
    
    nav {
        padding: 1.8vh;
        margin-bottom: 0.4vh;
        width: 100%; /* Prend toute la largeur de l'écran */
    }

    /* Style des liens */
    p, a {
        text-align: center;
        text-decoration: none;
        color: #fed132;
    }

    ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: space-between; /* Espacement égal entre les éléments */
    }

    .nav-item {
        width: 85%; /* Largeur de chaque élément */
        padding-top: 20vh;
    }

    .nav-item:first-child {
        margin-right: 10px; /* Espacement entre les éléments */
    }

    .nav-item:last-child {
        margin-left: 10px; /* Espacement entre les éléments */
    }

    .nav-item a img {
        width: 100%; 
        height: 350px;
        margin-top: 30px;
    }

    /* Styles pour le titre h1 */
    h1 {
        margin-top: 0; /* Espace au-dessus du titre */
    }

    .social-links {
        display: flex;
        justify-content: center; 
    }

    .social-links a {
        font-size: 4vh;
    }

    /* Style spécifique pour l'image Ko-fi */
    .social-links img.social-icon {
        width: 60px !important;
        height: auto;
        margin-top: -3px !important; 
    }

    footer {
        position: fixed;
        bottom: 0;
        width: 100%;
        text-align: center;
        margin-bottom: 40px;
    }
}

/* Ajustements pour les dispositifs avec une largeur d'écran entre 602 à 1023px */
@media screen and (min-width: 601px) and (max-width: 1024px) {
    body {
        overflow-x: hidden; /* Empêcher le défilement horizontal */
        overflow-y: hidden; /* Empêcher le défilement vertical */
    }
    
    nav {
        height: 100vh; /* Ajuster la hauteur pour remplir l'écran */
        overflow-y: auto; /* Activer le défilement vertical si nécessaire */
        padding: 1.8vh;
        margin-bottom: 0.4vh;
        width: 100%; /* Prend toute la largeur de l'écran */
    }

    /* Style des liens */
    p, a {
        text-align: center;
        text-decoration: none;
        color: #fed132;
    }

    ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: space-between; /* Espacement égal entre les éléments */
    }

    .nav-item {
        width: 85%; /* Largeur de chaque élément */
        padding-top: 15vh;
    }

    .nav-item:first-child {
        margin-right: 10px; /* Espacement entre les éléments */
    }

    .nav-item:last-child {
        margin-left: 10px; /* Espacement entre les éléments */
    }

    .nav-item a img {
        width: 100%; 
        height: 500px;
        margin-top: 100px;
    }

    /* Styles pour le titre h1 */
    h1 {
        margin-top: 0; /* Espace au-dessus du titre */
    }

    .social-links {
        display: flex;
        justify-content: center; 
    }

    .social-links a {
        font-size: 4vh;
    }

    /* Style spécifique pour l'image Ko-fi */
    .social-links img.social-icon {
        width: 70px !important;
        height: auto;
        margin-top: 0px; 
    }

    footer {
        position: fixed;
        bottom: 0;
        width: 100%;
        text-align: center;
        margin-bottom: 50px;
    }
}


/* Ajustements pour les dispositifs avec une largeur d'écran supérieur à 1024px */
@media screen and (min-width: 1025px) {
    body {
        overflow-x: hidden; /* Empêcher le défilement horizontal */
        overflow-y: hidden; /* Empêcher le défilement vertical */
    }   

    nav {
        height: 100vh; /* Ajuster la hauteur pour remplir l'écran */
        overflow-y: auto; /* Activer le défilement vertical si nécessaire */
        padding: 1.8vh;
        margin-bottom: 0.4vh;
        width: 100%; 
    }

    /* Style des liens */
    p, a {
        text-align: center;
        text-decoration: none;
        color: #fed132;
        font-size: 13px;
    }

    ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center; 
    }

    .nav-item {
        width: 90%; 
        margin: 1px 50px; 
        padding-top: 10vh;
    }

    .nav-item a img {
        width: 85%;
        height: 475px; 
        object-fit: cover; 
    }

    /* Styles pour le titre h1 */
    h1 {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        background-color: black; /* Couleur de fond pour le titre */
        padding: 10px; /* Espace autour du titre */
        text-align: center; /* Centrage du texte */
        width: 100%; /* Prend toute la largeur de la nav */
        margin-top: 0; /* Espace au-dessus du titre */
    }

    .social-links {
        display: flex;
        justify-content: center; 
    }

    .social-links a {
        font-size: 4vh;
    }

    /* Style spécifique pour l'image Ko-fi */
    .social-links img.social-icon {
        width: 45px;
        height: auto;
        margin-top: 0px; 
    }

    footer {
        position: fixed;
        bottom: 0;
        width: 100%;
        text-align: center;
        margin-bottom: 0px;
    }
}




