@import url("omega-cinematic.css");
:root {
    --bg-dark: rgba(10, 14, 22, 0.78);
    --bg-card: rgba(17, 24, 39, 0.82);
    --bg-card-soft: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #f4f7fb;
    --text-soft: #b8c3d6;
    --accent: #58a5ff;
    --accent-2: #7dd3fc;
    --success: #58ad6a;
    --danger: #d96b6b;
    --shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
    --radius-xl: 22px;
    --radius-lg: 16px;
    --radius-md: 12px;
}

* { box-sizing: border-box; }

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('../images/background.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text);
    min-height: 100vh;
    position: relative;
}

.page-overlay {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 8, 14, 0.55), rgba(6, 10, 18, 0.82)),
        radial-gradient(circle at top right, rgba(88, 165, 255, 0.10), transparent 30%);
    pointer-events: none;
    z-index: 0;
}

.main-header,
#main-content {
    position: relative;
    z-index: 1;
}

.main-header {
    padding: 18px 24px 8px;
}

.banner-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.banner-image {
    max-width: min(100%, 1080px);
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.top-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

button {
    border: none;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.top-bar button,
.btn-primary {
    background: linear-gradient(180deg, rgba(67, 86, 116, 0.95), rgba(39, 54, 77, 0.95));
    color: white;
    padding: 11px 18px;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.20);
}

.top-bar button:hover,
.btn-primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, rgba(82, 104, 137, 0.98), rgba(48, 67, 96, 0.98));
}

#main-content {
    width: min(100%, 1080px);
    margin: 0 auto;
    padding: 24px;
    display: grid;
    gap: 24px;
}

.panel {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    overflow: hidden;
    padding: 22px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.panel-kicker {
    margin: 0 0 4px;
    color: var(--accent-2);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

h1, h2 {
    margin-bottom: 0;
    color: var(--text);
}

.intro-text {
    color: var(--text-soft);
    line-height: 1.7;
    margin-bottom: 0;
}

.auth-form {
    display: grid;
    gap: 10px;
}

.auth-form label {
    font-size: 14px;
    color: var(--text-soft);
}

.auth-form input {
    width: 100%;
    padding: 13px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    outline: none;
}

.auth-form input::placeholder {
    color: rgba(184, 195, 214, 0.72);
}

.auth-form input:focus {
    border-color: rgba(125, 211, 252, 0.65);
    box-shadow: 0 0 0 3px rgba(88, 165, 255, 0.14);
}

.form-message {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-weight: bold;
}

.form-message.error {
    background: rgba(217, 107, 107, 0.18);
    border: 1px solid rgba(217, 107, 107, 0.35);
    color: #ffb0b0;
}

.form-message.success {
    background: rgba(88, 173, 106, 0.18);
    border: 1px solid rgba(88, 173, 106, 0.35);
    color: #a9f0b6;
}

.hidden {
    display: none;
}

@media (max-width: 640px) {
    .main-header,
    #main-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .top-bar button {
        width: 100%;
    }
}

/* =========================================================
   Patch V6 — Inscription harmonisée avec le thème Village
   Barre, boutons, panels et champs en angles coupés.
   ========================================================= */
:root {
    --omega-bg: #030915;
    --omega-panel: rgba(5, 12, 26, 0.94);
    --omega-panel-2: rgba(8, 19, 40, 0.88);
    --omega-border: rgba(53, 138, 255, 0.42);
    --omega-border-soft: rgba(53, 138, 255, 0.18);
    --omega-text: #eef6ff;
    --omega-muted: #a2b4ce;
    --omega-blue: #1692ff;
    --omega-blue-2: #3cb0ff;
    --omega-shadow: 0 0 0 1px rgba(18, 93, 198, 0.12), 0 22px 40px rgba(0,0,0,0.35), 0 0 35px rgba(0, 102, 255, 0.12);
    --omega-cut: polygon(12px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 8px 100%, 0 calc(100% - 8px), 0 12px);
    --omega-panel-cut: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
    --omega-nav-cut: polygon(36px 0, calc(100% - 36px) 0, 100% 28px, 100% calc(100% - 28px), calc(100% - 36px) 100%, 36px 100%, 0 calc(100% - 28px), 0 28px);
}

body.ultra-page {
    color: var(--omega-text) !important;
    background:
        radial-gradient(circle at top right, rgba(0,113,255,0.08), transparent 28%),
        linear-gradient(180deg, rgba(1,5,12,0.90), rgba(1,6,15,0.98)),
        url('../images/background.jpeg') center/cover fixed no-repeat !important;
}

.main-header {
    padding: 10px 8px 4px !important;
}

.banner-wrap {
    margin-bottom: 8px !important;
}

.banner-image {
    width: min(100%, 1620px) !important;
    max-width: 1620px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(53, 138, 255, 0.38) !important;
    box-shadow: var(--omega-shadow) !important;
}

.top-bar {
    width: min(1620px, calc(100% - 8px)) !important;
    margin: 8px auto 0 !important;
    padding: 14px 28px !important;
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    background: linear-gradient(180deg, rgba(5, 13, 30, .94), rgba(2, 9, 22, .94)) !important;
    border: 1px solid rgba(55, 130, 255, .28) !important;
    box-shadow: var(--omega-shadow) !important;
    border-radius: 0 !important;
    clip-path: var(--omega-nav-cut) !important;
}

button,
.top-bar button,
.btn-primary,
.secondary-button,
.btn-outline {
    position: relative;
    overflow: hidden;
    border-radius: 0 !important;
    clip-path: var(--omega-cut) !important;
    border: 1px solid rgba(68, 156, 255, 0.48) !important;
    background: linear-gradient(180deg, rgba(12, 31, 62, .92), rgba(4, 16, 36, .94)) !important;
    color: #fff !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        inset 0 -12px 22px rgba(0, 31, 74, .22),
        0 10px 22px rgba(0,0,0,.25) !important;
    font-family: inherit !important;
    font-weight: 800 !important;
    letter-spacing: .01em !important;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, filter .16s ease, background .16s ease !important;
}

.top-bar button:nth-child(2),
.btn-primary {
    background: linear-gradient(180deg, rgba(47, 141, 255, .98), rgba(17, 78, 204, .98)) !important;
}

button::before,
.top-bar button::before,
.btn-primary::before,
.secondary-button::before,
.btn-outline::before {
    content: '';
    position: absolute;
    inset: 1px;
    pointer-events: none;
    opacity: 0;
    background:
        linear-gradient(90deg, transparent, rgba(107, 210, 255, .24), transparent),
        radial-gradient(circle at 50% 0%, rgba(112, 199, 255, .26), transparent 54%);
    transform: translateX(-35%);
    transition: opacity .16s ease, transform .22s ease;
}

button:hover,
.top-bar button:hover,
.btn-primary:hover,
.secondary-button:hover,
.btn-outline:hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.08) !important;
    border-color: rgba(106, 211, 255, .9) !important;
    box-shadow:
        inset 0 0 18px rgba(73, 167, 255, .24),
        0 0 0 1px rgba(73, 167, 255, .18),
        0 0 24px rgba(38, 145, 255, .24),
        0 12px 24px rgba(0,0,0,.28) !important;
}

