/* =====================================================
   PLATINE — CSS
===================================================== */

:root {
    --bg: #050608;
    --surface: #0b0d10;
    --hover: #111419;
    --border: #24272d;
    --text: #f2f3f5;
    --muted: #858a94;
    --danger: #ff4f78;
    --blue: #1877f2;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =====================================================
   STRUCTURE
===================================================== */

.app {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px minmax(400px, 680px) 330px;
    justify-content: center;
}

.main-content {
    min-width: 0;
    border-right: 1px solid var(--border);
}


/* =====================================================
   SIDEBAR
===================================================== */

.sidebar {
    height: 100vh;
    position: sticky;
    top: 0;
    padding: 25px 20px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 35px 12px;
    font-size: 26px;
    font-weight: 800;
}

.logo span {
    font-size: 22px;
}

.main-nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.nav-item {
    width: 100%;
    padding: 13px 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    text-align: left;
}

.nav-item:hover,
.nav-item.active {
    background: var(--hover);
}

.nav-icon {
    width: 24px;
    font-size: 23px;
    text-align: center;
}

.publish-button {
    margin-top: 25px;
    padding: 14px;
    border: 0;
    border-radius: 25px;
    background: white;
    color: black;
    font-weight: 750;
}

.account-button {
    margin-top: auto;
    padding: 10px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.account-button:hover {
    background: var(--hover);
}

.account-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.account-info strong,
.account-info span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.account-info span {
    color: var(--muted);
    font-size: 13px;
}

.account-more {
    color: var(--muted);
}


/* =====================================================
   AVATARS
===================================================== */

.avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: #292d35;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar.small {
    width: 34px;
    height: 34px;
    min-width: 34px;
}


/* =====================================================
   HEADER
===================================================== */

.feed-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(5, 6, 8, .94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.feed-header h1 {
    margin: 0;
    padding: 17px 20px;
    font-size: 21px;
}

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.tab {
    position: relative;
    padding: 16px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-weight: 650;
}

.tab:hover {
    background: rgba(255,255,255,.025);
}

.tab.selected {
    color: white;
}

.tab.selected::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 35%;
    right: 35%;
    height: 3px;
    border-radius: 10px;
    background: white;
}


/* =====================================================
   CREATION PUBLICATION
===================================================== */

.create-post {
    padding: 18px 20px;
    display: flex;
    gap: 13px;
    border-bottom: 1px solid var(--border);
}

.create-post-content {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.create-post textarea {
    width: 100%;
    min-height: 48px;
    padding: 9px 0;
    border: 0;
    outline: 0;
    resize: none;
    overflow: hidden;
    background: transparent;
    color: white;
    font-size: 17px;
    text-align: left;
}

.create-post textarea::placeholder {
    color: #70757e;
}

.create-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.create-icons {
    display: flex;
    gap: 3px;
}

.create-icons button {
    padding: 8px;
    border: 0;
    background: transparent;
    color: #858b96;
}

.create-icons button:hover {
    color: white;
}

.small-publish {
    padding: 8px 17px;
    border: 0;
    border-radius: 20px;
    background: white;
    color: black;
    font-size: 14px;
    font-weight: 700;
}


/* =====================================================
   PUBLICATIONS
===================================================== */

#posts {
    width: 100%;
    text-align: left;
}

.post {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 13px;
    width: 100%;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.post > * {
    text-align: left;
}

.post-content {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: 100%;
    text-align: left;
    align-self: flex-start;
}

.post-author {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    flex-wrap: wrap;
    width: 100%;
    text-align: left;
}

.post-author strong {
    cursor: pointer;
}

.post-author strong:hover {
    text-decoration: underline;
}

.post-author span {
    color: var(--muted);
    font-size: 14px;
}

.post-text {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 8px 0 12px;
    padding: 0;
    text-align: left;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.post-actions-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 45px;
    width: 100%;
}

.post-action {
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 7px;
    text-align: left;
}

.post-action:hover {
    color: white;
}

.post-action.liked {
    color: var(--danger);
}


/* =====================================================
   IMAGE DANS UNE PUBLICATION
===================================================== */

.post-image {
    width: 100%;
    max-width: 100%;
    max-height: 500px;
    margin: 10px 0 12px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
}


/* =====================================================
   SPONSORISÉ
===================================================== */

.sponsored-post {
    background: linear-gradient(
        135deg,
        rgba(255,255,255,.045),
        rgba(255,255,255,.012)
    );
}

/* petit badge AD propre */
.sponsored-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    color: #bbb;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.sponsored-label::before {
    content: "AD";
    font-size: 9px;
    padding: 2px 5px;
    border: 1px solid #666;
    border-radius: 4px;
}

.sponsored-content {
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: #090b0e;
}

.sponsored-image {
    width: 100%;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #15181d;
    font-size: 50px;
}

.sponsored-body {
    padding: 15px;
    text-align: left;
}

.sponsored-body h3 {
    margin: 0 0 7px;
    text-align: left;
}

.sponsored-body p {
    margin: 0 0 14px;
    color: #9a9fa8;
    line-height: 1.4;
    text-align: left;
}

.sponsor-button {
    display: inline-block;
    padding: 9px 15px;
    border-radius: 9px;
    background: white;
    color: black;
    font-size: 14px;
    font-weight: 700;
}
/* =====================================================
   CADRE UNIVERSEL DES POSTS
===================================================== */

.post-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: #090b0e;
    margin-bottom: 12px;
}

