/* Alpharkane site_v3 · Liquid Glass · accent studio #986eee partout (UI).
   L’identité orange Clairval reste dans les visuels jeu (lobby, bannières), pas dans le chrome. */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;600&display=swap');

:root {
    --primary: #986eee;
    --primary-light: #b89af5;
    --primary-rgb: 152, 110, 238;
    --bg-primary: #1e1d23;
    --bg-secondary: #25242c;
    --text-primary: #f2ebe3;
    --text-muted: #8a8378;
    --glass-bg: rgba(30, 29, 35, 0.55);
    --glass-border: rgba(var(--primary-rgb), 0.18);
    --glass-border-strong: rgba(var(--primary-rgb), 0.35);
    --glass-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 4px 32px rgba(0, 0, 0, 0.35);
    --glass-blur: blur(40px) saturate(180%);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 16px;
    --content-width: 680px;
    --header-inner-max-width: 960px;
    --header-height: 64px;
    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fond profil équipé : cards / header / séparateur footer suivent l’accent (pas le violet studio). */
body.has-profile-accent {
    --glass-border: rgba(var(--primary-rgb), 0.30);
    --glass-border-strong: rgba(var(--primary-rgb), 0.52);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
    overflow-x: clip;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: clip;
    font-family: 'Crimson Pro', Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-primary);
    background: linear-gradient(160deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; display: block; }

/* ── Header ── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
}

.site-header-inner {
    max-width: min(var(--header-inner-max-width), 100%);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-logo img {
    height: 36px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav a {
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    transition: all var(--transition);
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--text-primary);
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--glass-border);
}

.site-nav a.is-active {
    color: var(--primary-light);
    border-color: var(--glass-border-strong);
}

/* Burger · masqué desktop */
.site-burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color var(--transition), background var(--transition);
}

.site-burger:hover {
    border-color: var(--glass-border-strong);
    background: rgba(var(--primary-rgb), 0.14);
}

.site-burger-lines {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 20px;
}

.site-burger-lines span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 1px;
    background: var(--text-primary);
    transition: transform var(--transition), opacity var(--transition);
}

.site-header.is-menu-open .site-burger-lines span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.is-menu-open .site-burger-lines span:nth-child(2) {
    opacity: 0;
}

.site-header.is-menu-open .site-burger-lines span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-nav-backdrop {
    display: none;
}

.site-nav-drawer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    margin-left: 0.35rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    gap: 2px;
}

.lang-switch-btn {
    position: relative;
    z-index: 1;
    min-width: 2.35rem;
    padding: 0.32rem 0.55rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

.lang-switch-btn:hover {
    color: var(--text-primary);
}

.lang-switch-btn.is-active {
    color: var(--text-primary);
    background: rgba(var(--primary-rgb), 0.22);
    box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.35);
}

/* Legacy · conservé pour pages non migrées */
.lang-toggle {
    display: flex;
    gap: 2px;
    margin-left: 0.5rem;
}

.lang-toggle button {
    padding: 0.3rem 0.55rem;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.lang-toggle button.is-active,
.lang-toggle button:hover {
    color: var(--text-primary);
    background: rgba(var(--primary-rgb), 0.15);
    border-color: var(--glass-border-strong);
}

/* ── Layout ── */

.site-main {
    position: relative;
    z-index: 1;
    max-width: min(var(--content-width), 100%);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
    overflow-x: clip;
}

.site-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 1.5rem 2.5rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.88rem;
}

.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--primary-light); }
.site-footer p { margin: 0.35rem 0; }

/* ── Typography ── */

