/* ========================================
   LE ROYAUME DU FOU — Feuille de style
   Thème victorien-steampunk / occulte
   ======================================== */

:root {
    --bg-dark:       #0d0b14;
    --bg-card:       #14111f;
    --bg-nav:        #0a0812;
    --purple-main:   #9c6ef7;
    --purple-light:  #b892ff;
    --purple-dark:   #6040b0;
    --gold:          #c9a84c;
    --gold-light:    #f0c96a;
    --text-main:     #e8e0f0;
    --text-muted:    #8a80a0;
    --text-dim:      #5a5070;
    --border:        #2a2040;
    --border-glow:   rgba(156, 110, 247, 0.3);
    --danger:        #e05555;
    --success:       #55c080;
    --font-title:    'Cinzel', 'Times New Roman', serif;
    --font-body:     'Crimson Pro', 'Georgia', serif;
    --font-ui:       'Inter', 'Segoe UI', sans-serif;
    --radius:        10px;
    --radius-card:   16px;
    --border-gold:   rgba(201,168,76,0.2);
    --border-gold-h: rgba(201,168,76,0.42);
    --shadow-card:   0 6px 36px rgba(0,0,0,0.7), 0 2px 10px rgba(0,0,0,0.4);
    --shadow-glow:   0 0 28px rgba(156,110,247,0.2);
    --gold-glow:     0 0 30px rgba(201,168,76,0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(156,110,247,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(201,168,76,0.04) 0%, transparent 50%);
}

/* === MATERIAL SYMBOLS === */
.material-symbols-sharp {
    font-variation-settings: 'wght' 200, 'FILL' 0, 'GRAD' 0, 'opsz' 24;
    font-size: 1.15em;
    vertical-align: -0.2em;
    user-select: none;
    transition: font-variation-settings 0.3s ease;
    line-height: 1;
}

/* === TYPOGRAPHIE === */
h1, h2, h3, h4, h5 {
    font-family: var(--font-title);
    letter-spacing: 0.05em;
    color: var(--gold-light);
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }

p { margin-bottom: 1rem; }

a { color: var(--purple-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

/* === NAVIGATION === */
.navbar {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-title);
    font-size: 1.3rem;
    color: var(--gold-light);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-brand:hover { color: var(--purple-light); }

.nav-brand .brand-logo {
    height: 2rem;
    width: auto;
    flex-shrink: 0;
    color: var(--gold);
    filter: drop-shadow(0 0 6px rgba(201,168,76,0.45));
    transition: filter 0.2s;
}

.nav-brand:hover .brand-logo {
    filter: drop-shadow(0 0 10px rgba(201,168,76,0.75));
}

/* Wrapper desktop : nav-links + nav-auth côte à côte */
.nav-collapse {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-links > li { position: relative; }

.nav-links a, .nav-links .nav-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: 0.92rem;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.nav-links a:hover, .nav-links .nav-btn:hover {
    background: rgba(156,110,247,0.12);
    color: var(--purple-light);
}

.nav-links a.active {
    background: rgba(156,110,247,0.18);
    color: var(--purple-light);
}

/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background:
        radial-gradient(ellipse at 50% -30%, rgba(201,168,76,0.05) 0%, transparent 70%),
        var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card), 0 0 22px rgba(201,168,76,0.08);
    min-width: 190px;
    padding: 0.4rem;
    padding-top: 0.8rem;
    z-index: 200;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu { display: block; }

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.dropdown-menu a:hover { background: rgba(156,110,247,0.15); color: var(--purple-light); }

.dropdown-caret {
    font-size: 1.1rem;
    margin-left: 2px;
    transition: transform 0.2s;
    vertical-align: -0.2em;
}

.dropdown:hover .dropdown-caret { transform: rotate(180deg); }

/* CTA auth */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-login {
    padding: 0.42rem 1.1rem;
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    background: transparent;
    text-decoration: none;
    transition: all 0.25s;
}

.btn-login:hover { border-color: var(--purple-main); color: var(--purple-light); background: rgba(156,110,247,0.1); }

.btn-register {
    padding: 0.42rem 1.1rem;
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    background: linear-gradient(135deg, var(--purple-dark), #7050c8);
    color: #fff;
    text-decoration: none;
    transition: all 0.25s;
    border: 1px solid var(--purple-main);
    box-shadow: 0 2px 10px rgba(96,64,176,0.38);
}

.btn-register:hover {
    background: linear-gradient(135deg, var(--purple-main), var(--purple-light));
    color: #fff;
    box-shadow: 0 4px 20px rgba(156,110,247,0.48);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-main); border-radius: 2px; transition: all 0.3s; }

/* === CONTAINER & LAYOUT === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-content {
    flex: 1;
    padding: 0 0 4rem;
}

/* === HERO === */
.hero {
    position: relative;
    text-align: center;
    padding: 6rem 1.5rem 5rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(156,110,247,0.12) 0%, transparent 70%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(201,168,76,0.15)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-symbol {
    line-height: 1;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(201,168,76,0.4));
    animation: float 4s ease-in-out infinite;
    color: var(--gold-light);
}

.hero-symbol .brand-logo {
    height: 4rem;
    width: auto;
    color: var(--gold-light);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-family: var(--font-title);
    color: var(--gold-light);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(201,168,76,0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--purple-light);
    font-style: italic;
    margin-bottom: 1.5rem;
    letter-spacing: 0.08em;
}

.hero-desc {
    max-width: 620px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === BOUTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.72rem 1.75rem;
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    line-height: 1;
    position: relative;
}

.btn-primary {
    background: linear-gradient(145deg, var(--purple-dark) 0%, #7850d8 100%);
    color: #fff;
    border: 1px solid rgba(156,110,247,0.5);
    box-shadow: 0 2px 14px rgba(96,64,176,0.45), inset 0 1px 0 rgba(255,255,255,0.09);
}
.btn-primary:hover {
    background: linear-gradient(145deg, var(--purple-main) 0%, var(--purple-light) 100%);
    color: #fff;
    box-shadow: 0 4px 24px rgba(156,110,247,0.5), inset 0 1px 0 rgba(255,255,255,0.13);
    transform: translateY(-1px);
}

.btn-outline {
    background: rgba(201,168,76,0.04);
    color: var(--gold-light);
    border: 1px solid rgba(201,168,76,0.45);
    box-shadow: inset 0 0 18px rgba(201,168,76,0.04);
}
.btn-outline:hover {
    background: rgba(201,168,76,0.08);
    color: var(--gold-light);
    border-color: var(--gold-light);
    box-shadow: 0 0 24px rgba(201,168,76,0.22), inset 0 0 18px rgba(201,168,76,0.06);
    transform: translateY(-1px);
}

.btn-danger {
    background: #5a1a1a;
    color: #ff9090;
    border: 1px solid var(--danger);
}
.btn-danger:hover { background: var(--danger); color: #fff; box-shadow: 0 0 18px rgba(224,85,85,0.35); }

.btn-sm { padding: 0.42rem 1rem; font-size: 0.85rem; letter-spacing: 0.03em; }

/* === CARTES === */
.card {
    background:
        radial-gradient(ellipse at 50% -20%, rgba(201,168,76,0.06) 0%, transparent 65%),
        var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card), inset 0 1px 0 rgba(201,168,76,0.07);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.28s;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%; right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.5), transparent);
    pointer-events: none;
    z-index: 1;
}

.card:hover {
    border-color: var(--border-gold-h);
    box-shadow: var(--shadow-card), var(--gold-glow), inset 0 1px 0 rgba(201,168,76,0.12);
    transform: translateY(-3px);
}

.card-body { padding: 1.4rem; }
.card-header { padding: 1rem 1.4rem; border-bottom: 1px solid var(--border); }
.card-footer { padding: 0.8rem 1.4rem; border-top: 1px solid var(--border); }

/* === GRILLES === */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 1.5rem; }

/* === SECTION TITRES === */
.section-header {
    margin-bottom: 2rem;
}

.section-tag {
    display: inline-block;
    padding: 0.24rem 0.85rem;
    background: rgba(201,168,76,0.07);
    border: 1px solid rgba(201,168,76,0.28);
    border-radius: 6px;
    font-family: var(--font-ui);
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    margin-bottom: 0.6rem;
}

.section-header h2 { margin-bottom: 0.4rem; }
.section-header p { color: var(--text-muted); margin: 0; }

.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
    margin: 3rem 0;
}