/* IMAGE POST */
.post-image {
    width: 100%;
    display: block;
    max-height: 500px;
    object-fit: cover;
}


/* =====================================================
   SIDEBAR DROITE
===================================================== */

.right-sidebar {
    padding: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 25px;
    background: #111318;
    border: 1px solid transparent;
}

.search-box:focus-within {
    border-color: #555a64;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: white;
}

.search-box span {
    color: var(--muted);
}

.search-results {
    display: none;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #111318;
}

.search-results.show {
    display: block;
}

.search-results h2 {
    margin: 0;
    padding: 13px 15px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.search-result {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    text-align: left;
}

.search-result:hover {
    background: #181b21;
}

.search-result strong {
    display: block;
}

.search-result span {
    color: var(--muted);
    font-size: 13px;
}

.search-result-post {
    margin-top: 5px;
    color: #aaa;
    font-size: 14px;
    text-align: left;
}

.side-card {
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
}

.side-card h2 {
    margin: 0;
    padding: 16px;
    font-size: 19px;
}

.trend {
    padding: 13px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trend:hover,
.suggestion:hover {
    background: var(--hover);
}

.trend span,
.trend small,
.user-info span {
    color: var(--muted);
    font-size: 12px;
}

.trend strong {
    font-size: 14px;
}

.suggestion {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-info strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.user-info span {
    font-size: 13px;
}

.follow {
    padding: 7px 13px;
    border: 0;
    border-radius: 18px;
    background: white;
    color: black;
    font-size: 13px;
    font-weight: 700;
}

.follow.following {
    border: 1px solid #555;
    background: transparent;
    color: white;
}

.desktop-footer {
    padding: 5px;
    color: #666;
    font-size: 12px;
}


/* =====================================================
   MODALES
===================================================== */

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(5px);
}

.modal-box {
    position: relative;
    z-index: 1;
    width: min(600px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid #292d34;
    border-radius: 18px;
    background: #0b0d10;
    box-shadow: 0 25px 80px rgba(0,0,0,.6);
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 15px;
    z-index: 5;
    width: 35px;
    height: 35px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: white;
    font-size: 25px;
}

.close-modal:hover {
    background: #202329;
}


/* =====================================================
   FORMULAIRE PROFIL
===================================================== */

.profile-create-box {
    padding: 30px;
}

.profile-create-box h2 {
    margin-top: 0;
}

.modal-subtitle {
    color: var(--muted);
}

.profile-preview-wrapper {
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.profile-preview {
    width: 90px;
    height: 90px;
    font-size: 28px;
}

.photo-upload {
    padding: 8px 13px;
    border: 1px solid #444;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}

.photo-upload:hover {
    background: #181b20;
}

.form-label {
    display: block;
    margin: 15px 0 7px;
    font-size: 14px;
    font-weight: 650;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #30343b;
    border-radius: 10px;
    outline: none;
    background: #111318;
    color: white;
}

.form-input:focus {
    border-color: #777;
}

.primary-button {
    width: 100%;
    margin-top: 22px;
    padding: 12px;
    border: 0;
    border-radius: 10px;
    background: white;
    color: black;
    font-weight: 750;
}

#editProfileButton {
    width: 100%;
    margin-top: 18px;
}


/* =====================================================
   COMMENTAIRES
===================================================== */

.comment-box {
    padding: 20px;
}

.comment-box > #modalPost {
    margin-top: 20px;
}

.comments-container {
    padding: 10px 0 20px;
}

.comments-container h2 {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 18px;
}

.comment {
    padding: 14px 0;
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.comment-content {
    min-width: 0;
    text-align: left;
}

.comment-author {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    text-align: left;
}

.comment-author span {
    color: var(--muted);
    font-size: 13px;
}

.comment-text {
    margin: 5px 0 0;
    line-height: 1.4;
    text-align: left;
}

.comment-form {
    position: sticky;
    bottom: 0;
    padding-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0b0d10;
}

.comment-form input {
    flex: 1;
    min-width: 0;
    padding: 11px 15px;
    border: 1px solid #30343b;
    border-radius: 22px;
    outline: 0;
    background: #111318;
    color: white;
}

.comment-form button {
    padding: 10px 15px;
    border: 0;
    border-radius: 20px;
    background: white;
    color: black;
    font-weight: 700;
}


/* =====================================================
   PROFIL UTILISATEUR + BANNIERE
===================================================== */

.user-profile-box {
    padding: 0;
}

.profile-header {
    position: relative;
    overflow: hidden;
    background: #090b0e;
}

.profile-banner {
    width: 100%;
    height: 190px;
    position: relative;
    background-color: #15181d;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.profile-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.05),
        rgba(0,0,0,.8)
    );
}

.profile-header-content {
    position: relative;
    z-index: 2;
    margin-top: -55px;
    padding: 0 22px 22px;
}

.profile-big-avatar {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    border: 4px solid #090b0e;
    border-radius: 50%;
    overflow: hidden;
    background: #20242b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
}

.profile-big-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header h1 {
    margin: 0 0 5px;
    font-size: 25px;
}

.profile-header > p {
    margin: 0 0 25px;
    color: var(--muted);
}

.profile-stats {
    display: flex;
    gap: 35px;
    margin-bottom: 20px;
}

.profile-stat {
    display: flex;
    flex-direction: column;
}

.profile-stat strong {
    font-size: 18px;
}

.profile-stat span {
    color: var(--muted);
    font-size: 12px;
}

.profile-follow-button {
    padding: 9px 20px;
    border: 0;
    border-radius: 20px;
    background: white;
    color: black;
    font-weight: 700;
}

.profile-follow-button.following {
    border: 1px solid #555;
    background: transparent;
    color: white;
}


/* =====================================================
   BADGE CERTIFICATION
===================================================== */

.verified-badge {
    width: 17px;
    height: 17px;
    margin-left: 5px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    color: white;
    font-size: 11px;
    font-weight: 800;
    vertical-align: middle;
}

.user-name {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}


/* =====================================================
   PUBLICATIONS DU PROFIL
===================================================== */

.profile-posts {
    padding: 20px;
    text-align: left;
}

.profile-posts h2 {
    margin: 0 0 10px;
    font-size: 18px;
    text-align: left;
}

.profile-post {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.profile-post p {
    margin: 0 0 12px;
    line-height: 1.5;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
}

.profile-post-image {
    width: 100%;
    max-height: 450px;
    margin: 10px 0;
    border-radius: 14px;
    object-fit: cover;
}

.profile-post-actions {
    display: flex;
    gap: 35px;
    justify-content: flex-start;
}

.profile-post-actions button {
    border: 0;
    background: transparent;
    color: var(--muted);
}

.profile-post-actions .liked {
    color: var(--danger);
}


/* =====================================================
   MOBILE
===================================================== */

.mobile-header,
.mobile-nav {
    display: none;
}


@media (max-width: 1100px) {

    .app {
        grid-template-columns: 80px minmax(400px, 680px) 280px;
    }

    .sidebar {
        padding: 20px 12px;
    }

    .logo {
        justify-content: center;
        margin-left: 0;
        font-size: 0;
    }

    .logo span {
        font-size: 25px;
    }

    .nav-item {
        justify-content: center;
    }

    .nav-item span:last-child {
        display: none;
    }

    .publish-button {
        width: 48px;
        height: 48px;
        padding: 0;
        border-radius: 50%;
        font-size: 0;
    }

    .publish-button::after {
        content: "+";
        font-size: 24px;
    }

    .account-info,
    .account-more {
        display: none;
    }

    .account-button {
        justify-content: center;
    }
}


/* =====================================================
   TELEPHONE
===================================================== */

@media (max-width: 760px) {

    body {
        padding-bottom: 64px;
    }

    .app {
        display: block;
    }

    .sidebar,
    .right-sidebar {
        display: none;
    }

    .main-content {
        width: 100%;
        border: 0;
    }

    .mobile-header {
        height: 55px;
        padding: 0 16px;
        position: sticky;
        top: 0;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(5,6,8,.94);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
    }

    .mobile-logo {
        font-size: 20px;
        font-weight: 800;
    }

    .mobile-profile-button {
        padding: 0;
        border: 0;
        background: transparent;
    }

    .feed-header {
        top: 55px;
    }

    .feed-header h1 {
        display: none;
    }

    .tabs {
        height: 48px;
    }

    .tab {
        padding: 13px;
    }

    .create-post {
        padding: 13px 15px;
    }

    .create-post textarea {
        font-size: 16px;
        text-align: left;
    }

    .create-icons button:nth-child(2),
    .create-icons button:nth-child(3) {
        display: none;
    }

    /* -------------------------------------------------
       PUBLICATIONS MOBILE
    ------------------------------------------------- */

    .post {
        padding: 15px;
        gap: 10px;
        width: 100%;
        text-align: left;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .post-content {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        text-align: left;
        align-self: flex-start;
    }

    .post-author {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }

    .post-text {
        width: 100%;
        max-width: 100%;
        text-align: left;
    }

    .post .avatar {
        width: 39px;
        height: 39px;
        min-width: 39px;
    }

    .post-actions-bottom {
        max-width: 230px;
        justify-content: flex-start;
        gap: 20px;
    }

    .post-image {
        max-height: 400px;
    }

    .mobile-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        height: 64px;
        padding: 4px 10px;
        display: flex;
        align-items: center;
        justify-content: space-around;
        background: rgba(5,6,8,.96);
        border-top: 1px solid var(--border);
    }

    .mobile-nav-item {
        flex: 1;
        height: 55px;
        border: 0;
        background: transparent;
        color: #777;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
    }

    .mobile-nav-item span {
        font-size: 22px;
    }

    .mobile-nav-item small {
        font-size: 9px;
    }

    .mobile-nav-item.active {
        color: white;
    }

    .mobile-publish {
        width: 45px;
        height: 45px;
        margin: 0 6px;
        border: 0;
        border-radius: 50%;
        background: white;
        color: black;
        font-size: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal {
        padding: 0;
        align-items: flex-end;
    }

    .modal-box {
        width: 100%;
        max-height: 92vh;
        border-radius: 18px 18px 0 0;
        border-bottom: 0;
    }

    .profile-create-box {
        padding: 25px 20px 30px;
    }

    .comment-box {
        padding: 15px;
    }

    .comment-form {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .user-profile-box {
        max-height: 94vh;
    }

    .profile-banner {
        height: 170px;
    }

    .profile-header-content {
        padding: 0 18px 20px;
    }

    .profile-stats {
        gap: 22px;
    }

    .profile-posts {
        padding: 15px;
        text-align: left;
    }
}


@media (max-width: 380px) {

    .create-icons {
        display: none;
    }

    .post-author span:last-child {
        display: none;
    }

    .profile-stats {
        gap: 15px;
    }
}


/* =====================================================
   CORRECTION FINALE — ALIGNEMENT DES PUBLICATIONS
===================================================== */

#posts,
#posts .post,
#posts .post-content,
#posts .post-author,
#posts .post-text {
    text-align: left !important;
}

#posts .post {
    align-items: flex-start;
    justify-content: flex-start;
}

#posts .post-content {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: 100%;
}

#posts .post-text {
    display: block;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

#posts .post-author {
    justify-content: flex-start;
}
/* =====================================================
   NOUVELLE RECHERCHE
===================================================== */

.search-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border);
}

