/* NSFW AI Scout — v2 (2026-09-29)
   Éditorial sombre et chaud : titres serif (Fraunces), texte Inter, accent corail, pas d'emoji dans l'interface.
   Reprend les classes existantes des 90 pages : basculer une page = changer la feuille de style. */

:root {
  --bg: #0f0e11;
  --surface: #17151a;
  --surface-2: #211e25;
  --line: #2d2932;
  --text: #f1ece6;
  --text-2: #cfc8c1;
  --muted: #8d8690;
  --accent: #ff5364;
  --accent-hover: #ff7582;
  --gold: #f2c14e;
  --good: #79d69c;
  --bad: #ff6b6b;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 10px;
  --wrap: 1140px;
  --read: 760px;
  /* anciens noms encore utilisés en style inline dans certaines pages */
  --bg-primary: var(--bg);
  --bg-card: var(--surface);
  --card-bg: var(--surface);
  --border: var(--line);
  --text-primary: var(--text);
  --text-secondary: var(--text-2);
  --text-muted: var(--muted);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text-2);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-hover); }
strong { color: var(--text); font-weight: 600; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; overflow-x: auto; margin: 0 0 1.25rem; }
code { background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
pre code { background: none; padding: 0; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Typographie */
h1, h2, h3, h4, h5, h6 { color: var(--text); line-height: 1.2; margin-bottom: .75rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-top: 3rem; scroll-margin-top: 84px; }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.4rem); margin-top: 2rem; scroll-margin-top: 84px; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin-bottom: 1.1rem; }
ul, ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
li { margin-bottom: .45rem; }
li::marker { color: var(--muted); }
blockquote { border-left: 3px solid var(--accent); padding: .25rem 0 .25rem 1rem; margin: 1.5rem 0; color: var(--text); font-family: var(--serif); font-size: 1.15rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* En-tête */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(15, 14, 17, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 64px; flex-wrap: wrap; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--text); letter-spacing: -.01em; white-space: nowrap; }
.logo:hover { color: var(--text); }
.logo span { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; align-items: center; }
.nav a { color: var(--text-2); font-size: .92rem; font-weight: 500; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: .4rem .7rem; font: 600 .85rem var(--sans); cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: .25rem 0 .75rem; }
  .nav.active { display: flex; }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
}

/* Hero */
.hero { padding: 3.25rem 0 2.25rem; border-bottom: 1px solid var(--line); background: radial-gradient(1200px 400px at 85% -10%, rgba(255, 83, 100, .10), transparent 60%); }
.hero .container { text-align: left; }
.hero h1 { max-width: 22ch; margin-bottom: 1rem; }
.hero-subtitle { max-width: 68ch; font-size: 1.1rem; color: var(--text-2); margin-bottom: 1.25rem; }
.age-badge { display: inline-block; font: 600 .7rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(255, 83, 100, .45); border-radius: 4px; padding: .2rem .5rem; margin-bottom: 1rem; }
.kicker { font: 600 .74rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.kicker .age-badge { margin: 0 .5rem 0 0; vertical-align: 1px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .25rem 0; color: var(--muted); }
.badge { font: 500 .8rem var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.badge + .badge::before { content: "·"; margin: 0 .7rem; color: var(--line); }
.badge-icon { display: none; }
.hero-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-weight: 600; }
.hero-links a { color: var(--text); border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-visual { display: none; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.35fr 1fr; }
  .hero-visual { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
    background: linear-gradient(135deg, #2a1a22, #17151a 55%, #221823); position: relative; }
  .hero-visual img { width: 100%; height: 100%; object-fit: cover; }
  .hero-visual .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font: 500 .8rem var(--sans); letter-spacing: .08em; text-transform: uppercase; }
}
@media (max-width: 640px) { .hero { padding: 2rem 0 1.5rem; } .hero-subtitle { font-size: 1rem; } }

/* Contenu */
main { padding: 2rem 0 1rem; }
.content { max-width: var(--read); margin: 0; }
.content.full-width { max-width: var(--read); }
.content > p, .content li { font-size: 1.05rem; }
.content p a, .content li a, .content td a:not(.table-cta), .faq-answer-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(255, 83, 100, .5); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.text-success { color: var(--good); }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.section-label { font: 600 .74rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .75rem; }

/* Boutons */
.btn, .app-card-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--accent); color: #fff; font: 600 .95rem/1.2 var(--sans);
  padding: .8rem 1.2rem; border-radius: 8px; border: 0; cursor: pointer; text-decoration: none;
  transition: background .15s, transform .15s;
}
.btn:hover, .app-card-cta:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-lg { padding: 1rem 1.5rem; font-size: 1.02rem; }
.btn-primary { background: var(--accent); }
.btn-secondary { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-secondary:hover { background: var(--surface-2); color: var(--text); }
.text-center .btn { max-width: 100%; }
@media (max-width: 640px) { .text-center .btn, .app-card-cta { width: 100%; } }

/* Top par usage (home) */
.toplist { list-style: none; padding: 0; margin: 0 0 2.5rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.toplist li { display: grid; grid-template-columns: auto 48px 1fr auto auto; align-items: center; gap: .9rem; padding: .85rem 1rem; margin: 0; background: var(--surface); }
.toplist li + li { border-top: 1px solid var(--line); }
.toplist-use { font: 600 .68rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); width: 7.5rem; line-height: 1.3; }
.toplist img { width: 48px; height: 48px; border-radius: 12px; background: var(--surface-2); }
.toplist-name { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none !important; }
.toplist-why { display: block; font-size: .88rem; color: var(--muted); line-height: 1.4; }
.toplist-score { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--text); font-variant-numeric: tabular-nums; }
.toplist-cta { padding: .6rem 1rem; font-size: .9rem; }
@media (max-width: 640px) {
  .toplist li { grid-template-columns: 40px 1fr auto; grid-template-areas: "img main score" "use use cta"; gap: .4rem .75rem; }
  .toplist img { grid-area: img; width: 40px; height: 40px; }
  .toplist-main { grid-area: main; }
  .toplist-score { grid-area: score; }
  .toplist-use { grid-area: use; width: auto; align-self: center; }
  .toplist-cta { grid-area: cta; }
}

