/* ===== VARIABLES ===== */
:root {
    /* Colors - Light Theme (Red & White) */
    --primary-color: #e63946;
    --primary-dark: #d32f2f;
    --primary-light: #ffcdd2;
    --background: #ffffff;
    --surface: #ffffff;
    --text-primary: #262626;
    --text-secondary: #8e8e8e;
    --border: #dbdbdb;
    --border-light: #efefef;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    
    /* Layout */
    --sidebar-width: 72px;
    --sidebar-expanded: 240px;
    --mobile-nav-height: 60px;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --primary-color: #ff5252;
    --primary-dark: #ff1744;
    --primary-light: #ff8a80;
    --background: #121212;
    --surface: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #a8a8a8;
    --border: #383838;
    --border-light: #2d2d2d;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--surface);
    border-right: 1px solid var(--border);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: width 0.3s;
    overflow: hidden;
}

.sidebar:hover {
    width: var(--sidebar-expanded);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
}

.sidebar:hover .sidebar-header {
    justify-content: flex-start;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    position: relative;
    height: 32px;
}

.logo-icon {
    height: 32px;
    width: 32px;
    opacity: 1;
    transition: opacity 0.3s;
}

.logo-full {
    height: 28px;
    width: auto;
    opacity: 0;
    position: absolute;
    left: 0;
    transition: opacity 0.3s;
}

.sidebar:hover .logo-icon {
    opacity: 0;
}

.sidebar:hover .logo-full {
    opacity: 1;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-light) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background-color: var(--border-light);
    border-radius: 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background-color: var(--border);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    transition: all 0.2s;
    white-space: nowrap;
    min-height: 52px;
}

.nav-link:hover {
    background-color: var(--border-light);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
    border-right: 3px solid var(--primary-color);
    background-color: var(--border-light);
}

.nav-link i {
    width: 24px;
    text-align: center;
    font-size: 20px;
    flex-shrink: 0;
}

.nav-text {
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
}

.sidebar:hover .nav-text {
    opacity: 1;
}

.nav-badge {
    position: absolute;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    font-weight: 600;
}

.create-btn {
    color: var(--primary-color);
}

/* Sidebar Footer - Positionné différemment */
.sidebar-footer {
    margin-top: auto;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-footer .nav-link {
    padding: 10px 20px;
    min-height: 44px;
}

.sidebar-footer .nav-link i {
    font-size: 18px;
}

.sidebar-footer .nav-link .nav-text {
    font-size: 13px;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: inherit;
    padding: 0;
}

.logout {
    color: #f44336;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 30px;
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: calc(var(--sidebar-width) + 40px);
    transition: margin-left 0.3s, padding-left 0.3s;
}

.sidebar:hover ~ .main-content {
    margin-left: var(--sidebar-expanded);
    padding-left: calc(var(--sidebar-expanded) + 40px);
}

.feed-container {
    flex: 1;
    max-width: 600px;
}

/* ===== EMPTY FEED ===== */
.empty-feed {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 40px;
}

.empty-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.empty-feed h2 {
    margin-bottom: 12px;
    font-size: 24px;
}

.empty-feed p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 400px;
    margin: 0 auto 30px;
}

.empty-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ===== POST CARD ===== */
.post-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

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

.username {
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary);
    display: block;
}

.username:hover {
    text-decoration: underline;
}

.post-time {
    font-size: 14px;
    color: var(--text-secondary);
    display: block;
    margin-top: 2px;
}

.post-options {
    position: relative;
}

.options-btn {
    padding: 8px;
    border-radius: 50%;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.2s;
}

.options-btn:hover {
    background-color: var(--border-light);
}

.options-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-width: 160px;
    display: none;
    z-index: 10;
}

.options-dropdown.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s;
}

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

.dropdown-item:hover {
    background-color: var(--border-light);
}

.dropdown-item.delete {
    color: #f44336;
}

/* ===== POST MEDIA ===== */
.post-media {
    background-color: #000;
}

