.skip-link {
    position: absolute;
    left: -9999px;
    top: .5rem;
    padding: .5rem 1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0a0c10;
    border-radius: var(--radius);
    z-index: 2000;
    font-weight: 600;
}

.skip-link:focus {
    left: .5rem;
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

body.nav-open {
    overflow: hidden;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(7, 9, 13, 0.72);
    backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(77, 163, 255, 0.06);
}

@media (min-width: 769px) {
    .navbar {
        padding: 1rem 2rem;
    }
}

.brand {
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.82rem;
    color: var(--text);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 1.25rem;
}

.nav-desktop a {
    color: var(--muted);
    padding: .35rem 0;
    border-bottom: 2px solid transparent;
}

.nav-desktop a:hover {
    color: var(--accent-bright);
    border-bottom-color: var(--border-glow);
}

.navbar-tools {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.lang-switch {
    display: flex;
    gap: .6rem;
    align-items: center;
}

.lang-switch a {
    padding: .25rem .5rem;
    border-radius: 8px;
    color: var(--muted);
    border: 1px solid transparent;
}

.lang-switch a:hover {
    color: var(--text);
    border-color: var(--border);
}

.lang-switch a.is-current {
    color: var(--accent-bright);
    border-color: var(--border-glow);
    background: var(--accent-dim);
}

.lang-switch-desktop {
    display: none;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-elev);
    cursor: pointer;
    color: inherit;
}

.nav-toggle-bar {
    display: block;
    height: 2px;
    margin: 0 auto;
    width: 1.1rem;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    transform-origin: center;
}

body.nav-open .nav-toggle .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

body.nav-open .nav-toggle .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
    .site-menu {
        animation: none;
    }
    .nav-toggle-bar {
        transition: none;
    }
}

@media (min-width: 769px) {
    .nav-desktop {
        display: flex;
    }
    .lang-switch-desktop {
        display: flex;
    }
    .nav-toggle {
        display: none;
    }
}

.site-menu {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    flex-direction: column;
    animation: siteMenuIn .22s ease-out;
}

.site-menu[hidden] {
    display: none;
}

@keyframes siteMenuIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.site-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 12, 0.72);
    backdrop-filter: blur(6px);
}

.site-menu-panel {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem 2rem;
    background: linear-gradient(195deg, var(--bg-elev) 0%, var(--bg) 55%, #05070a 100%);
    border-left: 1px solid var(--border);
    max-width: 100%;
    overflow-y: auto;
}

.site-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    font-size: 1.75rem;
    line-height: 1;
    border-radius: 10px;
}

.site-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    width: 100%;
    max-width: 320px;
}

.site-menu-nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem 1.25rem;
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 600;
    color: var(--text);
    border-radius: 12px;
    border: 1px solid transparent;
}

.site-menu-nav a:hover {
    background: var(--accent-dim);
    border-color: var(--border-glow);
}

.site-menu-lang {
    margin-top: 2.5rem;
    text-align: center;
}

.site-menu-lang-label {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    margin-bottom: .75rem;
}

.btn {
    padding: 0.78rem 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    border-color: var(--border-glow);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #5a7cff 50%, var(--accent-2) 100%);
    color: #05070a;
    border-color: transparent;
    box-shadow: 0 4px 24px rgba(77, 163, 255, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 6px 32px rgba(77, 163, 255, 0.45);
}

.btn-secondary {
    background: var(--bg-elev);
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--surface-hover);
}

.btn-ghost {
    background: transparent;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.35rem 2rem;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25));
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    color: var(--muted);
}

.footer-links a {
    color: var(--text);
}

.footer-discord {
    color: var(--muted);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .35rem .6rem;
    flex-basis: 100%;
    width: 100%;
    font-size: .88rem;
    color: var(--muted);
}

.footer-legal a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-legal a:hover {
    color: var(--text);
}

.footer-legal-sep {
    user-select: none;
    opacity: 0.5;
}

.section {
    width: min(1140px, 100%);
    margin: 0 auto;
    padding: 2.75rem 1.35rem;
}

.section h2 {
    font-size: clamp(1.45rem, 2.4vw, 2.05rem);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    display: block;
    width: 2.5rem;
    height: 3px;
    margin-top: 0.5rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: 0.85;
}

.section-intro {
    max-width: 760px;
    color: var(--muted);
    margin-bottom: 1.15rem;
    font-size: 1.02rem;
}

.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(165deg, var(--surface) 0%, rgba(255, 255, 255, 0.02) 100%);
    padding: 1.15rem;
    box-shadow: var(--shadow-sm);
}

/* Cartes avec tilt 3D (JS + perspective) */
.card.card-ux {
    padding: 0;
    overflow: visible;
    transform-style: preserve-3d;
    perspective: 900px;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.card.card-ux:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-md), 0 0 0 1px var(--accent-dim);
}

.card-ux-inner {
    padding: 1rem;
    border-radius: inherit;
    transform-style: preserve-3d;
    transition: transform 0.12s ease-out;
    backface-visibility: hidden;
}

/* Curseur personnalisé (classe ajoutée par site-ux.js) */
body.ux-cursor-on {
    cursor: none;
}

body.ux-cursor-on a,
body.ux-cursor-on button,
body.ux-cursor-on input,
body.ux-cursor-on textarea,
body.ux-cursor-on select,
body.ux-cursor-on [role="button"] {
    cursor: none;
}

.ux-cursor-dot,
.ux-cursor-ring {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.ux-cursor-dot {
    width: 7px;
    height: 7px;
    background: var(--accent-bright);
    box-shadow: 0 0 14px rgba(77, 163, 255, 0.7);
}

.ux-cursor-ring {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-glow);
    background: var(--accent-dim);
    transition:
        width 0.25s ease,
        height 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        opacity 0.25s ease;
    z-index: 9999;
}

.ux-cursor-glow {
    position: fixed;
    left: 0;
    top: 0;
    width: 140px;
    height: 140px;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(77, 163, 255, 0.28) 0%, rgba(139, 109, 255, 0.12) 40%, transparent 68%);
    filter: blur(5px);
    opacity: 0.42;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ux-cursor-dot {
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 10001;
}

body.ux-cursor-hover .ux-cursor-ring {
    width: 48px;
    height: 48px;
    border-color: rgba(126, 200, 255, 0.65);
    background: rgba(77, 163, 255, 0.12);
}

body.ux-cursor-hover .ux-cursor-dot {
    transform: translate(-50%, -50%) scale(0.55);
    opacity: 0.95;
}

body.ux-cursor-hover .ux-cursor-glow {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(1.12);
}

body.ux-cursor-click .ux-cursor-dot {
    transform: translate(-50%, -50%) scale(1.65);
}

body.ux-cursor-click .ux-cursor-ring {
    width: 28px;
    height: 28px;
}

@media (prefers-reduced-motion: reduce) {
    body.ux-cursor-on {
        cursor: auto;
    }

    body.ux-cursor-on a,
    body.ux-cursor-on button,
    body.ux-cursor-on input,
    body.ux-cursor-on textarea,
    body.ux-cursor-on select {
        cursor: auto;
    }

    .ux-cursor-dot,
    .ux-cursor-ring,
    .ux-cursor-glow {
        display: none;
    }
}

.card h3 {
    margin-bottom: .5rem;
}

.card p {
    color: var(--muted);
}

@media (max-width: 900px) {
    .cards-3 {
        grid-template-columns: 1fr;
    }
}
