:root {
    --bg: #0a1208;
    --bg-card: rgba(14, 24, 12, 0.92);
    --text: #e8f5e4;
    --muted: #7a9a72;
    --accent: #6bdc4a;
    --accent2: #a8f070;
    --border: rgba(107, 220, 74, 0.22);
    --soon: #c4a035;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'DM Sans', system-ui, sans-serif;
    background:
        radial-gradient(ellipse at 20% -5%, rgba(60, 120, 40, 0.28) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 10%, rgba(40, 90, 30, 0.15) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 100%, #0d180a 0%, var(--bg) 65%);
    color: var(--text);
    line-height: 1.6;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

.lf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1.25rem;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 18, 8, 0.88);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.lf-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.lf-logo__mark {
    width: 36px;
    height: 36px;
    display: block;
    flex-shrink: 0;
}

.lf-logo:hover { text-decoration: none; opacity: 0.9; }

.lf-logo__dot { color: var(--accent); }

.lf-header__end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.45rem 1.05rem;
    margin-left: auto;
    min-width: 0;
}

.lf-lang {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 8;
}

.lf-lang__btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    min-width: 2.45rem;
    height: 1.8rem;
    padding: 0 0.5rem;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    font: 600 0.68rem/1 inherit;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
}

.lf-lang__btn::after {
    content: "";
    width: 0.34rem;
    height: 0.34rem;
    margin-top: -2px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.7;
}

.lf-lang.is-open .lf-lang__btn::after {
    margin-top: 2px;
    transform: rotate(-135deg);
}

.lf-lang__btn:hover,
.lf-lang.is-open .lf-lang__btn {
    color: var(--accent2);
    border-color: var(--accent);
}

.lf-lang__menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 9rem;
    padding: 4px;
    border: 1px solid rgba(107, 220, 74, 0.28);
    border-radius: 8px;
    background: #0a1208;
    color: #e8f5e4;
    color-scheme: dark;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    z-index: 30;
}

.lf-lang__opt {
    appearance: none;
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: #c8e4c0;
    padding: 0.48rem 0.6rem;
    border-radius: 6px;
    font: 600 0.8rem/1.2 inherit;
    letter-spacing: 0.01em;
    text-transform: none;
    cursor: pointer;
}

.lf-lang__opt:hover,
.lf-lang__opt:focus-visible {
    color: #e8f5e4;
    background: rgba(107, 220, 74, 0.16);
}

.lf-lang__opt[aria-selected="true"] {
    color: #a8f070;
    background: rgba(107, 220, 74, 0.12);
}

.lf-header nav,
.lf-header__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem 0.85rem;
    flex-wrap: wrap;
    flex: 0 1 auto;
    min-width: 0;
}

.lf-header__nav > a,
.lf-nav-drop__btn {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.2;
}

.lf-header__nav > a:hover,
.lf-nav-drop__btn:hover,
.lf-nav-drop.is-open .lf-nav-drop__btn {
    color: var(--accent2);
    text-decoration: none;
}

.lf-header__nav > a[aria-current="page"] { color: var(--text); }

.lf-nav-drop {
    position: relative;
}

.lf-nav-drop.is-open::before {
    content: "";
    position: absolute;
    left: auto;
    right: 0;
    top: 100%;
    height: 0.5rem;
    width: min(26.5rem, calc(100vw - 1.5rem));
    z-index: 59;
}

.lf-nav-drop__btn {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0.4rem 0.15rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.lf-nav-drop__btn:focus-visible,
.lf-header__nav > a:focus-visible,
.lf-header__account:focus-visible,
.lf-nav-drop__item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.lf-nav-drop__btn::after {
    content: "";
    width: 0.38rem;
    height: 0.38rem;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.72;
    transition: transform 0.15s ease;
}

.lf-nav-drop.is-open .lf-nav-drop__btn::after {
    transform: rotate(-135deg) translateY(-1px);
}

.lf-nav-drop:not(.lf-nav-drop--wide) .lf-nav-drop__panel {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.lf-nav-drop__panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: auto;
    right: 0;
    z-index: 60;
    min-width: 16.5rem;
    max-width: min(22rem, calc(100vw - 1.5rem));
    max-height: min(70vh, 28rem);
    overflow: auto;
    padding: 0.45rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(10, 18, 8, 0.96);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(107, 220, 74, 0.08);
    backdrop-filter: blur(16px);
    overscroll-behavior: contain;
}

.lf-nav-drop--wide .lf-nav-drop__panel {
    left: auto;
    right: 0;
    width: min(26.5rem, calc(100vw - 1.5rem));
    max-width: min(26.5rem, calc(100vw - 1.5rem));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.15rem;
}

.lf-nav-drop:not(.is-open) .lf-nav-drop__panel {
    display: none !important;
}

.lf-nav-drop__item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.42rem 0.55rem;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
}

