/* ============================================
   MyDevelopement — Design System
   Thème sombre, accent émeraude
   ============================================ */

:root {
    /* Couleurs de base */
    --bg-base: #0a0c10;
    --bg-elevated: #12151c;
    --bg-card: #161b22;
    --bg-card-hover: #1c2128;
    
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.15);
    
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    
    /* Accent — émeraude / tech */
    --accent: #00c896;
    --accent-hover: #00e0a8;
    --accent-muted: rgba(0, 200, 150, 0.15);
    --accent-glow: rgba(0, 200, 150, 0.25);
    
    --primary: var(--accent);
    --success: #3fb950;
    --warning: #d29922;
    --danger: #f85149;
    --info: #58a6ff;
    
    /* Ombres */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--accent-glow);
    
    /* Typo */
    --font-sans: 'Outfit', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-pill: 9999px;
    
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.35s ease;
}

/* Reset & base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Background subtil */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 200, 150, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(0, 200, 150, 0.04), transparent);
    pointer-events: none;
    z-index: 0;
}

/* ========== Layout ========== */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.main-content {
    min-height: calc(100vh - 72px);
    padding-top: 72px;
    padding-bottom: 4rem;
}

/* ========== Navigation ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 0;
    transition: var(--transition-base);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-brand a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    transition: var(--transition-fast);
}

.nav-brand a:hover {
    color: var(--accent);
}

.nav-brand i {
    color: var(--accent);
    font-size: 1.35rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-menu a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-menu a.active {
    color: var(--accent);
    background: var(--accent-muted);
}

.lang-switcher {
    display: flex;
    gap: 4px;
}

.lang-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition-fast);
}

.lang-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.lang-btn.active {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-muted);
}

/* Lang dropdown (10 langues + drapeaux) */
.lang-dropdown {
    position: relative;
}

.lang-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-sans);
}

.lang-dropdown-trigger:hover {
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
}

.lang-dropdown.open .lang-dropdown-trigger {
    border-color: var(--accent);
    background: var(--accent-muted);
}

.lang-dropdown-trigger .lang-flag,
.lang-option .lang-flag {
    display: inline-block;
    width: 1.5rem;
    height: 1.125rem;
    border-radius: 2px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.lang-dropdown-trigger .lang-flag {
    width: 1.4rem;
    height: 1.05rem;
}

.lang-dropdown-trigger .lang-chevron {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.lang-dropdown.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 100;
    max-height: 70vh;
    overflow-y: auto;
}

.lang-dropdown-menu[hidden] {
    display: none !important;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.lang-option:hover {
    background: var(--bg-card-hover);
    color: var(--accent);
}

.lang-option.active {
    background: var(--accent-muted);
    color: var(--accent);
    font-weight: 600;
}

.lang-option .lang-flag {
    width: 1.5rem;
    height: 1.125rem;
}

.lang-option .lang-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition-fast);
}

.mobile-toggle:hover {
    background: var(--bg-card-hover);
}

/* ========== Hero ========== */
.hero {
    padding: 4rem 0 5rem;
    text-align: center;
    position: relative;
}

.hero .container {
    max-width: 720px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
}

/* ========== Sections ========== */
.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.plugins-section,
.features-section {
    margin-bottom: 5rem;
}

/* ========== Grilles ========== */
.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* ========== Cards plugins (accueil) ========== */
.plugin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.plugin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: var(--transition-base);
}

.plugin-card:hover {
    border-color: var(--border-default);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.plugin-card:hover::before {
    opacity: 1;
}

.plugin-icon {
    font-size: 2.75rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
    display: block;
}

.plugin-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.plugin-short-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    min-height: 48px;
    line-height: 1.5;
}

.plugin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.meta-item i {
    color: var(--accent);
    font-size: 0.9rem;
}

.plugin-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Plugin card horizontal (liste plugins) */
.plugin-card-horizontal {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    transition: var(--transition-base);
}

.plugin-card-horizontal:hover {
    border-color: var(--border-default);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-md);
}

