/* ================= style.css ================= */
:root {
    --primary: #007bff;
    --dark: #121212;
    --light-bg: #f4f7f6;
    --text-dark: #333;
    --text-light: #fff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body { background-color: var(--light-bg); color: var(--text-dark); -webkit-tap-highlight-color: transparent; }

/* PC BLOCKER */
#desktop-blocker {
    display: none;
    height: 100vh; width: 100vw;
    background-color: var(--dark); color: white;
    flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 20px; z-index: 9999; position: fixed; top: 0; left: 0;
}
#desktop-blocker i { font-size: 5rem; color: #ff4757; margin-bottom: 20px; }
#desktop-blocker h1 { font-size: 2rem; margin-bottom: 10px; }
#desktop-blocker p { font-size: 1.1rem; color: #ccc; }

/* APP LAYOUT */
#app-content { padding-bottom: 70px; padding-top: 60px; }

/* Header */
.app-header {
    position: fixed; top: 0; width: 100%; height: 60px;
    background: var(--primary); color: white;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); z-index: 1000;
}

        .header-btn {
            background: none;
            border: none;
            color: white; /* Asire w koulè a mache ak header w la */
            font-size: 22px;
            cursor: pointer;
            margin-left: 10px;
        }
.app-header h1 { font-size: 1.5rem; letter-spacing: 1px; }

/* Bottom Navigation */
.bottom-nav {
    position: fixed; bottom: 0; width: 100%; height: 65px;
    background: white; display: flex; justify-content: space-around; align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 1000;
}
.nav-item {
    text-decoration: none; color: #666; display: flex;
    flex-direction: column; align-items: center; font-size: 0.8rem;
}
.nav-item.active { color: var(--primary); font-weight: bold; }
.nav-item i { font-size: 1.5rem; margin-bottom: 4px; }

/* Main Content */
.container { padding: 15px; }
.page-title { margin-bottom: 15px; font-size: 1.3rem; border-bottom: 2px solid var(--primary); display: inline-block; }

/* Cards (Apps/News) */
.card {
    background: white; border-radius: 10px; padding: 15px; margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); display: flex; gap: 15px; align-items: center;
}
.card img { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; }
.card-info h3 { font-size: 1.1rem; margin-bottom: 5px; }
.card-info p { font-size: 0.85rem; color: #777; margin-bottom: 8px; }
.btn-download { background: var(--primary); color: white; padding: 5px 15px; border-radius: 20px; text-decoration: none; font-size: 0.8rem; font-weight: bold; }

/* Text Pages (About, Privacy...) */
.text-content { background: white; padding: 20px; border-radius: 10px; line-height: 1.6; }
.text-content h2 { margin-top: 20px; margin-bottom: 10px; font-size: 1.2rem; }
.text-content p { margin-bottom: 15px; color: #444; }

/* AdSense Slot styling */
.ad-slot { margin: 20px 0; text-align: center; background: #eaeaea; padding: 10px; border-radius: 5px; border: 1px dashed #ccc;}
.ad-slot::before { content: "Publicité"; font-size: 0.7rem; color: #888; display: block; margin-bottom: 5px; }



/* ==================== OVERLAY ==================== */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==================== SIDEBAR ==================== */
#sidebar {
  position: fixed;
  top: 0;
  left: -300px; /* Kache a goch */
  width: 280px;
  height: 100vh;
  background: #ffffff;
  z-index: 9999;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  transition: left 0.3s ease;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

#sidebar.open {
  left: 0; /* Parèt sou ekran an */
}

/* Bouton fèmen */
#closeSidebar {
  align-self: flex-end;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

/* Design debaz pou enfòmasyon nan sidebar */
.sidebar-profile { text-align: center; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px;}
.sidebar-profile h3 { margin: 10px 0 5px; }
.sidebar-links { display: flex; flex-direction: column; gap: 15px; flex-grow: 1; }
.sidebar-links a { text-decoration: none; color: #333; font-weight: bold; }
.hidden { display: none !important; }