/* CSS Desktop pour QuitterFacebook */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f0f2f5;
    color: #1c1e21;
    line-height: 1.34;
    overflow-x: hidden;
}

/* Layout 3 colonnes spécifique desktop - FORCER L'AFFICHAGE */
.desktop-layout {
    margin-top: 56px !important;
    min-height: calc(100vh - 56px) !important;
    display: flex !important;
    background: #f0f2f5 !important;
}

.desktop-sidebar-left {
    width: 280px !important;
    background: white !important;
    position: fixed !important;
    left: 0 !important;
    top: 56px !important;
    bottom: 0 !important;
    overflow-y: auto !important;
    z-index: 100 !important;
    border-right: 1px solid #dadde1 !important;
    padding: 20px 0 !important;
    display: block !important;
}

.desktop-main-content {
    margin-left: 280px !important;
    margin-right: 320px !important;
    flex: 1 !important;
    padding: 16px !important;
    width: 100% !important;
    max-width: none !important; /* Suppression de la limitation de largeur */
    min-height: calc(100vh - 56px) !important;
    display: block !important;
}

.desktop-sidebar-right {
    width: 320px !important;
    background: transparent !important;
    position: fixed !important;
    right: 0 !important;
    top: 56px !important;
    bottom: 0 !important;
    overflow-y: auto !important;
    z-index: 100 !important;
    padding: 16px !important;
    display: block !important;
}

/* Section Navigation Desktop */
.section-nav {
    background: white;
    padding: 8px 0;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 999;
    border-bottom: 1px solid #dadde1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.section-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #65676b;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 24px;
    min-width: 60px;
    white-space: nowrap;
}

.section-nav-item:hover {
    background: #f0f2f5;
    color: #1877f2;
    text-decoration: none;
}

.section-nav-item.active {
    color: #1877f2;
    background: #e3f2fd;
}

.section-nav-item.completed {
    color: #1877f2;
}

.section-nav-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Ajustement du layout pour tenir compte de la navigation */
.desktop-layout {
    margin-top: 112px !important; /* 56px header + 56px section nav */
}

.desktop-sidebar-left {
    top: 112px !important; /* Ajuster pour la section nav */
}

.desktop-sidebar-right {
    top: 112px !important; /* Ajuster pour la section nav */
}

/* Module Navigation - Style vertical desktop */
.module-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
}

.module-nav-item:hover {
    background: #f0f2f5;
    border-left-color: #1877f2;
}

.module-nav-item.active {
    background: #e3f2fd;
    border-left-color: #1877f2;
    color: #1877f2;
}

.module-nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1877f2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.module-nav-item.active .module-nav-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.module-nav-info {
    flex: 1;
}

.module-nav-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.module-nav-subtitle {
    font-size: 12px;
    color: #65676b;
}

.module-nav-badge {
    background: #f44336;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    min-width: 18px;
    text-align: center;
}

/* Videos Bar Desktop */
.videos-bar {
    background: white;
    padding: 16px;
    margin: 0 0 16px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.videos-bar h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    color: #1c1e21;
    font-weight: 600;
}

.videos-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
    white-space: nowrap;
    flex-wrap: nowrap;
    padding-bottom: 4px;
}

.videos-scroll::-webkit-scrollbar {
    height: 6px;
}

.videos-scroll::-webkit-scrollbar-track {
    background: #f0f2f5;
    border-radius: 3px;
}

.videos-scroll::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.video-item {
    min-width: 160px;
    width: 160px;
    height: 100px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.video-item:hover {
    transform: scale(1.05);
}

.video-item img {
    width: 100%;
    height: 75px;
    object-fit: cover;
    flex-shrink: 0;
}

.video-item .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px;
    border-radius: 50%;
    font-size: 18px;
}

.video-item .video-title {
    padding: 4px 6px;
    background: white;
    font-size: 11px;
    color: #1c1e21;
    font-weight: 600;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    height: 20px;
}

