body{
    background-color: black;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}
header{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    z-index: 1000;
    height: 80px;
    padding: 0 5%;
    top: 0;
    left: 0;
    box-sizing: border-box;
}
#header{
    background: radial-gradient(circle at 50% 60%, black 100%); 
    position: fixed;
    width: 100%;
    height: 80px;
    top: 0;
    left: 0;
}
#logo{
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    top: auto;
}
#logo img{
    border-radius: 20%;
    cursor: pointer;
    display: block;
    position: static;
    width: 50px;
    height: 50px;
    object-fit: cover;
}
#logo p{
    color: white;
    font-size: 28px;
    position: static;
    margin: 0;
}
#logo span{
    color: goldenrod;
}
nav{
    display: flex;
    gap: 30px;
    position: static;
    height: 100%;
    align-items: center;
    margin: 0;
}
nav a{
    color: white;
    font-size: 18px;
    text-decoration: none;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}
nav a:hover{
    color: goldenrod;
    transition: 0.8s;
}
nav button{
    background-color: goldenrod;
    cursor: pointer;
    width: 150px;
    height: 45px;
    border-radius: 20px;
    border: none;
    font-size: 16px;
    font-weight: 900;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    margin: 0;
}
.nav-item{
    position: relative;
    padding-bottom: 5px;
}
.nav-item::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: goldenrod;
    transition: width 0.3s ease;
    border-radius: 2px;
}
.nav-item.active::after{
    width: 100%;
}
.account-created button{
    background: none;
}
.account-created img{
    width: 45px;
    height: 45px;
    position: static;
    object-fit: cover;
    border-radius: 50%;
}
main{
    display: block;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    top: 120px;
    padding: 0 20px;
    box-sizing: border-box;
}
#publication{
    color: white;
    font-size: 32px;
    width: 100%;
}
#publication h2{
    text-align: center;
}
form{
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 0 auto;
    width: 100%;
}
form input{
    height: 45px;
    width: 100%;
    font-size: 18px;
    padding: 0 15px;
    box-sizing: border-box;
    background: #111;
    border: 1px solid #2b2b2b;
    color: white;
    border-radius: 10px;
}
form textarea{
    height: 120px;
    width: 100%;
    font-size: 18px;
    padding: 15px;
    box-sizing: border-box;
    background: #111;
    border: 1px solid #2b2b2b;
    color: white;
    border-radius: 10px;
    resize: vertical;
}
form select{
    width: 100%;
    height: 45px;
    font-weight: bold;
    font-size: 18px;
    padding: 0 15px;
    box-sizing: border-box;
    background: #111;
    border: 1px solid #2b2b2b;
    color: white;
    border-radius: 10px;
}
form option{
    font-weight: bold;
    font-size: 18px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    background: #111;
    color: white;
}
label{
    position: static;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    color: white;
}
label input{
    cursor: pointer;
    width: 20px;
    height: 20px;
}
label span{
    margin: 0;
    font-size: 18px;
}
#option-paiement{
    display: none;
}
#option-paiement.active{
    display: block;
}
.options-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1.3rem;
}
#option-paiement p{
    margin: 0 0 15px 0;
    font-size: 20px;
}
#option-paiement button{
    width:50% ;
    max-width: 300px;
    margin: 0 auto;
    display: block;
    height: auto;
    background: goldenrod;
    border-radius: 25px;
    cursor: pointer;
    border: 4px white solid;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 20px;
}
@media screen and (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
}
#post{
    background-color: goldenrod;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
    height: 50px;
    border-radius: 20px;
    border: none;
    font-size: 17px;
    font-weight: 900;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    margin: 0 auto;
}
#Bannuler{
    margin: 0 auto;
    background-color: goldenrod;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
    height: 50px;
    border-radius: 20px;
    border: none;
    font-size: 17px;
    font-weight: 900;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    margin: 0 auto;
}