.media-content {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

.video-wrapper {
    position: relative;
}

.video-wrapper video {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.audio-post {
    padding: 24px;
    background: linear-gradient(135deg, var(--primary-light), transparent);
}

.audio-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.audio-header i {
    font-size: 24px;
    color: var(--primary-color);
}

.audio-title {
    font-weight: 600;
    margin-bottom: 4px;
    word-break: break-all;
}

.audio-size {
    font-size: 14px;
    color: var(--text-secondary);
}

.audio-post audio {
    width: 100%;
    height: 40px;
}

.document-post {
    padding: 32px;
    text-align: center;
    background: linear-gradient(135deg, var(--border-light), transparent);
}

.document-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.filename {
    font-weight: 600;
    margin-bottom: 8px;
    word-break: break-all;
}

.file-info {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-download:hover {
    background-color: var(--primary-dark);
}

.unknown-file {
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
}

.unknown-file i {
    font-size: 48px;
    margin-bottom: 16px;
}

/* ===== POST ACTIONS ===== */
.post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.actions-left, .actions-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-btn {
    padding: 8px;
    border-radius: 50%;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.2s;
}

.action-btn:hover {
    background-color: var(--border-light);
}

.like-btn.liked i {
    color: var(--primary-color);
}

.bookmark-btn.bookmarked i {
    color: var(--primary-color);
}

/* ===== POST STATS ===== */
.post-stats {
    padding: 12px 16px;
    font-size: 14px;
}

.likes-count {
    font-weight: 600;
    margin-bottom: 8px;
}

.comments-link {
    color: var(--text-secondary);
    text-decoration: none;
}

.comments-link:hover {
    text-decoration: underline;
}

/* ===== POST CAPTION ===== */
.post-caption {
    padding: 0 16px 12px;
    line-height: 1.6;
}

.caption-username {
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary);
    margin-right: 8px;
}

.caption-username:hover {
    text-decoration: underline;
}

.caption-text {
    word-break: break-word;
}

/* ===== COMMENT FORM ===== */
.comment-form {
    display: flex;
    padding: 16px;
    border-top: 1px solid var(--border);
    gap: 12px;
}

.comment-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.comment-input::placeholder {
    color: var(--text-secondary);
}

.comment-btn {
    color: var(--primary-color);
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.comment-btn:hover {
    opacity: 1;
}

/* ===== RIGHT SIDEBAR ===== */
.right-sidebar {
    width: 300px;
    position: sticky;
    top: 30px;
    height: fit-content;
}

.user-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.user-profile img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.username {
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.name {
    font-size: 14px;
    color: var(--text-secondary);
    display: block;
}

.quick-actions {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 8px;
    transition: background-color 0.2s;
    margin-bottom: 8px;
}

.quick-action:last-child {
    margin-bottom: 0;
}

.quick-action:hover {
    background-color: var(--border-light);
}

.quick-action i {
    color: var(--primary-color);
    font-size: 20px;
    width: 24px;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 30px 0;
}

/* ===== MODALS ===== */
.modal, .search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active, .search-modal.active {
    display: flex;
}

.modal-content, .search-modal-content {
    background-color: var(--surface);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    animation: modalSlideIn 0.3s ease;
}

.search-modal-content {
    max-width: 500px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header, .search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3, .search-header h3 {
    font-size: 18px;
}

.close-modal, .close-search {
    font-size: 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-modal:hover, .close-search:hover {
    background-color: var(--border-light);
}

.modal-body, .search-body {
    padding: 20px;
}

.modal-body p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.share-input {
    display: flex;
    gap: 12px;
}

#shareUrl {
    flex: 1;
    padding: 12px;
    background-color: var(--border-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.btn-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-copy:hover {
    background-color: var(--primary-dark);
}

/* ===== SEARCH MODAL ===== */
.search-form-modal {
    margin-bottom: 20px;
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--border-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 12px;
}

.search-input-group i {
    color: var(--text-secondary);
}

.search-input-group input {
    flex: 1;
    padding: 14px 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.search-input-group input::placeholder {
    color: var(--text-secondary);
}

.btn-search {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-search:hover {
    background-color: var(--primary-dark);
}

.search-suggestions h4 {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: var(--text-primary);
    background-color: var(--border-light);
    border-radius: 8px;
    transition: background-color 0.2s;
}

.suggestion-item:hover {
    background-color: var(--border);
}

.suggestion-item i {
    color: var(--text-secondary);
    width: 20px;
}

.suggestion-item span {
    flex: 1;
}

.remove-search {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.remove-search:hover {
    background-color: var(--surface);
    color: var(--primary-color);
}

.no-suggestions {
    text-align: center;
    color: var(--text-secondary);
    padding: 20px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-light);
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    height: var(--mobile-nav-height);
    z-index: 100;
    padding: 0 20px;
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.mobile-nav-item.active {
    color: var(--primary-color);
}

.mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.mobile-nav-item img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-badge {
    position: absolute;
    top: 8px;
    right: calc(50% - 20px);
    background-color: var(--primary-color);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* ===== PUBLIC HEADER ===== */
.public-header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.public-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.public-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.public-logo img {
    height: 32px;
}

.public-nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .main-content {
        padding-left: calc(var(--sidebar-width) + 20px);
        padding-right: 20px;
    }
    
    .sidebar:hover ~ .main-content {
        padding-left: calc(var(--sidebar-expanded) + 20px);
    }
    
    .right-sidebar {
        display: none;
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar:hover {
        transform: translateX(0);
        width: var(--sidebar-expanded);
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
        padding-bottom: calc(var(--mobile-nav-height) + 20px);
    }
    
    .mobile-nav {
        display: flex;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 16px;
        padding-bottom: calc(var(--mobile-nav-height) + 16px);
    }
    
    .feed-container {
        width: 100%;
    }
    
    .empty-actions {
        flex-direction: column;
    }
    
    .empty-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .pagination {
        flex-direction: column;
        align-items: center;
    }
    
    .pagination .btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .post-header,
    .post-actions,
    .post-stats,
    .post-caption,
    .comment-form {
        padding: 12px;
    }
    
    .audio-post,
    .document-post {
        padding: 20px;
    }
    
    .actions-left,
    .actions-right {
        gap: 12px;
    }
    
    .modal-content,
    .search-modal-content {
        width: 95%;
        margin: 10px;
    }
}

/* Styles pour les commentaires multimédias */
.comment-media-preview {
    margin-top: 10px;
    max-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.comment-image-preview img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.comment-video-preview {
    position: relative;
    background: #000;
}

.comment-video-preview video {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
    border: none;
}

.comment-audio-preview {
    background: var(--border-light);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.audio-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.audio-info {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.audio-duration {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.voice-comment-preview {
    background: var(--border-light);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.voice-waveform {
    flex: 1;
    height: 40px;
    background: #e0e0e0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.voice-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.voice-duration {
    font-size: 12px;
    color: var(--text-secondary);
}

.document-comment-preview {
    background: var(--border-light);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.document-icon-small {
    font-size: 32px;
    color: var(--primary-color);
}

.document-info-small {
    flex: 1;
    font-size: 14px;
}

.document-name {
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
}

.document-meta-small {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Styles pour le formulaire de commentaire avancé */
.comment-form-advanced {
    position: relative;
}

.comment-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
}

.comment-input-full {
    flex: 1;
    padding: 12px 16px;
    background-color: var(--border-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    padding-right: 120px; /* Pour les boutons */
}

.comment-attachment-preview {
    margin-top: 10px;
    background: var(--border-light);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.remove-attachment {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 16px;
}

.comment-attachment-buttons {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
}

.attachment-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: color 0.2s;
}

.attachment-btn:hover {
    color: var(--primary-color);
}

/******/