/* === BADGE VOIE === */
.pathway-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.68rem;
    border-radius: 6px;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(201,168,76,0.07);
    border: 1px solid rgba(201,168,76,0.28);
    color: var(--gold-light);
    letter-spacing: 0.02em;
}

/* === FORMULAIRES === */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: var(--radius);
    color: var(--text-main);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.25);
}

.form-control:focus {
    border-color: var(--purple-main);
    box-shadow: 0 0 0 3px rgba(156,110,247,0.15), inset 0 2px 6px rgba(0,0,0,0.2);
}

.form-control::placeholder { color: var(--text-dim); }

textarea.form-control { resize: vertical; min-height: 120px; }

select.form-control { cursor: pointer; }
select.form-control option, select option {
    background: #14111f;
    color: #e8e0f0;
}

/* Auth card */
.auth-container {
    max-width: 440px;
    margin: 0 auto;
    padding-top: 2rem;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.auth-tab {
    flex: 1;
    padding: 0.8rem;
    text-align: center;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
}

.auth-tab.active {
    color: var(--purple-light);
    border-bottom-color: var(--purple-main);
}

.auth-form { display: none; }
.auth-form.active { display: block; }

/* === ALERTES === */
.alert {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.alert-danger { background: rgba(224,85,85,0.1); border: 1px solid rgba(224,85,85,0.3); color: #f09090; }
.alert-success { background: rgba(85,192,128,0.1); border: 1px solid rgba(85,192,128,0.3); color: #80e0a0; }
.alert-info { background: rgba(110,174,247,0.1); border: 1px solid rgba(110,174,247,0.3); color: #90c0f0; }

/* === WIKI === */
.wiki-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.wiki-layout { display: flex; gap: 2rem; align-items: flex-start; }

.wiki-nav-block {
    background:
        radial-gradient(ellipse at 50% -30%, rgba(201,168,76,0.05) 0%, transparent 65%),
        var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-card);
    overflow: hidden;
    position: sticky;
    top: 80px;
    box-shadow: var(--shadow-card), inset 0 1px 0 rgba(201,168,76,0.07);
}

.wiki-nav-title {
    padding: 0.8rem 1rem;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border);
}

.wiki-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.2s;
}

.wiki-nav-link:hover { color: var(--purple-light); background: rgba(156,110,247,0.07); }
.wiki-nav-link.active { color: var(--purple-light); border-left-color: var(--purple-main); background: rgba(156,110,247,0.1); }

.wiki-content { flex: 1; min-width: 0; }

/* Pathway card */
.pathway-card {
    background:
        radial-gradient(ellipse at 50% -20%, rgba(201,168,76,0.06) 0%, transparent 65%),
        var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-card);
    padding: 1.4rem;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.28s;
    cursor: default;
    box-shadow: var(--shadow-card), inset 0 1px 0 rgba(201,168,76,0.07);
    position: relative;
}

.pathway-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%; right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.5), transparent);
    pointer-events: none;
    z-index: 1;
}

