/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Fredoka:wght@300..700&display=swap'); /* La font */

/* Root */

:root {
    --MainMargin: 20px;
    --MainPadding: 20px 30px;
}

/* Fonts (Polices d'écriture) */

.audiowide-regular, h2, h1 {
    font-family: "Audiowide", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: white;
    text-shadow: 0 0 5px black;
}

/* Commun à toutes les pages */


/* Tu peux modifier la couleur de la sélection! */
::selection {
    background-color: #0b56b2;
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar-thumb {
    background: #1f0835;
    border: 3px solid #8A2BE2;
    border-radius: 20px;
}::-webkit-scrollbar-track {
    background: #8A2BE2;
}::-webkit-scrollbar {
    width: 13px;
}


/* HTML */

html {
    margin: 0;
    padding: 0;
}

/* Body */

body {
    font-family: Arial, sans-serif;
    box-sizing: border-box !important;

    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #f5f5f5;
    background: linear-gradient(to right, #ADD8E6, #8A2BE2);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 100% 100%;
}

/* Header (Haut de la page) */

header {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    background-color: #91000f;
    color: white;
    padding: 10px 20px;
    border-radius: 0 0 0 10px;
    font-family: Arial, sans-serif;
    z-index: 1000;
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
}

/* Main (Partie principale de la page) */

.page {
    display: flex;
    overflow: hidden;
    height: 100dvh;
}

main {
    .main {
        overflow: auto;
        padding: var(--MainMargin);
    }
}

/* Titres */

h2.Margin {
    margin-left: 30px;
}

/* Liens */

a {
    color: black;
    text-decoration: none;
}

/* Barre de navigation à gauche (nav)*/

nav h2, .mobile-nav h2 {
    margin: var(--MainPadding);
    font-family: 'Audiowide', sans-serif;
    text-align: center;
    color: #3f8cff;
    font-size: 1.3em;
}

nav {
    overflow-x: hidden;
    overflow-y: auto;
    min-width: fit-content;

    background-color: #000a14;
    color: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    padding: 20px;

    list-style: none;
    padding: 0;
    margin: 0;

    .sidebar {
        display: flex;
        flex-direction: column;
        height: 100dvh;
    }

    .nav {
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        flex-grow: 1;
    }

    .nav-button {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        gap: calc(var(--MainMargin)/2);
        margin: 0 calc(var(--MainMargin)/2) 0 calc(var(--MainMargin)/2);
        a {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;
            border-radius: 5px;
            transition: background-color 0.2s ease;

            color: white;
            text-decoration: none;
            font-weight: bold;
            font-size: 16px;
            
            svg {
                fill: white;
            }
            box-shadow: #0c50a2 0 0 2px;
        }
        a:hover {
            box-shadow: #0b3160 0 0 10px;
            background-color: #0056b3;
        }
    }

    .user-info-container {
        background-color: #3f8cff2c;
        border-radius: 3px;
        margin: calc(var(--MainMargin)/2);
    }
}

.logo {
    max-width: 100px;
    max-height: 100px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 50%;
}

/* Utilisateurs (Logo + pseudo de la personne sur le nav) */

.users-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    margin: var(--MainMargin);
    margin-top: 0;
}

.user-info {
    display: flex;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
}

.user-info-divider {
    margin: 10px 0;
    border: 0;
    border-top: 1px solid #ccc;
}

.user-profile {
    text-align: center;
}

.user-pseudo {
    color: #3f8cff;
    font-family: "Fredoka";
    flex-grow: 1;
    text-align: center;
}

.user-logo {
    width: 40px;
    height: 40px;
    border-radius: 3px;
    object-fit: cover;
    border: 3px solid transparent;
}


/* Page principale */




/* Alignement du texte à l'accueil */

.accueil {
    text-align: center;
}

/* Popups */

.popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: #333;
    color: #fff;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    animation: popupSlideIn 0.5s ease-out forwards;
    z-index: 10;
}

.popup.hide {
    animation: popupSlideOut 0.5s ease-in forwards;
}

.popup a {
    border: 2px solid #7289da;
    color: #7289da;
    font-weight: bold;
    font-size: 18px;
    font-family: 'Arial', sans-serif;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    margin-left: 10px;
    animation: blink 2s infinite;
}

