/* ********** GENESIS BLOCK — registre des contributeurs ********** */
:root {
    --gb-ink: #0c0057;
    --gb-indigo: #1800AD;
    --gb-orange: #FF7020;
    --gb-rose: #AB0031;
    --gb-sand: #FFF6EE;
    --gb-mist: #F4F6FB;
    --gb-line: rgba(12, 0, 87, 0.1);
    --gb-display: "Josefin Sans", Georgia, serif;
}

.gb-hero {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: center;
    padding: 7.5rem 0 4.5rem;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(ellipse 70% 55% at 90% 15%, rgba(255, 112, 32, 0.32), transparent 55%),
        radial-gradient(ellipse 50% 45% at 8% 85%, rgba(171, 0, 49, 0.28), transparent 50%),
        linear-gradient(155deg, #070033 0%, #0c0057 40%, #1800AD 75%, #2a0a6e 100%);
}

.gb-hero__glow {
    position: absolute;
    width: 28rem;
    height: 28rem;
    top: -8rem;
    right: -4rem;
    border-radius: 50%;
    background: rgba(255, 112, 32, 0.18);
    filter: blur(4px);
    animation: gb-float 10s ease-in-out infinite;
    pointer-events: none;
}

.gb-hero__grid {
    position: absolute;
    inset: 0;
    opacity: 0.14;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    pointer-events: none;
}

@keyframes gb-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-16px) scale(1.04); }
}

.gb-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 42rem;
}

.gb-hero__brand {
    font-family: var(--gb-display);
    font-weight: 700;
    font-size: clamp(2.8rem, 7vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0 0 1.25rem;
    color: #fff;
}

.gb-hero__title {
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.92;
    margin: 0 0 1rem;
    color: #fff;
}

.gb-hero__lead {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 34rem;
    opacity: 0.88;
    margin: 0 0 2rem;
}

.gb-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.gb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gb-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.gb-btn--primary {
    background: var(--gb-orange);
    color: #fff;
    border-color: var(--gb-orange);
}

.gb-btn--primary:hover {
    background: #e86212;
    color: #fff;
    border-color: #e86212;
}

.gb-btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.gb-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

/* --- Registry --- */
.gb-registry {
    padding: 4.5rem 0 5rem;
    background:
        linear-gradient(180deg, #fff 0%, var(--gb-mist) 100%);
}

.gb-registry__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gb-line);
}

.gb-registry__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gb-orange);
    margin: 0 0 0.4rem;
    font-weight: 600;
}

.gb-registry__title {
    font-family: var(--gb-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: var(--gb-ink);
    margin: 0 0 0.35rem;
}

.gb-registry__count {
    margin: 0;
    color: rgba(12, 0, 87, 0.55);
    font-size: 0.95rem;
}

.gb-search {
    display: flex;
    align-items: stretch;
    min-width: min(100%, 18rem);
    border: 1px solid var(--gb-line);
    background: #fff;
}

.gb-search input {
    flex: 1;
    border: 0;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--gb-ink);
    background: transparent;
    outline: none;
}

.gb-search button {
    border: 0;
    background: var(--gb-ink);
    color: #fff;
    padding: 0 1.1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gb-search button:hover {
    background: var(--gb-indigo);
}

.gb-empty,
.gb-empty-state {
    text-align: center;
    padding: 3.5rem 1rem;
    color: rgba(12, 0, 87, 0.55);
}

.gb-empty-state__glyph {
    font-size: 2rem;
    color: var(--gb-orange);
    margin-bottom: 1rem;
    animation: gb-float 6s ease-in-out infinite;
}

.gb-empty-state__text {
    max-width: 28rem;
    margin: 0 auto 1.5rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--gb-ink);
}

/* --- Ledger rows --- */
.gb-ledger {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--gb-line);
}

.gb-ledger__row {
    display: grid;
    grid-template-columns: 3.2rem 3rem 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1.15rem 0.25rem;
    border-bottom: 1px solid var(--gb-line);
    opacity: 0;
    animation: gb-row-in 0.55s ease forwards;
    animation-delay: calc(var(--gb-i, 0) * 0.035s);
}

@keyframes gb-row-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.gb-ledger__row:hover {
    background: linear-gradient(90deg, rgba(255, 112, 32, 0.06), transparent 60%);
}

.gb-ledger__index {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: rgba(12, 0, 87, 0.35);
}

.gb-ledger__avatar {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--gb-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gb-ink);
    background: linear-gradient(145deg, #fff 0%, #f0ecff 100%);
    border: 1px solid var(--gb-line);
}

.gb-ledger__name {
    display: block;
    font-family: var(--gb-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--gb-ink);
    letter-spacing: -0.01em;
}

.gb-ledger__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    margin-top: 0.25rem;
    font-size: 0.82rem;
    color: rgba(12, 0, 87, 0.55);
}

.gb-ledger__pass {
    color: var(--gb-orange);
    font-weight: 600;
}

.gb-ledger__message {
    margin: 0.45rem 0 0;
    font-size: 0.92rem;
    font-style: italic;
    color: rgba(12, 0, 87, 0.7);
    line-height: 1.45;
    max-width: 40rem;
}

.gb-ledger__date {
    font-size: 0.8rem;
    color: rgba(12, 0, 87, 0.4);
    white-space: nowrap;
}

/* --- Closing --- */
.gb-closing {
    padding: 4.5rem 0;
    background:
        radial-gradient(ellipse 60% 80% at 15% 50%, rgba(255, 112, 32, 0.12), transparent 55%),
        linear-gradient(160deg, #0c0057 0%, #1800AD 100%);
    color: #fff;
    text-align: center;
}

.gb-closing__inner {
    max-width: 34rem;
}

.gb-closing__title {
    font-family: var(--gb-display);
    font-weight: 700;
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    margin: 0 0 0.85rem;
    color: #fff;
}

.gb-closing__text {
    margin: 0 0 1.75rem;
    opacity: 0.88;
    line-height: 1.55;
}

@media (max-width: 767.98px) {
    .gb-hero {
        min-height: auto;
        padding: 6.5rem 0 3.5rem;
    }

    .gb-ledger__row {
        grid-template-columns: 2.4rem 2.5rem 1fr;
        gap: 0.65rem 0.75rem;
    }

    .gb-ledger__date {
        grid-column: 3;
        justify-self: start;
    }

    .gb-ledger__avatar {
        width: 2.4rem;
        height: 2.4rem;
        font-size: 0.75rem;
    }
}
