:root {
    --black: #090909;
    --black-soft: #111111;
    --black-card: #151515;
    --black-light: #1d1d1d;

    --gold: #c9a227;
    --gold-light: #e0bd4d;
    --gold-dark: #8d7018;

    --white: #f5f5f5;
    --text: #d7d7d7;
    --muted: #8c8c8c;

    --border: rgba(201, 162, 39, 0.18);
}

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

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top right,
            rgba(201, 162, 39, 0.06),
            transparent 35%
        ),
        var(--black);

    color: var(--white);

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;
}


/* =========================
   PAGE
========================= */

.profile-page {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: 35px 25px 70px;
}


/* =========================
   RETOUR
========================= */

.profile-back {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 25px;

    border: 1px solid var(--border);
    border-radius: 50%;

    background: var(--black-card);
    color: var(--gold);

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.profile-back:hover {
    background: var(--black-light);
    transform: translateX(-3px);
}

.header{
    height:76px;
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    position:sticky;
    top:0;
    z-index:1000;
    background:#090a0bf0;
    backdrop-filter:blur(12px);
}

/* =========================
   MENU WRAPPER
========================= */

.profile-menu-wrapper{
    position:relative;
    justify-self:end;
    width:35px;
    height:35px;
}


/* =========================
   BOUTON TROIS POINTS
========================= */

.more{
    width:35px;
    height:35px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    background:#090909;
    border:1px solid #5d481f;
    border-radius:50%;
    color:var(--gold);
    cursor:pointer;
    font-size:15px;
    line-height:1;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.more:hover{
    background:#171717;
    border-color:var(--gold-dark);
}

.more:active{
    transform:scale(.94);
}
/* =========================
   MENU DÉROULANT
========================= */
.profile-menu{
    position:absolute;
    top:43px;
    right:0;
    width:190px;
    padding:6px;
    display:flex;
    flex-direction:column;
    gap:3px;
    background:#151515;
    border:1px solid rgba(201,162,39,.22);
    border-radius:14px;
    box-shadow: 0 18px 45px rgba(0,0,0,.55), 0 4px 15px rgba(0,0,0,.35);
    z-index:10000;
    transform-origin:top right;
    animation:profileMenuOpen .15s ease-out;
}

.profile-menu.hidden{
    display:none !important;
}

@keyframes profileMenuOpen{
    from{
        opacity:0;
        transform:translateY(-5px) scale(.97);
    }

    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}


/* =========================
   OPTIONS
========================= */
.profile-menu button{
    width:100%;
    min-height:40px;
    display:flex;
    align-items:center;
    gap:11px;
    padding:9px 11px;
    border:0;
    border-radius:9px;
    background:transparent;
    color:var(--text);
    font:inherit;
    font-size:14px;
    text-align:left;
    cursor:pointer;
    transition: background .18s ease, color .18s ease;
}

.profile-menu button:hover{
    background:#222222;
    color:var(--white);
}

.profile-menu button i{
    width:18px;
    flex-shrink:0;
    color:var(--gold);
    text-align:center;
}

.profile-menu button span{
    flex:1;
}

/* =========================
   HEADER
========================= */

.profile-header {
    display: flex;
    align-items: center;

    gap: 24px;

    padding: 28px;

    background: linear-gradient(
        145deg,
        #171717,
        #0e0e0e
    );

    border: 1px solid var(--border);
    border-radius: 20px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.45);
}


/* =========================
   PHOTO
========================= */

.profile-picture-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-picture {
    width: 120px;
    height: 120px;

    border-radius: 50%;

    object-fit: cover;

    border: 3px solid var(--gold);

    background: var(--black-light);
}


/* statut */

.profile-status {
    position: absolute;

    right: 6px;
    bottom: 7px;

    width: 17px;
    height: 17px;

    border-radius: 50%;

    background: #777;

    border: 3px solid var(--black-card);
}

.profile-status.online {
    background: #62a844;
}


/* =========================
   NOM
========================= */

.profile-main-info {
    min-width: 0;
}

.profile-name-line {
    display: flex;
    align-items: center;

    gap: 9px;
}

.profile-name-line h1 {
    font-size: 30px;
    font-weight: 700;

    color: var(--white);

    word-break: break-word;
}

.profile-account-type {
    margin-top: 8px;

    color: var(--gold-light);

    font-size: 15px;
    font-weight: 600;
}

.profile-status-text {
    margin-top: 5px;

    color: var(--muted);

    font-size: 14px;
}

.verified-badge {
    color: var(--gold-light);
    font-size: 18px;
}

.hidden {
    display: none !important;
}


/* =========================
   ACTIONS
========================= */

.profile-actions {
    display: flex;

    gap: 12px;

    margin: 20px 0;
}

.profile-action {
    border: 1px solid var(--border);

    border-radius: 12px;

    padding: 12px 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    background: var(--black-card);
    color: var(--text);

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.profile-action:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.profile-action.primary {
    background: var(--gold);
    color: #111;
    border-color: var(--gold);
}

.profile-action.primary:hover {
    background: var(--gold-light);
}


/* =========================
   CARDS
========================= */

.profile-card {
    margin-top: 18px;

    padding: 24px;

    background: var(--black-card);

    border: 1px solid var(--border);

    border-radius: 18px;
}


/* =========================
   TITRES
========================= */

.profile-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 20px;
}

.section-title-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-section-title > i,
.section-title-left > i {
    color: var(--gold);
}

.profile-section-title h2 {
    font-size: 18px;
    font-weight: 650;
}


/* =========================
   INFORMATIONS
========================= */

.profile-information {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 1px;

    background: var(--border);

    border: 1px solid var(--border);
    border-radius: 12px;

    overflow: hidden;
}

.profile-information-item {
    display: flex;
    flex-direction: column;

    gap: 7px;

    padding: 16px;

    background: var(--black-soft);
}

.information-label {
    color: var(--muted);

    font-size: 12px;
}

.information-value {
    color: var(--white);

    font-size: 14px;
}


/* =========================
   VÉRIFICATIONS
========================= */

.verification-list {
    display: flex;
    flex-direction: column;
}

.verification-item {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 15px 5px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.verification-item:last-child {
    border-bottom: none;
}

.verification-item span {
    display: flex;
    align-items: center;

    gap: 10px;

    color: var(--text);
}

.verification-item i {
    width: 20px;

    color: var(--gold);
}

.verification-item strong {
    color: var(--muted);

    font-size: 13px;
}

.verification-item strong.verified {
    color: var(--gold-light);
}


/* =========================
   BIENS
========================= */

.property-count {
    min-width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(201, 162, 39, 0.12);

    color: var(--gold-light);

    font-size: 13px;
    font-weight: 700;
}

.profile-properties {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;
}

.property-item {
    display: flex;

    overflow: hidden;

    min-height: 100px;

    border: 1px solid rgba(255, 255, 255, 0.07);

    border-radius: 14px;

    background: var(--black-soft);

    cursor: pointer;

    transition: 0.2s ease;
}

.property-item:hover {
    border-color: var(--border);

    transform: translateY(-2px);
}

.property-image {
    width: 105px;

    flex-shrink: 0;

    object-fit: cover;

    background: var(--black-light);
}

.property-info {
    min-width: 0;

    padding: 13px;
}

.property-title {
    color: var(--white);

    font-size: 14px;
    font-weight: 650;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-location {
    margin-top: 6px;

    color: var(--muted);

    font-size: 12px;
}

.empty-properties {
    padding: 30px 10px;

    text-align: center;

    color: var(--muted);

    font-size: 14px;
}


/* =========================
   LOADER
========================= */

.profile-loader {
    position: fixed;

    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.65);

    z-index: 1000;
}

.profile-loader.active {
    display: flex;
}

.loader {
    width: 38px;
    height: 38px;

    border: 3px solid rgba(201, 162, 39, 0.2);

    border-top-color: var(--gold);

    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 650px) {

    .profile-page {
        padding: 20px 14px 50px;
    }

    .profile-header {
        padding: 20px;

        gap: 16px;
    }

    .profile-picture {
        width: 85px;
        height: 85px;
    }

    .profile-name-line h1 {
        font-size: 21px;
    }

    .profile-information {
        grid-template-columns: 1fr;
    }

    .profile-properties {
        grid-template-columns: 1fr;
    }

    .property-image {
        width: 95px;
    }
}
/* Appel vidéo : aperçu de sa propre caméra en miroir (l'autre personne vous voit normalement). */
.local-video { transform: scaleX(-1); }