#media-preview{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin: 20px 0;
    width: 100%;
}
.media-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin: 20px 0;
    width: 100%;
}
.media-card{
    position: relative;
    background: #111;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #2b2b2b;
    cursor: grab;
    transition: .3s;
}
.media-card img,
.media-card video{
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: black;
    display: block;
}
.media-card.dragging{
    opacity: .5;
    transform: scale(.95);
}
.media-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.cover-btn{
    position: absolute;
    top: 10px;
    left: 10px;
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: goldenrod;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cover-btn.active{
    background: orange;
    color: white;
}
.dragging{
    opacity: .45;
}
.selected{
    transform: scale(.96);
}
.drag{
    transform: rotate(3deg);
}
.sortable-ghost{
    opacity: .4;
}
.sortable-chosen{
    transform: scale(.96);
}
.sortable-drag{
    transform: rotate(4deg);
}
.delete-media{
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    background: #ff3b30;
    display: flex;
    align-items: center;
    justify-content: center;
}
.delete-media:hover{
    transform: scale(1.1);
}
.main-photo{
    position: absolute;
    top: 10px;
    left: 10px;
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: goldenrod;
    cursor: pointer;
    font-size: 16px;
}
#new-media-preview{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}
.new-media-card{
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,.12);
    background: #111;
    border: 1px solid #2b2b2b;
}
.new-media-card img,
.new-media-card video{
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.remove-new{
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: #ff3b30;
    color: white;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cropper-modal{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}
.cropper-box{
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    overflow: hidden;
}
#cropper-image{
    width: 100% !important;
    display: block;
    max-width: 100% !important;
    max-height: 65vh;
    object-fit: contain;
}
.cropper-actions{
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}
#crop-ok{
    background: goldenrod;
}
#crop-cancel{
    background: #ff3b30;
}
#upload-progress{
    width: 100%;
    height: 10px;
    background: #333;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 20px;
    display: none;
}
#upload-bar{
    width: 0;
    height: 100%;
    background: gold;
    transition: .3s;
}
#upload-text{
    color: white;
    margin-top: 10px;
    font-size: 15px;
}
.lightbox{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}
#lightbox-content{
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
#lightbox img,
#lightbox video{
    max-width: 100%;
    max-height: 90vh;
    border-radius: 15px;
}
#close-lightbox,
#prev-lightbox,
#next-lightbox{
    position: absolute;
    border: none;
    background: rgba(255,255,255,.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#close-lightbox{
    top: 20px;
    right: 20px;
}
#prev-lightbox{
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}
#next-lightbox{
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* =====================================================
    AFFICHAGE DES POPUP DE PAIMENT DES BOOSTS 
======================================================*/
.boost-payment-popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
}

.boost-payment-popup.active {
    display: flex;
}

.boost-payment-content {
    position: relative;
    width: min(420px, 90%);
    padding: 30px;
    border-radius: 18px;
    background: #111;
    border: 1px solid #c9a227;
    color: #fff;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

.boost-payment-content h3 {
    color: #d4af37;
    margin-bottom: 20px;
}

.boost-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.boost-popup-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
}

.boost-popup-buttons button {
    padding: 12px 22px;
    border-radius: 8px;
    cursor: pointer;
}

#boost-popup-pay {
    background: #d4af37;
    color: #111;
    border: none;
    font-weight: 600;
}

#boost-popup-cancel {
    background: transparent;
    color: #fff;
    border: 1px solid #555;
}


footer{
    margin-top: 150px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-bottom: 50px;
}
.social{
    position: static;
    display: flex;
    gap: 20px;
    justify-content: center;
}
.fi{
    position: static;
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}
.fi a{
    color: white;
    text-decoration: none;
    font-size: 24px;
}
*{
    max-width: 100%;
    box-sizing: border-box !important;
}
/* img, video, iframe{ 
    height: auto;
}*/


/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #b8941f #111;
}


/* Chrome / Edge / Safari */
*::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}


/* Fond de la scrollbar */
*::-webkit-scrollbar-track {
    background: #111;
    border-radius: 10px;
}


/* Curseur */
*::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        #f4cf55 0%,
        #d4af37 50%,
        #a88416 100%
    );

    border-radius: 10px;

    border: 1px solid rgba(212,175,55,.35);
}


/* Curseur au survol */
*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        #ffe58a 0%,
        #d4af37 50%,
        #b8941f 100%
    );
}


/* Coins de la scrollbar */
*::-webkit-scrollbar-corner {
    background: #111;
}

/* ========================================================== */
/* MENU BURGER MOBILE & MEDIA QUERIES RESPONSIVES */
/* ========================================================== */
.menu-mobile-btn {
    display: none;
}