.plugin-card-icon {
    font-size: 2.5rem;
    color: var(--accent);
    flex-shrink: 0;
}

.plugin-card-content {
    flex-grow: 1;
    min-width: 0;
}

.plugin-card-content h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.plugin-card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.plugin-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
}

.tag i {
    color: var(--accent);
    font-size: 0.75rem;
}

.plugin-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Feature cards */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-base);
}

.feature-card:hover {
    border-color: var(--border-default);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ========== Boutons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.35rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-base);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--bg-base);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--border-strong);
}

.btn-success {
    background: var(--success);
    color: var(--bg-base);
}

.btn-success:hover {
    filter: brightness(1.1);
    color: var(--bg-base);
}

.btn-lg {
    padding: 1rem 1.75rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ========== Plugin detail page ========== */
.container--plugin-detail .alert {
    margin-top: 0;
}

.plugin-detail-header {
    background: rgba(22, 27, 34, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2.5rem 3rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    transition: var(--transition-base);
}

.plugin-detail-header:hover {
    border-color: rgba(0, 200, 150, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.plugin-detail-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 200, 150, 0.2), rgba(0, 200, 150, 0.06));
    border: 1px solid rgba(0, 200, 150, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--accent);
    flex-shrink: 0;
}

.plugin-detail-info {
    flex-grow: 1;
    min-width: 0;
}

.plugin-detail-info h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.plugin-detail-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.plugin-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-pill);
}

.badge-version {
    background: var(--accent-muted);
    color: var(--accent);
}

.badge-mc {
    background: rgba(63, 185, 80, 0.15);
    color: var(--success);
}

.badge-downloads {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.badge-servers {
    background: rgba(88, 166, 255, 0.15);
    color: var(--info);
    border: 1px solid rgba(88, 166, 255, 0.3);
}

.badge-players {
    background: rgba(76, 175, 80, 0.15);
    color: var(--success, #4caf50);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.plugin-detail-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Tabs style plugin (pills + glassmorphism) */
.tabs--plugin {
    gap: 8px;
    padding: 6px;
    background: rgba(22, 27, 34, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.tabs--plugin .tab-btn {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    border-bottom: none;
    margin-bottom: 0;
}

.tabs--plugin .tab-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.tabs--plugin .tab-btn.active {
    background: rgba(0, 200, 150, 0.15);
    color: var(--accent);
    border: 1px solid rgba(0, 200, 150, 0.35);
    box-shadow: 0 0 20px rgba(0, 200, 150, 0.08);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: tab-fade-in 0.3s ease;
}

@keyframes tab-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Plugin content area */
.plugin-content {
    position: relative;
}

.plugin-content--stacked .content-box {
    margin-bottom: 1.5rem;
}

.plugin-content--stacked .content-box:last-child {
    margin-bottom: 0;
}

/* Content box (plugin detail) */
.content-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
}

.content-box--overview {
    background: rgba(22, 27, 34, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2rem 2.25rem;
    position: relative;
    overflow: hidden;
}

.content-box--overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), rgba(0, 200, 150, 0.4));
    opacity: 0.9;
}

.content-box-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.content-box-title i {
    color: var(--accent);
    font-size: 1.1rem;
}

.content-box-lead {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

.content-box h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.content-box p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.content-box code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    padding: 2px 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--accent);
}

/* ========== Documentation — Design WOW ========== */

/* Animations globales doc */
@keyframes docs-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes docs-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes docs-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes docs-glow-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.docs-fade-in {
    animation: docs-fade-in 0.6s ease forwards;
}

.docs-fade-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.docs-fade-in-delay-2 { animation-delay: 0.2s; opacity: 0; }
.docs-fade-in-delay-3 { animation-delay: 0.35s; opacity: 0; }

.docs-fade-in-up {
    animation: docs-fade-in-up 0.6s ease forwards;
    opacity: 0;
}

/* Landing page docs */
.docs-landing {
    padding-bottom: 4rem;
    min-height: 60vh;
}

.docs-landing-hero {
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
    padding: 4rem 0 4.5rem;
    margin-bottom: 3rem;
    overflow: hidden;
}

.docs-landing-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 80% at 50% -30%, rgba(0, 200, 150, 0.2), transparent 50%),
        radial-gradient(ellipse 80% 50% at 80% 50%, rgba(0, 200, 150, 0.08), transparent 45%),
        linear-gradient(180deg, rgba(0, 200, 150, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.docs-landing-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 20%, transparent 70%);
    pointer-events: none;
}