.lf-nav-drop__item:hover {
    background: rgba(107, 220, 74, 0.12);
    color: var(--accent2);
    text-decoration: none;
}

.lf-nav-drop__item--soon {
    cursor: default;
    opacity: 0.78;
    pointer-events: none;
}

.lf-nav-drop__item--soon:hover {
    background: transparent;
    color: var(--text);
}

.lf-nav-drop__soon {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--soon);
}

.lf-nav-drop__item img {
    width: 2.35rem;
    height: 2.35rem;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #0d180a;
    flex-shrink: 0;
}

.lf-nav-drop__name {
    min-width: 0;
    line-height: 1.25;
}

.lf-header__account {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.lf-header__account:hover {
    color: var(--accent2);
    text-decoration: none;
}

.lf-header__account[aria-current="page"] { color: var(--text); }

.lf-header__chip {
    display: inline-block;
    max-width: 10.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(107, 220, 74, 0.1);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.lf-header__pass {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.lf-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.lf-hero__eyebrow {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 0.75rem;
}

.lf-hero h1,
.lf-hero__brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.4rem, 6vw, 3.5rem);
    font-weight: 700;
    margin: 0 0 1rem;
    line-height: 1.1;
}

.lf-hero__lead {
    max-width: 38rem;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.1rem;
}

.lf-section {
    margin-bottom: 3.75rem;
    scroll-margin-top: 4.5rem;
}

.lf-section__head {
    margin-bottom: 1.5rem;
}

.lf-section__eyebrow {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 0.4rem;
}

.lf-section__head h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.55rem, 3.5vw, 2rem);
    font-weight: 700;
    margin: 0 0 0.45rem;
}

.lf-section__head p {
    margin: 0;
    max-width: 36rem;
    color: var(--muted);
    font-size: 1rem;
}

.lf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.lf-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s;
}

.lf-card:hover {
    border-color: rgba(107, 220, 74, 0.45);
    transform: translateY(-2px);
}

.lf-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0d180a;
}

.lf-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.lf-card:hover .lf-card__media img {
    transform: scale(1.04);
}

.lf-card__media--static {
    cursor: default;
}

.lf-card__body {
    padding: 1.25rem 1.35rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lf-card--soon { opacity: 0.9; }

.lf-card__badge {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    background: rgba(107, 220, 74, 0.18);
    color: var(--accent2);
    margin-bottom: 0.75rem;
}

.lf-card__badge--live {
    background: rgba(107, 220, 74, 0.12);
    color: var(--accent);
}

.lf-card__badge--soon {
    background: rgba(196, 160, 53, 0.15);
    color: var(--soon);
}

.lf-card__badge--classic {
    background: rgba(232, 176, 110, 0.16);
    color: #e8b06e;
}

.lf-card h2,
.lf-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    margin: 0 0 0.5rem;
}

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

.lf-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.lf-cta {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    background: var(--accent);
    color: #0a1208;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, border-color 0.2s;
    border: 1px solid transparent;
}

.lf-cta:hover {
    background: var(--accent2);
    text-decoration: none;
    transform: scale(1.02);
}

.lf-cta--ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--accent2);
}

.lf-cta--ghost:hover {
    background: rgba(107, 220, 74, 0.1);
    border-color: rgba(107, 220, 74, 0.45);
    color: var(--accent2);
    transform: none;
}

.lf-cta--disabled {
    background: rgba(122, 154, 114, 0.25);
    color: var(--muted);
    cursor: not-allowed;
    pointer-events: none;
}

button.lf-cta {
    font: inherit;
    cursor: pointer;
    appearance: none;
}

.lf-studio {
    margin: 4rem auto 0;
    max-width: 46rem;
    padding: 1.6rem 1.25rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.lf-studio strong {
    color: var(--text);
    font-weight: 600;
}

/* Le dernier lien de la page : celui que lit quelqu'un qui a tout scrolle. */
.lf-studio .lf-studio__go {
    display: inline-block;
    margin-top: 0.35rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
}

.lf-studio .lf-studio__go:hover,
.lf-studio .lf-studio__go:focus-visible {
    border-bottom-color: var(--accent);
}

.lf-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

.lf-footer p { margin: 0; }

.lf-legal {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.lf-legal h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin: 0 0 0.75rem;
}

.lf-legal__lead {
    color: var(--muted);
    margin: 0 0 2rem;
}

.lf-legal h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    color: var(--accent2);
    margin: 2rem 0 0.6rem;
}

