/* Body et font */
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    color: #f5deb3;
}

/* Background séparé */
#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #050a14; /* fond sombre initial */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0; /* invisible au départ */
    transition: opacity 1s ease, background-image 1s ease;
    z-index: 0;
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 20, 0.85);
    z-index: 1;
}

/* Header */
header {
    position: relative;
    text-align: center;
    padding: 30px;
    z-index: 2;
}

.logo {
    max-width: 750px;
    animation: fadeIn 1.5s ease;
}

/* Content */
.content {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 30px 80px;
    z-index: 2;
}

.left, .right {
    width: 40%;
    background: rgba(0,0,0,0.55);
    padding: 5px;
    border-radius: 12px;
    animation: slideUp 1.2s ease;
}

h2 {
    margin-bottom: 15px;
    color: #ffd27d;
}

.rules li, .staff li {
    margin: 10px 0;
    list-style: none;
}

/* Footer */
footer {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.loading-text {
    margin-bottom: 10px;
    font-size: 18px;
}

.bar {
    width: 60%;
    height: 16px;
    background: rgba(255,255,255,0.15);
    margin: auto;
    border-radius: 20px;
    overflow: hidden;
}

.progress {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #ffd27d, #ffae42);
    animation: loading 2s infinite linear;
}

@keyframes loading {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