.popup p {
    margin: 0;
    display: flex;
    align-items: center;
}

.close-btn {
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.close-btn:hover {
    color: #ccc;
}

.close-btn-2 {
    background-color: transparent;
    border: none;
    color: #000000;
    font-size: 18px;
    cursor: pointer;
}

.close-btn-2:hover {
    color: #000000;
}

.popupinfo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #89d0ff, #fc9999);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    z-index: 1000;
    text-align: center;
    animation: popupfadeIn 0.4s ease-in-out;
}

.popupinfo h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
    font-family: 'Arial', sans-serif;
}

.popupinfo p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
    font-family: 'Arial', sans-serif;
}

.popupinfo img {
    max-width: 100px;
    margin-bottom: 20px;
}

.popupinfo a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease-in-out;
}

.popupinfo a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.popupinfo .close-btn {
    display: inline-block;
    background-color: #f44336;
    color: white;
    font-size: 14px;
    font-family: 'Arial', sans-serif;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.popupinfo .close-btn:hover {
    background-color: #d32f2f;
}

/* Animations des Popups */

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes popupSlideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes blink {
    0%, 100% {
        color: #7289da;
        border-color: #7289da;
    }
    50% {
        color: #ff0000;
        border-color: #ff0000;
    }
}

@keyframes popupfadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes popupfadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
}

/* Conditions d'utilisation */

#conditionsutilisation {
    width: 20px;
    height: 20px;
}

.conditionsutilisation {
    background: linear-gradient(to right, rgba(74, 144, 226, 0.4), rgba(142, 45, 226, 0.4));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.526);
    background-color: #fff;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.conditionsutilisation h2 {
    font-size: 22px;
    border-bottom: 2px solid #007BFF;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #333;
}

.conditionsutilisation p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.conditionsutilisation ul {
    margin: 10px 0;
    padding-left: 20px;
}

.conditionsutilisation ul li {
    margin-bottom: 10px;
}

/* -----| Projects |----- */
/* à l'accueil */
.buttonsprojects {
    display: block !important;
    margin: 0 auto !important;
    background: #1a1a1a;
    color: #f1f1f1;
    text-decoration: none;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 80%;
    height: 50%; 
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.buttonsprojects:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}
.buttonsprojects h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    color: #33ffcc;
    margin-bottom: 10px;
}
.buttonsprojects h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    color: #ffcc00;
    margin-bottom: 15px;
}
.buttonsprojects p {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #f1f1f1;
    line-height: 1.5;
    margin-bottom: 15px;
}
/* dans project */
.projects {
    display: block;
    background: #1a1a1a;
    color: #f1f1f1;
    text-decoration: none;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 75%;
    height: auto; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.projects h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    color: #33ffcc;
    margin-bottom: 10px;
}
.projects h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    color: #ffcc00;
    margin-bottom: 15px;
}
.projects p {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #f1f1f1;
    line-height: 1.5;
    margin-bottom: 15px;
}
/* reste */
.like, .dislike {
    display: inline-block;
    margin-right: 15px;
}
.like-button, .dislike-button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
}
.like-button img, .dislike-button img {
    width: 20px;
    margin-right: 5px;
}
.like-button:hover, .dislike-button:hover {
    color: #33ffcc;
}
.likeratio {
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #ff6666;
    margin-left: 15px;
}
.supr_project {
    background: #ff3333;
    border: none;
    padding: 10px 20px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.supr_project:hover {
    background: #cc0000;
}

/*Animations de like et de Dislike*/
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}




/* Page de profile + Un peu de registration*/




/* Affichage de la photo de profile (dans /profile.php)*/

.profile {
    text-align: center;
}

.profile img {
    width: 150px;
    height: 150px;
    border-radius: 75px;
}

.signaler form {
    max-width: 200px; 
    margin: 0 auto;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.signaler, label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.signaler textarea, .ban_reason textarea, .panel_message textarea {
    width: 100%;
    height: 150px;
    padding: 10px;
    border: 1px solid #60a5ff;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    resize: vertical;
}

.signaler button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    background-color: #60a5ff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.profile, .register {
    background: linear-gradient(to right, rgba(74, 144, 226, 0.4), rgba(142, 45, 226, 0.4));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.526);
    background-color: #fff;
    padding: var(--MainPadding);
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.profile button, .register button {
    background-color: #007BFF;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    font-size: 16px;
}

