
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
    overflow-y: scroll;
}



/* --- Navigation --- */
nav {
    width: 100vw;
    height: 120px;
    backdrop-filter: blur(10px);
    display: flex;
    position: fixed;
    z-index: 3;
    padding: 10px 0;
    box-shadow: 0 5px 5px -4px rgba(0, 0, 0, 0.2);

}
nav::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
  }

  nav .desktop-menu {
    display: inline-block;
    margin-top: 35px;
    margin-left: auto;
  }

  @media screen and (max-width: 767px) {
    nav .desktop-menu {
      display: none;
    }
    .burger-menu {
    display: block;
    margin-top: 35px;
    margin-left: auto ;

    }
    .burger-menu span {
    display: block;
    width: 40px;
    height: 6px;
    border-radius: 10px;
    background-color: var(--muted);
    margin: 5px 0;
    cursor: pointer;
    margin-right: 20px;
    }
    .burger-menu span:nth-child(1) {
    width: 30px;
    }
  }
  .desktop-menu a span {
    color: var(--text-color);   
  }
    .desktop-menu i {
    color: var(--text-color);
  }


.mobile-menu {
    position: fixed;
    top: 120px;
    width: 100%;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1;
    background-color: #e5e4e4;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu.open {
    visibility: visible;
    opacity: 1;
}
.mobile-menu a {
    display: inline-flex;
    text-decoration: none;
    margin-left: 20px;
    margin-bottom: 10px;
    padding: 10px;
    color: black;
    font-size: 18px;
    
}
.blur-overlay {
    opacity: 0;
    position: fixed;
    inset: 0;
    backdrop-filter: blur(10px);
    z-index: 2;
    transition: opacity 0.3s ease;
    pointer-events: none;

}

.blur-overlay.active {
  opacity: 1;
}




/* Profile layout CSS */

.profile-profile-picture {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
    width: 80px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid white;
    margin-bottom: 10px;
    cursor: pointer;
    flex-shrink: 0;
}

.profile-profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* remplit le cercle sans déformation */
    display: block;
    /* supprime les petits espaces sous l'image */
}

.overlay-text {
    position: absolute;
    top: 0;
    /* colle l'overlay au sommet */
    left: 0;
    /* colle l'overlay à gauche */
    width: 100%;
    /* prend toute la largeur du conteneur */
    height: 100%;
    /* prend toute la hauteur du conteneur */
    background: rgba(244, 242, 242, 0.6);
    color: black;
    font-size: 18px;
    text-align: center;
    display: flex;
    /* pour centrer le texte */
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    /* garde le cercle */
    opacity: 0;
    transition: opacity 0.3s ease;
}


.profile-profile-picture:hover .overlay-text {
    opacity: 1;
    
}

.header-name h1 {
    font-size: 16px;
    margin: 25px 0 5px 0;
    color: white;
}

.header-pseudo p3 {
    font-size: 12px;
    color: #fff;
    margin: 0;
}



.profile-bio {
    color: white;
    font-size: small;
    margin-top: 10px;
    margin-bottom: 5px;
    text-align: center;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.profile-stats div {
    color: white;
    font-size: small;
}

.profile-stats strong {
    font-weight: bold;
}

@media screen and (max-width: 766px) {
    .profile-stats {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 5px;
    }

    .profile-stats div {
        color: white;
        font-size: 8px;
    }

    .profile-stats strong {
        font-weight: bold;
    }


}

li a {
    display: flex;
    /* active Flexbox sur le lien */
    align-items: center;
    /* centre verticalement icône + texte */
    gap: 8px;
    /* espace entre icône et texte */
    text-decoration: none;
    color: gray;
    font-size: 18px;
    font-weight: 500;

    letter-spacing: 1px;
    transition: all 0.3s ease;

    border: 1px solid transparent;
    /* empêche le "saut" */
    border-radius: 15px;
    padding: 5px 10px;
    background-color: transparent;
}




/* --- Responsive --- */
@media screen and (max-width: 767px) {

    .logo {
        display: flex !important;
        /* forcer l'affichage */
        justify-content: center;
        align-items: center;
    }

    .logo img {
        height: 50px;
        /* ajuste si besoin */
        opacity: 0;
        visibility: hidden;
    }

    .logo img.active {
        opacity: 1;
        visibility: visible;
    }

    /* Styles des liens */
    li a {
        font-size: 14px;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        /* on centre l'icône dans le bouton */
        border: 1px solid transparent;
        border-radius: 12px;
        background-color: transparent;
        transition: all 0.3s ease;
    }

    /* Masquer le texte et garder l'icône */
    /* li a span,
    li span {
        display: none;
        
    } */

    /* Icône centrée et un peu plus grande */
    li a .fa {
        font-size: 20px;
        width: 20px;
        text-align: center;
    }

    /* Menu déroulant version mobile */
    nav ul {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.5s ease, opacity 0.5s ease;
        padding: 0 10px;
    }

    nav ul.showMenu {
        max-height: 600px;
        opacity: 1;
    }

    nav ul li {
        opacity: 0;
        transform: translateY(-5px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        padding: 5px 0;
    }

    nav ul.showMenu li {
        opacity: 1;
        transform: translateY(0);
    }
}



.recherche-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Centre horizontalement et verticalement */
    width: 60%;
    background-color: transparent;
    border: none;
}

.recherche-container form {
    display: flex;
    /* Flexbox pour aligner input + bouton */
    align-items: center;
    /* Verticalement centré */
    justify-content: center;
    /* Centré horizontalement */
    gap: 10px;
    /* Espace entre input et bouton */
}

.recherche-container input {
    width: 300px;
    padding: 12px 20px;
    background-color: white;
    border: none;
    font-size: 14px;
    border-radius: 25px;
    outline: none;
}

.recherche-container button {
    padding: 12px 20px;
    background-color: #007bff;
    /* exemple */
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.recherche-container button:hover {
    background-color: #DC7364;
}


  /* wall css */
  