/* Pour les écrans larges (PC) */
@media screen and (min-width: 768px) {
    .category-item, .tutorial-item {
        width: 30%; /* Garder la largeur à 30% pour les écrans larges */
    }
}

/* Pour les appareils mobiles */
@media screen and (max-width: 767px) {
    .category-item, .tutorial-item {
        width: 100%; /* Définir la largeur à 100% pour les écrans étroits */
    }
}

/* Réinitialisation des styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('866690.jpg');
    background-size: cover; /* Ajuste la taille de l'image pour couvrir tout le fond */
    background-position: center; /* Centre l'image de fond */
    background-repeat: no-repeat; /* Empêche la répétition de l'image de fond */
    background-attachment: fixed; /* Fixe l'image de fond en place */
    color: #ffffff; /* Couleur du texte */
    background-color: #0c0d0f; /* Couleur de fond de secours */
}

header {
    background: #19191a6b;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
}

header .banner h1 {
    margin: 0;
    font-size: 2em;
    font-family: 'Warcraft Font', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

header nav ul {
    list-style: none;
    padding: 0;
}

header nav ul li {
    display: inline;
    margin: 0 10px;
}

header nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Warcraft Font', sans-serif;
    text-transform: uppercase;
}

.search-bar {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    background-color: #0c0d0f00;
}

