/* ─── Genre landing page ─── */

/* Hero. La règle `.genre-hero.genre-img-*` écrase les `background-image` définis
   dans landing.css pour les cartes portrait — on substitue ici les visuels
   painterly 16:9 générés pour les bandeaux. Les anciennes images restent utilisées
   par `.genre-card` (home, strip "autres genres"). */
.genre-hero.genre-img-fantasy              { background-image: url('/images/genres/heroes/fantasy.webp'); }
.genre-hero.genre-img-romance              { background-image: url('/images/genres/heroes/romance.webp'); }
.genre-hero.genre-img-thriller-psychologique { background-image: url('/images/genres/heroes/thriller-psychologique.webp'); }
.genre-hero.genre-img-science-fiction      { background-image: url('/images/genres/heroes/science-fiction.webp'); }
.genre-hero.genre-img-horreur              { background-image: url('/images/genres/heroes/horreur.webp'); }
.genre-hero.genre-img-enquete-policiere    { background-image: url('/images/genres/heroes/enquete-policiere.webp'); }
.genre-hero.genre-img-espionnage           { background-image: url('/images/genres/heroes/espionnage.webp'); }
.genre-hero.genre-img-aventure-historique  { background-image: url('/images/genres/heroes/aventure-historique.webp'); }
.genre-hero.genre-img-pirates              { background-image: url('/images/genres/heroes/pirates.webp'); }
.genre-hero.genre-img-post-apocalyptique   { background-image: url('/images/genres/heroes/post-apocalyptique.webp'); }
.genre-hero.genre-img-survie               { background-image: url('/images/genres/heroes/survie.webp'); }
.genre-hero.genre-img-erotique             { background-image: url('/images/genres/heroes/erotique.webp'); }

.genre-hero {
    position: relative;
    min-height: 56vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 24px 96px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* L'image est rendue via ::before pour pouvoir l'éclaircir avec filter par thème.
   Les visuels painterly sont naturellement sombres — on compense plus fort en light. */
.genre-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: inherit;
    background-position: inherit;
    filter: brightness(1.18) saturate(1.05);
    z-index: 0;
}

[data-theme="light"] .genre-hero::before {
    filter: brightness(1.7) saturate(0.9);
}

.genre-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%);
    z-index: 0;
}

[data-theme="light"] .genre-hero-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.35) 100%);
}

.genre-hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    opacity: 0;
    transform: translateY(24px);
    animation: slideUp 0.7s ease 0.2s forwards;
}

.genre-hero-title {
    font-size: clamp(2em, 4.4vw, 3.2em);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.genre-hero-subtitle {
    color: rgba(255,255,255,0.92);
    font-size: clamp(0.98em, 1.4vw, 1.1em);
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}

.genre-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.genre-hero .btn-outline {
    border-color: rgba(255,255,255,0.6);
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.genre-hero .btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.18);
}

/* ─── Intro ─── */
.genre-intro {
    padding: 80px 40px;
}

.genre-intro-inner {
    max-width: 720px;
    margin: 0 auto;
}

.genre-intro p {
    color: var(--text-secondary);
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 22px;
}

.genre-intro p:last-child {
    margin-bottom: 0;
}

/* ─── Tropes ─── */
.genre-tropes {
    padding: 80px 40px;
    background: var(--bg-surface);
}

.genre-tropes .section-title,
.genre-tropes .section-subtitle {
    text-align: center;
}

.genre-tropes .section-subtitle {
    margin: 12px auto 40px;
    max-width: 600px;
}

.genre-tropes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.genre-trope-card {
    background: var(--panel);
    border: 1px solid var(--border-faint);
    border-radius: 14px;
    padding: 24px 22px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.genre-trope-card:hover {
    border-color: var(--border);
    transform: translateY(-2px);
}

.genre-trope-card h3 {
    color: var(--text);
    font-size: 1.05em;
    font-weight: 700;
    margin-bottom: 10px;
}

.genre-trope-card p {
    color: var(--text-muted);
    font-size: 0.93em;
    line-height: 1.6;
}

/* ─── Openings ─── */
.genre-openings {
    padding: 80px 40px;
}

.genre-openings .section-title,
.genre-openings .section-subtitle {
    text-align: center;
}

.genre-openings .section-subtitle {
    margin: 12px auto 44px;
    max-width: 600px;
}

.genre-openings-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto;
}

