/* ═══════════════════════════════════════════════════════════════
   HEADER.CSS — Styles header / navigation / burger
   Europale Basket Club
═══════════════════════════════════════════════════════════════ */

/* ── Structure générale du header ── */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15%;
}
.logo {
    font-weight: 400;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 40px;
    font-style: italic;
    font-family: 'Anton', sans-serif;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-subtitle {
    font-size: 13px;
    font-style: normal;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 3px;
    color: #097eeb;
    text-transform: uppercase;
    margin-top: 4px;
}

.logo img {
    height: 60px; 
    width: auto;
    object-fit: contain;
    transition: transform 2s linear;
}
.logo img:hover {    
    transform: rotate(360deg);
    transition: 2s;
}
.rotate {
    animation: rotate360 2s linear forwards;
}
.links{
    display: flex;
}
.links_responsive{
    display: none;
}
.links li{
    margin: 20px;
}
.links li a{
    color: #fff;
    position: relative;
}
.links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    background-color: #097eeb;
    height: 4px;
    width: 0;
    border-radius: 4px;
    transition: 0.5s;
}
.links li a:hover::after{
    width: 100%;
}

/* ══ Burger button ══════════════════════════════════════════ */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
    background: none;
    border: none;
    padding: 6px;
    flex-shrink: 0;
}

.burger-line {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.38s cubic-bezier(.4,0,.2,1),
                opacity   0.28s ease,
                width     0.28s ease;
    transform-origin: center;
}
.burger-line:nth-child(3) { width: 18px; }

.burger:hover .burger-line { background: #097eeb; }
.burger:hover .burger-line:nth-child(3) { width: 26px; }

/* Croix */
.burger.active .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active .burger-line:nth-child(2) { opacity: 0; width: 0; }
.burger.active .burger-line:nth-child(3) { width: 26px; transform: translateY(-7px) rotate(-45deg); }

/* ══ Overlay ═════════════════════════════════════════════════ */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ══ Menu mobile ════════════════════════════════════════════ */
.links_responsive {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 82vw);
    height: 100vh;
    background: #07101f;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style: none;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
}
.links_responsive.active {
    transform: translateX(0);
}

/* Header du menu mobile */
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.mobile-nav-logo {
    font-family: 'Anton', sans-serif;
    font-size: 1.1rem;
    color: #097eeb;
    letter-spacing: 3px;
}
.mobile-nav-close {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
}
.mobile-nav-close:hover {
    background: rgba(9,126,235,0.3);
    color: #097eeb;
}

/* Liens */
.links_responsive li {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.links_responsive.active li { opacity: 1; transform: translateX(0); }
.links_responsive.active li:nth-child(1) { transition-delay: 0.06s; }
.links_responsive.active li:nth-child(2) { transition-delay: 0.10s; }
.links_responsive.active li:nth-child(3) { transition-delay: 0.14s; }
.links_responsive.active li:nth-child(4) { transition-delay: 0.18s; }
.links_responsive.active li:nth-child(5) { transition-delay: 0.22s; }
.links_responsive.active li:nth-child(6) { transition-delay: 0.26s; }
.links_responsive.active li:nth-child(7) { transition-delay: 0.30s; }
.links_responsive.active li:nth-child(8) { transition-delay: 0.34s; }
.links_responsive.active li:nth-child(9) { transition-delay: 0.38s; }

.links_responsive li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 28px;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    transition: color 0.2s, background 0.2s, padding-left 0.2s;
    position: relative;
}
.links_responsive li a::before {
    content: '';
    width: 3px;
    height: 0;
    background: #097eeb;
    border-radius: 2px;
    flex-shrink: 0;
    transition: height 0.25s ease;
}
.links_responsive li a:hover,
.links_responsive li a.active {
    color: #fff;
    background: rgba(9,126,235,0.08);
    padding-left: 36px;
}
.links_responsive li a:hover::before,
.links_responsive li a.active::before { height: 18px; }

/* ══ RESPONSIVE header.css ════════════════════════════════════ */
@media (max-width: 1200px) {
    .menu { padding: 10px 4% !important; }
    .links li a { font-size: 0.82rem !important; padding: 6px 10px !important; }
}
@media (max-width: 992px) {
    .menu  { padding: 10px 5% !important; }
    .links { display: none !important; }
    .burger { display: flex !important; }
    .logo-text { font-size: 1rem !important; }
}
@media (max-width: 480px) {
    .menu { padding: 8px 4% !important; }
    .logo img { width: 38px !important; height: 38px !important; }
    .logo-text { font-size: 0.9rem !important; }
    .burger div { width: 22px !important; }
}
@media (max-width: 360px) {
    .logo-text { display: none !important; }
    .menu { padding: 8px 3% !important; }
}
