/*
 * JackFact — portail des associations (index.html), direction « Néon du club ».
 * Dépend de assets/neon/neon.css. Chaque association est un « pass artiste »
 * en carte néon ; le code PIN se saisit dans la fenêtre « Entrée des artistes ».
 * Le portail est public : le bandeau lumineux n'affiche aucune donnée d'association.
 */

.portal-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    padding: 20px clamp(16px, 4vw, 56px);
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.portal-brand img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 0 2px var(--n-cyan), 0 0 18px rgba(56, 232, 255, .5);
}

.portal-brand span {
    font-size: 30px;
}

.home-session {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px 16px;
}

.home-session p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--n-muted);
    font-size: 15px;
}

/* Voyant « ouvert » : décoratif, le texte porte l'information. */
.home-session p::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--n-pink);
    box-shadow: 0 0 10px var(--n-pink);
}

.portal-main {
    flex: 1;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px clamp(16px, 4vw, 56px) 64px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.intro {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 920px;
}

.intro .n-kicker {
    color: var(--n-amber);
    text-shadow: var(--n-glow-led);
}

.intro h1 {
    font-size: clamp(54px, 8.4vw, 128px);
    line-height: .95;
    text-wrap: balance;
}

.intro p {
    margin: 0;
    max-width: 56ch;
    color: var(--n-text-soft);
    font-size: 20px;
}

.intro .gateway-message {
    max-width: 760px;
    padding: 12px 16px;
    background: var(--n-amber);
    color: var(--n-on-neon);
    border-radius: var(--n-radius-sm);
    font-size: 16px;
    font-weight: 800;
}

/* ---------- Pass artistes ---------- */

.choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr));
    gap: 40px;
    align-items: start;
}

.choices-loading {
    grid-column: 1 / -1;
    margin: 0;
    padding: 32px 0;
    color: var(--n-text);
    font-size: 18px;
    font-weight: 800;
}

.choice {
    width: 100%;
    margin: 0;
    border: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.choice .n-card__in {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 30px;
}

.choice:nth-child(even) {
    --n-grad: var(--n-grad-alt);
}

.choice:focus-visible {
    outline: 4px solid var(--n-amber);
    outline-offset: 6px;
}

.choice-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.choice-top .n-kicker:first-child {
    color: var(--n-pink-soft);
}

.choice:nth-child(even) .choice-top .n-kicker:first-child {
    color: var(--n-cyan);
}

.choice-top .n-kicker:last-child {
    color: var(--n-muted);
}

.choice-id {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
}

.logo-wrap {
    display: grid;
    place-items: center;
    flex: none;
    width: 132px;
    height: 132px;
    padding: 12px;
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
}

.logo-wrap img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.choice-name {
    flex: 1 1 220px;
    min-width: 0;
    font-family: var(--n-sign);
    font-size: clamp(34px, 3.4vw, 46px);
    line-height: 1;
    color: #fff;
    overflow-wrap: break-word;
}

.choice-desc {
    color: var(--n-text-soft);
    font-size: 17px;
    line-height: 1.45;
}

.choice-fine {
    padding-top: 16px;
    border-top: 1px dashed var(--n-line-strong);
    color: var(--n-muted);
    font-size: 14px;
}

.choice-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
}

.choice-state {
    color: var(--n-muted);
    font-size: 15px;
}

/* Faux bouton : toute la carte est le bouton, ce repère indique l'action. */
.enter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 20px;
    color: var(--n-cyan);
    border: 2px solid var(--n-cyan);
    border-radius: var(--n-radius-md);
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
    transition: background-color .15s, color .15s, box-shadow .2s;
}

.enter svg {
    width: 20px;
    height: 20px;
    transition: transform .2s ease-out;
}

.choice:hover .enter,
.choice:focus-visible .enter {
    background: var(--n-cyan);
    color: var(--n-on-neon);
    box-shadow: 0 0 22px rgba(56, 232, 255, .5);
}

.choice:hover .enter svg {
    transform: translateX(4px);
}

.choice.is-open .enter {
    border-color: var(--n-amber);
    background: var(--n-amber);
    color: var(--n-on-neon);
}