.profile button:hover, .register button:hover {
    background-color: #0056b3;
}

.profile a button, .register a button {
    background-color: #7289da;
    margin-top: 10px;
}

.profile a button:hover, .register a button:hover {
    background-color: #3556ce;
}

.profile form button {
    background-color: #dc3545;
}

.profile form button:hover {
    background-color: #c82333;
}

.profile .signaler form {
    margin-top: 20px;
}

.profile .signaler textarea {
    width: calc(100% - 20px);
    height: 100px;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.profile .signaler button {
    background-color: #ff9800;
}

.profile .signaler button:hover {
    background-color: #e68900;
}

/* Alertes */

.alert {
    color: #ff0019;
    font-size: 1em;
    background-color: #ffe6e6;
    border: 1px solid #ff0019;
    border-radius: 5px;
    padding: 8px 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 15px 30px;
}

/* Infos */

.info {
    color: #006eff;
    font-size: 1em;
    background-color: #ffe6e6;
    border: 1px solid #006eff;
    border-radius: 5px;
    padding: 8px 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 15px 30px;
}

/* Biographie */

.ma_bio {
    color: #006eff;
    font-size: 1em;
    background-color: #ffe6e6;
    border: 1px solid #006eff;
    border-radius: 5px;
    padding: 8px 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 15px 30px;
}

#bio {
    width: 100%; /* Largeur à 100% du conteneur parent */
    height: 200px; /* Hauteur de 200 pixels */
    padding: 10px; /* Ajouter un espacement interne */
    font-size: 16px; /* Augmenter la taille de la police */
    border: 1px solid #ccc; /* Bordure grise */
    border-radius: 5px; /* Coins arrondis */
    box-sizing: border-box; /* Inclure les bordures dans la taille */
    resize: none; /* Désactiver le redimensionnement manuel si nécessaire */
}



/* Page des paramètres utilisateurs */




.usersettings {
    text-align: center;
    background: linear-gradient(to right, rgba(74, 144, 226, 0.4), rgba(142, 45, 226, 0.4));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.526);
    background-color: #fff;
    padding: var(--MainPadding);
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.usersettings body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.usersettings label {
    text-align: center;
    font-weight: bold;
    margin-bottom: 5px;
    display: inline-block;
    color: #555;
}
.usersettings input[type="text"],
.usersettings select {
    text-align: center;
    width: calc(100% - 20px);
    padding: 10px;
    margin: 5px 0 15px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
}

.usersettings button {
    text-align: center;
    background-color: #007BFF;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    font-size: 16px;
}

.usersettings button:hover {
    text-align: center;
    background-color: #0056b3;
}

.usersettings a button {
    text-align: center;
    background-color: #7289da;
    margin-top: 10px;
}

.usersettings a button:hover {
    text-align: center;
    background-color: #3556ce;
}




/* Page de téléchargement de toutes les versions code source */




.downloadmywebsite {
    text-align: center;
    background: linear-gradient(to right, rgba(74, 144, 226, 0.4), rgba(142, 45, 226, 0.4));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.526);
    background-color: #fff;
    padding: var(--MainPadding);
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.downloadmywebsite button {
    background-color: #007BFF;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    font-size: 16px;
}

.downloadmywebsite a button {
    background-color: #7289da;
    margin-top: 10px;
}

.downloadmywebsite button:hover {
    background-color: #0056b3;
}




/* Page de nouveau projet */




.newproject {
    text-align: center;
    background: linear-gradient(to right, rgba(74, 144, 226, 0.4), rgba(142, 45, 226, 0.4));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.526);
    background-color: #fff;
    padding: var(--MainPadding);
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.newproject h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.newproject form {
    display: flex;
    flex-direction: column;
}

.newproject label {
    text-align: center;
    font-weight: bold;
    margin-bottom: 5px;
    display: inline-block;
    color: #444;
}

.newproject input[type="text"],
.newproject input[type="password"] {
    text-align: center;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 16px;
    width: calc(100% - 22px);
}

