* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #0f0f0f;
  color: #f1f1f1;
}

/* HEADER */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #202020;
  border-bottom: 1px solid #333;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ff0000;
}

.search-bar input {
  width: 260px;
  padding: 6px 10px;
  border-radius: 20px;
  border: none;
  outline: none;
  background: #121212;
  color: #f1f1f1;
}

.user-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-area button {
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  background: #ff0000;
  color: #fff;
  font-size: 0.9rem;
}

/* LAYOUT ACCUEIL */

.main {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 60px);
}

/* SIDEBAR */

.sidebar {
  background: #181818;
  padding: 15px;
  border-right: 1px solid #333;
}

.sidebar h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.sidebar ul {
  list-style: none;
  margin-bottom: 20px;
}

.sidebar li {
  padding: 6px 0;
  font-size: 0.9rem;
}

.sidebar a {
  color: #ccc;
  text-decoration: none;
}

.sidebar a:hover {
  color: #fff;
}

.info-box {
  background: #202020;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
}

.info-box h4 {
  margin-bottom: 6px;
}

.info-box button {
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  background: #ff0000;
  color: #fff;
  font-size: 0.8rem;
}

/* CONTENU ACCUEIL */

.content {
  padding: 20px;
}

.content h2 {
  margin-bottom: 15px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}

.video-card {
  background: #181818;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.thumbnail {
  width: 100%;
  height: 130px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.thumbnail::after {
  content: "▶";
  position: absolute;
  font-size: 2rem;
  color: rgba(255,255,255,0.9);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.video-info {
  padding: 10px;
}

.video-title {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.video-meta {
  font-size: 0.8rem;
  color: #aaa;
}

/* BADGES */

.badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-right: 6px;
}

.badge-free {
  background: #1e7e34;
  color: #fff;
}

.badge-premium {
  background: #c69500;
  color: #000;
}

/* OVERLAY VERROU */

.lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  font-size: 0.85rem;
}

.lock-overlay span {
  background: rgba(0,0,0,0.7);
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ff0000;
}

/* MODAL */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #202020;
  padding: 20px;
  border-radius: 8px;
  width: 320px;
  max-width: 90%;
  position: relative;
}

.close {
  position: absolute;
  right: 10px;
  top: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

.modal-content button {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  background: #ff0000;
  color: #fff;
}

/* PAGE VIDÉO INDIVIDUELLE */

.video-page {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.video-left {
  flex: 2;
}

.video-right {
  flex: 1;
  background: #181818;
  padding: 20px;
  border-radius: 8px;
}

.tags span {
  display: inline-block;
  background: #222;
  padding: 4px 8px;
  margin-right: 6px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.premium-btn {
  margin-top: 20px;
  padding: 10px 16px;
  background: #c69500;
  border: none;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
}

.locked {
  background: #000;
  color: white;
  padding: 40px;
  text-align: center;
  border: 1px solid #c69500;
  border-radius: 8px;
}

.locked button {
  margin-top: 20px;
  padding: 10px 16px;
  background: #c69500;
  border: none;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
}

video {
  width: 100%;
  border-radius: 8px;
}

/* UTILITAIRE */

.hidden {
  display: none;
}

/* RESPONSIVE */

@media (max-width: 800px) {
  .main {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .search-bar input {
    width: 160px;
  }
}







/* PAGES SIMPLES */
.content-page {
  padding: 20px;
}

.notice {
  margin-bottom: 10px;
  color: #c69500;
}

/* TARIFS */
.pricing-page {
  padding: 20px;
  text-align: center;
}

.pricing-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.pricing-card {
  background: #181818;
  padding: 20px;
  border-radius: 10px;
  width: 260px;
  position: relative;
}

.pricing-card ul {
  list-style: none;
  margin-top: 10px;
  text-align: left;
}

.pricing-card li {
  margin-bottom: 6px;
}

.price {
  font-size: 1.6rem;
  margin: 10px 0;
}

.pricing-card button {
  margin-top: 15px;
  padding: 10px;
  width: 100%;
  background: #ff0000;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 6px;
}

.recommended {
  border: 2px solid #c69500;
}

.badge-reco {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #c69500;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
}

/* DASHBOARD */
.dashboard {
  padding: 20px;
}

.dash-box {
  background: #181818;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}



.user-icon img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #333;
  padding: 4px;
  cursor: pointer;
  transition: 0.2s;
}

.user-icon img:hover {
  background: #555;
  transform: scale(1.05);
}
/* SECTION UPLOAD */
.upload-section {
  padding: 40px 20px;
  background: #111;
  border-top: 1px solid #333;
}

.upload-section h2 {
  text-align: center;
  margin-bottom: 10px;
}

.upload-info {
  text-align: center;
  color: #ccc;
  margin-bottom: 30px;
}

.upload-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.upload-box, .upload-pricing {
  background: #181818;
  padding: 20px;
  border-radius: 10px;
  width: 320px;
}

.upload-box h3, .upload-pricing h3 {
  margin-bottom: 15px;
}

.upload-box label {
  display: block;
  margin-top: 10px;
  margin-bottom: 5px;
}

.upload-box input[type="text"],
.upload-box input[type="file"] {
  width: 100%;
  padding: 8px;
  background: #222;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
}

.upload-box button {
  margin-top: 15px;
  width: 100%;
  padding: 10px;
  background: #ff0000;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
}

.upload-result {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #c69500;
}

.upload-pricing ul {
  list-style: none;
  padding-left: 0;
}

.upload-pricing li {
  margin-bottom: 8px;
}

.limit-info {
  margin-top: 15px;
  color: #c69500;
  font-size: 0.9rem;
}










/* SECTION TARIFS (VERSION LÉGÈRE) */
.pricing-simple {
  padding: 40px 20px;
  background: #111;
  border-top: 1px solid #222;
}

.pricing-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 25px;
}

.pricing-simple-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.pricing-simple-card {
  background: #181818;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #222;
  transition: 0.25s;
}

.pricing-simple-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 10px rgba(255,0,0,0.3);
}

.pricing-simple-card.recommended {
  border: 2px solid #c69500;
}

.pricing-simple-card h3 {
  margin-bottom: 10px;
}

.pricing-simple-card .price {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #ff0000;
}

.pricing-simple-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 15px;
}

.pricing-simple-card li {
  margin-bottom: 6px;
  color: #ccc;
}