.search-tab {
    position: relative;
    padding: 13px 10px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-weight: 650;
    cursor: pointer;
}

.search-tab:hover {
    background: var(--hover);
    color: white;
}

.search-tab.active {
    color: white;
}

.search-tab.active::after {
    content: "";
    position: absolute;
    left: 25%;
    right: 25%;
    bottom: 0;
    height: 3px;
    border-radius: 10px;
    background: white;
}


/* =====================================================
   CONTENU RECHERCHE
===================================================== */

.search-content h2 {
    margin: 0;
    padding: 13px 15px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}


/* =====================================================
   PROFILS
===================================================== */

.search-user {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}

.search-user:hover {
    background: var(--hover);
}

.search-user-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.search-user-info span {
    color: var(--muted);
    font-size: 13px;
}


/* =====================================================
   PUBLICATIONS
===================================================== */

.search-post {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.search-post:hover {
    background: var(--hover);
}

.search-post strong {
    font-size: 14px;
}

.search-post > span {
    margin-left: 5px;
    color: var(--muted);
    font-size: 13px;
}

.search-post p {
    margin: 6px 0 0;
    color: #b7bac1;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}


/* =====================================================
   MOTS-CLÉS
===================================================== */

.keyword-result {
    padding: 13px 15px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}

.keyword-result:hover {
    background: var(--hover);
}

.keyword-result strong {
    font-size: 15px;
}

.keyword-result span {
    color: var(--muted);
    font-size: 12px;
}


/* =====================================================
   AUCUN RESULTAT
===================================================== */

.search-empty {
    padding: 20px 15px;
    color: var(--muted);
    font-size: 14px;
}
/* =====================================================
   PLATINE VIDEO — FEED VERTICAL
===================================================== */

.video-feed {
    position: relative;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: #000;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.video-feed::-webkit-scrollbar {
    display: none;
}


/* =====================================================
   VIDEO
===================================================== */

.video-slide {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #000;
}

.video-full {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    object-fit: cover;
}

.video-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.3),
        transparent 20%,
        transparent 58%,
        rgba(0,0,0,.2) 75%,
        rgba(0,0,0,.85)
    );
}