.lf-legal p, .lf-legal li {
    color: var(--text);
    font-size: 0.98rem;
}

.lf-legal ul {
    padding-left: 1.2rem;
    color: var(--muted);
}

.lf-legal code {
    font-size: 0.9em;
    color: var(--accent2);
}

.lf-account {
    max-width: 980px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.lf-account__hero {
    margin: 0 0 1.4rem;
    max-width: 38rem;
}

.lf-account h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 4.2vw, 2.5rem);
    margin: 0 0 0.75rem;
    line-height: 1.12;
    font-weight: 700;
}

.lf-account__lead {
    color: var(--muted);
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.65;
}

.lf-account__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 1.35rem;
    align-items: start;
}

.lf-account__card,
.lf-pass {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.3rem 1.35rem 1.4rem;
}

.lf-account__tabs {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 1rem;
    padding: 0.28rem;
    background: rgba(8, 16, 8, 0.55);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.lf-account__tabs button {
    flex: 1;
    background: transparent;
    border: 0;
    color: var(--muted);
    font-weight: 700;
    padding: 0.7rem 0.65rem;
    border-radius: 9px;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
}

.lf-account__tabs button.on {
    color: #0a1208;
    background: var(--accent);
}

.lf-form {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.lf-form__intro {
    margin: 0 0 0.55rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.lf-form label {
    font-weight: 600;
    font-size: 0.86rem;
    letter-spacing: 0.02em;
    margin-top: 0.35rem;
}

.lf-form input {
    width: 100%;
    background: #0d180a;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font: inherit;
    padding: 0.7rem 0.85rem;
    min-height: 44px;
}

.lf-form input::placeholder {
    color: rgba(122, 154, 114, 0.72);
}

.lf-form input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: rgba(107, 220, 74, 0.55);
}

.lf-hint {
    margin: 0.15rem 0 0.35rem;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.lf-hint--center { text-align: center; margin-top: 0.35rem; }

.lf-text-btn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--accent2);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lf-cta--block {
    width: 100%;
    text-align: center;
    margin-top: 0.45rem;
    padding: 0.78rem 1.1rem;
    font-size: 0.98rem;
}

.lf-cta:disabled {
    opacity: 0.58;
    cursor: wait;
    transform: none;
}

.lf-account__hello {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    margin: 0 0 0.45rem;
}

.lf-account__status { color: var(--muted); margin: 0.85rem 0 1.1rem; }

.lf-friends {
    margin: 1.1rem 0 0.4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.lf-friends h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    margin: 0 0 0.7rem;
}

.lf-friends__add label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.lf-friends__row {
    display: flex;
    gap: 0.5rem;
}

.lf-friends__row input {
    flex: 1;
    background: #081006;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    font: inherit;
}

.lf-friends__row input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.lf-friends__list {
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0;
}

.lf-friends__list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(107, 220, 74, 0.12);
}

.lf-friends__empty {
    color: var(--muted);
    font-size: 0.92rem;
    justify-content: center;
}

.lf-pass {
    position: relative;
    overflow: hidden;
}

.lf-pass::before {
    content: '';
    position: absolute;
    inset: auto -20% 55% 40%;
    height: 180px;
    background: radial-gradient(circle, rgba(107, 220, 74, 0.18), transparent 70%);
    pointer-events: none;
}

.lf-pass h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.45rem;
    margin: 0 0 0.35rem;
    position: relative;
}

.lf-pass__price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.1rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 1rem;
    line-height: 1;
    position: relative;
}

.lf-pass__price span {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: 0.45rem;
}

.lf-pass__perks {
    margin: 0 0 1.2rem;
    padding: 0;
    list-style: none;
    position: relative;
}

.lf-pass__perks li {
    color: var(--muted);
    font-size: 0.95rem;
    padding: 0.45rem 0 0.45rem 1.35rem;
    position: relative;
    border-top: 1px solid var(--border);
}

.lf-pass__perks li:first-child { border-top: 0; }

.lf-pass__perks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--accent);
}