.docs-landing-hero-inner {
    position: relative;
    text-align: center;
}

.docs-landing-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 1rem;
    padding: 6px 14px;
    background: var(--accent-muted);
    border: 1px solid rgba(0, 200, 150, 0.25);
    border-radius: var(--radius-pill);
}

.docs-landing-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
    line-height: 1.15;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 40%, var(--text-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.docs-landing-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.65;
    margin: 0 auto 2rem;
}

.docs-landing-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.docs-landing-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.docs-landing-stat strong {
    color: var(--accent);
    font-size: 1.25rem;
}

.docs-landing-stat i {
    color: var(--accent);
    opacity: 0.9;
}

.docs-landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.docs-landing-card {
    display: block;
    background: rgba(22, 27, 34, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.docs-landing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--accent-hover));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s ease;
}

.docs-landing-card:hover {
    border-color: rgba(0, 200, 150, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 200, 150, 0.1);
    transform: translateY(-6px);
}

.docs-landing-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.docs-landing-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-muted);
    border-radius: var(--radius-md);
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.docs-landing-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.docs-landing-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.docs-landing-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
    transition: var(--transition-fast);
}

.docs-landing-card:hover .docs-landing-card-cta {
    gap: 12px;
}

/* Barre de progression de lecture (page plugin) */
.docs-progress {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bg-elevated);
    z-index: 999;
    overflow: hidden;
}

.docs-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 0 2px 2px 0;
    transition: width 0.08s linear;
}

/* Hero doc (page plugin) */
.docs-hero {
    position: relative;
    padding: 2.5rem 0 3rem;
    margin-bottom: 0;
    overflow: hidden;
}

.docs-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(0, 200, 150, 0.15), transparent 50%),
        linear-gradient(180deg, rgba(0, 200, 150, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.docs-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(180deg, black 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 80%);
    pointer-events: none;
}

.docs-hero-inner {
    position: relative;
}

.docs-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.docs-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.docs-breadcrumb a:hover {
    color: var(--accent);
}

.docs-breadcrumb-sep {
    color: var(--text-muted);
    opacity: 0.6;
    font-size: 0.65rem;
}

.docs-breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

.docs-hero-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.docs-hero-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-muted);
    border: 1px solid rgba(0, 200, 150, 0.25);
    border-radius: var(--radius-lg);
    color: var(--accent);
    font-size: 2.5rem;
    flex-shrink: 0;
    box-shadow: 0 0 30px rgba(0, 200, 150, 0.15);
}

.docs-hero-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.docs-hero-title-gradient {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 50%, var(--text-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: docs-gradient-shift 8s ease infinite;
}

.docs-hero-version {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Body layout */
.docs-body {
    padding-bottom: 4rem;
}

.docs-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.docs-sidebar {
    background: rgba(22, 27, 34, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: 96px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.docs-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.docs-sidebar-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.docs-version-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-muted);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.docs-search {
    position: relative;
    margin-bottom: 1.25rem;
}

.docs-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.docs-search input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.docs-search input::placeholder {
    color: var(--text-muted);
}

.docs-search input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-muted);
}

.docs-nav-section {
    margin-bottom: 1.25rem;
}

.docs-nav-section h4 {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.docs-nav-section ul {
    list-style: none;
}

.docs-nav-link {
    display: block;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    margin-bottom: 2px;
}

.docs-nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.docs-nav-link.active {
    color: var(--accent);
    background: var(--accent-muted);
}

.docs-sidebar-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Main content */
.docs-main {
    min-width: 0;
}

.docs-articles {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.doc-article {
    background: rgba(22, 27, 34, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    position: relative;
    border-left: 4px solid var(--accent);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.doc-article:hover {
    border-left-color: var(--accent-hover);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.doc-article-header {
    margin-bottom: 1.5rem;
}

.doc-article-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
}

/* Contenu doc — typo & blocs */
.doc-content {
    font-size: 1rem;
    line-height: 1.7;
}

.doc-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.5rem;
}

.doc-content h2:first-child {
    margin-top: 0;
}

.doc-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.5rem;
}

.doc-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.doc-content ul,
.doc-content ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.doc-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.doc-content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    padding: 3px 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--accent);
}

/* Bloc code avec bouton copier (wrapper ajouté en JS) */
.doc-code-block {
    position: relative;
    margin: 1rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--bg-base);
}