.page-title {
    margin: 0 0 1rem;
    font-size: 2.25rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.section-title {
    margin: 3rem 0 1.25rem;
    font-size: 1.35rem;
    font-weight: 600;
    text-align: center;
    color: var(--primary-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lead {
    text-align: center;
    color: var(--text-muted);
    margin: 0 0 2rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.tagline {
    text-align: center;
    font-style: italic;
    color: var(--text-muted);
    margin: 0 0 2rem;
    font-size: 1rem;
}

.kicker {
    display: block;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/* ── Badges ── */

.badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-light);
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid var(--glass-border);
}

/* ── Cards ── */

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    transition: border-color var(--transition);
}

.card:hover { border-color: var(--glass-border-strong); }

.card-grid {
    display: grid;
    gap: 1rem;
}

.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card-row {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.card-row .card-icon {
    width: 72px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
}

.card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card p {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ── Buttons ── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.15rem;
    min-height: 40px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--glass-border-strong);
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: color-mix(in srgb, var(--primary) 18%, transparent);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: color-mix(in srgb, var(--primary) 30%, transparent);
    border-color: rgba(var(--primary-rgb), 0.45);
    color: var(--text-primary);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border-color: var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--text-primary);
    border-color: var(--glass-border-strong);
}

.btn-block { width: 100%; }

.btn-sm {
    padding: 0.4rem 0.75rem;
    min-height: 34px;
    font-size: 0.85rem;
}

.hero-cta {
    text-align: center;
    margin: 2rem 0;
}

/* ── Contact grid ── */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    text-align: center;
}

.contact-item {
    padding: 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.contact-item h3 {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-light);
}

.contact-item p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* ── Studio news ── */

.studio-news-intro {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 1.5rem;
}

.studio-news-list {
    display: grid;
    gap: 1.25rem;
    max-width: 42rem;
    margin: 0 auto;
}

.studio-news-empty {
    text-align: center;
    color: var(--text-muted);
    margin: 0;
}

.news-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.studio-news-card {
    text-align: left;
    padding: 1.5rem 1.75rem;
}

.news-card .news-date {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.studio-news-card h3 {
    margin: 0.35rem 0 0.75rem;
    font-size: 1.35rem;
}

.studio-news-meta {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
}

.studio-news-card .hero-cta {
    margin-top: 1rem;
}

.studio-news-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
    margin-top: 0.5rem;
    padding-top: 0.25rem;
}

.studio-news-pagination-info {
    min-width: 7rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.studio-news-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.news-back-link {
    display: inline-block;
    margin-bottom: 1.25rem;
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.92rem;
}

.news-back-link:hover {
    text-decoration: underline;
}

.news-article-header {
    margin-bottom: 1.25rem;
}

.news-article-content {
    line-height: 1.7;
    color: var(--text-primary);
}

.news-article-content img,
.news-article-content video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ── Forms ── */

.form-panel { max-width: 100%; }

.form-group { margin-bottom: 1.25rem; }

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-label .optional {
    font-weight: 400;
    color: var(--text-muted);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background-color: #1a1920;
    background: rgba(26, 25, 32, 0.96);
    color: var(--text-primary);
    color-scheme: dark;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition);
}

select,
.form-select,
.project-ranking-filter select {
    background-color: #1a1920;
    color-scheme: dark;
}

select option,
.form-select option,
.project-ranking-filter select option {
    background-color: #1a1920;
    color: var(--text-primary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--glass-border-strong);
}

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

.form-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.form-actions { margin-top: 1.5rem; }

.info-box {
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.info-box h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: var(--primary-light);
}

.info-box p {
    margin: 0 0 0.75rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.info-box p:last-child { margin-bottom: 0; }

.notice-static {
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-sm);
    background: rgba(212, 165, 116, 0.12);
    border: 1px solid rgba(212, 165, 116, 0.3);
    color: var(--primary-light);
    font-size: 0.88rem;
    text-align: center;
}

/* ── Prose (privacy) ── */

.prose h2 {
    margin: 2rem 0 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.prose h3 {
    margin: 1.25rem 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-light);
}

.prose p, .prose li {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.35rem; }

/* ── Deletion wizard ── */

