li
{
    display:inline;
    margin-left: 80px;
}

ul
{
    display:inline;
}

body
{
    margin: 0;
    padding: 0;
    background-attachment: fixed;

}

.bckgrnd_prncp
{
    overflow: auto;
    position: absolute;
    z-index: 10;
    background-color: #ABABAB;
    height: 100%;
    width: 100%;
    top: 0px;
}

.navigateur
{
    z-index: 1;
    position: fixed;
    background-color: black;
    height: 12%;
    width: 100%;
}

.principal_div
{
    box-shadow: 0 0 100px rgba(0,0,0,0.1);
    background-color: white;
    height: 150%;
    width: 80%;
    margin-left: 10%;
    margin-top: 6%;
}

.foot
{
    background-color: black;
    height: 12%;
    width: 100%;
}

.logo_nav_a
{
    position: relative;
    bottom: 0%;
    right: 23%;
    margin-top: 1.5%;
    text-decoration: none;
}

.logo_nav
{
    position: relative;
    height: 90%;
    width: 8%;
    aspect-ratio: 1 / 1;
    cursor:pointer;
}

.create_nav
{
    position: relative;
    left: 50%;
    bottom: 17%;
    margin-top: 1%;
    height: 46%;
    width: 3%;
    aspect-ratio: 1 / 1;
    cursor:pointer;
}

.profil_nav
{
    height: 60px;
    width: 60px;
    border-radius: 50%;
    cursor: pointer;
    object-fit: cover;
}


.achat_nav
{
    text-decoration: none;
    margin-left: 5%;
    width: 3%;
    color: white;
    cursor:pointer;
    font-size: 200%;
    transition: color 0.3s ease;
}

.achat_nav:hover
{
    color: #C9C9C9;
}

.list_accueil
{
    display:inline;
    position: relative;
    left: 8%;
    top: -20%;
}

.list_accueil a
{
    color: white;
    font-size: 200%;
    transition: color 0.3s ease;
    text-decoration: none;
}

.list_accueil a:hover
{
    color: #C9C9C9;
}

.profile-wrap
{
    position: absolute;
    right: 10%;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.profil-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 6px;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.profil-dropdown.open { display: block; }

.profil-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 14px;
    color: #111;
    border-radius: 6px;
    text-decoration: none;
}

