/* ============================================================
   bdsm-guide.net — Thème sombre Bootstrap 5.3
   Palette : Noir profond, Bordeaux, Or
   Typos : Playfair Display (titres) + Inter (corps)
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --bg-primary: #0a0a0c;
    --bg-secondary: #141418;
    --bg-card: #1a1a20;
    --bg-card-hover: #22222a;
    --border-color: #2a2a35;
    --bordeaux: #8b1a2b;
    --bordeaux-light: #b22234;
    --bordeaux-dark: #5c101c;
    --gold: #c9a84c;
    --gold-light: #e0c878;
    --gold-dark: #a68a3e;
    --text-primary: #e8e6e3;
    --text-secondary: #a8a6a3;
    --text-muted: #6a6865;
    --link-color: #c9a84c;
    --link-hover: #e0c878;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --nav-height: 64px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--nav-height);
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ---- Age Gate ---- */
.age-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: opacity 0.5s ease;
}
.age-gate-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.age-gate-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}
.age-gate-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.age-gate-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}
.age-gate-buttons { display: flex; flex-direction: column; align-items: center; }

/* ---- Navigation ---- */
#mainNav {
    background: rgba(10, 10, 12, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    height: var(--nav-height);
    transition: background 0.3s ease;
}
#mainNav.scrolled { background: rgba(10, 10, 12, 0.98); }
.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--text-primary) !important;
    letter-spacing: 0.5px;
}
.brand-icon { color: var(--gold); margin-right: 0.4rem; font-size: 1.2rem; }
.brand-text strong { color: var(--gold); font-weight: 700; }
.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    transition: color 0.2s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--gold) !important; }
.dropdown-menu-dark {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.dropdown-menu-dark .dropdown-item {
    color: var(--text-secondary);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}
.dropdown-menu-dark .dropdown-item:hover {
    background: var(--bg-card-hover);
    color: var(--gold);
}
.dropdown-menu-dark .dropdown-divider { border-color: var(--border-color); }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.3;
}
h1 { font-size: 2.75rem; font-weight: 700; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; font-weight: 600; margin-top: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--gold); }
a { color: var(--link-color); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--link-hover); }
strong { color: var(--gold-light); font-weight: 600; }
p { margin-bottom: 1.25rem; color: var(--text-secondary); }
.lead { font-size: 1.2rem; font-weight: 400; color: var(--text-primary); }
.chapo {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    border-left: 3px solid var(--bordeaux);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    font-style: italic;
}

/* ---- Buttons ---- */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #1a1a1a;
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.2);
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
}
.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: transparent;
    font-weight: 600;
    padding: 0.65rem 1.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-outline-gold:hover {
    background: var(--gold);
    color: #1a1a1a;
}
.btn-bordeaux {
    background: var(--bordeaux);
    color: var(--text-primary);
    border: none;
    font-weight: 600;
    padding: 0.65rem 1.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-bordeaux:hover { background: var(--bordeaux-light); color: #fff; }

/* ---- Hero Section ---- */
.hero {
    padding: 5rem 0 3rem;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}
.hero h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}
.hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    font-style: italic;
}
.hero-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    object-fit: cover;
    margin-bottom: 1rem;
}

/* ---- Cards ---- */
.card-dark {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    height: 100%;
}
.card-dark:hover {
    background: var(--bg-card-hover);
    border-color: var(--gold-dark);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}
.card-dark h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin: 0 0 0.75rem;
    color: var(--text-primary);
}
.card-dark p { font-size: 0.95rem; margin-bottom: 0; }
.card-dark .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}
.card-link { text-decoration: none; color: inherit; display: block; }

/* ---- Silo Section Headers ---- */
.silo-header {
    padding: 4rem 0 2rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
    border-bottom: 1px solid var(--border-color);
}
.silo-header h1 { margin-bottom: 0.5rem; }
.silo-header .silo-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ---- Article Content ---- */
.article-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem 1rem;
}
.article-content h2 {
    font-family: var(--font-heading);
    color: var(--text-primary);
}
.article-content h3 {
    color: var(--gold);
}
.article-content blockquote {
    border-left: 3px solid var(--bordeaux);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--bg-card);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-secondary);
}
.article-content .encart {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
}
.article-content .encart-title {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}
.article-content .vincent-note {
    background: linear-gradient(135deg, rgba(139, 26, 43, 0.15), rgba(139, 26, 43, 0.05));
    border: 1px solid rgba(139, 26, 43, 0.25);
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
    font-size: 0.95rem;
}
.article-content .vincent-note strong { color: var(--gold-light); }

/* Article meta */
.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.article-meta .reading-time::before { content: '⏱ '; }
.article-meta .date::before { content: '📅 '; }
.article-meta .category::before { content: '📂 '; }

/* Author box */
.author-box {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 3rem;
}
.author-box img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--gold);
}
.author-box .author-name { font-family: var(--font-heading); color: var(--gold); font-weight: 600; }
.author-box .author-bio { font-size: 0.9rem; color: var(--text-secondary); margin: 0.25rem 0 0; }

/* ---- Table of Contents ---- */
.toc {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}
.toc-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
}
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc ul li { margin-bottom: 0.35rem; }
.toc ul li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
.toc ul li a:hover { color: var(--gold); }