.lf-pass__fine {
    margin: 0.9rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
    position: relative;
}

.lf-flash {
    margin-bottom: 1.2rem;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    background: rgba(107, 220, 74, 0.12);
    border: 1px solid var(--border);
}

.lf-flash--ok { color: var(--accent2); }
.lf-flash--warn {
    color: #e8b06e;
    background: rgba(196, 160, 53, 0.12);
}

.lf-account__card[hidden],
.lf-form[hidden],
.lf-account__tabs[hidden] {
    display: none !important;
}

@media (max-width: 760px) {
    .lf-account__layout { grid-template-columns: 1fr; }
    .lf-admin__kpis,
    .lf-admin__split { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .lf-header {
        flex-wrap: nowrap;
        gap: 0.5rem 0.7rem;
        padding: 0.7rem 0.9rem;
    }
    .lf-header__end {
        gap: 0.3rem 0.55rem;
    }
    .lf-header nav,
    .lf-header__nav {
        flex: 0 1 auto;
        width: auto;
        gap: 0.1rem 0.4rem;
    }
    .lf-nav-drop__btn,
    .lf-header__nav > a,
    .lf-header__account {
        font-size: 0.82rem;
    }
    .lf-nav-drop__panel,
    .lf-nav-drop--wide .lf-nav-drop__panel {
        position: fixed;
        top: 3.25rem;
        left: 0.55rem;
        right: 0.55rem;
        width: auto;
        max-width: none;
        max-height: calc(100dvh - 4rem);
    }
    .lf-nav-drop.is-open::before { display: none; }
}

@media (max-width: 480px) {
    .lf-header {
        padding: 0.7rem 0.75rem;
        flex-wrap: nowrap;
        gap: 0.45rem 0.55rem;
    }
    .lf-logo__text { display: none; }
    .lf-header nav,
    .lf-header__nav {
        flex: 0 1 auto;
        width: auto;
        gap: 0.05rem 0.35rem;
    }
    .lf-nav-drop__btn,
    .lf-header__nav > a { font-size: 0.8rem; }
    .lf-header__account {
        font-size: 0.8rem;
    }
    .lf-header__chip {
        max-width: 8.5rem;
        font-size: 0.82rem;
        padding: 0.14rem 0.55rem;
    }
    main { padding: 1.75rem 1rem 3rem; }
    .lf-legal { padding: 1.75rem 1rem 3rem; }
    .lf-account { padding: 1.6rem 1rem 3.25rem; }
    .lf-account__card,
    .lf-pass { padding: 1.25rem 1.1rem 1.35rem; }
    .lf-account__tabs button { padding: 0.75rem 0.4rem; font-size: 0.86rem; }
    .lf-admin__kpis,
    .lf-admin__split { grid-template-columns: 1fr; }
    .lf-table { font-size: 0.84rem; }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.lf-admin { padding: 0 0 2rem; }
.lf-admin h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.1;
    margin: 0 0 0.75rem;
}
.lf-admin h2 {
    font-family: 'Space Grotesk', sans-serif;
    margin: 0 0 0.4rem;
}
.lf-admin h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    margin: 0 0 0.85rem;
}
.lf-admin__block { margin-bottom: 2.75rem; }
.lf-admin__stats-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}
.lf-admin__stats-tools { flex-shrink: 0; }
.lf-admin__stats-tools .lf-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.lf-admin__stats-error {
    color: #e8b06e;
    margin: -0.35rem 0 1rem;
    font-size: 0.9rem;
}
.lf-spin {
    width: 0.7rem;
    height: 0.7rem;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: lf-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes lf-spin {
    to { transform: rotate(360deg); }
}
button.lf-cta:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}
.lf-admin__note {
    color: var(--muted);
    margin: 0 0 1.25rem;
    max-width: 42rem;
}
.lf-admin__kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}
.lf-admin__kpis--mix { margin-bottom: 1.4rem; }
.lf-admin__activity {
    margin: 0 0 1.1rem;
    color: var(--text);
    font-size: 0.95rem;
}
.lf-admin__activity strong { font-weight: 700; }
.lf-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.1rem;
}
.lf-stat__label {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.lf-stat__value {
    margin: 0.35rem 0 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
}
.lf-stat__hint {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
}
.lf-admin__split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1rem;
}
.lf-admin__table-card { padding: 1.15rem 1.1rem 1.25rem; }
.lf-admin__search {
    display: flex;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}
