/* Style bouton outline doré (identique à partenaires) */
.btn-outline-light {
    border: 2px solid #d4af37 !important;
    color: #d4af37 !important;
    background: transparent !important;
}
.btn-outline-light:hover {
    background: #d4af37 !important;
    color: #1a1f3a !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5) !important;
}
/* Style staff doré universel */
/* Motifs SVG en background du header */
.header-bg-motifs {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.header-svg-motifs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
}

/* Logo JCup effet lumineux */
.header-logo-link .brand-text {
    text-shadow: 0 0 12px #d4af37a0;
}
.header-logo-link .brand-title {
    font-size: 1.5rem;
    color: #d4af37;
    letter-spacing: 2px;
}
.header-logo-link .brand-sub {
    color: #e6e6e6;
    font-size: 0.85rem;
}

/* Navigation principale avec gap et effets */
.header-nav {
    gap: 1.5rem;
}

/* Boutons staff/login stylisés */
.btn-staff {
    border: 2px solid #d4af37;
    color: #d4af37;
    background: transparent;
    font-weight: 700;
    border-radius: 8px;
    padding: 1rem 2rem;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}
.btn-staff:hover {
    background: #d4af37;
    color: #1a1f3a;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}
.btn-login {
    border: 2px solid #d4af37;
    color: #d4af37;
    background: transparent;
    font-weight: 700;
}
:root{
    --accent-1: #0066ff; /* primary blue */
    --accent-2: #00b4ff; /* secondary blue */
    --glass: rgba(255,255,255,0.06);
    --text-light: #f8f9fa;
}

/* Animated gradient header background */
.site-header{
    position: relative;
    z-index: 1030;
}

.site-header::before{
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    background-size: 200% 200%;
    filter: saturate(1.05) contrast(1.02);
    animation: hueShift 8s ease-in-out infinite alternate;
    opacity: 0.12;
    pointer-events: none;
}

/* Subtle game-related SVG pattern overlay (manette-like shapes) */
.site-header::after{
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M2 12c0 0 2-6 10-6s10 6 10 6-2 6-10 6S2 12 2 12z' fill='%23ffffff' opacity='0.04'/><circle cx='8' cy='12' r='1' fill='%23ffffff' opacity='0.06'/><circle cx='16' cy='12' r='1' fill='%23ffffff' opacity='0.06'/></svg>");
    background-repeat: repeat;
    background-size: 120px;
    opacity: 0.18;
    pointer-events: none;
    mix-blend-mode: overlay;
}

@keyframes hueShift{
    0%{ background-position: 0% 50%; }
    100%{ background-position: 100% 50%; }
}

nav.navbar{
    backdrop-filter: blur(6px) saturate(1.1);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding: 0.6rem 0;
}

.jcup-logo{ width:56px; height:56px; object-fit:contain; border-radius:10px; }
.brand-text{ color:var(--text-light); line-height:1; }
.brand-title{ display:block; font-weight:700; font-size:1.125rem; letter-spacing:0.6px; }
.brand-sub{ display:block; font-size:0.675rem; opacity:0.85; }

.navbar-nav .nav-link{
    color:rgba(248,249,250,0.95);
    font-weight:600;
    letter-spacing:1px;
    padding:0.6rem 0.9rem;
    transition: color .18s ease, transform .18s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus{
    color:var(--accent-2);
    transform:translateY(-2px);
    text-decoration:none;
}

.navbar-nav .nav-link.active{
    color:rgb(255, 230, 0);
}

.btn-cta{
    color:white; padding:0.45rem 0.9rem; border-radius:999px; border:none; box-shadow:0 6px 20px rgba(30,144,255,0.12);
    transition: transform .18s ease, box-shadow .18s ease;
}
.btn-cta:hover{ transform:translateY(-2px); box-shadow:0 10px 30px rgba(30,144,255,0.18); }
.btn-cta.btn-outline{ background:transparent; border:1px solid rgba(255,255,255,0.12); color:var(--text-light); }

.header-actions{ gap:0.6rem; }

/* Hamburger animation */
.hamburger{ display:inline-block; width:28px; height:22px; position:relative; }
.hamburger span{ position:absolute; left:0; right:0; height:3px; background:rgba(255,255,255,0.9); border-radius:3px; transition:transform .25s ease, top .25s ease, opacity .2s ease; }
.hamburger span:nth-child(1){ top:0; }
.hamburger span:nth-child(2){ top:9px; }
.hamburger span:nth-child(3){ top:18px; }

/* When menu open (button has aria-expanded="true") animate */
button.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(1){ top:9px; transform:rotate(45deg); }
button.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(2){ opacity:0; }
button.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(3){ top:9px; transform:rotate(-45deg); }

/* Mobile: make collapsed menu a full-screen glass panel for spectacle */
@media (max-width:991.98px){
    .navbar-collapse{ backdrop-filter: blur(8px) saturate(1.1); transform-origin:top center; display:none; }
    .navbar-collapse.show{ display:block; }
    .navbar-nav{ flex-direction:column; gap:0.4rem; }
    .navbar-nav .nav-link{ font-size:1.05rem; padding:0.75rem 0; }
    .header-actions{ margin-top:1rem; justify-content:center; width:100%; }
}

/* Accessibility: focus outline */
.nav-link:focus, .btn-cta:focus{ outline:2px dashed rgba(255,255,255,0.12); outline-offset:4px; }