.wizard-steps {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.wizard-step-dot {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
}

.wizard-step-dot.is-active {
    background: color-mix(in srgb, var(--primary) 25%, transparent);
    border-color: var(--glass-border-strong);
    color: var(--text-primary);
}

.wizard-step-dot.is-done {
    background: rgba(90, 154, 106, 0.2);
    border-color: rgba(90, 154, 106, 0.4);
    color: #7bc48a;
}

.wizard-panel { display: none; }
.wizard-panel.is-visible { display: block; }

.wizard-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* ── TM features & screenshots ── */

.feature-list {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .feature-list {
        grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    }
}

.feature-item h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.feature-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.screenshot-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 720px) {
    .screenshot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.screenshot-item img {
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.screenshot-item figcaption {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ── Bannières projets (style Nadeo) ── */

.project-groups {
    display: flex;
    flex-direction: column;
    gap: 3.75rem;
    margin-top: 0.5rem;
}

.project-group-title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.project-banners {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-top: 0.5rem;
}

.project-group .project-banners {
    margin-top: 0;
}

.project-banner-entry {
    display: block;
    color: inherit;
    text-decoration: none;
}

.project-banner-entry:hover .project-banner-label {
    color: var(--primary-light);
}

.project-banner-entry:hover .project-banner {
    border-color: var(--glass-border-strong);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
}

.project-banner-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    transition: color var(--transition);
}

.project-banner {
    display: block;
    height: 88px;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    overflow: hidden;
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.project-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    display: block;
}

/* ── Pages projet (hub) ── */

.project-page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
}

.project-page {
    display: flex;
    flex-direction: column;
}

.project-section {
    margin-bottom: 0;
}

.project-section--last {
    margin-bottom: 0;
}

.project-section-empty {
    padding: 1.15rem 1.25rem;
    text-align: center;
}

.project-section-empty p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.project-hero-banner {
    width: 100%;
    height: 140px;
    object-fit: cover;
    object-position: left center;
    border-radius: 4px;
    border: 1px solid var(--glass-border);
    margin-bottom: 2rem;
    display: block;
}

.project-intro {
    margin-bottom: 2rem;
}

.project-title {
    margin-bottom: 1.15rem;
}

.project-description {
    margin: 0 auto;
}

.project-description-p {
    margin: 0 0 0.95rem;
    text-align: justify;
    hyphens: auto;
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.72;
}

.project-description-p:last-child {
    margin-bottom: 0;
}

.project-cta {
    margin-top: 1.35rem;
}

.project-section-title {
    margin: 2rem 0 1rem;
}

.project-hub-links {
    margin: 0;
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    border: 1px solid var(--glass-border);
    font-size: 0.92rem;
}

.alert-success {
    background: rgba(90, 154, 106, 0.15);
    color: #9fd4a8;
    border-color: rgba(90, 154, 106, 0.35);
}

.alert-error {
    background: rgba(199, 107, 107, 0.15);
    color: #e8a0a0;
    border-color: rgba(199, 107, 107, 0.35);
}

.project-register-card {
    margin-top: 1rem;
    padding: 1.35rem 1.4rem;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.project-register-form .btn {
    margin-top: 0.35rem;
}

.rc-ak-switch {
    margin-top: 0.75rem;
}

.rc-ak-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding: 0.3rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
}

.rc-ak-toggle-btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.2;
    padding: 0.7rem 0.65rem;
    cursor: pointer;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.rc-ak-toggle-btn:hover {
    color: var(--text-primary);
}

.rc-ak-toggle-btn.is-active {
    color: var(--text-primary);
    background: rgba(var(--primary-rgb), 0.18);
    border-color: var(--glass-border-strong);
}

.rc-ak-panel {
    margin-top: 0;
}

.rc-ak-panel[hidden] {
    display: none !important;
}

.rc-ak-panel-hint {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.rc-ak-preview {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 0.85rem 0 0.25rem;
}

.rc-ak-preview-avatar {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.25);
}

.rc-ak-preview-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.rc-ak-preview-meta strong {
    color: var(--text-primary);
    font-size: 1.05rem;
}

.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.project-gallery-item {
    margin: 0;
}

.project-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
}

.project-gallery-item figcaption {
    margin-top: 0.3rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.35;
}

.project-intro .badges {
    margin-bottom: 1rem;
}

.project-tabs-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin: 1.25rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.project-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
}