.doc-code-block pre {
    margin: 0;
    border: none;
    border-radius: 0;
    padding: 1rem 1.25rem 3rem 1.25rem;
}

.doc-code-block .copy-code-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-family: var(--font-sans);
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.doc-code-block .copy-code-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-muted);
}

.doc-code-block .copy-code-btn.copied {
    color: var(--success);
    border-color: var(--success);
}

.doc-content pre {
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.doc-content pre code {
    padding: 0;
    background: none;
    border: none;
    color: inherit;
}

/* Callouts */
.doc-callout {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin: 1.25rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.doc-callout-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.doc-callout-info {
    background: rgba(88, 166, 255, 0.08);
    border: 1px solid rgba(88, 166, 255, 0.2);
}

.doc-callout-info .doc-callout-icon { color: var(--info); }

.doc-callout-warning {
    background: rgba(210, 153, 34, 0.08);
    border: 1px solid rgba(210, 153, 34, 0.2);
}

.doc-callout-warning .doc-callout-icon { color: var(--warning); }

.doc-callout-success {
    background: rgba(63, 185, 80, 0.08);
    border: 1px solid rgba(63, 185, 80, 0.2);
}

.doc-callout-success .doc-callout-icon { color: var(--success); }

.doc-callout-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.doc-callout p {
    margin: 0;
    font-size: 0.95rem;
}

/* Tables dans la doc */
.doc-table-responsive {
    overflow-x: auto;
    margin: 1rem 0;
}
.doc-content .doc-table,
.doc-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.95rem;
}

.doc-content th,
.doc-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.doc-content th {
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.doc-content tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.doc-content td code {
    font-size: 0.85em;
}

/* Steps (liste numérotée style guide) */
.doc-steps {
    list-style: none;
    padding-left: 0;
    counter-reset: step;
}

.doc-steps li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.25rem;
}

.doc-steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-muted);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 50%;
}

/* Empty state */
.docs-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.docs-empty-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.docs-empty h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.docs-empty p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ========== Page header (titre de page) ========== */
.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.page-header h1 i {
    color: var(--accent);
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.downloads-total {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.downloads-total strong {
    color: var(--accent);
}

/* ========== Downloads ========== */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
}

.download-card:hover {
    border-color: var(--border-default);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.download-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.download-icon {
    font-size: 2.25rem;
    color: var(--accent);
    flex-shrink: 0;
}

.download-title h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.download-title p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.download-card-body {
    padding: 1.5rem;
}

.download-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat i {
    color: var(--accent);
    font-size: 0.9rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.download-progress {
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-elevated);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--success));
    border-radius: var(--radius-pill);
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.download-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.download-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.content-box--downloads {
    background: rgba(22, 27, 34, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    padding: 2rem 2.25rem;
    position: relative;
    overflow: hidden;
}

.content-box--downloads::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--success), rgba(63, 185, 80, 0.4));
    opacity: 0.9;
}

.download-box--plugin {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.download-box--plugin .download-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.download-box--plugin .download-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.download-box--plugin .download-info p i {
    color: var(--accent);
    width: 1rem;
}

.download-info-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
}

.download-info-box h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-info-box h3 i {
    color: var(--accent);
}