.pathway-card:hover {
    border-color: var(--border-gold-h);
    box-shadow: var(--shadow-card), var(--gold-glow), inset 0 1px 0 rgba(201,168,76,0.12);
    transform: translateY(-3px);
}

.pathway-number {
    font-family: var(--font-title);
    font-size: 2rem;
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.pathway-name {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.pathway-seq {
    list-style: none;
    margin-top: 0.8rem;
    font-family: var(--font-ui);
    font-size: 0.82rem;
}

.pathway-seq li {
    padding: 0.25rem 0;
    color: var(--text-muted);
    border-bottom: 1px dashed rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pathway-seq li:last-child { border-bottom: none; color: var(--gold-light); font-weight: 600; }

.pathway-seq li::before {
    content: "";
    display: block;
    width: 5px;
    height: 5px;
    background: var(--purple-main);
    transform: rotate(45deg);
    flex-shrink: 0;
    margin-top: 3px;
}
.pathway-seq li:last-child::before { background: var(--gold); }

/* --- Pathway sequence accordion (wiki) --- */
.pathway-seq-accordion {
    margin-top: 0.8rem;
    font-family: var(--font-ui);
    font-size: 0.82rem;
}
.psa-item {
    border-bottom: 1px dashed rgba(255,255,255,0.05);
}
.psa-item:last-child {
    border-bottom: none;
}
details.psa-item > summary {
    padding: 0.3rem 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    list-style: none;
    user-select: none;
    position: relative;
}
details.psa-item > summary::-webkit-details-marker { display: none; }
details.psa-item > summary::before {
    content: "";
    display: block;
    width: 5px;
    height: 5px;
    background: var(--dot, var(--border));
    transform: rotate(45deg);
    flex-shrink: 0;
}
.psa-plain {
    padding: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.psa-plain::before {
    content: "";
    display: block;
    width: 5px;
    height: 5px;
    background: var(--dot, var(--border));
    transform: rotate(45deg);
    flex-shrink: 0;
}
.psa-num {
    font-size: 0.68rem;
    min-width: 1.1rem;
    text-align: right;
    flex-shrink: 0;
    opacity: 0.8;
}
.psa-name {
    flex: 1;
    color: var(--text-muted);
}
details.psa-item[open] > summary .psa-name,
details.psa-item[open] > summary .psa-num {
    color: var(--text);
    opacity: 1;
}
.psa-arrow {
    font-size: 0.65rem;
    transition: transform 0.2s;
    flex-shrink: 0;
    opacity: 0.5;
}
details.psa-item[open] > summary .psa-arrow {
    transform: rotate(90deg);
    opacity: 1;
}
.psa-body {
    padding: 0.5rem 0 0.75rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.psa-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}
.psa-section {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.psa-section-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 600;
    opacity: 0.85;
}

/* --- Pathway card hint --- */
.pathway-card-hint {
    margin-top: 0.75rem;
    font-size: 0.72rem;
    font-family: var(--font-ui);
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.pathway-card:hover .pathway-card-hint { opacity: 0.8; }

/* --- Pathway modal --- */
body.modal-open { overflow: hidden; }

.pathway-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.pathway-modal[hidden] { display: none; }

.pathway-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(3px);
}

.pathway-modal-panel {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-card);
    width: 100%;
    max-width: 760px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0,0,0,0.7), 0 0 0 1px rgba(201,168,76,0.06);
    overflow: hidden;
}

.pathway-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    flex-shrink: 0;
}

.pathway-modal-name {
    font-family: var(--font-title);
    font-size: 1.4rem;
    margin: 0 0 0.2rem;
    line-height: 1.2;
}

.pathway-modal-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
}

