/* ═══════════════════════════════════════════════════════════
   DLFreak — style.css
   Feuille de style partagée par toutes les pages produit.
   Pour modifier le design de TOUTES les pages en une fois,
   éditez uniquement ce fichier.
   ═══════════════════════════════════════════════════════════ */

/* ───── Reset & Base ───── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:         #0f1117;
  --bg2:        #181b24;
  --bg3:        #1e2130;
  --border:     #2a2f45;
  --accent:     #e94560;
  --accent2:    #7c4dff;
  --green:      #00c896;
  --yellow:     #ffb700;
  --text:       #e2e8f0;
  --text-muted: #8892a4;
  --radius:     10px;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ───── Header ───── */
header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: center; gap: 16px;
  height: 58px;
}
.logo {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -1px;
  color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--text-muted); font-size: 13px; padding: 6px 12px;
  border-radius: 6px; transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--bg3); color: var(--text); text-decoration: none; }
.search-bar {
  display: flex; align-items: center; background: var(--bg3);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 0 12px; gap: 8px; flex: 1; max-width: 280px;
}
.search-bar input {
  background: transparent; border: none; outline: none;
  color: var(--text); font-size: 13px; width: 100%; padding: 8px 0;
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-icon { color: var(--text-muted); font-size: 14px; }

/* ───── Breadcrumb ───── */
.breadcrumb {
  max-width: 1200px; margin: 0 auto;
  padding: 12px 20px;
  font-size: 12px; color: var(--text-muted);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); text-decoration: none; }
.breadcrumb span { opacity: .5; }

/* ───── Main Layout ───── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px 40px; }
.layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

/* ───── Gallery ───── */
.gallery { position: relative; }
.gallery-main {
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg2); aspect-ratio: 4/3;
  cursor: pointer; position: relative;
}
.gallery-main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.gallery-main:hover img { transform: scale(1.02); }
.gallery-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: .5px;
}
.gallery-thumbs {
  display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap;
}
.gallery-thumbs img {
  width: 80px; height: 60px; object-fit: cover;
  border-radius: 6px; cursor: pointer; border: 2px solid transparent;
  transition: border-color .15s, opacity .15s;
  opacity: .65;
}
.gallery-thumbs img:hover, .gallery-thumbs img.active {
  border-color: var(--accent); opacity: 1;
}
@media (max-width: 600px) {
  .gallery-main { aspect-ratio: 3/2; }
  .gallery-thumbs img { width: 60px; height: 45px; }
}

/* ───── Info Card ───── */
.info-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.product-title {
  font-size: 1.15rem; font-weight: 700; line-height: 1.4;
  margin-bottom: 16px; color: var(--text);
}
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.badge {
  font-size: 11px; font-weight: 600; padding: 4px 10px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: .4px;
}
.badge-r18  { background: rgba(233,69,96,.15);  color: var(--accent); border: 1px solid rgba(233,69,96,.3); }
.badge-cat  { background: rgba(124,77,255,.15);  color: #9d7cff;       border: 1px solid rgba(124,77,255,.3); }
.badge-new  { background: rgba(0,200,150,.15);   color: var(--green);  border: 1px solid rgba(0,200,150,.3); }

.info-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.info-table tr { border-bottom: 1px solid var(--border); }
.info-table tr:last-child { border-bottom: none; }
.info-table td { padding: 9px 4px; font-size: 13px; vertical-align: top; }
.info-table td:first-child { color: var(--text-muted); white-space: nowrap; padding-right: 14px; width: 40%; }
.info-table td:last-child { color: var(--text); font-weight: 500; }
.info-table a { color: var(--accent); }

.filesize-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,183,0,.1); color: var(--yellow);
  border: 1px solid rgba(255,183,0,.25);
  border-radius: 6px; padding: 4px 10px; font-size: 12px; font-weight: 700;
}

.support-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-muted); font-size: 13px;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
  text-decoration: none; margin-top: 16px;
}
.support-btn:hover {
  background: var(--bg3); border-color: var(--accent);
  color: var(--accent); text-decoration: none;
}

