:root {
    --bg: #0b0a09;
    --cream: #f1ead8;
    --text: #e9e3d4;
    --muted: #a8a294;
    --line: rgba(241, 234, 216, .14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', system-ui, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ───── Mur d'affiches ───── */
.wall {
    position: fixed;
    top: -25vh;
    right: -6vw;
    width: 72vw;
    height: 150vh;
    display: flex;
    gap: 22px;
    transform: rotate(-8deg);
    transform-origin: top right;
    pointer-events: none;
}

.wall-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
    animation: drift 90s linear infinite;
    animation-delay: calc(var(--d) * -22s);
}
.wall-col:nth-child(even) { animation-direction: reverse; }

.wall-col img,
.wall-col .ph {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
    flex-shrink: 0;
}
.wall-col img { filter: brightness(.72) saturate(.95); }
.wall-col .ph {
    background: linear-gradient(160deg, #26221d, #15130f);
    border: 1px solid rgba(255, 255, 255, .04);
}

@keyframes drift {
    from { transform: translateY(0); }
    to   { transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .wall-col { animation: none; }
}

/* Assombrit les affiches côté texte */
.shade {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, var(--bg) 0%, rgba(11,10,9,.94) 32%, rgba(11,10,9,.72) 52%, rgba(11,10,9,.15) 75%, rgba(11,10,9,0) 100%),
        linear-gradient(0deg, rgba(11,10,9,.6), transparent 30%);
}

/* ───── Contenu ───── */
.gate {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 36px clamp(16px, 6.6vw, 128px) 60px;
    display: flex;
    flex-direction: column;
}

.logo {
    display: inline-block;
    align-self: flex-start;
    line-height: 0;
}
.logo img {
    height: 44px;
    width: auto;
}

.hero {
    max-width: 920px;
    margin-top: clamp(80px, 14vh, 150px);
}

h1 {
    font-family: 'Archivo', sans-serif;
    font-stretch: 112%;
    font-weight: 900;
    font-size: clamp(48px, 8.3vw, 104px);
    line-height: .88;
    letter-spacing: -.02em;
    text-transform: uppercase;
    color: var(--cream);
}

.lead {
    margin-top: 34px;
    max-width: 650px;
    font-size: clamp(17px, 1.35vw, 23px);
    line-height: 1.42;
    color: var(--text);
}

/* Compte connecté */
.who {
    position: relative;
    display: inline-block;
    margin-top: 34px;
}
.who summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 22px 10px 10px;
    border-radius: 16px;
    cursor: pointer;
    user-select: none;
    transition: background .15s;
}
.who summary::-webkit-details-marker { display: none; }
.who summary:hover,
.who[open] summary { background: rgba(255, 255, 255, .06); }
.who summary img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}
.who strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
}
.who strong svg { color: var(--muted); transition: transform .2s; }
.who[open] strong svg { transform: rotate(180deg); }
.who small {
    display: block;
    margin-top: 3px;
    font-size: 15px;
    color: var(--muted);
}

.who-pop {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 250px;
    padding: 6px;
    background: #131210;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
    z-index: 5;
    animation: pop .15s ease-out;
}
@keyframes pop {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}
.who-pop a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 15px;
    color: var(--text);
    text-decoration: none;
}
.who-pop a svg { color: var(--muted); flex-shrink: 0; }
.who-pop a:hover { background: rgba(255, 255, 255, .06); }

.err {
    margin-top: 18px;
    color: #f08a7e;
    font-size: 15px;
}

/* Boutons */
.actions {
    margin-top: 38px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 64px;
    padding: 0 36px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -.01em;
    text-decoration: none;
    transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }

.btn-main {
    background: var(--cream);
    color: #14120e;
}
.btn-main svg { transition: transform .15s; }
.btn-main:hover svg { transform: translateX(3px); }

.btn-ghost {
    padding: 0 32px;
    font-size: 16px;
    color: #fff;
    border: 1px solid rgba(241,234,216,.32);
    background: rgba(11,10,9,.35);
}
.btn-ghost:hover { border-color: var(--cream); }

hr {
    max-width: 790px;
    margin: 32px 0 30px;
    border: 0;
    border-top: 1px solid var(--line);
}

.beta {
    font-size: 16px;
    color: var(--muted);
}
.beta a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--cream);
    text-underline-offset: 3px;
}
.beta a:hover { color: var(--cream); }

.note { margin-top: 20px; }
.note summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--muted);
    cursor: pointer;
}
.note summary::-webkit-details-marker { display: none; }
.note summary::before {
    content: '';
    border-left: 8px solid var(--muted);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    transition: transform .2s;
}
.note[open] summary::before { transform: rotate(90deg); }
.note p {
    margin: 10px 0 0 20px;
    max-width: 520px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted);
}

/* ───── Mobile ───── */
@media (max-width: 760px) {
    .wall { width: 140vw; right: -40vw; opacity: .45; }
    .shade { background: linear-gradient(180deg, rgba(11,10,9,.55), var(--bg) 60%); }
    .btn { width: 100%; height: 58px; }
}

.credit {
    margin-top: 48px;
    font-size: 12px;
    color: rgba(168, 162, 148, .55);
}
.credit a { color: inherit; }