.lf-admin__search input {
    flex: 1;
    min-width: 12rem;
    background: rgba(10, 18, 8, 0.65);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 0.65rem 0.8rem;
    font: inherit;
}
.lf-admin__search input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}
.lf-table-wrap { overflow-x: auto; }
.lf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.lf-table th,
.lf-table td {
    text-align: left;
    padding: 0.55rem 0.5rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.lf-table th {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.lf-admin__pager {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1rem;
}
.lf-pill {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
}
.lf-pill--ok { color: var(--accent2); border-color: rgba(107, 220, 74, 0.4); }
.lf-pill--warn { color: #e8b06e; border-color: rgba(196, 160, 53, 0.45); }
.lf-pill--original { color: var(--accent); border-color: rgba(107, 220, 74, 0.45); }
.lf-pill--classic { color: var(--muted); }
.lf-muted { color: var(--muted); }
.lf-admin__top,
.lf-admin__recent {
    list-style: none;
    margin: 0;
    padding: 0;
}
.lf-admin__top li,
.lf-admin__recent li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border);
}
.lf-admin__top li:last-child,
.lf-admin__recent li:last-child { border-bottom: 0; }
.lf-admin__rank {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--muted);
    width: 1.4rem;
}
.lf-admin__top-name { flex: 1; font-weight: 600; }
.lf-admin__top-n {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    margin-left: auto;
}
.lf-admin__chart-card { margin: 0 0 1rem; }
.lf-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 7.5rem;
    margin: 0 0 1.1rem;
    padding: 0.35rem 0 0;
}
.lf-chart__col {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
    min-width: 0;
}
.lf-chart__bar {
    width: 100%;
    background: var(--accent);
    opacity: 0.82;
    border-radius: 3px 3px 0 0;
    min-height: 2px;
}
.lf-admin__split--heat { margin: 0 0 1rem; }
.lf-heat {
    display: grid;
    grid-template-columns: repeat(24, minmax(0, 1fr));
    gap: 4px 3px;
    align-items: end;
}
.lf-heat--week { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.lf-heat__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}
.lf-heat__cell {
    width: 100%;
    height: 1.35rem;
    border-radius: 4px;
    background: var(--accent);
    opacity: var(--a, 0.1);
}
.lf-heat__label {
    font-size: 0.62rem;
    color: var(--muted);
    line-height: 1;
    white-space: nowrap;
}
.lf-delta { font-weight: 600; font-size: 0.82rem; color: var(--muted); }
.lf-delta--up { color: var(--accent2); }
.lf-delta--down { color: #e8b06e; }
.lf-pill--soon { color: var(--soon); border-color: rgba(196, 160, 53, 0.45); }

/* =====================================================================
   Défi du jour
   ===================================================================== */

.lf-daily-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1px;
    max-width: 60rem;
    margin: 0 auto;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.lf-daily-bar__item {
    flex: 1 1 8rem;
    padding: 0.9rem 1.1rem 1rem;
    background: var(--bg-card);
}

.lf-daily-bar__item b {
    display: block;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 1.9rem;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: var(--accent2);
}

.lf-daily-bar__item span {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.lf-daily-bar__actions {
    flex: 1 1 12rem;
    padding: 0.9rem 1.1rem;
    background: var(--bg-card);
    text-align: center;
}

.lf-daily-note {
    max-width: 60rem;
    margin: 1rem auto 0;
    padding: 0 1.1rem;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

/* Une carte déjà jouée aujourd'hui : présente, mais qui ne réclame plus. */
.lf-card--done {
    opacity: 0.72;
}

.lf-card--done:hover,
.lf-card--done:focus-within {
    opacity: 1;
}

/* =====================================================================
   Défi du jour — score et classement
   ===================================================================== */

.lf-score {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    max-width: 62rem;
    margin: 0 auto;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

@media (min-width: 46rem) {
    .lf-score { grid-template-columns: minmax(15rem, 20rem) 1fr; }
    .lf-score__actions { grid-column: 1 / -1; }
}

.lf-score__today,
.lf-score__stats,
.lf-score__actions {
    background: var(--bg-card);
    padding: 1.15rem 1.25rem 1.25rem;
}

.lf-score__k {
    margin: 0 0 0.15rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.lf-score__big {
    margin: 0;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 3.1rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--accent2);
}

.lf-score__big small {
    margin-left: 0.4rem;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--muted);
}

.lf-score__hint {
    margin: 0.7rem 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--muted);
}

/* --- les trois pastilles + le bonus ---------------------------------- */

.lf-slots {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.lf-slot {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: transparent;
    display: grid;
    place-items: center;
    font-size: 0.9rem;
    color: transparent;
    transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}

.lf-slot.is-on {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.04);
}

.lf-slot--bonus {
    border-style: dashed;
    color: var(--muted);
    margin-left: 0.35rem;
}

.lf-slot--bonus.is-on {
    background: var(--soon);
    border-color: var(--soon);
    border-style: solid;
    color: #1a1405;
}

@media (prefers-reduced-motion: reduce) {
    .lf-slot { transition: none; }
}

/* --- les compteurs --------------------------------------------------- */

.lf-score__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    gap: 1rem 0.75rem;
    align-content: center;
}

.lf-dstat b {
    display: block;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 1.75rem;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.lf-dstat span {
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.lf-score__actions { text-align: center; }

/* --- sélecteur de période -------------------------------------------- */

.lf-seg {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 1px;
    margin-bottom: 1.1rem;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.lf-seg__btn {
    appearance: none;
    border: 0;
    padding: 0.5rem 0.95rem;
    background: var(--bg-card);
    color: var(--muted);
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.lf-seg__btn:hover { color: var(--text); }

.lf-seg__btn.is-on {
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 600;
}

/* --- le classement ---------------------------------------------------- */

.lf-board { display: flex; flex-direction: column; gap: 1px; background: var(--border);
    border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }

.lf-row {
    display: grid;
    grid-template-columns: 2.6rem 1fr auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 1rem;
    background: var(--bg-card);
}

.lf-row__rank {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
    text-align: right;
    color: var(--muted);
}

/* Le podium se distingue par la couleur, pas par une médaille en emoji :
   ça reste lisible en niveaux de gris et à toutes les tailles. */
.lf-row--1 .lf-row__rank { color: #f2c94c; }
.lf-row--2 .lf-row__rank { color: #cfd8dc; }
.lf-row--3 .lf-row__rank { color: #d29154; }

.lf-row__name { color: var(--text); overflow-wrap: anywhere; }
.lf-row__name small { display: block; font-size: 0.75rem; color: var(--muted); }

.lf-row__pts {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
    color: var(--accent2);
    white-space: nowrap;
}

.lf-row--me {
    background: color-mix(in srgb, var(--accent) 14%, var(--bg-card));
    box-shadow: inset 3px 0 0 var(--accent);
}

.lf-row--me .lf-row__name::after {
    content: ' · vous';
    color: var(--muted);
    font-size: 0.8rem;
}

/* --- Bitume (bêta ouverte) : un bandeau, pas une carte ------------------ */
:root { --bitume: #ffc23d; }

.lf-bitume {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 1.75rem;
    align-items: center;
    padding: 1.25rem;
    border: 1px solid rgba(255, 194, 61, 0.28);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 194, 61, 0.07), transparent 55%),
        #111410;
}

.lf-bitume__media {
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}

.lf-bitume__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lf-bitume__body h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.9rem, 4.5vw, 2.6rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    margin: 0 0 0.7rem;
}

.lf-bitume .lf-section__eyebrow { color: var(--bitume); }

.lf-bitume__badge {
    display: inline-block;
    background: var(--bitume);
    color: #1a1406;
}

.lf-bitume__pitch {
    margin: 0 0 0.85rem;
    color: var(--text);
}

.lf-bitume__points {
    margin: 0 0 0.85rem;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.95rem;
}

.lf-bitume__points li {
    padding-left: 1.1rem;
    position: relative;
}

.lf-bitume__points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 0.45rem;
    height: 0.45rem;
    background: var(--bitume);
    transform: rotate(45deg);
}

.lf-bitume__note {
    margin: 0 0 1.1rem;
    font-size: 0.85rem;
    color: var(--muted);
    font-style: italic;
}

.lf-cta.lf-bitume__cta {
    background: var(--bitume);
    border-color: var(--bitume);
    color: #1a1406;
}

.lf-nav-beta {
    font-size: 0.62em;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: super;
    color: var(--bitume);
}

@media (max-width: 760px) {
    .lf-bitume {
        grid-template-columns: 1fr;
        padding: 0.85rem;
        gap: 1.1rem;
    }
}

@media (max-width: 480px) {
    .lf-header__nav > a.lf-nav-bitume { display: none; }
}

.lf-cta.lf-bitume__cta:hover { background: #ffd56e; border-color: #ffd56e; }