.project-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.project-tab.is-active {
    color: var(--primary-light);
    border-color: var(--glass-border-strong);
    background: rgba(var(--primary-rgb), 0.12);
}

.project-tab-panel {
    animation: project-tab-in 0.22s ease;
}

@keyframes project-tab-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.project-ranking {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-ranking-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
}

.project-ranking-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 0.65rem;
    flex: 1 1 16rem;
}

.project-ranking-filter {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.project-ranking-filter select {
    width: 100%;
    padding: 0.45rem 0.55rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background-color: #1a1920;
    background: rgba(26, 25, 32, 0.96);
    color: var(--text-primary);
    color-scheme: dark;
    font: inherit;
}

.project-ranking-period {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.project-ranking-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.project-ranking-row {
    display: grid;
    grid-template-columns: 2.5rem 2.5rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
}

.project-ranking-rank {
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-muted);
}

.project-ranking-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--glass-border);
}

.project-ranking-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.project-ranking-pseudo {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

a.project-ranking-pseudo:hover {
    color: var(--primary-light);
}

.project-ranking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.project-ranking-score {
    font-weight: 700;
    color: var(--primary-light);
    white-space: nowrap;
    font-size: 0.95rem;
}

.project-ranking-more {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.project-ranking--placeholder .project-section-empty {
    margin: 0;
}

.project-ranking-results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-ranking-sentinel {
    width: 100%;
    height: 1px;
}

.project-ranking-sentinel.is-loading {
    height: 2.5rem;
}

/* Community */

.community-page {
    max-width: min(36rem, 100%);
    margin: 0 auto;
}

.community-page--hub {
    max-width: min(42rem, 100%);
}

.community-header {
    margin-bottom: 1.25rem;
}

.community-intro {
    margin: 0.5rem 0 0;
}

.community-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.community-jump-link {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--glass-bg);
    color: var(--text-secondary, var(--text-muted));
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.community-jump-link:hover,
.community-jump-link:focus-visible {
    color: var(--text-primary);
    border-color: var(--glass-border-strong);
    outline: none;
}

.community-block {
    margin-bottom: 2rem;
    scroll-margin-top: 5.5rem;
}

.community-discord {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
}

.community-discord-body {
    min-width: 0;
    flex: 1 1 14rem;
}

.community-discord-text {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.community-subsection-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.community-search {
    padding: 1.1rem 1.15rem;
    margin: 0.85rem 0 1.25rem;
}

.community-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: stretch;
}

.community-search-input {
    flex: 1 1 12rem;
    min-width: 0;
}

.community-message {
    padding: 1rem 1.15rem;
}

.community-message p {
    margin: 0;
    color: var(--text-muted);
}

.community-results-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.community-section-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.community-results-count {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.community-results {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.community-player-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    padding: 0.75rem 0.9rem;
    color: inherit;
    text-decoration: none;
    transition: border-color var(--transition), background var(--transition);
}

.community-player-row:hover {
    border-color: var(--glass-border-strong);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
}

.community-player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--glass-border);
}

.community-player-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.community-player-pseudo {
    font-weight: 600;
    font-size: 1.05rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-player-meta {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.hero-cta--row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.dl-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
}

.dl-row-info h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem;
}

.dl-version {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    padding: 0.1rem 0.45rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
}

.dl-row-info p {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dl-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    flex-shrink: 0;
    align-items: center;
}

.dl-unavailable {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    font-style: italic;
}

.project-setup-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-setup-step {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
}

.project-setup-num {
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
}

.project-setup-body {
    min-width: 0;
    flex: 1;
}

.project-setup-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 650;
    color: var(--text-primary);
}