.genre-opening {
    background: var(--panel);
    border: 1px solid var(--border-faint);
    border-radius: 16px;
    padding: 28px;
}

.genre-opening-title {
    color: var(--accent);
    font-size: 0.82em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.genre-opening-narrative {
    color: var(--text-secondary);
    font-size: 1em;
    line-height: 1.75;
    margin-bottom: 18px;
}

.genre-opening-choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.genre-opening-choice {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.92em;
    padding: 10px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-faint);
    border-radius: 10px;
}

.genre-opening-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-bg);
    color: var(--accent);
    font-size: 0.78em;
    font-weight: 700;
    flex-shrink: 0;
}

/* ─── Duo ─── réutilise les classes .duo-label-* et .duo-headline de landing.css */
.genre-duo {
    padding: 80px 40px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.genre-duo .section-eyebrow {
    margin-bottom: 8px;
}

.genre-duo .section-subtitle {
    margin: 12px auto 40px;
    max-width: 680px;
}

.duo-flow {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 960px;
    margin: 0 auto;
    text-align: left;
}

.duo-turn-block {
    background: var(--panel);
    border: 1px solid var(--border-faint);
    border-radius: 12px;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
    align-items: start;
}

.duo-turn-block.duo-turn-pending {
    border-style: dashed;
    animation: duoPulse 2s ease-in-out infinite;
}

.duo-narrative {
    color: var(--text-secondary);
    font-size: 0.92em;
    line-height: 1.6;
    margin: 0;
}

.duo-turn-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.duo-turn-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.duo-action-pending {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.88em;
}

.duo-choices-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.duo-choice {
    color: var(--text-muted);
    font-size: 0.84em;
    padding: 5px 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-faint);
    border-radius: 7px;
    line-height: 1.4;
}

.duo-choice-picked {
    color: var(--accent);
    border-color: var(--accent-border, var(--accent));
    background: var(--accent-bg);
    font-weight: 600;
}

/* Solo section eyebrow layout */
.genre-openings .section-eyebrow,
.genre-openings .duo-headline {
    text-align: center;
}

/* ─── Characters ─── */
.genre-characters {
    padding: 80px 40px;
    background: var(--bg-surface);
    text-align: center;
}

.genre-characters .section-subtitle {
    margin: 12px auto 40px;
    max-width: 620px;
}

/* ─── FAQ ─── */
.genre-faq {
    padding: 80px 40px;
}

.genre-faq .section-title {
    text-align: center;
}

/* Le contenu du FAQ réutilise les classes .seo-faq-* de seo-landing.css */

/* ─── Autres genres ─── */
.genre-other {
    padding: 80px 40px;
    background: var(--bg-surface);
    text-align: center;
}

.genre-other .section-subtitle {
    margin: 12px auto 40px;
    max-width: 620px;
}

.genre-other .genres-showcase {
    max-width: 1100px;
    margin: 0 auto;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .genre-hero { min-height: 48vh; padding: 120px 20px 72px; }
    .genre-tropes-grid { grid-template-columns: repeat(2, 1fr); }
    .duo-turn-block { grid-template-columns: 1fr; gap: 12px; }
    .genre-intro,
    .genre-tropes,
    .genre-openings,
    .genre-duo,
    .genre-characters,
    .genre-faq,
    .genre-other { padding: 60px 24px; }
}

@media (max-width: 600px) {
    .genre-hero-actions { flex-direction: column; align-items: center; }
    .genre-hero-actions .btn-hero { width: 100%; max-width: 300px; }
    .genre-tropes-grid { grid-template-columns: 1fr; }
    .genre-openings-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .genre-hero-content {
        opacity: 1;
        transform: none;
        animation: none;
    }
}