@media (max-width: 620px) {
    .choice .n-card__in {
        padding: 22px 18px;
    }

    .logo-wrap {
        width: 96px;
        height: 96px;
        padding: 8px;
    }

    .enter {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Entrée des artistes (PIN) ---------- */

.pin-layer {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: none;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    padding: 20px;
    background: rgba(10, 8, 7, .9);
}

.pin-layer.open {
    display: grid;
}

.pin-layer .n-card {
    width: min(500px, 100%);
}

.pin-layer .n-card:hover,
.pin-layer .n-card:focus-within {
    transform: none;
    animation: none;
}

.pin-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 30px;
}

.pin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pin-head .n-kicker:first-child {
    color: var(--n-amber);
}

.pin-head .n-kicker:last-child {
    color: var(--n-muted);
}

.pin-panel h2 {
    font-size: 40px;
    line-height: 1.05;
}

.pin-panel p {
    margin: 0;
    color: var(--n-text-soft);
    font-size: 16px;
}

.pin-panel label {
    font-weight: 800;
}

.pin-field {
    display: flex;
    gap: 10px;
}

.pin-input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 62px;
    padding: 0 0 0 .5em;
    background: var(--n-wall-deep);
    color: var(--n-amber);
    border: 2px solid var(--n-line-strong);
    border-radius: var(--n-radius-md);
    font: 900 30px/1 var(--n-led);
    letter-spacing: .5em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.pin-input:focus {
    outline: none;
    border-color: var(--n-amber);
    box-shadow: 0 0 0 3px rgba(255, 194, 71, .4), 0 0 24px rgba(255, 194, 71, .35);
}

.pin-reveal {
    flex: none;
    width: 62px;
    min-height: 62px;
    display: grid;
    place-items: center;
    background: var(--n-wall-deep);
    color: var(--n-text-soft);
    border: 2px solid var(--n-line-strong);
    border-radius: var(--n-radius-md);
    cursor: pointer;
}

.pin-reveal:hover,
.pin-reveal[aria-pressed="true"] {
    border-color: var(--n-amber);
    color: var(--n-amber);
}

.pin-reveal svg {
    width: 24px;
    height: 24px;
}

.pin-panel .pin-error {
    min-height: 24px;
    color: var(--n-danger);
    font-weight: 800;
}

.pin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pin-actions .pin-cancel {
    flex: 1 1 120px;
}

.pin-actions .pin-submit {
    flex: 2 1 200px;
}

/* ---------- Pied et informations légales ---------- */

.legal-home {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px clamp(16px, 4vw, 56px);
    background: rgba(10, 8, 7, .85);
    border-top: 1px solid var(--n-line);
}

.legal-home p {
    margin: 0;
    color: var(--n-muted);
    font-size: 15px;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.legal-button {
    min-height: 44px;
    font-size: 15px;
}

.legal-layer {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: none;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    padding: 20px;
    background: rgba(10, 8, 7, .9);
}

.legal-layer.open {
    display: grid;
}

/* Texte long : feuille de salle claire. */
.legal-panel {
    position: relative;
    width: min(900px, 100%);
    max-height: min(760px, 88vh);
    overflow: auto;
    padding: clamp(24px, 4vw, 42px);
}

.legal-panel > h2 {
    margin: 0 60px 18px 0;
    font-family: var(--n-sign);
    font-weight: 400;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.05;
}

.legal-close {
    position: sticky;
    top: 0;
    float: right;
    width: 48px;
    padding: 0;
    background: var(--n-sheet);
    color: var(--n-ink);
    border-color: var(--n-ink);
    font-size: 20px;
}

.legal-close:hover:not(:disabled) {
    background: var(--n-ink);
    color: var(--n-sheet);
    box-shadow: none;
}

.legal-doc h3 {
    margin: 26px 0 8px;
    font-size: 20px;
    font-weight: 800;
}

.legal-doc p,
.legal-doc li {
    font-size: 16px;
    line-height: 1.6;
}

.legal-doc ul {
    margin: 8px 0 0;
    padding-left: 22px;
}

.legal-muted {
    color: var(--n-ink-soft);
    font-weight: 800;
}

@media (max-width: 560px) {
    .home-session p {
        display: none;
    }

    .legal-links {
        width: 100%;
    }

    .legal-button {
        flex: 1 1 140px;
    }
}