.download-info-box ol {
    padding-left: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.download-info-box li {
    margin-bottom: 0.5rem;
}

.download-success {
    text-align: center;
    padding: 4rem 2rem;
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1.5rem;
}

.download-success h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.download-success p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.download-notice {
    background: rgba(210, 153, 34, 0.15);
    color: var(--warning);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    font-size: 0.95rem;
    border: 1px solid rgba(210, 153, 34, 0.3);
}

.download-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== Patch notes / Changelog ========== */
.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.changelog-entry {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    transition: var(--transition-base);
    border-left: 4px solid var(--accent);
}

.changelog-entry:hover {
    border-color: var(--border-default);
    box-shadow: var(--shadow-md);
}

.changelog-entry-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.changelog-entry-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-muted);
    border-radius: var(--radius-md);
    color: var(--accent);
    font-size: 1.35rem;
    flex-shrink: 0;
}

.changelog-entry-meta {
    flex-grow: 1;
    min-width: 0;
}

.changelog-entry-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.02em;
}

.changelog-entry-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.changelog-entry-date i {
    margin-right: 4px;
    color: var(--accent);
}

.changelog-entry-content {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.changelog-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.changelog-empty i {
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 1rem;
    display: block;
}

.changelog-empty p {
    color: var(--text-secondary);
    margin: 0;
}

/* ========== Alerts ========== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

.alert-info {
    background: rgba(88, 166, 255, 0.1);
    color: var(--info);
    border: 1px solid rgba(88, 166, 255, 0.2);
}

.alert-error {
    background: rgba(248, 81, 73, 0.1);
    color: var(--danger);
    border: 1px solid rgba(248, 81, 73, 0.2);
}

.alert-success {
    background: rgba(63, 185, 80, 0.1);
    color: var(--success);
    border: 1px solid rgba(63, 185, 80, 0.2);
}

.alert-warning {
    background: rgba(210, 153, 34, 0.12);
    color: var(--warning);
    border: 1px solid rgba(210, 153, 34, 0.3);
}

.alert i {
    flex-shrink: 0;
}

.alert-dismissible {
    position: relative;
    padding-right: 2.5rem;
}

.alert-close {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: inherit;
    text-decoration: none;
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.alert-close:hover {
    opacity: 1;
}

/* ========== Footer ========== */
.footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-section h3 i,
.footer-section h4 i {
    color: var(--accent);
    margin-right: 6px;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    display: block;
    padding: 0.35rem 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-muted);
}

/* ========== Back link ========== */
.back-link {
    margin-top: 2rem;
    text-align: center;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.back-link a:hover {
    color: var(--accent);
}

/* ========== Scroll to top ========== */
.scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--accent);
    cursor: pointer;
    z-index: 999;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

.scroll-to-top:hover {
    background: var(--accent);
    color: var(--bg-base);
    border-color: var(--accent);
}

.scroll-to-top.visible {
    display: flex;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
    .docs-container {
        grid-template-columns: 1fr;
    }
    
    .docs-sidebar {
        position: static;
    }
    
    .docs-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .doc-article {
        padding: 1.5rem 1.25rem;
    }
    
    .docs-landing-grid {
        grid-template-columns: 1fr;
    }
    
    .docs-landing-stats {
        gap: 1.25rem;
    }
    
    .docs-landing-stat {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border-subtle);
        flex-direction: column;
        padding: 1rem;
        gap: 4px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.2s ease;
    }
    
    .nav-menu.active {
        max-height: 320px;
        opacity: 1;
    }
    
    .nav-menu a {
        padding: 12px 16px;
        border-radius: var(--radius-md);
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .lang-switcher {
        margin-left: auto;
        margin-right: 8px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .plugins-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .plugin-card-horizontal {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .plugin-card-actions {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .plugin-detail-header {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .plugin-detail-icon {
        margin: 0 auto;
    }
    
    .plugin-detail-actions {
        justify-content: center;
    }
    
    .download-card-footer {
        flex-direction: column;
    }
    
    .download-card-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    .download-box {
        flex-direction: column;
        text-align: center;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 1 auto;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .plugin-detail-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========== Accueil — Refonte ========== */
.page-home {
    padding-bottom: 0;
}

/* Hero */
.home-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0 5rem;
    overflow: hidden;
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 120% 80% at 50% -30%, rgba(0, 200, 150, 0.18), transparent 55%),
        radial-gradient(ellipse 80% 50% at 80% 60%, rgba(88, 166, 255, 0.08), transparent 50%),
        radial-gradient(ellipse 60% 40% at 10% 80%, rgba(0, 200, 150, 0.06), transparent 45%);
}

.home-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent 70%);
}

.home-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}

.home-hero-glow-1 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    animation: home-glow-pulse 8s ease-in-out infinite;
}

