:root {
  --bg: #0d0d0f;
  --bg-card: #1c1c21;
  --surface-hover: #26262c;
  --border: #2e2e36;
  --text: #f0f0f5;
  --text-muted: #a0a0b0;
  --accent: #7c3aed;
  --accent-hover: #8b5cf6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.site-header {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 20px;
  text-align: center;
}

.site-header h1 {
  margin: 0 0 10px;
}

.site-header a {
  color: var(--accent);
}

/* ===== Bandeau d'onglets ===== */
.service-tabs {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px;
  background: rgba(13, 13, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 190px;
  padding: 20px 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
}

.tab-btn:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.tab-btn-main {
  font-size: 1.1rem;
  font-weight: 700;
}

.tab-btn-sub {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tab-btn-sub.soft { color: #2ecc71; }
.tab-btn-sub.all  { color: #ff4d4d; }

.tab-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

/* Labels Soft/All dans les titres de section */
.lbl-soft { color: #2ecc71; font-weight: 800; }
.lbl-all  { color: #ff4d4d; font-weight: 800; }

.category.hidden {
  display: none;
}

.category {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px 0;
}

.category-title {
  margin: 0 0 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.model-note {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 18px;
}

.model-note h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--accent-hover);
}

.model-note p {
  margin: 0 0 8px;
}

.model-note ul {
  margin: 0;
  padding-left: 20px;
}

.model-note li {
  margin-bottom: 4px;
}

.examples-grid {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.example-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.example-card figure {
  margin: 0;
  text-align: center;
  flex: 0 0 auto;
}

.example-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: #000;
  cursor: zoom-in;
  transition: transform 0.15s;
}

.example-card img:hover {
  transform: scale(1.03);
}

.example-card figcaption {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.quality {
  font-size: 0.72rem;
  color: var(--accent-hover);
  font-weight: 600;
}

.example-prompt {
  flex: 1 1 220px;
  min-width: 0;
}

.example-prompt h2 {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.example-prompt p {
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
}

.site-footer {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.site-footer a {
  color: var(--accent);
}

/* ===== Porte d'âge (protection mineurs) ===== */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 8, 11, 0.96);
  backdrop-filter: blur(6px);
}

.age-gate.hidden {
  display: none;
}

.age-gate-box {
  max-width: 460px;
  width: 100%;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.age-gate-icon {
  font-size: 3rem;
  margin-bottom: 8px;
}

.age-gate-box h2 {
  margin: 0 0 12px;
}

.age-gate-box p {
  color: var(--text-muted);
  margin: 0 0 24px;
}

.age-gate-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.age-btn {
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.age-btn-yes {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.age-btn-yes:hover {
  background: var(--accent-hover);
}

.age-btn-no {
  background: transparent;
  color: var(--text-muted);
}

.age-btn-no:hover {
  border-color: var(--text-muted);
}

/* Floutage des images "Après" tant que l'âge n'est pas confirmé */
.age-locked .example-card figure:last-of-type img {
  filter: blur(22px);
}

/* ===== Visionneuse plein écran ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  z-index: 1000;
}

.lightbox.hidden {
  display: none;
}

.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 8px;
}

@media (max-width: 600px) {
  .example-card {
    flex-direction: column;
  }

  .example-card img {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 1;
  }

  .example-prompt {
    order: 2;
    flex-basis: 100%;
  }
}