.newproject input[type="file"] {
    width: 100%;
    padding: 10px;
    margin: 8px 0 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.newproject button {
    text-align: center;
    background-color: #007BFF;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    font-size: 16px;
}

.newproject button:hover {
    background-color: #0056b3;
}




/* Registration */




.register {
    text-align: center;
    padding: var(--MainPadding);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.register a button:hover {
    background-color: #3556ce;
}

.register h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.register form {
    display: flex;
    flex-direction: column;
}

.register input[type="text"],
.register input[type="password"],
.register input[type="email"],
.register input[type="file"] {
    text-align: center;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 16px;
    width: calc(100% - 22px);
}

.register label {
    text-align: center;
    font-weight: bold;
    margin-bottom: 5px;
    display: inline-block;
    color: #555;
}

.register button {
    text-align: center;
    background-color: #007BFF;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    font-size: 16px;
}

.register button:hover {
    text-align: center;
    background-color: #0056b3;
}

.register #retour {
    background-color: #007BFF;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    font-size: 16px;
}

.register #retour:hover {
    background-color: #0056b3;
}

.image-preview {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    background-color: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 10px;
}

.register input[type="file"] {
    display: none;
}


/* Page de login */


.login {
    background: linear-gradient(to right, rgba(74, 144, 226, 0.4), rgba(142, 45, 226, 0.4));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.526);
    background-color: #fff;
    text-align: center;
    padding: var(--MainPadding);
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    margin: 0;
}

.login h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.login form {
    display: flex;
    flex-direction: column;
}

.login label {
    text-align: center;
    font-weight: bold;
    margin-bottom: 5px;
    display: inline-block;
    color: #444;
}

.login input[type="text"],
.login input[type="password"] {
    text-align: center;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 16px;
    width: calc(100% - 22px);
}

.login button {
    text-align: center;
    background-color: #007BFF;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    font-size: 16px;
}

.login button:hover {
    background-color: #0056b3;
}

.login #retour {
    background-color: #007BFF;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    font-size: 16px;
}

.login #retour:hover {
    background-color: #0056b3;
}

/* Vision du mdp */

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 40%;
    transform: translateY(-50%);
    width: 50px;
    height: 30px;
    cursor: pointer;
}

.toggle-password img {
    width: 100%;
    height: 100%;
}

/* Page de projets */


/* Panel Admin */




/* Style pour le conteneur de la raison du bannissement (GG le gars qui a tout commenté pcq moi j'aurai eu la flemme mdr)*/

.ban-raison {
    font-size: 14px; /* Taille du texte */
    color: #d9534f; /* Couleur rouge pour indiquer une erreur ou un problème */
    background-color: #f8d7da; /* Fond légèrement rouge */
    padding: 10px; /* Espacement interne */
    border: 1px solid #f5c6cb; /* Bordure rouge clair */
    border-radius: 5px; /* Coins arrondis */
    margin-top: 10px; /* Espacement en haut */
    margin-bottom: 10px; /* Espacement en bas */
    max-width: 150px; /* Largeur maximale */
    word-wrap: break-word; /* Pour éviter les débordements de texte */
}

/* Style pour rendre le texte plus lisible */

.ban-raison strong {
    font-weight: bold;
    color: #721c24; /* Couleur rouge plus foncée pour le texte important */
}

/* Infos du site */

.formulairemaispassupr form {
    max-width: 600px;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 8px;
}

.formulairemaispassupr fieldset {
    border: 2px solid #ccc;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.formulairemaispassupr legend {
    font-weight: bold;
    font-size: 1.2em;
    color: #333;
}

.formulairemaispassupr label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.formulairemaispassupr input[type="url"], textarea {
    border: 2px solid #ccc;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.formulairemaispassupr textarea {
    height: 100px;
}

.formulairemaispassupr button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.formulairemaispassupr button:hover {
    background-color: #0056b3;
}

.delete_account form button {
    background-color: #dc3545;
}

.delete_account form button:hover {
    background-color: #c82333;
}

.unban_account form button {
    background-color: #35dcdc;
}

.unban_account form button:hover {
    background-color: #27a3a3;
}

.restore_account form button {
    background-color: #7535dc;
}

.restore_account form button:hover {
    background-color: #5928a7;
}

