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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #050505;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    max-width: 100vw;
}

/* Facebook Header */
.facebook-header {
    background-color: #ffffff;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e4e6eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
}

.facebook-logo {
    font-size: 24px;
    font-weight: 700;
    color: #1877f2;
    letter-spacing: -0.5px;
}

.header-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-icon {
    font-size: 20px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.header-icon:hover {
    background-color: #f0f2f5;
}

.header-icon.add-icon {
    font-size: 0;
}

.header-icon.add-icon {
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon.add-icon .add-img {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

.header-icon.search-icon {
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon.search-icon .search-img {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

.header-icon.messenger-icon {
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon.messenger-icon .messenger-img {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

/* Post Container */
.post-container {
    background-color: #ffffff;
    margin-bottom: 8px;
    padding-bottom: 12px;
}

/* Post Header */
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 16px;
}

.post-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-picture svg {
    width: 100%;
    height: 100%;
}

.profile-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: 15px;
    color: #050505;
}

.verified-badge {
    color: #1877f2;
    font-size: 16px;
    font-weight: bold;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #65676b;
}

.globe-icon {
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.globe-icon-img {
    width: 12px;
    height: 12px;
    display: block;
    object-fit: contain;
}

.post-header-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Post Text */
.post-text {
    padding: 0 16px 12px;
    font-size: 15px;
    line-height: 1.33;
    color: #050505;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.lightning-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.show-more {
    color: #65676b;
    font-weight: 500;
}

/* Post Creative */
.post-creative {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
    overflow: hidden;
}

.creative-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Post Footer */
.post-footer {
    padding: 12px 16px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.website-link {
    font-size: 11px;
    color: #65676b;
    font-weight: 500;
}

.post-title {
    font-size: 14px;
    font-weight: 600;
    color: #050505;
    line-height: 1.2;
}

.learn-more-btn {
    background-color: #e4e6eb;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #050505;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.learn-more-btn:active {
    background-color: #d8dadf;
}

.ripple-effect {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #e41e3f;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: translate(-50%, -50%) scale(15);
        opacity: 0;
    }
}

/* Engagement Section */
.engagement-section {
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e4e6eb;
    border-bottom: 1px solid #e4e6eb;
}

.reactions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.reaction-icon {
    font-size: 18px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reaction-count {
    font-size: 15px;
    color: #65676b;
    font-weight: 500;
}

.shares {
    font-size: 15px;
    color: #65676b;
    font-weight: 500;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    border-top: 1px solid #e4e6eb;
}

.action-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #65676b;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.action-btn:active {
    background-color: #f0f2f5;
}

.action-btn span:first-child {
    font-size: 20px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid #e4e6eb;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    cursor: pointer;
    flex: 1;
    padding: 4px 0;
}

.nav-icon {
    font-size: 24px;
    color: #65676b;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.nav-icon-img {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
    opacity: 0.7;
}

.nav-item.active .nav-icon-img {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(37%) sepia(96%) saturate(2000%) hue-rotate(200deg) brightness(0.9) contrast(1.1);
}

.nav-item.active .nav-icon-img.accueil-icon-img {
    filter: none;
    opacity: 1;
}

.nav-item.active .nav-icon {
    color: #1877f2;
}

.nav-label {
    font-size: 10px;
    color: #65676b;
    font-weight: 500;
}

.nav-item.active .nav-label {
    color: #1877f2;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: 20%;
    background-color: #e41e3f;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

/* Safe area for iPhone notch */
@supports (padding: max(0px)) {
    body {
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
}

/* Prevent text selection on mobile */
.post-creative,
.action-btn,
.learn-more-btn,
.nav-item {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