/* ---- Glossary ---- */
.glossary-letter {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--gold);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin: 2.5rem 0 1.5rem;
    scroll-margin-top: 80px;
}
.glossary-term {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(42,42,53,0.5);
}
.glossary-term dt {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}
.glossary-term dd {
    color: var(--text-secondary);
    margin-left: 0;
    font-size: 0.95rem;
}
.glossary-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 2rem;
}
.glossary-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.glossary-nav a:hover {
    background: var(--bg-card-hover);
    color: var(--gold);
    border-color: var(--gold-dark);
}

/* ---- Quiz ---- */
.quiz-container { max-width: 700px; margin: 0 auto; padding: 2rem 1rem; }
.quiz-question {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}
.quiz-question h3 { margin-top: 0; font-size: 1.2rem; color: var(--text-primary); }
.quiz-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}
.quiz-option:hover { border-color: var(--gold-dark); color: var(--text-primary); }
.quiz-option.selected { border-color: var(--gold); background: rgba(201, 168, 76, 0.1); color: var(--gold); }
.quiz-result {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    display: none;
}
.quiz-result.show { display: block; }
.quiz-result h2 { color: var(--gold); }
.quiz-result .recommendations { margin-top: 2rem; text-align: left; }

/* ---- Level Badges ---- */
.level-badge { font-size: 0.85rem; font-weight: 500; }
.level-debutant { color: #7eb8da; }
.level-initie { color: #c9a84c; }
.level-pratiquant { color: #b22234; }
.level-expert { color: #8b5cf6; }

/* ---- CTA / Newsletter ---- */
.cta-newsletter {
    background: linear-gradient(135deg, var(--bordeaux-dark), var(--bg-card));
    border: 1px solid rgba(139, 26, 43, 0.3);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    margin: 3rem 0;
}
.cta-newsletter h3 { margin-top: 0; color: var(--gold); }
.cta-newsletter p { color: var(--text-secondary); max-width: 600px; margin: 0 auto 1.5rem; }
.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 450px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}
.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 220px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
}
.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--gold);
}

/* ---- Footer ---- */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}
.footer-brand { font-family: var(--font-heading); color: var(--gold); margin-bottom: 1rem; }
.footer-text { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-signature { color: var(--text-muted); font-size: 0.85rem; font-style: italic; }
.site-footer h6 {
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.25rem; }
.footer-disclaimer { font-size: 0.8rem !important; opacity: 0.6; }

/* ---- Breadcrumb ---- */
.breadcrumb-dark {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 0;
    font-size: 0.9rem;
}
.breadcrumb-dark .breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-dark .breadcrumb-item a:hover { color: var(--gold); }
.breadcrumb-dark .breadcrumb-item.active { color: var(--text-secondary); }
.breadcrumb-dark .breadcrumb-item+.breadcrumb-item::before { color: var(--text-muted); }

/* ---- Blog Index ---- */
.blog-list { max-width: 900px; margin: 0 auto; padding: 2rem 0; }
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}
.blog-card:hover {
    border-color: var(--gold-dark);
    transform: translateX(4px);
}
.blog-card h3 { margin-top: 0; font-size: 1.35rem; }
.blog-card h3 a { color: var(--text-primary); }
.blog-card h3 a:hover { color: var(--gold); }
.blog-card .blog-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.blog-card .blog-excerpt { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 0; }

/* ---- Home Page ---- */
.home-silos {
    padding: 4rem 0;
}
.home-silo-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}
.vincent-intro {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
}
.vincent-intro img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    flex-shrink: 0;
}
.vincent-intro .intro-text { font-size: 1.05rem; line-height: 1.7; }
.vincent-intro .intro-name { font-family: var(--font-heading); color: var(--gold); font-size: 1.2rem; }

/* ---- Sidebar (article pages) ---- */
.article-sidebar { position: sticky; top: 80px; }
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.sidebar-card h4 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}
.sidebar-card ul { list-style: none; padding: 0; margin: 0; }
.sidebar-card ul li { margin-bottom: 0.4rem; }
.sidebar-card ul li a { color: var(--text-secondary); font-size: 0.9rem; }
.sidebar-card ul li a:hover { color: var(--gold); }

/* ---- Utils ---- */
.section-divider { border-color: var(--border-color); margin: 3rem 0; opacity: 0.5; }
.text-gold { color: var(--gold) !important; }
.text-bordeaux { color: var(--bordeaux-light) !important; }
.text-muted-custom { color: var(--text-muted) !important; }
.fs-sm { font-size: 0.9rem; }

/* ---- Featured Images ---- */
.featured-img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

/* ---- Animation ---- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    .hero { padding: 3rem 0 2rem; }
    .hero h1 { font-size: 2.25rem; }
    .article-content { padding: 2rem 1rem; }
    #mainNav { height: auto; }
    .navbar-collapse {
        background: var(--bg-primary);
        padding: 1rem;
        border-radius: 0 0 12px 12px;
        border: 1px solid var(--border-color);
        border-top: none;
    }
}
@media (max-width: 767.98px) {
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.5rem; }
    .chapo { font-size: 1.05rem; }
    .age-gate-card { padding: 2rem 1.5rem; }
    .vincent-intro { flex-direction: column; text-align: center; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input[type="email"] { width: 100%; }
}

/* ---- Print (for PDF downloads) ---- */
@media print {
    #mainNav, .site-footer, .age-gate-overlay, .cta-newsletter, .article-sidebar { display: none !important; }
    body { background: #fff; color: #000; padding-top: 0; }
    .article-content { max-width: 100%; }
}
.article-hero-img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 12px; margin-bottom: 2rem; border: 1px solid var(--border-color); }