.project-setup-desc {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.project-setup-cta {
    margin: 0.65rem 0 0;
}

.project-known-issues {
    margin: 1rem 0 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.project-known-issue {
    padding-left: 0.15rem;
}

.project-known-issue-ref {
    margin-left: 0.35rem;
    font-weight: 600;
    white-space: nowrap;
}

.hub-links {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 1.5rem 0;
}

.hub-link {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    color: inherit;
    text-decoration: none;
    transition: border-color var(--transition), background var(--transition);
}

.hub-link:hover {
    border-color: var(--glass-border-strong);
    background: rgba(var(--primary-rgb), 0.08);
    color: inherit;
}

.hub-link-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.hub-link-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.hub-link--external .hub-link-title::after {
    content: ' ↗';
    font-size: 0.75rem;
    color: var(--text-muted);
}

.page-construction {
    text-align: center;
    padding: 2rem 0 1rem;
}

.page-construction .lead {
    margin-bottom: 1.5rem;
}

.home-panel--hidden {
    display: none !important;
}

.page-home .site-nav a.is-active {
    color: var(--primary-light);
    border-color: var(--glass-border-strong);
    background: rgba(var(--primary-rgb), 0.1);
}

/* ── Mobile · menu burger (tiroir latéral) ── */

@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    .site-header {
        overflow-x: clip;
        max-width: 100%;
    }

    .page-title { font-size: 1.75rem; }
    .card-row { flex-direction: column; align-items: center; text-align: center; }
    .site-logo img { height: 28px; }

    .site-header-inner {
        position: relative;
        z-index: 112;
        padding: 0 1rem;
    }

    .site-burger {
        display: inline-flex;
    }

    /* Nav absente de la barre : uniquement dans le tiroir */
    .site-nav-drawer {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 111;
        display: block;
        flex: none;
        width: min(19rem, 86vw);
        height: 100dvh;
        height: 100vh;
        padding: calc(var(--header-height) + 1.25rem) 1.25rem 1.5rem;
        background: rgba(28, 27, 33, 0.97);
        border-left: 1px solid var(--glass-border);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        overflow-x: hidden;
        transform: translate3d(100%, 0, 0);
        visibility: hidden;
        clip-path: inset(0 0 0 100%);
        transition:
            transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
            visibility 0.28s,
            clip-path 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .site-header.is-menu-open .site-nav-drawer {
        transform: translate3d(0, 0, 0);
        visibility: visible;
        clip-path: inset(0 0 0 0);
    }

    .site-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 110;
        background: rgba(8, 7, 10, 0.62);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.28s ease, visibility 0.28s;
    }

    .site-header.is-menu-open .site-nav-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .site-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
        flex-wrap: nowrap;
    }

    .site-nav a {
        padding: 0.85rem 1rem;
        font-size: 1.05rem;
        text-align: left;
        border: 1px solid rgba(255, 255, 255, 0.07);
        background: rgba(255, 255, 255, 0.04);
    }

    .site-nav a.is-active {
        background: rgba(var(--primary-rgb), 0.16);
        border-color: var(--glass-border-strong);
    }

    .lang-switch {
        margin: 0.75rem 0 0;
        width: fit-content;
    }

    body.site-nav-open {
        overflow: hidden;
    }

    .project-banner { height: 72px; }
    .project-hero-banner { height: 100px; }
    .project-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.35rem;
        width: 100%;
    }
    .project-tab {
        justify-content: center;
        padding: 0.65rem 0.4rem;
        font-size: 0.84rem;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.06);
        background: rgba(255, 255, 255, 0.03);
    }
    .project-ranking-row {
        grid-template-columns: 2rem 2.25rem minmax(0, 1fr);
        grid-template-areas:
            "rank avatar main"
            "rank avatar score";
    }
    .project-ranking-rank { grid-area: rank; }
    .project-ranking-avatar { grid-area: avatar; width: 36px; height: 36px; }
    .project-ranking-main { grid-area: main; }
    .project-ranking-score { grid-area: score; justify-self: start; padding-left: calc(2rem + 2.25rem + 0.75rem); font-size: 0.88rem; }
    .dl-row { flex-direction: column; align-items: stretch; text-align: center; }
    .dl-row-actions { justify-content: center; }
}

@media (min-width: 769px) {
    .site-burger {
        display: none !important;
    }

    .site-nav-drawer {
        display: flex;
        flex: 1 1 auto;
        justify-content: flex-end;
        min-width: 0;
    }
}