/* =====================================================
   INFOS + ACTIONS
===================================================== */

.video-overlay-ui {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 28px;
    color: white;
    pointer-events: none;
}

.video-info {
    width: min(65%, 600px);
    display: flex;
    flex-direction: column;
    gap: 7px;
    pointer-events: auto;
}

.video-info strong {
    font-size: 20px;
    line-height: 1.25;
    font-weight: 750;
    text-shadow: 0 2px 10px rgba(0,0,0,.5);
}

.video-info span {
    color: rgba(255,255,255,.78);
    font-size: 14px;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

.video-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    pointer-events: auto;
}

.action-btn {
    width: 52px;
    height: 52px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    background: rgba(10,10,10,.5);
    color: white;
    font-size: 19px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: .18s ease;
}

.action-btn:hover {
    transform: scale(1.07);
    background: rgba(255,255,255,.13);
}

.action-btn:active {
    transform: scale(.93);
}

.action-btn span {
    font-size: 11px;
}

.like-btn.liked {
    color: #ff4f78;
    background: rgba(255,79,120,.16);
    border-color: rgba(255,79,120,.3);
}


/* =====================================================
   COEUR
===================================================== */

.floating-heart {
    position: absolute;
    left: 50%;
    top: 50%;
    color: #ff4f78;
    font-size: 28px;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(.4);
    animation: platineHeart .7s ease-out forwards;
}