.pathway-modal-close {
    flex-shrink: 0;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    margin-top: 0.1rem;
}
.pathway-modal-close:hover {
    background: rgba(255,255,255,0.07);
    color: var(--text);
}
.pathway-modal-close .material-symbols-sharp { font-size: 1.1rem; }

.pathway-modal-inner {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Onglets verticaux */
.seq-tabs {
    width: 9.5rem;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 0.4rem 0;
    scrollbar-width: thin;
}

.seq-tab {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-ui);
    transition: background 0.15s;
    border-left: 2px solid transparent;
    color: var(--text-muted);
    width: 100%;
    position: relative;
}
.seq-tab:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text);
}
.seq-tab.active {
    background: rgba(255,255,255,0.05);
    border-left-color: var(--tab-active-color, var(--gold));
    color: var(--text);
}

.seq-tab-num {
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 1rem;
    text-align: right;
    flex-shrink: 0;
}

.seq-tab-name {
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.seq-tab-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.6;
}

/* Panneau de contenu */
.pathway-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.4rem;
    scrollbar-width: thin;
}

.seq-panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.seq-panel-num {
    font-family: var(--font-title);
    font-size: 2rem;
    line-height: 1;
    border: 2px solid;
    border-radius: 6px;
    padding: 0.1rem 0.5rem;
    flex-shrink: 0;
    opacity: 0.9;
}

.seq-panel-name {
    font-family: var(--font-title);
    font-size: 1.15rem;
    flex: 1;
}

.seq-panel-badge {
    font-size: 0.68rem;
    font-family: var(--font-ui);
    border: 1px solid;
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    flex-shrink: 0;
    opacity: 0.8;
}

.seq-panel-empty {
    font-size: 0.88rem;
    color: var(--text-dim);
    font-style: italic;
    margin: 0;
}

