/* ═══════════════════════════════════════════════
   TSCOOP — CSS Principal
   Mobile-first · Noir / Blanc / Rouge
   ═══════════════════════════════════════════════ */

:root {
  --red:    #dc2626;
  --red-dk: #b91c1c;
  --black:  #0a0a0a;
  --dark:   #111111;
  --card:   #ffffff;
  --border: #e5e7eb;
  --white:  #ffffff;
  --gray:   #6b7280;
  --light:  #f3f4f6;
  --bg:     #f7f7f7;
  --text:   #1a1a1a;
  --font:   -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Container */
.ts-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ── Couleur rouge utilitaire */
.ts-red { color: var(--red); }

/* ══════════════════════════
   HEADER
══════════════════════════ */
.ts-header {
  background: var(--black);
  border-bottom: 2px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
}
.ts-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.ts-logo { display: flex; align-items: baseline; gap: 1px; font-weight: 900; font-size: 22px; letter-spacing: -0.5px; }
.ts-logo__t    { color: var(--red); }
.ts-logo__scoop { color: var(--white); }
.ts-logo--sm { font-size: 18px; }

.ts-nav { display: none; gap: 8px; }
.ts-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark); padding: 16px; border-top: 1px solid var(--border); z-index: 200; }
.ts-nav__link { padding: 8px 14px; font-size: 14px; font-weight: 600; border-radius: 4px; transition: background .15s; }
.ts-nav__link:hover { background: var(--card); }
.ts-nav .menu { display: flex; flex-direction: column; list-style: none; gap: 4px; }
.ts-nav .menu a { display: block; padding: 8px 14px; font-size: 14px; font-weight: 600; }

.ts-nav-toggle { background: none; border: none; cursor: pointer; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.ts-nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); transition: .2s; }

/* ── Ticker */
.ts-ticker {
  background: var(--red);
  display: flex;
  align-items: center;
  height: 32px;
  overflow: hidden;
}
.ts-ticker__label {
  flex-shrink: 0;
  background: var(--black);
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
}
.ts-ticker__track { flex: 1; overflow: hidden; position: relative; }
.ts-ticker__inner {
  display: flex;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
}
.ts-ticker__item {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  padding: 0 32px;
  flex-shrink: 0;
}
.ts-ticker__item::after { content: '·'; margin-left: 32px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ══════════════════════════
   MAIN
══════════════════════════ */
.ts-main { min-height: 70vh; }

/* ── Sections */
.ts-section { padding: 32px 0; }
.ts-section--dark { background: var(--dark); padding: 32px 16px; margin: 0 -16px; }
.ts-section__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.ts-section__title { font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.ts-see-all { font-size: 12px; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Hero */
.ts-hero { margin: 20px 0; }
.ts-hero__link { display: block; }
.ts-hero__img-wrap { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; }
.ts-hero__img { width: 100%; height: 100%; object-fit: cover; }
.ts-hero__overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, transparent 100%);
  padding: 20px;
}
.ts-hero__title { font-size: clamp(18px, 4vw, 28px); font-weight: 800; line-height: 1.25; margin-top: 8px; }
.ts-hero__excerpt { font-size: 13px; color: var(--gray); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ts-hero__time { font-size: 11px; color: var(--red); font-weight: 700; display: block; margin-top: 8px; }

/* ── Grid */
.ts-grid { display: grid; gap: 16px; }
.ts-grid--2 { grid-template-columns: 1fr; }
.ts-grid--3 { grid-template-columns: 1fr; }

/* ── Card article */
.ts-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.ts-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.ts-card__img-link { display: block; aspect-ratio: 16/9; overflow: hidden; }
.ts-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ts-card:hover .ts-card__img { transform: scale(1.03); }
.ts-card__body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ts-card__title { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ts-card__title a:hover { color: var(--red); }
.ts-card__excerpt { font-size: 13px; color: var(--gray); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.ts-card__meta { font-size: 11px; color: var(--gray); margin-top: auto; }

/* ── Badge catégorie */
.ts-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}

/* ── Stars row */
.ts-stars-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.ts-stars-row::-webkit-scrollbar { display: none; }
.ts-stars-row--sm .ts-star-chip { flex: 0 0 auto; }

.ts-star-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  width: 80px;
  text-decoration: none;
}
.ts-star-chip__img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); transition: border-color .2s; }
.ts-star-chip:hover .ts-star-chip__img { border-color: var(--red); }
.ts-star-chip__info { text-align: center; }
.ts-star-chip__name { display: block; font-size: 11px; font-weight: 700; line-height: 1.2; }
.ts-star-chip__count { display: block; font-size: 10px; color: var(--gray); }