/* Facebook Post Style Desktop */
.fb-post, .welcome-post {
    background: white;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.fb-post-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fb-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1877f2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    font-family: 'Klavika', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.fb-post-info {
    flex: 1;
}

.fb-post-author {
    font-weight: 600;
    color: #1c1e21;
    font-size: 15px;
}

.fb-post-time {
    color: #65676b;
    font-size: 13px;
}

.fb-post-content {
    padding: 0 16px 16px 16px;
}

.fb-post-content h2 {
    color: #1877f2;
    font-size: 20px;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.fb-post-content h3 {
    color: #1c1e21;
    font-size: 18px;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.fb-post-content p {
    color: #1c1e21;
    font-size: 15px;
    line-height: 1.33;
    margin: 0 0 12px 0;
}

/* Choice Buttons Desktop */
.choice-buttons {
    display: flex;
    gap: 16px;
    margin: 20px 0;
}

.choice-btn {
    flex: 1;
    padding: 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.choice-btn.stay {
    background: #42b883;
    color: white;
}

.choice-btn.stay:hover {
    background: #369870;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(66, 184, 131, 0.3);
}

.choice-btn.leave {
    background: #e74c3c;
    color: white;
}

.choice-btn.leave:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(231, 76, 60, 0.3);
}

/* Result Container */
.result-container {
    display: none;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dadde1;
    margin: 16px 0;
}

/* Warning Box */
.warning-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    text-align: center;
}

.warning-box h4 {
    color: #856404;
    margin: 0 0 8px 0;
    font-size: 16px;
}

/* Reactions Desktop */
.fb-reactions {
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #dadde1;
    padding: 12px 0;
}

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

.fb-reaction-btn:hover {
    background: #f0f2f5;
}

.fb-reaction-btn.liked {
    color: #1877f2;
}

/* Welcome buttons */
.welcome-btn {
    background: #1877f2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin: 0 8px 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.welcome-btn:hover {
    background: #166fe5;
}

.welcome-btn.secondary {
    background: #e4e6ea;
    color: #1c1e21;
}

.welcome-btn.secondary:hover {
    background: #d8dadf;
}

/* User Welcome */
.user-welcome {
    display: none;
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin: 16px 0;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.user-welcome h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
}

/* Anonymous choice */
.anonymous-choice {
    display: none;
    margin-top: 16px;
    padding: 16px;
    background: #f0f2f5;
    border-radius: 8px;
    text-align: center;
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(2px);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 24px;
    border: 1px solid #dadde1;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #65676b;
}

.modal-close:hover {
    color: #1c1e21;
}

/* Video Player Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.video-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    background: black;
    border-radius: 8px;
    overflow: hidden;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 3001;
}

.local-video-player {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

.local-video-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Responsive pour desktop (grands écrans) */
@media (min-width: 1400px) {
    .desktop-main-content {
        max-width: none;
    }
    
    .desktop-sidebar-left {
        width: 300px;
    }
    
    .desktop-sidebar-right {
        width: 350px;
    }
    
    .desktop-main-content {
        margin-left: 300px;
        margin-right: 350px;
    }
}

/* Pour les écrans moyens */
@media (max-width: 1200px) {
    .desktop-sidebar-right {
        width: 280px;
    }
    
    .desktop-main-content {
        margin-right: 280px;
    }
}

@media (max-width: 1024px) {
    .desktop-sidebar-left {
        width: 240px;
    }
    
    .desktop-sidebar-right {
        width: 240px;
    }
    
    .desktop-main-content {
        margin-left: 240px;
        margin-right: 240px;
        padding: 12px;
    }
}

/* Calculator Desktop */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    color: #1c1e21;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.form-select {
    padding: 10px 12px;
    border: 1px solid #dadde1;
    border-radius: 6px;
    background: white;
    color: #1c1e21;
    font-size: 15px;
}

.form-select:focus {
    outline: none;
    border-color: #1877f2;
}

.btn-calculate {
    background: #1877f2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-calculate:hover {
    background: #166fe5;
}

.calculator-result {
    background: #e3f2fd;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #1877f2;
    margin-top: 16px;
    text-align: center;
    display: none;
}

.final-amount {
    font-size: 24px;
    color: #1877f2;
    font-weight: 700;
    margin: 8px 0;
}

/* Alternatives Desktop */
.alternatives-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 16px 0;
}

.alternative-card {
    background: white;
    border: 1px solid #dadde1;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.alternative-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #1877f2;
}

.alternative-card img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-bottom: 12px;
}

.alternative-card h3 {
    margin: 0 0 8px 0;
    color: #1c1e21;
    font-size: 16px;
    font-weight: 600;
}

.alternative-card p {
    margin: 0;
    color: #65676b;
    font-size: 14px;
}

/* Delete Account Desktop */
.delete-account {
    background: #ffebee;
    border: 1px solid #f44336;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.delete-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.delete-btn:hover {
    background: #d32f2f;
}

/* Responsive Desktop - Media Queries améliorées */
@media (max-width: 1200px) {
    .desktop-sidebar-right {
        width: 280px !important;
    }
    
    .desktop-main-content {
        margin-right: 280px !important;
        max-width: 900px !important;
    }
    
    .alternatives-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .desktop-sidebar-left {
        width: 240px !important;
    }
    
    .desktop-sidebar-right {
        width: 240px !important;
    }
    
    .desktop-main-content {
        margin-left: 240px !important;
        margin-right: 240px !important;
        max-width: 800px !important;
        padding: 12px !important;
    }
    
    .alternatives-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 900px) {
    /* Masquer les sidebars et passer en mode "responsive mobile" */
    .desktop-sidebar-left,
    .desktop-sidebar-right {
        display: none !important;
    }
    
    .desktop-main-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: none !important;
        padding: 16px !important;
    }
    
    .alternatives-grid {
        grid-template-columns: 1fr;
    }
    
    .section-nav {
        justify-content: space-around !important;
        gap: 10px !important;
    }
    
    .section-nav-item {
        min-width: auto !important;
        padding: 6px 8px !important;
        font-size: 20px !important;
    }
}