.profil-item:hover { background: #f3f4f6; }

.profil-item-icon {
    width: 16px;
    height: 16px;
}

.profil-item-danger { color: #dc2626; }

.profil-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}


/* ________INSCRIPTION________ */

.backgrnd_inscription
{
    border-radius: 8px;
    background-color: white;
    height: 70%;
    width: 80%;
    margin-left: 10%;
    margin-top: 7%;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.text_retour_inscr
{
    position: relative;
    top: 1%;
    left: 1%;
    color: black;
    text-decoration: none;
    transition: all 0.3s ease;
}

.text_retour_inscr:hover
{
    color: #2E2E2E;
    font-size: 105%;
}

.inscr_adress_mail
{
    padding-left:5%;
}

.mail_sub_inscr
{
    margin-left:5%;
    margin-bottom:4%;
    outline: none;
    outline-color: black;
    padding: 1%;
    width: 60%;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.mdp_mail
{
    padding-left:5%;
}

.mdp_sub_inscr
{
    margin-left:5%;
    outline: none;
    outline-color: black;
    padding: 1%;
    width: 60%;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.titre_inscr
{
    position:relative;
    left: 9%;
    top: 5%;
    font-size: 170%;
}

.button_ctn_inscr
{
    width: 80%;
    margin-left: 10%;
    margin-top: 2%;
    border: 0;
    border-radius: 8px;
    padding: 1%;
}

.div_f_inscr
{
    width:30%;
    height: 50%;
    border: 1px solid #ccc;
    margin-left: 10%;
    margin-top: 7%;
    border-radius: 4px;
    border: 0;
}

.right_side_inscr
{
    position: relative;
    float:right;
    height: 100%;
    width:50%;
    border: 1px solid #ccc;
}

.logo_inscr
{
    position: relative;
    top: 10%;
    left:5%;
    height: 90%;
    width: 90%;
}

.créé_login
{
    margin-left:28%;
    font-size: 60%;
}

.créé_login2
{
    font-size: 60%;
}

/* ________PROFIL________*/

.info_profil_modif
{
    position:relative;
    left: 5%;
    top: 2%;
    width: 40%;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.début_profil
{
    font-size: 160%;
    margin-left: 32%;
    padding-top:3%;
}


.nom_d_utili
{
    font-size: 120%;
    margin-left: 30%;
}

.username-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 30%;
  margin-bottom: 4%;
}
.username-display {
  font-size: 18px;
  font-weight: 500;
}
.edit-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  color: #888;
  transition: background 0.15s, color 0.15s;
}
.edit-btn:hover { background: #f0f0f0; color: #333; }
.username-input {
  font-size: 18px;
  font-weight: 500;
  padding: 2px 8px;
  border: 1.5px solid #378ADD;
  border-radius: 6px;
  outline: none;
  min-width: 120px;
}
.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}
.confirm-btn { color: #1D9E75; }
.cancel-btn { color: #D85A30; }

.pdp-avatar {
    position: relative;
    width: 90px;
    height: 90px;
    cursor: pointer;
}
#pdpPreview {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 0.5px solid #ccc;
}
.pdp-initiales {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 500;
    color: #555;
}
.pdp-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 0.5px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.pdp-error {
    font-size: 12px;
    color: red;
    margin: 4px 0 0;
}
.pdp-actions {
    display: none;
    gap: 6px;
    margin-top: 8px;
}

.div_change_pdp
{
    width: 5%;
    position:relative;
    left: 37%;
    bottom: 10%;
}

.mes_posts
{
    margin-left: 7%;
    font-size: 140%;
}

.mes_annonces {
    margin-left: 5%;
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 1rem 0;
}
.annonce_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}
.annonce_titre {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    color: #222;
}
.annonce_delete {
    background: none;
    border: 1px solid #D85A30;
    color: #D85A30;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.annonce_delete:hover {
    background: #D85A30;
    color: #fff;
}

/*________ADD_POST________*/

.all_princ_add_post
{
    position: relative;
    top: 2%;
    margin-left: 5%;
    width: 90%;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.titre_add_post
{
    font-size: 150%;
    margin-left: 35%;
}

.nom_add_post
{
    margin-left: 10%;
    font-size: 110%;
}

.all_princ_add_post {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.field_group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}
.field_row {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}
.field_row .field_group {
    flex: 1;
}
.nom_add_post {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}
.hint_post {
    font-size: 12px;
    font-weight: 400;
    color: #888;
}
.input_post {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}
.input_post:focus {
    border-color: #378ADD;
}
.textarea_post {
    resize: vertical;
    min-height: 100px;
}
.radio_group {
    display: flex;
    gap: 24px;
}
.radio_label {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.photos_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.photo_slot {
    width: 100px;
    height: 100px;
    border: 1.5px dashed #ccc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: #888;
    gap: 6px;
    transition: border-color 0.15s;
}
.photo_slot:hover {
    border-color: #378ADD;
}
.photo_slot img.preview_photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.photo_remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.photo_wrapper {
    position: relative;
    width: 100px;
    height: 100px;
}
.btn_submit_post {
    background: #378ADD;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}
.btn_submit_post:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.btn_submit_post:not(:disabled):hover {
    background: #185FA5;
}

/* ________EXPLORER________ */

.explorer_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 1rem;
}

.explorer_card {
    width: 80%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
}

.explorer_card:hover
{
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.explorer_card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
}

.explorer_info
{
    padding: 10px 12px;
}

.explorer_titre
{
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 4px;
    color: #222;
    text-decoration: none;
}

.explorer_prix
{
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: #378ADD;
    text-decoration: none;
}


/* ________ VOITURE ________*/

.voiture_page {
    display: flex;
    gap: 24px;
    padding: 2rem;
    align-items: flex-start;
    justify-content: space-between;
}
.voiture_main {
    flex: 1;
    max-width: 60%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.voiture_photos {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.voiture_photos img {
    width: 100%;
    border-radius: 10px;
    object-fit: contain;
    max-height: 450px;
    background: #f5f5f5;
}
.voiture_details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.voiture_titre {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #222;
}
.voiture_prix {
    font-size: 28px;
    font-weight: 700;
    color: #378ADD;
    margin: 0;
}
.voiture_specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px;
}
.spec_item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.spec_label {
    font-size: 12px;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
}
.spec_value {
    font-size: 14px;
    font-weight: 500;
    color: #222;
}
.voiture_description {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}
.voiture_vendeur {
    font-size: 13px;
    color: #888;
}
.voiture_sidebar {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 20px;
}
.reco_card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.15s;
}
.reco_card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.reco_card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}
.reco_info {
    padding: 8px 10px;
}
.reco_titre {
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 4px;
    color: #222;
}
.reco_prix {
    font-size: 13px;
    font-weight: 600;
    color: #378ADD;
    margin: 0;
}

/* ________FORUM________ */

.create_forum_img
{
    left: 85%;
    position:fixed;
    width: 4%;
}

/* ________CREATE_FORUM________ */

.forum_page {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.forum_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.forum_list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.forum_card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s;
}
.forum_card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.forum_card_left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.forum_categorie {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #378ADD;
    background: #EBF4FF;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
}
.forum_titre {
    font-size: 15px;
    font-weight: 600;
    margin: 4px 0 0;
    color: #222;
}
.forum_desc {
    font-size: 13px;
    color: #888;
    margin: 2px 0 0;
}
.forum_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.forum_tag {
    font-size: 11px;
    background: #f0f0f0;
    color: #555;
    padding: 2px 8px;
    border-radius: 20px;
}
.forum_auteur {
    font-size: 12px;
    color: #888;
    margin: 0;
    white-space: nowrap;
}
.sujet_page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sujet_header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sujet_description {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    font-size: 14px;
    color: #444;
    line-height: 1.7;
}


/* ________SUJET________ */

.messages_section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.messages_list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.message_item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
}
.message_header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.message_auteur {
    font-size: 13px;
    color: #222;
}
.message_date {
    font-size: 11px;
    color: #aaa;
    flex: 1;
}
.message_delete {
    background: none;
    border: none;
    color: #D85A30;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
}
.message_delete:hover {
    background: #FAECE7;
}
.message_content {
    font-size: 14px;
    color: #444;
    margin: 0;
    line-height: 1.6;
}
.message_form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