/* Cartes d'app (listes classées + verdict en tête de review) */
.app-grid, .card-grid { display: block; margin: 1.5rem 0 2rem; }
.app-card {
  display: grid; grid-template-columns: 88px 1fr; gap: 1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; margin-bottom: 1rem; position: relative;
}
.app-card-featured { border-color: rgba(255, 83, 100, .4); box-shadow: inset 3px 0 0 var(--accent); }
.app-card-image { display: flex; flex-direction: column; align-items: center; gap: .5rem; position: relative; }
.app-card-img, .app-card-placeholder { width: 76px; height: 76px; border-radius: 16px; object-fit: cover; background: var(--surface-2); }
.app-card-placeholder { display: grid; place-items: center; font-size: 1.6rem; }
.app-card-rank { position: absolute; top: -8px; left: -4px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: var(--accent); color: #fff; font: 700 .8rem/26px var(--sans); text-align: center; z-index: 1; }
.app-card-badge { font: 600 .66rem/1.25 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--gold); text-align: center; }
.app-card-content { min-width: 0; }
.app-card-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.app-card-title { font-family: var(--serif); font-size: 1.4rem; margin: 0 !important; }
.app-card-score { white-space: nowrap; font-family: var(--serif); }
.app-card-score-value { font-size: 1.7rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.app-card-score-max { font-size: .9rem; color: var(--muted); }
.app-card-tagline { margin: .35rem 0 .8rem; color: var(--text-2); font-size: 1rem; }
.app-card-features { display: flex; flex-wrap: wrap; gap: .35rem .45rem; margin-bottom: .9rem; }
.app-card-feature { font-size: .76rem; color: var(--text-2); border: 1px solid var(--line); border-radius: 4px; padding: .12rem .45rem; }
.app-card-cta { margin-top: .25rem; }
.app-card.animate-in { opacity: 1 !important; }
@media (max-width: 640px) {
  .app-card { grid-template-columns: 60px 1fr; padding: 1rem; gap: .75rem 1rem; }
  .app-card-img, .app-card-placeholder { width: 56px; height: 56px; border-radius: 12px; }
  .app-card-title { font-size: 1.2rem; }
  .app-card-score-value { font-size: 1.4rem; }
  .app-card-badge { font-size: .6rem; }
}

/* Barres de score */
.score-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .55rem 1.5rem; margin: .5rem 0 1rem; }
.score-bar-header { display: flex; justify-content: space-between; gap: .5rem; font-size: .8rem; color: var(--muted); margin-bottom: .25rem; }
.score-bar-value { color: var(--text-2); font-variant-numeric: tabular-nums; }
.score-bar-track { height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.score-bar-fill { height: 100%; background: var(--muted); border-radius: 2px; transition: width .6s ease; }
.score-bar-fill.high { background: var(--good); }
.score-bar-fill.medium { background: var(--gold); }
.score-bar-fill.low { background: var(--bad); }

/* Chiffres clés (anciennes pages) */
.quick-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1.5rem 0 2rem; }
.stat-card { background: var(--surface); padding: 1rem; }
.stat-value { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--text); }
.stat-label { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Sommaire */
.toc { border-left: 2px solid var(--accent); padding: .1rem 0 .1rem 1.1rem; margin: 1.5rem 0 2.25rem; }
.toc h4, .toc summary { font: 600 .74rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .5rem; cursor: default; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol, .toc ul { margin: 0; padding-left: 1.15rem; }
.toc li { margin: .2rem 0; font-size: .95rem; }
.toc a { color: var(--text-2); text-decoration: none !important; }
.toc a:hover { color: var(--text); }
@media (min-width: 900px) { .toc ol, .toc ul { columns: 2; column-gap: 2.5rem; } .toc li { break-inside: avoid; } }
@media (max-width: 899px) {
  .toc details summary { cursor: pointer; }
  .toc details summary::after { content: " +"; color: var(--accent); }
  .toc details[open] summary::after { content: " −"; }
}

/* Tableaux */
.table-wrapper { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 1.5rem 0 2rem; -webkit-overflow-scrolling: touch; }
@media (min-width: 1180px) { .table-wrapper.wide, .content .table-wrapper:has(th:nth-child(7)) { margin-right: -260px; } }
.comparison-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.comparison-table th { font: 600 .7rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: left; padding: .75rem .9rem; background: var(--surface); border-bottom: 1px solid var(--line); white-space: nowrap; }
.comparison-table th[data-sort] { cursor: pointer; }
.comparison-table th[data-sort]::after { content: " ↕"; color: var(--line); }
.comparison-table th.sorted::after { content: " ↓"; color: var(--accent); }
.comparison-table td { padding: .75rem .9rem; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
.comparison-table tbody tr:last-child td { border-bottom: 0; }
.comparison-table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.comparison-table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.comparison-table tr.is-hidden { display: none; }
.table-score { display: inline-flex; align-items: center; gap: .4rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-score-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.table-score-dot.high { background: var(--good); }
.table-score-dot.medium { background: var(--gold); }
.table-score-dot.low { background: var(--bad); }
.table-check { color: var(--good); font-weight: 600; }
.table-cross { color: var(--muted); }
.table-cta { display: inline-block; background: var(--accent); color: #fff !important; font: 600 .82rem var(--sans); padding: .4rem .75rem; border-radius: 6px; white-space: nowrap; }
.table-cta:hover { background: var(--accent-hover); }
.table-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 -.5rem; }
.table-filters button { background: transparent; border: 1px solid var(--line); color: var(--text-2); border-radius: 999px; padding: .35rem .8rem; font: 500 .85rem var(--sans); cursor: pointer; }
.table-filters button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.table-filters .count { color: var(--muted); font-size: .85rem; align-self: center; margin-left: .25rem; }

/* Pour / contre */
.pros-cons { display: grid; gap: 1rem; margin: 1.5rem 0 2rem; }
@media (min-width: 700px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pros, .cons { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.pros h4, .cons h4 { font: 600 .74rem var(--sans); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .6rem; }
.pros h4 { color: var(--good); }
.cons h4 { color: var(--bad); }
.pros ul, .cons ul { margin: 0; padding-left: 1.1rem; }
.pros li, .cons li { font-size: .95rem; margin-bottom: .4rem; }

/* FAQ */
.faq-section { border-top: 1px solid var(--line); margin: 1rem 0 2rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: none; border: 0; color: var(--text); font: 600 1.02rem/1.4 var(--sans); text-align: left; padding: 1.05rem 0; cursor: pointer; }
.faq-question:hover { color: var(--accent-hover); }
.faq-icon { color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform .2s; flex: none; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.active .faq-answer { max-height: 1600px; }
.faq-answer-content { padding: 0 0 1.1rem; }
.faq-answer-content p { margin-bottom: .75rem; }

/* Liens internes / hubs */
.internal-links, .discovery-hub { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin: 2.5rem 0; }
.internal-links h4, .discovery-hub h3, .discovery-hub h4 { font: 600 .74rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .75rem; }
.internal-links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .35rem 1.25rem; }
.internal-links-grid a { color: var(--text-2); font-size: .95rem; }
.internal-links-grid a:hover { color: var(--text); }
.discovery-card { display: block; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1rem; margin-bottom: .6rem; color: var(--text-2); }
.discovery-card:hover { border-color: var(--accent); color: var(--text); }

/* Pied de page */
.footer { border-top: 1px solid var(--line); margin-top: 4rem; padding: 3rem 0 2rem; background: #0b0a0d; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-brand p { font-size: .9rem; color: var(--muted); margin-top: .6rem; max-width: 36ch; }
.footer-links h5 { font: 600 .7rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: .3rem 0; }
.footer-links a { color: var(--text-2); font-size: .9rem; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .8rem; color: var(--muted); }
.footer-bottom p { margin-bottom: .5rem; }
.footer-disclaimer { max-width: 80ch; }

/* Bouton affilié collant (mobile, pages review) */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: .75rem;
  padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(15, 14, 17, .97); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .2s ease; }
.sticky-cta.show { transform: none; }
.sticky-cta img { width: 36px; height: 36px; border-radius: 9px; }
.sticky-cta .sc-name { font-family: var(--serif); font-weight: 700; color: var(--text); line-height: 1.1; }
.sticky-cta .sc-score { display: block; font: 500 .75rem var(--sans); color: var(--muted); }
.sticky-cta .btn { margin-left: auto; padding: .65rem 1rem; font-size: .9rem; width: auto; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* Galeries d'illustrations (créas annonceur cliquables) */
.gallery-block { margin: 1.5rem 0 2.25rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; }
.gallery a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); text-decoration: none !important; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery-block figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; gap: .4rem; } }
