/* StarFR — CSS final corrigé */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { overflow-x: hidden; }
body { overflow-x: hidden; font-family: 'Inter', sans-serif; background: #f4f4f4; color: #111; font-size: 15px; line-height: 1.6; width: 100%; max-width: 100vw; }

:root {
  --red: #e11d48; --red-dark: #be123c;
  --yellow: #f59e0b; --purple: #8b5cf6;
  --green: #10b981; --blue: #3b82f6; --pink: #ec4899;
  --dark: #111; --gray: #6b7280;
  --border: #e5e7eb; --radius: 8px; --shadow: 0 1px 4px rgba(0,0,0,.08);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 14px;
}

/* ── TICKER ─────────────────────────────────────────────────── */
.ticker-wrap { background: #111; padding: 5px 0; overflow: hidden; white-space: nowrap; width: 100%; max-width: 100vw; }
.ticker-track { display: inline-flex; align-items: center; animation: ticker 30s linear infinite; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-badge { background: var(--red); color: #fff; font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 3px; margin-right: 14px; flex-shrink: 0; }
.ticker-item { color: #ccc; font-size: 10px; margin-right: 6px; flex-shrink: 0; }
.ticker-sep { color: var(--red); margin: 0 12px; flex-shrink: 0; }

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header { background: #fff; border-bottom: 2px solid var(--red); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); width: 100%; max-width: 100vw; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; }
.logo { font-family: Impact, 'Arial Black', sans-serif; font-size: 30px; font-weight: 900; text-transform: uppercase; flex-shrink: 0; }
.logo span { color: var(--red); }
.header-search { display: flex; flex: 1; max-width: 320px; margin: 0 20px; }
.header-search input { flex: 1; border: 1.5px solid var(--border); border-right: none; border-radius: 6px 0 0 6px; padding: 7px 12px; font-size: 13px; outline: none; min-width: 0; }
.header-search button { background: var(--red); color: #fff; border: none; padding: 0 13px; border-radius: 0 6px 6px 0; cursor: pointer; flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; flex-shrink: 0; }
.main-nav { background: #fff; border-top: 1px solid var(--border); width: 100%; overflow: hidden; }
.nav-inner { display: flex; align-items: center; overflow-x: auto; padding: 2px 0; }
.nav-item { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 8px 12px; color: #555; border-bottom: 2px solid transparent; white-space: nowrap; flex-shrink: 0; }
.nav-item:hover, .nav-item.active { color: var(--red); border-bottom-color: var(--red); }

/* ── HOT BAR ────────────────────────────────────────────────── */
.hot-bar { background: linear-gradient(90deg, #e11d48, #ff6b35, #fbbf24); padding: 6px 0; width: 100%; max-width: 100vw; overflow: hidden; }
.hot-inner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hot-label { color: #fff; font-size: 9px; font-weight: 700; text-transform: uppercase; flex-shrink: 0; }
.hot-tag { background: rgba(255,255,255,.25); color: #fff; font-size: 9px; font-weight: 700; padding: 2px 9px; border-radius: 10px; white-space: nowrap; }

/* ── LAYOUT PRINCIPAL ───────────────────────────────────────── */
.page-wrap { width: 100%; max-width: 100vw; padding: 14px 0; overflow: hidden; }

.layout-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

@media (min-width: 900px) {
  .layout-grid {
    display: grid;
    grid-template-columns: 1fr 240px;
    align-items: start;
  }
}

.main-content { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; }
.sidebar { width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }

@media (min-width: 900px) {
  .sidebar { position: sticky; top: 80px; }
}

/* ── SECTION ────────────────────────────────────────────────── */
.section { margin-bottom: 20px; }
.sec-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sec-bar { width: 3px; height: 18px; border-radius: 2px; background: var(--dark); flex-shrink: 0; }
.sec-bar.red { background: var(--red); }
.sec-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.sec-more { margin-left: auto; font-size: 11px; color: var(--red); font-weight: 600; }

/* ── BUZZ STRIP ─────────────────────────────────────────────── */
.buzz-strip { display: flex; gap: 10px; margin-bottom: 14px; width: 100%; }
.buzz-card { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; text-align: center; }
.buzz-num { font-size: 20px; font-weight: 900; color: var(--red); }
.buzz-label { font-size: 9px; color: var(--gray); text-transform: uppercase; margin-top: 2px; }

/* ── HERO ───────────────────────────────────────────────────── */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; }
@media (min-width: 600px) {
  .hero-grid { grid-template-columns: 1.5fr 1fr; }
  .hero-secondary { display: flex !important; flex-direction: column; gap: 10px; }
}
.hero-secondary { display: none; }
.hero-card { position: relative; border-radius: var(--radius); overflow: hidden; display: block; aspect-ratio: 16/9; width: 100%; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #1a0533, #e11d48); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 55%); }
.hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px; }
.hero-title { font-size: 16px; font-weight: 900; color: #fff; line-height: 1.25; margin: 5px 0 4px; }
.hero-title-sm { font-size: 12px; font-weight: 800; color: #fff; line-height: 1.3; margin: 5px 0 4px; }
.hero-sub { font-size: 11px; color: rgba(255,255,255,.75); }
.hero-meta { display: flex; gap: 10px; font-size: 9px; color: rgba(255,255,255,.55); margin-top: 5px; }
.hero-main { aspect-ratio: 16/9; }
.hero-small { aspect-ratio: 16/9; }

/* ── BADGES ─────────────────────────────────────────────────── */
.cat-badge { display: inline-block; font-size: 8px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; color: #fff; }
.cat-label { font-size: 9px; font-weight: 700; text-transform: uppercase; display: block; margin-bottom: 3px; }
.badge-exclu { display: inline-block; background: #fbbf24; color: #111; font-size: 8px; font-weight: 700; padding: 2px 6px; border-radius: 3px; text-transform: uppercase; margin-left: 4px; }
.badge-viral { display: inline-block; background: var(--red); color: #fff; font-size: 8px; font-weight: 700; padding: 2px 6px; border-radius: 3px; text-transform: uppercase; margin-left: 4px; }

/* ── GRID CARDS ─────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 12px; width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 12px; width: 100%; }
@media (min-width: 480px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.gcard { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); display: block; min-width: 0; }
.gcard-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #f0f0f0; }
.gcard-img img { width: 100%; height: 100%; object-fit: cover; }
.gcard-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg,#f0f0f0,#e0e0e0); }
.gcard-views { position: absolute; bottom: 5px; right: 5px; background: rgba(0,0,0,.6); color: #fff; font-size: 8px; padding: 1px 5px; border-radius: 3px; }
.gcard-body { padding: 10px; }
.gcard-title { font-size: 12px; font-weight: 700; line-height: 1.35; margin-bottom: 5px; }
.gcard-foot { display: flex; justify-content: space-between; font-size: 9px; color: var(--gray); }
.likes { color: var(--red); font-weight: 600; }

/* ── ARTICLE LIST ───────────────────────────────────────────── */
.art-list { display: flex; flex-direction: column; width: 100%; }
.art-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.art-item:last-child { border-bottom: none; }
.art-thumb { width: 80px; height: 60px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: #f0f0f0; }
.art-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { width: 100%; height: 100%; background: #eee; }
.art-body { flex: 1; min-width: 0; }
.art-title { font-size: 13px; font-weight: 700; line-height: 1.35; margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; }
.art-foot { display: flex; align-items: center; gap: 8px; font-size: 9px; color: var(--gray); flex-wrap: wrap; }

/* ── ARTICLE PAGE ───────────────────────────────────────────── */
.article-page { background: #fff; border-radius: var(--radius); padding: 16px; width: 100%; }
.art-header { margin-bottom: 16px; }
.art-cats { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.art-title-h1 { font-size: 22px; font-weight: 900; line-height: 1.2; margin-bottom: 10px; }
.art-chapeau { font-size: 15px; color: #555; border-left: 4px solid var(--red); padding-left: 14px; margin-bottom: 12px; }
.art-byline { display: flex; gap: 14px; font-size: 11px; color: var(--gray); flex-wrap: wrap; }
.art-cover { margin: 0 -16px 20px; }
.art-cover-img { width: 100%; max-height: 400px; object-fit: cover; }
.art-content { font-size: 15px; line-height: 1.8; color: #222; margin-bottom: 24px; }
.art-content h2 { font-size: 18px; font-weight: 800; margin: 20px 0 8px; }
.art-content p { margin-bottom: 14px; }
.art-content blockquote { border-left: 4px solid var(--red); background: #fff5f6; padding: 12px 16px; margin: 16px 0; font-style: italic; }
.art-content a { color: var(--red); text-decoration: underline; }

/* ── CARROUSEL ──────────────────────────────────────────────── */
.carousel-section { margin-bottom: 24px; width: 100%; }
.carousel-title { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.carousel-wrap { position: relative; overflow: hidden; border-radius: var(--radius); background: #111; width: 100%; }
.carousel-track { display: flex; transition: transform .35s ease; }
.carousel-slide { min-width: 100%; }
.carousel-slide img { width: 100%; max-height: 400px; object-fit: contain; }
.embed-wrap { position: relative; padding-bottom: 56.25%; height: 0; }
.embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.slide-caption { background: rgba(0,0,0,.7); color: #ccc; font-size: 11px; padding: 6px 12px; text-align: center; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.85); border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 16px; cursor: pointer; z-index: 10; }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.carousel-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); border: none; cursor: pointer; padding: 0; }
.carousel-dots .dot.active { width: 20px; border-radius: 4px; background: #fff; }
.carousel-counter { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; }

/* ── ENGAGEMENT ─────────────────────────────────────────────── */
.engagement-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 20px 0; flex-wrap: wrap; gap: 10px; }
.like-btn { display: flex; align-items: center; gap: 8px; background: #f9f9f9; border: 1.5px solid var(--border); border-radius: 30px; padding: 8px 20px; font-size: 14px; font-weight: 700; cursor: pointer; }
.like-btn.liked { background: #fff0f3; border-color: var(--red); color: var(--red); }
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn { display: inline-block; padding: 7px 14px; border-radius: 6px; font-size: 11px; font-weight: 700; color: #fff; }
.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #111; }
.share-btn.wa { background: #25d366; }

/* ── COMMENTAIRES ───────────────────────────────────────────── */
.comments-section { margin-top: 24px; }
.comments-title { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.comment-form { background: #f9f9f9; border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 10px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.comment-form input, .comment-form textarea { width: 100%; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 6px; font-size: 13px; font-family: inherit; outline: none; }
.comment-form textarea { resize: vertical; margin-bottom: 10px; }
.submit-btn { background: var(--red); color: #fff; border: none; padding: 10px 24px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; }
.comment { display: flex; gap: 12px; margin-bottom: 14px; }
.comment-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg,var(--red),#f97316); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.comment-body { flex: 1; min-width: 0; background: #f9f9f9; border-radius: 0 10px 10px 10px; padding: 10px 14px; }
.comment-head { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 11px; }
.comment-body p { font-size: 13px; color: #333; line-height: 1.5; }
.no-comments { color: var(--gray); font-size: 13px; text-align: center; padding: 20px; }
.msg-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 12px; }
.msg-error { background: #fff1f2; border: 1px solid #fca5a5; color: #991b1b; padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 12px; }

/* ── CATÉGORIE ───────────────────────────────────────────────── */
.cat-header { padding: 14px 16px; background: #fff; border-radius: var(--radius); margin-bottom: 16px; }
.cat-header h1 { font-size: 22px; font-weight: 900; }
.pagination { display: flex; justify-content: center; gap: 6px; padding: 20px 0; flex-wrap: wrap; }
.page-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: #fff; border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: #555; }
.page-btn.active { background: var(--red); color: #fff; border-color: var(--red); }

/* ── SIMILAIRES ─────────────────────────────────────────────── */
.similaires { margin: 24px 0; }
.sim-title { font-size: 16px; font-weight: 800; margin-bottom: 12px; }

/* ── ADS ─────────────────────────────────────────────────────── */
.ad-banner { background: #f9f9f9; border: 1px dashed #ddd; border-radius: var(--radius); text-align: center; font-size: 9px; color: #ccc; text-transform: uppercase; display: flex; align-items: center; justify-content: center; }
.ad-horizontal { height: 90px; margin: 14px 0; }

/* ── SIDEBAR WIDGETS ────────────────────────────────────────── */
.widget { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; width: 100%; min-width: 0; }
.widget-head { padding: 8px 12px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.wbar { width: 2px; height: 12px; background: var(--dark); border-radius: 1px; flex-shrink: 0; }
.wbar.red { background: var(--red); }

/* Newsletter */
.nl-widget { background: var(--red); padding: 14px; }
.nl-title { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.nl-text { color: rgba(255,255,255,.8); font-size: 11px; margin-bottom: 10px; }
.nl-input { width: 100%; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35); border-radius: 5px; padding: 7px 10px; font-size: 12px; color: #fff; outline: none; margin-bottom: 7px; }
.nl-input::placeholder { color: rgba(255,255,255,.6); }
.nl-btn { width: 100%; background: #fff; color: var(--red); border: none; border-radius: 5px; padding: 8px; font-size: 11px; font-weight: 700; cursor: pointer; }

/* Carrousel célébrités — LE FIX PRINCIPAL */
.celeb-carousel-wrap { overflow: hidden; width: 100%; max-width: 100%; }
.celeb-track { display: flex; animation: celebScroll 18s linear infinite; }
@keyframes celebScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.celeb-card { width: 80px; min-width: 80px; max-width: 80px; padding: 8px 6px; text-align: center; border-right: 1px solid var(--border); display: block; flex-shrink: 0; }
.celeb-avatar { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 5px; overflow: hidden; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #fff; }
.celeb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.celeb-name { font-size: 9px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.celeb-role { font-size: 8px; color: var(--gray); }
.celeb-badge { background: #fef9c3; color: #854d0e; font-size: 7px; font-weight: 700; padding: 1px 5px; border-radius: 3px; display: inline-block; margin-top: 2px; }

/* Sondage */
.sondage-question { font-size: 12px; font-weight: 700; padding: 10px 12px 8px; line-height: 1.4; }
.vote-option { display: flex; align-items: center; gap: 7px; padding: 4px 12px; cursor: pointer; min-width: 0; }
.vote-option input { display: none; }
.vote-option label { font-size: 10px; font-weight: 600; color: #555; width: 60px; min-width: 60px; flex-shrink: 0; cursor: pointer; }
.vote-bar-wrap { flex: 1; min-width: 0; background: #f0f0f0; border-radius: 3px; height: 8px; overflow: hidden; }
.vote-bar { height: 100%; border-radius: 3px; }
.vote-pct { font-size: 9px; font-weight: 700; width: 26px; text-align: right; flex-shrink: 0; }
.vote-btn { display: block; width: calc(100% - 24px); margin: 8px 12px; background: var(--red); color: #fff; border: none; padding: 8px; border-radius: 6px; font-size: 11px; font-weight: 700; cursor: pointer; }
.vote-total { text-align: center; font-size: 9px; color: var(--gray); padding-bottom: 10px; }

/* Trending */
.trend-item { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-bottom: 1px solid #f5f5f5; min-width: 0; }
.trend-item:last-child { border-bottom: none; }
.trend-rank { font-size: 16px; font-weight: 900; color: #e0e0e0; width: 16px; text-align: center; flex-shrink: 0; }
.trend-rank.top { color: var(--red); }
.trend-body { flex: 1; min-width: 0; }
.trend-body strong { display: block; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend-body small { font-size: 9px; color: var(--gray); }
.trend-arrow { font-size: 11px; color: var(--gray); flex-shrink: 0; }

/* Photos */
.photos-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; padding: 2px; }
.photo-cell { aspect-ratio: 1; overflow: hidden; display: block; }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; }

/* Ad widget */
.ad-widget { height: 250px; display: flex; align-items: center; justify-content: center; font-size: 9px; color: #ccc; text-transform: uppercase; background: #fafafa; border: 1px dashed #ddd; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer { background: #111; color: #aaa; margin-top: 30px; padding: 30px 0 16px; width: 100%; max-width: 100vw; }
.footer-inner { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.footer-logo { font-family: Impact, sans-serif; font-size: 26px; color: #fff; text-transform: uppercase; }
.footer-logo span { color: var(--red); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.footer-nav a { font-size: 11px; color: #888; }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer-legal a { font-size: 10px; color: #666; }
.footer-copy { font-size: 10px; color: #555; }

/* ── NAV MOBILE ─────────────────────────────────────────────── */
@media (max-width: 899px) {
  .header-search { display: none; }
  .nav-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .nav-inner { flex-direction: column; overflow-x: hidden; }
  .nav-item { padding: 10px 16px; border-bottom: 1px solid var(--border); width: 100%; }
}
.hero-card { max-width: 100%; }
.hero-grid { overflow: hidden; }