/* ───── Description ───── */
.section { margin-top: 24px; }
.section-title {
  font-size: .85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-muted); margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: ''; display: block; width: 3px; height: 16px;
  background: var(--accent); border-radius: 2px;
}
.desc-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  font-size: 14px; line-height: 1.8; color: var(--text);
}
.desc-box h3 {
  font-size: 1rem; margin-bottom: 12px; color: var(--text);
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.desc-box p { color: var(--text-muted); }

/* ───── Download Section ───── */
.dl-section { margin-top: 24px; }
.dl-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.dl-header h2 {
  font-size: .85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
}
.dl-header h2::before {
  content: ''; display: block; width: 3px; height: 16px;
  background: var(--green); border-radius: 2px;
}
.dl-note {
  font-size: 11px; color: var(--text-muted);
  background: rgba(0,200,150,.08); border: 1px solid rgba(0,200,150,.2);
  border-radius: 6px; padding: 4px 10px;
}

.mirror-group { margin-bottom: 20px; }
.mirror-group-title {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-muted); margin-bottom: 10px;
}
.mirror-list { display: flex; flex-direction: column; gap: 8px; }

.mirror-btn {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 18px;
  cursor: pointer; transition: all .15s; text-decoration: none;
  position: relative; overflow: hidden;
}
.mirror-btn:not(.disabled):hover {
  border-color: var(--green); background: rgba(0,200,150,.06);
  text-decoration: none; transform: translateX(2px);
}
.mirror-btn.disabled {
  opacity: .38; cursor: not-allowed; filter: grayscale(60%);
}
.mirror-icon {
  width: 38px; height: 38px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.mirror-info { flex: 1; }
.mirror-name {
  font-size: 14px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.mirror-name .tag {
  font-size: 10px; padding: 2px 7px; border-radius: 4px;
  font-weight: 700; text-transform: uppercase;
}
.tag-free    { background: rgba(0,200,150,.15);  color: var(--green); }
.tag-prem    { background: rgba(255,183,0,.12);  color: var(--yellow); }
.tag-torrent { background: rgba(124,77,255,.15); color: #9d7cff; }
.tag-dead    { background: rgba(255,50,50,.1);   color: #f66; }
.mirror-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.mirror-speed {
  font-size: 11px; color: var(--text-muted); text-align: right;
  flex-shrink: 0;
}
.speed-dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; margin-right: 5px;
}
.speed-dot.online  { background: var(--green); box-shadow: 0 0 6px var(--green); }
.speed-dot.offline { background: #555; }

.dl-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, var(--accent), #c0392b);
  border: none; border-radius: 10px; color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: opacity .15s, transform .1s;
  text-decoration: none; margin-bottom: 20px;
}
.dl-cta:hover { opacity: .9; transform: translateY(-1px); text-decoration: none; color: #fff; }

/* ───── Sidebar ───── */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.sidebar-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-muted); margin-bottom: 14px;
}

/* ───── Comments ───── */
.comment-count {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 20px; padding: 1px 9px;
  font-size: 11px; color: var(--text-muted); font-weight: 600;
  text-transform: none; letter-spacing: 0;
}
.comment-empty {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 20px;
  text-align: center; margin-bottom: 16px;
}
.comment-empty-icon { font-size: 2rem; display: block; margin-bottom: 10px; opacity: .5; }
.comment-empty p     { color: var(--text-muted); font-size: 14px; }
.comment-empty small { color: var(--text-muted); font-size: 12px; opacity: .6; margin-top: 4px; display: block; }

.comment-form-wrap {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.comment-form-header {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.comment-form-title { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.comment-textarea {
  width: 100%; background: transparent; border: none; outline: none;
  color: var(--text-muted); font-size: 14px; padding: 16px 18px;
  resize: none; height: 90px; cursor: pointer;
  font-family: inherit;
}
.comment-textarea:hover { background: rgba(255,255,255,.02); }
.comment-form-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-top: 1px solid var(--border);
  gap: 12px; flex-wrap: wrap;
}
.comment-login-note { font-size: 12px; color: var(--text-muted); flex: 1; line-height: 1.5; }
.comment-login-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--accent), #c0392b);
  color: #fff; font-size: 13px; font-weight: 700;
  padding: 9px 18px; border-radius: 8px; white-space: nowrap;
  transition: opacity .15s, transform .1s; flex-shrink: 0;
}
.comment-login-btn:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; color: #fff; }

/* ───── Footer ───── */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 28px 20px;
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
}
.footer-logo { font-size: 1.1rem; font-weight: 800; }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-copy { font-size: 11px; color: var(--text-muted); width: 100%; text-align: center; margin-top: 8px; }

/* ───── Lightbox ───── */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.88); align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; }
#lightbox-close {
  position: absolute; top: 20px; right: 28px;
  font-size: 2rem; color: #fff; cursor: pointer; opacity: .7;
}
#lightbox-close:hover { opacity: 1; }

/* ───── Responsive ───── */
@media (max-width: 600px) {
  .header-inner { gap: 10px; }
  .nav-links { display: none; }
  .search-bar { max-width: 100%; }
  .info-card { padding: 16px; }
  .product-title { font-size: 1rem; }
}