@keyframes platineHeart {
    0% {
        opacity: 0;
        transform: translate(-50%, -30%) scale(.4);
    }

    25% {
        opacity: 1;
        transform: translate(-50%, -55%) scale(1.15);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -135%) scale(1.55);
    }
}


/* =====================================================
   BARRE DU HAUT
===================================================== */

.video-top-controls {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
}


/* =====================================================
   RECHERCHE
===================================================== */

.video-search {
    width: 250px;
}

.video-search input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 24px;
    outline: none;
    background: rgba(8,9,11,.7);
    color: white;
    font-size: 14px;
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 25px rgba(0,0,0,.3);
}

.video-search input::placeholder {
    color: rgba(255,255,255,.55);
}

.video-search input:focus {
    border-color: rgba(255,255,255,.35);
}


/* =====================================================
   VOLUME GLOBAL
===================================================== */

.video-volume-control {
    height: 46px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 24px;
    background: rgba(8,9,11,.7);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 25px rgba(0,0,0,.3);
}

.volume-icon {
    color: white;
    font-size: 16px;
    line-height: 1;
}

.volume-slider {
    width: 90px;
    height: 4px;
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    border-radius: 10px;
    outline: none;
    background: rgba(255,255,255,.25);
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border: 0;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 0;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}


/* =====================================================
   DESKTOP
===================================================== */