.home-hero-glow-2 {
    width: 300px;
    height: 300px;
    background: var(--info);
    bottom: 10%;
    right: 10%;
    animation: home-glow-pulse 10s ease-in-out infinite 1s;
}

.home-hero-glow-1 { animation: home-glow-1 8s ease-in-out infinite; }
.home-hero-glow-2 { animation: home-glow-2 10s ease-in-out infinite 1s; }

@keyframes home-glow-1 {
    0%, 100% { opacity: 0.25; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.45; transform: translateX(-50%) scale(1.08); }
}

@keyframes home-glow-2 {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(1.1); }
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
}

.home-hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    background: rgba(0, 200, 150, 0.12);
    border: 1px solid rgba(0, 200, 150, 0.25);
    border-radius: var(--radius-pill);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.home-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #f0f6fc 0%, #c9d1d9 40%, var(--accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: home-title-shine 6s linear infinite;
}

@keyframes home-title-shine {
    to { background-position: 200% center; }
}

.home-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.home-hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.home-hero-cta .btn {
    min-width: 160px;
}

/* Stats */
.home-stats {
    position: relative;
    z-index: 1;
    margin-top: -2rem;
    margin-bottom: 4rem;
}

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.home-stat {
    background: rgba(22, 27, 34, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.home-stat::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.home-stat:hover::before {
    opacity: 1;
}

.home-stat--plugins:hover { border-color: rgba(0, 200, 150, 0.4); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 28px rgba(0, 200, 150, 0.12); }
.home-stat--downloads:hover { border-color: rgba(88, 166, 255, 0.4); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 28px rgba(88, 166, 255, 0.12); }
.home-stat--servers:hover { border-color: rgba(210, 153, 34, 0.4); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 28px rgba(210, 153, 34, 0.12); }
.home-stat--players:hover { border-color: rgba(63, 185, 80, 0.4); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 28px rgba(63, 185, 80, 0.12); }
.home-stat--opensource:hover { border-color: rgba(0, 200, 150, 0.4); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 28px rgba(0, 200, 150, 0.12); }

.home-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.35rem;
    transition: transform 0.3s ease;
}

.home-stat:hover .home-stat-icon {
    transform: scale(1.08);
}

.home-stat--plugins .home-stat-icon { background: linear-gradient(135deg, rgba(0, 200, 150, 0.25), rgba(0, 200, 150, 0.08)); color: var(--accent); border: 1px solid rgba(0, 200, 150, 0.3); }
.home-stat--downloads .home-stat-icon { background: linear-gradient(135deg, rgba(88, 166, 255, 0.25), rgba(88, 166, 255, 0.08)); color: var(--info); border: 1px solid rgba(88, 166, 255, 0.3); }
.home-stat--servers .home-stat-icon { background: linear-gradient(135deg, rgba(210, 153, 34, 0.25), rgba(210, 153, 34, 0.08)); color: var(--warning); border: 1px solid rgba(210, 153, 34, 0.3); }
.home-stat--players .home-stat-icon { background: linear-gradient(135deg, rgba(63, 185, 80, 0.25), rgba(63, 185, 80, 0.08)); color: var(--success); border: 1px solid rgba(63, 185, 80, 0.3); }
.home-stat--opensource .home-stat-icon { background: linear-gradient(135deg, rgba(0, 200, 150, 0.25), rgba(0, 200, 150, 0.08)); color: var(--accent); border: 1px solid rgba(0, 200, 150, 0.3); }

.home-stat-value {
    display: block;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.home-stat-value--empty {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 500;
}

.home-stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Section titles */
.home-section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
}

/* Plugins grid */
.home-plugins {
    padding: 4rem 0;
}

.home-plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.home-plugin-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    transition-delay: calc(var(--reveal-order, 0) * 0.08s);
}