/* Suppression des signalements */

.supr_signalement {
    background-color: #ff4d4d; 
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
    text-align: left;
}

.supr_signalement:hover {
    background-color: #ff3333;
}

/* anomation pour la backup de ps disparu sur la page pour télécharger le site */ 

.bouton-indispo {
    filter: grayscale(100%);
}

/* Style de NatCode Vidéo ;) */

.NatcodeYtVideo {
    padding: 10px;
    max-width: 500px;
    margin: 0 auto;
}
.NatcodeYtVideo iframe {
    width: 100%;
    border: 3px solid #007BFF;
    border-radius: 10px;
}

/* -----| Mobile |----- */

.mobile-nav {
    display: none; /* Cacher la barre en haut du site */
}

/* -----| Pub avec image |----- */

.popuppubimg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ceecff, #fdc5c5);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    z-index: 1000;
    text-align: center;
    animation: popupfadeIn 0.4s ease-in-out;
}

.popuppubimg img {
    width: 100%; /* L'image prendra toute la largeur de la div */
    height: 100%; /* L'image prendra toute la hauteur de la div */
    object-fit: cover; /* Pour que l'image garde ses proportions sans être déformée, mais couvre toute la div */
    border-radius: 10px;
}

.popuppubimg a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease-in-out;
}

.popuppubimg a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.popuppubimg .close-btn {
    display: inline-block;
    background-color: #f44336;
    color: white;
    font-size: 14px;
    font-family: 'Arial', sans-serif;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.popuppubimg .close-btn:hover {
    background-color: #d32f2f;
}

/* -----| Pub au milieu des projet |----- */
.pub_in_project {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff, #ffffff);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    text-align: left;
    position: relative;
}

.close-btn-2 {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    color: #000000;
    font-size: 18px;
    cursor: pointer;
    display: block;
}

.close-btn-2:hover {
    color: #ff0000; /* Change la couleur au survol pour une meilleure visibilité */
}

.txt_pub {
    margin-left: 20px;
}

.pub_in_project h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
    font-family: 'Arial', sans-serif;
}

.pub_in_project p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
    font-family: 'Arial', sans-serif;
}

.pub_in_project a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease-in-out;
}

.pub_in_project a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.pub_in_project img {
    max-width: 80px;
    height: auto;
    margin-left: 15px;
    border-radius: 50%;
}

/* -----| Barre de recherche |----- */
.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1a1a1a;
    border-radius: 30px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
}

.search-bar input {
    background-color: #333;
    color: #f1f1f1;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    width: 80%;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.search-bar input:focus {
    background-color: #444;
    outline: none;
    box-shadow: 0 0 10px #33ffcc;
}

.search-bar button {
    background-color: #33ffcc;
    color: #1a1a1a;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.search-bar button:hover {
    background-color: #29cc99;
    transform: scale(1.05);
}

.search-bar button:focus {
    outline: none;
}

@media only screen and (max-width: 770px) {
    .pub_in_project, .popuppubimg {
        display: none;
    }
    nav {
        height: calc(100vh - var(--topbar-height));
        position: fixed;
        transform: translateX(-100%);
        transition: transform 0.1s;
        right: 0;
        left: 0;
        h2 {
            display: none;
        }
        z-index: 98;
        .nav {
            flex-direction: column-reverse;
        }
        .nav-button {
            margin: calc(var(--MainMargin)/2);
            margin-top: 0;
        }
    }
    main {
        user-select: none;
        display: flex;
        flex-direction: column;
        height: 100vh;
        .mobile-nav {
            position: sticky;
            z-index: 99;
            margin: 0;
            top: 0;
            left: 0;
            right: 0;
            padding: calc(var(--MainMargin)/2);
            background-color: #001223;

            display: flex;
            align-items: center; /* Centre verticalement tous les enfants */
            justify-content: center; /* Centre horizontalement le texte */

            h2 {
                margin: 0;
                font-size: 1.1em;
            }
            svg {
                fill: white;
                position: absolute;
                position: absolute;
                left: 10px;
                top: 50%;
                transform: translateY(-50%);
            }
            svg:active {
                background-color: #ffffff4e;
                transition: 0.1s;
            }
        }
    }
}