/* LiveKamery — dark warm theme, sober and mobile-first. */

:root {
  --bg: #0d0d12;
  --bg-2: #14141b;
  --bg-3: #1c1c26;
  --border: #26262f;
  --text: #ececf2;
  --muted: #9a9aa8;
  --muted-2: #6f6f7d;
  --accent: #ff6a3d;
  --accent-2: #ffb35c;
  --live: #ffb35c;
  --radius: 12px;
  --radius-s: 8px;
  --gutter: 20px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 18, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a0d06;
  font-size: 19px;
  font-weight: 800;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-size: 19px;
}
.logo-text small {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.nav a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover {
  color: var(--text);
  background: var(--bg-3);
}

/* ---------- hero / lead ---------- */
.hero {
  padding: 40px 0 8px;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.hero .lead {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
}
.hero .lead strong { color: var(--text); font-weight: 600; }

.section { padding: 28px 0 8px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.section-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.01em;
}
.section-head .more { color: var(--muted); font-size: 14px; }
.section-head .more:hover { color: var(--accent-2); }

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 4px;
}
.chip {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.15s, border-color 0.15s;
}
.chip:hover { color: var(--accent-2); border-color: var(--accent); }
.chips-label { color: var(--muted); font-size: 14px; margin-right: 4px; }
.hero .platform-line { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

/* ---------- grille de cartes ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1120px) { .grid { grid-template-columns: repeat(5, 1fr); } }

.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--bg-3);
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gender-chip {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(13, 13, 18, 0.72);
  color: var(--text);
  font-size: 12px;
}
.live-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--live);
  color: #1a0d06;
  font-size: 12px;
  font-weight: 700;
}
.off-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(13, 13, 18, 0.72);
  color: var(--muted);
  font-size: 12px;
}
.platform-chip {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(13, 13, 18, 0.72);
  color: var(--muted);
  font-size: 11px;
}
.card-body { padding: 11px 12px 13px; }
.card-name {
  font-weight: 600;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.card-viewers { color: var(--accent-2); }

.empty { color: var(--muted); }

/* ---------- fiche modèle ---------- */
.model-page { display: grid; grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
@media (min-width: 900px) { .model-page { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }

.model-stage {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.model-stage iframe {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  display: block;
  background: #000;
}
.model-stage .live-image { display: block; }
.model-stage .live-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.model-stage .offline-art {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 40%, #1c1c26, #101017);
}
.model-stage .offline-art .circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0.9;
}
.model-stage .offline-note { margin-top: 14px; color: var(--muted); text-align: center; }

.model-head { padding: 20px 0 0; }
.model-head h1 {
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: 0.01em;
}
.model-head .sub { color: var(--muted); }

.cta {
  display: inline-block;
  margin-top: 16px;
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a0d06;
  font-weight: 700;
  font-size: 16px;
  transition: filter 0.15s;
}
.cta:hover { filter: brightness(1.08); }
.cta.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.stat-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.stat {
  flex: 1 1 0;
  min-width: 120px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 12px 14px;
}
.stat .v { font-size: 22px; font-weight: 700; color: var(--accent-2); }
.stat .k { color: var(--muted); font-size: 13px; margin-top: 2px; }

.panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 20px;
}
.panel h3 { margin: 0 0 12px; font-size: 17px; }

.goal {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
.goal .bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-3);
  overflow: hidden;
}
.goal .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ---------- grille d'habitudes ---------- */
.sched {
  overflow-x: auto;
  font-size: 0;
}
.sched-head, .sched-row {
  display: grid;
  grid-template-columns: 44px repeat(24, 14px);
  gap: 2px;
  align-items: center;
}
.sched-corner, .day-label, .hour-label {
  font-size: 11px;
  color: var(--muted-2);
  line-height: 1.2;
  white-space: nowrap;
}
.sched-corner { font-size: 10px; padding-right: 6px; }
.hour-label { text-align: center; }
.cell {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--bg-3);
}
.cell.lvl1 { background: #4a2b1e; }
.cell.lvl2 { background: #8a4a26; }
.cell.lvl3 { background: #c86a30; }
.cell.lvl4 { background: var(--accent-2); }
.sched-legend { margin-top: 10px; font-size: 12px; color: var(--muted-2); }

/* ---------- article / guide ---------- */
.article { max-width: 720px; margin: 0 auto; padding: 24px 0 16px; }
.article h1 { font-size: 30px; line-height: 1.25; margin: 0 0 8px; }
.article h2 { font-size: 21px; margin: 28px 0 10px; }
.article p { color: #c9c9d4; }
.article ul { padding-left: 22px; color: #c9c9d4; }
.article .meta { color: var(--muted-2); font-size: 13px; margin-bottom: 20px; }
.guide-list { display: grid; gap: 14px; padding-top: 20px; }
.guide-item {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.15s;
}
.guide-item:hover { border-color: var(--accent); }
.guide-item h2 { margin: 0 0 6px; font-size: 18px; }
.guide-item p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.footer-inner { padding-top: 28px; padding-bottom: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.footer-name { font-weight: 700; font-size: 18px; }
.footer-tagline { color: var(--muted); font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 16px; }
.footer-nav a { color: var(--muted); font-size: 14px; }
.footer-nav a:hover { color: var(--accent-2); }
.footer-note { color: var(--muted-2); font-size: 13px; max-width: 640px; margin: 0; }

@media (min-width: 900px) {
  .hero h1 { font-size: 40px; }
}
