/**
 * En-tête aligné sur le site CY TECH (top-bar + bande titre),
 * visuel adapté au thème sombre « Imposteur » (slate / ambre / rouge).
 */

.oc-top-bar {
    position: sticky;
    top: 0;
    z-index: 300;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem 0.5rem;
    padding: 0.55rem clamp(0.45rem, 2.5vw, 1.4rem);
    max-width: 100%;
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(248, 113, 113, 0.22);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}


.oc-top-bar form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem 0.5rem;
    margin: 0;
    min-width: 0;
    max-width: 100%;
}

.oc-status-msg {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oc-status-msg--success {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.28);
}

.oc-status-msg--error {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.oc-top-bar .oc-perm {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 20px;
    padding: 0.2rem 0.55rem;
}

.oc-btn-small {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.95rem;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    background: rgba(30, 41, 59, 0.9);
    color: #fde68a;
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 20px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease,
        border-color 0.18s ease, box-shadow 0.18s ease;
}

.oc-btn-small:hover {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #0f172a;
    border-color: rgba(251, 191, 36, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.oc-btn-logout .oc-btn-logout-pc {
    display: block;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1;
    white-space: nowrap;
}

.oc-btn-logout .oc-btn-logout-mobile {
    display: none;
    line-height: 0;
}

.oc-btn-logout .oc-btn-logout-mobile svg,
.oc-btn-logout .oc-btn-logout-pc svg {
    display: block;
}

.oc-btn-logout .oc-btn-logout-pc > span[aria-hidden="true"] {
    display: inline-block;
    line-height: 0;
    margin-right: 0.35rem;
    vertical-align: middle;
}

@media (max-width: 480px) {
    .oc-btn-logout .oc-btn-logout-pc {
        display: none;
    }
    .oc-btn-logout .oc-btn-logout-mobile {
        display: block;
    }
    .oc-btn-logout.oc-btn-small {
        padding: 0.42rem 0.52rem;
        min-width: 2.4rem;
    }
}

@media (max-width: 640px) {
    .oc-top-bar form > .oc-status-msg {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        max-width: 100%;
        text-align: left;
        box-sizing: border-box;
    }
    .oc-top-bar form .oc-perm {
        max-width: 100%;
        white-space: normal;
        word-break: break-word;
    }
}

/* Bande titre (équivalent <header> du site) */
.oc-main-header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(71, 85, 105, 0.35);
    padding: 1rem clamp(1rem, 3vw, 2rem) 1.25rem;
}
.oc-main-header--admin {
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.35), rgba(15, 23, 42, 0.95));
    border-bottom: 1px solid rgba(239, 68, 68, 0.25);
}

.oc-main-header__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.oc-back-link {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #93c5fd;
    text-decoration: none;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.oc-back-link:hover {
    color: #e0f2fe;
    text-decoration: underline;
}

.oc-main-header__title {
    margin: 0 0 0.35rem 0;
    font-size: clamp(1.35rem, 3.5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fef3c7;
    text-shadow: 0 0 24px rgba(239, 68, 68, 0.25);
}

.oc-main-header__subtitle {
    margin: 0 0 1rem 0;
    font-size: 0.92rem;
    color: #94a3b8;
    line-height: 1.45;
    max-width: 52rem;
}

.oc-game-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.oc-game-nav__link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.45rem 1rem;
    border-radius: 10px;
    color: #e2e8f0;
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(71, 85, 105, 0.65);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.oc-game-nav__link:hover {
    transform: translateY(-1px);
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.oc-game-nav__link.is-active {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #0f172a;
    border-color: rgba(254, 243, 199, 0.5);
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.35);
}

.oc-game-nav__link.is-active:hover {
    color: #020617;
}