button:hover::before,
.top-bar button:hover::before,
.btn-primary:hover::before,
.secondary-button:hover::before,
.btn-outline:hover::before {
    opacity: 1;
    transform: translateX(35%);
}

.ultra-hero,
.panel,
.form-panel,
.intro-panel,
.ultra-side-card,
.form-message {
    border-radius: 0 !important;
    clip-path: var(--omega-panel-cut) !important;
    border: 1px solid var(--omega-border) !important;
    background: linear-gradient(180deg, rgba(4, 10, 23, 0.96), rgba(2, 8, 18, 0.96)) !important;
    box-shadow: var(--omega-shadow) !important;
}

#main-content,
.ultra-hero {
    width: min(1680px, calc(100% - 16px)) !important;
}

.panel-kicker,
.ultra-eyebrow,
.ultra-side-label {
    color: var(--omega-blue-2) !important;
    letter-spacing: .16em !important;
    font-weight: 900 !important;
}

.auth-form input {
    border-radius: 0 !important;
    clip-path: var(--omega-cut) !important;
    border: 1px solid rgba(72, 158, 255, .30) !important;
    background: rgba(5, 16, 36, .82) !important;
    color: var(--omega-text) !important;
}

.auth-form input:focus {
    border-color: rgba(106, 211, 255, .82) !important;
    box-shadow: 0 0 0 3px rgba(50, 139, 255, .16), 0 0 24px rgba(50, 139, 255, .18) !important;
}

.auth-form label,
.intro-text,
.ultra-hero-sub,
.ultra-side-help {
    color: var(--omega-muted) !important;
}

@media (max-width: 720px) {
    .top-bar {
        clip-path: var(--omega-panel-cut) !important;
        padding: 12px !important;
    }

    .top-bar button {
        width: 100%;
    }
}