.home-plugin-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.home-plugin-card-inner {
    background: rgba(22, 27, 34, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-base);
}

.home-plugin-card:hover .home-plugin-card-inner {
    border-color: rgba(0, 200, 150, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 200, 150, 0.1);
    transform: translateY(-4px);
}

.home-plugin-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 200, 150, 0.2), rgba(0, 200, 150, 0.05));
    border: 1px solid rgba(0, 200, 150, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.home-plugin-icon-wrap i {
    font-size: 2rem;
    color: var(--accent);
}

.home-plugin-name {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.home-plugin-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.home-plugin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.25rem;
    width: 100%;
}

.home-plugin-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.home-plugin-meta i {
    color: var(--accent);
    font-size: 0.8rem;
}

.home-plugin-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== Page Plugins (liste) ========== */
.plugins-page {
    padding: 3rem 0 4rem;
    min-height: calc(100vh - 72px);
}

.plugins-page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.plugins-page-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: rgba(0, 200, 150, 0.12);
    border: 1px solid rgba(0, 200, 150, 0.25);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
}

.plugins-page-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.plugins-page-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
}

.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.plugin-tile {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    transition-delay: calc(var(--reveal-order, 0) * 0.08s);
}

.plugin-tile.revealed {
    opacity: 1;
    transform: translateY(0);
}

.plugin-tile-inner {
    background: rgba(22, 27, 34, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-base);
}

.plugin-tile:hover .plugin-tile-inner {
    border-color: rgba(0, 200, 150, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 200, 150, 0.1);
    transform: translateY(-4px);
}

.plugin-tile-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 200, 150, 0.2), rgba(0, 200, 150, 0.06));
    border: 1px solid rgba(0, 200, 150, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.plugin-tile-icon i {
    font-size: 1.75rem;
    color: var(--accent);
}

.plugin-tile-name {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.plugin-tile-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.plugin-tile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 1rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.25rem;
    width: 100%;
}

.plugin-tile-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.plugin-tile-meta i {
    color: var(--accent);
    font-size: 0.75rem;
}

.plugin-tile-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

.plugin-tile-actions .btn {
    flex: 1;
    min-width: 100px;
}

/* Features */
.home-features {
    padding: 4rem 0;
    background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 200, 150, 0.04), transparent);
}

.home-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.home-feature {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.home-feature.revealed {
    opacity: 1;
    transform: translateY(0);
}

.home-feature:hover {
    border-color: rgba(0, 200, 150, 0.25);
    box-shadow: var(--shadow-lg);
}

.home-feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 200, 150, 0.2), rgba(0, 200, 150, 0.06));
    border: 1px solid rgba(0, 200, 150, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-feature-icon i {
    font-size: 1.5rem;
    color: var(--accent);
}

.home-feature h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.home-feature p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* CTA final */
.home-cta {
    padding: 4rem 0 5rem;
}

.home-cta-box {
    background: linear-gradient(135deg, rgba(0, 200, 150, 0.12), rgba(88, 166, 255, 0.06));
    border: 1px solid rgba(0, 200, 150, 0.2);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
}

.home-cta-box h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.home-cta-box p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Reveal au chargement (fallback si pas de JS) */
.page-home .reveal {
    opacity: 0;
    transform: translateY(20px);
}

.page-home .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .home-hero {
        min-height: 75vh;
        padding: 4rem 0 3rem;
    }
    .home-stats-grid {
        grid-template-columns: 1fr;
    }
    .home-hero-cta {
        flex-direction: column;
    }
    .home-hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }
}