@media screen and (max-width: 768px) {
    header nav {
        display: none !important;
    }

    .menu-mobile-btn {
        display: block !important;
        background: transparent;
        border: none;
        color: white;
        font-size: 30px;
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 20px;
        z-index: 1100;
    }

    header nav.active {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 75% !important;
        max-width: 400px !important;
        height: 100% !important;
        background-color: #111 !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 25px !important;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.8) !important;
        z-index: 1050 !important;
        margin: 0 !important;
    }
    
    #media-preview, .media-grid, #new-media-preview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    #media-preview, .media-grid, #new-media-preview {
        grid-template-columns: 1fr;
    }
    
    #logo p {
        font-size: 22px;
    }
    
    main {
        padding: 0 10px;
    }
}
@media screen and (max-width: 768px) {
    /* Cache la barre de navigation horizontale de base sur mobile */
    header nav {
        display: none !important;
    }

    /* Style du conteneur/bouton des trois points ou menu burger */
    .menu-mobile-btn {
        display: block !important;
        background: transparent;
        border: none;
        color: white;
        font-size: 30px;
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 25px;
        z-index: 1100;
    }

    /* Le menu tiroir latéral qui s'ouvre lorsqu'il a la classe .active */
    header nav.active {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 75% !important;
        max-width: 700px !important;
        height: 100% !important;
        background-color: #111 !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 25px !important;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.8) !important;
        z-index: 1050 !important;
        margin-top: 0 !important;
    }
}
/* LANDORA — Vérification de propriété. Ne modifie pas les inputs existants. */
.property-verification-section{margin-top:10px;padding:22px;background:#0d1114;border:1px solid #2b2b2b;border-radius:16px;color:#fff}
.property-verification-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.property-verification-header h3{margin:0 0 8px;color:goldenrod;font-size:22px}
.property-verification-header p{margin:0;color:#cfcfcf;font-size:14px;line-height:1.55}
.verification-optional-badge{padding:6px 10px;border:1px solid #5a4616;border-radius:999px;color:goldenrod;background:rgba(218,165,32,.08);font-size:12px;font-weight:700}
.property-verification-warning{display:flex;gap:10px;align-items:flex-start;margin:18px 0;padding:12px 14px;border-left:3px solid goldenrod;background:#111;color:#bbb;font-size:13px;line-height:1.5}
.property-verification-warning i{color:goldenrod;margin-top:2px}
.property-ownership-status{margin-bottom:18px}
.property-ownership-status label{display:block;margin-bottom:8px;color:#fff;font-size:15px;font-weight:700}
.property-verification-section .property-ownership-status select{width:100%;height:45px;padding:0 14px;background:#111;border:1px solid #2b2b2b;border-radius:10px;color:#fff;font-size:15px}
.property-verification-documents{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.property-verification-document{padding:15px;background:#080a0c;border:1px solid #252b30;border-radius:12px}
.property-verification-document-title{display:block;margin-bottom:6px;color:#fff;font-size:14px;font-weight:700;line-height:1.4}
.property-verification-document-help{display:block;margin-bottom:12px;color:#777;font-size:12px;line-height:1.4}
.property-file-control{display:flex;flex-direction:column;gap:8px}
.property-file-control input[type="file"]{width:100%;height:auto;padding:8px;background:#111;color:#fff;border:1px solid #333;border-radius:9px;font-size:13px}
.property-file-name{min-height:18px;color:#999;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.property-file-name.selected{color:goldenrod;font-weight:700}
.property-verification-upload-error{margin:15px 0 0;padding:10px 12px;color:#ffb4b4;background:rgba(159,18,57,.15);border:1px solid #6b1d2e;border-radius:9px;font-size:13px}
@media(max-width:700px){.property-verification-header{flex-direction:column}.property-verification-documents{grid-template-columns:1fr}}


/* Prix + périodicité */
.price-duration-row{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.75fr);
    gap: 10px;
    width: 100%;
}

.price-duration-group{
    display: grid;
    grid-template-columns: minmax(90px, 0.7fr) minmax(130px, 1fr);
    gap: 8px;
}

.price-duration-help{
    display: block;
    margin-top: -18px;
    font-size: 13px;
    color: #999;
}

.price-period{
    display: block;
    margin-top: -6px;
    font-size: 14px;
    color: #999;
    font-weight: 600;
}

@media screen and (max-width: 600px){
    .price-duration-row{
        grid-template-columns: 1fr;
    }

    .price-duration-group{
        grid-template-columns: minmax(90px, 0.7fr) minmax(130px, 1fr);
    }
}

/* Barre de navigation ordinateur : jamais hors de l'écran. */
@media screen and (min-width: 769px) {
    header nav { gap: clamp(12px, 1.6vw, 30px); max-width: calc(100% - 32px); }
    header nav a { font-size: clamp(14px, 1.2vw, 18px); white-space: nowrap; }
    header nav button { width: auto; padding: 0 clamp(12px, 1.2vw, 22px); white-space: nowrap; }
}
