/* dc26/header — Sixtyseven */

.dc26-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    background: transparent;
    transition: background 0.3s ease;
}

.admin-bar .dc26-header {
    top: 32px;
}

/* Logo */
.dc26-header__logo-link {
    position: relative;
    display: block;
    width: 180px;
    height: 90px;
    line-height: 0;
}

.dc26-header__logo {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 180px;
    height: auto;
    object-fit: contain;
    transition: opacity 0.5s ease-in-out;
}

.dc26-header__logo--white { opacity: 1; }
.dc26-header__logo--black { opacity: 0; }

.dc26-header.is-scrolled .dc26-header__logo--white { opacity: 0; }
.dc26-header.is-scrolled .dc26-header__logo--black { opacity: 1; }

/* Burger */
.dc26-header__burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
}
.dc26-header__burger:focus-visible {
    outline: 2px solid rgba(255,255,255,0.6);
    outline-offset: 4px;
    border-radius: 2px;
}

.dc26-header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: background 0.5s ease-in-out, transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.dc26-header.is-scrolled .dc26-header__burger span { background: #000; }

.dc26-header__burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: #000;
}
.dc26-header__burger.is-open span:nth-child(2) {
    opacity: 0;
}
.dc26-header__burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: #000;
}

/* Offcanvas overlay */
.dc26-offcanvas__overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 105;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.3);
}
.dc26-offcanvas__overlay.is-open { display: block; }

/* Offcanvas panel */
.dc26-offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    width: min(500px, 90vw);
    height: 100%;
    z-index: 110;
    background: #fff;
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-shadow: -4px 0 16px rgba(0,0,0,0.08);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.dc26-offcanvas.is-open { transform: translateX(0); }

/* Burger au-dessus du panel quand ouvert */
.dc26-header__burger.is-open {
    position: relative;
    z-index: 115;
}

/* Offcanvas menus */
.dc26-offcanvas__menu { list-style: none; margin: 0; padding: 0; }

.dc26-offcanvas__menu--primary .menu-item a {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #000;
    text-decoration: none;
    line-height: 1.2;
    padding: 0.25rem 0;
}

.dc26-offcanvas__menu--secondary .menu-item a {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    padding: 0.2rem 0;
}
