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

:root {
    --gold:    #c9a84c;
    --gold-lt: #f0c040;
    --red:     #8b1a1a;
    --red-lt:  #e74c3c;
    --bg:      #080808;
    --smoke:   rgba(255,255,255,0.04);
}

html, body {
    width: 100%; height: 100%;
    background: var(--bg);
    overflow: hidden;
    font-family: 'Crimson Text', Georgia, serif;
    color: #ddd;
}

/* ── Fond animé ── */
.bg-layer {
    position: fixed; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 110%, #3a0a0a 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 20% -10%, #1a0808 0%, transparent 60%),
        #080808;
}

/* Grain */
.bg-layer::after {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none; opacity: 0.4;
}

/* Lignes diagonales décoratives */
.bg-lines {
    position: fixed; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(
        -55deg,
        transparent,
        transparent 80px,
        rgba(201,168,76,0.018) 80px,
        rgba(201,168,76,0.018) 81px
    );
}

/* ── Coins ornementaux ── */
.corner {
    position: fixed;
    width: 90px; height: 90px;
    pointer-events: none;
    opacity: 0.35;
}
.corner svg { width: 100%; height: 100%; }
.corner--tl { top: 16px; left: 16px; }
.corner--tr { top: 16px; right: 16px; transform: scaleX(-1); }
.corner--bl { bottom: 16px; left: 16px; transform: scaleY(-1); }
.corner--br { bottom: 16px; right: 16px; transform: scale(-1); }

/* ── Conteneur principal ── */
.stage {
    position: relative; z-index: 10;
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 0;
}

/* ── Titre ── */
.eyebrow {
    font-family: 'Crimson Text', serif;
    font-style: italic;
    font-size: clamp(12px, 1.4vw, 16px);
    letter-spacing: 6px;
    color: var(--gold);
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(52px, 8vw, 110px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -1px;
    color: transparent;
    background: linear-gradient(160deg, #f0d070 0%, #c9a84c 40%, #8b5e1a 80%, #c9a84c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 40px rgba(201,168,76,0.25));
    opacity: 0;
    animation: fadeUp 0.9s ease forwards 0.5s;
    margin: 6px 0 2px;
}

.subtitle {
    font-family: 'Crimson Text', serif;
    font-size: clamp(14px, 1.8vw, 20px);
    letter-spacing: 10px;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.7s;
    margin-bottom: 56px;
}

/* Séparateur */
.divider {
    width: 240px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.9s;
}

/* ── Boutons ── */
.menu {
    display: flex; flex-direction: column;
    align-items: center; gap: 14px;
}

.btn {
    position: relative;
    display: block;
    width: 260px;
    padding: 14px 32px;
    font-family: 'Crimson Text', serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    color: var(--gold-lt);
    border: 1px solid rgba(201,168,76,0.3);
    background: rgba(201,168,76,0.05);
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.15s;
    clip-path: polygon(12px 0%, calc(100% - 12px) 0%, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0% 50%);
    opacity: 0;
}

.btn:nth-child(1) { animation: fadeUp 0.7s ease forwards 1.1s; }
.btn:nth-child(2) { animation: fadeUp 0.7s ease forwards 1.25s; }
.btn:nth-child(3) { animation: fadeUp 0.7s ease forwards 1.4s; }
.btn:nth-child(4) { animation: fadeUp 0.7s ease forwards 1.55s; }
.btn:nth-child(5) { animation: fadeUp 0.7s ease forwards 1.7s; }

.btn:hover {
    color: #fff;
    background: rgba(201,168,76,0.15);
    border-color: var(--gold);
    transform: scaleX(1.04);
}

.btn--primary {
    color: #1a0e00;
    background: linear-gradient(135deg, #c9a84c, #f0c040, #c9a84c);
    border-color: var(--gold-lt);
    font-size: 18px;
}
.btn--primary:hover {
    color: #0d0800;
    background: linear-gradient(135deg, #f0c040, #ffe070, #f0c040);
    border-color: #ffe070;
    transform: scaleX(1.06);
}

/* ── Version ── */
.version {
    position: fixed; bottom: 14px; right: 20px;
    font-size: 11px; letter-spacing: 2px;
    color: rgba(255,255,255,0.15);
    text-transform: uppercase;
    z-index: 20;
}

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Flammes latérales (décoratives) ── */
.ember {
    position: fixed; bottom: 0;
    width: 2px;
    border-radius: 99px;
    background: linear-gradient(to top, #e74c3c, #f0c040, transparent);
    animation: rise linear infinite;
    pointer-events: none;
    z-index: 5;
}
@keyframes rise {
    0%   { transform: translateY(0) translateX(0) scaleX(1); opacity: 0.7; }
    50%  { transform: translateY(-45vh) translateX(var(--drift)) scaleX(1.4); opacity: 0.4; }
    100% { transform: translateY(-90vh) translateX(calc(var(--drift)*1.6)) scaleX(0.5); opacity: 0; }
}