.search-bar form {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 5px;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-bar form input[type="text"] {
    border: none;
    padding: 10px;
    width: 250px; /* Adjusted for compact design */
    font-size: 1em;
    border-radius: 25px 0 0 25px;
    outline: none;
    transition: width 0.3s ease;
}

.search-bar form input[type="text"]:focus {
    width: 300px; /* Adjusted for compact design */
}

.search-bar form select.search-select {
    border: none;
    padding: 10px;
    font-size: 1em;
    outline: none;
    appearance: none;
    background: #fff;
    color: #000;
    border-left: 1px solid #ced4da; /* Optional to match the input border */
}

.search-bar form button {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #c79c6e;
    color: #ffffff;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-family: 'Warcraft Font', sans-serif;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.search-bar form button:hover {
    background-color: #b3895b;
}

/* Media queries pour le responsive */
@media (max-width: 767px) {
    .search-bar form {
        flex-direction: column;
        width: 90%;
        padding: 10px;
    }

    .search-bar form input[type="text"] {
        width: 100%;
        border-radius: 25px;
        margin-bottom: 10px;
    }

    .search-bar form input[type="text"]:focus {
        width: 100%;
    }

    .search-bar form select.search-select {
        width: 100%;
        border-radius: 25px;
        margin-bottom: 10px;
    }

    .search-bar form button {
        width: 100%;
        border-radius: 25px;
    }
}

@media (max-width: 600px) {
    .search-bar form {
        width: 100%;
    }
}


.categories, .featured-tutorials {
    padding: 20px;
    background: #20222580;
    margin: 20px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.discord {
    padding: 20px;
    background: #202225;
    margin: 20px auto; /* Marge égale à 20px en haut et en bas, et automatique sur les côtés */
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.member-list {
    list-style: none;
    padding: 0;
    max-height: 300px; /* Hauteur maximale de la liste des membres */
    overflow-y: auto; /* Activation du défilement vertical si nécessaire */
}

.member-list li {
    margin-bottom: 10px;
    font-size: 1.2em;
    white-space: nowrap; /* Empêche le texte de se retourner s'il est trop long */
    overflow: hidden; /* Cache tout texte dépassant la largeur */
    text-overflow: ellipsis; /* Affiche des points de suspension pour indiquer un texte coupé */
}

.member-list i {
    margin-right: 5px;
}

/* Pour les appareils mobiles */
@media screen and (max-width: 767px) {
    .discord {
        margin: 20px 10px; /* Réduire la marge sur les côtés pour les appareils mobiles */
		margin-right: auto;
    }
}

/* Pour les écrans larges (PC) */
@media screen and (min-width: 768px) {
    .discord {
        margin: 20px auto; /* Conserver la marge automatique sur les côtés pour les écrans larges */
        max-width: 440px; /* Limiter la largeur maximale pour éviter que la section ne s'étire trop */
		margin-right: auto;
    }
}


.featured-tutorials {
    margin-bottom: 60px; /* Ajoute une marge en bas pour éviter la superposition avec le footer */
}

.category-list, .tutorial-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.tutorial-item {
    width: 30%; /* Ajustez selon votre mise en page */
    background: #1c3f59;
    padding: 20px;
    margin: 10px 0;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tutorial-item:hover {
    background: #0F3450; /* Couleur de fond au survol */
    cursor: pointer; /* Curseur indiquant que l'élément est cliquable */
}

.tutorial-item h3 {
    margin-bottom: 10px;
}

.tutorial-link {
    color: #fff; /* Couleur du texte pour les liens des tutoriels */
    text-decoration: none; /* Supprimer la soulignement des liens */
}

.tutorial-link:hover {
    text-decoration: underline; /* Soulignement au survol */
}

/* Media Queries pour la mise en page responsive */
@media screen and (max-width: 768px) {
    .tutorial-item {
        width: 100%; /* Pleine largeur sur les appareils mobiles */
    }
}


.category-item, .tutorial-item {
    width: 30%;
    background: #1c3f59;
    padding: 20px;
    margin: 10px 0;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-item, .category-rectangle {
    width: 30%;
    background: #1c3f59;
    padding: 20px;
    margin: 10px 0;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-item:hover, .category-rectangle:hover {
    background: #0F3450; /* Couleur de fond au survol */
    transition: background 0.3s ease;
}

.category-link {
    color: #fff; /* Couleur du texte pour les liens des catégories */
    text-decoration: none; /* Supprimer la soulignement des liens */
}

.category-link:hover {
    color: #fff; /* Couleur du texte au survol des liens */
    text-decoration: none; /* Supprimer la soulignement au survol */
}


.category-link {
    color: #fff; /* Couleur du texte pour les liens des catégories */
    text-decoration: none; /* Supprimer la soulignement des liens */
}

.category-link:hover {
    color: #007bff; /* Couleur du texte au survol des liens */
}

.tutorial-link {
    color: #fff; /* Couleur du texte pour les liens des tutoriels */
    text-decoration: none; /* Supprimer la soulignement des liens */
}

.tutorial-link:hover {
    color: #007bff; /* Couleur du texte au survol des liens */
}

/* Styles pour le tableau des commits */
.community-list table {
    width: 40%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.community-list th, .community-list td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.community-list th {
    background-color: #c79c6e;
    font-weight: bold;
	border-radius: 3px;
}

.community-list td img {
    margin-right: 10px;
}

.community-list a.btn {
    margin-left: 10px;
}

.community-tutorials {
    padding: 20px;
    background: #20222580;
    margin: 20px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	margin-bottom: 60px; /* Ajoute une marge en bas pour éviter la superposition avec le footer */
}

.community-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

/* Pour les appareils mobiles */
@media screen and (max-width: 767px) {
    .community-list table {
        width: 100%;
        display: block;
        overflow-x: auto;
    }

    .community-list th, .community-list td {
        white-space: nowrap;
    }
	
	.search-bar form {
        flex-direction: column;
        width: 90%;
        padding: 10px;
    }

    .search-bar form input[type="text"] {
        width: 90%;
        border-radius: 25px 25px 0 0;
        margin-bottom: 10px;
    }

    .search-bar form input[type="text"]:focus {
        width: 100%;
    }

    .search-bar form button {
        width: 100%;
        border-radius: 0 0 25px 25px;
    }
}

/* Style pour le logo */
.logo {
    width: 150px; /* Ajustement de la taille du logo */
    height: auto;
	position: auto;
    margin-top: -30px; /* Ajoutez une marge supérieure pour séparer le logo du titre */
}

/* Ajustements pour la bannière */
.banner {
    position: relative;
    padding: 20px 0;
    text-align: center;
}

.banner h1 {
    margin: 0;
    font-size: 2.5em;
}

.banner p {
    margin: 10px 0;
    font-size: 1.2em;
}

/* Ajoutez cette partie à votre fichier CSS existant */

.logo-container {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: center;
}

.logo-container .small-logo {
    width: 80px; /* Taille par défaut pour les grands écrans */
    height: auto;
}

.logo-container .logo-text {
    font-size: 15px; /* Taille par défaut pour les grands écrans */
    color: #fff; /* Couleur du texte */
    margin-top: 5px;
    font-weight: bold; /* Gras */
}

.logo-subtext {
    font-size: 14px;
    color: #ccc;
    margin-top: 4px;
    font-style: italic;
}


::-webkit-scrollbar {
    width: 3px;
}
 
::-webkit-scrollbar-track {
    background-color: #e4e4e400;
    border-radius: 100px;
}
 
::-webkit-scrollbar-thumb {
    background-color: #c79c6e;
    border-radius: 100px;
}

/* Curseur par défaut */
body {
  cursor: url('gam372.cur'), default;
}

/* Curseur pour les liens */
a {
  cursor: url('gam375.cur'), pointer;
}

/* Media query pour les écrans de taille moyenne */
@media (max-width: 768px) {
    .logo-container {
        top: 10px; /* Ajustez l'espacement supérieur */
        right: 10px; /* Ajustez l'espacement droit */
    }

    .logo-container .small-logo {
        width: 40px; /* Réduisez la taille pour les écrans moyens */
    }

    .logo-container .logo-text {
        font-size: 10px; /* Réduisez la taille du texte pour les écrans moyens */
    }
}

/* Media query pour les petits écrans (mobiles) */
@media (max-width: 480px) {
    .logo-container {
        top: 5px; /* Ajustez l'espacement supérieur */
        right: 5px; /* Ajustez l'espacement droit */
    }

    .logo-container .small-logo {
        width: 40px; /* Réduisez encore plus la taille pour les petits écrans */
    }

    .logo-container .logo-text {
        font-size: 10px; /* Réduisez encore plus la taille du texte pour les petits écrans */
    }
}



/* Media query pour les appareils mobiles */
@media screen and (max-width: 767px) {
    .logo {
        width: 100px; /* Réduire la taille du logo pour les petits écrans */
        margin-top: -30px; /* Réduire la marge supérieure pour les petits écrans */
    }
	.search-bar form {
        flex-direction: column;
        width: 90%;
        padding: 10px;
    }

    .search-bar form input[type="text"] {
        width: 90%;
        border-radius: 25px 25px 0 0;
        margin-bottom: 10px;
    }

    .search-bar form input[type="text"]:focus {
        width: 100%;
    }

    .search-bar form button {
        width: 100%;
        border-radius: 0 0 25px 25px;
    }
	
	.category-item, .tutorial-item {
        width: 100%; /* Garder la largeur à 30% pour les écrans larges */
    }
}

@media (max-width: 600px) {
    .search-bar form {
        flex-direction: column;
        width: 90%;
        padding: 10px;
    }

    .search-bar form input[type="text"] {
        width: 90%;
        border-radius: 25px 25px 0 0;
        margin-bottom: 10px;
    }

    .search-bar form input[type="text"]:focus {
        width: 100%;
    }

    .search-bar form button {
        width: 100%;
        border-radius: 0 0 25px 25px;
    }
	
	.category-item, .tutorial-item {
        width: 100%; /* Garder la largeur à 30% pour les écrans larges */
    }
}

footer {
    text-align: center; /* Aligner le texte au centre */
    margin-top: 20px; /* Espacement du haut du footer */
}

/* Style pour la boîte de dialogue du crédit */
.credits-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    z-index: 9999; /* Au-dessus de tout */
    text-align: center; /* Centrer le contenu */
    overflow-y: auto; /* Permet le défilement si le contenu dépasse la fenêtre */
}

.credits-content {
    background-color: #1a1a1a; /* Couleur de fond pour le contenu */
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
    min-width: 200px; /* Largeur minimale */
    max-width: 80%; /* Largeur maximale */
    box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.5), 0 0 40px rgba(255, 255, 255, 0.3), 0 0 50px rgba(255, 255, 255, 0.2); /* Effet de contour néon blanc */
    position: relative; /* Positionnement relatif pour les éléments enfants */
    margin: 40vh auto; /* Centrage vertical et horizontal */
    color: #fff; /* Couleur du texte */
    font-family: Arial, sans-serif; /* Police de caractère */
}

#creditsButton {
            margin-top: -10px; /* Ajustement de la marge supérieure pour remonter le bouton */
			margin-bottom: 15px;
        }

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
}

.close-button:hover {
    color: #ccc; /* Couleur au survol */
}
		
		button {
        background-color: #1C3F59; /* Couleur de fond */
        color: white; /* Couleur du texte */
        border: none; /* Supprimer les bordures */
        padding: 5px 10px; /* Espacement intérieur */
        font-size: 15px; /* Taille de police */
        cursor: pointer; /* Curseur au survol */
        border-radius: 5px; /* Coins arrondis */
        transition: background-color 0.3s ease; /* Transition en douceur pour le changement de couleur de fond */
    }

    button:hover {
        background-color: #0F3450; /* Couleur de fond au survol */
    }
	.status-icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px; /* Marge à droite pour l'espacement */
    position: relative;
}

.status-icon::after {
    content: "";
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); /* Ombre de base */
}

.status-icon.online::after {
    background-color: #0f0; /* Couleur verte */
    box-shadow: 0 0 5px #0f0, 0 0 10px #0f0, 0 0 15px #0f00; /* Effet de néon vert */
}

.status-icon.busy::after {
    background-color: #f90; /* Couleur orange */
    box-shadow: 0 0 5px #f90, 0 0 10px #f90, 0 0 15px #0f00; /* Effet de néon orange */
}

.status-icon.offline::after {
    background-color: #f00; /* Couleur rouge */
    box-shadow: 0 0 5px #f00, 0 0 10px #f00, 0 0 15px #0f00; /* Effet de néon rouge */
}