@media (min-width: 1101px) {

    .video-full {
        width: min(100%, 760px);
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        object-fit: contain;
    }

    .video-overlay-ui {
        left: 50%;
        width: min(100%, 760px);
        transform: translateX(-50%);
    }
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

    .video-overlay-ui {
        padding: 22px;
    }

    .video-info {
        width: 68%;
    }

    .video-search {
        width: 215px;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 760px) {

    .video-feed {
        height: calc(100dvh - 64px);
    }

    .video-slide {
        height: calc(100dvh - 64px);
        min-height: calc(100dvh - 64px);
    }

    .video-overlay-ui {
        padding: 15px;
        padding-bottom: 22px;
    }

    .video-info {
        width: calc(100% - 65px);
    }

    .video-info strong {
        font-size: 16px;
    }

    .video-info span {
        font-size: 13px;
    }

    .video-actions {
        gap: 10px;
    }

    .action-btn {
        width: 46px;
        height: 46px;
        font-size: 17px;
    }

    .video-top-controls {
        top: 10px;
        left: 12px;
        right: 12px;
        gap: 7px;
    }

    .video-search {
        flex: 1;
        width: auto;
    }

    .video-search input {
        height: 42px;
        font-size: 13px;
    }

    .video-volume-control {
        height: 42px;
        padding: 0 9px;
    }

    .volume-slider {
        width: 65px;
    }
}


@media (max-width: 380px) {

    .video-volume-control {
        padding: 0 7px;
    }

    .volume-slider {
        width: 52px;
    }

    .action-btn {
        width: 43px;
        height: 43px;
    }
}
