/* CORRECTION DU CENTRAGE DESKTOP - QuitterFacebook */

/* Fix pour desktop uniquement */
@media (min-width: 1024px) {
    /* Réinitialiser le conteneur principal */
    .desktop-main-content {
        margin-left: 280px !important;
        margin-right: 320px !important;
        padding: 0 !important;
        width: calc(100vw - 600px) !important; /* Largeur totale moins les sidebars */
        min-height: calc(100vh - 56px) !important;
        display: flex !important;
        justify-content: center !important; /* Centre horizontalement */
        align-items: flex-start !important; /* Aligne en haut */
    }
    
    /* Centrer le module-content */
    .desktop-main-content .module-content {
        max-width: 800px !important;
        width: 100% !important;
        padding: 16px !important;
        margin: 0 auto !important; /* Assure le centrage */
    }
    
    /* S'assurer que les posts sont bien centrés */
    .desktop-main-content .fb-post,
    .desktop-main-content .welcome-post {
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100% !important;
    }
    
    /* Fix pour la barre de vidéos */
    .desktop-main-content .videos-bar {
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100% !important;
    }
}

/* Pour les écrans moyens */
@media (min-width: 768px) and (max-width: 1023px) {
    .desktop-main-content {
        margin-left: 240px !important;
        margin-right: 240px !important;
        padding: 0 !important;
        display: flex !important;
        justify-content: center !important;
    }
    
    .desktop-main-content .module-content {
        max-width: 700px !important;
        width: 100% !important;
        padding: 12px !important;
        margin: 0 auto !important;
    }
}

/* Debug - ligne centrale (à retirer en production) */
.center-debug-line {
    position: fixed;
    left: 50%;
    top: 56px;
    bottom: 0;
    width: 2px;
    background: rgba(255, 0, 0, 0.3);
    z-index: 9999;
    pointer-events: none;
}