/* ===== Actions mobile (header) ===== */
.mobile-actions {
    display: none;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.mobile-newsletter-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.mobile-contact-link {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
}

/* ===== Panneau menu mobile plein écran ===== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a1a1a;
    z-index: 9999;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #2a2a2a;
}

.mobile-menu-logo img {
    height: 28px;
    width: auto;
}

.mobile-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-body {
    display: flex;
    padding: 20px;
    gap: 24px;
}

.mobile-menu-links {
    display: flex;
    flex: 1;
    gap: 24px;
}

.mobile-menu-col {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.mobile-menu-col li {
    margin-bottom: 14px;
}

.mobile-menu-col li a {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.mobile-menu-col li a:hover {
    color: #e74c3c;
}

/* masquer Contact dans la colonne top (déjà affiché à part) */
.mobile-menu-col li a[href*="contact"] {
    display: none;
}

.mobile-menu-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 1px solid #2a2a2a;
    padding-left: 24px;
}

.mobile-newsletter-label {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
}

.mobile-newsletter .newsletter-fields {
    width: 100%;
}

.mobile-newsletter .newsletter-fields input[type="email"] {
    flex: 1;
    width: auto;
}

.mobile-newsletter .newsletter-fields button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
}

.mobile-contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    padding-top: 16px;
    border-top: 1px solid #2a2a2a;
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .mobile-menu-body {
        flex-direction: column;
    }

    .mobile-menu-side {
        border-left: none;
        border-top: 1px solid #2a2a2a;
        padding-left: 0;
        padding-top: 20px;
    }
}

/* ===== Responsive header (mobile) ===== */
@media (max-width: 768px) {
    #branding .container.group {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 16px;
    }

    .site-title {
        flex: 0 1 auto;
        min-width: 0;
        display: flex;
        align-items: center;
        margin: 0;
    }

    .site-title a {
        display: flex;
        align-items: center;
    }

    .header-image {
        max-width: 140px;
        height: auto;
        width: auto;
    }

    .header-right-widgets {
        display: none !important;
    }

    .mobile-actions {
        display: flex !important;
        align-items: center;
        gap: 12px;
        flex-shrink: 0;
    }

    .mobile-toggle {
        display: flex !important;
    }
}
