nav {
    position: absolute;
    top: 0;
    left: 0;
}

nav.sticky {
    position:fixed;
    z-index: 4;
    top: 0;
    left: 0;
}

.nav {
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    background-color: var(--couleur-gris-foncée);
}
/* ----------------------------- IMAGE MODEL  ----------------------------- */

.model-info{
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    height: 700px;
}

.model-img{
    width: 100%;
    height: 100%;
    object-fit:cover;
}

.model-info .degradee{
    position: absolute;
    background: linear-gradient(0deg, rgb(42, 42, 41), rgba(42, 42, 41, 0.753), rgba(42, 42, 41, 0.575), rgba(0, 0, 0, 0));
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    z-index: 2;
}

.model-info .info{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.model-info .info .model-profile{
    background-color: var(--couleur-gris-foncée);
    border-radius: var(--border-radius-max);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    padding: 1rem 2rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: start;
    height: auto;
    text-align: center;
    position: absolute;
    width: auto;
    max-width: 50%;
}

.Info-CatégorieMetier {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 15px;
}

.model-info .info .model-profile h1{
    font-size: 40px;
    font-weight: 800;
    display: -webkit-box;      /* Permet l'utilisation de line-clamp */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;     /* Nombre max de lignes */
    overflow: hidden;          /* Cache le texte qui dépasse */
    text-overflow: ellipsis;   /* Ajoute "..." à la fin si le texte est trop long */
    max-width: 100%;           /* Empêche le texte de dépasser son conteneur */
}

.model-info .info .model-profile .categories{
    font-size: 18px;
}

.model-profile a{
    text-decoration: none;
    color: rgb(216, 216, 216);
    font-weight: 500;
    transition: color 0.3s ease;
}

.model-profile a:hover {
    color: white;
}

.model-profile .utile-model{
    width: 100%;
    display: flex;
    margin: 30px 0 0 0;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.model-profile .utile-model .button_style{
    text-align: center;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    gap: 5px;
}

/* ---------- Createur ---------- */

.model-profile .createur{
    display: flex;
    justify-content: start;
    text-decoration: none;
}

.model-profile .createur img{
    width: 50px;
}

.model-profile .createur .texts{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    margin-left: 10px;
}

.model-profile .createur .texts p{
    color: rgb(216, 216, 216);
    font-size: 12px;
}

.model-profile .createur .texts .Createur-model{
    color: white;
    font-size: 18px;
}

.model-profile .info-update{
    font-size: 20px;
    background-color: var(--couleur-principal);
    border-radius: var(--border-radius-min);
    padding: 5px 0;
    font-weight: 900;
    margin-bottom: 10px;
    width: 100%;
}

/* -- */

.model-details{
    display: flex;
    margin: 100px 0;
    width: 100%;
    height: auto;
    align-items: stretch;
}

.model-detail-section{
    position: relative;
    text-align: left;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.model-details h1{
    font-size: 20px;
    font-weight: 700;
}

.model-detail-section.description{
    width: 65.5%;
    height: 100%;
}

.model-detail-section.utile_info{
    width: 31.2%;
    height: 100%;
}

.model-detail-section .post-description{
    background-color: var(--couleur-gris-foncée);
    border-radius: var(--border-radius-max);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    padding: 1rem 2rem;
    font-size: 16px;
    margin-top: 10px;
    width: 80%;
    color: white;
}

.post-description *{
    margin: 20px 0;
    font-weight: 500;
}

.model-detail-section .post-utile_info{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.model-detail-section .post-utile_info .telechargement-btn{
    display: flex;
    justify-content: center;
    width: 70%;
}

.telechargement-btn .button_style{
    width: 100%;
    margin: 10px 0;
    font-size: 22px;
    padding: 12px;
    background-color: var(--couleur-principal);
    color: white;
    text-align: center;
    border-radius: var(--border-radius-max);
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
.telechargement-btn .telechargement{
    font-weight: 600;
}

.telechargement-btn .telechargement span{
    font-size: 30px;
    margin-right: 10px;
}

.model-detail-section .post-utile_info p{
    color: rgb(216, 216, 216);
    font-size: 14px;
}

.post-utile_info.info{
    margin: 10px 0;
    width: 70%;
    background-color: var(--couleur-gris-foncée);
    border-radius: var(--border-radius-max);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
}

.post-utile_info.info ul{
    width: 100%;
    height: 100%;
    list-style: none; /* Enlever les puces */
    padding: 10px 0;
    margin: 0;
}

.post-utile_info.info ul li{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 25px; /* Espacement entre chaque ligne */
}

.post-utile_info.info ul li span{
    margin-right: 10px;
    font-size: 35px;
    cursor: help;
}

.post-utile_info.info ul .copyright{
    font-weight: 800;
}

/* ----------------------------- POP UP ----------------------------- */

/* ----- Liste CopyRight ----- */

.download-popup .popup {
    max-width: 45% !important;
}

.download-popup .popup .icon{
    font-size: 410px;
}

.download-popup .popup .info_copyright ul{
    width: 100%;
    list-style: none;
    margin-bottom: 20px;
}

.download-popup .popup .info_copyright ul li{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 10px;
}

.download-popup .popup .info_copyright ul li img{
    width: 35px;
    color: aliceblue;
    margin-right: 10px;
    margin-left: 5px;
}

.download-popup .popup .info_copyright ul li span{
    font-size: 40px;
    margin-right: 10px;
}

.form-avis .info{
    margin-top: 10px;
}

/* ------------------------------------------ */

.model-info.profile{
    overflow: hidden;
}


.model-info .model-profile{
    display: flex;
    justify-content: center;
    align-items: center;
}

.model-info .info.profile{
    transform: translateY(-10%);
}

.model-info .info.profile .model-profile{
    background: none;
    backdrop-filter: none;
}

.model-info .model-profile .profile-image{
    width: 180px;
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.164);
}

.model-img.profile{
    filter: blur(20px);
}

.model-info .info .model-profile h1{
    font-size: 40px;
    font-weight: 800;
}

.model-info .info.profile .model-profile p{
    color: rgb(216, 216, 216);
    font-size: 20px;
    margin-top: 5px;
    font-weight: 500;
}

.Statut_Contnaire{
    padding: 0 10px;
    font-size: 16px;
    margin: 10px;
    width: 60%;
    color: white;
    list-style: none;
    background-color: var(--couleur-gris-foncée);
    border-radius: var(--border-radius-max);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
}

.Statut_Contnaire li{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 25px; /* Espacement entre chaque ligne */
    border-radius: var(--border-radius-max);
    margin: 10px 0;
    gap: 10px;
}

.Statut_Contnaire p {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    font-weight: 600;
    color: rgb(216, 216, 216);
}

.Statut_Contnaire li.equipe-buildstore {
    background: linear-gradient(135deg, #ca0b0b, #D00000);
}

.Statut_Contnaire li.gerant{
    background: linear-gradient(135deg, #348dc0, #245c7c);
}

.Statut_Contnaire li.ban{
    
    background: linear-gradient(135deg, #D00000, #920000);
}

.Statut_Contnaire li.Boost{
    background: linear-gradient(135deg, #7f00ff, #e100ff);
}

/*  */

.utile-model .like-counter{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 8px 10px;
    color: rgb(216, 216, 216);
    font-size: 12px;
    margin: 5px;
    background-color: var(--couleur-gris-foncée);
    border-radius: var(--border-radius-max);
    transition: all 0.2s ease-in-out;
    border: none;
    cursor: pointer;
}

.utile-model .like-counter span{
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 28px;
    color: white;
}

.utile-model .like-counter span *{
    margin-right: 8px;
}

.utile-model .like-counter:hover {
    transform: scale(1.02);
}

.utile-model.avis{
    display: flex;
    flex-direction: column;
}

.utile-model.avis div{
    display: flex;
}

.utile-model.avis p{
    font-weight: 700;
    font-size: 20px;
}

/* parsedown */

.post-description a{
    text-decoration: none;
    color: #D00000;
    font-weight: 800;
}

.post-description h1{
    font-size: 26px;
}

.post-description p{
    font-weight: 400;
}

.post-description h2, .post-description h3,  .post-description h4{
    font-weight: 600;
}

.post-description ol, .post-description ul{
    margin-left: 20px;
}

.ImageEtVideo {
    width: 100%;
    padding: 20px 0;
}

.model-images {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
    padding: 0 30px;
}

.carousel-image {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    gap: 20px;
    max-width: 90%;
    overflow-x: hidden;
    flex: 1;
}

.additional-img{
    position: relative;
    border-radius: var(--border-radius-max);
    flex-shrink: 0;
    min-width: 220px;
    height: 150px;
    cursor: pointer;
    overflow: hidden;
}

.additional-img .Ytb-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 35%;
    width: 35%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, scale 0.3s ease;
    transform-origin: center;
}

.additional-img:hover .Ytb-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

.additional-img img{
    width: 100%;
    height: 100%;
}

.additional-img .zoom-contnaie{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--couleur-gris-foncée);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: var(--border-radius-max);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease-in-out;
}

.ImageEtVideo h1{
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    color: white;
    margin-bottom: 10px;
}

@keyframes zoomannimation{
    0%{
        transform: scale(1);
    }
    40%{
        transform: scale(1.3);
    }
    100%{
        transform: scale(1);
    }
}

.additional-img .zoom-contnaie:hover{
    opacity: 1;
}

.additional-img .zoom-contnaie:hover span{
    animation: zoomannimation 1s;
}

.additional-img .zoom-contnaie span {
    font-size: 60px;
}

.arrow-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none; /* Permet aux boutons de recevoir les clicks */
}

.arrow-wrapper.left {
    left: 7.5%;
    background: linear-gradient(to left, rgba(42, 42, 41, 0) 0%, rgba(42, 42, 41, 0.692) 30%, rgba(42, 42, 41, 0.918) 50%, rgb(42, 42, 41) 80%, rgb(42, 42, 41) 100%);
}
  
.arrow-wrapper.right {
    right: 7.5%;
    background: linear-gradient(to right, rgba(42, 42, 41, 0) 0%, rgba(42, 42, 41, 0.692) 30%, rgba(42, 42, 41, 0.918) 50%, rgb(42, 42, 41) 80%, rgb(42, 42, 41) 100%);
}
  
/* Boutons Flèches */
.arrow-btn {
    background-color: var(--couleur-principal);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50%;
    font-size: 18px;
    height: 40px;
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    pointer-events: all; /* Important pour rendre le bouton cliquable */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}
  
.arrow-btn:hover {
    transform: scale(1.1);
}

.arrow-btn.right-arrow .gratient {
    background: linear-gradient(to right, rgba(42, 42, 41, 0) 0%, rgba(42, 42, 41, 0.2) 25%, rgba(42, 42, 41, 0.5) 50%, rgba(42, 42, 41, 0.8) 75%, rgb(42, 42, 41) 100%);
    height: 100%;
    width: 100px;
    right: 63px;
    position: absolute;
    z-index: 2;
}

.arrow-btn.left-arrow .gratient {
    background: linear-gradient(to left, rgba(42, 42, 41, 0) 0%, rgba(42, 42, 41, 0.2) 25%, rgba(42, 42, 41, 0.5) 50%, rgba(42, 42, 41, 0.8) 75%, rgb(42, 42, 41) 100%);
    height: 100%;
    width: 100px;
    transform: translateX(43px);
    position: absolute;
    z-index: 2;
}

.arrow i{
    font-size: 25px;
}

.arrow {
    background-color: var(--couleur-principal);
    color: white;
    border: none;
    cursor: pointer;
    position: absolute;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    padding: 10px 15px;
    transform-origin: center;
}

.arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

.left-btn {
    left: 25px;
}

.right-btn {
    right: 45px;
}

/* Style du modal */
.image-modal {
    display: none; /* Masqué par défaut */
    position: fixed;
    z-index: 100;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    
}

.image-modal .background-image-zoom{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit:cover;
    z-index: 2;
}

.image-modal .Bottom_Bar .blur, .image-modal .Top_Bar .blur{
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.image-modal .Top_Bar .blur,  .image-modal .Bottom_Bar .blur{
    content: "";
    z-index: 1;
    backdrop-filter: blur(10px);
    mask: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 10%,
      rgba(0, 0, 0, 1) 25%,
      rgba(0, 0, 0, 1) 50%,
      rgba(0, 0, 0, 0) 100%
    );
  }

.image-modal .Top_Bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10%;
    display: flex;
    z-index: 5;
    background: linear-gradient( #252525b4, #25252585, #25252549, rgba(0, 0, 0, 0));
}

.image-modal .Bottom_Bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10%;
    display: flex;
    z-index: 5;
    background: linear-gradient(to top, #252525b4, #25252585, #25252549, rgba(0, 0, 0, 0));
}


.image-modal .Bottom_Bar .image-thumbnails{
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 3 !important;
    gap: 10px !important;
    width: 100%;
    margin-bottom: 20px !important;
    transition: all 0.3s ease !important;
}

.image-modal .Bottom_Bar .image-thumbnails:hover {
    transform: scale(1.4) translateY(-10px) !important; /* Agrandit le conteneur vers le haut */
    gap: 25px !important;
}


.image-modal .Bottom_Bar .cloned-img-modal img{
    width: 100px !important;
    height: 70px !important;
    cursor: pointer !important;
    border-radius: var(--border-radius-min) !important;
    box-shadow: 0 0 20px 3px rgba(0, 0, 0, 0.514) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.image-modal .Bottom_Bar .cloned-img-modal:hover img {
    transform: scale(1) !important;
}

.image-modal .Bottom_Bar .cloned-img-modal img:hover {
    transform: scale(1.4) translateY(-10px) !important;
}

.Top_Bar .ToolBar{
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    color: white;
    justify-content: space-between;
    padding: 0 20px;
}

.Top_Bar .ToolBar .btn-modal{
    font-size: 25px;
    background-color: var(--couleur-gris-foncée);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    cursor: pointer;
    padding: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-right: 0;
    transition: all 0.2s ;
}

.Top_Bar .ToolBar .NameImage {
    flex-grow: 1;
    text-align: center;
    font-weight: 500;
    color: rgb(216, 216, 216);
}

.Top_Bar .ToolBar .btn-container {
    display: flex;
    gap: 10px;
}

.Top_Bar .ToolBar .btn-modal:hover {
    transform: scale(1.1);
}

.image-modal .BackgroundVideo {
    width: 100%;
    height: 100%;
    background-color: #080404;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
}

.youtube-video {
    width: 75%;
    height: 80%;
    border: none;
    border-radius: var(--border-radius-max);
}


/*  */


.special-badge {
    font-size: 1.2em !important;
    color: red;
}

.popup_contnaire{
    display: flex;
}

#id{
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.5;
}

.downloadBtn[style*="pointer-events: none"] {
    opacity: 0.5;
    cursor: not-allowed;
}