.seq-detail-block {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.seq-detail-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.seq-detail-label {
    font-size: 0.72rem;
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 600;
    margin-bottom: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.seq-detail-label .material-symbols-sharp { font-size: 0.9rem; }

.seq-detail-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.65;
}

/* Pagination wiki */
.wiki-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1.75rem;
    margin-bottom: 0.25rem;
    font-family: var(--font-ui);
}

.wiki-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    height: 2.2rem;
    padding: 0 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    background: var(--bg-card);
}
.wiki-page-btn:hover {
    background: rgba(201,168,76,0.08);
    border-color: var(--border-gold);
    color: var(--gold-light);
}
.wiki-page-btn.active {
    background: rgba(201,168,76,0.12);
    border-color: var(--gold);
    color: var(--gold-light);
    font-weight: 600;
    pointer-events: none;
}
.wiki-page-btn .material-symbols-sharp { font-size: 1rem; }

/* Responsive modal */
@media (max-width: 600px) {
    .pathway-modal-panel { max-height: 95vh; }
    .pathway-modal-inner { flex-direction: column; }
    .seq-tabs {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 0;
        flex-shrink: 0;
    }
    .seq-tab {
        flex-direction: column;
        gap: 0.1rem;
        padding: 0.5rem 0.6rem;
        border-left: none;
        border-bottom: 2px solid transparent;
        flex-shrink: 0;
    }
    .seq-tab.active { border-bottom-color: var(--tab-active-color, var(--gold)); border-left-color: transparent; }
    .seq-tab-name { display: none; }
    .seq-tab-num { font-size: 0.75rem; min-width: unset; }
}

/* === BLOG === */
.blog-card {
    background:
        radial-gradient(ellipse at 50% -20%, rgba(201,168,76,0.06) 0%, transparent 65%),
        var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.28s;
    box-shadow: var(--shadow-card), inset 0 1px 0 rgba(201,168,76,0.07);
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%; right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.5), transparent);
    pointer-events: none;
    z-index: 1;
}

.blog-card:hover {
    border-color: var(--border-gold-h);
    box-shadow: var(--shadow-card), var(--gold-glow), inset 0 1px 0 rgba(201,168,76,0.12);
    transform: translateY(-3px);
}

.blog-card-body { padding: 1.4rem; }

.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.meta-author {
    font-family: var(--font-ui);
    font-size: 0.83rem;
    color: var(--purple-light);
    font-weight: 500;
}

.meta-date {
    font-family: var(--font-ui);
    font-size: 0.83rem;
    color: var(--text-dim);
}

.blog-title {
    font-size: 1.25rem;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.blog-title:hover { color: var(--purple-light); }

.blog-excerpt { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* === PROFIL === */
.profile-header {
    background:
        radial-gradient(ellipse at 50% -20%, rgba(201,168,76,0.07) 0%, transparent 65%),
        var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-card);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card), inset 0 1px 0 rgba(201,168,76,0.08);
    position: relative;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%; right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.55), transparent);
    pointer-events: none;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-dark), var(--bg-dark));
    border: 3px solid var(--purple-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    font-family: var(--font-title);
    color: var(--purple-light);
}

.profile-info h2 { margin-bottom: 0.25rem; }
.profile-info p { color: var(--text-muted); margin: 0; font-size: 0.9rem; }

/* === FOOTER === */
footer {
    background: var(--bg-nav);
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.6rem;
    font-family: var(--font-title);
    color: var(--gold-light);
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.footer-logo .brand-logo {
    height: 1.5rem;
    width: auto;
    flex-shrink: 0;
    color: var(--gold-light);
}

.footer-text {
    color: var(--text-dim);
    font-size: 0.85rem;
    font-family: var(--font-ui);
}

.footer-text em { color: var(--purple-light); font-style: italic; }

/* === LANGUAGE SWITCHER === */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-right: 0.5rem;
}

.lang-sep {
    color: var(--border);
    font-size: 0.8rem;
    padding: 0 0.05rem;
}

.lang-btn {
    font-size: 0.72rem;
    font-family: var(--font-ui);
    font-weight: 700;
    padding: 0.18rem 0.42rem;
    border-radius: 3px;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    letter-spacing: 0.05em;
}