/* ══════════════════════════
   SINGLE DRAMA
══════════════════════════ */
.ts-single { display: grid; gap: 32px; padding: 24px 0; }
.ts-single__main { min-width: 0; }
.ts-single__title { font-size: clamp(22px, 5vw, 36px); font-weight: 900; line-height: 1.2; margin: 12px 0; }
.ts-single__meta { font-size: 13px; color: var(--gray); display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.ts-single__meta-sep { color: var(--border); }

/* Insta-Frame */
.ts-instaframe {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--card);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.ts-instaframe__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.ts-instaframe__dot { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.ts-instaframe__label { font-size: 12px; color: var(--gray); }
.ts-instaframe__img { width: 100%; }

.ts-single__hero { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; }
.ts-single__hero-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.ts-single__content { font-size: 16px; line-height: 1.75; color: #374151; }
.ts-single__content p { margin-bottom: 1.25em; }
.ts-single__content a { color: var(--red); text-decoration: underline; }

.ts-single__embed { margin: 24px 0; }
.ts-single__embed iframe, .ts-single__embed video { max-width: 100%; border-radius: var(--radius); }

/* Galerie */
.ts-gallery { margin: 32px 0; }
.ts-gallery__title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.ts-gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ts-gallery__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }

/* Stars liées */
.ts-single__stars { margin: 32px 0; }
.ts-single__stars-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; }

/* Partage */
.ts-share { margin: 32px 0; padding: 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.ts-share__title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }
.ts-share__buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.ts-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  transition: opacity .2s;
  flex: 1;
  justify-content: center;
  min-width: 120px;
}
.ts-share__btn:hover { opacity: .85; }
.ts-share__btn--whatsapp { background: #25d366; color: #fff; }
.ts-share__btn--tiktok   { background: #000; color: #fff; border: 1px solid #333; }
.ts-share__btn--twitter  { background: #1d9bf0; color: #fff; }

/* ══════════════════════════
   STAR PROFILE
══════════════════════════ */
.ts-star-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 32px 0;
  text-align: center;
}
.ts-star-profile__img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--red); }
.ts-star-profile__placeholder { width: 120px; height: 120px; border-radius: 50%; background: var(--card); display: flex; align-items: center; justify-content: center; font-size: 48px; border: 3px solid var(--red); }
.ts-star-profile__name { font-size: 28px; font-weight: 900; }
.ts-star-profile__bio { color: var(--gray); font-size: 14px; max-width: 500px; }
.ts-star-profile__count { font-size: 14px; }
.ts-star-profile__socials { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.ts-social { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; border: 1px solid var(--border); transition: background .15s; }
.ts-social:hover { background: var(--card); }
.ts-social--insta { border-color: #e1306c; color: #e1306c; }
.ts-social--tiktok { border-color: #69c9d0; color: #69c9d0; }
.ts-social--snap   { border-color: #fffc00; color: #fffc00; }
.ts-social--yt     { border-color: #ff0000; color: #ff0000; }
.ts-social--x      { border-color: #1d9bf0; color: #1d9bf0; }

/* ══════════════════════════
   ARCHIVE & FILTRES
══════════════════════════ */
.ts-archive-header { padding: 24px 0 8px; }
.ts-archive-title { font-size: 28px; font-weight: 900; text-transform: uppercase; }
.ts-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 24px; }
.ts-filter-btn { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; border: 1px solid var(--border); color: var(--gray); transition: .15s; }
.ts-filter-btn:hover, .ts-filter-btn.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ── Pagination */
.ts-pagination { margin: 32px 0; text-align: center; }
.ts-pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ts-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius); border: 1px solid var(--border); font-size: 14px; font-weight: 600; transition: .15s; }
.ts-pagination .page-numbers:hover { border-color: var(--red); color: var(--red); }
.ts-pagination .page-numbers.current { background: var(--red); border-color: var(--red); color: #fff; }

/* ══════════════════════════
   BREADCRUMB
══════════════════════════ */
.ts-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gray); padding: 16px 0 8px; flex-wrap: wrap; }
.ts-breadcrumb a { color: var(--gray); }
.ts-breadcrumb a:hover { color: var(--red); }
.ts-breadcrumb span { color: var(--border); }

/* ══════════════════════════
   SIDEBAR
══════════════════════════ */
.ts-sidebar { display: none; }
.ts-sidebar__widget { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.ts-sidebar__title { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; color: var(--red); }
.ts-sidebar__list { display: flex; flex-direction: column; gap: 12px; }
.ts-sidebar__item { display: flex; gap: 10px; align-items: flex-start; }
.ts-sidebar__item-img { width: 56px; height: 56px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.ts-sidebar__item-title { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ts-sidebar__item:hover .ts-sidebar__item-title { color: var(--red); }
.ts-sidebar__item-time { display: block; font-size: 11px; color: var(--gray); margin-top: 4px; }

/* ══════════════════════════
   FOOTER
══════════════════════════ */
.ts-footer { background: var(--dark); border-top: 1px solid var(--border); padding: 32px 0; margin-top: 48px; }
.ts-footer__inner { display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; }
.ts-footer__brand p { color: var(--gray); font-size: 13px; margin-top: 8px; }
.ts-footer__links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.ts-footer__links a { font-size: 13px; color: var(--gray); transition: color .15s; }
.ts-footer__links a:hover { color: var(--red); }
.ts-footer__copy { font-size: 12px; color: var(--gray); }

/* ── Divers */
.ts-empty { text-align: center; padding: 48px; color: var(--gray); }
.ts-btn-primary { display: inline-block; padding: 12px 24px; background: var(--red); color: #fff; border-radius: var(--radius); font-weight: 700; margin-top: 16px; }
.ts-btn-primary:hover { background: var(--red-dk); }

/* ══════════════════════════
   RESPONSIVE — Tablet (640px+)
══════════════════════════ */
@media (min-width: 640px) {
  .ts-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .ts-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .ts-nav { display: flex; flex-direction: row; position: static; background: none; padding: 0; border: none; }
  .ts-nav .menu { flex-direction: row; }
  .ts-nav-toggle { display: none; }
  .ts-star-profile { flex-direction: row; text-align: left; align-items: flex-start; }
  .ts-star-profile__socials { justify-content: flex-start; }
}

/* ══════════════════════════
   RESPONSIVE — Desktop (1024px+)
══════════════════════════ */
@media (min-width: 1024px) {
  .ts-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .ts-single { grid-template-columns: 1fr 320px; }
  .ts-sidebar { display: block; }
  .ts-container { padding: 0 24px; }
}

/* ══════════════════════════
   COMMENTAIRES
══════════════════════════ */
.ts-comments { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.comment-author { font-weight: 700; font-size: 14px; color: var(--text); }
.comment-metadata { font-size: 12px; color: var(--gray); margin: 4px 0 8px; }
.comment-content p { font-size: 14px; color: #374151; }
#respond { margin-top: 32px; }
#respond h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.comment-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--gray); }
.comment-form input, .comment-form textarea {
  width: 100%; background: #ffffff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 14px; color: var(--text);
  font-size: 14px; margin-bottom: 14px; font-family: var(--font);
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--red); }
.form-submit .submit { background: var(--red); color: #fff; border: none; padding: 10px 24px; border-radius: var(--radius); font-weight: 700; cursor: pointer; font-size: 14px; }
.form-submit .submit:hover { background: var(--red-dk); }