.lang-btn:hover { color: var(--text-main); }
.lang-btn.active {
    background: rgba(156,110,247,0.15);
    color: var(--purple-light);
}

/* Badge "FR" affiché quand la traduction EN est absente */
.no-translation-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: var(--radius);
    padding: 0.55rem 1rem;
    font-size: 0.84rem;
    font-family: var(--font-ui);
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-links {
    color: var(--text-dim);
    font-size: 0.82rem;
    font-family: var(--font-ui);
    margin: 0.6rem 0 0;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--purple-light); }

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0e0b1a;
    border-top: 1px solid var(--border);
    z-index: 9000;
    box-shadow: 0 -6px 32px rgba(0,0,0,0.5);
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cookie-banner-text { flex: 1; }

.cookie-banner-text strong {
    color: var(--text-main);
    font-family: var(--font-ui);
    font-size: 0.95rem;
}

.cookie-banner-text p {
    color: var(--text-muted);
    font-size: 0.84rem;
    margin: 0.3rem 0 0;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--purple-light);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--purple-main);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 0.55rem 1.2rem;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-cookie-accept:hover { background: var(--purple-light); }

.btn-cookie-essential {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.55rem 1.2rem;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.btn-cookie-essential:hover {
    border-color: var(--text-muted);
    color: var(--text-main);
}

@media (max-width: 640px) {
    .cookie-banner-inner {
        flex-direction: column;
        gap: 0.9rem;
        padding: 1rem;
    }
    .cookie-banner-actions { width: 100%; }
    .btn-cookie-accept,
    .btn-cookie-essential { flex: 1; text-align: center; }
}

/* === FEATURE ICONS === */
.feature-icon-wrap {
    width: 66px;
    height: 66px;
    margin: 0 auto 1.7rem;
    transform: rotate(45deg);
    background: linear-gradient(135deg, rgba(156,110,247,0.12) 0%, rgba(201,168,76,0.08) 100%);
    border: 1px solid rgba(201,168,76,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 5px rgba(201,168,76,0.05),
        0 0 20px rgba(201,168,76,0.12);
    transition: all 0.35s ease;
}

.card:hover .feature-icon-wrap {
    border-color: rgba(201,168,76,0.8);
    background: linear-gradient(135deg, rgba(156,110,247,0.18) 0%, rgba(201,168,76,0.14) 100%);
    box-shadow:
        0 0 0 5px rgba(201,168,76,0.1),
        0 0 30px rgba(201,168,76,0.25);
}

.feature-icon-wrap .material-symbols-sharp {
    transform: rotate(-45deg);
    font-size: 1.65rem;
    color: var(--gold-light);
    filter: drop-shadow(0 0 6px rgba(201,168,76,0.4));
    font-variation-settings: 'wght' 200, 'FILL' 0, 'GRAD' 0, 'opsz' 48;
    transition: font-variation-settings 0.35s ease, filter 0.35s ease;
    vertical-align: 0;
}

.card:hover .feature-icon-wrap .material-symbols-sharp {
    font-variation-settings: 'wght' 200, 'FILL' 1, 'GRAD' 0, 'opsz' 48;
    filter: drop-shadow(0 0 10px rgba(201,168,76,0.6));
}

/* === ORNEMENTS === */
.ornament {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: var(--gold);
    font-size: 1.1rem;
    margin: 2rem 0;
    opacity: 0.4;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    /* Navbar */
    .navbar { padding: 0 1rem; }
    .nav-brand { font-size: 1.1rem; }
    .nav-collapse { display: none; }
    .hamburger { display: flex; }

    .nav-links li {
        width: 100%;
        margin: 0.25rem 0;
    }

    /* Panneau mobile unifié */
    .nav-collapse.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 65px;
        left: 0; right: 0;
        background: var(--bg-nav);
        border-bottom: 1px solid var(--border);
        padding: 0.6rem 0.75rem 0.75rem;
        gap: 0;
        z-index: 99;
        box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    }

    /* Nav links en colonne */
    .nav-collapse.open .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0.1rem;
    }

    .nav-collapse.open .nav-links a,
    .nav-collapse.open .nav-links .nav-btn {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 0.85rem 1.1rem;
        border-radius: var(--radius);
        justify-content: center;
        font-size: 1rem;
        letter-spacing: 0.03em;
        background: linear-gradient(135deg, rgba(30,20,55,0.7) 0%, rgba(18,12,38,0.5) 100%);
        border: 1px solid rgba(156,110,247,0.1);
        color: var(--text-main);
        transition: background 0.2s, border-color 0.2s, color 0.2s;
        box-sizing: border-box;
    }

    .nav-collapse.open .nav-links a:hover,
    .nav-collapse.open .nav-links a.active,
    .nav-collapse.open .nav-links .nav-btn:hover {
        background: linear-gradient(135deg, rgba(50,30,90,0.85) 0%, rgba(30,15,65,0.7) 100%);
        border-color: rgba(156,110,247,0.3);
        color: var(--purple-light);
    }

    .nav-collapse.open .nav-links a.active {
        border-color: rgba(201,168,76,0.3);
        background: linear-gradient(135deg, rgba(40,28,70,0.9) 0%, rgba(25,16,52,0.75) 100%);
        color: var(--gold-light);
    }

    /* Neutraliser le :hover CSS sur mobile — seul .dropdown.open contrôle l'ouverture */
    .dropdown:hover .dropdown-menu { display: none; }
    .dropdown:hover .dropdown-caret { transform: none; }
    .dropdown.open .dropdown-menu { display: block; }
    .dropdown.open .dropdown-caret { transform: rotate(180deg); }

    /* Dropdown Wiki en mobile : statique sous le bouton */
    .nav-collapse.open .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid rgba(201,168,76,0.22);
        border-radius: 0;
        background: transparent;
        padding: 0.2rem 0 0.2rem 0.6rem;
        margin-left: 1rem;
        min-width: unset;
    }

    .nav-collapse.open .dropdown-menu a {
        padding: 0.45rem 0.7rem;
        border-radius: var(--radius);
        font-size: 0.88rem;
    }

    /* Boutons auth en pied de panneau — pleine largeur sur mobile */
    .nav-collapse.open .nav-auth {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 0 0.25rem;
        border-top: 1px solid var(--border);
        margin-top: 0.5rem;
    }

    .nav-collapse.open .nav-auth .btn-login,
    .nav-collapse.open .nav-auth .btn-register {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.65rem 1rem;
        border-radius: var(--radius);
        font-size: 0.95rem;
        letter-spacing: 0.04em;
    }

    /* Connexion : bleu nuit très sombre avec gradient bleu */
    .nav-collapse.open .nav-auth .btn-login {
        background: linear-gradient(135deg, #0a0e1a 0%, #0d1730 50%, #111e3a 100%);
        border: 1px solid rgba(80, 130, 230, 0.35);
        color: #a8c4f0;
        box-shadow: inset 0 1px 0 rgba(100,160,255,0.1), 0 2px 12px rgba(10,20,50,0.7);
    }

    .nav-collapse.open .nav-auth .btn-login:hover {
        background: linear-gradient(135deg, #0d1530 0%, #112040 50%, #162850 100%);
        border-color: rgba(100,160,255,0.55);
        color: #c8dcff;
        box-shadow: inset 0 1px 0 rgba(120,180,255,0.15), 0 0 18px rgba(60,120,255,0.2);
    }

    /* Inscription : bleu profond légèrement plus vif */
    .nav-collapse.open .nav-auth .btn-register {
        background: linear-gradient(135deg, #0e1525 0%, #131e3d 50%, #172348 100%);
        border: 1px solid rgba(100,150,240,0.4);
        color: #b4ccf5;
        box-shadow: inset 0 1px 0 rgba(120,170,255,0.12), 0 2px 14px rgba(10,20,60,0.75);
    }

    .nav-collapse.open .nav-auth .btn-register:hover {
        background: linear-gradient(135deg, #111c35 0%, #162540 50%, #1c2f55 100%);
        border-color: rgba(130,180,255,0.6);
        color: #d0e2ff;
        box-shadow: inset 0 1px 0 rgba(140,190,255,0.18), 0 0 22px rgba(70,130,255,0.25);
    }

    /* Autres layouts */
    .wiki-layout { flex-direction: column; }
    .wiki-sidebar { width: 100%; }
    .wiki-nav-block { position: static; }

    .profile-header { flex-direction: column; text-align: center; }

    .hero { padding: 4rem 1rem 3rem; }

    .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* === COMMENTAIRES === */
.comments-section {
    margin-top: 2rem;
}

.comments-title {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-gold);
}
.comments-title .material-symbols-sharp { font-size: 1.2rem; }
.comments-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.35rem;
    background: rgba(201,168,76,0.15);
    color: var(--gold);
    border-radius: 10px;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 2rem;
}

.comment-item {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.comment-avatar {
    flex-shrink: 0;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-dark), var(--purple-main));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(156,110,247,0.3);
}

.comment-body {
    flex: 1;
    min-width: 0;
    background: rgba(20,16,36,0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 0.75rem 1rem;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}
.comment-author {
    font-family: var(--font-ui);
    font-size: 0.88rem;
    color: var(--text-main);
}
.comment-date {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-left: auto;
}

.comment-content {
    font-family: var(--font-body);
    font-size: 0.93rem;
    color: var(--text-main);
    line-height: 1.65;
    word-break: break-word;
}

.comment-delete-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    transition: color 0.2s;
}
.comment-delete-btn:hover { color: #e05a5a; }
.comment-delete-btn .material-symbols-sharp { font-size: 0.9rem; }

.comment-form-wrap {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.comment-form { flex: 1; }

.comment-textarea {
    width: 100%;
    background: rgba(20,16,36,0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.6;
    padding: 0.7rem 0.9rem;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.comment-textarea:focus {
    outline: none;
    border-color: var(--purple-main);
}
.comment-textarea::placeholder { color: var(--text-dim); }

/* === LIKES / FAVORIS === */
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    line-height: 1;
}
.like-btn .material-symbols-sharp { font-size: 1.15rem; transition: transform 0.2s; }
.like-btn:hover {
    border-color: rgba(224, 90, 120, 0.5);
    color: #e05a78;
    background: rgba(224, 90, 120, 0.06);
}
.like-btn.liked {
    border-color: rgba(224, 90, 120, 0.45);
    color: #e05a78;
    background: rgba(224, 90, 120, 0.08);
}
.like-btn.liked .material-symbols-sharp { transform: scale(1.15); }
.like-btn:disabled { opacity: 0.6; cursor: wait; }

.like-btn-sm {
    padding: 0.3rem 0.65rem;
    font-size: 0.82rem;
}
.like-btn-sm .material-symbols-sharp { font-size: 1rem; }

.like-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    color: var(--text-dim);
}
.like-count-badge .material-symbols-sharp { font-size: 0.95rem; color: rgba(224, 90, 120, 0.6); }

/* === PROSE (rendu Markdown dans les articles) === */
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    font-family: var(--font-title);
    color: var(--gold-light);
    margin: 1.5rem 0 0.6rem;
    line-height: 1.3;
}
.prose h2 { font-size: 1.4rem; border-bottom: 1px solid var(--border-gold); padding-bottom: 0.4rem; }
.prose h3 { font-size: 1.15rem; }
.prose p { margin: 0.75rem 0; }
.prose ul, .prose ol { padding-left: 1.5rem; margin: 0.75rem 0; }
.prose li { margin: 0.3rem 0; }
.prose blockquote {
    border-left: 3px solid var(--purple-main);
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background: rgba(156,110,247,0.06);
    color: var(--text-muted);
    font-style: italic;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.prose code {
    background: rgba(156,110,247,0.12);
    color: var(--purple-light);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.88em;
    font-family: 'Courier New', monospace;
}
.prose pre {
    background: #0a0812;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin: 1rem 0;
}
.prose pre code { background: none; padding: 0; color: var(--text-main); font-size: 0.9rem; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.prose a { color: var(--purple-light); text-decoration: underline; }
.prose a:hover { color: var(--gold-light); }
.prose img { max-width: 100%; border-radius: var(--radius); margin: 0.5rem 0; }
.prose strong { color: var(--text-main); font-weight: 600; }
.prose del { color: var(--text-dim); }

/* === UTILITIES === */
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold-light); }
.text-purple { color: var(--purple-light); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.w-full { width: 100%; display: block; text-align: center; }
